/* Mono fallback only — Inter Variable is self-hosted */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap");

/* Same family Cloudflare dashboard uses (Inter Variable + Kumo OpenType features) */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-variable.woff2") format("woff2");
}

:root {
  /* Cloudflare-adjacent cool canvas */
  --ah-font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --ah-font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;

  --ah-color-bg: #ffffff;
  --ah-color-bg-panel: #ffffff;
  --ah-color-bg-subtle: #f7f7f7;
  --ah-color-bg-muted: #ededed;
  --ah-color-bg-hover: #f0f0f0;
  --ah-color-bg-active: #ececec;
  /* Barely-there canvas: left (sidebar) hint of gray → right white */
  --ah-color-bg-canvas: linear-gradient(90deg, #f3f3f3 0%, #fafafa 28%, #ffffff 72%);
  --ah-color-border: #e8e8e8;
  --ah-color-border-strong: #d9d9d9;
  --ah-color-text: #282828; /* ~oklch(0.205) Cloudflare body */
  --ah-color-text-muted: #5c5c5c;
  --ah-color-text-faint: #737373; /* ~oklch(0.556) Cloudflare secondary */
  --ah-color-accent: #f6821f;
  --ah-color-accent-hover: #e06b00;
  --ah-color-accent-soft: #fff4e8;
  --ah-color-link: #0051c3;
  --ah-color-chart: #3b82f6;
  --ah-color-ok: #00845c;
  --ah-color-danger: #d92149;
  --ah-color-map-sea: #eef2f6;
  --ah-color-map-land: #c5ced8;

  --ah-space-1: 0.25rem;
  --ah-space-2: 0.5rem;
  --ah-space-3: 0.75rem;
  --ah-space-4: 1rem;
  --ah-space-5: 1.5rem;
  --ah-space-6: 2rem;
  --ah-space-8: 3rem;

  --ah-radius: 8px;
  --ah-radius-lg: 12px;
  --ah-border: 1px solid var(--ah-color-border);
  --ah-focus: 0 0 0 2px #fff, 0 0 0 4px rgba(246, 130, 31, 0.35);
  --ah-nav-width: 260px;
  --ah-nav-collapsed-width: 56px;
  --ah-topbar-height: 58px;
  --ah-ease-bounce: cubic-bezier(0.22, 1.35, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--ah-font-sans);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ah-color-text);
  background: var(--ah-color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  /* Cloudflare Kumo defaults — changes letterforms vs stock Inter */
  font-feature-settings: "calt" 1, "cv02" 1, "cv03" 1, "cv04" 1;
}

a {
  color: var(--ah-color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--ah-space-3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ah-color-text);
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 var(--ah-space-3);
}

code,
pre,
.ah-mono {
  font-family: var(--ah-font-mono);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ah-focus);
}

button,
input,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


.ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ah-space-2);
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border: var(--ah-border);
  border-radius: var(--ah-radius);
  background: var(--ah-color-bg);
  color: var(--ah-color-text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.ah-btn:hover {
  background: var(--ah-color-bg-subtle);
  text-decoration: none;
}

.ah-btn-primary {
  background: var(--ah-color-link);
  border-color: var(--ah-color-link);
  color: #fff;
}

.ah-btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.ah-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ah-color-text-muted);
}

.ah-input,
.ah-select,
.ah-textarea {
  width: 100%;
  min-height: 2rem;
  padding: 0.4rem 0.65rem;
  border: var(--ah-border);
  border-radius: var(--ah-radius);
  background: var(--ah-color-bg);
  color: var(--ah-color-text);
  font: inherit;
}

.ah-textarea {
  min-height: 6rem;
  resize: vertical;
}

.ah-field {
  display: grid;
  gap: var(--ah-space-1);
  margin-bottom: var(--ah-space-4);
}

.ah-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ah-color-text);
}

.ah-hint,
.ah-error {
  font-size: 0.8rem;
  color: var(--ah-color-text-muted);
}

.ah-error {
  color: var(--ah-color-danger);
}

.ah-callout {
  padding: var(--ah-space-3) var(--ah-space-4);
  border: var(--ah-border);
  border-radius: var(--ah-radius);
  background: var(--ah-color-bg-subtle);
  color: var(--ah-color-text-muted);
}

.ah-callout-accent {
  background: var(--ah-color-accent-soft);
  border-color: #c7d7fe;
  color: var(--ah-color-text);
}

.ah-code {
  display: block;
  overflow: auto;
  padding: var(--ah-space-4);
  border: var(--ah-border);
  border-radius: var(--ah-radius);
  background: var(--ah-color-bg-subtle);
  font-family: var(--ah-font-mono);
  font-size: 0.85rem;
  line-height: 1.45;
}

.ah-inline-code {
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: var(--ah-color-bg-muted);
  font-family: var(--ah-font-mono);
  font-size: 0.9em;
}

.ah-risk {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ah-color-text-faint);
}

.ah-risk-experimental {
  color: var(--ah-color-danger);
}

.ah-risk-trusted {
  color: var(--ah-color-ok);
}

.ah-tabs {
  display: flex;
  gap: var(--ah-space-1);
  border-bottom: var(--ah-border);
  margin-bottom: var(--ah-space-4);
}

.ah-tab {
  padding: var(--ah-space-2) var(--ah-space-3);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ah-color-text-muted);
  font: inherit;
  cursor: pointer;
}

.ah-tab[aria-selected="true"] {
  color: var(--ah-color-text);
  border-bottom-color: var(--ah-color-accent);
}

.ah-nav {
  display: flex;
  align-items: center;
  gap: var(--ah-space-4);
}

.ah-nav a {
  color: var(--ah-color-text-muted);
  font-size: 0.9rem;
}

.ah-nav a:hover,
.ah-nav a[aria-current="page"] {
  color: var(--ah-color-text);
}

.ah-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ah-list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--ah-space-3);
  align-items: baseline;
  padding: var(--ah-space-3) 0;
  border-bottom: var(--ah-border);
}

