:root {
  --bg: #080a14;
  --bg-alt: #0d1020;
  --panel: #12162a;
  --text: #eaf0fb;
  --muted: #94a0bd;
  --line: #1c2440;
  --accent: #cfd9ea;
  --accent-2: #9aa8c2;
  --grad: linear-gradient(120deg, #eef2f9, #b9c4d8);
  --btn-ink: #0b1020;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* Sale banner */
.sale-banner {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  align-items: center; justify-content: center;
  padding: 10px 18px;
  background: var(--grad);
  color: var(--btn-ink);
  font-size: .92rem;
  text-align: center;
}
.sale-banner__text strong { font-weight: 800; }
.sale-banner__cta {
  font-weight: 700;
  border-bottom: 1px solid rgba(11,16,32,.5);
  white-space: nowrap;
}
.sale-banner__cta:hover { border-color: var(--btn-ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8,10,20,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; }
.brand__mark { width: 26px; height: 26px; display: block; flex: none; filter: drop-shadow(0 0 8px rgba(207,217,234,.28)); }
.brand__accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 26px; font-size: .92rem; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--accent); margin: 0 0 18px; font-weight: 600; }
.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); max-width: 48ch; }
.lede strong { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__wave { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }
.wave-grid {
  position: absolute; right: -8%; top: -18%;
  width: 66vw; height: 66vw; max-width: 720px; max-height: 720px;
  background:
    radial-gradient(circle at 35% 30%, rgba(207,217,234,.13), transparent 58%),
    radial-gradient(circle at 68% 70%, rgba(154,168,194,.10), transparent 58%);
  filter: blur(30px);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-22px) scale(1.05); } }

