:root {
  --ink-50: #fafafa;
  --ink-500: #6b6b6b;
  --ink-600: #454545;
  --ink-800: #171717;
  --brand: #db3512;
  --brand-deep: #b82a0d;
  --surface-canvas: #fafafa;
  --surface-card: #ffffff;
  --surface-code: #f0f0f0;
  --surface-hover: #f3f3f3;
  --surface-selected: #e4e4e4;
  --fg-1: #000000;
  --fg-2: #454545;
  --fg-3: #6b6b6b;
  --hairline: #e5e5e5;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --rail: 16.25rem;
  --try: 39.75rem;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[hidden] {
  display: none !important;
}

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

html,
body {
  margin: 0;
  height: 100%;
  overscroll-behavior: none;
}

html {
  overflow: hidden;
}

body {
  overflow: auto;
  font-family: "Switzer", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--fg-1);
  background: var(--surface-canvas);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

html.dark {
  color-scheme: dark;
  --surface-canvas: #0b0a09;
  --surface-card: #121110;
  --surface-code: #1a1918;
  --surface-hover: #242220;
  --surface-selected: #2e2c2a;
  --fg-1: #f7f4ee;
  --fg-2: #d9d3c8;
  --fg-3: #9a9388;
  --hairline: rgb(247 244 238 / 0.12);
  color: var(--fg-1);
  background: var(--surface-canvas);
}

html.light {
  color-scheme: light;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 5;
  transform: translateY(-150%);
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(0 0 0 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(0 0 0 / 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 72% 0%, #000 10%, transparent 68%);
}

html.dark .backdrop {
  background-image:
    linear-gradient(to right, rgb(247 244 238 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(247 244 238 / 0.05) 1px, transparent 1px);
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
}

html.dark .orb {
  opacity: 0.42;
}

html.light .orb {
  opacity: 0.55;
}

.orb-a {
  top: -16rem;
  right: 4%;
  width: 36rem;
  height: 36rem;
  background: rgb(219 53 18 / 0.28);
}

.orb-b {
  bottom: -14rem;
  left: -6rem;
  width: 24rem;
  height: 24rem;
  background: rgb(23 23 23 / 0.08);
}

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.app.has-try {
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--try);
}

.top {
  position: sticky;
  top: 0;
  z-index: 3;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4rem;
  padding: 0 1.35rem;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface-canvas) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.logo {
  height: 1.55rem;
  width: auto;
}

.logo-dark,
.logo-light {
  display: none;
}

html.dark .logo-dark,
html.light .logo-light {
  display: block;
}

.word {
  padding-left: 0.85rem;
  border-left: 1px solid var(--hairline);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sample {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.28rem 0.65rem 0.28rem 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--fg-2);
  font-size: 0.75rem;
  letter-spacing: -0.01em;
}

.sample-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgb(219 53 18 / 0.16);
}

html.dark .sample {
  border-color: rgb(219 53 18 / 0.42);
  box-shadow:
    0 0 0 1px rgb(219 53 18 / 0.18),
    0 0 18px rgb(219 53 18 / 0.28);
}

html.dark .sample-dot {
  box-shadow:
    0 0 0 3px rgb(219 53 18 / 0.34),
    0 0 10px 2px rgb(219 53 18 / 0.85);
}

.theme-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: var(--surface-card);
  color: inherit;
  cursor: pointer;
  transition:
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.theme-toggle:hover {
  border-color: transparent;
  background: var(--surface-hover);
  transform: scale(1.06);
}

.theme-toggle:focus-visible,
.rail-link:focus-visible,
.route-row:focus-visible,
.copy:focus-visible,
.send:focus-visible,
.reset:focus-visible,
.field input:focus-visible,
.dropdown-trigger:focus-visible,
.dropdown-option:focus-visible,
.export-card:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

html.dark .theme-toggle .icon-sun,
html.light .theme-toggle .icon-moon {
  display: block;
}

.article,
.try,
.rail {
  min-width: 0;
}

.rail,
.article {
  background: var(--surface-canvas);
}

.rail {
  padding: 1.4rem 0.9rem 2.5rem 1.1rem;
  border-right: 1px solid var(--hairline);
}

.rail-label {
  margin: 1.35rem 0.45rem 0.4rem;
  color: var(--fg-3);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rail-label:first-child {
  margin-top: 0.15rem;
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0.08rem 0;
  padding: 0.42rem 0.5rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg-2);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.22s var(--ease-out),
    color 0.22s var(--ease-out),
    transform 0.22s var(--ease-out);
}

.rail-link:hover {
  background: var(--surface-hover);
  color: var(--fg-1);
  transform: translateX(3px);
}

.rail-link.is-on,
.rail-link.is-on:hover {
  background: var(--surface-selected);
  color: var(--fg-1);
  transform: none;
}

.rail-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  color: var(--fg-3);
}

.rail-link:hover .rail-icon,
.rail-link.is-on .rail-icon {
  color: var(--fg-1);
}

.method {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-width: 3.15rem;
  justify-content: center;
  padding: 0.12rem 0.35rem 0.08rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.method-get {
  border-color: transparent;
  background: rgb(31 122 58 / 0.14);
  color: #176b34;
}

.method-post {
  border-color: transparent;
  background: rgb(214 164 20 / 0.24);
  color: #8a5a00;
}

.method-delete {
  border-color: transparent;
  background: rgb(219 53 18 / 0.12);
  color: #b82a0d;
}

html.dark .method-get {
  background: rgb(141 206 164 / 0.16);
  color: #8dcea4;
}

html.dark .method-post {
  background: rgb(240 196 80 / 0.16);
  color: #f0d48a;
}

html.dark .method-delete {
  background: rgb(219 53 18 / 0.2);
  color: #f3b0a2;
}

.article {
  padding: 2.6rem 3rem 4.5rem;
  max-width: 48rem;
}

.article > * {
  animation: rise 0.45s var(--ease-out) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article > * {
    animation: none;
  }
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: clamp(2.7rem, 5.2vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.062em;
  line-height: 0.9;
  color: var(--fg-1);
}

.llm-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.25rem;
  margin-bottom: 0.35rem;
  padding: 0 0.8rem 0 0.55rem;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.llm-copy .copy-slot {
  display: inline-flex;
  width: 0.95rem;
  height: 0.95rem;
}

.llm-copy.is-copied {
  background: var(--surface-selected);
  border-color: transparent;
}

.llm-copy.is-copied .copy-icon {
  animation: copy-pop 0.38s var(--ease-out);
}

@keyframes copy-pop {
  0% {
    transform: scale(0.72);
  }
  55% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .llm-copy.is-copied .copy-icon {
    animation: none;
  }
}

.title::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: 1.05rem;
  border-radius: 999px;
  background: var(--brand);
}

.lead,
.note {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  color: var(--fg-2);
  font-size: 1.08rem;
  letter-spacing: -0.018em;
  line-height: 1.5;
}

.lead code,
.note code,
.arch-copy code,
.arch-list-item code,
.scope code {
  font-family: var(--mono);
  font-size: 0.84em;
  font-weight: 500;
  letter-spacing: -0.03em;
  padding: 0.08em 0.38em 0.12em;
  border-radius: 6px;
  background: var(--surface-code);
  color: var(--fg-1);
  white-space: nowrap;
}

.scope code {
  padding: 0 0.15em;
  background: transparent;
  color: inherit;
  font-size: 1em;
}

.scope {
  display: inline-flex;
  margin: 0.9rem 0 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgb(219 53 18 / 0.08);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.path-row,
.key-row,
.code-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.path-row {
  align-items: center;
  margin-top: 1.4rem;
  padding: 0.55rem 0.65rem 0.55rem 0.55rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface-code);
}

.path {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: -0.02em;
  word-break: break-all;
  color: inherit;
  text-decoration: none;
}

.path:hover {
  color: var(--brand);
}

.key-row {
  align-items: center;
}

.section {
  margin: 2rem 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.code-card {
  margin-top: 0.15rem;
  padding: 1rem 0.9rem 1rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface-code);
}

html.dark .code-card {
  border-color: var(--hairline);
}

.code,
.try-response {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.65;
  letter-spacing: -0.02em;
  white-space: pre-wrap;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.tok-key {
  color: var(--fg-2);
}

.tok-str {
  color: var(--fg-1);
}

.tok-num {
  color: var(--brand);
}

.tok-ok {
  color: #176b34;
}

html.dark .tok-ok {
  color: #8dcea4;
}

.code-card.is-ok {
  background: rgb(31 122 58 / 0.1);
  border-color: rgb(31 122 58 / 0.22);
}

html.dark .code-card.is-ok {
  background: rgb(141 206 164 / 0.1);
  border-color: rgb(141 206 164 / 0.28);
}

.tok-pun {
  color: var(--fg-3);
}

.copy,
.reset {
  flex: none;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface-card);
  color: var(--fg-1);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  transition:
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.copy:hover,
.reset:hover {
  background: var(--surface-hover);
  border-color: transparent;
  transform: translateY(-1px);
}

.copy-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.copy-icon-button.is-copied {
  background: var(--surface-selected);
  border-color: transparent;
}

.copy-icon-button.is-copied .copy-icon {
  animation: copy-pop 0.38s var(--ease-out);
}

.copy-icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.key-card {
  padding: 1rem 1rem 0.9rem 1.05rem;
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--brand);
  border-radius: 14px;
  background: var(--surface-card);
}

.route-index {
  margin-top: 0.35rem;
  border-top: 1px solid var(--hairline);
}

.route-row {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1.35fr) minmax(8rem, 0.8fr);
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.72rem 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  transition:
    background 0.22s var(--ease-out),
    transform 0.22s var(--ease-out);
}

.route-row:hover {
  background: var(--surface-hover);
  transform: translateX(4px);
}

.route-row:hover .route-name {
  color: var(--fg-1);
  transition: color 0.22s var(--ease-out);
}

.route-path {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: -0.03em;
  word-break: break-all;
}

.route-name {
  color: var(--fg-3);
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

.arch {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.arch-step {
  display: grid;
  grid-template-columns: 2.85rem minmax(0, 1fr);
  gap: 0.85rem;
  position: relative;
}

.arch-step::before {
  content: "";
  position: absolute;
  left: 1.38rem;
  top: 2.55rem;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}

.arch-step:last-child::before {
  display: none;
}

.arch-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--fg-1);
  cursor: default;
  user-select: none;
}

.arch-icon {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
}

.section-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-icon .arch-icon {
  width: 1rem;
  height: 1rem;
  color: var(--fg-1);
}

.arch-card {
  margin: 0 0 0.8rem;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface-card);
  transition:
    background 0.22s var(--ease-out),
    transform 0.22s var(--ease-out);
}

