/* ==========================================================================
   JQDB design system
   ========================================================================== */

:root {
  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Cascadia Mono",
    Consolas, "Liberation Mono", Menlo, monospace;

  --bg: #080a0f;
  --bg-soft: #0b0e15;
  --panel: #10141d;
  --panel-2: #151a24;
  --panel-3: #1b2130;
  --border: #222a39;
  --border-soft: rgba(255, 255, 255, 0.07);
  --border-strong: #333d50;
  --text: #edf1f7;
  --text-soft: #b7c0d0;
  --muted: #8b96aa;
  --muted-2: #728095;

  --accent: #c5f75f;
  --accent-fill: #c5f75f;
  --accent-ink: #0c1104;
  --accent-soft: rgba(197, 247, 95, 0.1);
  --accent-line: rgba(197, 247, 95, 0.32);
  --grad-1: #d3fb7c;
  --grad-2: #6ee7d8;

  --cyan: #67e8f9;
  --violet: #b7a3ff;
  --orange: #fbbf5c;
  --success: #7ee787;
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.1);
  --success-soft: rgba(126, 231, 135, 0.1);
  --method-get: #67e8f9;
  --method-get-bg: rgba(103, 232, 249, 0.1);
  --method-post: #b9e85b;
  --method-post-bg: rgba(197, 247, 95, 0.1);
  --method-put: #f6c76d;
  --method-put-bg: rgba(251, 191, 92, 0.1);
  --method-delete: #fda4b6;
  --method-delete-bg: rgba(251, 113, 133, 0.1);

  --code-bg: #090c12;
  --code-border: #232b3a;

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 9px;

  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 16px 44px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18);
  --header-bg: rgba(8, 10, 15, 0.78);
  --selection-bg: rgba(197, 247, 95, 0.24);
}

[data-theme="light"] {
  --bg: #f6f7f1;
  --bg-soft: #eff1e8;
  --panel: #ffffff;
  --panel-2: #f5f6ee;
  --panel-3: #e9ecdf;
  --border: #e0e3d7;
  --border-soft: rgba(20, 26, 14, 0.08);
  --border-strong: #c9d0bc;
  --text: #151a13;
  --text-soft: #3c4636;
  --muted: #596451;
  --muted-2: #66715e;

  --accent: #4f760c;
  --accent-fill: #b8e84f;
  --accent-ink: #111705;
  --accent-soft: rgba(79, 118, 12, 0.08);
  --accent-line: rgba(79, 118, 12, 0.28);
  --grad-1: #5b8c0d;
  --grad-2: #0d8f7d;

  --cyan: #0c6673;
  --violet: #6846b8;
  --orange: #885a07;
  --success: #1d6b2c;
  --danger: #c02f49;
  --danger-soft: rgba(192, 47, 73, 0.09);
  --success-soft: rgba(29, 107, 44, 0.09);
  --method-get: #0c6673;
  --method-get-bg: #def5f7;
  --method-post: #476508;
  --method-post-bg: #eaf6d2;
  --method-put: #875a06;
  --method-put-bg: #fdf0d8;
  --method-delete: #a32d43;
  --method-delete-bg: #fbe4e8;
  --shadow-lg: 0 30px 70px rgba(28, 38, 18, 0.12);
  --shadow-md: 0 16px 40px rgba(28, 38, 18, 0.08);
  --shadow-sm: 0 8px 20px rgba(28, 38, 18, 0.07);
  --header-bg: rgba(246, 247, 241, 0.82);
  --selection-bg: rgba(120, 180, 20, 0.24);
  --code-bg: #0a0d13;
  --code-border: #252d3c;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--selection-bg);
  color: var(--text);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

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

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

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

svg {
  flex: none;
}

code,
pre,
kbd {
  font-family: var(--font-mono);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  background: var(--accent-fill);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.muted-text {
  color: var(--muted);
  font-size: 13px;
}

.align-right {
  text-align: right;
}

/* ==========================================================================
   Buttons, badges, avatars
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent-fill);
  color: var(--accent-ink);
  border-color: var(--accent-fill);
  box-shadow: 0 0 0 1px rgba(197, 247, 95, 0.12), 0 8px 30px rgba(197, 247, 95, 0.12);
}

.btn-primary:hover {
  background: #d5ff7e;
  border-color: #d5ff7e;
  box-shadow: 0 0 0 1px rgba(197, 247, 95, 0.2), 0 12px 36px rgba(197, 247, 95, 0.2);
}

[data-theme="light"] .btn-primary:hover {
  background: #c4f263;
  border-color: #c4f263;
}

.btn-dark {
  background: var(--panel-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-dark:hover {
  background: var(--panel-3);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-soft);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--border-strong);
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #e4576f;
  border-color: #e4576f;
}

[data-theme="light"] .btn-danger {
  color: #fff;
}

.btn-danger-ghost {
  color: var(--danger);
}

.btn-danger-ghost:hover {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(251, 113, 133, 0.3);
}

.btn-lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-sm {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--border);
}

.icon-btn--bordered {
  border-color: var(--border);
  background: var(--panel-2);
  color: var(--text-soft);
}

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

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
}

.icon-menu-close {
  display: none;
}

.site-header.is-nav-open .icon-menu-open {
  display: none;
}

.site-header.is-nav-open .icon-menu-close {
  display: block;
}

.fill-current {
  fill: currentColor;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.6;
  white-space: nowrap;
}

.badge--public {
  color: var(--success);
  border-color: rgba(126, 231, 135, 0.22);
  background: rgba(126, 231, 135, 0.07);
}

.badge--private {
  color: var(--orange);
  border-color: rgba(251, 191, 92, 0.22);
  background: rgba(251, 191, 92, 0.07);
}

.badge--accent {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--panel-3), var(--panel-2));
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  flex: none;
}

.avatar--sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.avatar--xs {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.ds-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  flex: none;
}

.ds-avatar--lg {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 22px;
}

.ds-avatar--xs {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 11px;
}

.tone-0 {
  background: #1d2a11;
  color: #d2fa82;
  border-color: #374b21;
}

.tone-1 {
  background: #0d2a2b;
  color: #82eadf;
  border-color: #1d4546;
}

.tone-2 {
  background: #211b39;
  color: #c5b7ff;
  border-color: #39305f;
}

.tone-3 {
  background: #31240f;
  color: #f8cb72;
  border-color: #52401e;
}

.tone-4 {
  background: #301724;
  color: #f8aac4;
  border-color: #532a3c;
}

.tone-5 {
  background: #122239;
  color: #93c7ff;
  border-color: #223f5e;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  vertical-align: 2px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.text-link .icon {
  transition: transform 0.15s ease;
}

.text-link:hover .icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-soft);
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  flex: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 7px;
  border-radius: 10px;
  background: var(--accent-fill);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -1px;
  transform: translateY(3px);
  box-shadow: 0 4px 14px rgba(197, 247, 95, 0.14);
}

.brand-mark-dot {
  opacity: 0.55;
  margin: 0 1px;
}

.brand-word {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}

.brand-tld {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: -0.02em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.login-link {
  padding: 8px 10px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 500;
}

.login-link:hover {
  color: var(--text);
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text-soft);
  font-size: 13px;
}

.user-menu-trigger:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.user-menu-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 232px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  animation: menu-in 0.14s ease both;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu-panel a,
.user-menu-panel button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  text-align: left;
}

.user-menu-panel a:hover,
.user-menu-panel button:hover {
  background: var(--panel-2);
  color: var(--text);
}

.user-menu-panel form {
  margin: 0;
}

.user-menu-panel .menu-danger {
  color: var(--danger);
}

.user-menu-head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 10px 11px;
}

.user-menu-head strong {
  font-size: 13.5px;
}

.user-menu-head span {
  color: var(--muted);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-sep {
  height: 1px;
  margin: 5px 4px;
  background: var(--border-soft);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-soft);
  padding: 16px 24px 22px;
  background: var(--bg);
}

.mobile-nav-links {
  display: grid;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-size: 16px;
}

.mobile-nav-links a span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
}

.mobile-nav-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.mobile-nav-actions .btn {
  flex: 1;
}

/* ==========================================================================
   Flash and toast
   ========================================================================== */

.flash-container {
  position: relative;
  z-index: 55;
  padding-top: 16px;
  display: grid;
  gap: 8px;
}

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  color: var(--text-soft);
  font-size: 13.5px;
  animation: flash-in 0.22s ease both;
}

@keyframes flash-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}

