:root {
  

  
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #e9ecf2;
  --edge: #d3d9e3;
  --text-1: #0f172a;
  --text-2: #475569;
  
  --text-3: #5f6d82;
  --brand: #be123c;
  --accent: #4f46e5;
  --on-brand: #ffffff;

  
  --info: #0369a1;
  --ok: #047857;
  --warn: #b45309;
  --err: #dc2626;

  
  
  --font-mono:
    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans:
    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    system-ui, sans-serif;

  
  
  --text-display-size: clamp(30px, 1.5rem + 3.2vw, 52px);
  --text-display-weight: 600;
  --text-display-lh: 1.08;
  --text-display-ls: -0.03em;

  --text-h1-size: clamp(25px, 1.35rem + 2.1vw, 38px);
  --text-h1-weight: 600;
  --text-h1-lh: 1.15;
  --text-h1-ls: -0.022em;

  --text-h2-size: clamp(21px, 1.15rem + 1.1vw, 28px);
  --text-h2-weight: 600;
  --text-h2-lh: 1.22;
  --text-h2-ls: -0.016em;

  --text-h3-size: 20px;
  --text-h3-weight: 600;
  --text-h3-lh: 1.3;
  --text-h3-ls: -0.01em;

  --text-body-size: 16px;
  --text-body-weight: 400;
  --text-body-lh: 1.65;
  --text-body-ls: 0;

  --text-small-size: 14px;
  --text-small-weight: 400;
  --text-small-lh: 1.55;
  --text-small-ls: 0;

  --text-label-size: 12px;
  --text-label-weight: 600;
  --text-label-lh: 1.3;
  --text-label-ls: 0.08em;

  --text-code-size: 12px;
  --text-code-weight: 400;
  --text-code-lh: 1.6;
  --text-code-ls: 0;

  
  
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --grid-cols: 12;
  --grid-gutter: 24px;
  --content-max: 1240px;

  
  
  --rule: 1px solid var(--edge);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-overlay: 0 12px 32px -8px rgb(15 23 42 / 24%);
  --shadow-toast: 0 8px 24px -6px rgb(15 23 42 / 20%);
  --focus-ring: 2px solid var(--accent);
  --focus-offset: 2px;

  
  
  --dur-fast: 120ms; 
  --dur-base: 180ms; 
  --dur-slow: 280ms; 
  --dur-lazy: 420ms; 
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-base: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-lazy: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme='dark'],
:root:not([data-theme='light']) {
  --bg: #040710;
  --surface: #0f172a;
  --surface-2: #16203a;
  --edge: #24314f;
  --text-1: #f8fafc;
  --text-2: #a4b1c6;
  --text-3: #7d8da6;
  --brand: #f43f5e;
  --accent: #818cf8;
  --on-brand: #070d19;

  --info: #38bdf8;
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;

  --shadow-overlay: 0 12px 32px -8px rgb(0 0 0 / 64%);
  --shadow-toast: 0 8px 24px -6px rgb(0 0 0 / 56%);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f2f4f8;
    --surface: #ffffff;
    --surface-2: #e9ecf2;
    --edge: #d3d9e3;
    --text-1: #0f172a;
    --text-2: #475569;
    --text-3: #5f6d82;
    --brand: #be123c;
    --accent: #4f46e5;
    --on-brand: #ffffff;

    --info: #0369a1;
    --ok: #047857;
    --warn: #b45309;
    --err: #dc2626;

    --shadow-overlay: 0 12px 32px -8px rgb(15 23 42 / 24%);
    --shadow-toast: 0 8px 24px -6px rgb(15 23 42 / 20%);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.01ms;
    --dur-base: 0.01ms;
    --dur-slow: 0.01ms;
    --dur-lazy: 0.01ms;
  }
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-var.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-var.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-lh);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-mono);
  margin: 0;
  color: var(--text-1);
}

p {
  margin: 0 0 var(--space-4);
  color: var(--text-2);
  max-width: 68ch;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-fast);
}