/* Starfield */
.hero__sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.stars { position: absolute; inset: -60% -20%; background-repeat: repeat; }
.stars--far {
  background-image:
    radial-gradient(1px 1px at 40px 60px, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 130px 170px, rgba(255,255,255,.5), transparent),
    radial-gradient(1.4px 1.4px at 210px 90px, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 90px 240px, rgba(255,255,255,.45), transparent),
    radial-gradient(1.2px 1.2px at 280px 210px, rgba(201,214,240,.6), transparent),
    radial-gradient(1px 1px at 330px 120px, rgba(255,255,255,.5), transparent);
  background-size: 340px 340px;
  animation: twinkle 6.5s ease-in-out infinite alternate;
}
.stars--near {
  background-image:
    radial-gradient(1.6px 1.6px at 70px 50px, #ffffff, transparent),
    radial-gradient(2px 2px at 190px 130px, rgba(255,255,255,.9), transparent),
    radial-gradient(1.6px 1.6px at 320px 230px, rgba(214,226,248,.95), transparent),
    radial-gradient(1.2px 1.2px at 250px 70px, rgba(255,255,255,.75), transparent),
    radial-gradient(1.8px 1.8px at 110px 300px, rgba(255,255,255,.8), transparent);
  background-size: 460px 460px;
  animation: twinkle 4.5s ease-in-out infinite alternate-reverse;
}
/* the river of stars — a soft diagonal band of light */
.river {
  position: absolute; left: -15%; right: -15%; top: 34%;
  height: 300px; transform: rotate(-13deg);
  background: linear-gradient(90deg, transparent, rgba(201,214,240,.05) 20%, rgba(201,214,240,.12) 50%, rgba(201,214,240,.05) 80%, transparent);
  filter: blur(8px);
}
.river::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 60px 140px, rgba(255,255,255,.9), transparent),
    radial-gradient(1.6px 1.6px at 220px 120px, rgba(214,226,248,.95), transparent),
    radial-gradient(1.2px 1.2px at 380px 160px, rgba(255,255,255,.8), transparent),
    radial-gradient(1.6px 1.6px at 520px 130px, rgba(255,255,255,.9), transparent),
    radial-gradient(1.3px 1.3px at 680px 150px, rgba(214,226,248,.9), transparent),
    radial-gradient(1.5px 1.5px at 840px 120px, rgba(255,255,255,.85), transparent);
  background-size: 900px 300px; background-repeat: repeat-x;
  animation: twinkle 3.8s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .stars--far, .stars--near, .river::after, .wave-grid { animation: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; background: transparent; border: none; cursor: pointer; font-family: inherit; color: var(--text); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn--primary { background: var(--grad); color: var(--btn-ink); box-shadow: 0 8px 30px rgba(207,217,234,.16); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(154,168,194,.22); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }

/* Sections */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.section p { color: var(--muted); }
.section p strong { color: var(--text); }

/* Feature list */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--muted); }
.feature-list__k { display: block; color: var(--text); font-weight: 700; font-size: .95rem; margin-bottom: 2px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step__num { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85rem; color: var(--accent); }
.step h3 { margin-top: 10px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.card p { margin: 0; font-size: .95rem; }
.section__intro { color: var(--muted); max-width: 60ch; margin: 0; font-size: 1.05rem; }

/* Acquire */
.section--acquire { background: var(--bg-alt); border-top: 1px solid var(--line); }
.acquire { text-align: center; max-width: 640px; }
.acquire__lede { font-size: 1.1rem; margin-bottom: 28px; }
.acquire .btn { margin-top: 6px; }
.acquire__contact { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.acquire__contact a { color: var(--accent); border-bottom: 1px solid rgba(207,217,234,.4); }

/* Article / prose */
.article { padding: clamp(48px, 8vw, 90px) 0 clamp(56px, 9vw, 100px); }
.article .container { max-width: 760px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.article__title { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
.article__deck { font-size: 1.15rem; color: var(--muted); margin: 0 0 8px; }
.article__meta { font-size: .82rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 40px; }
.prose h2 { font-size: 1.6rem; margin-top: 48px; }
.prose h3 { font-size: 1.2rem; margin-top: 32px; }
.prose p { color: #c6cee0; margin: 0 0 18px; }
.prose ul { color: #c6cee0; padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose a:not(.btn) { color: var(--accent); border-bottom: 1px solid rgba(207,217,234,.35); }
.prose a:not(.btn):hover { border-color: var(--accent); }
.prose a.btn { border-bottom: none; }
.prose a.btn--primary { color: var(--btn-ink); }
.pull { border-left: 3px solid var(--accent); padding: 6px 0 6px 20px; margin: 28px 0; color: var(--text); font-size: 1.15rem; font-weight: 500; }
.article-cta { margin-top: 48px; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.article-cta h3 { margin-top: 0; }
.article-cta p { color: var(--muted); margin: 0 0 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; font-size: .85rem; color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============================================================
   Client-site features: auth, chat widget, login, feedback
   ============================================================ */

.btn--sm { padding: 8px 16px; font-size: .85rem; }
.btn--block { width: 100%; justify-content: center; }

/* Header auth control */
.auth { display: flex; align-items: center; gap: 12px; margin-left: 20px; }
.auth__signin { white-space: nowrap; }
.auth__user { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.auth__user:hover { color: var(--accent); }
.auth__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: var(--btn-ink); font-weight: 800; font-size: .85rem;
}
.auth__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth__logout {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font-size: .82rem; cursor: pointer;
  font-family: inherit; transition: border-color .15s ease, color .15s ease;
}
.auth__logout:hover { border-color: var(--accent); color: var(--text); }

/* Form fields (shared) */
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-family: inherit; font-size: .95rem; line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(154,168,194,.18);
}
.field textarea { resize: vertical; }

/* Login / signup page */
.auth-page { display: grid; place-items: center; padding: clamp(48px, 10vw, 96px) 24px; min-height: 60vh; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px;
}
.auth-card__head { margin-bottom: 22px; }
.auth-card__head h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card__sub { color: var(--muted); margin: 0; font-size: .95rem; }
.auth-form__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: .85rem; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.checkbox input { accent-color: var(--accent-2); }
.auth-link { color: var(--accent); }
.auth-link:hover { text-decoration: underline; }
.auth-switch { text-align: center; color: var(--muted); font-size: .9rem; margin: 20px 0 0; }
.auth-switch a { color: var(--accent); }
.auth-switch a:hover { text-decoration: underline; }
.auth-demo { text-align: center; color: var(--muted); font-size: .8rem; margin: 18px 0 0; }
.auth-demo code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--accent); font-size: .78rem; }
.auth-alert { border-radius: 10px; padding: 11px 14px; font-size: .88rem; margin-bottom: 18px; }
.auth-alert--error { background: rgba(224,96,112,.12); border: 1px solid rgba(224,96,112,.4); color: #ffb3bd; }
.auth-alert--info { background: rgba(154,168,194,.12); border: 1px solid var(--line); color: var(--accent); }

/* Feedback form */
.contact { max-width: var(--maxw); }
.contact__layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: start; }
.contact__aside h2 { margin-bottom: 14px; }
.contact__lede { color: var(--muted); font-size: 1.05rem; max-width: 42ch; margin: 0 0 30px; }
.contact__details { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact__details li { display: flex; gap: 14px; align-items: center; }
.contact__ico {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--accent);
}
.contact__k { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 1px; }
.contact__details a { color: var(--text); font-weight: 600; }
.contact__details a:hover { color: var(--accent); }

.contact__card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.contact-form { text-align: left; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.contact-form__hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.field__opt { color: var(--muted); font-weight: 400; }
.field--message { margin-bottom: 22px; }
.contact-form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-form__status { font-size: .9rem; }
.contact-form__status--ok { color: #8fe3b0; }
.contact-form__status--error { color: #ffb3bd; }
.contact-form__status--pending { color: var(--muted); }

@media (max-width: 860px) {
  .contact__layout { grid-template-columns: 1fr; gap: 32px; }
  .contact__lede { max-width: none; }
}

/* Chat-bot widget */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.chat__toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: var(--btn-ink);
  display: grid; place-items: center;
  box-shadow: 0 10px 34px rgba(154,168,194,.32);
  transition: transform .15s ease, box-shadow .15s ease;
}
.chat__toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(154,168,194,.42); }
.chat--open .chat__toggle { transform: scale(.92); opacity: .85; }
.chat__panel {
  position: absolute; right: 0; bottom: 70px;
  width: min(340px, calc(100vw - 40px)); height: 460px; max-height: calc(100vh - 120px);
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.chat__panel[hidden] { display: none; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.chat__head strong { display: block; font-size: .95rem; }
.chat__head small { color: var(--muted); font-size: .78rem; }
.chat__dot { width: 9px; height: 9px; border-radius: 50%; background: #8fe3b0; box-shadow: 0 0 8px rgba(143,227,176,.7); flex: none; }
.chat__close { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat__close:hover { color: var(--text); }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat__msg { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.chat__msg--bot { background: var(--bg-alt); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat__msg--me { background: var(--grad); color: var(--btn-ink); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.chat__msg--typing { color: var(--muted); letter-spacing: 2px; }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat__input {
  flex: 1; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px;
  font-family: inherit; font-size: .9rem;
}
.chat__input:focus { outline: none; border-color: var(--accent-2); }
.chat__send {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: var(--btn-ink); font-size: 1.1rem; font-weight: 700;
}
.chat__send:hover { opacity: .9; }

@media (max-width: 480px) {
  .contact-form__grid { grid-template-columns: 1fr; }
  .auth__name { display: none; }
}

/* ============================================================
   API Sandbox (QA / developer tools page)
   ============================================================ */
.sandbox-page {
  --sb-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --sb-edge: #5a668e;
  --sb-ink: #c6cee0;
  --sb-ok: #8fe3b0;
  --sb-err: #ffb3bd;
  --sb-ring: 0 0 0 3px rgba(154,168,194,.28);
  --m-get: #8fe3b0;
  --m-post: #9dbcf2;
  --m-put: #7fd6d6;
  --m-patch: #c6a8e3;
  --m-delete: #ffb3bd;
  --m-muted: var(--muted);
  padding: clamp(32px, 6vw, 56px) 0 clamp(48px, 8vw, 80px);
  color-scheme: dark;
}
.sandbox-page .container { max-width: 1200px; }
.sandbox-page h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 8px; }
.sandbox-page .section__intro { font-size: 1rem; }
.sandbox-page h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin: 0; }
.sandbox-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sandbox { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; margin-top: 24px; align-items: stretch; }
.sandbox__panel, .sandbox__out {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.sandbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 6px 12px 6px 16px;
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}
.sandbox__body { display: flex; flex-direction: column; gap: 16px; padding: 16px; flex: 1; min-width: 0; }
.sandbox__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sandbox__panel { --m: var(--accent); }
.sandbox__panel:has(select[name="method"] option[value="GET"]:checked) { --m: var(--m-get); }
.sandbox__panel:has(select[name="method"] option[value="POST"]:checked) { --m: var(--m-post); }
.sandbox__panel:has(select[name="method"] option[value="PUT"]:checked) { --m: var(--m-put); }
.sandbox__panel:has(select[name="method"] option[value="PATCH"]:checked) { --m: var(--m-patch); }
.sandbox__panel:has(select[name="method"] option[value="DELETE"]:checked) { --m: var(--m-delete); }
.sandbox__panel:has(select[name="method"] option[value="OPTIONS"]:checked),
.sandbox__panel:has(select[name="method"] option[value="HEAD"]:checked) { --m: var(--m-muted); }

.sandbox__line { display: flex; gap: 12px; align-items: stretch; }
.sandbox__url {
  flex: 1; min-width: 0; display: flex;
  background: var(--bg); border: 1px solid var(--sb-edge); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sandbox__url:hover { border-color: var(--accent-2); }
.sandbox__url:focus-within { border-color: var(--accent); box-shadow: var(--sb-ring); }
.sandbox__method { position: relative; flex: none; display: block; border-right: 1px solid var(--line); }
.sandbox__endpoint { position: relative; flex: 1; min-width: 0; display: block; }
.sandbox__send { flex: none; min-height: 46px; padding: 0 24px; border-radius: 10px; justify-content: center; }
.sandbox__send:active { transform: translateY(0); }

.sandbox select, .sandbox input, .sandbox textarea { font-family: var(--sb-mono); font-size: .88rem; color: var(--text); }
.sandbox select {
  appearance: none; -webkit-appearance: none; cursor: pointer; width: 100%; height: 44px;
  padding: 0 36px 0 14px; background-color: var(--bg); border: 1px solid var(--sb-edge); border-radius: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2394a0bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sandbox select:hover { border-color: var(--accent-2); }
.sandbox select:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--sb-ring); }
.sandbox option { background: var(--panel); color: var(--text); }
.sandbox .sandbox__method select {
  width: auto; min-width: 104px; border: 0; border-radius: 9px 0 0 9px; font-weight: 700; letter-spacing: .02em;
  color: var(--m); background-color: transparent;
  background-color: color-mix(in srgb, var(--m) 10%, transparent);
}
.sandbox .sandbox__method select:focus-visible { box-shadow: none; }
.sandbox .sandbox__endpoint input {
  width: 100%; height: 44px; padding: 0 14px; background: transparent; border: 0; border-radius: 0 9px 9px 0;
  font-size: .9rem; text-overflow: ellipsis;
}
.sandbox .sandbox__endpoint input:focus { outline: none; box-shadow: none; }

.sandbox__opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, 148px); gap: 12px; }
.sandbox .field { margin: 0; min-width: 0; }
.sandbox .field__label { font-size: .8rem; margin-bottom: 6px; }
.sandbox .field textarea {
  display: block; min-height: 176px; padding: 12px 14px; line-height: 1.6; tab-size: 2;
  background: var(--bg); border: 1px solid var(--sb-edge); border-radius: 10px; resize: vertical;
}
.sandbox .field textarea:hover { border-color: var(--accent-2); }
.sandbox .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--sb-ring); }
.sandbox__hint { display: block; margin-top: 8px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.sandbox__hint:empty { display: none; }

.sandbox__clear { min-height: 44px; padding: 0 16px; }
.sandbox__status {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--sb-mono); font-size: .85rem; line-height: 20px; color: var(--muted);
  overflow-wrap: anywhere;
}
.sandbox__status::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.sandbox__status--ok { color: var(--sb-ok); background: rgba(143,227,176,.08); }
.sandbox__status--error { color: var(--sb-err); background: rgba(224,96,112,.12); }
.sandbox__status--pending { color: var(--accent); }
.sandbox__status--ok::before, .sandbox__status--error::before, .sandbox__status--pending::before { background: currentColor; }
.sandbox__status--pending::before { animation: sandbox-pulse 1s ease-in-out infinite alternate; }
@keyframes sandbox-pulse { from { opacity: 1; } to { opacity: .3; } }

.sandbox__block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sandbox__block--grow { flex: 1; }
.sandbox .sandbox__h { font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0; }
.sandbox__pre {
  margin: 0; padding: 12px 16px; background: var(--bg); border-radius: 10px;
  font-family: var(--sb-mono); font-size: .82rem; line-height: 1.6; tab-size: 2;
  color: var(--sb-ink); white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto;
}
.sandbox__pre--headers { max-height: 184px; }
.sandbox__pre--body { flex: 1; min-height: 200px; max-height: 480px; }

.sandbox-page .sandbox__presets-title { margin-top: 48px; }
.sandbox-page .sandbox__presets-note { margin: 4px 0 0; font-size: .9rem; }
.sandbox__presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 208px), 1fr)); gap: 8px; margin-top: 16px; }
.preset {
  display: flex; align-items: center; gap: 12px; min-height: 44px; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 14px 6px 8px; color: var(--text); font-family: inherit; font-size: .9rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.preset:hover { border-color: var(--accent-2); background: #171c36; }
.preset:active { background: var(--bg-alt); }
.preset__label { min-width: 0; overflow-wrap: anywhere; }
.preset__m {
  flex: none; min-width: 64px; padding: 4px 8px; border-radius: 6px; text-align: center;
  font-family: var(--sb-mono); font-size: .7rem; font-weight: 700; letter-spacing: .03em; line-height: 1.2;
  color: var(--accent); background: var(--bg-alt);
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.preset__m--get { color: var(--m-get); }
.preset__m--post { color: var(--m-post); }
.preset__m--put { color: var(--m-put); }
.preset__m--patch { color: var(--m-patch); }
.preset__m--delete { color: var(--m-delete); }
.preset__m--options, .preset__m--head { color: var(--m-muted); }

@media (max-width: 900px) {
  .sandbox { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sandbox__line { flex-wrap: wrap; }
  .sandbox__send { flex: 1 1 100%; }
  .sandbox__opts { grid-template-columns: minmax(0, 1fr); }
  .sandbox__body { padding: 12px; }
  .sandbox .sandbox__method select { min-width: 0; padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sandbox-page *, .sandbox-page *::before { animation: none !important; transition: none !important; }
  .sandbox__send:hover { transform: none; }
}

.sandbox__docs-link { margin: 6px 0 0; }