.arch-card:hover {
  background: var(--surface-hover);
  transform: translateX(4px);
}

.arch-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--fg-1);
}

.arch-copy {
  margin: 0.4rem 0 0;
  color: var(--fg-2);
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.arch-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.arch-lane {
  margin: 0;
  padding: 0.8rem 0.8rem 0.85rem;
  background: var(--surface-code);
}

.arch-lane:hover {
  transform: none;
  background: var(--surface-hover);
}

.arch-list {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.arch-list-item {
  position: relative;
  margin: 0;
  padding: 0.38rem 0 0.38rem 0.85rem;
  border-top: 1px solid var(--hairline);
  color: var(--fg-1);
  font-size: 0.86rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.arch-list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.35rem;
  height: 1px;
  background: var(--brand);
}

.key-scope {
  margin: 0 0 0.55rem;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.key-value {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.export-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-height: 100%;
  padding: 1.15rem 1.1rem 1.05rem;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface-card);
  color: inherit;
  text-decoration: none;
  transition:
    background 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.export-card:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgb(11 10 9 / 0.08);
}

html.dark .export-card:hover {
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.35);
}

.export-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.35rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface-code);
}

.export-mark .rail-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--fg-1);
}

.export-card .key-scope {
  margin: 0;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.export-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.export-copy {
  margin: 0;
  max-width: 18rem;
  color: var(--fg-2);
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.export-file {
  margin-top: 0.35rem;
  padding: 0.16rem 0.45rem;
  border-radius: 6px;
  background: var(--surface-code);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.export-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  height: 2.6rem;
  margin-top: auto;
  border-radius: 12px;
  background: var(--fg-1);
  color: var(--surface-canvas);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.export-go .rail-icon {
  width: 1rem;
  height: 1rem;
  color: currentColor;
}

.try {
  padding: 1.35rem 1.15rem 2.4rem;
  border-left: 1px solid var(--hairline);
}

.try-card {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.05rem;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface-card);
}

.try-line {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  gap: 0.55rem;
}

.try-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.try-head .llm-copy {
  margin-bottom: 0;
  flex: none;
}

.try-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--fg-1);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.field > span {
  position: relative;
  z-index: 8;
  color: var(--fg-3);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface-canvas);
  color: var(--fg-1);
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.015em;
  padding: 0.58rem 0.7rem;
}