.ah-list-row:last-child {
  border-bottom: 0;
}

.ah-muted {
  color: var(--ah-color-text-muted);
}

.ah-faint {
  color: var(--ah-color-text-faint);
}

.ah-stack {
  display: grid;
  gap: var(--ah-space-3);
}

.ah-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ah-space-3);
}

.ah-divider {
  height: 1px;
  background: var(--ah-color-border);
  border: 0;
  margin: var(--ah-space-5) 0;
}

.ah-math {
  overflow-x: auto;
  padding: var(--ah-space-3) 0;
}

.ah-md h1,
.ah-md h2,
.ah-md h3 {
  margin-top: var(--ah-space-5);
}

.ah-md ul,
.ah-md ol {
  padding-left: 1.25rem;
}

.ah-md pre {
  margin: 0 0 var(--ah-space-4);
}

.ah-md img {
  max-width: 100%;
}

.ah-callout-warn {
  background: #fff5f5;
  border-color: #fecaca;
  color: var(--ah-color-text);
}

.ah-auth-box {
  max-width: 420px;
  margin: 48px auto;
  padding: 28px 24px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-lg);
  background: #fff;
}

.ah-auth-form {
  display: grid;
  gap: 4px;
  margin: 16px 0;
}

.ah-q {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-lg);
  background: #fff;
}

.ah-q-prompt {
  margin: 0 0 12px;
  font-weight: 550;
}

.ah-q-choices {
  display: grid;
  gap: 8px;
}

.ah-q-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: var(--ah-radius);
  cursor: pointer;
}

.ah-q-choice:hover {
  background: var(--ah-color-bg-hover);
}

.ah-q-input {
  max-width: 280px;
}

.ah-q-format {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ah-color-text-faint);
}

.ah-q-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.ah-q-feedback {
  font-size: 13px;
  font-weight: 550;
}

.ah-q-feedback.is-ok {
  color: var(--ah-color-ok);
}

.ah-q-feedback.is-bad {
  color: var(--ah-color-danger);
}

.ah-q-explain {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ah-color-text-muted);
}

.ah-q.is-correct {
  border-color: color-mix(in srgb, var(--ah-color-ok) 35%, var(--ah-color-border));
}

.ah-q.is-wrong {
  border-color: color-mix(in srgb, var(--ah-color-danger) 35%, var(--ah-color-border));
}

.ah-lessons-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.ah-lessons-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ah-lessons-auth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ah-lessons-anon-hint {
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
}

.ah-lessons-grid {
  display: grid;
  gap: 16px;
}

.ah-lessons-topic-list {
  margin: 12px 0 0;
  padding-left: 1.1rem;
}

.ah-lessons-topic-rows {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.ah-lessons-topic-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 14px 16px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-lg);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.ah-lessons-topic-row:hover {
  background: var(--ah-color-bg-hover);
  text-decoration: none;
}

.ah-lessons-topic-row .ah-muted {
  grid-column: 1;
}

.ah-lessons-meta {
  grid-row: 1 / span 2;
  color: var(--ah-color-text-faint);
  font-size: 12px;
  align-self: center;
}

.ah-lessons-dashboard {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-lg);
  background: #fff;
}

.ah-lessons-dashboard h2 {
  margin: 0 0 8px;
  font-size: 15px;
}

.ah-exam-timer {
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--ah-color-text-muted);
}

.ah-exam-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.ah-figure img {
  max-width: 100%;
  border-radius: var(--ah-radius);
}

.ah-embed iframe {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius);
}


/* Cloudflare-home inspired shell, adapted for project hub */
.ah-app {
  --ah-nav-current: var(--ah-nav-width);
  height: 100%;
  max-height: 100%;
  display: grid;
  grid-template-columns: var(--ah-nav-current) minmax(0, 1fr);
  grid-template-rows: var(--ah-topbar-height) minmax(0, 1fr);
  background: var(--ah-color-bg-canvas);
  overflow: hidden;
  transition: grid-template-columns 0.22s ease;
}

.ah-app.is-nav-collapsed {
  --ah-nav-current: var(--ah-nav-collapsed-width);
}

.ah-topbar-brand {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--ah-topbar-height);
  padding: 0 12px;
  border-right: 1px solid var(--ah-color-border);
  border-bottom: 1px solid var(--ah-color-border);
  background: transparent;
  min-width: 0;
  font-family: var(--ah-font-sans);
  font-feature-settings: "calt" 1, "cv02" 1, "cv03" 1, "cv04" 1;
  -webkit-font-smoothing: antialiased;
}

.ah-topbar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--ah-color-border);
  background: transparent;
  position: relative;
  z-index: 20;
}

.ah-topbar-spacer {
  flex: 1;
}

.ah-topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ah-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius);
  background: #fff;
  color: var(--ah-color-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.ah-topbar-btn:hover {
  background: var(--ah-color-bg-hover);
}

.ah-topbar-btn .ah-icon {
  color: var(--ah-color-text-muted);
}

.ah-contact-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
}

.ah-contact-pop[hidden] {
  display: none;
}

.ah-contact-card {
  width: min(320px, calc(100vw - 32px));
  padding: 14px 16px 16px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-lg);
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ah-contact-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.ah-contact-card-head strong {
  font-size: 14px;
  font-weight: 600;
}

.ah-contact-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ah-color-text-faint);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ah-contact-close:hover {
  background: var(--ah-color-bg-hover);
  color: var(--ah-color-text);
}

.ah-contact-card-lede {
  margin: 0 0 10px;
  color: var(--ah-color-text-faint);
  font-size: 12px;
}

.ah-contact-email {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius);
  background: var(--ah-color-bg-subtle);
  color: var(--ah-color-link);
  font-size: 13px;
  font-weight: 500;
  word-break: break-all;
  text-decoration: none;
}

.ah-contact-email:hover {
  border-color: var(--ah-color-border-strong);
  background: #fff;
}

