/* Course content extends the existing reader without changing saved anchors. */
.translation-hint {
  margin: 0 0 1.4rem;
  max-width: 68ch;
  color: var(--muted);
  font-family: var(--interface-font);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.reader-page #conteudo .translation-term {
  cursor: help;
  text-decoration: underline dotted var(--example-rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.reader-page #conteudo .translation-term:focus-visible,
.reader-page #conteudo [data-translation-open] {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.translation-tooltip {
  position: fixed;
  z-index: 90;
  width: max-content;
  max-width: min(22rem, calc(100vw - 24px));
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--example-rule);
  border-radius: 0.8rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 8px 30px #091f2433;
  font-family: var(--interface-font);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: break-word;
}
.translation-tooltip::after {
  position: absolute;
  left: var(--tip-arrow, 50%);
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--example-rule);
  border-bottom: 1px solid var(--example-rule);
  background: var(--surface);
  content: '';
  transform: translateX(-50%) rotate(45deg);
}
.translation-tooltip[data-side='below']::after {
  top: -5px;
  bottom: auto;
  transform: translateX(-50%) rotate(225deg);
}
.translation-tooltip-caption {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.translation-tooltip-meaning {
  display: block;
  max-height: min(35vh, 14rem);
  overflow: auto;
  font-weight: 600;
}
@media print {
  .translation-hint,
  .translation-tooltip {
    display: none !important;
  }
}
.opening-section-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
  color: var(--teal-dark);
  font-family: var(--interface-font);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.opening-section-label .section-number {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.2rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  color: var(--teal-dark);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 700;
}
.study-guide-intro {
  padding: clamp(1.15rem, 3vw, 1.8rem);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--teal-wash);
}
.study-guide-intro > h3 {
  margin: 0.65rem 0 0.85rem;
  font-size: 1.65em;
  font-weight: 450;
  line-height: 1.2;
}
.study-guide-intro > div {
  max-width: 58ch;
}
.study-label,
.study-check-note,
.study-reference-link,
.study-back {
  font-family: var(--interface-font);
  font-size: 0.78em;
  line-height: 1.55;
}
.study-label {
  display: block;
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.045em;
}
.study-topic-nav {
  display: grid;
  gap: 0.6rem;
  margin: 1.4rem 0 1rem;
  font-family: var(--interface-font);
  font-size: 0.9em;
}
.study-topic-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 0.6rem;
  background: var(--surface);
  text-decoration: none;
  line-height: 1.5;
}
.study-topic-nav a > span:first-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.reader-page .study-topic {
  min-width: 0;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 6rem;
}
.study-topic-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.study-step {
  display: grid;
  place-items: center;
  flex: 0 0 2.5rem;
  min-height: 2.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.65rem;
  color: var(--teal-dark);
  background: var(--teal-wash);
  font-family: var(--interface-font);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}