.body-na {
  margin: 0;
  padding: 0.58rem 0.7rem;
  border: 1px dashed var(--hairline);
  border-radius: 10px;
  color: var(--fg-3);
  font-size: 0.82rem;
  letter-spacing: -0.015em;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.dropdown {
  position: relative;
}

.native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
  pointer-events: none;
}

#try-path {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: -0.03em;
  cursor: default;
}

.dropdown-trigger {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.7rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface-canvas);
  color: var(--fg-1);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: -0.03em;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    transform 0.22s var(--ease-out);
}

.dropdown-trigger:hover {
  background: var(--surface-hover);
  border-color: transparent;
}

.dropdown.is-open .dropdown-trigger {
  background: var(--surface-selected);
  border-color: transparent;
}

.dropdown.tone-get .dropdown-trigger,
.dropdown.tone-get.is-open .dropdown-trigger,
.dropdown.tone-get .dropdown-trigger:hover {
  border-color: transparent;
  background: rgb(31 122 58 / 0.14);
  color: #176b34;
}

.dropdown.tone-post .dropdown-trigger,
.dropdown.tone-post.is-open .dropdown-trigger,
.dropdown.tone-post .dropdown-trigger:hover {
  border-color: transparent;
  background: rgb(214 164 20 / 0.24);
  color: #8a5a00;
}