.ah-sidenav {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  border-right: 1px solid var(--ah-color-border);
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  z-index: 15;
  font-family: var(--ah-font-sans);
  font-size: 13px;
  font-feature-settings: "calt" 1, "cv02" 1, "cv03" 1, "cv04" 1;
  -webkit-font-smoothing: antialiased;
}

.ah-sidenav-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
}

.ah-sidenav-foot {
  flex-shrink: 0;
  padding-top: 6px;
  border-top: 1px solid var(--ah-color-border);
}

.ah-sidenav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  height: 100%;
  color: var(--ah-color-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.375;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.ah-sidenav-brand:hover {
  text-decoration: none;
}

.ah-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(145deg, #ff9a3c, var(--ah-color-accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.ah-brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  min-width: 0;
}

.ah-nav-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #737373;
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
  flex-shrink: 0;
}

.ah-nav-search input {
  width: 100%;
  height: 32px;
  padding: 0 52px 0 34px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius);
  background: #fff;
  color: var(--ah-color-text);
  font-family: var(--ah-font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 15.3px;
  letter-spacing: -0.13px;
  font-feature-settings: "calt" 1, "cv02" 1, "cv03" 1, "cv04" 1;
  -webkit-font-smoothing: antialiased;
}

.ah-nav-search input::placeholder {
  color: var(--ah-color-text-faint);
  font-weight: 400;
}

.ah-nav-search kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ah-color-text-faint);
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-family: var(--ah-font-sans);
  white-space: nowrap;
  pointer-events: none;
}

.ah-nav-search .ah-kbd-mod {
  opacity: 0.5;
}

.ah-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ah-nav-item > button,
.ah-nav-item > a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--ah-radius);
  background: transparent;
  color: var(--ah-color-text);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--ah-font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 15.3px;
  letter-spacing: -0.16px;
  font-feature-settings: "calt" 1, "cv02" 1, "cv03" 1, "cv04" 1;
  -webkit-font-smoothing: antialiased;
}

.ah-nav-item > button:hover,
.ah-nav-item > a:hover {
  background: var(--ah-color-bg-hover);
  text-decoration: none;
}