a:hover {
  color: var(--text-1);
}

code,
pre,
kbd {
  font-family: var(--font-mono);
  font-size: var(--text-code-size);
  line-height: var(--text-code-lh);
}

:is(h1, h2, h3, h4, .t-display, .t-h1, .t-h2, .t-h3) code {
  font-size: 0.86em;
  color: var(--text-2);
}

img,
svg {
  max-width: 100%;
}

hr {
  border: 0;
  border-top: var(--rule);
  margin: var(--space-7) 0;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

.t-display,
.t-h1,
.t-h2,
.t-h3,
.t-label,
.t-code {
  font-family: var(--font-mono);
}

.t-display {
  font-size: var(--text-display-size);
  font-weight: var(--text-display-weight);
  line-height: var(--text-display-lh);
  letter-spacing: var(--text-display-ls);
}

.t-h1 {
  font-size: var(--text-h1-size);
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-lh);
  letter-spacing: var(--text-h1-ls);
}

.t-h2 {
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-lh);
  letter-spacing: var(--text-h2-ls);
}

.t-h3 {
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-lh);
  letter-spacing: var(--text-h3-ls);
}

.t-body {
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-lh);
}

.t-small {
  font-family: var(--font-sans);
  font-size: var(--text-small-size);
  font-weight: var(--text-small-weight);
  line-height: var(--text-small-lh);
  color: var(--text-2);
}

.t-label {
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  line-height: var(--text-label-lh);
  letter-spacing: var(--text-label-ls);
  text-transform: uppercase;
  color: var(--text-3);
}

.t-code {
  font-size: var(--text-code-size);
  font-weight: var(--text-code-weight);
  line-height: var(--text-code-lh);
}

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  gap: var(--grid-gutter);
}

.stack > * + * {
  margin-top: var(--space-4);
}

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

section {
  padding-block: var(--space-8);
  border-top: var(--rule);
}

section:first-of-type {
  border-top: 0;
}

.section-head {
  margin-bottom: var(--space-5);
}

.section-head h2 {
  margin-bottom: var(--space-2);
}

.skip {
  position: absolute;
  left: var(--space-3);
  top: calc(var(--space-3) * -10);
  z-index: 100;
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  transition: top var(--dur-fast) var(--ease-fast);
}

.skip:focus {
  top: var(--space-3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: var(--space-4);
  }

  section {
    padding-block: var(--space-7);
  }
}

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text-1);
  --btn-edge: var(--edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 38px;
  padding: 0 var(--space-4);
  border: 1px solid var(--btn-edge);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: var(--text-small-size);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-fast),
    border-color var(--dur-fast) var(--ease-fast),
    color var(--dur-fast) var(--ease-fast);
}

.btn:hover:not(:disabled) {
  --btn-bg: var(--surface-2);
  --btn-edge: var(--text-3);
}

.btn:active:not(:disabled) {
  --btn-bg: var(--edge);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn[data-loading='true'] {
  cursor: progress;
  color: transparent;
  position: relative;
}

.btn[data-loading='true']::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid var(--text-3);
  border-top-color: var(--text-1);
  border-radius: 50%;
  animation: btn-spin 700ms linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn[data-loading='true']::after {
    animation: none;
    border-color: var(--text-3);
    border-top-color: var(--text-3);
  }
}

.btn-brand {
  --btn-bg: var(--brand);
  --btn-fg: var(--on-brand);
  --btn-edge: var(--brand);
}

.btn-brand:hover:not(:disabled) {
  --btn-bg: color-mix(in srgb, var(--brand) 86%, var(--text-1));
  --btn-edge: var(--btn-bg);
}

.btn-brand:active:not(:disabled) {
  --btn-bg: color-mix(in srgb, var(--brand) 74%, var(--text-1));
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-edge: transparent;
  --btn-fg: var(--text-2);
}

.btn-ghost:hover:not(:disabled) {
  --btn-bg: var(--surface-2);
  --btn-edge: var(--edge);
  --btn-fg: var(--text-1);
}