.dropdown.tone-delete .dropdown-trigger,
.dropdown.tone-delete.is-open .dropdown-trigger,
.dropdown.tone-delete .dropdown-trigger:hover {
  border-color: transparent;
  background: rgb(219 53 18 / 0.12);
  color: #b82a0d;
}

.dropdown.tone-get .dropdown-chevron {
  color: #176b34;
}

.dropdown.tone-post .dropdown-chevron {
  color: #8a5a00;
}

.dropdown.tone-delete .dropdown-chevron {
  color: #b82a0d;
}

html.dark .dropdown.tone-get .dropdown-trigger,
html.dark .dropdown.tone-get.is-open .dropdown-trigger,
html.dark .dropdown.tone-get .dropdown-trigger:hover {
  background: rgb(141 206 164 / 0.16);
  color: #8dcea4;
}

html.dark .dropdown.tone-post .dropdown-trigger,
html.dark .dropdown.tone-post.is-open .dropdown-trigger,
html.dark .dropdown.tone-post .dropdown-trigger:hover {
  background: rgb(240 196 80 / 0.16);
  color: #f0d48a;
}

html.dark .dropdown.tone-delete .dropdown-trigger,
html.dark .dropdown.tone-delete.is-open .dropdown-trigger,
html.dark .dropdown.tone-delete .dropdown-trigger:hover {
  background: rgb(219 53 18 / 0.2);
  color: #f3b0a2;
}

html.dark .dropdown.tone-get .dropdown-chevron {
  color: #8dcea4;
}

html.dark .dropdown.tone-post .dropdown-chevron {
  color: #f0d48a;
}

html.dark .dropdown.tone-delete .dropdown-chevron {
  color: #f3b0a2;
}

.dropdown-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.dropdown-chevron {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  color: var(--fg-3);
  transition: transform 0.45s var(--ease-out);
}

.dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--fg-1);
}

.dropdown-menu {
  display: grid;
  grid-template-rows: 0fr;
  min-width: 100%;
  padding-top: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    grid-template-rows 0.45s var(--ease-out),
    padding-top 0.45s var(--ease-out);
}

.dropdown.is-open .dropdown-menu {
  grid-template-rows: 1fr;
  padding-top: 0.4rem;
  pointer-events: auto;
}

.dropdown-menu-inner {
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 12px 28px rgb(11 10 9 / 0.1);
}

html.dark .dropdown-menu-inner {
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 12px 28px rgb(0 0 0 / 0.35);
}

.dropdown-options {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.28rem;
}