.ah-nav-item > a[aria-current="page"] {
  background: linear-gradient(90deg, #e4e4e4 0%, #ececec 42%, #f1f1f1 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.ah-nav-children a[aria-current="page"] {
  background: linear-gradient(90deg, #e4e4e4 0%, #ececec 42%, #f1f1f1 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.ah-nav-item .ah-nav-label {
  flex: 1;
  min-width: 0;
}

.ah-icon {
  width: 14px;
  height: 14px;
  color: var(--ah-color-text-muted);
  flex-shrink: 0;
}

.ah-nav-chevron {
  color: var(--ah-color-text-faint);
  display: inline-flex;
  line-height: 1;
  transition: transform 0.15s ease;
}

.ah-nav-item[data-open="true"] > button .ah-nav-chevron {
  transform: rotate(90deg);
}

.ah-nav-children {
  list-style: none;
  position: relative;
  margin: 2px 0 6px 17px;
  padding: 2px 0 2px 12px;
  border-left: 1px solid var(--ah-color-border-strong);
}

.ah-nav-children[hidden] {
  display: none;
}

.ah-nav-children a {
  display: grid;
  gap: 0;
  padding: 5px 10px 5px 10px;
  border-radius: var(--ah-radius);
  color: var(--ah-color-text);
  font-family: var(--ah-font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 15.3px;
  letter-spacing: -0.16px;
  font-feature-settings: "calt" 1, "cv02" 1, "cv03" 1, "cv04" 1;
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
}

.ah-nav-children a:hover {
  background: var(--ah-color-bg-hover);
  text-decoration: none;
}

.ah-nav-children .ah-nav-sub {
  color: var(--ah-color-text-faint);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.ah-nav-divider {
  height: 1px;
  background: var(--ah-color-border);
  margin: 10px 4px;
  border: 0;
}

.ah-nav-section {
  margin: 12px 0 2px;
  padding: 0 10px;
  font-family: var(--ah-font-sans);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 15.75px;
  letter-spacing: -0.16px;
  font-feature-settings: "calt" 1, "cv02" 1, "cv03" 1, "cv04" 1;
  -webkit-font-smoothing: antialiased;
  color: var(--ah-color-text-faint);
}

.ah-nav-filter-hide {
  display: none !important;
}

.ah-nav-collapse {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--ah-radius);
  background: transparent;
  color: var(--ah-color-text-muted);
  cursor: pointer;
}

.ah-nav-collapse:hover {
  background: var(--ah-color-bg-hover);
  color: var(--ah-color-text);
}

.ah-nav-collapse-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ah-nav-collapse-icon.is-expand {
  display: none;
}

.ah-nav-collapse-svg .ah-nav-collapse-rail {
  transition: transform 0.22s ease;
  transform-origin: center;
}

.ah-nav-collapse-svg .ah-nav-collapse-rail.is-expand {
  transform: translateX(11.5px);
}

.ah-app.is-nav-collapsed .ah-nav-collapse-icon.is-collapse {
  display: none;
}

.ah-app.is-nav-collapsed .ah-nav-collapse-icon.is-expand {
  display: inline-flex;
}

.ah-app.is-nav-collapsed .ah-brand-text,
.ah-app.is-nav-collapsed .ah-nav-label,
.ah-app.is-nav-collapsed .ah-nav-chevron,
.ah-app.is-nav-collapsed .ah-nav-section,
.ah-app.is-nav-collapsed .ah-nav-divider,
.ah-app.is-nav-collapsed .ah-nav-children,
.ah-app.is-nav-collapsed .ah-nav-search kbd,
.ah-app.is-nav-collapsed .ah-nav-search-icon {
  display: none;
}

.ah-app.is-nav-collapsed .ah-topbar-brand {
  /* Keep brand mark at the same left offset as expanded (don't recenter) */
  justify-content: flex-start;
  padding: 0 12px;
}

.ah-app.is-nav-collapsed .ah-sidenav-brand {
  justify-content: flex-start;
  width: auto;
}

.ah-app.is-nav-collapsed .ah-sidenav {
  padding: 10px 6px 8px;
}

.ah-app.is-nav-collapsed .ah-nav-search {
  position: relative;
  z-index: 45;
}

.ah-app.is-nav-collapsed .ah-nav-search input {
  padding: 0;
  text-indent: -999px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256' fill='currentColor'%3E%3Cpath d='M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z' fill='%238b8b8b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: width 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease, text-indent 0.01s linear;
}

/* Pop the collapsed search out over the workspace so it is typeable */
.ah-app.is-nav-collapsed .ah-nav-search.is-expanded {
  z-index: 60;
}

.ah-app.is-nav-collapsed .ah-nav-search.is-expanded .ah-nav-search-icon {
  display: block;
  left: 10px;
  z-index: 2;
}

.ah-app.is-nav-collapsed .ah-nav-search.is-expanded kbd {
  display: none;
}

.ah-app.is-nav-collapsed .ah-nav-search.is-expanded input {
  position: absolute;
  left: 0;
  top: 0;
  width: min(280px, calc(100vw - 72px));
  text-indent: 0;
  padding: 0 12px 0 34px;
  background-image: none;
  background: #fff;
  border-color: var(--ah-color-border-strong);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.05);
}

.ah-app.is-nav-collapsed .ah-nav-item > button,
.ah-app.is-nav-collapsed .ah-nav-item > a {
  justify-content: center;
  padding: 6px;
  gap: 0;
}

.ah-app.is-nav-collapsed .ah-nav-collapse {
  width: 34px;
  margin: 0 auto;
}

.ah-workspace {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ah-nav-flyout {
  position: fixed;
  z-index: 60;
  min-width: 220px;
  max-width: 280px;
  max-height: min(420px, calc(100vh - 24px));
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-lg);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ah-nav-flyout-head {
  padding: 8px 10px 6px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ah-color-text-faint);
}

.ah-nav-flyout-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ah-nav-flyout a {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border-radius: var(--ah-radius);
  color: var(--ah-color-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.ah-nav-flyout a:hover {
  background: var(--ah-color-bg-hover);
  text-decoration: none;
}

.ah-nav-flyout .ah-nav-sub {
  color: var(--ah-color-text-faint);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.ah-nav-flyout-empty {
  padding: 8px 10px 12px;
  color: var(--ah-color-text-faint);
  font-size: 13px;
}

.ah-nav-item.is-flyout-open > button,
.ah-nav-item.is-flyout-open > a {
  background: var(--ah-color-bg-active);
}

.ah-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 32px 56px;
}

.ah-content-wide {
  max-width: 1180px;
}

.ah-home-title {
  text-align: center;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 8px 0 20px;
  min-height: 1.15em;
}

.ah-home-title .ah-type-caret {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 2px;
  vertical-align: -0.05em;
  background: var(--ah-color-text);
  border-radius: 1px;
  animation: ah-caret-blink 0.9s steps(1) infinite;
}

.ah-home-title.is-typed .ah-type-caret {
  display: none;
}

@keyframes ah-caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-home-title .ah-type-caret {
    animation: none;
    display: none;
  }
}

.ah-hero-search {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 0 28px;
  z-index: 5;
}

.ah-hero-search input {
  width: 100%;
  height: 44px;
  padding: 0 52px 0 42px;
  border: 1px solid var(--ah-color-border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ah-hero-search::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 22px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border: 1.5px solid var(--ah-color-text-faint);
  border-radius: 999px;
  box-shadow: 5px 5px 0 -6px var(--ah-color-text-faint);
  pointer-events: none;
  z-index: 1;
}

.ah-hero-search kbd {
  position: absolute;
  right: 14px;
  top: 22px;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ah-color-text-faint);
  border: 1px solid var(--ah-color-border);
  border-radius: 4px;
  padding: 2px 6px;
  background: var(--ah-color-bg-subtle);
  font-family: var(--ah-font-sans);
  z-index: 1;
}

.ah-hero-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-lg);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.04);
  max-height: min(360px, 50vh);
  overflow: auto;
}

.ah-hero-results[hidden] {
  display: none !important;
}

.ah-hero-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--ah-radius);
  color: var(--ah-color-text);
  text-decoration: none;
}

.ah-hero-result:hover,
.ah-hero-result.is-active {
  background: var(--ah-color-bg-hover);
  text-decoration: none;
}

.ah-hero-result-title {
  font-size: 14px;
  font-weight: 550;
}

.ah-hero-result-host {
  grid-column: 1;
  color: var(--ah-color-text-faint);
  font-size: 12px;
}

.ah-hero-result-meta {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--ah-color-text-faint);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.ah-hero-results-empty {
  padding: 14px 12px;
  color: var(--ah-color-text-faint);
  font-size: 13px;
}

.ah-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
  margin-bottom: 16px;
  align-items: start;
}

.ah-col {
  --ah-col-row: 48px;
  --ah-col-visible: 5;
  --ah-col-rows: 5;
  min-width: 0;
}

.ah-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ah-color-text);
}

