:root {
  color-scheme: dark;
  background: #090d15;
  color: #edf2fb;
  font: 15px/1.55 system-ui, -apple-system, sans-serif;
  --panel: #101722;
  --deeper: #0b111c;
  --line: #293548;
  --muted: #acb8cb;
  --accent: #ff936f;
  --mono: ui-monospace, "SFMono-Regular", "Consolas", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #994b37; color: white; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: calc(100% - 42px); max-width: 1080px; margin-inline: auto; }
.topbar { background: #0c121c; border-bottom: 1px solid #222c3c; }
.topbar-inner { display: flex; min-height: 66px; justify-content: space-between; align-items: center; gap: 9px; }
.wordmark { display: inline-flex; gap: 10px; align-items: center; font-size: 19px; font-weight: 700; letter-spacing: -.05em; }
.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #784537;
  border-radius: 8px;
  background: #39231f;
  color: #ffa182;
  font: 650 17px/1 var(--mono);
}
.nav-link { color: #c8d3e6; padding: 7px 10px; border-radius: 6px; font-size: 13px; }
.nav-link:hover { background: #1a2537; color: #f3f6ff; }
.nav-link span, .site-footer a span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 1px 2px 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}
.nav-link span { transform: rotate(135deg); }
main { padding-block: 30px; }
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 194px;
  padding: 24px 28px 28px;
  border: 1px solid #36435a;
  border-radius: 13px;
  background: radial-gradient(ellipse at 94% 0%, #253854 0%, #152238 43%, #101823 82%);
}
.hero-content { position: relative; z-index: 1; }
.hero-grid {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: -1;
  opacity: .50;
  background:
    linear-gradient(120deg, transparent 62%, #ca6c54 62.12%, transparent 62.35%),
    linear-gradient(154deg, transparent 50%, #53678a 50.15%, transparent 50.35%),
    linear-gradient(#7da2ce29 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, #7da2ce29 1px, transparent 1px) 0 0 / 30px 30px;
  mask-image: linear-gradient(90deg, transparent 10%, black);
}
.privacy {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 11px;
  color: #ffaf96;
  font: 550 11px/1.45 var(--mono);
}
.privacy span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #fc845a82; }
h1 { font-size: clamp(32px, 5.8vw, 58px); font-weight: 680; letter-spacing: -.061em; line-height: 1.07; }
.intro { max-width: 57ch; color: #bac8df; margin-top: 10px; }
.workbench { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.panel-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: start; gap: 8px; }
h2 { font-size: 17px; letter-spacing: -.02em; line-height: 1.3; }
.panel-heading p, .model-description p { color: var(--muted); font-size: 13px; margin-top: 5px; }
textarea {
  display: block;
  width: 100%;
  min-height: 148px;
  padding: 11px;
  margin-top: 11px;
  resize: vertical;
  border: 1px solid #34435a;
  border-radius: 7px;
  background: var(--deeper);
  font-size: 16px;
  line-height: 1.5;
}
textarea::placeholder { color: #8f9eb7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 11px; }
.actions p { color: var(--muted); font-size: 12px; }
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid transparent;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}
.button:disabled { opacity: .67; cursor: wait; }
.primary { background: #ff865e; border-color: #ff9a78; color: #29130d; }
.primary:hover:not(:disabled) { background: #ffa181; }
.secondary { background: #162135; color: #d5e3fa; border-color: #32425a; }
.secondary:hover:not(:disabled) { background: #263551; }
.status, .error { font-size: 13px; margin-top: 10px; color: var(--muted); overflow-wrap: anywhere; }
.error { background: #2c2022; color: #ffb49d; border: 1px solid #613d37; border-radius: 7px; padding: 8px 10px; }
.fields { margin-top: 10px; }
.fields div { display: grid; grid-template-columns: minmax(82px, .6fr) minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 7px 0; border-top: 1px solid #263247; }
.fields dt { color: var(--muted); font-size: 13px; }
.fields dd { overflow-wrap: anywhere; color: #e7eefc; font: 450 13px/1.45 var(--mono); }
.fields dd.empty { color: #9aa8bd; font: 400 13px/1.45 system-ui, sans-serif; }
.json { margin-top: 10px; border: 1px solid #2b3950; border-radius: 7px; background: var(--deeper); }
.json summary { cursor: pointer; padding: 8px 10px; color: #cad7ee; font-size: 13px; }
pre { margin: 0; max-height: 260px; overflow: auto; border-top: 1px solid #2b3950; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font: 400 12px/1.6 var(--mono); }
.model-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; margin-top: 14px; scroll-margin-top: 12px; }
.model-description p { max-width: 60ch; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 9px; }
.metrics div { border: 1px solid #2c3a51; border-radius: 7px; background: var(--deeper); padding: 8px 10px; }
.metrics dt { color: var(--muted); font-size: 11px; }
.metrics dd { color: #ffad91; font: 650 18px/1.4 var(--mono); }
.metrics dd span { color: #b5c3d9; font-size: 12px; font-weight: 400; }
.site-footer { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0 20px; border-top: 1px solid #232f42; color: var(--muted); font-size: 12px; }
.site-footer a:hover { color: var(--accent); }
.noscript { margin-bottom: 12px; color: #ffb49d; }
@media (max-width: 720px) {
  .shell { width: calc(100% - 26px); }
  main { padding-block: 17px; }
  .hero { min-height: unset; padding: 17px 16px 20px; }
  .workbench, .model-panel { grid-template-columns: 1fr; }
  .panel { padding: 14px; }
}
