:root {
  --paper:#f7f6f2;
  --white:#fffefa;
  --ink:#292a27;
  --muted:#777970;
  --line:#dcded5;
  --red:#b8392e;
  --red-light:#f5e9e4;
  --green:#52715a;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
  --sans:Arial,Helvetica,sans-serif;
  color-scheme:light;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:14px/1.6 var(--sans);
  border-top:4px solid var(--red);
}

button,input,select,textarea {
  font:inherit;
}

button,a,input,textarea,select,summary {
  -webkit-tap-highlight-color:transparent;
}

button,a,summary {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:wait;
  opacity:.6;
}

a {
  color:inherit;
  text-underline-offset:4px;
}

button {
  color:inherit;
}

button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:2px solid var(--red);
  outline-offset:4px;
}

input:focus,select:focus,textarea:focus {
  outline:2px solid var(--red);
  outline-offset:-1px;
}

button,input,select,textarea {
  border-radius:0;
}

button {
  background:none;
  border:0;
}

button:hover {
  color:var(--red);
}

[hidden] {
  display:none!important;
}

.shell {
  width:min(1380px,calc(100% - 96px));
  margin:auto;
}

.site-header {
  border-bottom:1px solid var(--line);
}

.header-inner {
  height:80px;
  display:flex;
  align-items:center;
  gap:25px;
}

.wordmark {
  font:bold 33px/1 var(--mono);
  letter-spacing:-2px;
  text-decoration:none;
}

.wordmark span {
  color:var(--red);
}

.header-description {
  font:10px var(--mono);
  letter-spacing:1.8px;
  color:var(--muted);
  padding-left:24px;
  border-left:1px solid var(--line);
}

nav {
  display:flex;
  margin-left:auto;
  gap:28px;
}

nav a {
  display:flex;
  align-items:center;
  gap:8px;
  font:12px var(--mono);
  text-decoration:none;
}

nav a:hover {
  color:var(--red);
}

nav svg {
  width:17px;
  height:17px;
}

.npm-mark {
  background:var(--red);
  color:#fff;
  font:bold 12px/17px var(--mono);
  padding:0 3px;
  letter-spacing:-1px;
}

.hero {
  padding:42px 0 43px;
}

.package-path {
  display:flex;
  align-items:center;
  gap:13px;
  font:12px var(--mono);
  color:var(--muted);
}

.package-path strong {
  color:var(--ink);
  font-weight:500;
}

.badge {
  border:1px solid var(--line);
  font-size:10px;
  padding:3px 7px;
  color:var(--ink);
  margin-left:4px;
}

.experimental {
  font-size:10px;
  color:var(--red);
}

.hero-layout {
  display:grid;
  grid-template-columns:1fr 440px;
  gap:65px;
  align-items:center;
  margin-top:27px;
}

h1 {
  font:600 clamp(40px,4.3vw,62px)/1.12 var(--mono);
  letter-spacing:-3px;
  margin:0;
}

h1>span:not(.cursor) {
  color:var(--red);
}

.cursor {
  font-weight:400;
  color:var(--red);
  margin-left:6px;
}

.hero-copy {
  font-size:15px;
  line-height:1.8;
  color:#686b63;
  margin:20px 0;
}

.hero-tags {
  display:flex;
  flex-wrap:wrap;
  gap:21px;
  font:10px var(--mono);
  color:#656a60;
}

.hero-tags>span {
  display:flex;
  align-items:center;
  gap:7px;
}

.hero-tags>span+span:before {
  content:"/";
  color:#b9bcb1;
  margin-right:6px;
}

i {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--green);
}

.install-card {
  padding-top:8px;
}

.terminal-title {
  background:#30332e;
  border:1px solid #30332e;
  color:#b4b8ab;
  display:flex;
  justify-content:space-between;
  padding:10px 15px;
  font:10px var(--mono);
}

.terminal-title>span:first-child {
  display:flex;
  gap:6px;
  align-items:center;
}

.terminal-title i {
  background:#74796d;
  width:7px;
  height:7px;
}

.terminal-title i:first-child {
  background:#c06b56;
}

.install-command {
  background:#252923;
  color:#edf0e5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 18px;
  font:13px var(--mono);
}

.install-command code {
  white-space:nowrap;
}

.install-command code span {
  color:#a9bd8c;
  margin-right:10px;
}

.icon-button {
  color:#afb7a5;
  font-size:23px;
  line-height:1;
  padding:2px 3px;
}