.ah-col-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ah-color-bg-muted);
  color: var(--ah-color-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.ah-col-body {
  /* Grows with actual items (≤5); show-more keeps this height and packs extras in */
  height: calc(var(--ah-col-rows) * var(--ah-col-row));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ah-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  transition: flex-basis 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ah-col-page[data-page="0"] {
  flex: 1 1 auto;
}

.ah-col-page-extra {
  flex: 0 0 0;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.ah-col[data-col-expand="1"] .ah-col-page[data-page="0"],
.ah-col[data-col-expand="1"] .ah-col-page[data-page="1"] {
  flex: 1 1 50%;
  height: 50%;
}

.ah-col[data-col-expand="1"] .ah-col-page[data-page="1"],
.ah-col[data-col-expand="2"] .ah-col-page[data-page="1"],
.ah-col[data-col-expand="2"] .ah-col-page[data-page="2"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ah-col[data-col-expand="2"] .ah-col-page[data-page="0"],
.ah-col[data-col-expand="2"] .ah-col-page[data-page="1"],
.ah-col[data-col-expand="2"] .ah-col-page[data-page="2"] {
  flex: 1 1 33.333%;
  height: 33.333%;
}

.ah-col[data-col-expand="1"] .ah-col-list li {
  height: calc(var(--ah-col-row) / 2);
}

.ah-col[data-col-expand="2"] .ah-col-list li {
  height: calc(var(--ah-col-row) / 3);
}

.ah-col[data-col-expand="1"] .ah-col-list a,
.ah-col[data-col-expand="2"] .ah-col-list a {
  min-height: 0;
  padding: 2px 4px;
  gap: 6px;
}

.ah-col[data-col-expand="1"] .ah-row-meta,
.ah-col[data-col-expand="2"] .ah-row-meta {
  display: none;
}

.ah-col[data-col-expand="1"] .ah-row-title,
.ah-col[data-col-expand="2"] .ah-row-title {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ah-col-list li {
  border-top: 1px solid var(--ah-color-border);
  height: var(--ah-col-row);
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ah-col-list {
  height: 100%;
}

.ah-col-list a {
  display: grid;
  grid-template-columns: 20px 1fr 12px;
  gap: 10px;
  align-items: center;
  min-height: 0;
  height: 100%;
  padding: 8px 4px;
  color: var(--ah-color-text);
  text-decoration: none;
  border-radius: var(--ah-radius);
  transition: padding 0.3s ease, gap 0.3s ease;
}

.ah-col-list a:hover {
  background: var(--ah-color-bg-hover);
  text-decoration: none;
}

.ah-col-list .ah-row-icon {
  color: var(--ah-color-text-muted);
  display: grid;
  place-items: center;
}

.ah-col-list .ah-row-title {
  font-size: 14px;
  font-weight: 500;
}

.ah-col-list .ah-row-meta {
  display: block;
  margin-top: 1px;
  color: var(--ah-color-text-faint);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.3;
}

.ah-col-list .ah-row-chevron {
  color: var(--ah-color-text-faint);
  font-size: 14px;
}

.ah-col-more {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 4px 4px;
  border: 0;
  background: transparent;
  color: var(--ah-color-link);
  font-family: var(--ah-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.ah-col-more:hover {
  text-decoration: underline;
}

.ah-col-more[hidden] {
  display: none !important;
}

.ah-empty {
  padding: 14px 4px;
  color: var(--ah-color-text-muted);
  font-size: 13px;
  border-top: 1px solid var(--ah-color-border);
}

.ah-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
}

.ah-section-head-rule {
  position: relative;
  margin-top: 28px;
  padding-top: 22px;
}

.ah-section-head-rule::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 14%,
    rgba(0, 0, 0, 0.12) 50%,
    rgba(0, 0, 0, 0.08) 86%,
    transparent 100%
  );
}

.ah-section-head-rule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.025) 100%);
}

.ah-section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ah-analytics {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
  align-items: stretch;
}

.ah-analytics > .ah-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ah-analytics > .ah-card > .ah-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ah-analytics > .ah-card:not(.ah-card-lens) > .ah-card-body {
  padding: 10px 12px 12px;
  position: relative;
}

.ah-card-sub {
  color: var(--ah-color-text-faint);
  font-size: 12px;
  font-weight: 500;
}

.ah-card-lens .ah-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
}

.ah-lens-stats {
  margin-bottom: 0;
}

.ah-lens {
  position: relative;
  flex: 1;
  min-height: 280px;
  border-radius: var(--ah-radius);
  border: 1px solid var(--ah-color-border);
  background: #fff;
  padding: 4px 4px 0;
}

.ah-lens-chart {
  width: 100%;
  height: 272px;
}

.ah-lens-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ah-color-text-faint);
  font-size: 13px;
  padding: 16px;
  text-align: center;
  pointer-events: none;
}

.ah-lens-empty[hidden] {
  display: none !important;
}

.ah-lens-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ah-lens-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--ah-color-border);
  background: #fff;
  color: var(--ah-color-text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.45;
}

.ah-lens-chip.is-on {
  opacity: 1;
  border-color: color-mix(in srgb, var(--chip) 45%, var(--ah-color-border));
  background: color-mix(in srgb, var(--chip) 10%, #fff);
  color: var(--ah-color-text);
}

.ah-lens-swatch {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--chip);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--chip) 20%, transparent);
}


.ah-card {
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-lg);
  background: #fff;
  overflow: hidden;
}

.ah-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}

.ah-card-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.ah-card-body {
  padding: 12px 16px 16px;
}

.ah-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.ah-stat {
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius);
  padding: 10px 12px;
  background: var(--ah-color-bg);
}