.reader-page .study-topic h3 {
  margin: 0;
  padding: 0;
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1.3;
}
.reader-page .study-topic h4 {
  margin: 1.8rem 0 1rem;
  font-family: var(--interface-font);
  font-size: 0.95em;
  line-height: 1.5;
}
.reader-page .study-topic p {
  margin: 0 0 1.2em;
  line-height: max(1.7, var(--text-spacing));
  text-align: start;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
.study-examples {
  display: grid;
  gap: 1.6rem;
}
.study-example {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  background: var(--field);
}
.reader-page .study-example .study-sentence {
  margin: 0.75rem 0 1.25rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--teal);
  font-size: 1.17em;
  font-weight: 500;
  line-height: 1.55;
}
.study-topic details {
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
}
.study-topic summary,
.lesson-reference > summary {
  min-height: 44px;
  padding: 0.8rem 0;
  color: var(--teal-dark);
  font-family: var(--interface-font);
  font-weight: 650;
  font-size: 0.9em;
  line-height: 1.6;
  cursor: pointer;
}
.study-topic summary:focus-visible,
.lesson-reference > summary:focus-visible,
.study-topic-nav a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 0.3rem;
}
.study-translation > p:first-of-type {
  font-weight: 650;
}
.study-parts {
  display: grid;
  gap: 0.85rem;
  margin: 0.35rem 0 0;
  padding-left: 1.4em;
}
.study-parts > li {
  min-width: 0;
  padding: 0.5rem 0 0.5rem 0.35rem;
}
.study-parts > li::marker {
  color: var(--teal-dark);
  font-family: var(--interface-font);
  font-weight: 650;
}
.reader-page .study-parts .study-part-label {
  margin-bottom: 0.5rem;
}
.study-part-label strong {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-family: var(--interface-font);
  font-size: 0.8em;
}
.reader-page .study-parts li > p:last-child {
  margin-bottom: 0;
}
.study-pitfall,
.study-check {
  margin-top: 1.6rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
}
.study-check {
  background: var(--teal-wash);
}
.reader-page :is(.study-pitfall, .study-check) > h4 {
  margin-top: 0;
}
.study-comparison {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.study-comparison > div {
  min-width: 0;
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--rule);
  background: var(--field);
}
.reader-page .study-comparison p {
  margin: 0.6rem 0 0;
}
.study-check-note {
  margin-top: 0.85rem;
  color: var(--muted);
}
.study-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.7rem;
}
.lesson-reference {
  margin-top: 3rem;
  padding: 0.4rem clamp(0.8rem, 2vw, 1.4rem);
  border: 1px solid var(--rule);
  border-radius: 0.8rem;
  scroll-margin-top: 6rem;
}
.reader-page .lesson-reference > h3 {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.reader-page .lesson-reference > p {
  margin-bottom: 1.5rem;
}
@media screen and (max-width: 650px) {
  .reader-page .study-topic {
    margin-top: 2.2rem;
    padding-top: 1.5rem;
  }
  .study-topic-heading {
    gap: 0.65rem;
  }
  .reader-page .study-topic h3 {
    font-size: 1.3em;
  }
  .study-step {
    flex-basis: 2rem;
    min-height: 2rem;
  }
  .study-example,
  .study-pitfall,
  .study-check {
    padding: 1rem 0.8rem;
  }
}
@media print {
  .study-topic-nav,
  .study-back,
  .study-reference-link {
    display: none;
  }
  .study-topic-heading,
  .study-sentence {
    break-after: avoid;
  }
  .study-example,
  .study-pitfall,
  .study-check {
    box-shadow: none;
  }
}
.course-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  background: var(--teal-wash);
}
.course-hero h1 {
  max-width: 17ch;
  margin: 0.75rem 0 1.25rem;
  font-family: var(--reading-font);
  font-size: clamp(2.3rem, 4.2vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.course-hero .lead {
  max-width: 53ch;
  font-size: 1.05rem;
}
.course-hero .hero-meta,
.course-hero .hero-actions {
  position: relative;
  flex-wrap: wrap;
}
.course-hero::after {
  content: '';
  position: absolute;
  inset: -7rem -7rem auto auto;
  width: 15rem;
  height: 15rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem var(--paper);
  opacity: 0.35;
  pointer-events: none;
}
.course-habit {
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--rule);
  border-radius: 0.8rem;
  background: var(--field);
}
.course-habit p:last-child {
  margin-bottom: 0;
}
.course-reading [lang='pt-BR'] {
  line-height: 1.9;
}
.course-reading > div[lang='pt-BR'] {
  padding: 1.3rem 1.5rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 0.75rem 0.75rem 0;
  background: var(--field);
}
.course-writing-model {
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 0.8rem;
  background: var(--field);
  white-space: normal;
}
.course-writing-model p:last-child {
  margin-bottom: 0;
}
.study-guide {
  max-width: 58rem;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 3rem) 5rem;
  font-family: var(--reading-font);
  font-size: 1.125rem;
  line-height: 1.85;
}
.study-guide h1 {
  font-size: clamp(2.7rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.study-guide h2 {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 1.6rem;
}
.study-guide nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  font-family: var(--interface-font);
  font-size: 0.875rem;
}
.study-guide nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Phone layout: one reading column, clear hierarchy, no changes to text anchors. */
.mobile-reading-label,
.mobile-reading-rail,
.reader-page:not([data-progress-ready]) .reading-progress > label,
.reader-page:not([data-progress-ready]) .reading-progress > progress {
  display: none;
}
@media screen and (max-width: 650px) {
  .reader-page .reader-header {
    gap: 0.5rem;
    min-height: 4rem;
    padding: 0.5rem max(0.75rem, env(safe-area-inset-right, 0px)) 0.5rem
      max(0.75rem, env(safe-area-inset-left, 0px));
  }
  .reader-page .brand-subtitle {
    display: none;
  }
  /* Use the existing sticky header: no new row, fixed panel, or height budget. */
  .reader-page .mobile-reading-label {
    display: block;
    margin-top: 0.2rem;
    color: var(--header-ink);
    font-family: var(--interface-font);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .reader-page .mobile-reading-rail {
    position: absolute;
    inset: auto 0 -1px;
    display: block;
    width: 100%;
    height: 3px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    appearance: none;
    background: #ffffff24;
    color: #c7dcbc;
    accent-color: #c7dcbc;
    pointer-events: none;
  }
  .reader-page .mobile-reading-rail::-webkit-progress-bar {
    background: #ffffff24;
  }
  .reader-page .mobile-reading-rail::-webkit-progress-value {
    border-radius: 0;
    background: #c7dcbc;
  }
  .reader-page .mobile-reading-rail::-moz-progress-bar {
    border-radius: 0;
    background: #c7dcbc;
  }
  .reader-page .reader-actions {
    gap: 0.2rem;
  }
  .reader-page .reader-actions .icon-button,
  .reader-page .reader-actions .notebook-link {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
  }
  .reader-page .reader-actions .icon-button {
    border-color: #ffffff24;
    background: #ffffff08;
  }
  .reader-page .book-layout {
    padding-top: 1rem;
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  }
  .reader-page .reading-topline {
    display: block;
    margin-bottom: 0.85rem;
  }
  .reader-page .reading-topline .reading-breadcrumb {
    display: block;
    color: var(--ink);
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  .reader-page .reading-topline .reading-book-name,
  .reader-page .reading-topline .reading-divider,
  .reader-page .reading-topline .unit-context {
    display: none;
  }
  .reader-page .reading-progress {
    gap: 0;
    margin-bottom: 0;
  }
  .reader-page .reading-progress > label,
  .reader-page .reading-progress > progress {
    display: none;
  }
  .reader-page .reading-progress #resume-reading {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    color: var(--teal-dark);
    font-size: 0.8125rem;
  }
  @media (forced-colors: active) {
    .reader-page .mobile-reading-rail {
      appearance: auto;
      color: Highlight;
      accent-color: Highlight;
    }
    .reader-page .mobile-reading-rail::-webkit-progress-bar {
      background: Canvas;
    }
    .reader-page .mobile-reading-rail::-webkit-progress-value {
      background: Highlight;
    }
    .reader-page .mobile-reading-rail::-moz-progress-bar {
      background: Highlight;
    }
  }
  .reader-page .course-hero,
  .reader-page .unit-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: clamp(1.1rem, 4.5vw, 1.6rem);
    border-radius: 1rem;
  }
  .reader-page .course-hero::after,
  .reader-page .hero-kicker,
  .reader-page .hero-meta > span:first-child {
    display: none;
  }
  .reader-page .course-hero h1,
  .reader-page .unit-hero h1 {
    margin: 0 0 1rem;
    max-width: 18ch;
    font-size: clamp(2.25rem, 8vw, 3rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
    text-wrap: balance;
  }
  .reader-page .course-hero .lead,
  .reader-page .unit-hero .lead {
    margin-bottom: 1.15rem;
    color: var(--ink);
    font-size: max(1rem, var(--text-size));
    line-height: 1.65;
  }
  .reader-page .hero-meta {
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.8125rem;
  }
  .reader-page .hero-meta > span {
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--rule);
    border-radius: 0.5rem;
    color: var(--ink);
    background: var(--surface);
  }
  .reader-page .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin-top: 1.25rem;
  }
  .reader-page .hero-actions > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem;
    font-size: 0.9375rem;
  }
  .reader-page .hero-actions > a:not(.button) {
    border: 1px solid var(--rule);
    border-radius: 0.7rem;
    background: var(--surface);
    text-decoration: none;
  }
  .reader-page .hero-art img {
    height: 14rem;
    border-radius: 0.75rem;
  }
  .reader-page .lesson-section {
    padding: 1.25rem 1rem;
    border-radius: 0.9rem;
  }
  .reader-page .section-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 1.25rem;
  }
  .reader-page .section-number {
    color: var(--teal-dark);
    font-size: 0.8125rem;
    font-weight: 700;
  }
  .reader-page .section-heading .activity-icon {
    width: 1.8rem;
    height: 1.8rem;
    padding: 0.3rem;
  }
  .reader-page .section-heading h2 {
    grid-column: 1 / -1;
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    line-height: 1.25;
    text-wrap: pretty;
  }
  .reader-page .block-action {
    color: var(--teal-dark);
    opacity: 1;
  }
  .reader-page .course-habit,
  .reader-page .course-reading > div[lang='pt-BR'],
  .reader-page .course-writing-model {
    padding: 1rem 0.75rem;
  }
  .reader-page fieldset.exercise {
    min-width: 0;
    padding: 1rem 0.75rem;
  }
  .reader-page .options label {
    min-height: 44px;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.55;
  }
  .reader-page input[type='text'],
  .reader-page input[type='search'],
  .reader-page textarea,
  .reader-page select {
    font-size: 1rem;
    scroll-margin-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
}
@media screen and (max-width: 360px) {
  .reader-page .reader-header .brand-icon {
    display: none;
  }
}
@media print {
  .course-hero,
  .course-habit,
  .course-reading > div[lang='pt-BR'],
  .course-writing-model {
    break-inside: auto;
    background: transparent;
  }
  .study-guide {
    padding: 0;
    max-width: none;
    font-size: 11pt;
  }
  .study-guide nav,
  .course-hero::after {
    display: none;
  }
}

.reader-page #conteudo pre,
.study-guide pre {
  --code-bg: #2d2a2e;
  --code-fg: #fcfcfa;
  --code-comment: #aaa5ad;
  --code-pink: #ff6188;
  --code-orange: #fc9867;
  --code-yellow: #ffd866;
  --code-green: #a9dc76;
  --code-cyan: #78dce8;
  --code-purple: #ab9df2;
  max-inline-size: 100%;
  margin: 1.35rem 0;
  padding: clamp(1rem, 2.5vw, 1.45rem);
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--code-purple) 24%, #565158);
  border-radius: 0.9rem;
  background: var(--code-bg);
  color: var(--code-fg);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.045),
    0 1rem 2.8rem rgba(22, 19, 23, 0.2);
  scrollbar-color: #5c5760 var(--code-bg);
  tab-size: 2;
}

.reader-page #conteudo pre code,
.study-guide pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    monospace;
  font-size: 0.82em;
  font-style: normal;
  font-weight: 500;
  line-height: 1.7;
  white-space: pre;
  overflow-wrap: normal;
}

.reader-page #conteudo pre code::selection,
.reader-page #conteudo pre code *::selection,
.study-guide pre code::selection,
.study-guide pre code *::selection {
  color: var(--code-fg);
  background: color-mix(in srgb, var(--code-purple) 44%, transparent);
}

.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-comment,
.study-guide [data-code-theme='monokai-pro'] .tok-comment {
  color: var(--code-comment);
  font-style: italic;
}

.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-keyword,
.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-tag,
.study-guide [data-code-theme='monokai-pro'] .tok-keyword,
.study-guide [data-code-theme='monokai-pro'] .tok-tag {
  color: var(--code-pink);
}

.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-string,
.study-guide [data-code-theme='monokai-pro'] .tok-string {
  color: var(--code-yellow);
}