.btn-sm {
  min-height: 30px;
  padding: 0 var(--space-3);
  font-size: var(--text-code-size);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: var(--text-code-size);
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-fast),
    color var(--dur-fast) var(--ease-fast),
    border-color var(--dur-fast) var(--ease-fast);
}

.chip:hover {
  border-color: var(--text-3);
  color: var(--text-1);
}

.chip[aria-pressed='true'],
.chip[aria-selected='true'] {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: var(--accent);
  color: var(--text-1);
}

.chip .x {
  color: var(--text-3);
  font-weight: 400;
}

.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: var(--rule);
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: var(--space-3) var(--space-4);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--text-small-size);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--dur-base) var(--ease-base),
    border-color var(--dur-base) var(--ease-base);
}

.tab:hover {
  color: var(--text-1);
}

.tab[aria-selected='true'] {
  color: var(--text-1);
  border-bottom-color: var(--brand);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.input,
.select {
  width: 100%;
  min-height: 38px;
  padding: 0 var(--space-3);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: var(--text-small-size);
  transition: border-color var(--dur-fast) var(--ease-fast);
}

.input::placeholder {
  color: var(--text-3);
}

.input:hover,
.select:hover {
  border-color: var(--text-3);
}

.input:disabled,
.select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.search {
  position: relative;
}

.search .input {
  padding-left: var(--space-7);
  min-height: 46px;
  font-size: var(--text-body-size);
}

.search::before {
  content: '/';
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-weight: 700;
  pointer-events: none;
}

.code {
  position: relative;
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.code pre {
  margin: 0;
  padding: var(--space-4);
  padding-right: var(--space-9);
  overflow-x: auto;
  color: var(--text-2);
  white-space: pre;
}

.code .copy {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
}

[data-tip] {
  position: relative;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--text-1);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--text-code-size);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-base);
  box-shadow: var(--shadow-overlay);
  z-index: 20;
}

[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
}

.toggle {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}

.toggle button {
  appearance: none;
  border: 0;
  background: none;
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--text-code-size);
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-fast),
    color var(--dur-fast) var(--ease-fast);
}

.toggle button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--text-1);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
  max-width: calc(100vw - var(--space-6));
  transform: translate(-50%, calc(100% + var(--space-6)));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border: var(--rule);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-1);
  box-shadow: var(--shadow-toast);
  font-family: var(--font-mono);
  font-size: var(--text-small-size);
  
  visibility: hidden;
  opacity: 0;
  transition:
    transform var(--dur-base) var(--ease-base),
    opacity var(--dur-base) var(--ease-base),
    visibility var(--dur-base) step-end;
}

.toast[data-open='true'] {
  transform: translate(-50%, 0);
  visibility: visible;
  opacity: 1;
  transition:
    transform var(--dur-base) var(--ease-base),
    opacity var(--dur-base) var(--ease-base),
    visibility 0s;
}

.toast[data-kind='err'] {
  border-color: var(--err);
  color: var(--err);
}

.toast[data-kind='ok']::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.card {
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--space-5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: var(--rule);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 60px;
  
  padding-inline: max(
    var(--space-5),
    env(safe-area-inset-left),
    env(safe-area-inset-right)
  );
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

.brand-link .marca {
  height: 20px;
  width: calc(20px * (704.8 / 101));
  display: block;
}

.site-nav {
  display: flex;
  gap: var(--space-1);
  margin-left: auto;
}

.site-nav a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--text-small-size);
  font-weight: 600;
  transition:
    background var(--dur-fast) var(--ease-fast),
    color var(--dur-fast) var(--ease-fast);
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