.install-caption {
  display:flex;
  justify-content:space-between;
  background:#eeeee7;
  border:1px solid var(--line);
  padding:9px 12px;
  font:9px var(--mono);
  color:#656b5c;
}

.install-card p {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  margin:18px 0 6px;
}

.text-link {
  font:11px var(--mono);
  color:var(--red);
  text-decoration:none;
}

.section-heading {
  border-top:1px solid var(--ink);
  padding:22px 0 19px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.section-heading>div {
  display:flex;
  gap:14px;
  align-items:center;
}

.section-number {
  color:var(--red);
  font:11px var(--mono);
}

h2 {
  font:600 15px var(--mono);
  margin:0;
}

.heading-note {
  font-size:12px;
  margin-left:5px;
}

.muted {
  color:var(--muted);
}

.local-label {
  font:10px var(--mono);
  color:var(--green);
  display:flex;
  gap:7px;
  align-items:center;
}

.playground-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:24px;
  align-items:start;
}

.workspace {
  min-width:0;
}

.workbench {
  border:1px solid #c9cdc1;
  background:var(--white);
}

.workbench-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:stretch;
  min-height:48px;
  border-bottom:1px solid #c9cdc1;
  background:#efefe9;
  gap:8px;
}

.tabs {
  display:flex;
}

.tabs button {
  padding:15px 17px;
  font:11px var(--mono);
  border-right:1px solid var(--line);
  border-bottom:2px solid transparent;
}

.tabs button[aria-selected=true] {
  border-bottom-color:var(--red);
  color:var(--red);
  background:var(--white);
}

.tabs button span {
  margin-left:10px;
  color:var(--muted);
}

.example-picker {
  display:flex;
  align-items:center;
  padding-right:12px;
}

.example-picker select {
  font-size:10px;
  width:148px;
  padding:5px 6px;
  background:transparent;
}

.editor-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
}

.source-pane,.preview-pane {
  min-width:0;
}

.source-pane {
  border-right:1px solid var(--line);
}

.pane-heading {
  height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  gap:8px;
  border-bottom:1px solid var(--line);
  font:10px var(--mono);
}

.pane-heading label,.pane-heading>span {
  display:flex;
  gap:8px;
  align-items:center;
}

.file-icon {
  color:var(--red);
}

.quiet-button {
  font:10px var(--mono);
  padding:5px 0;
  color:var(--muted);
  white-space:nowrap;
}

.quiet-button:hover {
  color:var(--red);
  text-decoration:underline;
}

.code-editor {
  display:flex;
  height:460px;
  overflow:hidden;
  background:#fdfcf8;
}

.code-editor textarea {
  flex:1;
  width:0;
  min-width:0;
  border:0;
  padding:18px 12px 18px 8px;
  background:transparent;
  color:#4e5747;
  font:11px/1.9 var(--mono);
  tab-size:2;
  resize:none;
  white-space:pre;
  overflow:auto;
}

.code-editor textarea:focus {
  outline-offset:-2px;
}

.code-editor #line-numbers {
  flex:0 0 35px;
  color:#afb3a6;
  padding:18px 8px 18px 0;
  white-space:pre;
  text-align:right;
  font:10px/2.09 var(--mono);
  overflow:hidden;
  user-select:none;
  border-right:1px solid #eceee6;
}

.pane-footer {
  min-height:30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 10px;
  border-top:1px solid var(--line);
  font:8px var(--mono);
  color:var(--muted);
}

.preview-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--green);
}

#preview-format {
  font-size:8px;
  color:var(--muted);
}

.preview-stage {
  height:460px;
  padding:24px 20px;
  background:#e9ebe3;
  overflow:auto;
  background-image:radial-gradient(#cdd1c4 .65px,transparent .65px);
  background-size:8px 8px;
}

.preview-paper {
  position:relative;
  overflow:hidden;
  margin:0 auto;
  box-shadow:0 2px 7px #30382215;
  background:white;
}

#html-preview {
  display:block;
  position:absolute;
  top:0;
  left:0;
  border:0;
  transform-origin:top left;
  background:#fff;
  pointer-events:none;
}

.sdk-code {
  margin:0;
  padding:25px;
  overflow:auto;
  min-height:460px;
  max-height:650px;
  font:11px/1.9 var(--mono);
  color:#43573b;
  tab-size:2;
  white-space:pre;
  background:#fdfcf8;
}

#code-flavor {
  padding:3px 5px;
  font-size:10px;
  background:transparent;
  width:auto;
}

.generation-bar {
  display:flex;
  align-items:end;
  gap:12px;
  margin-top:18px;
}