.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-number,
.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-literal,
.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-regexp,
.study-guide [data-code-theme='monokai-pro'] .tok-number,
.study-guide [data-code-theme='monokai-pro'] .tok-literal,
.study-guide [data-code-theme='monokai-pro'] .tok-regexp {
  color: var(--code-purple);
}

.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-function,
.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-attribute,
.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-selector,
.study-guide [data-code-theme='monokai-pro'] .tok-function,
.study-guide [data-code-theme='monokai-pro'] .tok-attribute,
.study-guide [data-code-theme='monokai-pro'] .tok-selector {
  color: var(--code-green);
}

.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-type,
.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-builtin,
.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-namespace,
.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-property,
.study-guide [data-code-theme='monokai-pro'] .tok-type,
.study-guide [data-code-theme='monokai-pro'] .tok-builtin,
.study-guide [data-code-theme='monokai-pro'] .tok-namespace,
.study-guide [data-code-theme='monokai-pro'] .tok-property {
  color: var(--code-cyan);
}

.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-operator,
.study-guide [data-code-theme='monokai-pro'] .tok-operator {
  color: var(--code-pink);
}

.reader-page #conteudo [data-code-theme='monokai-pro'] .tok-punctuation,
.study-guide [data-code-theme='monokai-pro'] .tok-punctuation {
  color: color-mix(in srgb, var(--code-fg) 78%, var(--code-purple));
}

.reader-page #conteudo :not(pre) > code,
.study-guide :not(pre) > code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    monospace;
  font-size: 0.88em;
  font-style: normal;
}

.reader-page .translation-hint {
  border-color: color-mix(in srgb, var(--teal) 24%, var(--rule));
}

@media (prefers-contrast: more) {
  .reader-page #conteudo pre,
  .study-guide pre {
    border-width: 2px;
  }
}

.visual-lab {
  --lab-accent: #ff5c35;
  --lab-ink: #171510;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(15rem, 0.75fr);
  gap: 0;
  margin-block: clamp(2.5rem, 8vw, 6rem);
  overflow: clip;
  color: var(--lab-ink);
  background: #f0ede6;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 4rem rgb(20 18 13 / 0.12);
}

.visual-lab__header {
  grid-column: 1 / -1;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: #fffdf8;
  border-block-end: 1px solid rgb(23 21 16 / 0.16);
}

.visual-lab__header p,
.visual-lab__panel > span {
  margin: 0 0 0.6rem;
  color: #705f51;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
}

.visual-lab__header h3,
.visual-lab__panel h4 {
  margin: 0;
  color: var(--lab-ink);
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.035em;
}

.visual-lab__header h3 {
  max-inline-size: 20ch;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 0.98;
}

.visual-lab__header > span {
  display: block;
  max-inline-size: 62ch;
  margin-block-start: 0.8rem;
  color: #5e574e;
}

.visual-lab__stage {
  position: relative;
  min-block-size: clamp(24rem, 56vw, 37rem);
  overflow: hidden;
  isolation: isolate;
  background: #171510;
}

.visual-lab__stage > :first-child {
  position: absolute;
  inset: 0;
}

.visual-lab__panel {
  display: flex;
  min-inline-size: 0;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  flex-direction: column;
  justify-content: end;
  background: #f3ff75;
  border-inline-start: 1px solid rgb(23 21 16 / 0.18);
}

.visual-lab__panel > span {
  color: #565d12;
}

.visual-lab__panel h4 {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1;
}

.visual-lab__panel p {
  margin: 1rem 0 0;
  color: #33370b;
  font-size: 0.96rem;
  line-height: 1.55;
}

.visual-lab__help {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.85rem 1.25rem;
  color: #5e574e;
  background: #fffdf8;
  border-block-start: 1px solid rgb(23 21 16 / 0.16);
  font-size: 0.8rem;
  line-height: 1.45;
}

.visual-lab kbd {
  padding: 0.12rem 0.35rem;
  color: inherit;
  background: rgb(23 21 16 / 0.07);
  border: 1px solid rgb(23 21 16 / 0.2);
  border-radius: 0.3rem;
  box-shadow: 0 1px 0 rgb(23 21 16 / 0.2);
  font: inherit;
}

.visual-hotspot {
  position: absolute;
  z-index: 8;
  display: grid;
  inline-size: 2.7rem;
  block-size: 2.7rem;
  padding: 0;
  place-items: center;
  color: #171510;
  background: #f3ff75;
  border: 2px solid #171510;
  border-radius: 50%;
  box-shadow:
    0 0 0 0.35rem rgb(243 255 117 / 0.34),
    0 0.65rem 1.4rem rgb(0 0 0 / 0.32);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: help;
  transition:
    scale 160ms ease,
    background-color 160ms ease;
}

.visual-hotspot--a {
  inset-block-start: 18%;
  inset-inline-start: 15%;
}
.visual-hotspot--b {
  inset-block-start: 24%;
  inset-inline-end: 14%;
}
.visual-hotspot--c {
  inset-block-end: 18%;
  inset-inline-start: 22%;
}
.visual-hotspot--d {
  inset-block-end: 20%;
  inset-inline-end: 17%;
}

.visual-hotspot:hover,
.visual-hotspot:focus-visible,
.visual-hotspot[aria-pressed='true'] {
  background: #fff;
  scale: 1.12;
}

.visual-hotspot:focus-visible {
  outline: 4px solid #7c66ff;
  outline-offset: 4px;
}

.visual-hotspot__tooltip {
  position: absolute;
  z-index: 20;
  inset-block-end: calc(100% + 0.75rem);
  inset-inline-start: 50%;
  display: none;
  inline-size: min(17rem, calc(100vw - 2rem));
  max-inline-size: calc(100vw - 2rem);
  padding: 0.85rem;
  color: #fff;
  background: #171510;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 0.35);
  translate: -50% 0;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 450;
  line-height: 1.42;
  overflow-wrap: anywhere;
  text-align: start;
}

/*
 * The stage deliberately clips its artwork. Keep every explanation inside
 * that safe area as well: left hotspots open inward from the left, right
 * hotspots open inward from the right, and the upper pair opens downward.
 */
.visual-hotspot--a .visual-hotspot__tooltip,
.visual-hotspot--c .visual-hotspot__tooltip {
  inset-inline-start: 0;
  translate: 0;
}

.visual-hotspot--b .visual-hotspot__tooltip,
.visual-hotspot--d .visual-hotspot__tooltip {
  inset-inline-start: auto;
  inset-inline-end: 0;
  translate: 0;
}

.visual-hotspot--a .visual-hotspot__tooltip,
.visual-hotspot--b .visual-hotspot__tooltip {
  inset-block-start: calc(100% + 0.75rem);
  inset-block-end: auto;
}

.visual-hotspot__tooltip strong {
  display: block;
  margin-block-end: 0.25rem;
  color: #f3ff75;
}

.visual-hotspot:hover .visual-hotspot__tooltip,
.visual-hotspot:focus-visible .visual-hotspot__tooltip,
.visual-hotspot[aria-pressed='true'] .visual-hotspot__tooltip {
  display: block;
}

/* Shared miniature-browser scene */
.demo-browser {
  margin: 8%;
  overflow: hidden;
  background: #fbf8ef;
  border: 1px solid rgb(255 255 255 / 0.36);
  border-radius: 0.9rem;
  box-shadow: 0 2rem 5rem rgb(0 0 0 / 0.36);
}

.demo-browser__bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0.8rem;
  background: #dfdbd0;
}