.site-nav a[aria-current='page'] {
  color: var(--text-1);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.menu-btn {
  display: none;
}

.motion-toggle {
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
}

.motion-toggle input {
  appearance: none;
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.motion-toggle input::before {
  content: '';
  position: absolute;
  inset: 9px 0;
  border-radius: var(--radius-pill, 999px);
  border: 1px solid var(--text-3);
  background: var(--surface-2);
}

.motion-toggle input::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform var(--dur-fast) var(--ease-fast);
}

.motion-toggle input:checked::before {
  border-color: var(--brand);
  background: var(--brand);
}

.motion-toggle input:checked::after {
  transform: translateX(18px);
  background: var(--on-brand);
}

.motion-toggle input:disabled {
  opacity: 0.5;
  cursor: default;
}

.site-footer {
  border-top: var(--rule);
  padding-block: var(--space-7);
  margin-top: var(--space-8);
}

.site-footer .cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--grid-gutter);
}

.site-footer h2 {
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  letter-spacing: var(--text-label-ls);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-3);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.site-footer a {
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--text-small-size);
}

.site-footer a:hover {
  color: var(--text-1);
}

.footer-note {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: var(--rule);
  color: var(--text-3);
  font-size: var(--text-small-size);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  visibility: hidden;
  display: grid;
  place-items: center;
  padding: var(--space-5);
}

.modal[data-open='true'] {
  visibility: visible;
}

.modal .painel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  overflow-y: auto;
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-overlay);
  padding: var(--space-6);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity var(--dur-slow) var(--ease-slow),
    transform var(--dur-slow) var(--ease-slow);
}

.modal[data-open='true'] .painel {
  opacity: 1;
  transform: none;
}

.modal .titulo {
  margin-bottom: var(--space-3);
  padding-right: var(--space-7);
}

.modal .fechar {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
}

@media (max-width: 560px) {
  .modal {
    padding: 0;
    place-items: stretch;
  }

  .modal .painel {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    padding: var(--space-5);
    padding-top: calc(var(--space-5) + env(safe-area-inset-top));
  }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
}

.drawer[data-open='true'] {
  visibility: visible;
}

.scrim {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 45%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-slow);
}

[data-open='true'] > .scrim {
  opacity: 1;
}

.drawer .panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(320px, 84vw);
  background: var(--surface);
  border-left: var(--rule);
  box-shadow: var(--shadow-overlay);
  padding: var(--space-5);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-slow);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
}

.drawer[data-open='true'] .panel {
  transform: translateX(0);
}

.drawer .panel a {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
}

.drawer .panel a:hover {
  background: var(--surface-2);
}

@media (max-width: 1040px) {
  .site-nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header .bar {
    gap: var(--space-3);
  }

  .site-footer .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .site-footer .cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 400px) {
  .brand-link .marca {
    height: 16px;
    width: calc(16px * (704.8 / 101));
  }

  .toggle button {
    padding-inline: var(--space-2);
    font-size: 0;
    display: inline-flex;
    justify-content: center;
  }

  .toggle button::before {
    font-size: var(--text-code-size);
  }

  .toggle button[data-tema='light']::before {
    content: '☀';
  }

  .toggle button[data-tema='dark']::before {
    content: '☾';
  }
}

@media (pointer: coarse) {
  .btn,
  .btn-sm,
  .chip,
  .toggle button,
  .tab,
  .input,
  .select {
    min-height: 44px;
  }

  .chip,
  .toggle button {
    padding-inline: var(--space-4);
  }

  .tiles .tile {
    min-height: 88px;
  }

  .site-nav a,
  .drawer .panel a,
  .site-footer a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  
  .brand-link {
    min-height: 44px;
    min-width: 44px;
  }

  
  .toggle button {
    min-width: 44px;
    justify-content: center;
  }
}

.btn.forcado-hover:not(:disabled) {
  --btn-bg: var(--surface-2);
  --btn-edge: var(--text-3);
}

.btn.forcado-active:not(:disabled) {
  --btn-bg: var(--edge);
}

.btn-brand.forcado-hover:not(:disabled) {
  --btn-bg: color-mix(in srgb, var(--brand) 86%, var(--text-1));
  --btn-edge: var(--btn-bg);
}