.flash--error {
  border-color: rgba(251, 113, 133, 0.28);
}

.flash--error .flash-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.flash-close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  flex: none;
}

.flash-close:hover {
  color: var(--text);
  background: var(--panel-2);
}

.flash.is-hidden {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--panel-3);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--shadow-md);
  animation: toast-in 0.2s ease both;
}

.toast.is-out {
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Shared section shell
   ========================================================================== */

.section {
  padding: 108px 0;
  position: relative;
}

.section--tight {
  padding: 52px 0 80px;
}

.section--compact {
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow > span {
  color: var(--accent);
}

.eyebrow--small {
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.eyebrow--center {
  justify-content: center;
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 680;
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.6fr);
  gap: 56px;
  align-items: end;
}

.section-lead {
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.section-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 44px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  text-align: center;
}

.empty-state--large {
  padding: 72px 24px;
}

.empty-state--panel {
  border: 1px dashed var(--border);
  background: transparent;
}

.empty-state--slim {
  padding: 22px;
  align-items: flex-start;
  text-align: left;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--accent);
}

.empty-state h2,
.empty-state h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.empty-state p {
  max-width: 420px;
  color: var(--muted);
  font-size: 13.5px;
}

.empty-state .btn {
  margin-top: 10px;
}

/* ==========================================================================
   Home hero
   ========================================================================== */

.home-page {
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(197, 247, 95, 0.06), transparent 70%),
    var(--bg);
}

.hero {
  position: relative;
  padding: clamp(62px, 8vw, 104px) 0 82px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000 10%, transparent 70%);
  opacity: 0.55;
}

[data-theme="light"] .hero-grid {
  opacity: 0.7;
}

.hero-aura {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.hero-aura--one {
  width: 520px;
  height: 520px;
  top: -200px;
  right: 3%;
  background: radial-gradient(circle, rgba(197, 247, 95, 0.09), transparent 68%);
}

.hero-aura--two {
  width: 440px;
  height: 440px;
  bottom: -260px;
  left: 12%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.06), transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.announce:hover {
  border-color: var(--border-strong);
  background: var(--panel-2);
}

.announce-pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse-dot 2.4s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 5px transparent;
  }
}

.announce-sep {
  width: 1px;
  height: 12px;
  background: var(--border);
}

.announce-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-soft);
}

.hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(2.9rem, 5.4vw, 4.7rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.text-gradient {
  background: linear-gradient(100deg, var(--grad-1) 15%, var(--grad-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-points .icon {
  color: var(--accent);
}

.hero-demo {
  position: relative;
  z-index: 2;
}

.hero-float-card {
  position: absolute;
  left: -16px;
  bottom: -56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  box-shadow: var(--shadow-md);
}

.hero-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

.hero-float-card div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.hero-float-card strong {
  font-size: 12px;
}

.hero-float-card span {
  color: var(--muted);
  font-size: 10.5px;
}

.hero-float-tag {
  position: absolute;
  top: -18px;
  right: 26px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  transform: rotate(2deg);
}

/* ==========================================================================
   Console
   ========================================================================== */

.console {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: #090c12;
  color: #dbe3ee;
  box-shadow: var(--shadow-lg);
}

.console--hero {
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(197, 247, 95, 0.04) inset;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
}

.window-dots {
  display: inline-flex;
  gap: 5px;
  flex: none;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.window-dots i:first-child {
  background: rgba(255, 95, 87, 0.7);
}

.window-dots i:nth-child(2) {
  background: rgba(254, 188, 46, 0.7);
}

.window-dots i:nth-child(3) {
  background: rgba(40, 200, 64, 0.65);
}

.console-bar-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #93a0b3;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.1);
}

.console-dataset-select {
  margin-left: auto;
  max-width: 150px;
  padding: 4px 22px 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.03);
  color: #aeb8c8;
  font-family: var(--font-mono);
  font-size: 10px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23758196' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  cursor: pointer;
}

.console-dataset-select:focus-visible {
  outline-color: #c5f75f;
}

.console-endpoint {
  margin-left: auto;
  color: #8a97aa;
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.console-query {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.console-prompt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(197, 247, 95, 0.09);
  color: #c5f75f;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

.console-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #dce5f0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  padding: 4px 0;
}

.console-input::placeholder {
  color: #7b889c;
}

.console-input:focus {
  outline: none;
}

.console-run {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: #c5f75f;
  color: #0c1104;
  font-size: 11px;
  font-weight: 700;
  flex: none;
  transition: background 0.15s ease;
}

.console-run:hover {
  background: #d5ff7e;
}

.console-error {
  margin: 10px 12px 0;
  padding: 9px 11px;
  border: 1px solid rgba(251, 113, 133, 0.28);
  border-radius: 8px;
  background: rgba(251, 113, 133, 0.08);
  color: #fda4b6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  word-break: break-word;
}

.console-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-view-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.console-view-switch button {
  padding: 2px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8d9aae;
  font-size: 9.5px;
  font-weight: 600;
}

.console-view-switch button.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: #e0e7f0;
}

.console-meta {
  color: #8d9aae;
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: right;
}

.console-results {
  min-height: 156px;
  max-height: 320px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #2b3546 transparent;
}

.console--hero .console-results {
  max-height: 286px;
}

.console-loading {
  display: grid;
  gap: 9px;
  padding: 22px 14px;
}

.console-loading span {
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.console-loading span:nth-child(2) {
  width: 82%;
}

.console-loading span:nth-child(3) {
  width: 64%;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.result-table-wrap {
  overflow-x: auto;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
}

.result-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 12px;
  background: #0c1017;
  color: #93a0b3;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.result-table td {
  max-width: 180px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  overflow: hidden;
  text-overflow: ellipsis;
  color: #aeb9c9;
}

.result-table tr:last-child td {
  border-bottom: 0;
}

.result-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.result-table .cell-id {
  color: #5c687b;
}

.result-table .cell-number {
  color: #f6c76d;
}

.result-table .cell-boolean {
  color: #86efac;
}

.result-table .cell-string {
  color: #c5f75f;
}

.result-table .cell-null {
  color: #5c687b;
}

.result-table .cell-object {
  color: #82b9ff;
}

.result-table .cell-array {
  color: #b7a3ff;
}

.result-table .cell-muted {
  color: #5c687b;
}

.result-empty {
  padding: 28px 16px;
  color: #687589;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-align: center;
}

.result-json {
  margin: 0;
  padding: 14px;
  color: #b8c4d4;
  font-size: 10.5px;
  line-height: 1.7;
  white-space: pre;
}

.result-json .tok-k,
.result-json .json-key {
  color: #8bd5ff;
}

.result-json .json-string {
  color: #c5f75f;
}

.result-json .json-number {
  color: #f6c76d;
}

.result-json .json-boolean {
  color: #86efac;
}

.result-json .json-null {
  color: #6b778a;
}

.console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #8a97aa;
  font-family: var(--font-mono);
  font-size: 9px;
}

.console-runtime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.console-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #a7b3c4;
}

.console-link:hover {
  color: #c5f75f;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats-band {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--panel), transparent);
}

.stats-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 26px;
  padding-bottom: 26px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 26px;
  border-left: 1px solid var(--border-soft);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat-value {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.stat-value em {
  color: var(--muted-2);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0;
}

.stat-label {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.stat--text .stat-label {
  max-width: 240px;
}

/* ==========================================================================
   Feature bento
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.bento-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.bento-card--7 {
  grid-column: span 7;
}

.bento-card--5 {
  grid-column: span 5;
}

.bento-card--4 {
  grid-column: span 4;
}

.bento-card--tall {
  grid-row: span 2;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--accent);
}

.bento-card h3 {
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.bento-card > p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.bento-card .text-link {
  margin-top: auto;
  padding-top: 8px;
}

.mini-code {
  margin-top: auto;
  border: 1px solid var(--code-border);
  border-radius: 11px;
  background: var(--code-bg);
  overflow: hidden;
}

.mini-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a1b4;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.mini-dots {
  display: inline-flex;
  gap: 3px;
}

.mini-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mini-code pre {
  margin: 0;
  padding: 15px;
  overflow: auto;
  color: #b9c4d4;
  font-size: 11.5px;
  line-height: 1.8;
}

.tok-p {
  color: #8492a6;
}

.tok-k {
  color: #8bd5ff;
}

.tok-s {
  color: #c5f75f;
}

.tok-n {
  color: #f6c76d;
}

.tok-cmd {
  color: #67e8f9;
}

.tok-str {
  color: #c5f75f;
}

.tok-dim {
  color: #8d9aad;
}

.query-lines {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--code-border);
  border-radius: 10px;
  background: var(--code-bg);
  color: #c1ccdb;
  font-family: var(--font-mono);
  font-size: 11px;
}

.q-k {
  color: #8bd5ff;
}

.q-op {
  color: #8492a6;
}

.q-s {
  color: #c5f75f;
}

.q-a {
  color: #b7a3ff;
}

.q-n {
  color: #f6c76d;
}

.endpoint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 2px;
  padding: 8px 9px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--bg-soft);
}

.endpoint-row:first-of-type {
  margin-top: auto;
}

.endpoint-row code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.method {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex: none;
}

.method--get {
  background: var(--method-get-bg);
  color: var(--method-get);
}

.method--post {
  background: var(--method-post-bg);
  color: var(--method-post);
}

.method--put {
  background: var(--method-put-bg);
  color: var(--method-put);
}

.method--delete {
  background: var(--method-delete-bg);
  color: var(--method-delete);
}

.visibility-demo {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.visibility-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
}

.visibility-option.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.switch {
  display: inline-flex;
  align-items: center;
  width: 24px;
  height: 13px;
  padding: 2px;
  border-radius: 999px;
  background: var(--border-strong);
}

.switch i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.file-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: var(--bg-soft);
}

.file-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--accent);
}

.file-stat div {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  line-height: 1.45;
}

.file-stat strong {
  font-size: 10.5px;
}

.file-stat span {
  color: var(--muted);
  font-size: 9px;
}

/* ==========================================================================
   Steps
   ========================================================================== */

.section--steps {
  background: linear-gradient(180deg, transparent, var(--bg-soft), transparent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.step {
  position: relative;
  padding: 34px 30px 34px 0;
  border-left: 1px solid var(--border-soft);
}

.step:first-child {
  border-left: 0;
  padding-left: 0;
}

.step:not(:first-child) {
  padding-left: 30px;
}

.step-number {
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--border-strong);
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  opacity: 0.7;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  color: var(--accent);
}

.step h3 {
  margin-bottom: 7px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.step p {
  max-width: 300px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.step-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  overflow: hidden;
}

.step-visual-label {
  color: var(--muted-2);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-visual-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-soft);
}

.step-visual .badge {
  margin-left: auto;
}

.step-visual--code {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.7;
  color: #aab6c6;
  background: var(--code-bg);
  border-color: var(--code-border);
}

.step-visual--code > span:not(.tok-p):not(.tok-s):not(.tok-k):not(.tok-n) {
  padding-left: 8px;
}

.step-visual--api {
  flex-wrap: wrap;
}

.step-visual--api code {
  color: var(--text-soft);
  font-size: 9px;
  white-space: nowrap;
}

.api-status {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 8px;
}

/* ==========================================================================
   Dataset cards
   ========================================================================== */

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dataset-grid--explore {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dataset-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dataset-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.dataset-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.dataset-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.dataset-card h3 {
  margin-bottom: 6px;
  font-size: 17px;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.dataset-card > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 0 16px;
}

.field-chips span {
  padding: 2px 7px;
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.dataset-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 10.5px;
}

.dataset-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dataset-card-arrow {
  margin-left: auto;
  color: var(--muted-2);
  transition: color 0.16s ease, transform 0.16s ease;
}

.dataset-card:hover .dataset-card-arrow {
  color: var(--accent);
  transform: translate(1px, -1px);
}

/* ==========================================================================
   API showcase / code blocks
   ========================================================================== */

.section--api {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.api-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.api-showcase h2 {
  margin: 16px 0 18px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 30px;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: 13.5px;
}

.check-list .icon {
  color: var(--accent);
}

.api-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.api-code-panel {
  min-width: 0;
}

.codeblock {
  overflow: hidden;
  border: 1px solid var(--code-border);
  border-radius: var(--radius-lg);
  background: var(--code-bg);
  color: #b9c4d4;
  box-shadow: var(--shadow-md);
}

.codeblock--compact {
  border-radius: 11px;
}

.codeblock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
}

.codeblock-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #98a5b8;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.codeblock pre {
  margin: 0;
  padding: 20px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
}

.codeblock--compact pre {
  padding: 13px;
  font-size: 10.5px;
  line-height: 1.75;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: #8491a5;
  font-size: 9.5px;
  font-weight: 500;
  flex: none;
}

.copy-btn:hover {
  color: #dbe3ee;
  background: rgba(255, 255, 255, 0.05);
}

.copy-btn--small {
  height: 24px;
  font-size: 9px;
}

.api-code-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.api-code-note .status-dot {
  flex: none;
}

.api-code-note code {
  padding: 1px 4px;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: var(--panel);
  font-size: 10px;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(126, 231, 135, 0.1);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.section--cta {
  padding-top: 90px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 76px 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  text-align: center;
}

.cta-panel--small {
  padding: 58px 40px;
}

.cta-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 75%);
  opacity: 0.6;
}

.cta-aura {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 620px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 247, 95, 0.12), transparent 65%);
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-panel > *:not(.cta-grid):not(.cta-aura) {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  margin: 18px auto 14px;
  max-width: 760px;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.cta-panel > p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta-foot {
  display: block;
  margin-top: 18px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Page hero (explore, docs, about)
   ========================================================================== */

.page-hero {
  position: relative;
  padding: 90px 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 56px;
  align-items: end;
}

.page-hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.page-hero-copy > p {
  max-width: 520px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.explore-search-panel {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-field:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-icon {
  color: var(--muted-2);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.search-field input::placeholder {
  color: var(--muted-2);
}

.search-hint {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.search-hint span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.results-title {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.results-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text-soft);
  font-size: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.page-btn:hover {
  border-color: var(--border-strong);
  background: var(--panel-2);
}

.page-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.page-status {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.inline-cta h2 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

/* ==========================================================================
   Public dataset page
   ========================================================================== */

.dataset-hero {
  position: relative;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--panel), transparent);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb .icon {
  opacity: 0.6;
}

.dataset-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.dataset-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

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

.dataset-title-line h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.dataset-slug {
  margin-top: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
}

.dataset-description {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.dataset-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11.5px;
}

.dataset-meta-row > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dataset-owner {
  color: var(--text-soft);
}

.dataset-public-flag {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.dataset-hero-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.section--dataset {
  padding: 38px 0 90px;
}

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

.dataset-content {
  min-width: 0;
}

.content-card {
  scroll-margin-top: 90px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  margin-bottom: 20px;
}

.content-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.content-card-head h2 {
  margin-top: 4px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.content-card-hint {
  color: var(--muted-2);
  font-size: 10.5px;
}

.doc-list {
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  overflow: hidden;
}

.doc-item {
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}

.doc-item:last-child {
  border-bottom: 0;
}

.doc-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  transition: background 0.14s ease;
}

.doc-item summary::-webkit-details-marker {
  display: none;
}

.doc-item summary:hover {
  background: var(--panel-2);
}

.doc-id {
  width: 42px;
  flex: none;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
}

.doc-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.doc-time {
  color: var(--muted-2);
  font-size: 10px;
  flex: none;
}

.doc-chevron {
  color: var(--muted-2);
  transition: transform 0.15s ease;
  flex: none;
}

.doc-item[open] .doc-chevron {
  transform: rotate(180deg);
}

.doc-body {
  border-top: 1px solid var(--border-soft);
  background: var(--code-bg);
}

.doc-body-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #6d7a8e;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.doc-json {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 15px;
  color: #b8c4d4;
  font-size: 11px;
  line-height: 1.75;
}

.dataset-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 88px;
}

.side-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.side-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.side-card-head h3 {
  font-size: 13px;
  letter-spacing: -0.01em;
}

.side-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--accent);
}

.side-endpoint {
  display: block;
  padding: 9px 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 9.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.side-endpoint--wrap {
  word-break: break-all;
}

.side-note {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.65;
}

.side-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 500;
}

.side-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.schema-list {
  display: grid;
  gap: 3px;
}

.schema-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 10.5px;
}

.schema-row > span {
  width: 14px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
}

.schema-row code {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-soft);
  font-size: 10px;
}

.owner-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.owner-row div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.owner-row strong {
  font-size: 12px;
}

.owner-row span {
  color: var(--muted-2);
  font-size: 10px;
}

.query-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  margin-top: 5px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: var(--bg-soft);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.query-tip:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.query-tip code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-soft);
  font-size: 9.5px;
}

.query-tip span {
  color: var(--muted-2);
  font-size: 9px;
  flex: none;
}

/* ==========================================================================
   Docs
   ========================================================================== */

.page-hero--docs {
  padding-bottom: 54px;
}

.docs-hero {
  max-width: 780px;
}

.docs-hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.7rem, 5vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.docs-hero > p {
  max-width: 640px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.docs-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
}

.version-pill {
  padding: 2px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
}

.docs-hero-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

.docs-hero-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 68px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.docs-sidebar {
  position: relative;
}

.docs-nav-wrap {
  position: sticky;
  top: 92px;
}

.docs-nav-title {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-nav {
  display: grid;
  border-left: 1px solid var(--border);
}

.docs-nav a {
  position: relative;
  padding: 7px 0 7px 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.docs-nav a:hover {
  color: var(--text);
}

.docs-nav a.is-active {
  color: var(--accent);
}

.docs-nav a.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: var(--accent);
}

.docs-base-card {
  margin-top: 26px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
}

.docs-base-card > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.docs-base-card code {
  display: block;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.docs-base-card .copy-btn {
  margin-top: 8px;
  border-color: var(--border);
  background: var(--panel-2);
  color: var(--muted);
}

.docs-content {
  max-width: 860px;
  min-width: 0;
}

.docs-section {
  padding-bottom: 58px;
  margin-bottom: 58px;
  border-bottom: 1px solid var(--border-soft);
  scroll-margin-top: 94px;
}

.docs-section:last-of-type {
  border-bottom: 0;
}

.docs-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.docs-section h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.docs-section h3 {
  margin: 30px 0 12px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.docs-section > p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.docs-section > p code,
.inline-code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--text-soft);
  font-size: 0.86em;
}

.docs-steps {
  display: grid;
  gap: 6px;
  margin: 22px 0;
  list-style: none;
  counter-reset: docs-step;
}

.docs-steps li {
  position: relative;
  padding: 12px 14px 12px 48px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: var(--panel);
  counter-increment: docs-step;
}

.docs-steps li::before {
  content: counter(docs-step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 13px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.docs-steps strong {
  display: block;
  margin-bottom: 1px;
  font-size: 13.5px;
}

.docs-steps span {
  color: var(--muted);
  font-size: 12.5px;
}

.docs-list {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.docs-list li::marker {
  color: var(--accent);
}

.docs-list code {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--panel-2);
  color: var(--text-soft);
  font-size: 0.9em;
}

.callout {
  display: flex;
  gap: 11px;
  margin: 20px 0;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

.callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--accent);
  flex: none;
}

.callout div {
  min-width: 0;
}

.callout strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12.5px;
}

.callout p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.callout code {
  color: var(--accent);
  font-size: 0.92em;
}

.callout--tip {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.callout--warn {
  border-color: rgba(251, 191, 92, 0.28);
  background: rgba(251, 191, 92, 0.05);
}

.callout--warn .callout-icon {
  color: var(--orange);
}

.endpoint-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
}

.endpoint-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.endpoint-table th {
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.endpoint-table td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  vertical-align: top;
}

.endpoint-table tr:last-child td {
  border-bottom: 0;
}

.endpoint-table td code {
  color: var(--text-soft);
  font-size: 10.5px;
  overflow-wrap: anywhere;
}

.endpoint-table code.inline-code {
  font-size: 10px;
}

.kv-table {
  display: grid;
  gap: 0;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.kv-table > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
}

.kv-table > div:last-child {
  border-bottom: 0;
}

.kv-table code {
  color: var(--accent);
  font-size: 10.5px;
}

.kv-table span {
  color: var(--muted);
}

.query-syntax-hero {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--code-border);
  border-radius: 10px;
  background: var(--code-bg);
  color: #b9c4d4;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 16px 0;
}

.operator-grid > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.operator-grid code {
  min-width: 64px;
  color: var(--accent);
  font-size: 10.5px;
}

.operator-grid span {
  color: var(--muted);
  font-size: 10.5px;
}

.example-list {
  display: grid;
  gap: 7px;
  margin: 16px 0;
}

.query-example {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--panel);
}

.query-example code {
  color: var(--text-soft);
  font-size: 10.5px;
  overflow-wrap: anywhere;
}

.query-example span {
  color: var(--muted-2);
  font-size: 10px;
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.limit-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
}

.limit-card strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.limit-card span {
  color: var(--muted);
  font-size: 10.5px;
}

.docs-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}

