@font-face {
  font-family: 'Instrument Sans';
  src: url('./assets/instrument-sans-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  background-color: #020303;
  color-scheme: dark;
  --page: #020303;
  --shell: #060707;
  --recess: #08090a;
  --surface: #101214;
  --raised: rgba(25, 29, 31, .82);
  --active: rgba(34, 38, 41, .82);
  --text: #f3f5f6;
  --secondary: #b7bdc1;
  --muted: #929a9f;
  --edge: rgba(231, 239, 244, .18);
  --edge-soft: rgba(231, 239, 244, .09);
  --panel-fill: linear-gradient(145deg, var(--raised), transparent 72%), var(--surface);
  --ease: cubic-bezier(.2,.65,.3,1);
  font-family: 'Instrument Sans', sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
.route-view { display: contents; }
#navigation-status { position: fixed; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.single-component-label { padding-left: 10px; color: var(--secondary); font-size: 16px; font-weight: 500; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 25% 0%, #191b1c55, transparent 68%), var(--page); color: var(--text); }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #e3e8eb; outline-offset: 5px; }
#main:focus { outline: none; }
svg { display: block; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: fixed; z-index: 5; top: 12px; left: 16px; padding: 12px 18px; border-radius: 8px; background: #f1f3f4; color: #151718; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { height: 56px; border-bottom: 1px solid var(--edge-soft); background: linear-gradient(115deg, #191b1c, #0d0e0f 62%, #080909); box-shadow: inset 0 1px #ffffff04, 0 8px 24px #0003; }
.header-inner { max-width: 1536px; height: 100%; margin: auto; padding: 0 clamp(24px, 4.35vw, 67px); display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 24px; font-weight: 650; letter-spacing: -.8px; }
.navigation { display: flex; align-items: center; gap: 12px; height: 100%; }
.nav-item { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 10px; border: 0; background: none; color: var(--secondary); font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0; white-space: nowrap; transition: color 180ms var(--ease); }
.nav-item > span { display: block; }
.nav-item:focus-visible { outline-offset: 2px; border-radius: 7px; }
.nav-item svg { width: 18px; height: 18px; flex: none; stroke-width: 1.8; }
.nav-item.is-current, .nav-item:hover { color: var(--text); }
main { max-width: 1536px; margin: auto; padding: 46px clamp(24px, 3.91vw, 60px) 48px; }
.intro { margin: 0 8px 24px; }
h1 { margin: 0; font-size: clamp(44px, 4.17vw, 64px); line-height: 1.1; font-weight: 650; letter-spacing: -.045em; }
.intro p { margin: 7px 0 0; color: var(--muted); font-size: clamp(18px, 1.56vw, 24px); line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.workbench { overflow: hidden; border: 1px solid var(--edge); border-radius: 18px; background: var(--shell); box-shadow: 0 24px 55px #0008, 0 1px 0 #ffffff09 inset; }
.workbench-toolbar { min-height: 86px; padding: 15px 16px 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--panel-fill); border-bottom: 1px solid var(--edge-soft); box-shadow: 0 1px 0 #ffffff08 inset; }
.variant-controls { display: flex; align-items: center; width: 392px; height: 52px; padding: 0; border: 1px solid var(--edge); border-radius: 14px; background: var(--recess); box-shadow: 0 1px 3px #0005 inset; }
.variant-controls button { position: relative; flex: 1; align-self: stretch; border: 1px solid transparent; background: transparent; border-radius: 13px; font-size: 18px; color: var(--secondary); font-weight: 550; transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease); }
.variant-controls button:hover { color: #fff; background: #ffffff05; }
.variant-controls button[aria-pressed="true"] { margin: -1px; background: linear-gradient(135deg, #2b2e30, var(--active)); border-color: #f7fbff66; color: var(--text); box-shadow: 0 1px 0 #ffffff0b inset, 0 0 14px #f7fbff08; }
.workbench-actions { display: flex; align-items: center; gap: 30px; }
.reset-button { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; padding: 0 32px; border: 0; border-inline: 1px solid var(--edge); background: transparent; font-size: 18px; font-weight: 550; color: var(--text); }
.reset-button svg { width: 24px; height: 24px; transition: transform 350ms var(--ease); }
.reset-button:hover svg { transform: rotate(-35deg); }
.surface-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 44px; border: 1px solid #eff7fa42; border-radius: 11px; padding: 10px 18px; background: linear-gradient(130deg, #2a2c2d, #1b1d1e); color: var(--text); box-shadow: 0 1px 0 #ffffff0c inset, 0 2px 4px #0004; font-size: 16px; font-weight: 550; white-space: nowrap; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease); }
.surface-button:hover { border-color: #f7fbff70; box-shadow: 0 1px 0 #ffffff12 inset, 0 3px 10px #0005; }
.surface-button:active { background: #242627; }
.download-button { width: 198px; min-height: 58px; font-size: 20px; font-weight: 650; }
/* The heading has its own row. Reserve the complete canvas in the parent
   grid too, so a tall preview cannot extend behind the workbench clipping. */
.workbench-body { --preview-height: 320px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: max(clamp(360px, calc(100svh - 518px), 506px), calc(var(--preview-height) + 64px)); }
.preview-panel { position: relative; display: grid; grid-template-rows: 64px minmax(0, 1fr); min-width: 0; min-height: calc(var(--preview-height) + 64px); overflow: hidden; color-scheme: light; color: #141719; background: radial-gradient(ellipse at 35% 10%, #f7f7f8, transparent 90%), linear-gradient(130deg, #f0f0f2, #e7e8eb); border-top-left-radius: 15px; }
.preview-panel h2 { align-self: start; margin: 21px 23px 0; font-size: 22px; line-height: 1.35; font-weight: 650; letter-spacing: -.035em; pointer-events: none; }
#component-preview { display: block; width: 100%; height: 100%; min-height: 0; border: 0; }
.workbench-body:has(sl-preview[variant$="-menu"]) { --preview-height: 440px; }
.workbench-body:has(sl-preview:is([variant$="-overlay"], [variant$="-feedback"])) { --preview-height: 430px; }
.workbench-body:has(sl-preview:is([variant$="-display"], [variant$="-v11"])) { --preview-height: 510px; }
.workbench-body:has(sl-preview[variant$="-navigation"]) { --preview-height: 360px; }
.code-panel { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: radial-gradient(ellipse at 100% 100%, #1c1e1f40, transparent 80%), var(--recess); border-left: 1px solid var(--edge); }
.code-toolbar { height: 65px; flex: none; display: flex; align-items: center; padding: 0 13px 0 10px; border-bottom: 1px solid var(--edge-soft); background: var(--panel-fill); gap: 14px; }
.file-tabs { display: flex; height: 100%; align-items: stretch; }
.file-tabs button { position: relative; background: transparent; color: var(--secondary); border: 0; padding: 0 22px; font-size: 18px; font-weight: 500; }
.file-tabs button[aria-selected="true"] { color: #f8f9fa; font-weight: 650; }
.file-tabs button::after { content: ''; position: absolute; bottom: 0; left: 4px; right: 4px; height: 2px; background: #e8ecef; opacity: 0; transition: opacity 180ms var(--ease); }
.file-tabs button[aria-selected="true"]::after { opacity: 1; }
.file-tabs button:hover { color: #fff; }
.file-tabs button:focus-visible { outline-offset: -6px; border-radius: 9px; }
.copy-button { flex: none; margin-left: auto; padding: 9px 14px; min-height: 46px; }
.copy-button svg { width: 22px; height: 24px; }
.copy-button span { min-width: 78px; text-align: center; }
#source-panel { display: flex; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #454849 var(--recess); }
#source-panel:focus-visible { outline-offset: -4px; }
#source-panel pre { margin: 0; padding-block: 28px; font-family: Consolas, 'Liberation Mono', monospace; font-size: clamp(13px, 1.235vw, 19px); line-height: 1.65; font-weight: 400; tab-size: 2; }
.line-numbers { flex: none; min-width: 66px; padding-inline: 22px 18px; text-align: right; color: var(--muted); border-right: 1px solid #ffffff05; user-select: none; }
.source-pre { flex: 1; padding-inline: 22px 26px; color: #f2f4f5; white-space: pre; }
.source-pre code { font: inherit; }
#copy-status { position: absolute; z-index: 2; right: 16px; bottom: 16px; max-width: calc(100% - 32px); margin: 0; padding: 10px 14px; border: 1px solid var(--edge); border-radius: 9px; background: var(--surface); box-shadow: 0 4px 14px #0006; font-size: 13px; line-height: 1.5; color: var(--secondary); pointer-events: none; }
#copy-status:empty { opacity: 0; }
dialog { width: min(660px, calc(100vw - 40px)); max-height: calc(100svh - 64px); padding: 0; border: 1px solid var(--edge); border-radius: 20px; color: var(--text); background: var(--panel-fill); box-shadow: 0 32px 100px #000b, 0 1px 0 #ffffff0a inset; scrollbar-width: thin; scrollbar-color: #454849 transparent; }
dialog::backdrop { background: #020303cc; backdrop-filter: blur(7px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid #ffffff12; }
.dialog-header h2 { font-size: 28px; letter-spacing: -.04em; margin: 0; font-weight: 600; }
.close-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #ffffff15; background: #ffffff04; }
.close-button:hover { background: #ffffff0d; }
.close-button svg { width: 20px; height: 20px; }
.usage-content { padding: 26px 28px 30px; }
.usage-content section + section { margin-top: 25px; }
.usage-content h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.usage-content p { color: var(--secondary); line-height: 1.6; font-size: 15px; margin: 8px 0 0; }
.usage-content code { color: #ecf0f2; font-size: .92em; }
.usage-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid #ffffff12; }
.text-button { border: 0; background: none; padding: 12px 0; font-size: 15px; color: var(--secondary); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1400px) {
  .file-tabs button { font-size: 16px; padding-inline: 16px; }
  .variant-controls { width: 330px; }
  .download-button { width: 174px; font-size: 18px; }
  .workbench-actions { gap: 22px; }
}
@media (max-height: 850px) and (min-width: 861px) {
  main { padding-top: 30px; padding-bottom: 32px; }
  h1 { font-size: 48px; }
  .intro { margin-bottom: 22px; }
  .intro p { font-size: 20px; }
  .workbench-toolbar { min-height: 76px; padding-block: 12px; }
  .download-button { min-height: 50px; }
  .variant-controls { height: 48px; }
}
@media (max-width: 1100px) {
  .file-tabs button { padding-inline: 12px; font-size: 15px; }
  .code-toolbar { padding-inline: 4px 10px; gap: 8px; }
  .copy-button { gap: 8px; font-size: 14px; padding-inline: 10px; }
  .copy-button span { min-width: 66px; }
  .line-numbers { min-width: 44px; padding-inline: 12px !important; }
  .source-pre { padding-inline: 16px; }
}
@media (max-width: 860px) {
  main { padding-top: 32px; }
  .intro { margin-inline: 0; }
  h1 { font-size: 46px; }
  .workbench-body { grid-template-columns: 1fr; height: auto; }
  .preview-panel { height: 400px; border-top-right-radius: 15px; }
  .code-panel { height: 330px; border-left: 0; border-top: 1px solid var(--edge); }
  #source-panel pre { font-size: 15px; }
  .workbench-toolbar { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .variant-controls { flex: 1; min-width: 240px; }
  .workbench-actions { margin-left: auto; }
  .reset-button { padding: 0 18px; font-size: 16px; }
  .file-tabs button { padding-inline: 18px; font-size: 16px; }
}
@media (max-width: 520px) {
  .header-inner { padding-inline: 22px; }
  main { padding-inline: 16px; }
  .wordmark { font-size: 19px; letter-spacing: -.6px; }
  .navigation { gap: 4px; }
  .nav-item { font-size: 12px; gap: 5px; padding-inline: 6px; }
  .nav-item svg { width: 16px; height: 16px; }
  h1 { font-size: 40px; }
  .intro p { font-size: 17px; max-width: 300px; }
  .workbench-toolbar { gap: 16px; }
  .variant-controls { width: 100%; flex: auto; min-width: 0; height: 48px; }
  .variant-controls button { font-size: 16px; }
  .workbench-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .reset-button { border: 0; padding-inline: 6px; gap: 10px; }
  .download-button { width: auto; min-height: 46px; font-size: 16px; }
  .preview-panel { height: 300px; }
  .preview-panel h2 { font-size: 19px; }
  .code-toolbar { height: 60px; }
  .file-tabs button { font-size: 13px; padding-inline: 10px; }
  .copy-button { gap: 5px; min-height: 40px; font-size: 12px; padding-inline: 8px; }
  .copy-button span { min-width: 60px; }
  .copy-button svg { width: 17px; height: 19px; }
  .dialog-header, .usage-content { padding: 20px; }
}
@media (max-width: 360px) {
  .copy-button { width: 44px; padding: 8px; }
  .copy-button span { position: absolute; width: 1px; min-width: 0; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
  .reset-button:hover svg { transform: none; }
  dialog::backdrop { backdrop-filter: none; }
}