.btn-brand.forcado-active:not(:disabled) {
  --btn-bg: color-mix(in srgb, var(--brand) 74%, var(--text-1));
}

.btn-ghost.forcado-hover:not(:disabled) {
  --btn-bg: var(--surface-2);
  --btn-edge: var(--edge);
  --btn-fg: var(--text-1);
}

.chip.forcado-hover {
  border-color: var(--text-3);
  color: var(--text-1);
}

.tab.forcado-hover {
  color: var(--text-1);
}

.input.forcado-hover {
  border-color: var(--text-3);
}

.forcado-focus {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

.hero {
  padding-block: var(--space-8) var(--space-6);
}

.hero-curto {
  padding-block: var(--space-8) var(--space-6);
}

.hero h1 {
  margin-block: var(--space-3) var(--space-5);
}

.hero p.t-body {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: var(--space-6);
}

.montador {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: var(--grid-gutter);
  align-items: start;
}

.montador-saida {
  min-width: 0;
  position: sticky;
  top: calc(60px + var(--space-4));
}

.filtros {
  margin-top: var(--space-4);
  gap: var(--space-2);
}

.contador {
  margin-block: var(--space-4) var(--space-3);
  color: var(--text-3);
}

.escolhidos:empty {
  display: none;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: var(--space-2);
  max-height: 620px;
  overflow-y: auto;
  padding: var(--space-1);
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.tiles-cat {
  max-height: none;
  overflow: visible;
  border: 0;
  background: none;
  padding: 0;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-fast),
    border-color var(--dur-fast) var(--ease-fast),
    color var(--dur-fast) var(--ease-fast);
}

.tile:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

.tile[aria-checked='true'] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text-1);
}

.tile img {
  width: 48px;
  height: 48px;
  display: block;
}

.si-icon-stage {
  display: inline-grid;
  position: relative;
  flex-shrink: 0;
  max-width: 100%;
  line-height: 0;
  vertical-align: middle;
}

.si-icon-stage > img:not([data-motion-overlay]) {
  grid-area: 1 / 1;
  opacity: 1;
  transition: opacity 0s;
}

.si-icon-stage > [data-motion-overlay] {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-base);
}

.si-icon-stage[data-motion-active='true'] > [data-motion-overlay] {
  opacity: 1;
}

.si-icon-stage[data-motion-active='true'] > img:not([data-motion-overlay]) {
  opacity: 0;
  transition-delay: var(--dur-base);
}

@media (prefers-reduced-motion: reduce) {
  .si-icon-stage > img:not([data-motion-overlay]) {
    opacity: 1 !important;
    transition: none;
  }

  .si-icon-stage > [data-motion-overlay] {
    display: none;
    transition: none;
  }
}

.tile-id {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile mark {
  background: color-mix(in srgb, var(--brand) 26%, transparent);
  color: inherit;
  border-radius: 3px;
}

.vazio {
  grid-column: 1 / -1;
  padding: var(--space-6);
  text-align: center;
  color: var(--text-3);
}

.preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: var(--space-4);
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow-x: auto;
}

.preview > img,
.preview > svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.progresso {
  width: 100%;
  height: 4px;
  appearance: none;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.progresso::-webkit-progress-bar {
  background: var(--surface-2);
}

.progresso::-webkit-progress-value {
  background: var(--brand);
}

.progresso::-moz-progress-bar {
  background: var(--brand);
}

.field[data-inativo='true'] {
  opacity: 0.5;
}

.cat {
  padding-block: var(--space-6) 0;
  border: 0;
}

.cat-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: var(--rule);
}

.api-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--grid-gutter);
  align-items: start;
}

.params {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-4);
  font-size: var(--text-small-size);
}

.params th,
.params td {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: var(--rule);
}

.params th {
  font-family: var(--font-mono);
  font-size: var(--text-label-size);
  letter-spacing: var(--text-label-ls);
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: var(--text-label-weight);
}

.params td {
  color: var(--text-2);
}