.filename {
  margin-right:auto;
  width:205px;
}

.filename label {
  display:block;
  font:9px var(--mono);
  color:var(--muted);
  margin-bottom:7px;
}

.filename input {
  background:transparent;
  border:0;
  border-bottom:1px solid #c4c9bb;
  font:11px var(--mono);
  padding:6px 0;
  width:100%;
  color:var(--ink);
}

.primary-button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:36px;
  background:var(--red);
  border:1px solid var(--red);
  color:white;
  padding:13px 20px;
  font:600 12px var(--mono);
  box-shadow:2px 2px 0 #7d302526;
  min-height:44px;
}

.primary-button:hover {
  background:#962d25;
  color:white;
}

.secondary-button {
  border:1px solid var(--line);
  padding:12px;
  font:11px var(--mono);
}

.output-panel {
  margin-top:19px;
  padding:13px 14px;
  border:1px dashed #cdd2c3;
  background:#f0f2ea;
}

.status-line {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
}

.status-line p {
  margin:0;
  font:10px/1.6 var(--mono);
  flex:1;
  overflow-wrap:anywhere;
}

.status-dot {
  background:#8a9b79;
  width:6px;
  height:6px;
  flex-shrink:0;
}

.status-dot.error {
  background:var(--red);
}

.status-dot.busy {
  animation:pulse 1s infinite;
}

.download-button {
  background:var(--green);
  border-color:var(--green);
  box-shadow:2px 2px 0 #3f594526;
  text-decoration:none;
  white-space:nowrap;
  flex-shrink:0;
}

.download-button:hover {
  background:#3f5945;
  border-color:#3f5945;
}

.result-meta {
  font:9px var(--mono);
  color:var(--muted);
  margin:10px 0 0 15px;
  line-height:1.8;
}

progress {
  display:block;
  height:5px;
  width:100%;
  margin-top:12px;
  accent-color:var(--green);
}

#diagnostics {
  margin-top:12px;
  font:10px/1.7 var(--mono);
}

#diagnostics summary {
  cursor:pointer;
}

#diagnostics ul {
  padding-left:20px;
  max-height:180px;
  overflow:auto;
  overflow-wrap:anywhere;
}

.recipe-note {
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:20px;
  font-size:11px;
  line-height:1.9;
  color:var(--muted);
}

.recipe-note>span {
  font:22px var(--mono);
  color:var(--red);
}

.recipe-note p {
  margin:0;
}

.recipe-note strong {
  font-weight:500;
  color:var(--ink);
}

.recipe-note code {
  font-size:10px;
  color:#605d51;
}

.settings {
  background:var(--white);
  border:1px solid #c9cdc1;
}

.settings-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px;
}

.settings-heading h2 {
  font-size:12px;
}

.preset-label {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 14px 15px;
  padding:8px 10px;
  font:9px var(--mono);
  color:var(--green);
  background:#eef1e7;
  border:1px solid #dce2d1;
}

.preset-label>span:first-child {
  font-size:7px;
}

.option-group {
  border-top:1px solid var(--line);
}

.option-group>summary {
  display:flex;
  align-items:center;
  gap:10px;
  list-style:none;
  font:11px var(--mono);
  cursor:pointer;
  padding:15px;
}

.option-group>summary::-webkit-details-marker {
  display:none;
}

.option-group>summary:after {
  content:"+";
  margin-left:auto;
  color:var(--muted);
  font-size:15px;
}

.option-group[open]>summary:after {
  content:"−";
}

.group-number {
  color:#8b9183;
  font-size:9px;
}

.group-fields {
  padding:0 14px 17px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px 10px;
}

.field {
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:6px;
}

.field.wide {
  grid-column:1/-1;
}

.field label,.field-title {
  font:10px var(--mono);
  color:#646b5b;
}

.field label .unit {
  color:#929887;
  font-size:9px;
}

.field input:not([type=checkbox]),.field select,.field textarea,select {
  width:100%;
  min-width:0;
  border:1px solid #d8ddce;
  background:#fcfcf8;
  padding:8px 9px;
  color:var(--ink);
  font:11px/1.4 var(--mono);
  height:34px;
}

.field textarea {
  min-height:75px;
  resize:vertical;
  line-height:1.6;
}

.field input[type=file] {
  height:auto;
  font-size:9px;
  padding:7px;
  white-space:normal;
}

.field input[type=file]::file-selector-button {
  border:1px solid var(--line);
  background:#eee;
  color:var(--ink);
  font:9px var(--mono);
  padding:5px;
  margin-right:7px;
}