.docs-end h2 {
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-hero {
  position: relative;
  padding: 96px 0 66px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.about-hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(2.9rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.about-lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.8;
}

.about-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 11.5px;
}

.about-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.section--about {
  padding-top: 76px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 72px;
  align-items: start;
}

.about-story h2 {
  margin: 10px 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.about-story > p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.about-story strong {
  color: var(--text-soft);
}

.about-quote {
  position: relative;
  margin: 34px 0 44px;
  padding: 26px 30px;
  border-left: 2px solid var(--accent);
  background: var(--panel);
  border-radius: 0 12px 12px 0;
}

.quote-mark {
  position: absolute;
  top: -2px;
  left: 16px;
  color: var(--accent-line);
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
}

.about-quote blockquote {
  position: relative;
  z-index: 1;
  padding-left: 24px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.015em;
}

.principle-list {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.principle {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}

.principle-number {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  padding-top: 4px;
}

.principle h3 {
  margin-bottom: 3px;
  font-size: 15px;
}

.principle p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.about-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 92px;
}

.about-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.about-card-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.about-card h3 {
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.about-card > p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.stack-list {
  display: grid;
  gap: 8px;
}

.stack-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--accent);
  flex: none;
}

.stack-list div div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.stack-list strong {
  font-size: 11.5px;
}

.stack-list span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.about-card--accent {
  border-color: var(--accent-line);
  background: linear-gradient(160deg, var(--accent-soft), var(--panel));
}

.about-card-note {
  display: block;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 9.5px;
  text-align: center;
}

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

.about-status div {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.about-status strong {
  font-size: 11.5px;
}

.about-status span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.faq-head h2 {
  margin-top: 8px;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 550;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .icon {
  color: var(--muted-2);
  transition: transform 0.18s ease;
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-item p {
  max-width: 720px;
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ==========================================================================
   Auth
   ========================================================================== */

.auth-shell {
  padding: 48px 0 80px;
  background:
    radial-gradient(700px 420px at 20% -10%, rgba(197, 247, 95, 0.05), transparent 70%),
    var(--bg);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 56px;
  align-items: stretch;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding: 46px;
  border: 1px solid #232b3a;
  border-radius: var(--radius-xl);
  background: #0a0d14;
  color: #e8eef7;
  display: flex;
  align-items: center;
}

.auth-visual-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 75%);
  opacity: 0.6;
}

.auth-visual::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 247, 95, 0.14), transparent 65%);
  pointer-events: none;
}