.rotas {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.rotas li {
  display: grid;
  gap: var(--space-1);
}

.exemplos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gutter);
  margin-top: var(--space-4);
}

.exemplos .preview {
  margin-block: var(--space-3);
}

.changelog {
  display: grid;
  gap: var(--space-7);
}

.cl-entrada {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: var(--grid-gutter);
  padding-bottom: var(--space-7);
  border-bottom: var(--rule);
}

.cl-entrada:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cl-meta time {
  display: block;
  margin-top: var(--space-2);
}

.cl-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.cl-lista li {
  display: grid;
  grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: baseline;
  color: var(--text-2);
}

.cl-tipo {
  font-family: var(--font-mono);
  font-size: var(--text-label-size);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid currentcolor;
}

.cl-tipo[data-cor='ok'] {
  color: var(--ok);
}
.cl-tipo[data-cor='info'] {
  color: var(--info);
}
.cl-tipo[data-cor='warn'] {
  color: var(--warn);
}
.cl-tipo[data-cor='err'] {
  color: var(--err);
}

.erro {
  max-width: 780px;
}

.erro-exemplo {
  margin-top: var(--space-7);
}

@media (max-width: 1080px) {
  .montador {
    grid-template-columns: minmax(0, 1fr);
  }

  .montador-saida {
    position: static;
  }

  .api-grid,
  .exemplos {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .cl-entrada {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .cl-meta {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
  }

  .cl-meta time {
    margin-top: 0;
  }

  .cl-lista li {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-1);
  }

  .cl-tipo {
    justify-self: start;
  }

  .tiles {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    max-height: 460px;
  }
}

.amostra {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--c);
  border: 1px solid var(--edge);
  margin-right: var(--space-2);
  vertical-align: -1px;
}

.pecas {
  display: grid;
  gap: var(--space-4);
}

.peca {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}

.peca-previa {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.peca-previa[data-fundo='dark'] {
  background: #070d19;
}

.peca-previa[data-fundo='light'] {
  background: #f2f4f8;
}

.peca-previa img {
  max-height: 44px;
  width: auto;
}

.peca-previa img[width] {
  max-height: none;
}

.peca-meta {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  min-width: 0;
}

.peca-nome {
  font-size: var(--text-small-size);
  color: var(--text-1);
}

@media (max-width: 860px) {
  .peca {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .peca-meta {
    grid-column: 1 / -1;
  }
}

.tabela-rolavel {
  overflow-x: auto;
  margin-block: var(--space-4);
  -webkit-overflow-scrolling: touch;
}

.tabela-rolavel .params {
  min-width: min(460px, 100%);
  margin-block: 0;
}

.ds-tipos {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.ds-tipo {
  display: grid;
  gap: var(--space-2);
  padding-bottom: var(--space-4);
  border-bottom: var(--rule);
  overflow-x: auto;
}

.ds-tipos > * {
  min-width: 0;
}

.ds-tipo-numeros {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);
}

.ds-espacos {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.ds-espaco {
  display: grid;
  grid-template-columns: minmax(0, 90px) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
}

.ds-barra {
  display: block;
  width: var(--w);
  height: 14px;
  border-radius: 3px;
  background: var(--accent);
}

.ds-grade {
  margin-top: var(--space-3);
}

.ds-grade span {
  height: 44px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.ds-superficies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.ds-plano {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: var(--space-4);
  border-radius: var(--radius);
  text-align: center;
}

.ds-motions {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.ds-motion {
  display: grid;
  gap: var(--space-2);
}

.ds-motion-numeros {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: baseline;
}

.ds-pista {
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: var(--rule);
  padding: 3px;
  overflow: hidden;
}

.ds-pista span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  animation: ds-vai-e-vem 2.4s var(--e, linear) infinite alternate;
  animation-duration: calc(var(--d) * 8);
}

@keyframes ds-vai-e-vem {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100cqw - 14px));
  }
}

.ds-pista {
  container-type: inline-size;
}

@media (prefers-reduced-motion: reduce) {
  .ds-pista span {
    animation: none;
  }
}

.ds-estados {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-block: var(--space-4) var(--space-6);
  align-items: flex-end;
}

.ds-estados > div {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}

.ds-estados-largo > div {
  min-width: 220px;
  flex: 1 1 220px;
}

.ds-toast,
.ds-toast[data-open='true'] {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
  visibility: visible;
  opacity: 1;
}

#componentes h3 {
  margin-top: var(--space-6);
}