.demo-browser__bar i {
  inline-size: 0.48rem;
  block-size: 0.48rem;
  background: #8f897e;
  border-radius: 50%;
}
.demo-anatomy {
  padding: 1rem;
  font-family: system-ui, sans-serif;
}
.demo-anatomy nav {
  display: flex;
  justify-content: space-between;
  font:
    750 0.55rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.08em;
}
.demo-anatomy nav span {
  color: #797269;
  font-weight: 500;
}
.demo-anatomy__hero {
  display: grid;
  min-block-size: 17rem;
  padding-block: 3rem 1rem;
  align-content: center;
}
.demo-anatomy__hero small {
  color: #6455dc;
  font:
    700 0.55rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.08em;
}
.demo-anatomy__hero b {
  margin-block: 0.55rem;
  font:
    600 clamp(1.9rem, 5vw, 3.6rem)/0.9 Georgia,
    serif;
  letter-spacing: -0.06em;
}
.demo-anatomy__hero span {
  max-inline-size: 28ch;
  color: #716a61;
  font-size: 0.72rem;
}
.demo-anatomy__hero em {
  inline-size: fit-content;
  margin-block-start: 1.2rem;
  padding: 0.7rem 0.9rem;
  color: white;
  background: #171510;
  border-radius: 99rem;
  font:
    650 0.62rem/1 system-ui,
    sans-serif;
  font-style: normal;
}

/* Gestalt */
.demo-gestalt {
  display: grid;
  padding: 14%;
  grid-template-columns: 1fr 1fr;
  gap: 18%;
  align-content: center;
  background: #f5efe5;
}
.demo-gestalt__group {
  display: flex;
  gap: 0.5rem;
}
.demo-gestalt__group i {
  flex: 1;
  aspect-ratio: 1;
  background: #201d18;
  border-radius: 50%;
}
.demo-gestalt__group--accent i {
  background: #ff5c35;
}
.demo-gestalt__region {
  grid-column: 1 / -1;
  padding: 1.25rem;
  background: white;
  border: 1px solid #cbc5b8;
}
.demo-gestalt__region b,
.demo-gestalt__region span {
  display: block;
}
.demo-gestalt__region b {
  font:
    700 1.2rem Georgia,
    serif;
}
.demo-gestalt__region span {
  margin-block-start: 0.35rem;
  color: #696258;
  font:
    0.72rem/1.5 system-ui,
    sans-serif;
}

/* Hierarchy */
.demo-hierarchy {
  display: grid;
  padding: 12%;
  align-content: center;
  color: #f7f0e5;
  background: #181512;
}
.demo-hierarchy small {
  color: #ff6044;
  font:
    700 0.65rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.12em;
}
.demo-hierarchy b {
  font:
    500 clamp(3rem, 9vw, 6.4rem)/0.72 Georgia,
    serif;
  letter-spacing: -0.07em;
}
.demo-hierarchy b i {
  color: #ff6044;
  font-weight: 400;
}
.demo-hierarchy p {
  max-inline-size: 32ch;
  color: #bdb5a8;
  font:
    0.8rem/1.55 system-ui,
    sans-serif;
}
.demo-hierarchy > span {
  color: #f7f0e5;
  font:
    700 0.65rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.08em;
}

/* Grid */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 8%;
  color: #111;
  background: #e9ff66;
}
.demo-grid > i {
  border-inline-start: 1px solid rgb(17 17 17 / 0.18);
}
.demo-grid > i:last-of-type {
  border-inline-end: 1px solid rgb(17 17 17 / 0.18);
}
.demo-grid__title {
  position: absolute;
  inset: 13% auto auto 10%;
  font:
    850 clamp(2.5rem, 8vw, 5.8rem)/0.77 system-ui,
    sans-serif;
  letter-spacing: -0.08em;
}
.demo-grid__card {
  position: absolute;
  inset: auto 8% 10% auto;
  padding: 1rem;
  background: #ff5c35;
  border: 2px solid;
  box-shadow: 0.5rem 0.5rem 0 #111;
  font:
    800 0.7rem/1.3 ui-monospace,
    monospace;
}
.demo-grid__card span {
  font-weight: 450;
}

/* Spacing */
.demo-spacing {
  display: grid;
  gap: 2.5rem;
  padding: 14%;
  align-content: center;
  background: #f6f3ed;
}
.demo-spacing > div {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem;
  background: white;
  border: 1px solid #d4cfc4;
}
.demo-spacing b {
  font:
    650 1.25rem Georgia,
    serif;
}
.demo-spacing span {
  color: #716a61;
  font:
    0.72rem/1.45 system-ui,
    sans-serif;
}
.demo-spacing ol {
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  align-items: end;
  list-style: none;
}
.demo-spacing li {
  display: grid;
  inline-size: 2.4rem;
  aspect-ratio: 1;
  place-items: center;
  color: white;
  background: #5b50d6;
  font:
    700 0.62rem/1 ui-monospace,
    monospace;
}
.demo-spacing li:nth-child(2) {
  inline-size: 3rem;
}
.demo-spacing li:nth-child(3) {
  inline-size: 3.7rem;
}
.demo-spacing li:nth-child(4) {
  inline-size: 4.5rem;
}

/* Type */
.demo-type {
  display: grid;
  padding: 13%;
  align-content: center;
  color: #1a1713;
  background: #f1eadc;
}
.demo-type small,
.demo-type > span {
  color: #6e6253;
  font:
    700 0.56rem/1.4 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.demo-type b {
  max-inline-size: 7ch;
  margin-block: 0.6rem 1rem;
  font:
    500 clamp(3.2rem, 9vw, 6.8rem)/0.82 Georgia,
    serif;
  letter-spacing: -0.07em;
}
.demo-type p {
  max-inline-size: 43ch;
  color: #514b43;
  font:
    0.82rem/1.7 Georgia,
    serif;
}

/* Color */
.demo-color {
  display: grid;
  gap: 1.2rem;
  padding: 12%;
  align-content: center;
  background: #f7f3ea;
}
.demo-color__swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  block-size: 4.4rem;
  overflow: hidden;
  border-radius: 0.7rem;
}
.demo-color__swatches i:nth-child(1) {
  background: #171510;
}
.demo-color__swatches i:nth-child(2) {
  background: #5b50d6;
}
.demo-color__swatches i:nth-child(3) {
  background: #ff5c35;
}
.demo-color__swatches i:nth-child(4) {
  background: #f3ff75;
}
.demo-color__message {
  padding: 1rem;
  color: #14563d;
  background: #dff8eb;
  border-inline-start: 0.3rem solid #17875e;
}
.demo-color__message--danger {
  color: #79182e;
  background: #ffe6ec;
  border-color: #b42345;
}
.demo-color__message b,
.demo-color__message span {
  display: block;
  font-family: system-ui, sans-serif;
}
.demo-color__message b {
  font-size: 0.85rem;
}
.demo-color__message span {
  margin-block-start: 0.2rem;
  font-size: 0.68rem;
}

