:root {
  --bg:#fff8f4;
  --ink:#2f2421;
  --muted:#75645f;
  --line:#e8dcd5;
  --accent:#924731;
  --accent-ink:#fff8f4;
  --tint:#ffdbcc;
  --paper:#fffcfa;
  --stage:#fff8f4;
  --surface:#f5ece5;
  --mono:ui-monospace,SFMono-Regular,Consolas,monospace;
  --display:"Bricolage Grotesque","Arial Rounded MT Bold",sans-serif;
  font-family:"DM Sans",sans-serif;
  color:var(--ink);
  background:var(--bg);
  color-scheme:light;
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,select {
  font:inherit;
}
button,a,input,summary {
  -webkit-tap-highlight-color:transparent;
}
button,a,summary {
  touch-action:manipulation;
}
a {
  color:inherit;
  text-decoration:none;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:wait;
  opacity:.5;
}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:5px;
}
[hidden] {
  display:none!important;
}
svg {
  display:block;
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.skip-link {
  position:fixed;
  left:16px;
  top:-80px;
  background:var(--tint);
  padding:14px;
  z-index:10;
  border-radius:12px;
}
.skip-link:focus {
  top:12px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.navigation-rail {
  position:fixed;
  inset:0 auto 0 0;
  width:88px;
  background:var(--surface);
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:22px;
  padding:24px 8px;
  z-index:2;
}
.rail-mark {
  margin-bottom:22px;
}
.rail-link {
  width:72px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-size:10px;
  color:var(--muted);
}
.rail-link svg {
  box-sizing:content-box;
  padding:8px 17px;
  width:23px;
  height:23px;
}
.rail-link.active svg {
  border-radius:18px;
  background:var(--tint);
  color:var(--accent);
}
.rail-link:hover svg {
  background:var(--line);
  border-radius:18px;
}
.rail-link span {
  font-weight:600;
}
.rail-bottom {
  margin-top:auto;
  font-size:26px;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:50%;
}
.site-body {
  margin-left:88px;
}
.site-header {
  height:90px;
  padding:0 48px;
  display:flex;
  align-items:center;
  gap:32px;
  max-width:1536px;
  margin:auto;
}
.wordmark {
  font:700 29px var(--display);
  letter-spacing:-1.3px;
  white-space:nowrap;
}
.wordmark-dot {
  color:var(--accent);
}
.site-header nav {
  margin-left:auto;
  display:flex;
  gap:30px;
  align-items:center;
  font-size:13px;
  font-weight:600;
}
.site-header nav a {
  padding:12px 0;
  color:var(--muted);
}
.site-header nav .current {
  color:var(--ink);
}
.site-header nav a:hover {
  text-decoration:underline;
  text-underline-offset:6px;
}
.github-link span {
  margin-left:10px;
}
.icon-button {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  border:0;
  background:var(--surface);
  color:var(--ink);
  border-radius:50%;
  font-size:21px;
}
.icon-button:hover {
  background:var(--tint);
}
.theme-button svg {
  width:20px;
  height:20px;
}
main,footer {
  max-width:1536px;
  margin:auto;
}
.hero {
  margin:18px 36px 56px;
  padding:49px 44px 45px;
  background:#f5e2d8;
  border-radius:36px;
  position:relative;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:20px;
  overflow:hidden;
  color:#39251f;
  isolation:isolate;
}
.eyebrow {
  font-size:10px;
  font-weight:600;
  letter-spacing:1.65px;
}
.hero .eyebrow {
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 19px;
  color:#754a39;
}
.tiny-flower {
  font-size:22px;
  line-height:20px;
}
.hero h1 {
  font:700 clamp(48px,5.5vw,82px)/.99 var(--display);
  letter-spacing:-3.5px;
  margin:0 0 22px;
}
.hero h1>span {
  color:#98523b;
}
.hero-description {
  font-size:14px;
  line-height:1.7;
  color:#71574e;
  margin:0 0 27px;
}
.hero-cta {
  display:inline-flex;
  align-items:center;
  gap:28px;
  padding:15px 21px;
  background:#7e3e29;
  color:#fff5ee;
  font-size:12px;
  font-weight:600;
  border-radius:28px;
}
.hero-cta:hover {
  background:#61301f;
}
.hero-platform {
  display:block;
  font-size:10px;
  color:#796357;
  margin-top:20px;
}
.hero-art {
  position:relative;
  min-height:285px;
  max-width:420px;
  width:100%;
  align-self:center;
  justify-self:end;
}
.art-orbit {
  position:absolute;
  inset:-18px 8px 12px;
  border:1px solid #c9aa9770;
  border-radius:50%;
  transform:rotate(-25deg);
}
.art-type {
  position:absolute;
  left:8px;
  top:3px;
  background:#d1c2e8;
  color:#49345e;
  font:700 100px/1 var(--display);
  padding:29px 36px 20px;
  border-radius:44px 44px 10px 44px;
  transform:rotate(-9deg);
  box-shadow:0 5px 0 #57425a08;
}
.art-type>span {
  display:block;
  font:400 10px "DM Sans",sans-serif;
  letter-spacing:1px;
  text-align:center;
  margin-top:8px;
}
.art-number {
  position:absolute;
  bottom:23px;
  left:88px;
  background:#f4c35e;
  color:#4c3619;
  padding:18px 25px;
  border-radius:54px;
  transform:rotate(7deg);
  font:700 59px/.95 var(--display);
  letter-spacing:-4px;
  white-space:nowrap;
}
.art-number>span:first-child {
  display:inline-block;
  transform:translateY(-4px);
  color:#9b5d23;
}
.art-number-arrow {
  display:inline-flex;
  vertical-align:middle;
  margin-left:18px;
  font:400 34px/1 "DM Sans",sans-serif;
  letter-spacing:0;
}
.art-check {
  position:absolute;
  right:7px;
  top:49px;
  background:#b9cba5;
  color:#344d30;
  border-radius:38% 32% 37% 33%;
  width:134px;
  height:134px;
  transform:rotate(12deg);
}
.art-check:before {
  content:"";
  position:absolute;
  inset:0;
  background:inherit;
  border-radius:inherit;
  transform:rotate(45deg);
  z-index:-1;
}
.art-check svg {
  width:100%;
  height:100%;
  stroke-width:6;
}
.art-star {
  position:absolute;
  top:-24px;
  right:30px;
  font-size:46px;
  color:#ae6b4c;
}
.art-caption {
  position:absolute;
  bottom:-20px;
  right:8px;
  font-size:10px;
  color:#7d6354;
}
.gallery {
  padding:0 48px 53px;
  scroll-margin-top:24px;
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:25px;
}
.collection-title {
  display:flex;
  align-items:center;
  gap:12px;
}
h2 {
  font:700 35px/1.12 var(--display);
  letter-spacing:-1.2px;
  margin:0;
}
.heading-dot {
  color:var(--accent);
}
.total-count {
  font-size:12px;
  font-weight:600;
  display:grid;
  place-items:center;
  background:var(--surface);
  border-radius:50%;
  width:32px;
  height:32px;
}
.section-heading>p {
  font-size:12px;
  color:var(--muted);
  margin:0;
}
.collection-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.filters {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
}
.filters button {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  font-weight:600;
  padding:11px 14px;
  min-height:42px;
  border:1px solid var(--line);
  border-radius:22px;
  background:transparent;
  color:var(--muted);
}
.filters button>span {
  font-size:9px;
  opacity:.8;
}
.filters button[aria-pressed=true] {
  background:var(--ink);
  color:var(--bg);
  border-color:var(--ink);
}
.filters button:hover:not([aria-pressed=true]) {
  background:var(--surface);
}
.search {
  display:flex;
  gap:10px;
  align-items:center;
  min-height:43px;
  padding:0 13px;
  border-radius:24px;
  background:var(--surface);
  width:230px;
  flex-shrink:0;
}
.search svg {
  width:17px;
  height:17px;
  color:var(--muted);
}
.search input {
  min-width:0;
  width:100%;
  padding:10px 0;
  font-size:11px;
  background:none;
  border:0;
  color:var(--ink);
}
.search input::placeholder {
  color:var(--muted);
  opacity:1;
}
.search kbd {
  border:1px solid var(--line);
  border-radius:4px;
  padding:0 4px;
  font-size:11px;
  color:var(--muted);
}
.collection-status {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
  font-size:10px;
  margin:20px 0 15px;
}
.collection-status p {
  margin:0;
}
.collection-status>span>span {
  margin-left:8px;
  font-size:16px;
}
.component-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:27px 20px;
}
.component {
  padding:0;
  text-align:left;
  color:var(--ink);
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:26px;
  overflow:hidden;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.component:hover {
  border-color:var(--accent);
}

.card-visual {
  height:205px;
  display:block;
  position:relative;
  background:var(--preview-bg);
  overflow:hidden;
  border-radius:25px;
}
.card-visual img {
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  mix-blend-mode:darken;
}
.tone-peach {
  --preview-bg:#f7dace;
}
.tone-lilac {
  --preview-bg:#e9e0f4;
}
.tone-green {
  --preview-bg:#e2ebd6;
}
.tone-yellow {
  --preview-bg:#f6e9ba;
}
.preview-label {
  position:absolute;
  top:17px;
  left:19px;
  font-size:8px;
  font-weight:600;
  letter-spacing:1.1px;
  color:#3c302c99;
}

.card-info {
  display:flex;
  flex-direction:column;
  flex:1;
  padding:20px 21px 18px;
}
.card-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  font-size:9px;
  font-weight:600;
  color:var(--muted);
}
.component-index {
  font:9px var(--mono);
  opacity:.8;
}
.component h3 {
  display:block;
  font:700 25px/1.13 var(--display);
  letter-spacing:-.7px;
  margin:10px 0;
}
.component-description {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:11px;
  line-height:1.65;
  color:var(--muted);
  margin-bottom:20px;
}
.component-api {
  display:block;
  font:9px var(--mono);
  color:var(--muted);
  margin-top:auto;
  padding-top:13px;
  border-top:1px solid var(--line);
  overflow-wrap:anywhere;
}
.component-api>span {
  color:var(--accent);
  margin-left:2px;
}
.collection-note {
  color:var(--muted);
  font-size:10px;
  text-align:center;
  line-height:1.7;
  margin:24px 0 0;
}
.empty {
  text-align:center;
  padding:65px 20px;
  background:var(--surface);
  border-radius:28px;
}
.empty>span {
  font-size:50px;
  color:var(--accent);
}
.empty h3 {
  font:700 28px var(--display);
  margin:8px;
}
.empty p {
  font-size:13px;
  color:var(--muted);
  margin:12px 0 22px;
}
.usage {
  margin:15px 48px 54px;
  background:var(--surface);
  border-radius:30px;
  display:grid;
  grid-template-columns:1fr 1.1fr;
  padding:40px;
  gap:40px;
  align-items:center;
  scroll-margin-top:24px;
}
.usage .eyebrow {
  font-size:8px;
  color:var(--accent);
}
.usage h2 {
  font-size:45px;
  margin:20px 0;
  letter-spacing:-1.7px;
}
.usage-intro>p {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  max-width:330px;
}
.text-link {
  display:inline-flex;
  gap:40px;
  align-items:center;
  margin-top:10px;
  font-size:12px;
  font-weight:600;
  color:var(--accent);
}
.text-link:hover {
  text-decoration:underline;
  text-underline-offset:5px;
}
.snapshot-label {
  display:block;
  margin-top:24px;
  font-size:9px;
  line-height:1.6;
  color:var(--muted);
}
.usage-code {
  background:var(--paper);
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--line);
}
.code-label {
  padding:18px 21px;
  border-bottom:1px solid var(--line);
  font:8px var(--mono);
  letter-spacing:.5px;
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
}
.code-dot {
  width:7px;
  height:7px;
  background:var(--accent);
  border-radius:50%;
}
.code-label>span:last-child {
  margin-left:auto;
}
pre {
  font:11px/1.8 var(--mono);
  tab-size:4;
  margin:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.usage pre {
  padding:22px;
  font-size:10px;
  line-height:1.85;
}
.usage-code>p {
  font-size:8px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding:13px 21px;
  margin:0;
}
.syntax-keyword {
  color:#87527a;
}
.syntax-call {
  color:var(--accent);
}
.syntax-string {
  color:#4a6a42;
}
footer {
  padding:26px 48px 30px;
  display:flex;
  align-items:center;
  gap:25px;
  border-top:1px solid var(--line);
}
footer .wordmark {
  font-size:24px;
}
footer p {
  font-size:10px;
  color:var(--muted);
  margin:0;
}
footer>a:last-child {
  font-size:10px;
  color:var(--muted);
  margin-left:auto;
}
footer>a:last-child>span {
  margin-left:10px;
}
dialog {
  width:min(1040px,calc(100% - 48px));
  max-height:calc(100dvh - 48px);
  padding:0;
  border:1px solid var(--line);
  border-radius:30px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 20px 100px #291b2240;
  overflow-y:auto;
}
dialog::backdrop {
  background:#251a25a6;
  backdrop-filter:blur(7px);
}
body:has(dialog[open]) {
  overflow:hidden;
}
.dialog-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 24px;
  border-bottom:1px solid var(--line);
  gap:10px;
}
.dialog-top .eyebrow {
  color:var(--muted);
  font-size:9px;
  display:flex;
  gap:14px;
  align-items:center;
}
.dialog-top .eyebrow>span {
  font:9px var(--mono);
}
.dialog-navigation {
  display:flex;
  align-items:center;
  gap:6px;
}
.dialog-navigation .icon-button {
  width:34px;
  height:34px;
  font-size:16px;
}
.dialog-divider {
  height:20px;
  width:1px;
  background:var(--line);
  margin:0 7px;
}
.inspector {
  display:grid;
  grid-template-columns:1.05fr 1fr;
}
.preview-panel {
  padding:25px 22px 20px;
  background:var(--surface);
  border-radius:0 0 0 30px;
  min-width:0;
}
.stage-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font:8px var(--mono);
  color:var(--muted);
  margin:0 3px 17px;
}
.runtime.ready:before {
  content:'● ';
  color:#547246;
  font-size:9px;
}
.stage {
  position:relative;
  height:320px;
  border-radius:20px;
  overflow:hidden;
  background:var(--stage);
  border:1px solid var(--line);
}
iframe {
  width:100%;
  height:100%;
  border:0;
  display:block;
}
.loading {
  position:absolute;
  inset:0;
  background:var(--stage);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:24px;
}
.loading p {
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
  max-width:320px;
}
.loading button {
  font-size:12px;
  padding:10px 16px;
  border:1px solid var(--line);
  border-radius:20px;
}
.playback {
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:18px;
}
.primary,.secondary {
  padding:13px 20px;
  border:1px solid transparent;
  border-radius:24px;
  font-size:12px;
  font-weight:600;
  min-height:44px;
}
.primary {
  background:var(--accent);
  color:var(--accent-ink);
}
.primary:hover {
  filter:brightness(.9);
}
.secondary {
  background:transparent;
  border-color:var(--line);
  color:var(--ink);
}
.secondary:hover {
  background:var(--tint);
}
.motion-preference {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
  margin:22px 2px 0;
}
.switch-label {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  cursor:pointer;
}
.switch-label input {
  position:absolute;
  opacity:0;
  width:36px;
  height:24px;
}
.switch {
  display:block;
  position:relative;
  width:32px;
  height:20px;
  border:1.5px solid var(--muted);
  border-radius:12px;
  background:var(--line);
}
.switch:before {
  content:'';
  position:absolute;
  width:10px;
  height:10px;
  top:3.5px;
  left:4px;
  border-radius:50%;
  background:var(--muted);
}
.switch-label input:checked+.switch {
  background:var(--accent);
  border-color:var(--accent);
}
.switch-label input:checked+.switch:before {
  background:var(--accent-ink);
  left:16px;
}
.switch-label input:focus-visible+.switch {
  outline:3px solid var(--accent);
  outline-offset:3px;
}
.switch-label input:disabled+.switch {
  opacity:.6;
}
.motion-preference>span {
  font-size:9px;
  color:var(--muted);
  padding-left:41px;
}
.sample-note {
  font-size:9px;
  color:var(--muted);
  line-height:1.6;
  margin:23px 2px 0;
}
.detail-panel {
  padding:29px 28px 24px;
  min-width:0;
}
.detail-category {
  display:inline-block;
  font-size:9px;
  font-weight:600;
  padding:6px 10px;
  border-radius:20px;
  background:var(--tint);
  color:var(--accent);
}
.detail-panel h2 {
  font-size:31px;
  margin:16px 0 14px;
  overflow-wrap:anywhere;
  letter-spacing:-1px;
}
.detail-description {
  font-size:13px;
  line-height:1.8;
  color:var(--muted);
  margin:0 0 28px;
}
.code-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.code-heading h3 {
  font-size:12px;
  margin:0;
}
.code-heading button {
  background:none;
  color:var(--accent);
  border:0;
  font-size:10px;
  padding:7px;
  min-height:30px;
}
.example-code {
  background:var(--surface);
  padding:17px;
  border-radius:14px;
  font-size:10px;
  color:var(--accent);
  margin-bottom:24px;
  line-height:1.85;
}
details {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-bottom:21px;
}
summary {
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  font-size:12px;
  font-weight:600;
  padding:17px 0;
}
summary::-webkit-details-marker {
  display:none;
}
summary>span {
  font-size:20px;
  line-height:1;
}
details[open] summary>span {
  transform:rotate(45deg);
}
.api-content {
  padding-bottom:15px;
}
.generated-note {
  font-size:9px;
  color:var(--muted);
  margin:0 0 12px;
}
.api-content pre {
  font-size:9px;
  background:var(--surface);
  padding:13px;
  border-radius:10px;
}
.api-content p:not(.generated-note) {
  font-size:11px;
  line-height:1.85;
  color:var(--muted);
  margin:13px 0;
}
.source-link {
  display:inline-flex;
  gap:20px;
  font-size:11px;
  font-weight:600;
  color:var(--accent);
}
.source-link:hover {
  text-decoration:underline;
  text-underline-offset:5px;
}
.noscript {
  padding:18px;
  text-align:center;
  background:var(--surface);
  font-size:13px;
}
.dark {
  --bg:#201b19;
  --ink:#f0e2db;
  --muted:#c1ada4;
  --line:#4d3d35;
  --accent:#ffb59a;
  --accent-ink:#4a271b;
  --tint:#5b3527;
  --paper:#29211e;
  --stage:#201b19;
  --surface:#302723;
  color-scheme:dark;
}
.dark .hero {
  background:#422c24;
  color:#ffe5d6;
}
.dark .hero h1>span {
  color:#ffb599;
}
.dark .hero .eyebrow,.dark .hero-description,.dark .hero-platform {
  color:#dfb6a3;
}
.dark .hero-cta {
  background:#ffb59a;
  color:#47281b;
}
.dark .art-caption {
  color:#dfb6a3;
}
.dark .art-orbit {
  border-color:#ca9c7940;
}
.dark .card-visual {
  filter:brightness(.88);
}
.dark .syntax-string {
  color:#adcca1;
}
.dark .syntax-keyword {
  color:#dcb2d4;
}
@media(min-width:1600px) {
  .hero h1 {
    font-size:82px;
  }
  .hero {
    padding:60px 55px;
  }
  .hero-art {
    max-width:450px;
  }
  .card-visual {
    height:240px;
  }
}
@media(max-width:1180px) {
  .site-header {
    padding:0 32px;
  }
  .hero {
    margin:12px 24px 43px;
    padding:40px 32px;
  }
  .hero h1 {
    font-size:61px;
  }
  .hero-art {
    transform:scale(.86);
    transform-origin:right center;
  }
  .hero-description {
    font-size:12px;
  }
  .hero-platform {
    font-size:9px;
  }
  .gallery {
    padding:0 32px 42px;
  }
  .section-heading>p {
    font-size:10px;
  }
  .filters button {
    padding:10px 12px;
    gap:6px;
    font-size:10px;
  }
  .search {
    width:190px;
  }
  .collection-toolbar {
    gap:10px;
  }
  .card-visual {
    height:180px;
  }
  .component h3 {
    font-size:22px;
  }
  .card-info {
    padding:17px;
  }
  .usage {
    margin:10px 32px 40px;
    padding:30px;
    gap:25px;
  }
  .usage h2 {
    font-size:39px;
  }
  footer {
    padding:24px 32px;
  }
  .site-header nav {
    gap:23px;
  }
}
@media(max-width:980px) {
  .navigation-rail {
    width:74px;
  }
  .rail-link {
    width:65px;
  }
  .site-body {
    margin-left:74px;
  }
  .site-header {
    height:80px;
    padding:0 24px;
  }
  .wordmark {
    font-size:26px;
  }
  .hero {
    padding:35px 28px;
    grid-template-columns:1.3fr 1fr;
    gap:0;
  }
  .hero h1 {
    font-size:52px;
    letter-spacing:-2.6px;
  }
  .hero-art {
    transform:scale(.69);
    width:345px;
    margin-left:-95px;
  }
  .hero-description {
    max-width:280px;
  }
  .desktop-break {
    display:none;
  }
  .hero-cta {
    padding:13px 18px;
    font-size:11px;
  }
  .gallery {
    padding-left:24px;
    padding-right:24px;
  }
  .section-heading>p {
    display:none;
  }
  .collection-toolbar {
    align-items:stretch;
    flex-direction:column-reverse;
    gap:13px;
  }
  .search {
    width:100%;
    max-width:100%;
    border:1px solid var(--line);
  }
  .filters button {
    padding:10px 15px;
  }
  .component-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:21px 16px;
  }
  .card-visual {
    height:195px;
  }
  .component h3 {
    font-size:25px;
  }
  .usage {
    margin:10px 24px 36px;
    padding:27px;
    gap:25px;
  }
  .usage h2 {
    font-size:34px;
  }
  .usage pre {
    font-size:9px;
    padding:16px;
  }
  .code-label {
    padding:14px;
    font-size:7px;
  }
  .usage .eyebrow {
    font-size:7px;
  }
  .usage-intro>p {
    font-size:11px;
  }
  footer {
    padding:24px;
    flex-wrap:wrap;
  }
  footer p {
    order:3;
    width:100%;
  }
  .inspector {
    grid-template-columns:1fr 1fr;
  }
  .preview-panel {
    padding:23px 18px;
  }
  .detail-panel {
    padding:26px 22px;
  }
  .stage {
    height:290px;
  }
  .detail-panel h2 {
    font-size:27px;
  }
  .stage-heading {
    font-size:7px;
  }
}
@media(max-width:650px) {
  .navigation-rail {
    display:none;
  }
  .site-body {
    margin-left:0;
  }
  .site-header {
    height:76px;
    padding:0 22px;
    gap:14px;
  }
  .site-header .wordmark {
    font-size:26px;
  }
  .site-header nav {
    gap:16px;
    font-size:11px;
  }
  .site-header nav>a:nth-child(2),.site-header nav .github-link {
    display:none;
  }
  .theme-button {
    width:36px;
    height:36px;
  }
  .hero {
    margin:6px 14px 32px;
    padding:30px 26px 25px;
    grid-template-columns:1fr;
    border-radius:28px;
  }
  .hero .eyebrow {
    font-size:8px;
    letter-spacing:1.4px;
    margin-bottom:17px;
  }
  .hero h1 {
    font-size:clamp(47px,11.8vw,68px);
    letter-spacing:-2.8px;
    margin-bottom:18px;
  }
  .hero-description {
    font-size:12px;
    max-width:330px;
    line-height:1.8;
    margin-bottom:22px;
  }
  .hero-platform {
    margin-top:16px;
  }
  .hero-art {
    height:240px;
    min-height:240px;
    width:335px;
    justify-self:center;
    margin:-2px -15px -18px 0;
    transform:scale(.76);
    transform-origin:center center;
  }
  .art-caption {
    bottom:-17px;
  }
  .art-number {
    bottom:0;
  }
  .art-star {
    top:-7px;
  }
  .gallery {
    padding:0 20px 30px;
  }
  .collection-title {
    gap:9px;
  }
  h2 {
    font-size:30px;
  }
  .total-count {
    width:27px;
    height:27px;
    font-size:10px;
  }
  .section-heading {
    margin-bottom:19px;
  }
  .filters {
    gap:5px;
  }
  .filters button {
    padding:10px 12px;
    font-size:10px;
    gap:6px;
  }
  .filters button span {
    font-size:8px;
  }
  .collection-status {
    font-size:9px;
    margin:18px 0 13px;
  }
  .collection-status>span {
    font-size:8px;
  }
  .component-grid {
    gap:16px 12px;
  }
  .component {
    border-radius:20px;
  }
  .card-visual {
    height:145px;
    border-radius:19px;
  }
  .card-info {
    padding:14px 13px;
  }
  .component h3 {
    font-size:22px;
    line-height:1.06;
    letter-spacing:-.8px;
    margin:10px 0;
  }
  .card-meta {
    font-size:8px;
  }
  .component-description {
    font-size:10px;
    line-height:1.65;
    margin-bottom:15px;
    -webkit-line-clamp:3;
  }
  .component-api {
    font-size:7px;
    padding-top:11px;
  }
  .component-index {
    font-size:8px;
  }
  .preview-label {
    left:12px;
    top:12px;
    font-size:6px;
    letter-spacing:.7px;
  }

  .collection-note {
    font-size:9px;
    max-width:300px;
    margin:21px auto 0;
  }
  .usage {
    grid-template-columns:1fr;
    margin:8px 14px 28px;
    padding:29px 23px;
    gap:25px;
    border-radius:25px;
  }
  .usage h2 {
    font-size:41px;
    margin:17px 0;
  }
  .usage .eyebrow {
    font-size:8px;
  }
  .usage-intro>p {
    font-size:12px;
  }
  .usage pre {
    font-size:10px;
    padding:18px;
  }
  .code-label {
    font-size:7px;
    padding:16px;
  }
  .usage-code>p {
    font-size:8px;
    padding:13px 17px;
  }
  .snapshot-label {
    font-size:8px;
    max-width:250px;
  }
  .text-link {
    margin-top:6px;
  }
  footer {
    padding:24px 22px;
    gap:15px;
  }
  footer .wordmark {
    font-size:24px;
  }
  footer p {
    font-size:9px;
  }
  footer>a:last-child {
    font-size:9px;
  }
  dialog {
    width:calc(100% - 20px);
    max-height:calc(100dvh - 24px);
    border-radius:23px;
  }
  .dialog-top {
    padding:12px 17px;
    position:sticky;
    top:0;
    z-index:2;
    background:var(--paper);
  }
  .dialog-top .eyebrow {
    font-size:7px;
    letter-spacing:1px;
    gap:9px;
  }
  .dialog-top .eyebrow>span {
    font-size:8px;
  }
  .dialog-navigation {
    gap:4px;
  }
  .dialog-navigation .icon-button {
    width:31px;
    height:31px;
  }
  .dialog-divider {
    margin:0 4px;
  }
  .inspector {
    display:flex;
    flex-direction:column;
  }
  .preview-panel {
    padding:20px 17px;
    border-radius:0;
    order:1;
  }
  .detail-panel {
    padding:22px 21px 27px;
    display:contents;
  }
  .detail-category,.detail-panel h2,.detail-description {
    margin-left:21px;
    margin-right:21px;
  }
  .detail-category {
    align-self:flex-start;
    margin-top:20px;
  }
  .detail-panel h2 {
    font-size:29px;
    margin-top:13px;
    margin-bottom:8px;
  }
  .detail-description {
    font-size:12px;
    margin-bottom:21px;
  }
  .stage {
    height:245px;
  }
  .stage-heading {
    font-size:8px;
  }
  .playback {
    margin-top:15px;
  }
  .motion-preference {
    margin-top:17px;
  }
  .sample-note {
    margin-top:18px;
  }
  .code-heading,.example-code,details,.source-link {
    order:2;
    margin-left:21px;
    margin-right:21px;
  }
  .code-heading {
    margin-top:24px;
  }
  .example-code {
    font-size:10px;
  }
  details {
    margin-bottom:20px;
  }
  .source-link {
    margin-bottom:25px;
  }
  .detail-description {
    order:0;
  }
  .preview-panel {
    flex-shrink:0;
  }
  .api-content pre {
    font-size:9px;
  }
}
@media(max-width:360px) {
  .hero h1 {
    font-size:43px;
  }
  .hero {
    padding:27px 22px;
  }
  .hero-art {
    margin-left:-30px;
    transform:scale(.68);
  }
  .gallery {
    padding-left:15px;
    padding-right:15px;
  }
  .collection-status>span {
    display:none;
  }
  .filters button {
    padding:10px;
  }
  .component h3 {
    font-size:20px;
  }
  .card-visual {
    height:132px;
  }
  .card-info {
    padding:12px 10px;
  }
  .component-api {
    font-size:6.5px;
  }
  .component-description {
    -webkit-line-clamp:3;
  }
  .dialog-top .eyebrow {
    letter-spacing:.4px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
  }
}
/* Keep the collection within reach on desktop; expression belongs alongside utility. */
@media(min-width:981px) {
  .hero {
    padding-top:32px;
    padding-bottom:32px;
    margin-bottom:40px;
  }
  .hero h1 {
    font-size:64px;
    margin-bottom:18px;
  }
  .hero .eyebrow {
    margin-bottom:13px;
  }
  .hero-description {
    font-size:13px;
    margin-bottom:22px;
  }
  .hero-platform {
    display:inline-block;
    margin:0 0 0 13px;
    font-size:9px;
  }
  .hero-art {
    min-height:275px;
  }
}
/* Live card controls are separate from the optional API disclosure. */
.component { cursor:default; }
.component-description { margin-top:0; }