.mk-temas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--grid-gutter);
}

.mk-tema {
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.mk-tema > img {
  display: block;
  width: 100%;
  height: auto;
  padding: var(--space-6) var(--space-5);
  box-sizing: border-box;
}

.mk-tema[data-fundo='dark'] > img {
  background: #070d19;
}

.mk-tema[data-fundo='light'] > img {
  background: #f2f4f8;
}

.mk-specs {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border-top: var(--rule);
  background: var(--surface);
  font-size: var(--text-small-size);
}

.mk-specs dt {
  color: var(--text-3);
}

.mk-specs dd {
  margin: 0;
  color: var(--text-2);
}

.mk-escala,
.mk-pesos {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius);
  background: #070d19;
  overflow-x: auto;
}

.mk-escala > div,
.mk-pesos > div {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}

.mk-escala img,
.mk-pesos img {
  max-width: 100%;
  height: 40px;
  width: auto;
}

.mk-escala .t-label,
.mk-pesos .t-label,
.mk-escala .t-small,
.mk-pesos .t-small {
  color: #7d8da6;
}

.mk-compactas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: flex-end;
  padding: var(--space-6);
  border-radius: var(--radius);
  background: #070d19;
}

.mk-compactas > div {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}

.mk-compactas .t-label {
  color: #7d8da6;
}

.mk-contextos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--grid-gutter);
}

.mk-contextos > .card {
  min-width: 0;
}

.mk-palco {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  margin-block: var(--space-3);
  overflow-x: auto;
}

.mk-palco[data-fundo='dark'] {
  background: #070d19;
}

.mk-palco img {
  max-width: 100%;
}

.mk-falso-nav {
  color: #7d8da6;
  font-family: var(--font-mono);
  font-size: var(--text-code-size);
  margin-left: auto;
}

.mk-respiro {
  display: inline-block;
  padding: 32px;
  margin-block: var(--space-4);
  border-radius: var(--radius);
  background: #070d19;
  outline: 1px dashed color-mix(in srgb, var(--brand) 60%, transparent);
  outline-offset: -32px;
  max-width: 100%;
  overflow-x: auto;
}

.mk-nao {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--grid-gutter);
  margin-top: var(--space-4);
}

.mk-nao-item .mk-palco {
  justify-content: center;
  min-height: 88px;
  position: relative;
  overflow: hidden;
}

.mk-nao-item .mk-palco::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    var(--err) calc(50% - 1px),
    var(--err) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
  opacity: 0.55;
}

.mk-g-errado {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: #f43f5e;
}

@media (max-width: 560px) {
  .mk-escala img,
  .mk-pesos img {
    height: 28px;
  }
}