.dropdown-option {
  width: 100%;
  padding: 0.48rem 0.6rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: -0.03em;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.dropdown-option:hover {
  background: var(--surface-hover);
  color: var(--fg-1);
  transform: translateX(3px);
}

.dropdown-option.is-on,
.dropdown-option.is-on:hover {
  background: var(--surface-selected);
  color: var(--fg-1);
  transform: none;
}

.dropdown-option.tone-get,
.dropdown-option.tone-get:hover,
.dropdown-option.tone-get.is-on,
.dropdown-option.tone-get.is-on:hover {
  color: #176b34;
}

.dropdown-option.tone-post,
.dropdown-option.tone-post:hover,
.dropdown-option.tone-post.is-on,
.dropdown-option.tone-post.is-on:hover {
  color: #8a5a00;
}

.dropdown-option.tone-delete,
.dropdown-option.tone-delete:hover,
.dropdown-option.tone-delete.is-on,
.dropdown-option.tone-delete.is-on:hover {
  color: #b82a0d;
}

html.dark .dropdown-option.tone-get,
html.dark .dropdown-option.tone-get:hover,
html.dark .dropdown-option.tone-get.is-on,
html.dark .dropdown-option.tone-get.is-on:hover {
  color: #8dcea4;
}

html.dark .dropdown-option.tone-post,
html.dark .dropdown-option.tone-post:hover,
html.dark .dropdown-option.tone-post.is-on,
html.dark .dropdown-option.tone-post.is-on:hover {
  color: #f0d48a;
}

html.dark .dropdown-option.tone-delete,
html.dark .dropdown-option.tone-delete:hover,
html.dark .dropdown-option.tone-delete.is-on,
html.dark .dropdown-option.tone-delete.is-on:hover {
  color: #f3b0a2;
}

@media (max-width: 767px) {
  .dropdown-option:hover,
  .dropdown-trigger:hover {
    transform: none;
  }
}

.send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.85rem;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 0 1.1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(219 53 18 / 0.22);
  transition:
    background 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.send-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.send:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(219 53 18 / 0.32);
}

.send:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgb(219 53 18 / 0.24);
}

html.dark .send {
  box-shadow:
    0 0 0 1px rgb(219 53 18 / 0.4),
    0 0 22px rgb(219 53 18 / 0.28);
}

html.dark .send:hover {
  box-shadow:
    0 0 0 1px rgb(219 53 18 / 0.55),
    0 0 28px rgb(219 53 18 / 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .send:hover,
  .send:active,
  .export-card:hover {
    transform: none;
  }
}

.try-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 1.6rem;
}

.status-pill {
  display: inline-flex;
  min-width: 2.6rem;
  justify-content: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.status-pill.is-ok {
  background: rgb(31 122 58 / 0.12);
  color: #1f7a3a;
}

.status-pill.is-bad {
  background: rgb(219 53 18 / 0.1);
  color: var(--brand);
}

html.dark .status-pill.is-ok {
  color: #8dcea4;
}

.saved {
  margin: 0;
  color: var(--fg-3);
  font-size: 0.75rem;
  letter-spacing: -0.01em;
}

.try-card.is-get .try-response {
  min-height: 16.5rem;
  max-height: 36rem;
}

.try-response {
  max-height: 22rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: var(--surface-code);
  border: 1px solid var(--hairline);
}

html.dark .try-response {
  border-color: var(--hairline);
}

.try-response.is-ok {
  background: rgb(31 122 58 / 0.1);
  border-color: rgb(31 122 58 / 0.22);
}

html.dark .try-response.is-ok {
  background: rgb(141 206 164 / 0.1);
  border-color: rgb(141 206 164 / 0.28);
}

.try-response.is-placeholder {
  color: var(--fg-3);
}

.try-foot {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 1100px) {
  .app,
  .app.has-try {
    grid-template-columns: var(--rail) minmax(0, 1fr);
  }

  .try {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .try-card {
    position: static;
  }
}

@media (max-width: 767px) {
  .app,
  .app.has-try {
    grid-template-columns: minmax(0, 1fr);
  }

  .top {
    height: auto;
    min-height: 3.6rem;
    padding: 0.7rem 0.85rem;
  }

  .title {
    font-size: 2.35rem;
  }

  .title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .llm-copy {
    margin-bottom: 0;
  }

  .rail {
    display: flex;
    gap: 0.4rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.65rem 0.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .rail-label {
    display: none;
  }

  .rail-link {
    width: auto;
    flex: none;
    white-space: nowrap;
    border: 1px solid var(--hairline);
    background: var(--surface-card);
  }

  .rail-link:hover,
  .route-row:hover {
    transform: none;
  }

  .rail-link.is-on {
    border-color: transparent;
    background: var(--surface-selected);
  }

  .article {
    padding: 1.4rem 1rem 2.2rem;
  }

  .key-grid,
  .try-line,
  .export-grid {
    grid-template-columns: 1fr;
  }

  .route-row {
    grid-template-columns: 4.2rem minmax(0, 1fr);
  }

  .arch-split {
    grid-template-columns: 1fr;
  }

  .arch-card:hover,
  .send:hover,
  .export-card:hover {
    transform: none;
  }

  .route-name {
    grid-column: 2;
  }

  .try {
    padding: 0 0.75rem 2rem;
    border-top: 0;
  }
}
