@font-face {
  font-family: Inter;
  src: url(../examples/motion-lab/assets/inter.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url(../examples/motion-lab/assets/inter-tight.ttf) format('truetype');
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  color: var(--color-fw-ink);
  background: var(--color-fw-canvas);
  font:
    400 16px/24px Inter,
    sans-serif;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
input,
textarea,
select {
  font-family: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:focus-visible,
summary:focus-visible,
button:focus-visible,
pre:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-fw-focus);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.explorer-skip {
  position: fixed;
  left: 24px;
  top: -80px;
  padding: 12px 20px;
  background: var(--color-fw-ink);
  color: white;
  z-index: 200;
}
.explorer-skip:focus {
  top: 12px;
}
.explorer-header {
  display: flex;
  gap: 32px;
  align-items: center;
  min-height: 96px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--color-fw-border);
  background: white;
  position: relative;
  z-index: 20;
}
.explorer-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font:
    400 32px/38px 'Inter Tight',
    sans-serif;
  letter-spacing: -0.02em;
  min-height: 44px;
}
.explorer-brand > span {
  width: 6px;
  height: 6px;
  background: var(--color-fw-accent);
  transform: translateY(5px);
}
.explorer-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-fw-body);
  margin-left: 32px;
}
.explorer-version {
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid var(--color-fw-border);
  border-radius: 200px;
}
.explorer-header nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
}
.explorer-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.explorer-header nav a:hover {
  text-decoration: underline;
}
.explorer-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  max-width: 1600px;
  margin: auto;
}
.explorer-sidebar {
  border-right: 1px solid var(--color-fw-border);
  padding: 32px 24px;
  align-self: start;
  position: sticky;
  top: 0;
  max-height: 100dvh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.explorer-sidebar summary {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-fw-muted);
  list-style: none;
  min-height: 32px;
  pointer-events: none;
}
.explorer-sidebar summary::-webkit-details-marker {
  display: none;
}
.explorer-sidebar summary span {
  font-variant-numeric: tabular-nums;
}
.catalog-tools {
  margin-top: 12px;
}
.catalog-tools input {
  font-size: 14px;
}
.catalog-count {
  font-size: 12px;
  line-height: 18px;
  color: var(--color-fw-muted);
  margin-top: 8px;
}
.catalog-group {
  margin-top: 24px;
}
.catalog-group h2 {
  font:
    400 12px/18px Inter,
    sans-serif;
  color: var(--color-fw-muted);
  margin-bottom: 8px;
  letter-spacing: 0;
}
.catalog-group a {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  text-decoration: none;
}
.catalog-group a:hover {
  background: var(--color-fw-subtle);
}
.catalog-group a[aria-current='page'] {
  background: var(--color-fw-warm);
}
.catalog-group a[aria-current='page']::after {
  content: '↗';
  font-size: 16px;
}
.catalog-note {
  padding: 24px 12px 0;
  margin-top: 24px;
  border-top: 1px solid var(--color-fw-border);
  font-size: 12px;
  line-height: 20px;
  color: var(--color-fw-muted);
}
.explorer-main {
  padding: 40px 48px;
  min-width: 0;
  max-width: 1256px;
}
.component-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-fw-muted);
  font-size: 12px;
  line-height: 18px;
  margin-bottom: 40px;
}
.component-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.component-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}
.explorer-eyebrow {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-fw-muted);
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(40px, 4.4vw, 66px);
  line-height: 1;
  overflow-wrap: anywhere;
}
.component-intro > p {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-fw-body);
  max-width: 420px;
}
.workbench {
  border: 1px solid var(--color-fw-border);
}
.workbench-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-fw-border);
  flex-wrap: wrap;
}
.workbench-title {
  font-size: 12px;
  line-height: 18px;
  color: var(--color-fw-muted);
}
.workbench-bar button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  background: white;
  color: var(--color-fw-ink);
  border: 1px solid var(--color-fw-control);
  border-radius: 0;
  font:
    400 14px/20px Inter,
    sans-serif;
  cursor: pointer;
}
.state-picker {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.state-picker legend {
  float: left;
  padding: 0;
  margin-right: 8px;
  font-size: 12px;
  line-height: 44px;
  color: var(--color-fw-muted);
}
.state-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}
.state-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.state-option:has(input:checked) {
  border-color: var(--color-fw-control);
  background: white;
}
.state-option:has(input:focus-visible) {
  outline: 2px solid var(--color-fw-focus);
  outline-offset: 3px;
}
.state-option:hover {
  background: var(--color-fw-subtle);
}
.specimen-ground {
  background: var(--color-fw-subtle);
  padding: 48px 40px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.specimen {
  width: 100%;
  max-width: 600px;
  min-width: 0;
  background: white;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 0;
}
.specimen--wide {
  max-width: 900px;
}
.specimen form {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.specimen p:not(.fw-help) {
  overflow-wrap: anywhere;
}
.spec-fieldset {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.spec-fieldset legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 14px;
  color: var(--color-fw-body);
}
.specimen [aria-invalid='true'] ~ .fw-help,
.specimen .fw-field:has([aria-invalid='true']) > .fw-help {
  color: var(--color-fw-danger);
}
.specimen-notes {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-fw-border);
  font-size: 12px;
  line-height: 18px;
  color: var(--color-fw-muted);
  flex-wrap: wrap;
}
.component-guidance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.component-guidance > section {
  border-top: 1px solid var(--color-fw-control);
  padding-top: 20px;
}
.component-guidance h2 {
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 16px;
}
.component-guidance p,
.component-guidance li {
  font-size: 14px;
  line-height: 22px;
  color: var(--color-fw-body);
}
.component-guidance ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.source-section {
  margin-top: 40px;
  border: 1px solid var(--color-fw-border);
}
.source-section summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 16px 24px;
  cursor: pointer;
  font-size: 14px;
  list-style: none;
}
.source-section summary::after {
  content: '+';
  font-size: 24px;
}
.source-section[open] summary::after {
  content: '−';
}
.source-section pre {
  margin: 0;
  padding: 24px;
  background: var(--color-fw-subtle);
  font:
    400 12px/20px ui-monospace,
    SFMono-Regular,
    monospace;
  overflow: auto;
  max-height: 480px;
  tab-size: 2;
}
.source-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 24px;
  border-top: 1px solid var(--color-fw-border);
}
.source-actions button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--color-fw-control);
  background: white;
  color: var(--color-fw-ink);
  font:
    400 14px/20px Inter,
    sans-serif;
  cursor: pointer;
}
.source-actions p {
  font-size: 12px;
  color: var(--color-fw-muted);
}
.explorer-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-fw-border);
  margin-top: 64px;
  padding-top: 24px;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-fw-muted);
}
.explorer-footer a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.all-intro {
  padding: 24px;
  background: var(--color-fw-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.all-intro strong {
  font:
    400 40px/44px 'Inter Tight',
    sans-serif;
}
.all-intro p {
  font-size: 14px;
  line-height: 22px;
  color: var(--color-fw-body);
  max-width: 440px;
}
.inventory-section {
  margin-bottom: 40px;
}
.inventory-section h2 {
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 16px;
}
.inventory-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-fw-border);
  text-decoration: none;
}
.inventory-row:hover {
  background: var(--color-fw-subtle);
}
.inventory-row > span {
  font-size: 12px;
  color: var(--color-fw-muted);
}
.inventory-row h3 {
  font-size: 20px;
  line-height: 26px;
}
.inventory-row p {
  font-size: 12px;
  color: var(--color-fw-muted);
}
.inventory-row b {
  font-weight: 400;
  font-size: 20px;
}
.motion-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.motion-status::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--color-fw-ink);
  border-radius: 50%;
}
@media (min-width: 1600px) {
  .explorer-header {
    padding-inline: max(40px, calc((100vw - 1520px) / 2));
  }
}
@media (max-width: 1100px) {
  .explorer-layout {
    grid-template-columns: 224px minmax(0, 1fr);
  }
  .explorer-main {
    padding: 32px;
  }
  .explorer-header {
    padding: 20px 32px;
  }
  .explorer-header-title {
    margin-left: 0;
  }
  .component-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .component-intro > p {
    max-width: 680px;
  }
  .specimen-ground {
    padding: 32px 24px;
  }
  .specimen {
    padding: 24px;
  }
  .component-guidance {
    gap: 24px;
  }
}
@media (max-width: 767px) {
  .explorer-header {
    padding: 16px 24px;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 88px;
  }
  .explorer-brand {
    font-size: 28px;
    line-height: 34px;
  }
  .explorer-header-title {
    font-size: 12px;
    margin-left: auto;
  }
  .explorer-header nav {
    width: 100%;
    margin: 0;
    gap: 24px;
    font-size: 12px;
  }
  .explorer-layout {
    display: block;
  }
  .explorer-sidebar {
    position: relative;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--color-fw-border);
    padding: 16px 24px;
  }
  .explorer-sidebar summary {
    pointer-events: auto;
    cursor: pointer;
    min-height: 44px;
    align-items: center;
  }
  .explorer-sidebar summary span::after {
    content: ' ⌄';
  }
  .explorer-sidebar nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    max-height: 360px;
    overflow-y: auto;
    padding: 4px;
  }
  .catalog-note {
    display: none;
  }
  .explorer-main {
    padding: 24px;
  }
  .component-meta {
    margin-bottom: 24px;
  }
  .component-intro {
    margin-bottom: 32px;
  }
  .component-intro h1 {
    font-size: 40px;
    line-height: 40px;
  }
  .workbench-bar {
    padding: 16px;
    gap: 12px;
  }
  .specimen-ground {
    padding: 24px 16px;
    min-height: 260px;
  }
  .specimen {
    padding: 20px;
  }
  .component-guidance {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .specimen-notes {
    padding: 16px;
  }
  .source-section summary,
  .source-actions {
    padding: 16px;
  }
  .source-section pre {
    padding: 16px;
  }
  .all-intro {
    display: block;
  }
  .all-intro p {
    margin-top: 12px;
  }
  .inventory-row {
    gap: 12px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }
  .explorer-footer {
    margin-top: 40px;
  }
}
@media (max-width: 360px) {
  .explorer-header-title {
    display: none;
  }
  .specimen-ground {
    padding: 16px 8px;
  }
  .specimen {
    padding: 16px;
  }
  .explorer-sidebar nav {
    grid-template-columns: 1fr;
  }
  .fw-calendar {
    width: calc(100% - 16px);
  }
}
@media (max-width: 360px) {
  html {
    scrollbar-gutter: auto;
  }
  .fw-calendar {
    width: 100%;
    max-width: 100%;
    padding: 4px;
  }
  .fw-calendar [role='grid'] {
    min-width: 308px;
  }
}
.preview-width {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  flex-basis: 100%;
}
.preview-width legend {
  float: left;
  font-size: 12px;
  line-height: 44px;
  color: var(--color-fw-muted);
  margin-right: 8px;
  padding: 0;
}
.specimen-ground:has([data-table]) {
  padding: 24px;
}
.specimen:has([data-table]) {
  padding: 24px;
}
@media (max-width: 767px) {
  .specimen-ground:has([data-table]) {
    padding: 0;
  }
  .specimen:has([data-table]) {
    padding: 16px;
  }
}

.source-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}
.explorer-main > .site-footer {
  margin-top: 64px;
}
@media (max-width: 767px) {
  .explorer-main > .site-footer {
    margin-top: 40px;
  }
}

/* Standalone overlay actions keep their natural width, unlike form fields. */
.specimen form > :is([data-menu-trigger], [data-open], [data-pop-trigger]) {
  align-self: flex-start;
  max-width: 100%;
}