.auth-visual-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.auth-visual .eyebrow {
  color: #758196;
}

.auth-visual .eyebrow > span {
  color: #c5f75f;
}

.auth-visual h2 {
  margin: 20px 0 16px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.13;
  letter-spacing: -0.045em;
  color: #f1f5fb;
}

.auth-visual p {
  max-width: 380px;
  color: #8e9aad;
  font-size: 14px;
  line-height: 1.8;
}

.auth-terminal {
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.auth-terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #687589;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.auth-terminal code {
  display: block;
  padding: 15px;
  color: #b8c4d4;
  font-size: 11.5px;
  line-height: 2;
}

.auth-terminal-result {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #6d7a8e;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.auth-visual-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 28px;
  color: #69768a;
  font-family: var(--font-mono);
  font-size: 9px;
}

.auth-visual-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  list-style: none;
}

.auth-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(197, 247, 95, 0.1);
  color: #c5f75f;
  flex: none;
}

.auth-feature-list div {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.auth-feature-list strong {
  color: #dbe3ee;
  font-size: 12px;
  font-weight: 600;
}

.auth-feature-list span {
  color: #718096;
  font-size: 10.5px;
}

.auth-card-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.auth-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-md);
}

.auth-card-head {
  margin-bottom: 26px;
}

.auth-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border: 1px solid var(--accent-line);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.auth-card-head h1 {
  font-size: 26px;
  letter-spacing: -0.035em;
}

.auth-card-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.auth-card-head a {
  color: var(--accent);
  font-weight: 500;
}

.form {
  display: grid;
  gap: 14px;
}

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

.field > label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 550;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.required {
  color: var(--danger);
}

.optional {
  margin-left: 4px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 400;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--muted-2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-wrap:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.input-wrap input::placeholder {
  color: var(--muted-2);
}

.password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted-2);
  flex: none;
}

.password-toggle:hover {
  color: var(--text);
}

.password-toggle .icon-hide {
  display: none;
}

.password-toggle.is-visible .icon-show {
  display: none;
}

.password-toggle.is-visible .icon-hide {
  display: block;
}

.field-hint {
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.55;
}

.field-hint code {
  padding: 0 3px;
  border-radius: 3px;
  background: var(--panel-2);
  color: var(--muted);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: var(--muted-2);
  font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.demo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px dashed var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
}

.demo-box div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.demo-box strong {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-soft);
}

.demo-box span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.auth-legal {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.6;
  text-align: center;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: center;
  color: var(--muted);
  font-size: 11.5px;
}

.auth-back:hover {
  color: var(--text);
}

/* ==========================================================================
   Dashboard shell
   ========================================================================== */

.dashboard-page {
  background:
    radial-gradient(700px 460px at 88% -8%, rgba(197, 247, 95, 0.035), transparent 70%),
    var(--bg);
}

.dash-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 34px;
  padding-top: 32px;
  padding-bottom: 80px;
  align-items: start;
}

.dash-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-sidebar-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.dash-sidebar-label {
  display: block;
  padding: 4px 8px 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.dash-sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.dash-sidebar-user > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.dash-sidebar-user strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-sidebar-user small {
  color: var(--muted-2);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-nav {
  display: grid;
  gap: 2px;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-nav a:hover {
  background: var(--panel-2);
  color: var(--text);
}

.dash-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.dash-nav a .icon {
  opacity: 0.8;
}

.dash-nav-external {
  margin-left: auto;
  opacity: 0.5;
}

.dash-nav-sep {
  height: 1px;
  margin: 8px 4px;
  background: var(--border-soft);
}

.dash-new-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11.5px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.dash-new-btn:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.dash-sidebar-foot {
  display: grid;
  gap: 8px;
  padding: 0 2px;
}

.dash-usage {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
}

.dash-usage > span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dash-usage strong {
  display: block;
  margin-bottom: 2px;
  font-size: 11.5px;
}

.dash-usage p {
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.6;
}

.dash-admin-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 10.5px;
}

.dash-admin-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.dash-back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--muted-2);
  font-size: 10px;
}

.dash-back-link:hover {
  color: var(--text);
}

.dash-main {
  min-width: 0;
}

.dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.dash-header--tight {
  margin-bottom: 24px;
}

.dash-header h1 {
  margin: 5px 0 6px;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.dash-header p {
  max-width: 620px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.dash-header > .btn {
  flex: none;
}

.dash-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.dash-breadcrumb a:hover {
  color: var(--text);
}

.dash-breadcrumb .icon {
  opacity: 0.55;
}

.header-inline-actions {
  flex: none;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 22px;
}

.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
}

.dash-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--accent);
}

.dash-stat-label {
  color: var(--muted);
  font-size: 10.5px;
}

.dash-stat strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.dash-stat-note {
  color: var(--muted-2);
  font-size: 9.5px;
}

.dash-stat-note a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--accent);
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.dash-grid--dataset {
  grid-template-columns: minmax(0, 1fr) 306px;
}

.dash-main-col,
.dash-side-col {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-items: start;
}

.panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  min-width: 0;
}

.panel--accent {
  border-color: var(--accent-line);
  background: linear-gradient(160deg, var(--accent-soft), var(--panel) 60%);
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin-top: 3px;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10.5px;
  flex: none;
}

.panel-link:hover {
  color: var(--accent);
}

.panel-hint {
  color: var(--muted-2);
  font-size: 9.5px;
  flex: none;
}

.panel-empty-copy {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.panel-empty-copy code {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--panel-2);
  color: var(--text-soft);
  font-size: 10px;
}

.console-panel {
  margin-bottom: 14px;
}