.field small,.group-note {
  font:10px/1.6 var(--sans);
  color:var(--muted);
  margin:0;
}

.group-note {
  grid-column:1/-1;
}

.field.check {
  display:block;
  grid-column:1/-1;
}

.check label {
  display:flex;
  gap:8px;
  align-items:center;
  line-height:1.5;
}

.check small {
  display:block;
  margin-left:22px;
  margin-top:4px;
}

input[type=checkbox] {
  accent-color:var(--red);
  margin:0;
  width:13px;
  height:13px;
}

.field:has(:disabled) {
  opacity:.55;
}

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

.margin-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  grid-column:1/-1;
}

.settings-footnote {
  border-top:1px solid var(--line);
  font:9px/1.9 var(--mono);
  padding:15px;
  color:var(--muted);
}

.settings-footnote a {
  color:var(--red);
}

.quickstart {
  margin-top:36px;
}

.section-heading.small {
  padding:18px 0;
  border-top-color:var(--line);
}

.section-heading.small h2 {
  font-size:12px;
}

.section-heading.small>.muted {
  font:9px var(--mono);
}

.steps {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border:1px solid var(--line);
}

.steps>div {
  padding:17px;
}

.steps>div+div {
  border-left:1px solid var(--line);
}

.steps>div>span {
  font:10px var(--mono);
  color:var(--red);
}

.steps h3 {
  font:600 11px var(--mono);
  margin:9px 0;
}

.steps p {
  font-size:11px;
  line-height:1.7;
  color:var(--muted);
  margin:0;
}

.steps code {
  font-size:9px;
  overflow-wrap:anywhere;
}

.site-footer {
  display:flex;
  align-items:center;
  gap:22px;
  padding:27px 0;
  margin-top:45px;
  border-top:1px solid var(--line);
  font:9px var(--mono);
  color:var(--muted);
}

.site-footer .wordmark {
  font-size:23px;
  color:var(--ink);
}

.site-footer>a:last-child {
  margin-left:auto;
  text-decoration:none;
}

.toast {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  max-width:90%;
  background:var(--ink);
  color:var(--white);
  font:12px var(--mono);
  padding:12px 20px;
  box-shadow:3px 3px 0 #b8392e;
  z-index:10;
}

.sr-only,.skip-link:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.skip-link:focus {
  position:absolute;
  top:8px;
  left:8px;
  padding:10px;
  background:white;
  z-index:10;
}

.noscript {
  position:fixed;
  bottom:0;
  margin:0;
  padding:15px;
  background:var(--red);
  color:white;
  width:100%;
  text-align:center;
}