.card-actions {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin-top:15px;
}
.card-play, .card-details {
  min-height:36px; border:0; font-size:10px; font-weight:600;
}
.card-play {
  padding:9px 13px; border-radius:22px; color:var(--accent); background:var(--tint);
}
.card-play:hover { filter:brightness(.95); }
.card-details { color:var(--muted); background:none; padding:8px 0; }
.card-details:hover { color:var(--accent); text-decoration:underline; text-underline-offset:4px; }
.component.playing { border-color:var(--accent); }

.component.playing .card-play { color:var(--accent-ink); background:var(--accent); }
.inline-preview {
  position:absolute; left:0; top:0; width:1px; height:1px;
  /* Keep the canvas drawable during preparation; do not use display:none/alpha zero. */
  opacity:.001; pointer-events:none; z-index:0; overflow:hidden; border-radius:25px;
  background:var(--stage);
}
.inline-preview iframe {
  position:absolute; width:640px; height:360px; transform-origin:top left;
  pointer-events:none;
}
.inline-preview.live { opacity:1; z-index:1; }
.inline-preview.live iframe { pointer-events:auto; }
.inline-live-label {
  position:absolute; left:19px; top:17px; font-size:8px; letter-spacing:1px;
  font-weight:600; color:var(--ink); background:var(--paper); padding:4px 7px;
  border-radius:9px; pointer-events:none;
}
.collection-options { display:flex; align-items:center; gap:20px; }
.collection-options .switch-label { font-size:10px; }
.collection-options>span { font-size:10px; }
@media(max-width:650px) {
  .card-actions { align-items:stretch; flex-direction:column; gap:2px; margin-top:12px; }
  .card-play { min-height:36px; font-size:10px; padding:8px 12px; align-self:flex-start; }
  .card-details { align-self:flex-start; min-height:32px; font-size:9px; }
  .collection-options>span { display:none; }
  .collection-options .switch-label { font-size:9px; gap:6px; }
  .collection-options .switch { width:28px; height:18px; }
  .collection-options .switch:before { width:8px; height:8px; top:3.5px; }
  .collection-options input:checked+.switch:before { left:14px; }
  .inline-preview { border-radius:19px; }
  .inline-live-label { left:12px; top:10px; font-size:6px; padding:3px 5px; }
}
.preview-placeholder {
  display:flex;
  height:100%;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:12px;
  font-size:12px;
  color:#59483e;
}