.console-panel .console {
  box-shadow: none;
}

.dash-dataset-list {
  display: grid;
}

.dash-dataset-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.14s ease;
}

.dash-dataset-row:last-child {
  border-bottom: 0;
}

.dash-dataset-row:hover {
  background: var(--panel-2);
}

.dash-dataset-row .ds-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 12px;
}

.dash-dataset-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.dash-dataset-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  font-weight: 550;
}

.dash-dataset-name .badge {
  padding: 1px 5px;
  font-size: 8px;
}

.dash-dataset-slug {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.dash-dataset-meta {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 9.5px;
  white-space: nowrap;
}

.row-chevron {
  color: var(--muted-2);
  flex: none;
}

.activity-list {
  display: grid;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--border-soft);
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-row:hover {
  background: var(--panel-2);
}

.activity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  flex: none;
}

.activity-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.activity-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 550;
}

.activity-main span {
  color: var(--muted-2);
  font-size: 9px;
}

.activity-time {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 9px;
  white-space: nowrap;
}

.query-activity-list {
  display: grid;
  gap: 5px;
}

.query-activity {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: var(--bg-soft);
}

.query-activity code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-soft);
  font-size: 9.5px;
}

.query-activity span {
  color: var(--muted-2);
  font-size: 8.5px;
}

.checklist {
  display: grid;
  gap: 2px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px;
  border-radius: 7px;
  transition: background 0.14s ease;
}

.checklist-item:hover {
  background: var(--panel-2);
}

.checklist-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: var(--accent);
  flex: none;
}

.checklist-item.is-done .checklist-box {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.checklist-item > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.checklist-item strong {
  font-size: 11px;
  font-weight: 550;
}

.checklist-item small {
  color: var(--muted-2);
  font-size: 9px;
}

.checklist-item.is-done strong {
  color: var(--muted);
}

.quickstart-done {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9.5px;
}

.side-card-copy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.mini-endpoint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 6px 7px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--bg-soft);
}

.mini-endpoint code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 8.5px;
}

.support-panel {
  text-align: left;
}

.support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--accent);
}

.support-panel h3 {
  margin-bottom: 3px;
  font-size: 13px;
}

.support-panel p {
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

/* ==========================================================================
   Dashboard: datasets
   ========================================================================== */

.manage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.manage-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  min-height: 236px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.manage-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.manage-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 13px;
}

.manage-card-badges {
  display: flex;
  gap: 5px;
}

.manage-card h2 {
  font-size: 16px;
  letter-spacing: -0.025em;
}

.manage-card h2 a:hover {
  color: var(--accent);
}

.manage-card-slug {
  margin-top: 1px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.manage-card > p {
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.manage-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 9px 0;
  margin-top: auto;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted-2);
  font-size: 9.5px;
}

.manage-card-stats strong {
  color: var(--text-soft);
  font-weight: 550;
}

.manage-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
}

.manage-card-arrow {
  margin-left: auto;
  color: var(--muted-2);
}

.manage-card:hover .manage-card-arrow {
  color: var(--accent);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.icon-link:hover {
  background: var(--panel-2);
  color: var(--text);
}

.icon-link--danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.manage-card--new {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  background: transparent;
  color: var(--muted);
}

.manage-card--new:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.manage-new-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--accent);
}

.manage-card--new h2 {
  font-size: 15px;
}

.manage-card--new p {
  max-width: 240px;
  margin: 4px 0 0;
  font-size: 11px;
}

/* ==========================================================================
   Forms (dashboard)
   ========================================================================== */

.dataset-form {
  display: block;
}

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

.form-main,
.form-aside {
  display: grid;
  gap: 13px;
}

.form-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.form-card h3 {
  font-size: 14px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.form-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.form-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  flex: none;
}

.form-card-head h2 {
  margin-bottom: 2px;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.form-card-head p {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.form-card .field + .field {
  margin-top: 15px;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"],
.form-card textarea,
.form-card select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-card textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.65;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: var(--muted-2);
}

.form-card input:disabled {
  color: var(--muted);
  background: var(--panel-2);
  cursor: not-allowed;
}

.mono-input {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
}

.input-prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-prefix:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input-prefix-addon {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  white-space: nowrap;
}

.input-prefix input {
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.visibility-cards {
  display: grid;
  gap: 8px;
}

.visibility-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.visibility-card:hover {
  border-color: var(--border-strong);
}

.visibility-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.visibility-card:has(input:checked) {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.visibility-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  flex: none;
}

.visibility-card:has(input:checked) .visibility-card-icon {
  color: var(--accent);
  border-color: var(--accent-line);
}

.visibility-card-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.5;
  padding-right: 18px;
}

.visibility-card-body strong {
  font-size: 11.5px;
}

.visibility-card-body span {
  color: var(--muted);
  font-size: 10px;
}

.visibility-radio {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.visibility-card:has(input:checked) .visibility-radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--panel);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.form-card--preview h3 {
  margin-bottom: 14px;
}

.dataset-preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.dataset-preview-head .ds-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 14px;
}

.dataset-preview-head div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.dataset-preview-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.dataset-preview-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.preview-endpoint {
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--bg-soft);
}

.preview-endpoint > span {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.preview-endpoint code {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.preview-endpoint b {
  color: var(--accent);
  font-weight: 500;
}

.form-card--tip {
  background: linear-gradient(160deg, var(--accent-soft), var(--panel) 55%);
  border-color: var(--accent-line);
}

.form-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent);
}

.form-tip-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  list-style: none;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.form-tip-list li {
  position: relative;
  padding-left: 13px;
}

.form-tip-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.form-card--muted {
  background: var(--bg-soft);
}

.account-section-head {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(251, 113, 133, 0.28);
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
}

.form-error .icon {
  margin-top: 2px;
  flex: none;
}

/* ==========================================================================
   Dataset admin / tables
   ========================================================================== */

.dataset-admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.dataset-admin-title {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.dataset-admin-title h1 {
  font-size: clamp(1.65rem, 2.7vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.dataset-admin-title p {
  margin-top: 5px;
  max-width: 620px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.dataset-admin-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.dataset-admin-actions .btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 11.5px;
}

.dataset-admin-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0 18px;
  padding: 9px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 10.5px;
}

.dataset-admin-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dataset-admin-meta strong {
  color: var(--text-soft);
  font-weight: 550;
}

.dataset-admin-slug {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.data-table th {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-soft);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: var(--panel-2);
}

.data-table .align-right {
  text-align: right;
}

.mono-cell {
  color: var(--muted-2) !important;
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.muted-cell {
  color: var(--muted-2) !important;
  font-size: 9.5px;
  white-space: nowrap;
}

.table-title {
  color: var(--text);
  font-weight: 550;
}

.table-title:hover {
  color: var(--accent);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.row-actions--right {
  justify-content: flex-end;
}

.row-actions form {
  margin: 0;
}

.panel > .pagination {
  margin-top: 14px;
}

/* ==========================================================================
   Document editor
   ========================================================================== */

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.editor-main,
.editor-side {
  display: grid;
  gap: 13px;
  min-width: 0;
}

.editor-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.editor-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.editor-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.editor-file {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}

.editor-bar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.json-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 9px;
}

.json-status.is-valid {
  color: var(--success);
}

.json-status.is-valid .status-dot {
  background: var(--success);
}

.json-status.is-invalid {
  color: var(--danger);
}

.json-status.is-invalid .status-dot {
  background: var(--danger);
  box-shadow: none;
}

.json-textarea {
  display: block;
  width: 100%;
  min-height: 480px;
  padding: 18px;
  border: 0;
  background: var(--code-bg);
  color: #c3cedd;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  tab-size: 2;
  resize: vertical;
  outline: none;
  white-space: pre;
  overflow: auto;
}

.json-textarea:focus {
  box-shadow: inset 0 0 0 1px rgba(197, 247, 95, 0.2);
}

.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 13px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.editor-side-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
}

.editor-side-head .form-tip-icon {
  margin-bottom: 0;
  width: 30px;
  height: 30px;
}

.editor-side-head h3 {
  margin-bottom: 0;
}

.editor-side-head span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.json-check-panel {
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--bg-soft);
}

.json-check-panel p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.json-check-panel p.is-error {
  color: var(--danger);
}

.json-check-panel p.is-valid {
  color: var(--success);
}

.json-checklist {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  list-style: none;
}

.json-checklist li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.json-checklist code {
  color: var(--text-soft);
  font-size: 9px;
}

.mini-sample {
  margin: 10px 0;
  padding: 11px;
  border: 1px solid var(--code-border);
  border-radius: 7px;
  background: var(--code-bg);
  color: #b8c4d4;
  font-size: 9.5px;
  line-height: 1.7;
  overflow: auto;
}

.kv-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.kv-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.kv-list code,
.kv-list strong {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 500;
}

/* ==========================================================================
   Danger zone
   ========================================================================== */

.danger-zone {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(251, 113, 133, 0.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--danger-soft), var(--panel) 60%);
}