@keyframes pulse {
  50% {
    opacity:.3;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  .status-dot.busy {
    animation:none;
  }
}

@media(min-width:1500px) {
  .hero {
    padding-top:48px;
    padding-bottom:48px;
  }
  .hero-layout {
    grid-template-columns:1fr 480px;
  }
  .code-editor,.preview-stage {
    height:515px;
  }
  .playground-grid {
    grid-template-columns:minmax(0,1fr) 325px;
    gap:28px;
  }
}

@media(max-width:1150px) {
  .shell {
    width:calc(100% - 56px);
  }
  .hero-layout {
    grid-template-columns:1fr 390px;
    gap:35px;
  }
  .playground-grid {
    grid-template-columns:minmax(0,1fr) 280px;
    gap:18px;
  }
  .editor-grid {
    grid-template-columns:1fr;
  }
  .source-pane {
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .code-editor {
    height:280px;
  }
  .preview-stage {
    height:390px;
  }
  .preview-paper {
    max-width:280px;
  }
  .heading-note {
    display:none;
  }
  .hero-tags {
    gap:12px;
  }
  .hero-tags>span+span:before {
    margin-right:0;
  }
}

@media(max-width:850px) {
  .hero-layout {
    grid-template-columns:1fr 340px;
    gap:24px;
  }
  h1 {
    font-size:42px;
  }
  .hero-copy {
    font-size:13px;
  }
  .install-command {
    font-size:11px;
    padding:18px 12px;
  }
  .hero-tags {
    gap:8px;
    font-size:9px;
  }
  .hero-tags>span+span:before {
    display:none;
  }
  .playground-grid {
    grid-template-columns:minmax(0,1fr) 265px;
    gap:14px;
  }
  .tabs button {
    padding:15px 12px;
    font-size:10px;
  }
  .tabs button span {
    display:none;
  }
  .example-picker select {
    width:116px;
    font-size:9px;
  }
  .example-picker {
    padding-right:7px;
  }
  .steps {
    grid-template-columns:1fr;
  }
  .steps>div+div {
    border-left:0;
    border-top:1px solid var(--line);
  }
  .steps>div {
    padding:13px 16px;
  }
  .steps h3 {
    display:inline-block;
    margin:0 0 7px 10px;
  }
  .section-heading.small>.muted {
    display:none;
  }
  .filename {
    width:150px;
  }
  .primary-button {
    gap:15px;
    padding:13px;
    font-size:11px;
  }
  .generation-bar {
    flex-wrap:wrap;
  }
  .site-footer {
    gap:12px;
  }
}

@media(max-width:680px) {
  .download-button {
    width:100%;
    margin-top:4px;
  }
  .shell {
    width:calc(100% - 32px);
  }
  .header-inner {
    height:66px;
    gap:15px;
  }
  .header-description {
    display:none;
  }
  nav {
    gap:22px;
  }
  nav a {
    font-size:11px;
  }
  .hero {
    padding:30px 0;
  }
  .hero-layout {
    grid-template-columns:1fr;
    gap:24px;
    margin-top:24px;
  }
  h1 {
    font-size:46px;
    letter-spacing:-2.5px;
  }
  .hero-copy {
    font-size:14px;
    margin:16px 0;
  }
  .hero-tags {
    font-size:9px;
    gap:19px;
  }
  .install-card {
    padding:0;
  }
  .install-command {
    font-size:13px;
    padding:17px;
  }
  .install-card p {
    margin-top:13px;
  }
  .package-path {
    font-size:11px;
    gap:10px;
  }
  .section-heading {
    padding:19px 0 16px;
  }
  .section-heading>div {
    gap:9px;
  }
  h2 {
    font-size:13px;
  }
  .local-label {
    font-size:8px;
  }
  .playground-grid {
    grid-template-columns:1fr;
    gap:24px;
  }
  .editor-grid {
    grid-template-columns:1fr 1fr;
  }
  .source-pane {
    border-right:1px solid var(--line);
    border-bottom:0;
  }
  .code-editor,.preview-stage {
    height:370px;
  }
  .code-editor textarea {
    font-size:10px;
    line-height:2.09;
  }
  .preview-stage {
    padding:18px 12px;
  }
  .pane-heading {
    font-size:9px;
    padding:0 8px;
  }
  #preview-format {
    display:none;
  }
  .pane-footer {
    font-size:7px;
    gap:4px;
    padding:8px;
  }
  .preview-pane .pane-footer span:last-child {
    display:none;
  }
  .code-editor #line-numbers {
    flex-basis:28px;
  }
  .settings {
    grid-row:2;
  }
  .quickstart {
    margin-top:28px;
  }
  .steps {
    grid-template-columns:repeat(3,1fr);
  }
  .steps>div {
    padding:12px;
  }
  .steps>div+div {
    border-left:1px solid var(--line);
    border-top:0;
  }
  .steps h3 {
    display:block;
    margin:8px 0;
    font-size:10px;
  }
  .steps p {
    font-size:10px;
  }
  .site-footer {
    flex-wrap:wrap;
    margin-top:30px;
    line-height:1.8;
  }
  .site-footer>a:last-child {
    margin-left:0;
  }
  .group-fields {
    gap:14px;
  }
  .filename {
    width:185px;
  }
  .primary-button {
    gap:30px;
    padding:14px 17px;
  }
  .sdk-code {
    font-size:10px;
    padding:16px;
  }
  .toast {
    font-size:11px;
  }
}

@media(max-width:390px) {
  .editor-grid {
    grid-template-columns:1fr;
  }
  .source-pane {
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .code-editor {
    height:270px;
  }
  .preview-stage {
    height:370px;
  }
  .hero-tags {
    gap:12px;
  }
  .local-label {
    font-size:7px;
  }
  .filename {
    width:145px;
  }
  .primary-button {
    gap:15px;
  }
  .steps {
    grid-template-columns:1fr;
  }
  .steps>div+div {
    border-left:0;
    border-top:1px solid var(--line);
  }
}

@media(max-width:1150px) {
  .preview-paper {
    max-width:none;
  }
}

@media(max-width:680px) {
  .editor-grid {
    grid-template-columns:1fr;
  }
  .source-pane {
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .code-editor {
    height:280px;
  }
  .preview-stage {
    height:400px;
  }
  .code-editor textarea {
    font-size:11px;
    line-height:1.9;
  }
  .preview-pane .pane-footer span:last-child {
    display:inline;
  }
}