.spinner-options {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  padding:16px 0 0;
  margin:18px 0 0;
  border:0;
  border-top:1px solid var(--line);
}
.spinner-options legend {
  padding:0;
  font-size:12px;
  font-weight:600;
  color:var(--ink);
}
.spinner-options label {
  display:flex;
  flex:1 1 150px;
  flex-direction:column;
  gap:7px;
  font-size:11px;
  color:var(--muted);
}
.spinner-options select {
  min-height:44px;
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
  color:var(--ink);
  font-size:12px;
}

/* Google Fonts Material Symbols; Compose uses the matching generated Kotlin vectors. */
.material-symbols-rounded {
  font-family:"Material Symbols Rounded";
  font-weight:400;
  font-style:normal;
  font-size:24px;
  line-height:1;
  display:inline-block;
  white-space:nowrap;
  word-wrap:normal;
  direction:ltr;
  font-feature-settings:"liga";
  -webkit-font-smoothing:antialiased;
  vertical-align:middle;
}
.rail-link .material-symbols-rounded {
  padding:8px 17px;
  font-weight:400;
}
.rail-link.active .material-symbols-rounded {
  border-radius:18px;
  background:var(--tint);
  color:var(--accent);
}
.rail-link:hover .material-symbols-rounded { background:var(--line); border-radius:18px; }
.art-check { display:grid; place-items:center; }
.art-check .material-symbols-rounded { font-size:100px; }
.art-star.material-symbols-rounded { font-size:46px; }
.tiny-flower.material-symbols-rounded { font-size:16px; }
.card-play .material-symbols-rounded, .card-details .material-symbols-rounded { font-size:18px; }

.search .material-symbols-rounded { font-size:17px; color:var(--muted); }
.theme-button .material-symbols-rounded { font-size:20px; }