.danger-zone-head {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.danger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(251, 113, 133, 0.28);
  border-radius: 9px;
  background: var(--panel);
  color: var(--danger);
  flex: none;
}

.danger-zone-head h2 {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.danger-zone-head p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.danger-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.danger-form .field {
  flex: 1;
  max-width: 480px;
}

.danger-form input[type="text"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12px;
  outline: none;
}

.danger-form input[type="text"]:focus {
  border-color: rgba(251, 113, 133, 0.45);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.danger-form .btn {
  min-height: 40px;
  flex: none;
}

/* ==========================================================================
   API keys
   ========================================================================== */

.new-key-panel {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent-soft), var(--panel) 60%);
}

.new-key-head {
  display: flex;
  gap: 11px;
  margin-bottom: 13px;
}

.new-key-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--accent);
  flex: none;
}

.new-key-head h2 {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.new-key-head p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.new-key-value {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--code-bg);
}

.new-key-value code {
  flex: 1;
  min-width: 0;
  overflow: auto;
  color: #c5f75f;
  font-size: 11.5px;
  white-space: nowrap;
}

.new-key-warning {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--orange);
  font-size: 9.5px;
}

.keys-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.keys-main,
.keys-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.inline-create-form {
  display: flex;
  gap: 8px;
}

.inline-create-form input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12.5px;
  outline: none;
}

.inline-create-form input:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.inline-create-form .btn {
  flex: none;
}

.key-list {
  display: grid;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
}

.key-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}

.key-row:last-child {
  border-bottom: 0;
}

.key-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent);
  flex: none;
}

.key-row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.45;
}

.key-row-main strong {
  font-size: 11.5px;
  font-weight: 550;
}

.key-row-main code {
  color: var(--muted-2);
  font-size: 9.5px;
}

.key-row-meta {
  display: flex;
  flex-direction: column;
  margin-left: auto;
  gap: 1px;
  color: var(--muted-2);
  font-size: 8.5px;
  text-align: right;
  white-space: nowrap;
}

.key-row form {
  margin: 0;
}

.side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
}

/* ==========================================================================
   Admin
   ========================================================================== */

.admin-page {
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(197, 247, 95, 0.035), transparent 70%),
    var(--bg);
}

.admin-shell {
  padding-top: 40px;
  padding-bottom: 80px;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.admin-header h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.04em;
}

.admin-header p {
  color: var(--muted);
  font-size: 12.5px;
}

.admin-header-actions {
  display: flex;
  gap: 8px;
}

.admin-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  width: fit-content;
}

.admin-nav a {
  padding: 5px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
}

.admin-nav a:hover {
  background: var(--panel-2);
  color: var(--text);
}

.admin-section {
  scroll-margin-top: 92px;
  margin-bottom: 34px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-chart-panel {
  margin-top: 14px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding-top: 18px;
}

.bar-chart-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
  min-width: 0;
}

.bar-chart-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
}

.bar-chart-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, transparent, var(--bg-soft));
}

.bar-chart-bar {
  width: 100%;
  height: var(--bar-height);
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent-fill), rgba(197, 247, 95, 0.25));
  opacity: 0.8;
}

.bar-chart-col:hover .bar-chart-bar {
  opacity: 1;
}

.bar-chart-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
}

.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-section-head h2 {
  margin-top: 3px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.admin-table {
  font-size: 11px;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-user-cell > div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.admin-user-cell strong {
  font-size: 11.5px;
  font-weight: 550;
}

.admin-user-cell span {
  color: var(--muted-2);
  font-size: 9px;
}

.admin-dataset-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-dataset-cell > div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.admin-dataset-cell span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.admin-dataset-cell .badge {
  margin-left: 2px;
}

.admin-query-list {
  display: grid;
  gap: 4px;
}

.admin-query-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 9px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: var(--bg-soft);
}

.admin-query-row > code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-soft);
  font-size: 9.5px;
}

.admin-query-meta {
  display: flex;
  gap: 12px;
  color: var(--muted-2);
  font-size: 8.5px;
  flex: none;
}

.admin-query-meta span {
  white-space: nowrap;
}

/* ==========================================================================
   Error page
   ========================================================================== */

.error-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding-top: 50px;
  padding-bottom: 50px;
}

.error-panel {
  position: relative;
  overflow: hidden;
  width: min(620px, 100%);
  padding: 56px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.error-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  width: 400px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  transform: translateX(-50%);
  pointer-events: none;
}

.error-code {
  position: absolute;
  top: 16px;
  right: 22px;
  color: var(--border-strong);
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.06em;
  opacity: 0.6;
  line-height: 1;
}

.error-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
}