.ah-stat-value {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ah-stat-label {
  color: var(--ah-color-text-faint);
  font-size: 12px;
  margin-top: 4px;
}

.ah-map-wrap {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  border-radius: var(--ah-radius);
  overflow: hidden;
  background: var(--ah-color-map-sea);
  border: 1px solid var(--ah-color-border);
  min-height: 280px;
  width: 100%;
}

.ah-map-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center 40%;
  background: linear-gradient(180deg, #e8eef5, #d9e3ee);
}

.ah-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ah-map-dot {
  fill: var(--ah-color-accent);
  stroke: #fff;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: ah-dot-pop 0.5s var(--ah-ease-bounce) both;
}

.ah-map-pulse {
  fill: rgba(246, 130, 31, 0.28);
  transform-box: fill-box;
  transform-origin: center;
  animation: ah-pulse 2s ease-out infinite;
}

@keyframes ah-dot-pop {
  from {
    opacity: 0;
    transform: scale(0.15);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ah-pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.4);
  }
  70% {
    opacity: 0;
    transform: scale(2.4);
  }
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

.ah-stream {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.ah-stream-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius);
  background: var(--ah-color-bg);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.ah-stream-item.is-in {
  animation: ah-stream-in 0.55s var(--ah-ease-bounce) forwards;
}

@keyframes ah-stream-in {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  70% {
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ah-stream-flag {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #445;
}

.ah-stream-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ah-color-text);
}

.ah-stream-meta {
  color: var(--ah-color-text-faint);
  font-size: 12px;
  margin-top: 1px;
}

.ah-stream-time {
  color: var(--ah-color-text-faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ah-show-more {
  margin-top: 10px;
  width: 100%;
  height: 34px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius);
  background: #fff;
  color: var(--ah-color-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.ah-show-more:hover {
  background: var(--ah-color-bg-hover);
  color: var(--ah-color-text);
}

.ah-layout-docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}

.ah-docs-side a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--ah-radius);
  color: var(--ah-color-text-muted);
  font-size: 13px;
  text-decoration: none;
}

.ah-docs-side a:hover,
.ah-docs-side a[aria-current="page"] {
  background: var(--ah-color-bg-hover);
  color: var(--ah-color-text);
}

.ah-panel {
  border: var(--ah-border);
  border-radius: var(--ah-radius-lg);
  background: #fff;
  overflow: hidden;
}

.ah-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: var(--ah-border);
  background: var(--ah-color-bg);
}

.ah-panel-body {
  padding: 14px;
}

.ah-console {
  margin: 0;
  padding: 14px;
  background: #161616;
  color: #e8e8e8;
  font-family: var(--ah-font-mono);
  font-size: 13px;
  min-height: 8rem;
  white-space: pre-wrap;
}

.ah-layout-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.ah-breadcrumb {
  color: var(--ah-color-text-faint);
  font-size: 12px;
  margin-bottom: 10px;
  font-family: var(--ah-font-mono);
}

.ah-md h1,
.ah-md h2,
.ah-md h3 {
  margin-top: 1.4rem;
}

.ah-md ul,
.ah-md ol {
  padding-left: 1.25rem;
}

.ah-md pre {
  margin: 0 0 1rem;
}

.ah-md img {
  max-width: 100%;
}

@media (max-width: 980px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .ah-app,
  .ah-app.is-nav-collapsed {
    --ah-nav-current: 1fr;
    height: auto;
    max-height: none;
    overflow: visible;
    grid-template-columns: 1fr;
    grid-template-rows: var(--ah-topbar-height) auto minmax(0, 1fr);
  }

  .ah-topbar-brand {
    grid-column: 1;
    grid-row: 1;
    border-right: 0;
    z-index: 21;
  }

  .ah-topbar {
    grid-column: 1;
    grid-row: 1;
    padding-left: 150px;
  }

  .ah-sidenav {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    top: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ah-color-border);
    padding: 10px 14px;
  }

  .ah-nav-collapse {
    display: none;
  }

  /* Keep labels visible even if collapse class is set from desktop */
  .ah-app.is-nav-collapsed .ah-brand-text {
    display: inline;
  }

  .ah-app.is-nav-collapsed .ah-nav-label,
  .ah-app.is-nav-collapsed .ah-nav-section {
    display: block;
  }

  .ah-app.is-nav-collapsed .ah-nav-chevron {
    display: inline-flex;
  }

  .ah-app.is-nav-collapsed .ah-nav-divider {
    display: block;
  }

  .ah-app.is-nav-collapsed .ah-nav-children {
    display: grid;
  }

  .ah-app.is-nav-collapsed .ah-nav-children[hidden] {
    display: none;
  }

  .ah-app.is-nav-collapsed .ah-nav-search kbd,
  .ah-app.is-nav-collapsed .ah-nav-search-icon {
    display: block;
  }

  .ah-app.is-nav-collapsed .ah-nav-search-icon {
    display: block;
    position: absolute;
  }

  .ah-app.is-nav-collapsed .ah-topbar-brand {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .ah-app.is-nav-collapsed .ah-nav-search input {
    text-indent: 0;
    padding: 0 52px 0 34px;
    background-image: none;
  }

  .ah-app.is-nav-collapsed .ah-nav-item > button,
  .ah-app.is-nav-collapsed .ah-nav-item > a {
    justify-content: flex-start;
    padding: 6px 10px;
    gap: 10px;
  }

  .ah-workspace {
    grid-column: 1;
    grid-row: 3;
  }

  .ah-columns,
  .ah-analytics,
  .ah-layout-docs,
  .ah-layout-lab {
    grid-template-columns: 1fr;
  }

  .ah-stat-row {
    grid-template-columns: 1fr;
  }

  .ah-content {
    padding: 20px 16px 40px;
  }

  .ah-topbar-btn span:not(.ah-icon) {
    display: none;
  }
}


/* Dedicated lessons studio — same tokens as hub, own composition */

.ls-body {
  margin: 0;
  min-height: 100%;
  overflow: auto;
  font-family: var(--ah-font-sans);
  font-feature-settings: "calt" 1, "cv02" 1, "cv03" 1, "cv04" 1;
  color: var(--ah-color-text);
  background: linear-gradient(105deg, #f2f2f2 0%, #f7f7f7 22%, #ffffff 55%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
}

.ls-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ls-top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--ah-color-border);
  background: color-mix(in srgb, #fff 82%, transparent);
  backdrop-filter: blur(12px);
}

.ls-top-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ls-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.ls-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(145deg, #ff9a3c, var(--ah-color-accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.ls-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.ls-nav-link {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ah-color-text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.ls-nav-link:hover {
  background: var(--ah-color-bg-hover);
  color: var(--ah-color-text);
  text-decoration: none;
}

.ls-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ls-hub-link,
.ls-user {
  font-size: 13px;
  color: var(--ah-color-text-muted);
  text-decoration: none;
}

.ls-hub-link:hover {
  color: var(--ah-color-text);
}