/* Minimalism */
.demo-minimal {
  padding: 8%;
  color: #171510;
  background: #efeadd;
}
.demo-minimal nav {
  display: flex;
  justify-content: space-between;
  font:
    800 0.55rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.12em;
}
.demo-minimal nav span {
  color: #6e675e;
  font-weight: 500;
}
.demo-minimal > div {
  position: absolute;
  z-index: 2;
  inset: 27% auto auto 8%;
}
.demo-minimal small {
  font:
    700 0.55rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.demo-minimal b {
  display: block;
  margin-block: 0.7rem;
  font:
    500 clamp(2.8rem, 8vw, 6rem)/0.82 Georgia,
    serif;
  letter-spacing: -0.07em;
}
.demo-minimal p {
  color: #6b645b;
  font:
    0.75rem/1.4 system-ui,
    sans-serif;
}
.demo-minimal em {
  border-block-end: 2px solid;
  font:
    700 0.62rem/1.8 system-ui,
    sans-serif;
  font-style: normal;
}
.demo-minimal > i {
  position: absolute;
  inset: 17% 9% 12% auto;
  inline-size: 24%;
  background: #cfcec6;
  border-radius: 50% 50% 42% 42%;
  rotate: 8deg;
}

/* Maximalism */
.demo-maximal {
  padding: 8%;
  overflow: hidden;
  color: #2d1156;
  background: repeating-linear-gradient(
    135deg,
    #ffe500 0 22px,
    #ffef68 22px 44px
  );
  border: 0.7rem solid #2d1156;
}
.demo-maximal__tag {
  position: absolute;
  inset: 8% auto auto 8%;
  padding: 0.6rem;
  color: white;
  background: #ff3f78;
  border: 2px solid #2d1156;
  box-shadow: 0.4rem 0.4rem 0 #2d1156;
  rotate: -7deg;
  font:
    800 0.58rem/1.1 ui-monospace,
    monospace;
}
.demo-maximal > b {
  position: absolute;
  z-index: 2;
  inset: 25% auto auto 7%;
  font:
    950 clamp(3.6rem, 11vw, 8rem)/0.66 system-ui,
    sans-serif;
  letter-spacing: -0.1em;
}
.demo-maximal > b i {
  color: #ff3f78;
  -webkit-text-stroke: 2px #2d1156;
}
.demo-maximal p {
  position: absolute;
  inset: auto auto 7% 8%;
  font:
    900 0.65rem/1.5 ui-monospace,
    monospace;
}
.demo-maximal em {
  position: absolute;
  inset: auto 6% 7% auto;
  padding: 0.7rem;
  color: #ffe500;
  background: #2d1156;
  font:
    800 0.58rem/1 ui-monospace,
    monospace;
  font-style: normal;
  rotate: 4deg;
}
.demo-maximal__star {
  position: absolute;
  inset: 9% 10% auto auto;
  color: #ff3f78;
  font-size: 5rem;
  font-style: normal;
}
.demo-maximal__ring {
  position: absolute;
  inset: 28% 2% auto auto;
  inline-size: 12rem;
  aspect-ratio: 1;
  border: 1.3rem solid #3ed9c7;
  border-radius: 50%;
}

/* Skeuomorphism */
.demo-skeuo {
  display: grid;
  padding: 8%;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0, rgb(255 255 255 / 0.16), transparent 42%),
    #2a211b;
}
.demo-skeuo__radio {
  position: relative;
  display: grid;
  inline-size: min(88%, 31rem);
  block-size: min(64%, 20rem);
  grid-template-columns: 1fr 1.2fr 0.7fr;
  gap: 1rem;
  padding: clamp(1.2rem, 5%, 2.2rem);
  align-items: center;
  color: #271d16;
  background:
    linear-gradient(
      90deg,
      rgb(255 255 255 / 0.34),
      transparent 16% 84%,
      rgb(72 42 24 / 0.2)
    ),
    #b97946;
  border: 0.45rem solid #6d4128;
  border-radius: 1.6rem;
  box-shadow:
    inset 0 0.4rem 0 rgb(255 255 255 / 0.32),
    inset 0 -0.55rem 0 rgb(71 40 21 / 0.3),
    0 2rem 3rem rgb(0 0 0 / 0.4);
}
.demo-skeuo__speaker {
  block-size: 70%;
  background:
    radial-gradient(circle, #251f1a 0 1.6px, transparent 1.9px) 0 0 / 0.58rem
      0.58rem,
    #4a3b30;
  border: 0.35rem solid #5b3723;
  border-radius: 0.8rem;
  box-shadow: inset 0 0.5rem 1.5rem rgb(0 0 0 / 0.7);
}
.demo-skeuo__display {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  color: #d8ffad;
  background: #263622;
  border: 0.35rem solid #563521;
  border-radius: 0.5rem;
  box-shadow:
    inset 0 0 1.2rem #050a04,
    0 0.2rem 0 rgb(255 255 255 / 0.22);
  text-shadow: 0 0 0.8rem #95ff72;
}
.demo-skeuo__display small,
.demo-skeuo__display span,
.demo-skeuo__control span,
.demo-skeuo__radio > em {
  font:
    750 0.48rem/1.2 ui-monospace,
    monospace;
  letter-spacing: 0.09em;
}
.demo-skeuo__display b {
  font:
    500 clamp(2rem, 6vw, 4rem)/1 ui-monospace,
    monospace;
}
.demo-skeuo__control {
  display: grid;
  gap: 0.6rem;
  place-items: center;
}
.demo-skeuo__dial {
  position: relative;
  inline-size: clamp(4rem, 11vw, 6rem);
  aspect-ratio: 1;
  background:
    repeating-conic-gradient(#302922 0 4deg, #978c7f 4deg 8deg), #5c544b;
  border: 0.45rem solid #49392e;
  border-radius: 50%;
  box-shadow:
    inset 0.35rem 0.35rem 0.6rem rgb(255 255 255 / 0.22),
    inset -0.4rem -0.4rem 0.8rem rgb(0 0 0 / 0.42),
    0 0.65rem 0.8rem rgb(48 28 17 / 0.45);
  transition: rotate 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.demo-skeuo__dial::after {
  position: absolute;
  inset: 10% 46% 58%;
  background: #eff4dd;
  border-radius: 99rem;
  content: '';
}
.demo-skeuo__radio > em {
  position: absolute;
  inset: auto auto 0.55rem 45%;
  font-style: normal;
}
.visual-lab__stage[data-scene='skeuo'][data-active-spot='2'] .demo-skeuo__dial,
.visual-lab__stage[data-scene='skeuo'][data-active-spot='3'] .demo-skeuo__dial {
  rotate: 58deg;
}

/* Glassmorphism */
.demo-glass {
  background: linear-gradient(135deg, #1d145a, #8d2f9b 48%, #ff694e);
}
.demo-glass__orb {
  position: absolute;
  inline-size: 15rem;
  aspect-ratio: 1;
  background: #34edcb;
  border-radius: 50%;
  filter: blur(0.2rem);
}
.demo-glass__orb--one {
  inset: -8% auto auto -5%;
}
.demo-glass__orb--two {
  inset: auto -8% -12% auto;
  background: #ffcf42;
}
.demo-glass__card {
  position: absolute;
  inset: 14%;
  display: grid;
  padding: 10%;
  align-content: center;
  color: white;
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 1.5rem;
  box-shadow: 0 2rem 4rem rgb(11 4 39 / 0.28);
  backdrop-filter: blur(18px);
}
.demo-glass__card small {
  font:
    700 0.58rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.demo-glass__card b {
  font:
    500 5rem/1 Georgia,
    serif;
}
.demo-glass__card span,
.demo-glass__card p {
  font:
    0.72rem/1.5 system-ui,
    sans-serif;
}
.demo-glass__card hr {
  inline-size: 100%;
  border: 0;
  border-block-start: 1px solid rgb(255 255 255 / 0.4);
}

/* Neomorphism */
.demo-neu {
  display: grid;
  place-items: center;
  background: #e6ebf1;
}
.demo-neu__card {
  display: grid;
  inline-size: min(62%, 18rem);
  aspect-ratio: 0.86;
  padding: 2rem;
  place-items: center;
  color: #3e4853;
  background: #e6ebf1;
  border-radius: 2rem;
  box-shadow:
    1.2rem 1.2rem 2.4rem #bdc2c8,
    -1.2rem -1.2rem 2.4rem #fff;
}
.demo-neu__card small {
  font:
    800 0.6rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.15em;
}
.demo-neu__card b {
  font:
    500 3.5rem/1 Georgia,
    serif;
}
.demo-neu__card > div {
  display: flex;
  gap: 0.8rem;
}
.demo-neu__card i {
  inline-size: 2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    0.35rem 0.35rem 0.7rem #bdc2c8,
    -0.35rem -0.35rem 0.7rem #fff;
}
.demo-neu__card i.is-active {
  box-shadow:
    inset 0.25rem 0.25rem 0.5rem #bdc2c8,
    inset -0.25rem -0.25rem 0.5rem #fff;
}
.demo-neu__card span {
  padding: 0.75rem 1rem;
  border: 1px solid #aeb6bf;
  border-radius: 99rem;
  font:
    700 0.65rem/1 system-ui,
    sans-serif;
}

/* Claymorphism */
.demo-clay {
  display: grid;
  padding: 9%;
  place-items: center;
  background: linear-gradient(145deg, #ffcfb7, #b7a2ff 52%, #72e0d0);
}
.demo-clay__card {
  position: relative;
  display: grid;
  inline-size: min(76%, 25rem);
  min-block-size: 54%;
  gap: 0.8rem;
  padding: clamp(1.6rem, 8%, 3rem);
  align-content: center;
  color: #2f2454;
  background: #ac91ff;
  border: 0.18rem solid rgb(255 255 255 / 0.45);
  border-radius: 2.8rem;
  box-shadow:
    0 1.35rem 0 #735ac5,
    0 2rem 3rem rgb(64 41 120 / 0.28),
    inset 0.7rem 0.8rem 1.2rem #dcd0ff,
    inset -0.8rem -0.9rem 1.2rem #8167d5;
  transition: translate 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.demo-clay__card small {
  color: #50378d;
  font:
    850 0.55rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.12em;
}
.demo-clay__card b {
  max-inline-size: 13ch;
  font:
    750 clamp(1.8rem, 5vw, 3.4rem)/0.95 system-ui,
    sans-serif;
  letter-spacing: -0.06em;
}
.demo-clay__card > span {
  inline-size: fit-content;
  padding: 0.75rem 1rem;
  color: #fff;
  background: #3d2d79;
  border-radius: 99rem;
  box-shadow:
    0 0.45rem 0 #241b4a,
    inset 0 0.2rem 0 rgb(255 255 255 / 0.24);
  font:
    750 0.62rem/1 system-ui,
    sans-serif;
}
.demo-clay__badge,
.demo-clay__orb {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
  box-shadow:
    0 0.65rem 0 rgb(71 52 133 / 0.4),
    inset 0.35rem 0.4rem 0.7rem rgb(255 255 255 / 0.55),
    inset -0.4rem -0.45rem 0.7rem rgb(77 56 145 / 0.38);
  transition: translate 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.demo-clay__badge {
  position: absolute;
  inset: -1.2rem 1.8rem auto auto;
  inline-size: 4.2rem;
  aspect-ratio: 1;
  color: #3d2d79;
  background: #ffdd6f;
  font:
    850 1.6rem/1 system-ui,
    sans-serif;
}
.demo-clay__orb {
  position: absolute;
  z-index: -1;
  inline-size: 6rem;
  aspect-ratio: 1;
  color: #604910;
  background: #ffda63;
  font-size: 1.5rem;
}
.demo-clay__orb--one {
  inset: 7% auto auto 5%;
  rotate: -12deg;
}
.demo-clay__orb--two {
  inset: auto 4% 5% auto;
  background: #ff8ca1;
}
.visual-lab__stage[data-scene='clay'][data-active-spot='1'] .demo-clay__card {
  translate: 0 -0.6rem;
}
.visual-lab__stage[data-scene='clay'][data-active-spot='3'] .demo-clay__badge,
.visual-lab__stage[data-scene='clay'][data-active-spot='4'] .demo-clay__orb {
  translate: 0 -0.7rem;
}

/* Brutalism */
.demo-brutal {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  grid-template-rows: 1.4fr 0.7fr;
  gap: 0.65rem;
  padding: 6%;
  background: #151515;
}
.demo-brutal > div {
  padding: 1rem;
  border: 2px solid #f8f0e5;
}
.demo-brutal__lead {
  color: #151515;
  background: #f3ff75;
}
.demo-brutal__lead small {
  font:
    800 0.55rem/1 ui-monospace,
    monospace;
}
.demo-brutal__lead b {
  display: block;
  font:
    800 clamp(2.5rem, 7vw, 5rem)/0.8 system-ui,
    sans-serif;
  letter-spacing: -0.08em;
}
.demo-brutal__metric {
  color: white;
  background: #5b50d6;
}
.demo-brutal__metric b {
  display: block;
  font:
    700 4rem/1 Georgia,
    serif;
}
.demo-brutal__metric span {
  font:
    0.7rem/1 ui-monospace,
    monospace;
}
.demo-brutal__quote {
  color: #151515;
  background: #ff684c;
  font:
    600 1rem/1.25 Georgia,
    serif;
}
.demo-brutal__action {
  display: grid;
  place-items: end start;
  color: white;
  background: #151515;
  font:
    800 0.62rem/1 ui-monospace,
    monospace;
}

/* Liquid Glass */
.demo-liquid {
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 72% 22%, #ffcc78 0 7%, transparent 23%),
    radial-gradient(circle at 24% 72%, #71efe0 0 7%, transparent 27%),
    linear-gradient(135deg, #36175f, #5156c8 48%, #f56292);
}
.demo-liquid::before,
.demo-liquid::after {
  position: absolute;
  inline-size: 19rem;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 0.26);
  border-radius: 47% 53% 35% 65%;
  content: '';
  rotate: 24deg;
}
.demo-liquid::before {
  inset: -14% auto auto -9%;
  background: rgb(117 246 220 / 0.2);
}
.demo-liquid::after {
  inset: auto -14% -20% auto;
  background: rgb(255 189 91 / 0.22);
  rotate: -18deg;
}
.demo-liquid__content {
  position: absolute;
  inset: 13% auto auto 9%;
  display: grid;
  gap: 0.7rem;
}
.demo-liquid__content small {
  font:
    750 0.55rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.12em;
}
.demo-liquid__content b {
  font:
    500 clamp(3.2rem, 10vw, 7.5rem)/0.75 Georgia,
    serif;
  letter-spacing: -0.08em;
}
.demo-liquid__content span {
  max-inline-size: 24ch;
  font:
    550 0.72rem/1.45 system-ui,
    sans-serif;
}
.demo-liquid__glow {
  position: absolute;
  inset: auto 18% 11% auto;
  inline-size: 10rem;
  aspect-ratio: 1;
  background: #ffdc82;
  border-radius: 50%;
  filter: blur(2.5rem);
  opacity: 0.75;
}
.demo-liquid__bar {
  position: absolute;
  z-index: 2;
  inset: auto 10% 8%;
  display: flex;
  min-block-size: 4.4rem;
  padding: 0.55rem;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(
      115deg,
      rgb(255 255 255 / 0.38),
      rgb(255 255 255 / 0.08) 45%,
      rgb(255 255 255 / 0.25)
    ),
    rgb(35 20 77 / 0.24);
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 99rem;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.74),
    inset 0 -1px 0 rgb(26 10 62 / 0.28),
    0 1.2rem 3rem rgb(21 9 55 / 0.38);
  backdrop-filter: blur(18px) saturate(1.5);
  transition:
    inset-inline 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-radius 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.demo-liquid__bar i,
.demo-liquid__bar b {
  display: grid;
  min-inline-size: 3.2rem;
  block-size: 3.2rem;
  padding-inline: 0.8rem;
  place-items: center;
  border-radius: 99rem;
  font-style: normal;
}
.demo-liquid__bar b {
  grid-auto-flow: column;
  gap: 0.5rem;
  color: #281655;
  background: rgb(255 255 255 / 0.72);
  box-shadow: inset 0 1px 0 #fff;
  font:
    750 0.62rem/1 system-ui,
    sans-serif;
}
.visual-lab__stage[data-scene='liquid'][data-active-spot='2'] .demo-liquid__bar,
.visual-lab__stage[data-scene='liquid'][data-active-spot='3']
  .demo-liquid__bar {
  inset-inline: 5%;
  border-radius: 1.7rem;
}

/* Spatial UI */
.demo-spatial {
  perspective: 900px;
  transform-style: preserve-3d;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgb(134 197 255 / 0.24),
      transparent 38%
    ),
    linear-gradient(#070b1c, #16274b 70%, #233653);
}
.demo-spatial__horizon {
  position: absolute;
  inset: 56% -20% -35%;
  background:
    linear-gradient(rgb(121 178 255 / 0.22) 1px, transparent 1px) 0 0 / 100%
      2.4rem,
    linear-gradient(90deg, rgb(121 178 255 / 0.2) 1px, transparent 1px) 0 0 /
      2.4rem 100%;
  transform: rotateX(68deg);
  transform-origin: 50% 0;
  mask-image: linear-gradient(#000, transparent 82%);
}
.demo-spatial__panel {
  position: absolute;
  display: grid;
  gap: 0.45rem;
  padding: 1.1rem;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.2),
    rgb(105 158 255 / 0.08)
  );
  border: 1px solid rgb(192 224 255 / 0.48);
  border-radius: 1.2rem;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.48),
    0 1.5rem 3rem rgb(0 0 0 / 0.35);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms ease,
    filter 260ms ease;
}
.demo-spatial__panel small {
  color: #9ed8ff;
  font:
    750 0.48rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.12em;
}
.demo-spatial__panel b {
  font:
    650 clamp(1rem, 3vw, 1.8rem)/1.05 system-ui,
    sans-serif;
}
.demo-spatial__panel span {
  color: #d2e5ff;
  font:
    550 0.58rem/1.3 system-ui,
    sans-serif;
}
.demo-spatial__panel--back {
  inset: 12% 28% auto;
  opacity: 0.46;
  filter: blur(1px);
  transform: translateZ(-120px) scale(0.86);
}
.demo-spatial__panel--middle {
  inset: 35% auto auto 10%;
  inline-size: 40%;
  opacity: 0.75;
  transform: translateZ(-35px) rotateY(8deg);
}
.demo-spatial__panel--front {
  inset: auto 9% 12% auto;
  inline-size: 44%;
  transform: translateZ(72px) rotateY(-7deg);
}
.demo-spatial__focus {
  position: absolute;
  z-index: 3;
  inset: 62% 27% auto auto;
  inline-size: 3.2rem;
  aspect-ratio: 1;
  border: 2px solid #b6e8ff;
  border-radius: 50%;
  box-shadow:
    0 0 0 0.5rem rgb(130 211 255 / 0.15),
    0 0 1.5rem #70cdff;
}
.visual-lab__stage[data-scene='spatial'][data-active-spot='1']
  .demo-spatial__panel--back,
.visual-lab__stage[data-scene='spatial'][data-active-spot='2']
  .demo-spatial__panel--middle,
.visual-lab__stage[data-scene='spatial'][data-active-spot='3']
  .demo-spatial__panel--front {
  opacity: 1;
  filter: none;
  transform: translateZ(105px) scale(1.03);
}

/* Controls */
.demo-controls {
  display: grid;
  gap: 0.8rem;
  padding: 13%;
  align-content: center;
  background: #f4efe5;
}
.demo-controls > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #cbc5b9;
  border-radius: 0.7rem;
}
.demo-controls span {
  color: #716a61;
  font:
    700 0.55rem/1 ui-monospace,
    monospace;
}
.demo-controls b {
  padding: 0.75rem 1rem;
  font:
    700 0.65rem/1 system-ui,
    sans-serif;
}
.demo-controls > div:first-child b {
  color: white;
  background: #171510;
  border-radius: 99rem;
}
.demo-controls > div:nth-child(2) b {
  border: 1px solid;
  border-radius: 99rem;
}
.demo-controls > div:nth-child(3) b {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.demo-controls .is-focus b {
  outline: 4px solid #7664ff;
  outline-offset: 3px;
  border-radius: 0.3rem;
}

/* Form */
.demo-form {
  display: grid;
  gap: 0.7rem;
  padding: 11%;
  align-content: center;
  color: #1b1916;
  background: #f8f5ee;
}
.demo-form small {
  color: #5b50d6;
  font:
    800 0.55rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.demo-form > b {
  font:
    500 2.2rem/1 Georgia,
    serif;
}
.demo-form label {
  display: grid;
  gap: 0.35rem;
  font:
    700 0.62rem/1.4 system-ui,
    sans-serif;
}
.demo-form label > span {
  padding: 0.7rem;
  background: white;
  border: 1px solid #aaa39a;
  border-radius: 0.4rem;
  font-weight: 450;
}
.demo-form label em {
  color: #6d665e;
  font-size: 0.55rem;
  font-weight: 450;
  font-style: normal;
}
.demo-form label > span.is-error {
  border-color: #ad1d3e;
}
.demo-form label > span i {
  display: block;
  margin-block-start: 0.35rem;
  color: #87142e;
  font-size: 0.55rem;
  font-style: normal;
}
.demo-form > strong {
  inline-size: fit-content;
  padding: 0.8rem 1.1rem;
  color: white;
  background: #171510;
  border-radius: 99rem;
  font:
    700 0.65rem/1 system-ui,
    sans-serif;
}

/* States */
.demo-states {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  padding: 7%;
  background: #ddd7cc;
}
.demo-states > div {
  display: grid;
  padding: 1rem;
  align-content: center;
  background: #fffdf8;
  border: 1px solid #c7c0b4;
}
.demo-states small {
  color: #6a635b;
  font:
    800 0.5rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.demo-states b {
  margin-block: 0.4rem;
  font:
    600 1rem/1.1 Georgia,
    serif;
}
.demo-states span {
  color: #5b50d6;
  font:
    700 0.58rem/1.2 system-ui,
    sans-serif;
}
.demo-states i {
  inline-size: 65%;
  block-size: 0.45rem;
  overflow: hidden;
  background: #e2ded6;
  border-radius: 99rem;
}
.demo-states i::after {
  content: '';
  display: block;
  inline-size: 55%;
  block-size: 100%;
  background: #5b50d6;
}

/* Responsive */
.demo-responsive {
  display: flex;
  padding: 8%;
  align-items: end;
  justify-content: center;
  gap: 1rem;
  background: #e9ff66;
}
.demo-device {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
  background: #fff;
  border: 0.3rem solid #171510;
  border-radius: 0.65rem;
  box-shadow: 0.4rem 0.4rem 0 #ff5c35;
}
.demo-device--phone {
  inline-size: 19%;
  aspect-ratio: 0.55;
}
.demo-device--tablet {
  inline-size: 30%;
  aspect-ratio: 0.75;
}
.demo-device--desktop {
  inline-size: 43%;
  aspect-ratio: 1.35;
}
.demo-device i {
  block-size: 10%;
  background: #171510;
}
.demo-device b {
  block-size: 35%;
  background: #5b50d6;
}
.demo-device span {
  display: block;
  block-size: 16%;
  background: #ddd8ce;
}
.demo-device--tablet {
  grid-template-columns: 1fr 1fr;
}
.demo-device--tablet i,
.demo-device--tablet b {
  grid-column: 1 / -1;
}
.demo-device--desktop {
  grid-template-columns: 1.5fr 1fr;
}
.demo-device--desktop i {
  grid-column: 1 / -1;
}
.demo-device--desktop b {
  grid-row: span 2;
  block-size: 100%;
}

/* Accessibility */
.demo-access {
  display: grid;
  gap: 2rem;
  padding: 12%;
  align-content: center;
  color: #f8f4eb;
  background: #201d34;
}
.demo-access p {
  font:
    700 0.7rem/1.4 ui-monospace,
    monospace;
}
.demo-access kbd {
  background: #f3ff75;
  color: #171510;
}
.demo-access > div {
  display: flex;
  gap: 1rem;
}
.demo-access > div span {
  display: grid;
  inline-size: 3.5rem;
  aspect-ratio: 1;
  place-items: center;
  background: #4b4568;
  border-radius: 0.6rem;
  font:
    800 0.7rem/1 ui-monospace,
    monospace;
}
.demo-access > div span.is-focus {
  outline: 0.3rem solid #f3ff75;
  outline-offset: 0.3rem;
}
.demo-access > b {
  font:
    500 2.2rem/1 Georgia,
    serif;
}
.demo-access > b i {
  color: #f3ff75;
}

/* Theme */
.demo-theme {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8%;
  gap: 0.8rem;
  background: #a9a2b7;
}
.demo-theme > div {
  display: grid;
  padding: 1.2rem;
  align-content: end;
  border-radius: 0.8rem;
  box-shadow: 0 1rem 2rem rgb(0 0 0 / 0.16);
}
.demo-theme small {
  font:
    800 0.55rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.demo-theme b {
  margin-block: 0.5rem;
  font:
    500 1.8rem/1 Georgia,
    serif;
}
.demo-theme span {
  font:
    0.65rem/1.4 system-ui,
    sans-serif;
}
.demo-theme__light {
  color: #1a1814;
  background: #fffaf1;
}
.demo-theme__dark {
  color: #f4f0e8;
  background: #24232a;
}

/* Motion */
.demo-motion {
  display: flex;
  padding: 9%;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: white;
  background: #18151f;
}
.demo-motion > div {
  display: grid;
  inline-size: 27%;
  aspect-ratio: 1;
  padding: 0.7rem;
  place-items: center;
  background: #5b50d6;
  border-radius: 50%;
}
.demo-motion > div:last-child {
  color: #171510;
  background: #f3ff75;
}
.demo-motion span {
  font:
    700 0.52rem/1 ui-monospace,
    monospace;
}
.demo-motion b {
  font:
    600 0.7rem/1 system-ui,
    sans-serif;
}
.demo-motion > i {
  color: #ff6a4b;
  font-size: 2rem;
  font-style: normal;
}

/* Microinteraction */
.demo-micro {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 1rem;
  padding: 13%;
  place-content: center;
  align-items: center;
  color: white;
  background: #271632;
}
.demo-micro > div {
  display: grid;
  inline-size: 6rem;
  aspect-ratio: 1;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  color: #b12963;
  font-size: 3rem;
}
.demo-micro > div.is-active {
  color: white;
  background: #d53a75;
  box-shadow: 0 0 0 0.6rem rgb(213 58 117 / 0.25);
}
.demo-micro > div span {
  font:
    700 0.5rem/1 system-ui,
    sans-serif;
}
.demo-micro > i {
  color: #f3ff75;
  font-size: 2rem;
  font-style: normal;
}
.demo-micro p {
  grid-column: 1 / -1;
  max-inline-size: 34ch;
  text-align: center;
  font:
    0.72rem/1.5 system-ui,
    sans-serif;
}

/* Ethics */
.demo-ethics {
  display: grid;
  gap: 0.8rem;
  padding: 12%;
  align-content: center;
  color: #1c1915;
  background: #f5f1e9;
}
.demo-ethics small {
  color: #5b50d6;
  font:
    800 0.55rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.demo-ethics b {
  max-inline-size: 14ch;
  font:
    550 2rem/1 Georgia,
    serif;
}
.demo-ethics p {
  max-inline-size: 43ch;
  color: #696158;
  font:
    0.7rem/1.5 system-ui,
    sans-serif;
}
.demo-ethics > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.demo-ethics > div span {
  padding: 0.75rem;
  border: 1px solid #171510;
  border-radius: 99rem;
  font:
    700 0.58rem/1 system-ui,
    sans-serif;
}
.demo-ethics > div span:first-child {
  color: white;
  background: #171510;
}
.demo-ethics em {
  text-decoration: underline;
  font:
    600 0.58rem/1 system-ui,
    sans-serif;
  font-style: normal;
}

/* Tokens */
.demo-tokens {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 1rem;
  padding: 9%;
  align-items: center;
  color: #171510;
  background: #e8e3da;
}
.demo-tokens > div {
  display: grid;
  gap: 0.5rem;
}
.demo-tokens > div span {
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #bdb5a9;
  font:
    700 0.52rem/1 ui-monospace,
    monospace;
}
.demo-tokens > div i {
  inline-size: 2.2rem;
  aspect-ratio: 1;
  background: #5b50d6;
  border-radius: 50%;
}
.demo-tokens > div b {
  font:
    700 1.1rem/1 ui-monospace,
    monospace;
}
.demo-tokens > strong {
  font-size: 2rem;
}
.demo-tokens section {
  display: grid;
  gap: 0.6rem;
  padding: 1.2rem;
  color: white;
  background: #171510;
  border-radius: 0.8rem;
}
.demo-tokens section small {
  color: #f3ff75;
  font:
    700 0.5rem/1 ui-monospace,
    monospace;
}
.demo-tokens section b {
  font:
    500 1.5rem/1 Georgia,
    serif;
}
.demo-tokens section span {
  inline-size: fit-content;
  padding: 0.6rem;
  color: #171510;
  background: #f3ff75;
  border-radius: 0.6rem;
  font:
    700 0.55rem/1 system-ui,
    sans-serif;
}

/* Components */
.demo-components {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  padding: 10%;
  background: #f3efe7;
}
.demo-components aside,
.demo-components section {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  align-content: center;
  border: 1px solid #beb6aa;
}
.demo-components small {
  font:
    800 0.5rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.demo-components aside b {
  padding: 0.5rem;
  background: #ded9d0;
  font:
    600 0.62rem/1 system-ui,
    sans-serif;
}
.demo-components section span {
  padding: 0.75rem;
  border: 1px solid #171510;
  border-radius: 99rem;
  text-align: center;
  font:
    700 0.58rem/1 system-ui,
    sans-serif;
}
.demo-components section span.is-strong {
  color: white;
  background: #171510;
}
.demo-components section span.is-disabled {
  color: #8a8379;
  border-color: #bdb6ab;
}

/* Handoff */
.demo-handoff {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  padding: 9%;
  color: white;
  background: #151515;
}
.demo-handoff > div {
  display: grid;
  padding: 1.2rem;
  align-content: center;
  border: 2px solid #f3ff75;
}
.demo-handoff small {
  color: #f3ff75;
  font:
    700 0.5rem/1 ui-monospace,
    monospace;
}
.demo-handoff b {
  margin-block: 0.5rem;
  font:
    500 2rem/1 Georgia,
    serif;
}
.demo-handoff span {
  color: #aaa49a;
  font:
    0.65rem/1.3 system-ui,
    sans-serif;
}
.demo-handoff em {
  margin-block-start: 1rem;
  font:
    700 0.58rem/1 ui-monospace,
    monospace;
  font-style: normal;
}
.demo-handoff ul {
  display: grid;
  margin: 0;
  padding: 1rem;
  align-content: center;
  background: #2b2830;
  list-style: none;
}
.demo-handoff li {
  padding-block: 0.55rem;
  border-block-end: 1px solid #4a4550;
  font:
    0.56rem/1.3 ui-monospace,
    monospace;
}

@media (max-width: 760px) {
  .visual-lab {
    grid-template-columns: minmax(0, 1fr);
  }
  .visual-lab__stage {
    min-block-size: 30rem;
  }
  .visual-lab__panel {
    min-block-size: 14rem;
    border-inline-start: 0;
    border-block-start: 1px solid rgb(23 21 16 / 0.18);
  }
  .visual-hotspot__tooltip {
    display: none !important;
  }
  .demo-maximal > b {
    font-size: clamp(3.1rem, 18vw, 6rem);
  }
  .demo-responsive {
    gap: 0.4rem;
    padding-inline: 5%;
  }
  .demo-skeuo__radio {
    block-size: 72%;
    grid-template-columns: 0.8fr 1.2fr;
  }
  .demo-skeuo__control {
    grid-column: 1 / -1;
    grid-auto-flow: column;
  }
  .demo-skeuo__radio > em {
    display: none;
  }
  .demo-clay__card {
    inline-size: 82%;
  }
  .demo-liquid__bar {
    inset-inline: 5%;
  }
  .demo-liquid__bar b span {
    display: none;
  }
  .demo-spatial__panel--middle,
  .demo-spatial__panel--front {
    inline-size: 54%;
  }
}

@media (prefers-contrast: more) {
  .visual-lab {
    border-width: 2px;
  }
  .visual-hotspot {
    border-width: 3px;
    box-shadow: 0 0 0 0.35rem white;
  }
  .visual-lab__panel {
    background: #ffff54;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visual-hotspot,
  .demo-skeuo__dial,
  .demo-clay__card,
  .demo-clay__badge,
  .demo-clay__orb,
  .demo-liquid__bar,
  .demo-spatial__panel {
    transition: none;
  }
}

@media print {
  .visual-lab {
    break-inside: avoid;
    box-shadow: none;
  }
  .visual-hotspot {
    display: none;
  }
  .visual-lab__stage {
    min-block-size: 24rem;
  }
}