.error-panel h1 {
  margin-bottom: 8px;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.error-panel p {
  max-width: 440px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.error-foot {
  display: block;
  margin-top: 30px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding-top: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(120px, 0.6fr));
  gap: 40px;
  padding-bottom: 46px;
}

.footer-brand p {
  max-width: 300px;
  margin: 14px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.brand--footer {
  margin-bottom: 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 9.5px;
}

.status-pill:hover {
  border-color: var(--border-strong);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col h3 {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--muted);
  font-size: 11.5px;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 20px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted-2);
  font-size: 9.5px;
}

.footer-stack {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.footer-copy:hover {
  color: var(--text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1120px) {
  .hero-inner {
    gap: 40px;
  }

  .hero-float-card {
    left: -10px;
  }

  .api-showcase {
    gap: 44px;
  }

  .dash-shell {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
  }

  .dash-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .about-grid {
    gap: 44px;
  }

  .auth-grid {
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 40px;
  }
}

@media (max-width: 1020px) {
  .primary-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-nav-open .mobile-nav {
    display: block;
  }

  .header-console {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-demo {
    max-width: 680px;
  }

  .hero-float-card {
    left: auto;
    right: 20px;
    bottom: -48px;
  }

  .stats-band-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .bento-card--7,
  .bento-card--5 {
    grid-column: span 6;
  }

  .bento-card--4 {
    grid-column: span 6;
  }

  .bento-card--tall {
    grid-row: span 1;
  }

  .section-head--split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .explore-search-panel {
    max-width: 560px;
  }

  .docs-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 44px;
  }

  .api-showcase {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .api-showcase-copy {
    max-width: 680px;
  }

  .dash-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dash-sidebar {
    position: static;
    display: block;
  }

  .dash-sidebar-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 9px;
  }

  .dash-sidebar-label,
  .dash-sidebar-user {
    display: none;
  }

  .dash-nav {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 2px;
  }

  .dash-nav a {
    padding: 7px 11px;
  }

  .dash-nav-external {
    display: none;
  }

  .dash-nav-sep {
    display: none;
  }

  .dash-new-btn {
    padding: 7px 12px;
  }

  .dash-sidebar-foot {
    display: none;
  }

  .dash-grid,
  .dash-grid--dataset {
    grid-template-columns: 1fr;
  }

  .dash-side-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .dash-side-col .support-panel {
    grid-column: span 2;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .form-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

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

  .editor-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .keys-layout {
    grid-template-columns: 1fr;
  }

  .keys-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-visual {
    padding: 34px;
  }

  .auth-visual h2 {
    font-size: 2.2rem;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .dataset-layout {
    grid-template-columns: 1fr;
  }

  .dataset-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding: 76px 0;
  }

  .section--tight {
    padding: 40px 0 60px;
  }

  .section--compact {
    padding: 50px 0;
  }

  .hero {
    padding: 54px 0 70px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 9vw, 3.6rem);
  }

  .hero-lede {
    font-size: 15px;
  }

  .dataset-grid,
  .dataset-grid--explore {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step,
  .step:not(:first-child) {
    padding: 26px 0 26px 0;
    border-left: 0;
    border-top: 1px solid var(--border-soft);
  }

  .step:first-child {
    border-top: 0;
  }

  .step-number {
    top: 22px;
  }

  .step-visual {
    max-width: 420px;
  }

  .bento-card--7,
  .bento-card--5,
  .bento-card--4 {
    grid-column: span 12;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .footer-stack {
    margin-left: 0;
  }

  .dataset-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .dataset-hero-actions {
    flex-wrap: wrap;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 36px;
  }

  .docs-nav-wrap {
    position: static;
  }

  .docs-nav {
    display: flex;
    flex-wrap: wrap;
    border-left: 0;
    gap: 4px;
  }

  .docs-nav a {
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
  }

  .docs-nav a.is-active {
    border-color: var(--accent-line);
    background: var(--accent-soft);
  }

  .docs-nav a.is-active::before {
    display: none;
  }

  .docs-base-card {
    display: none;
  }

  .docs-end {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .operator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .limits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manage-grid {
    grid-template-columns: 1fr;
  }

  .about-aside {
    grid-template-columns: 1fr;
  }

  .keys-side {
    grid-template-columns: 1fr;
  }

  .form-aside {
    grid-template-columns: 1fr;
  }

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

  .dash-side-col {
    grid-template-columns: 1fr;
  }

  .dash-side-col .support-panel {
    grid-column: span 1;
  }

  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .dataset-admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dataset-admin-actions {
    flex-wrap: wrap;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-query-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .admin-query-meta {
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .admin-table {
    min-width: 680px;
  }

  .data-table {
    min-width: 540px;
  }

  .auth-visual {
    display: none;
  }

  .auth-grid {
    display: block;
  }

  .auth-card-wrap {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    height: 60px;
    gap: 12px;
  }

  .brand-word {
    font-size: 18px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 12px;
  }

  .login-link,
  .header-cta {
    display: none;
  }

  .header-actions {
    gap: 4px;
  }

  .user-menu-name {
    display: none;
  }

  .user-menu-trigger {
    padding-right: 7px;
    gap: 5px;
  }

  .mobile-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    margin-top: 20px;
    letter-spacing: -0.05em;
  }

  .announce-link {
    display: none;
  }

  .announce-sep {
    display: none;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .hero-points {
    display: grid;
    gap: 7px;
  }

  .hero-float-card {
    display: none;
  }

  .hero-float-tag {
    display: none;
  }

  .console-bar {
    gap: 8px;
  }

  .console-dataset-select {
    max-width: 118px;
  }

  .console-bar-title {
    display: none;
  }

  .console-query {
    padding: 10px;
    gap: 7px;
  }

  .console-run span {
    display: none;
  }

  .console-run {
    width: 30px;
    justify-content: center;
    padding: 0;
  }

  .console-footer {
    display: none;
  }

  .stats-band-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 0 16px;
  }

  .stat-value {
    font-size: 23px;
  }

  .stat-label {
    font-size: 10px;
  }

  .section-head h2 {
    font-size: 1.9rem;
  }

  .section-lead {
    font-size: 13.5px;
  }

  .dataset-grid,
  .dataset-grid--explore {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    padding: 52px 22px;
  }

  .cta-panel h2 {
    font-size: 2rem;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .page-hero {
    padding: 64px 0 44px;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form .btn {
    width: 100%;
  }

  .search-hint {
    flex-direction: column;
  }

  .inline-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
  }

  .dataset-meta-row {
    gap: 6px 14px;
  }

  .dataset-sidebar {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 15px;
  }

  .content-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .doc-time {
    display: none;
  }

  .doc-item summary {
    gap: 9px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .page-status {
    order: -1;
    flex-basis: 100%;
    text-align: center;
  }

  .docs-section h2 {
    font-size: 1.6rem;
  }

  .query-syntax-hero {
    font-size: 10.5px;
  }

  .operator-grid,
  .limits-grid {
    grid-template-columns: 1fr;
  }

  .docs-end {
    padding: 20px;
  }

  .about-hero h1 {
    font-size: 2.5rem;
  }

  .about-quote {
    padding: 22px 18px;
  }

  .about-quote blockquote {
    padding-left: 18px;
    font-size: 16px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .demo-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-header h1 {
    font-size: 1.7rem;
  }

  .dash-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-nav a {
    padding: 6px 8px;
    font-size: 10.5px;
  }

  .dash-sidebar-card {
    overflow-x: auto;
  }

  .dash-new-btn {
    flex: none;
  }

  .dash-dataset-meta {
    display: none;
  }

  .dataset-admin-title {
    align-items: flex-start;
  }

  .dataset-admin-title .ds-avatar {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .dataset-admin-actions .btn {
    font-size: 10.5px;
  }

  .dataset-admin-slug {
    margin-left: 0;
  }

  .form-card {
    padding: 16px;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .form-actions .btn {
    flex: 1;
  }

  .danger-form {
    flex-direction: column;
    align-items: stretch;
  }

  .danger-form .field {
    max-width: none;
  }

  .danger-form .btn {
    width: 100%;
  }

  .new-key-value {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-create-form {
    flex-direction: column;
  }

  .inline-create-form .btn {
    width: 100%;
  }

  .key-row {
    flex-wrap: wrap;
  }

  .key-row-meta {
    margin-left: 0;
    align-items: flex-start;
    text-align: left;
    flex-basis: 100%;
    padding-left: 43px;
  }

  .key-row form {
    margin-left: auto;
  }

  .editor-bar {
    flex-wrap: wrap;
  }

  .editor-bar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .json-textarea {
    min-height: 380px;
    font-size: 11px;
    padding: 13px;
  }

  .admin-header-actions {
    flex-wrap: wrap;
  }

  .admin-nav {
    width: 100%;
    overflow-x: auto;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .bar-chart {
    height: 140px;
    gap: 4px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-col:last-child {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .flash-container {
    padding-top: 10px;
  }

  .error-panel {
    padding: 42px 20px 36px;
  }

  .error-code {
    font-size: 30px;
  }

  .error-panel h1 {
    font-size: 22px;
  }

  .error-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