.ls-main {
  flex: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.ls-foot {
  border-top: 1px solid var(--ah-color-border);
  padding: 18px 24px 28px;
  text-align: center;
  color: var(--ah-color-text-faint);
  font-size: 12px;
}

.ls-foot p {
  margin: 0;
}

.ls-crumb {
  margin: 0 0 18px;
  color: var(--ah-color-text-faint);
  font-size: 12.5px;
}

.ls-crumb a {
  color: var(--ah-color-text-muted);
}

.ls-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

.ls-eyebrow {
  margin: 0 0 8px;
  color: var(--ah-color-text-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ls-muted {
  color: var(--ah-color-text-muted);
}

.ls-lede {
  max-width: 38rem;
  margin: 0;
  color: var(--ah-color-text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.ls-reader-hero .ls-lede {
  margin-top: 10px;
  font-size: 15px;
}

.ls-loop {
  margin-top: 8px;
  padding: 22px 24px;
  border: 1px solid var(--ah-color-border);
  border-radius: 16px;
  background: #fff;
  animation: ls-rise 0.55s ease both;
  animation-delay: 120ms;
}

.ls-loop-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ls-step;
}

.ls-loop-steps li {
  position: relative;
  padding-left: 36px;
  counter-increment: ls-step;
}

.ls-loop-steps li::before {
  content: counter(ls-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--ah-color-bg-muted);
  color: var(--ah-color-text);
  font-size: 12px;
  font-weight: 650;
  line-height: 24px;
  text-align: center;
}

.ls-loop-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.ls-loop-steps span {
  color: var(--ah-color-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ls-hero {
  margin-bottom: 36px;
  animation: ls-rise 0.55s ease both;
}

.ls-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.ls-hero-compact h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.ls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ah-color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ah-color-text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.ls-btn:hover {
  background: var(--ah-color-bg-hover);
  text-decoration: none;
}

.ls-btn-primary {
  background: var(--ah-color-text);
  border-color: var(--ah-color-text);
  color: #fff;
}

.ls-btn-primary:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.ls-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ah-color-text-muted);
}

.ls-input {
  width: 100%;
  max-width: 280px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--ah-color-border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.ls-catalogue,
.ls-topic-stack {
  display: grid;
  gap: 28px;
}

.ls-module {
  --ls-glow: rgba(0, 0, 0, 0.04);
  padding: 22px;
  border: 1px solid var(--ah-color-border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ls-glow) 100%, transparent), transparent 42%),
    #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  animation: ls-rise 0.55s ease both;
}

.ls-accent-maths {
  --ls-glow: rgba(246, 130, 31, 0.12);
}

.ls-accent-cs {
  --ls-glow: rgba(0, 81, 195, 0.1);
}

.ls-module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ls-module-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.ls-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.ls-topic-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--ah-color-border);
  border-radius: 12px;
  background: color-mix(in srgb, #fff 70%, var(--ah-color-bg-subtle));
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  animation: ls-rise 0.5s ease both;
  animation-delay: var(--d, 0ms);
}

.ls-topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--ah-color-border-strong);
  background: #fff;
  text-decoration: none;
}

.ls-topic-card-lg {
  grid-template-columns: auto 1fr;
  padding: 18px;
}

.ls-topic-index {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--ah-color-text-faint);
}

