:root {
  color-scheme: dark;
  --ink: #070b12;
  --ink-2: #0b111c;
  --ink-3: #111a28;
  --panel: #101827;
  --panel-2: #151f30;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --muted: #99a6ba;
  --muted-2: #6c7a8f;
  --lime: #d7ff72;
  --lime-deep: #b8e84d;
  --violet: #a78bfa;
  --cyan: #6ee7f9;
  --amber: #f8c46b;
  --pink: #f9a8d4;
  --red: #fb7185;
  --green: #86efac;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --font: "Inter", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Consolas", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
::selection { background: var(--lime); color: #101408; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.container-wide { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.03em; font-size: 21px; }
.brand-mark {
  position: relative; width: 32px; height: 32px; border-radius: 10px;
  background: var(--lime); color: #14200a; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 0 26px rgba(215,255,114,.22);
  flex: 0 0 auto;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-dot { color: var(--lime); }
.brand--light .brand-mark { background: #111827; color: var(--lime); box-shadow: inset 0 0 0 1px rgba(215,255,114,.3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 19px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .52; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--lime); color: #111708; box-shadow: 0 8px 26px rgba(215,255,114,.12); }
.btn-primary:hover { background: #e4ff9b; box-shadow: 0 10px 34px rgba(215,255,114,.2); }
.btn-dark { background: #111827; color: var(--text); border-color: var(--line); }
.btn-dark:hover { border-color: var(--line-strong); background: #172234; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: var(--line-strong); }
.btn-soft { background: rgba(215,255,114,.1); color: var(--lime); border-color: rgba(215,255,114,.18); }
.btn-danger { background: rgba(251,113,133,.1); color: #fecdd3; border-color: rgba(251,113,133,.25); }
.btn-lg { min-height: 52px; padding: 0 25px; font-size: 15px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 12.5px; border-radius: 9px; }
.btn-icon { width: 38px; min-height: 38px; padding: 0; border-radius: 10px; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary .icon { width: 17px; height: 17px; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 26px; height: 26px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px 7px 8px;
  border-radius: 100px; border: 1px solid var(--line); background: rgba(255,255,255,.035);
  color: #c7d2e2; font-size: 12px; font-weight: 500; letter-spacing: .01em;
}
.eyebrow .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(215,255,114,.1); }
.eyebrow .eyebrow-tag { padding: 2px 7px; background: var(--lime); color: #111708; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 2px 8px;
  border-radius: 6px; background: rgba(255,255,255,.06); color: #cbd5e1; border: 1px solid var(--line);
  font-size: 11px; font-weight: 600; line-height: 1.2;
}
.badge--lime { background: rgba(215,255,114,.1); color: var(--lime); border-color: rgba(215,255,114,.18); }
.badge--violet { background: rgba(167,139,250,.12); color: #ddd6fe; border-color: rgba(167,139,250,.2); }
.badge--cyan { background: rgba(110,231,249,.1); color: #cffafe; border-color: rgba(110,231,249,.2); }
.badge--red { background: rgba(251,113,133,.1); color: #fecdd3; border-color: rgba(251,113,133,.2); }
.badge--muted { color: var(--muted); }
.badge--green { background: rgba(134,239,172,.1); color: #bbf7d0; border-color: rgba(134,239,172,.2); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.dot--green { background: var(--green); box-shadow: 0 0 0 4px rgba(134,239,172,.08); }
.dot--lime { background: var(--lime); box-shadow: 0 0 0 4px rgba(215,255,114,.08); }
.dot--red { background: var(--red); }
.dot--amber { background: var(--amber); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field-label { font-size: 12.5px; font-weight: 600; color: #dbe3ee; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field .hint { color: var(--muted-2); font-size: 11.5px; font-weight: 400; line-height: 1.4; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--text);
  border-radius: 10px; padding: 11px 13px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  font-size: 13.5px;
}
.input::placeholder, .textarea::placeholder { color: #5e6c80; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-strong); }
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(215,255,114,.55); box-shadow: 0 0 0 3px rgba(215,255,114,.08); background: rgba(255,255,255,.05);
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.7; }
.select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2399a6ba' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 42px; }
.input-wrap .input-action {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted); padding: 7px; border-radius: 6px;
}
.input-wrap .input-action:hover { color: var(--text); background: rgba(255,255,255,.06); }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--muted); cursor: pointer; }
.checkbox input { appearance: none; width: 17px; height: 17px; border-radius: 5px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); margin: 1px 0 0; flex: 0 0 auto; cursor: pointer; position: relative; }
.checkbox input:checked { background: var(--lime); border-color: var(--lime); }
.checkbox input:checked::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #111708; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.switch { position: relative; display: inline-flex; width: 38px; height: 22px; flex: 0 0 auto; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 100%; border-radius: 99px; background: #2b3647; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #98a4b5; transition: transform .2s, background .2s; }
.switch input:checked + span { background: var(--lime); }
.switch input:checked + span::after { transform: translateX(16px); background: #162009; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size: 12px; line-height: 1.6; }
.alert .icon { margin-top: 1px; }
.alert--warning { border-color: rgba(248,196,107,.22); background: rgba(248,196,107,.07); color: #fde3b6; }
.alert--danger { border-color: rgba(251,113,133,.22); background: rgba(251,113,133,.07); color: #fecdd3; }
.alert--info { border-color: rgba(110,231,249,.18); background: rgba(110,231,249,.06); color: #cffafe; }

.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; width: min(360px, calc(100vw - 40px));
  padding: 13px 15px; border-radius: 12px; background: #172233; border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0,0,0,.4); color: #e8edf5; font-size: 13px; line-height: 1.5;
  pointer-events: auto; animation: toastIn .25s ease both;
}
.toast .icon { color: var(--lime); margin-top: 1px; }
.toast--error .icon { color: var(--red); }
.toast--info .icon { color: var(--cyan); }
.toast.removing { animation: toastOut .2s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px) scale(.98); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

.text-muted { color: var(--muted); }
.text-lime { color: var(--lime); }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .container, .container-wide { width: min(100% - 32px, 1180px); }
  .toast-stack { right: 16px; left: 16px; bottom: 16px; }
  .toast { width: 100%; }
}