.motion-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: center;
}
.motion-hero h1 span {
  color: var(--accent);
}
.motion-hero .t-body {
  max-width: 660px;
  margin: 24px 0 32px;
}
.motion-index {
  border: 1px solid var(--edge);
  border-radius: 24px;
  padding: 32px;
  background: radial-gradient(
    ellipse at top right,
    var(--surface-2),
    var(--surface)
  );
  position: relative;
  overflow: hidden;
}
.motion-index strong {
  font: 600 88px/1 var(--font-mono);
  letter-spacing: -6px;
  color: var(--accent);
}
.motion-index strong span {
  display: block;
  font: 500 12px/2 var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-2);
}
.motion-index p {
  margin: 24px 0;
  line-height: 1.8;
  color: var(--text-2);
}
.motion-toolbar {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 16px;
  margin: 28px 0 20px;
}
.motion-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 500 12px/1.5 var(--font-mono);
  color: var(--text-2);
  min-width: 0;
}
.motion-toolbar input,
.motion-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-1);
  padding: 10px 12px;
  font: 400 14px/1.5 var(--font-sans);
}
.motion-preferences {
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--edge);
  padding-bottom: 24px;
  margin-bottom: 20px;
}
.motion-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
  font-size: 14px;
}
.motion-switch input {
  appearance: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.motion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.motion-card {
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
}
.motion-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 0;
  gap: 10px;
}
.motion-card-top .t-label {
  font-size: 10px;
}
.motion-number {
  font: 400 11px/1 var(--font-mono);
  color: var(--text-3);
}
.motion-preview {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 232px;
  gap: 14px;
  border: 0;
  background: radial-gradient(
    circle at center,
    var(--surface-2),
    transparent 68%
  );
  cursor: pointer;
  color: var(--text-3);
  padding: 20px 8px;
}
.motion-preview img,
.motion-preview .si-icon-stage {
  width: 144px;
  height: 144px;
  flex-shrink: 0;
}
.motion-preview-caption {
  font: 400 10px/1.5 var(--font-mono);
}
.motion-preview[aria-pressed='true'] {
  background: radial-gradient(ellipse at center, var(--surface-2), transparent);
  color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.motion-card-details {
  padding: 0 18px 18px;
}
.motion-card-details h3 {
  font: 500 14px/1.6 var(--font-mono);
  margin: 4px 0 10px;
}
.motion-concept {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  min-height: 86px;
  margin: 0 0 18px;
}
.motion-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.motion-card-actions .btn {
  font-size: 11px;
  flex: 1;
  padding: 8px 10px;
  white-space: nowrap;
  min-height: 44px;
}
.motion-how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.motion-how p {
  color: var(--text-2);
  line-height: 1.7;
  margin: 20px 0;
}
.motion-how pre {
  max-width: 100%;
  overflow: auto;
  white-space: pre;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 12px;
  font-size: 12px;
}
.motion-empty {
  grid-column: 1/-1;
  padding: 40px 0;
  color: var(--text-2);
}
@media (max-width: 1180px) {
  .motion-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .motion-hero {
    gap: 32px;
    grid-template-columns: 1fr 240px;
  }
}
@media (max-width: 900px) {
  .motion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .motion-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .motion-toolbar label:first-child {
    grid-column: 1/-1;
  }
  .motion-hero {
    grid-template-columns: 1fr;
  }
  .motion-index {
    display: none;
  }
  .motion-how {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .motion-preferences {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .motion-grid {
    grid-template-columns: 1fr;
  }
  .motion-toolbar {
    grid-template-columns: 1fr;
  }
  .motion-preview {
    height: 250px;
  }
  .motion-preview img,
  .motion-preview .si-icon-stage {
    width: 168px;
    height: 168px;
  }
  .motion-concept {
    min-height: 0;
  }
  .motion-card-actions .btn {
    font-size: 12px;
  }
}
.motion-how > div {
  min-width: 0;
}

.motion-switch input::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--text-3);
  border-radius: 4px;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--on-brand);
  font: 600 14px/1 var(--font-sans);
}
.motion-switch input:checked::before {
  content: '✓';
  background: var(--brand);
  border-color: var(--brand);
}
.motion-switch input:disabled {
  opacity: 0.55;
  cursor: default;
}
.motion-collections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 12px;
}
.motion-collections .btn {
  min-height: 44px;
  border: 1px solid var(--edge);
}
.motion-collections [aria-pressed='true'] {
  color: var(--accent);
  background: var(--surface-2);
  border-color: var(--accent);
}
.motion-collections span {
  font-size: 11px;
  opacity: 0.85;
}
.motion-arsenal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.motion-arsenal-actions[hidden] {
  display: none;
}
.motion-arsenal-actions .btn {
  min-height: 44px;
}