.ls-topic-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ls-topic-body strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ls-topic-body > span {
  color: var(--ah-color-text-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.ls-topic-meta {
  color: var(--ah-color-text-faint);
  font-size: 12px;
  white-space: nowrap;
}

.ls-objectives {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  color: var(--ah-color-text-muted);
  font-size: 12.5px;
}

.ls-dashboard {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--ah-color-border);
  border-radius: 12px;
  background: #fff;
}

.ls-dashboard h2 {
  margin: 0 0 8px;
  font-size: 14px;
}

.ls-reader {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ls-reader-exam {
  grid-template-columns: 1fr;
}

.ls-rail {
  position: sticky;
  top: 78px;
  padding: 18px;
  border: 1px solid var(--ah-color-border);
  border-radius: 16px;
  background: #fff;
}

.ls-rail-summary {
  margin: 0 0 14px;
  color: var(--ah-color-text-muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.ls-rail-label {
  margin: 0 0 6px;
  color: var(--ah-color-text-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ls-rail-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.ls-progress-hint {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  color: var(--ah-color-text-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ls-progress-hint span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ls-progress-hint em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--ah-color-text-muted);
}

.ls-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--ah-color-bg-muted);
  overflow: hidden;
}

.ls-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ah-color-accent), #ffb15a);
  transition: width 0.35s ease;
}

.ls-reader-main {
  min-width: 0;
}

.ls-reader-main-wide {
  max-width: 760px;
  margin: 0 auto;
}

.ls-reader-hero {
  margin-bottom: 22px;
  animation: ls-rise 0.5s ease both;
}

.ls-reader-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.ls-lesson {
  display: grid;
  gap: 14px;
}

.ls-block {
  animation: ls-rise 0.5s ease both;
  animation-delay: var(--d, 0ms);
}

.ls-section-title {
  margin: 18px 0 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ls-prose {
  color: var(--ah-color-text);
  font-size: 15.5px;
  line-height: 1.65;
}

.ls-prose p {
  margin: 0 0 0.9em;
}

.ls-prose strong {
  font-weight: 650;
}

.ls-callout {
  padding: 14px 16px;
  border: 1px solid var(--ah-color-border);
  border-radius: 12px;
  background: var(--ah-color-bg-subtle);
  color: var(--ah-color-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ls-callout-tip {
  background: var(--ah-color-accent-soft);
  border-color: #ffd7b0;
  color: var(--ah-color-text);
}

.ls-callout-warn {
  background: #fff5f5;
  border-color: #fecaca;
}

.ls-code {
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  border: 1px solid var(--ah-color-border);
  border-radius: 12px;
  background: #111;
  color: #f5f5f5;
  font-family: var(--ah-font-mono);
  font-size: 13px;
  line-height: 1.5;
}

.ls-figure {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--ah-color-border);
  border-radius: 16px;
  background: #fff;
}

.ls-figure img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.ls-figure figcaption {
  margin-top: 10px;
  color: var(--ah-color-text-faint);
  font-size: 12.5px;
}

.ls-embed {
  overflow: hidden;
  border: 1px solid var(--ah-color-border);
  border-radius: 16px;
  background: #fff;
}

.ls-embed iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

.ls-dashboard ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ah-color-text-muted);
  font-size: 13px;
}

.ls-dashboard code {
  font-family: var(--ah-font-mono);
  font-size: 12px;
}

.ls-widget {
  padding: 16px;
  border: 1px solid var(--ah-color-border);
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 10% 0%, color-mix(in srgb, var(--ah-color-accent) 12%, transparent), transparent 50%),
    #fff;
}

.ls-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  color: var(--ah-color-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ls-widget-head strong {
  color: var(--ah-color-text);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.ls-widget-caption {
  margin: 12px 0 0;
  color: var(--ah-color-text-faint);
  font-size: 12.5px;
}

.ls-bead-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ls-bead {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(160deg, #ffb15a, var(--ah-color-accent));
  box-shadow: 0 6px 14px rgba(246, 130, 31, 0.25);
  cursor: pointer;
  opacity: 0.28;
  transform: scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s var(--ah-ease-bounce), box-shadow 0.2s ease;
  animation: ls-bead-in 0.45s var(--ah-ease-bounce) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

.ls-bead[aria-pressed="true"] {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 18px rgba(246, 130, 31, 0.35);
}

.ls-bead:hover {
  transform: scale(1.05);
}

@keyframes ls-bead-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.7);
  }
  to {
    opacity: 0.28;
    transform: scale(0.92);
  }
}

.ls-line-track {
  position: relative;
  padding: 8px 0 28px;
  background:
    linear-gradient(#d4d4d4, #d4d4d4) center / 100% 2px no-repeat,
    transparent;
  border-radius: 8px;
}

.ls-line-track input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: var(--ah-color-accent);
}

.ls-line-markers {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
}

.ls-line-markers span {
  position: absolute;
  top: 0;
  left: var(--p);
  transform: translateX(-50%);
  color: var(--ah-color-text-faint);
  font-size: 11px;
}

.ls-place-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ls-place-card {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 8px;
  align-items: center;
  min-width: 160px;
  padding: 10px;
  border: 1px solid var(--ah-color-border);
  border-radius: 12px;
  background: #fff;
}

.ls-place-card em {
  display: block;
  color: var(--ah-color-text-faint);
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ls-place-card strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.ls-place-card button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ah-color-border);
  border-radius: 8px;
  background: var(--ah-color-bg-subtle);
  font-size: 18px;
  cursor: pointer;
}

.ls-place-tens {
  border-color: color-mix(in srgb, var(--ah-color-accent) 35%, var(--ah-color-border));
}

.ls-q {
  padding: 18px;
  border: 1px solid var(--ah-color-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ls-q-eyebrow {
  margin-bottom: 8px;
  color: var(--ah-color-accent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ls-q-prompt {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.ls-q-choices {
  display: grid;
  gap: 8px;
}

.ls-q-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ls-q-choice:hover {
  background: var(--ah-color-bg-hover);
}

.ls-q-choice:has(input:checked) {
  background: color-mix(in srgb, var(--ah-color-accent) 8%, #fff);
  border-color: color-mix(in srgb, var(--ah-color-accent) 35%, var(--ah-color-border));
}

.ls-q-format {
  margin: 8px 0 0;
  color: var(--ah-color-text-faint);
  font-size: 12px;
}

.ls-q-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.ls-q-feedback {
  font-size: 13px;
  font-weight: 600;
}

.ls-q-feedback.is-ok {
  color: var(--ah-color-ok);
}

.ls-q-feedback.is-bad {
  color: var(--ah-color-danger);
}

.ls-q-explain {
  margin-top: 10px;
  color: var(--ah-color-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ls-q.is-correct {
  border-color: color-mix(in srgb, var(--ah-color-ok) 40%, var(--ah-color-border));
}

.ls-q.is-wrong {
  border-color: color-mix(in srgb, var(--ah-color-danger) 35%, var(--ah-color-border));
}

.ls-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(120deg, #1a1a1a, #333);
  color: #fff;
}

.ls-next p {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ls-next .ls-btn-primary {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.ls-exam [data-q-check] {
  display: none;
}

.ls-exam .ls-q-eyebrow {
  color: var(--ah-color-text-faint);
}

.ls-exam-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 8px;
  padding: 18px 20px;
  border: 1px solid var(--ah-color-border);
  border-radius: 16px;
  background: #fff;
}

.ls-exam-banner h1 {
  margin: 0 0 6px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.ls-exam-timer {
  padding: 10px 12px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.ls-exam-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.ls-exam-score {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.ls-auth {
  max-width: 420px;
  margin: 24px auto;
  padding: 28px 24px;
  border: 1px solid var(--ah-color-border);
  border-radius: 16px;
  background: #fff;
}

.ls-auth h1 {
  margin: 0 0 8px;
}

.ls-auth-form {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.ls-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.ls-error {
  color: var(--ah-color-danger);
  font-size: 13px;
}

.ls-back {
  color: var(--ah-color-text-muted);
  font-size: 13px;
}

@keyframes ls-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .ls-reader {
    grid-template-columns: 1fr;
  }

  .ls-rail {
    position: static;
    order: -1;
  }

  .ls-nav {
    display: none;
  }

  .ls-loop-steps {
    grid-template-columns: 1fr;
  }

  .ls-top-inner {
    padding: 0 16px;
  }

  .ls-main {
    padding: 20px 16px 48px;
  }

  .ls-module {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-hero,
  .ls-module,
  .ls-topic-card,
  .ls-block,
  .ls-reader-hero,
  .ls-loop,
  .ls-bead {
    animation: none;
  }
}
