/* Mail1s design tokens (adapted for Go HTML portal — no Tailwind) */
:root {
  color-scheme: light;
  --background: oklch(0.992 0.003 240);
  --foreground: oklch(0.18 0.02 260);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.18 0.02 260);
  --primary: oklch(0.22 0.04 260);
  --primary-foreground: oklch(0.985 0 0);
  --brand: oklch(0.55 0.16 245);
  --brand-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.965 0.008 250);
  --secondary-foreground: oklch(0.22 0.04 260);
  --muted: oklch(0.965 0.005 250);
  --muted-foreground: oklch(0.48 0.015 250);
  --destructive: oklch(0.585 0.22 25);
  --warning: oklch(0.78 0.15 75);
  --success: oklch(0.62 0.16 155);
  --info: oklch(0.65 0.13 230);
  --border: oklch(0.92 0.005 250);
  --input: oklch(0.92 0.005 250);
  --ring: oklch(0.55 0.13 245);
  --radius: 0.625rem;
  --sidebar: oklch(1 0 0);
  --sidebar-foreground: oklch(0.3 0.025 260);
  --sidebar-accent: oklch(0.95 0.025 245);
  --sidebar-accent-foreground: oklch(0.22 0.08 245);
  --sidebar-border: oklch(0.92 0.005 250);
  --body-gradient:
    radial-gradient(ellipse 120% 85% at 50% -30%, color-mix(in oklch, var(--brand) 10%, transparent), transparent 55%),
    radial-gradient(ellipse 90% 50% at 100% 0%, color-mix(in oklch, var(--info) 8%, transparent), transparent 48%),
    radial-gradient(ellipse 70% 45% at 0% 100%, color-mix(in oklch, var(--brand) 7%, transparent), transparent 45%);
  --shadow-card: 0 4px 24px -8px oklch(0.25 0.04 260 / 10%);
  --shadow-drop: 0 20px 45px -14px oklch(0.25 0.04 260 / 14%), 0 0 0 1px oklch(0.2 0.02 260 / 5%);
  --header-surface: color-mix(in oklch, var(--background) 88%, transparent);
  --input-bg: var(--background);
  --cta-shadow: color-mix(in oklch, var(--brand) 32%, transparent);
  --font: "Oswald", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);

  /* Legacy aliases for older class names */
  --bg: var(--background);
  --text: var(--foreground);
  --panel: var(--card);
  --line: var(--border);
  --accent: var(--brand);
  --accent-ink: var(--brand-foreground);
  --ok: var(--success);
  --err: var(--destructive);
  --danger-fg: color-mix(in oklch, var(--destructive) 70%, var(--foreground));
}

.dark {
  color-scheme: dark;
  /* Soft charcoal — less pure black / less neon */
  --background: oklch(0.22 0.012 255);
  --foreground: oklch(0.84 0.01 250);
  --card: oklch(0.26 0.014 255);
  --card-foreground: oklch(0.84 0.01 250);
  --primary: oklch(0.82 0.01 250);
  --primary-foreground: oklch(0.22 0.02 255);
  --brand: oklch(0.62 0.09 245);
  --brand-foreground: oklch(0.96 0.005 250);
  --secondary: oklch(0.3 0.012 255);
  --secondary-foreground: oklch(0.82 0.01 250);
  --muted: oklch(0.29 0.01 255);
  --muted-foreground: oklch(0.62 0.012 250);
  --destructive: oklch(0.62 0.12 22);
  --warning: oklch(0.7 0.1 75);
  --success: oklch(0.62 0.1 155);
  --info: oklch(0.6 0.08 230);
  --border: oklch(0.9 0.01 250 / 9%);
  --input: oklch(0.9 0.01 250 / 11%);
  --ring: oklch(0.55 0.08 245);
  --sidebar: oklch(0.2 0.014 255);
  --sidebar-foreground: oklch(0.72 0.01 250);
  --sidebar-accent: oklch(0.28 0.016 250);
  --sidebar-accent-foreground: oklch(0.78 0.03 245);
  --sidebar-border: oklch(0.9 0.01 250 / 8%);
  --body-gradient:
    radial-gradient(ellipse 120% 80% at 50% -40%, color-mix(in oklch, var(--brand) 6%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, color-mix(in oklch, var(--info) 4%, transparent), transparent 48%),
    radial-gradient(ellipse 60% 40% at 0% 100%, color-mix(in oklch, var(--brand) 4%, transparent), transparent 45%);
  --shadow-card: 0 4px 20px -10px oklch(0 0 0 / 45%);
  --shadow-drop: 0 18px 40px -16px oklch(0 0 0 / 50%), 0 0 0 1px oklch(1 0 0 / 4%) inset;
  --header-surface: color-mix(in oklch, var(--background) 86%, transparent);
  --input-bg: color-mix(in oklch, var(--card) 78%, var(--background));
  --cta-shadow: color-mix(in oklch, var(--brand) 22%, transparent);
  --bg: var(--background);
  --text: var(--foreground);
  --panel: var(--card);
  --line: var(--border);
  --accent: var(--brand);
  --accent-ink: var(--brand-foreground);
  --ok: var(--success);
  --err: var(--destructive);
  --danger-fg: color-mix(in oklch, var(--destructive) 65%, var(--foreground));
}

.dark .seg-item.active {
  color: var(--brand-foreground);
  background: color-mix(in oklch, var(--brand) 78%, oklch(0.35 0.02 255));
  box-shadow: 0 1px 2px oklch(0 0 0 / 25%);
}
.dark .seg-item.active:hover {
  background: color-mix(in oklch, var(--brand) 88%, oklch(0.35 0.02 255));
}
.dark .btn.primary {
  background: color-mix(in oklch, var(--brand) 16%, var(--card));
  color: oklch(0.78 0.06 245);
  border: 1px solid color-mix(in oklch, var(--brand) 32%, var(--border));
  box-shadow: none;
}
.dark .btn.primary:hover {
  filter: none;
  background: color-mix(in oklch, var(--brand) 24%, var(--card));
  color: oklch(0.84 0.06 245);
  border-color: color-mix(in oklch, var(--brand) 42%, var(--border));
}
.dark .btn.ghost,
.dark .btn.secondary {
  background: color-mix(in oklch, var(--muted) 70%, transparent);
  color: var(--foreground);
  border-color: var(--border);
  box-shadow: none;
}
.dark .btn.ghost:hover,
.dark .btn.secondary:hover {
  background: color-mix(in oklch, var(--muted) 100%, transparent);
}
.dark .btn.danger {
  background: color-mix(in oklch, var(--destructive) 14%, var(--card));
  color: oklch(0.78 0.08 22);
  border-color: color-mix(in oklch, var(--destructive) 28%, var(--border));
}
.dark .badge.active,
.dark .badge.admin,
.dark .badge.paid {
  background: color-mix(in oklch, var(--success) 14%, var(--muted));
  color: oklch(0.76 0.08 155);
  border-color: color-mix(in oklch, var(--success) 22%, transparent);
}
.dark .device-quota {
  background: color-mix(in oklch, var(--brand) 12%, var(--muted));
  color: oklch(0.74 0.05 245);
  border-color: color-mix(in oklch, var(--brand) 22%, transparent);
}
.dark .key-prefix,
.dark .key-masked,
.dark .key-full,
.dark .key {
  color: oklch(0.74 0.05 245);
  background: color-mix(in oklch, var(--brand) 10%, var(--muted));
  border-color: color-mix(in oklch, var(--brand) 18%, transparent);
}

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

html {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--foreground);
  background-color: var(--background);
  background-image: var(--body-gradient);
  background-attachment: fixed;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.5;
}

h1, h2, h3, h4, .font-heading, .brand, .page-head h1, .panel-head h2, .auth-aside h1, .auth-card-head h2 {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.02em;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection {
  background: color-mix(in oklch, var(--brand) 22%, transparent);
  color: var(--foreground);
}

/* —— Segmented controls (lang + theme) —— */
.seg-control {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--muted) 70%, transparent), color-mix(in oklch, var(--muted) 100%, transparent));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 45%);
}
.dark .seg-control {
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 4%);
}
.seg-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.seg-item:hover {
  color: var(--foreground);
  text-decoration: none;
  background: color-mix(in oklch, var(--foreground) 4%, transparent);
}
.seg-item.active {
  color: var(--brand-foreground);
  background: linear-gradient(180deg, color-mix(in oklch, var(--brand) 92%, white), var(--brand));
  box-shadow:
    0 1px 2px color-mix(in oklch, var(--brand) 35%, transparent),
    0 6px 14px -8px color-mix(in oklch, var(--brand) 55%, transparent);
}
.seg-item.active:hover {
  color: var(--brand-foreground);
  background: linear-gradient(180deg, color-mix(in oklch, var(--brand) 88%, white), var(--brand));
}
.seg-ico {
  flex-shrink: 0;
  opacity: 0.85;
}
.seg-item.active .seg-ico { opacity: 1; }
.seg-code {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.theme-toggle,
.lang-switch {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

.prefs-bar {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--sidebar-border);
  background:
    linear-gradient(165deg,
      color-mix(in oklch, var(--brand) 6%, var(--card)),
      color-mix(in oklch, var(--muted) 55%, var(--card)));
}
.prefs-row {
  display: grid;
  gap: 6px;
}
.prefs-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  padding-left: 2px;
}
.prefs-bar .seg-control {
  width: 100%;
}
.side-foot .prefs-bar { margin-bottom: 2px; }
.top .lang-switch,
.top .theme-toggle {
  vertical-align: middle;
}
@media (max-width: 900px) {
  .top .theme-toggle .seg-item > span:not(.seg-ico) {
    display: none;
  }
  .top .theme-toggle .seg-item { padding: 0 10px; min-width: 34px; }
}

/* —— Top nav (landing / auth / session) —— */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 28px);
  height: 4rem;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 85%, transparent);
  background: var(--header-surface);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 oklch(1 0 0 / 35%);
}
.dark .top {
  box-shadow: 0 1px 0 oklch(1 0 0 / 4%);
}
.top--session {
  height: auto;
  min-height: 4rem;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand-word span {
  background: linear-gradient(135deg, var(--foreground), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.top-session {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 20px);
  min-width: 0;
}
.top-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--border) 90%, transparent);
  background: color-mix(in oklch, var(--muted) 55%, var(--card));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 40%);
}
.dark .top-primary {
  background: color-mix(in oklch, var(--muted) 40%, var(--card));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 5%);
}
.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.top-pill:hover {
  color: var(--foreground);
  background: color-mix(in oklch, var(--foreground) 5%, transparent);
  text-decoration: none;
}
.top-pill.is-active {
  color: var(--brand-foreground);
  background: linear-gradient(180deg, color-mix(in oklch, var(--brand) 92%, white), var(--brand));
  box-shadow:
    0 1px 2px color-mix(in oklch, var(--brand) 35%, transparent),
    0 4px 12px -6px color-mix(in oklch, var(--brand) 50%, transparent);
}
.top-pill.is-active:hover {
  color: var(--brand-foreground);
}
.top-pill--admin.is-active {
  background: linear-gradient(180deg, color-mix(in oklch, var(--warning) 75%, white), var(--warning));
  box-shadow: 0 4px 12px -6px color-mix(in oklch, var(--warning) 45%, transparent);
}
.top-pill-ico {
  display: flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in oklch, var(--foreground) 6%, transparent);
}
.top-pill-ico .icon {
  width: 14px;
  height: 14px;
  opacity: 0.88;
}
.top-pill.is-active .top-pill-ico {
  background: oklch(1 0 0 / 18%);
}
.top-pill.is-active .top-pill-ico .icon {
  opacity: 1;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.top-prefs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
  background: color-mix(in oklch, var(--card) 92%, var(--muted));
}
.top-user-chip {
  display: none;
  align-items: center;
  gap: 10px;
  max-width: 180px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--border) 75%, transparent);
  background: var(--card);
}
@media (min-width: 720px) {
  .top-user-chip { display: inline-flex; }
}
.top-user-avatar {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand);
  background: linear-gradient(135deg, color-mix(in oklch, var(--brand) 22%, transparent), color-mix(in oklch, var(--brand) 8%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--brand) 25%, transparent);
}
.top-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-logout {
  margin: 0;
  display: inline;
}
.top-logout-btn {
  border-radius: 999px !important;
  font-size: 12px !important;
  padding: 8px 14px !important;
}
.top-guest {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.top-guest-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.top-guest-links a {
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-xl);
}
.top-guest-links a:hover {
  color: var(--foreground);
  background: color-mix(in oklch, var(--muted) 70%, transparent);
}
.top-actions--guest {
  gap: 8px;
}
.top-guest-login {
  font-weight: 600;
  font-size: 13px;
  color: var(--foreground);
  padding: 8px 12px;
  border-radius: var(--radius-xl);
}
.top-guest-login:hover {
  background: color-mix(in oklch, var(--muted) 70%, transparent);
  text-decoration: none;
}

.brand {
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  display: block;
}
.brand > span span,
.brand-word span {
  background: linear-gradient(135deg, var(--foreground), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mark-img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 4px 12px -4px var(--cta-shadow);
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.top nav a {
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-xl);
}
.top nav a:hover { color: var(--foreground); background: color-mix(in oklch, var(--muted) 70%, transparent); }
.who { color: var(--muted-foreground); font-size: 13px; }
.inline { display: inline; margin: 0; }
.linkish {
  background: none; border: none; color: var(--muted-foreground); cursor: pointer;
  font: inherit; font-weight: 600; font-size: 13px;
}
.linkish:hover { color: var(--foreground); }

@media (max-width: 900px) {
  .top--session {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }
  .top-session {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .top-primary {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .top-primary::-webkit-scrollbar { display: none; }
  .top-pill {
    flex: 0 0 auto;
    justify-content: center;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .top-prefs { flex-wrap: wrap; }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; }
.wrap.narrow { max-width: 440px; }
.wrap.app-wrap { max-width: 1180px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-foreground);
  margin: 0;
}
.lead, .page-sub, .section-sub, .panel-desc, .hint, .muted {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.55;
}
.muted { font-size: 13px; }
code { font-family: var(--mono); font-size: 12px; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 1px 2px oklch(0.25 0.04 260 / 5%);
}
.btn:hover { text-decoration: none; background: color-mix(in oklch, var(--secondary) 85%, var(--foreground)); }
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: var(--brand);
  color: var(--brand-foreground);
  border: none;
  box-shadow: 0 8px 24px -8px var(--cta-shadow);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost, .btn.secondary {
  background: var(--background);
  border-color: var(--border);
  color: var(--foreground);
}
.btn.ghost:hover { background: var(--muted); }
.btn.danger {
  background: color-mix(in oklch, var(--destructive) 12%, transparent);
  color: var(--danger-fg);
  border-color: color-mix(in oklch, var(--destructive) 30%, transparent);
}
.btn.lg { padding: 12px 22px; font-size: 15px; }

/* —— Cards / panels —— */
.panel, .cards article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.panel + .panel { margin-top: 16px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-head h2 { margin: 0 0 6px; font-size: 1.15rem; }
.panel-desc { margin: 0; }

/* —— Forms —— */
.form { display: grid; gap: 12px; }
.form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
}
.form textarea {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 72px;
  transition: border-color .15s, box-shadow .15s;
}
.form textarea:focus {
  outline: none;
  border-color: color-mix(in oklch, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}
.seo-preview {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--muted);
  display: grid;
  place-items: center;
}
.seo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.seo-admin-form .create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.form input, .form select, .create-form select, .reject-form input, .shop-note input {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus {
  outline: none;
  border-color: color-mix(in oklch, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}
.form input:disabled { opacity: .65; }
.rowish { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); align-items: end; }
.create-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: end;
}
.create-form .span-2 { grid-column: span 2; }
.create-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.form-sep { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.narrow-panel { max-width: 480px; }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  margin: 0 0 16px;
  border: 1px solid transparent;
}
.alert.err {
  background: color-mix(in oklch, var(--destructive) 12%, var(--background));
  color: var(--danger-fg);
  border-color: color-mix(in oklch, var(--destructive) 28%, transparent);
}
.alert.ok {
  background: color-mix(in oklch, var(--success) 14%, transparent);
  color: color-mix(in oklch, var(--success) 55%, var(--foreground));
  border-color: color-mix(in oklch, var(--success) 32%, transparent);
}

/* —— Stats —— */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}
.stat {
  background: linear-gradient(160deg, color-mix(in oklch, var(--brand) 6%, var(--card)), var(--card));
  border: 1px solid color-mix(in oklch, var(--brand) 18%, var(--border));
  border-radius: var(--radius-2xl);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
}
.stat.accent {
  background: linear-gradient(160deg, color-mix(in oklch, var(--brand) 12%, var(--card)), var(--card));
}
.stat.danger {
  background: linear-gradient(160deg, color-mix(in oklch, var(--destructive) 8%, var(--card)), var(--card));
  border-color: color-mix(in oklch, var(--destructive) 22%, var(--border));
}
.stat span {
  display: block;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.stat strong {
  font-family: var(--font);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  tabular-nums: true;
  font-variant-numeric: tabular-nums;
}

/* —— Tables —— */
.table-wrap {
  overflow: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 35%, transparent);
}
table, .data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
th {
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: color-mix(in oklch, var(--muted) 60%, transparent);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: color-mix(in oklch, var(--brand) 4%, transparent); }
.td-actions { text-align: right; white-space: nowrap; }
.td-strong { font-weight: 600; }
.empty-cell {
  color: var(--muted-foreground);
  text-align: center !important;
  padding: 28px 14px !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge.active, .badge.admin, .badge.paid {
  background: color-mix(in oklch, var(--success) 15%, transparent);
  color: color-mix(in oklch, var(--success) 55%, var(--foreground));
}
.badge.revoked, .badge.expired, .badge.rejected, .badge.cancelled {
  background: color-mix(in oklch, var(--destructive) 12%, transparent);
  color: var(--danger-fg);
}
.badge.user {
  background: color-mix(in oklch, var(--info) 15%, transparent);
  color: color-mix(in oklch, var(--info) 50%, var(--foreground));
}
.badge.pending, .badge.warn {
  background: color-mix(in oklch, var(--warning) 18%, transparent);
  color: color-mix(in oklch, var(--warning) 40%, var(--foreground));
}

.keys { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.keys li {
  padding: 14px;
  border-radius: var(--radius-xl);
  background: color-mix(in oklch, var(--brand) 6%, var(--muted));
  border: 1px dashed color-mix(in oklch, var(--brand) 35%, transparent);
  display: grid;
  gap: 6px;
}
.key { word-break: break-all; color: var(--brand); font-size: 13px; font-family: var(--mono); }
.flash {
  border-color: color-mix(in oklch, var(--brand) 35%, var(--border));
  background: linear-gradient(135deg, color-mix(in oklch, var(--brand) 10%, var(--card)), var(--card));
}
.flash::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, color-mix(in oklch, var(--brand) 85%, black), var(--brand), var(--info));
}

/* —— App shell —— */
body.app-shell {
  display: grid;
  grid-template-columns: 18rem 1fr;
  min-height: 100dvh;
  background: color-mix(in oklch, var(--muted) 35%, var(--background));
}
.dark body.app-shell { background: color-mix(in oklch, black 15%, var(--background)); }

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-right: 1px solid var(--sidebar-border);
  background: var(--sidebar);
  overflow-y: auto;
}
.sidebar .brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 16px;
}
.brand-mark {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), oklch(0.55 0.14 245));
  color: var(--brand-foreground);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 12px -4px var(--cta-shadow);
  flex-shrink: 0;
}
.brand-text { display: grid; gap: 2px; min-width: 0; }
.brand-text strong {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.2;
}
.brand-text span {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-foreground);
  line-height: 1.3;
}
.side-section {
  margin: 16px 16px 8px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  flex: 0 0 auto;
  margin-bottom: 4px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: color-mix(in oklch, var(--sidebar-foreground) 80%, transparent);
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  min-height: 46px;
  transition: background .15s, color .15s;
}
.side-nav a:hover {
  color: var(--sidebar-accent-foreground);
  background: color-mix(in oklch, var(--sidebar-accent) 60%, transparent);
  text-decoration: none;
}
.side-nav a.active {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
  box-shadow: 0 0 0 1px var(--border);
}
.side-nav a.active::after {
  content: "";
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.nav-ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: color-mix(in oklch, var(--muted) 70%, transparent);
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.nav-ico .icon {
  width: 20px;
  height: 20px;
}
.side-nav a.active .nav-ico {
  background: color-mix(in oklch, var(--brand) 18%, transparent);
  color: var(--brand);
}
.side-nav a:hover .nav-ico {
  color: var(--foreground);
  background: color-mix(in oklch, var(--muted) 90%, transparent);
}
.side-nav a.side-admin,
.side-nav a.nav-admin {
  margin-top: 2px;
  color: var(--brand);
  background: color-mix(in oklch, var(--brand) 8%, transparent);
  border: 1px solid color-mix(in oklch, var(--brand) 22%, transparent);
}
.side-nav a.nav-admin:hover {
  background: color-mix(in oklch, var(--brand) 14%, transparent);
  text-decoration: none;
}
.side-nav a.nav-admin .nav-ico {
  background: color-mix(in oklch, var(--brand) 15%, transparent);
  color: var(--brand);
}
.side-foot {
  margin-top: auto;
  padding: 12px 12px 16px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--sidebar-border);
  background: color-mix(in oklch, var(--muted) 45%, transparent);
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand);
  background: linear-gradient(135deg, color-mix(in oklch, var(--brand) 25%, transparent), color-mix(in oklch, var(--brand) 10%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--brand) 22%, transparent);
}
.user-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.user-meta strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-meta span {
  font-size: 11px;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logout-form { margin: 0; }
.logout-btn { width: 100%; }

.profile-panel {
  max-width: 520px;
  margin: 0 auto;
}

/* —— Profile page —— */
.profile-page .page-head-compact {
  margin-bottom: 20px;
}
.profile-alert {
  max-width: 56rem;
  margin-bottom: 16px;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 56rem;
}
.profile-summary {
  padding: 24px 20px;
  position: sticky;
  top: 20px;
}
.profile-summary-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.profile-avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand);
  background: linear-gradient(165deg, color-mix(in oklch, var(--brand) 22%, transparent), color-mix(in oklch, var(--brand) 8%, transparent));
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--brand) 28%, transparent),
    0 12px 28px -14px var(--cta-shadow);
}
.profile-display-name {
  margin: 8px 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.profile-display-email {
  margin: 0;
  font-size: 13px;
  color: var(--muted-foreground);
  word-break: break-all;
  line-height: 1.45;
  max-width: 100%;
}
.profile-role {
  margin-top: 6px;
}
.profile-tips {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.55;
}
.profile-tips li {
  position: relative;
  padding-left: 14px;
}
.profile-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.profile-forms {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.profile-form {
  display: grid;
  gap: 16px;
}
.profile-block {
  padding: 22px 24px;
}
.profile-block-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.profile-block-head h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.profile-block-head .panel-desc {
  margin: 0;
  font-size: 13px;
}
.profile-block-ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in oklch, var(--brand) 12%, transparent);
  color: var(--brand);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--brand) 22%, transparent);
}
.profile-block-ico .icon {
  width: 22px;
  height: 22px;
}
.profile-fields {
  display: grid;
  gap: 16px;
}
.profile-fields .field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 6px;
}
.profile-fields label {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  gap: 0;
}
.profile-fields input {
  width: 100%;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.profile-fields input:focus {
  outline: none;
  border-color: color-mix(in oklch, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.4;
}
.input-with-ico {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--muted) 45%, var(--input-bg));
  overflow: hidden;
}
.input-with-ico:focus-within {
  border-color: color-mix(in oklch, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}
.input-ico {
  display: grid;
  place-items: center;
  width: 44px;
  flex-shrink: 0;
  color: var(--muted-foreground);
}
.input-ico .icon {
  width: 18px;
  height: 18px;
}
.input-with-ico input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
}
.field-locked input:disabled {
  opacity: 1;
  color: var(--muted-foreground);
  cursor: not-allowed;
}
.profile-pw-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
.profile-form-actions .btn.lg {
  min-width: 200px;
}
@media (max-width: 860px) {
  .profile-layout {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .profile-summary {
    position: static;
  }
  .profile-pw-row {
    grid-template-columns: 1fr;
  }
  .profile-form-actions .btn.lg {
    width: 100%;
    min-width: 0;
  }
}

.detail-panel .detail-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Admin polish */
body.admin-app .admin-side {
  background: linear-gradient(180deg, color-mix(in oklch, var(--brand) 4%, var(--sidebar)), var(--sidebar));
  box-shadow: 1px 0 0 var(--sidebar-border);
}
body.admin-app .admin-side .brand-block {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 2px;
}
.admin-stats .stat.tone-brand {
  background: linear-gradient(160deg, color-mix(in oklch, var(--brand) 12%, var(--card)), var(--card));
  border-color: color-mix(in oklch, var(--brand) 22%, var(--border));
}
.admin-stats .stat.tone-sky {
  background: linear-gradient(160deg, color-mix(in oklch, var(--info) 10%, var(--card)), var(--card));
  border-color: color-mix(in oklch, var(--info) 22%, var(--border));
}
.admin-stats .stat.tone-amber {
  background: linear-gradient(160deg, color-mix(in oklch, var(--warning) 14%, var(--card)), var(--card));
  border-color: color-mix(in oklch, var(--warning) 28%, var(--border));
}
.admin-stats .stat.tone-slate {
  background: linear-gradient(160deg, color-mix(in oklch, var(--muted) 80%, var(--card)), var(--card));
}
.link-card .link-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in oklch, var(--brand) 12%, transparent);
  color: var(--brand);
  margin-bottom: 6px;
}
.link-card .link-ico .icon {
  width: 22px;
  height: 22px;
}
.empty-inline {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 14px;
  border-radius: var(--radius-xl);
  background: color-mix(in oklch, var(--muted) 40%, transparent);
}
.plan-price-sm {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
}
.plan-edit-card .panel-head { align-items: center; }

/* Admin plans catalog */
.plan-create-panel { margin-bottom: 20px; }
.plan-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 4px 0 0;
}
.plan-form .span-2 { grid-column: span 2; }
.plan-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted-foreground);
  font-weight: 500;
}
.price-input {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.price-input:focus-within {
  border-color: color-mix(in oklch, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}
.price-prefix {
  padding: 0 0 0 12px;
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 14px;
}
.price-input input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.plan-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.plan-admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.plan-admin-card:hover {
  border-color: color-mix(in oklch, var(--brand) 30%, var(--border));
}
.plan-admin-card.editing {
  border-color: color-mix(in oklch, var(--brand) 45%, var(--border));
  box-shadow: 0 12px 28px -16px var(--cta-shadow);
}
.plan-admin-card.is-hidden {
  opacity: 0.72;
}
.plan-admin-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.plan-admin-slug {
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.plan-admin-top h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.plan-admin-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}
.plan-admin-desc {
  margin: 12px 0 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.45;
  min-height: 2.9em;
}
.plan-admin-meta {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.plan-admin-meta li {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
  background: color-mix(in oklch, var(--muted) 12%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}
.plan-admin-actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* Plan card inline edit form */
.plan-edit-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.pef-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pef-label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
}
.pef-label input,
.pef-label select {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: var(--radius-lg);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.pef-label input:focus,
.pef-label select:focus {
  outline: none;
  border-color: color-mix(in oklch, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}
.pef-label .price-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--input-bg);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.pef-label .price-input:focus-within {
  border-color: color-mix(in oklch, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}
.pef-label .price-input input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 8px 10px;
}
@media (max-width: 900px) {
  .plan-form { grid-template-columns: 1fr 1fr; }
  .plan-form .span-2 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .plan-form { grid-template-columns: 1fr; }
  .plan-form .span-2 { grid-column: span 1; }
}
.user-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.user-avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
  border-radius: 8px;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-xl);
  background: color-mix(in oklch, var(--muted) 50%, transparent);
  border: 1px solid var(--border);
}
.filter-tabs .btn { box-shadow: none; }
.shell-main {
  padding: 24px 28px 48px;
  max-width: 80rem;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  justify-self: center;
}
.admin-side .brand-mark {
  background: linear-gradient(135deg, var(--brand), oklch(0.45 0.12 260));
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: linear-gradient(90deg, color-mix(in oklch, var(--brand) 10%, transparent), transparent 70%), var(--card);
  box-shadow: var(--shadow-card);
}
.page-head > div:first-child {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}
.page-ico {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
  background: color-mix(in oklch, var(--brand) 15%, transparent);
  color: var(--brand);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--brand) 30%, transparent);
  flex-shrink: 0;
}
.page-ico .icon {
  width: 24px;
  height: 24px;
}
.page-head h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
}
.page-sub { margin: 0; }
.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* —— User dashboard —— */
.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 24px 26px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(125deg, color-mix(in oklch, var(--brand) 12%, transparent), transparent 55%),
    var(--card);
  box-shadow: var(--shadow-card);
}
.dash-hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.dash-hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand);
  background: linear-gradient(165deg, color-mix(in oklch, var(--brand) 24%, transparent), color-mix(in oklch, var(--brand) 8%, transparent));
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--brand) 28%, transparent);
}
.dash-hero-copy {
  min-width: 0;
}
.dash-hero-copy h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dash-hero-copy .page-sub {
  margin: 0;
}
.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.dash-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.dash-stat.tone-ok {
  background: linear-gradient(160deg, color-mix(in oklch, var(--success) 10%, var(--card)), var(--card));
  border-color: color-mix(in oklch, var(--success) 22%, var(--border));
}
.dash-stat.tone-warn {
  background: linear-gradient(160deg, color-mix(in oklch, var(--warning) 12%, var(--card)), var(--card));
  border-color: color-mix(in oklch, var(--warning) 26%, var(--border));
}
.dash-stat.tone-brand {
  background: linear-gradient(160deg, color-mix(in oklch, var(--brand) 12%, var(--card)), var(--card));
  border-color: color-mix(in oklch, var(--brand) 24%, var(--border));
}
.dash-stat-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in oklch, var(--muted) 70%, transparent);
  color: var(--muted-foreground);
}
.dash-stat.tone-ok .dash-stat-ico {
  background: color-mix(in oklch, var(--success) 14%, transparent);
  color: var(--success);
}
.dash-stat.tone-warn .dash-stat-ico {
  background: color-mix(in oklch, var(--warning) 16%, transparent);
  color: color-mix(in oklch, var(--warning) 45%, var(--foreground));
}
.dash-stat.tone-brand .dash-stat-ico {
  background: color-mix(in oklch, var(--brand) 14%, transparent);
  color: var(--brand);
}
.dash-stat-ico .icon {
  width: 22px;
  height: 22px;
}
.dash-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}
.dash-stat-value {
  display: block;
  font-family: var(--font);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.dash-guide {
  padding: 22px 24px;
}
.dash-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.dash-steps li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 35%, transparent);
  transition: border-color .15s, background .15s;
}
.dash-steps li:hover {
  border-color: color-mix(in oklch, var(--brand) 28%, var(--border));
  background: color-mix(in oklch, var(--brand) 5%, var(--card));
}
.dash-step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  background: color-mix(in oklch, var(--brand) 14%, transparent);
  color: var(--brand);
  flex-shrink: 0;
}
.dash-step-body {
  min-width: 0;
}
.dash-step-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.dash-step-body p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.5;
}
.dash-step-body code {
  font-size: 12px;
  color: var(--brand);
}
.dash-step-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted-foreground);
  background: var(--card);
  border: 1px solid var(--border);
}
.dash-step-ico .icon {
  width: 18px;
  height: 18px;
}

.dash-aside {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.dash-links {
  padding: 20px;
  display: grid;
  gap: 10px;
}
.dash-links > h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}
.dash-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 40%, transparent);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s, transform .15s;
}
.dash-link-card:hover {
  text-decoration: none;
  border-color: color-mix(in oklch, var(--brand) 35%, var(--border));
  background: color-mix(in oklch, var(--brand) 6%, var(--card));
  transform: translateY(-1px);
}
.dash-link-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.dash-link-sub {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.35;
}
.dash-link-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in oklch, var(--brand) 12%, transparent);
  color: var(--brand);
}
.dash-link-ico .icon {
  width: 20px;
  height: 20px;
}
.dash-link-cta {
  background: linear-gradient(160deg, color-mix(in oklch, var(--brand) 12%, var(--card)), var(--card));
  border-color: color-mix(in oklch, var(--brand) 28%, var(--border));
}
@media (max-width: 960px) {
  .dash-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-hero-actions { width: 100%; }
  .dash-hero-actions .btn { flex: 1; }
  .dash-steps li {
    grid-template-columns: auto 1fr;
  }
  .dash-step-ico { display: none; }
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.guide-steps li {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 40%, transparent);
}
.guide-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in oklch, var(--brand) 15%, transparent);
  color: var(--brand);
}
.guide-steps strong { display: block; margin-bottom: 4px; font-size: 14px; }
.guide-steps p { margin: 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.5; }

.tip-panel {
  background: linear-gradient(165deg, color-mix(in oklch, var(--brand) 10%, var(--card)), var(--card));
  border-color: color-mix(in oklch, var(--brand) 28%, var(--border));
}
.tip-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.tip-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.5;
}
.tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.detail-grid span { display: block; font-size: 12px; margin-bottom: 4px; color: var(--muted-foreground); }
.detail-grid strong { font-size: 1rem; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: 16px;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}
.plan-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}
.plan-card.featured {
  border-color: color-mix(in oklch, var(--brand) 40%, var(--border));
  box-shadow: 0 12px 36px -12px var(--cta-shadow);
}
.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: var(--brand-foreground);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0;
}
.plan-name {
  margin: 0;
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .1em;
}
.plan-price {
  margin: 0;
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.plan-card ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  flex: 1;
  display: grid;
  gap: 8px;
}
.plan-card li {
  font-size: 14px;
  color: var(--muted-foreground);
  padding-left: 18px;
  position: relative;
}
.plan-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand);
}
.shop-note { display: grid; gap: 6px; margin: 8px 0; font-size: 12px; color: var(--muted-foreground); text-align: left; }
.plan-card form .btn { width: 100%; }

/* Keys page */
.key-reveal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.key-full, .key-masked {
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
  color: var(--brand);
  background: color-mix(in oklch, var(--brand) 8%, transparent);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in oklch, var(--brand) 20%, transparent);
  max-width: 420px;
}
.key-actions { display: inline-flex; gap: 6px; }
.device-quota {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: color-mix(in oklch, var(--brand) 10%, transparent);
  color: var(--brand);
  border: 1px solid color-mix(in oklch, var(--brand) 22%, transparent);
}
.device-quota.full {
  background: color-mix(in oklch, var(--destructive) 12%, transparent);
  color: var(--danger-fg);
  border-color: color-mix(in oklch, var(--destructive) 28%, transparent);
}
.keys-table .devices-row > td {
  padding-top: 0;
  padding-bottom: 14px;
  border-top: none;
  background: color-mix(in oklch, var(--muted) 35%, transparent);
}
.keys-table .key-row + .devices-row > td { border-bottom: 1px solid var(--border); }
.device-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: grid;
  gap: 8px;
}
.device-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}
.device-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  min-width: 0;
}
.device-meta strong { font-size: 13px; }
.device-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-foreground);
  word-break: break-all;
}
.device-empty { margin: 4px 0 0; }
.key-prefix {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: color-mix(in oklch, var(--brand) 10%, transparent);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid color-mix(in oklch, var(--brand) 22%, transparent);
}
.plan-chip {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: color-mix(in oklch, var(--muted) 70%, transparent);
  color: var(--foreground);
  border: 1px solid var(--border);
}
.td-mono { font-family: var(--mono); font-size: 12px; color: var(--muted-foreground); }

.empty-state {
  max-width: 480px;
  margin: 28px auto 0;
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, color-mix(in oklch, var(--brand) 8%, var(--card)), var(--card));
  box-shadow: var(--shadow-card);
}
.empty-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-2xl);
  background: color-mix(in oklch, var(--brand) 14%, transparent);
  color: var(--brand);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--brand) 28%, transparent);
}
.empty-ico .icon {
  width: 30px;
  height: 30px;
}
.empty-state h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 600;
}
.empty-state p {
  margin: 0 auto 22px;
  max-width: 380px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
}
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.link-card {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 6px;
  transition: border-color .15s, transform .15s;
}
.link-card:hover {
  border-color: color-mix(in oklch, var(--brand) 40%, var(--border));
  text-decoration: none;
  transform: translateY(-1px);
}
.link-card span { color: var(--muted-foreground); font-size: 13px; }
.reject-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-left: 6px;
}
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.filter-tabs { gap: 6px; }

/* —— Landing (reuse tokens) —— */
body.landing { background-color: var(--background); background-image: var(--body-gradient); }
body.landing .top { background: var(--header-surface); }
body.landing .wrap { max-width: 1140px; }
body.landing main { padding-bottom: 0; }

.hero-saas { position: relative; padding: 48px 0 56px; overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, color-mix(in oklch, var(--brand) 22%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, color-mix(in oklch, var(--info) 18%, transparent), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  margin: 16px 0 14px;
  font-weight: 600;
}
.gradient-text {
  background: linear-gradient(120deg, var(--brand), var(--info) 55%, var(--success));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--brand) 25%, var(--border));
  background: color-mix(in oklch, var(--brand) 10%, transparent);
  font-size: 12px;
  font-weight: 600;
  color: color-mix(in oklch, var(--brand) 70%, var(--foreground));
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px color-mix(in oklch, var(--brand) 50%, transparent);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.cta-note { width: 100%; font-size: 13px; color: var(--muted-foreground); }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
}
.hero-trust li { position: relative; padding-left: 14px; }
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.mock-window {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-drop);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-bar span:nth-child(1) { background: var(--destructive); }
.mock-bar span:nth-child(2) { background: var(--warning); }
.mock-bar span:nth-child(3) { background: var(--success); }
.mock-bar code { margin-left: auto; color: var(--muted-foreground); font-size: 11px; }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--muted) 50%, transparent);
  font-size: 13px;
}
.mock-row.dim { opacity: .7; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.tag.get { background: color-mix(in oklch, var(--info) 15%, transparent); color: var(--info); }
.tag.post { background: color-mix(in oklch, var(--success) 15%, transparent); color: var(--success); }
.mock-path { flex: 1; color: var(--foreground); font-family: var(--mono); font-size: 12px; }
.mock-status { color: var(--muted-foreground); font-size: 12px; }
.mock-status.ok { color: var(--success); font-weight: 600; }
.mock-key {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px dashed color-mix(in oklch, var(--brand) 35%, transparent);
  background: color-mix(in oklch, var(--brand) 6%, transparent);
}
.mock-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }
.mock-key code { color: var(--brand); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stats div {
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--muted) 40%, transparent);
  border: 1px solid var(--border);
}
.mock-stats strong { display: block; font-size: 1.1rem; font-family: var(--font); }
.mock-stats span { font-size: 11px; color: var(--muted-foreground); text-transform: uppercase; }

.live-stats {
  background: color-mix(in oklch, var(--brand) 6%, transparent);
  border-bottom: 1px solid var(--border);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.live-stat {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.live-stat strong {
  display: block;
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--brand);
  margin-bottom: 4px;
}
.live-stat span { font-size: 13px; color: var(--muted-foreground); }

.metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 40%, transparent);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.metric { padding: 22px 20px; border-right: 1px solid var(--border); }
.metric:last-child { border-right: none; }
.metric strong { display: block; font-size: 1rem; margin-bottom: 4px; font-family: var(--font); }
.metric span { font-size: 13px; color: var(--muted-foreground); line-height: 1.4; }

.features-saas, .product-saas, .steps-saas, .api-saas, .plans-saas, .faq-saas { padding: 64px 0; }
.section-head { margin-bottom: 36px; max-width: 640px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 8px 0 10px;
  font-weight: 600;
}
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-grid.wide { grid-template-columns: repeat(3, 1fr); }
.feature-grid.quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: border-color .2s, transform .2s;
}
.feature-card:hover {
  border-color: color-mix(in oklch, var(--brand) 35%, var(--border));
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xl);
  background: color-mix(in oklch, var(--brand) 12%, transparent);
  color: var(--brand);
  margin-bottom: 14px;
}
.feature-icon .icon {
  width: 26px;
  height: 26px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.55; }

.product-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl-downloads-split {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  align-items: start;
  gap: 28px;
}
.dl-sidebar { display: grid; gap: 16px; align-content: start; }
.dl-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 22px;
}
.dl-meta-os { font-size: 14px; color: var(--muted-foreground); }
.dl-meta-link { font-size: 14px; font-weight: 600; color: var(--brand); }
.dl-hero-checks { margin-top: 18px; }
.dl-req-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.dl-req-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 8px;
}
.dl-req-k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}
.product-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.product-panel.accent {
  border-color: color-mix(in oklch, var(--brand) 30%, var(--border));
  background: linear-gradient(165deg, color-mix(in oklch, var(--brand) 8%, var(--card)), var(--card));
}
.product-panel h3 { margin: 0 0 16px; font-size: 1.15rem; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.5;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.steps-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-list li {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  flex-shrink: 0;
}
.steps-list h4 { margin: 0 0 6px; font-size: 1rem; }
.steps-list p { margin: 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.5; }

.api-saas {
  background: color-mix(in oklch, var(--muted) 35%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.api-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}
.api-table-wrap {
  overflow: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
}
.code-block {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--input-bg);
}
.code-head {
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
.code-block pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  color: var(--foreground);
}

.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: 0 18px;
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0 0 16px; color: var(--muted-foreground); font-size: 14px; line-height: 1.6; }

.cta-saas {
  margin: 0 20px 48px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 32px;
  border-radius: var(--radius-2xl);
  border: 1px solid color-mix(in oklch, var(--brand) 25%, var(--border));
  background: linear-gradient(135deg, color-mix(in oklch, var(--brand) 12%, transparent), color-mix(in oklch, var(--info) 8%, transparent));
  box-shadow: var(--shadow-card);
}
.cta-inner h2 { margin: 0 0 8px; font-size: 1.5rem; }
.cta-inner p { margin: 0; color: var(--muted-foreground); max-width: 420px; }
.cta-inner .hero-cta { margin-top: 0; }

.foot-saas { border-top: 1px solid var(--border); padding: 24px 0 32px; }
.foot-inner, .foot-simple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.foot-col strong {
  color: var(--foreground);
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.foot-col a { color: var(--muted-foreground); text-decoration: none; }
.foot-col a:hover { color: var(--brand); }
.foot-desc { margin: 8px 0 0; color: var(--muted-foreground); line-height: 1.5; max-width: 280px; }

/* —— HTTP Debugger marketing home —— */
body.hd-home { --hd-hero-pad: clamp(48px, 8vw, 88px); }
body.hd-home .wrap { max-width: 1180px; }
.hd-promo {
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--brand) 8%, var(--card));
}
.hd-promo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 13px;
}
.hd-promo-badge {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--primary-foreground, #fff);
}
.hd-promo-text { color: var(--muted-foreground); }
.hd-promo-link {
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.hd-promo-link:hover { text-decoration: underline; }

.hd-hero {
  position: relative;
  padding: var(--hd-hero-pad) 0 40px;
  overflow: hidden;
}
.hd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 20%, color-mix(in oklch, var(--brand) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 45% 40% at 85% 10%, color-mix(in oklch, var(--info) 14%, transparent), transparent 50%);
  pointer-events: none;
}
.hd-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.hd-hero-copy h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.35rem);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 14ch;
}
.hd-hero-copy .hero-lead { max-width: 520px; font-size: 1.08rem; }
.hd-hero-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
}

.hd-app-frame {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-drop);
  overflow: hidden;
}
.hd-app-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 35%, var(--card));
}
.hd-app-titlebar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.hd-app-titlebar span:nth-child(1) { background: var(--destructive); }
.hd-app-titlebar span:nth-child(2) { background: var(--warning); }
.hd-app-titlebar span:nth-child(3) { background: var(--success); }
.hd-app-titlebar em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: var(--muted-foreground);
  font-family: var(--mono);
}
.hd-app-body {
  display: grid;
  grid-template-columns: 44px 1fr;
  min-height: 280px;
}
.hd-app-side {
  padding: 12px 8px;
  border-right: 1px solid var(--border);
  display: grid;
  gap: 8px;
  align-content: start;
  background: color-mix(in oklch, var(--muted) 30%, transparent);
}
.hd-app-side-item {
  height: 28px;
  border-radius: 8px;
  background: color-mix(in oklch, var(--muted) 60%, transparent);
}
.hd-app-side-item.active {
  background: color-mix(in oklch, var(--brand) 22%, transparent);
  border: 1px solid color-mix(in oklch, var(--brand) 35%, transparent);
}
.hd-app-main { padding: 14px; display: grid; gap: 10px; align-content: start; }
.hd-app-toolbar {
  height: 32px;
  border-radius: 8px;
  background: color-mix(in oklch, var(--muted) 45%, transparent);
  margin-bottom: 4px;
}
.hd-app-pane {
  margin-top: 6px;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 25%, transparent);
}
.hd-app-pane-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-foreground);
  margin-bottom: 10px;
}
.hd-app-pane-line {
  height: 8px;
  border-radius: 4px;
  background: color-mix(in oklch, var(--muted) 70%, transparent);
  margin-bottom: 8px;
}
.hd-app-pane-line.short { width: 62%; }

.hd-trust {
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hd-trust p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted-foreground);
  font-weight: 500;
}
.hd-trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  opacity: .55;
}
.hd-trust-logos span {
  min-width: 88px;
  height: auto;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  opacity: .85;
}

.hd-pillars { padding: 56px 0; }
.hd-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hd-pillar {
  padding: 28px 26px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.hd-pillar-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}
.hd-pillar h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.25;
}
.hd-pillar p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
}

.hd-ai {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 30%, transparent);
}
.hd-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hd-ai-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 8px 0 14px;
  line-height: 1.15;
}
.hd-tag-row {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hd-tag-row li {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
}
.hd-ai-visual { display: grid; gap: 14px; }
.hd-stream-card {
  padding: 14px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.hd-stream-card.offset { margin-left: 24px; }
.hd-stream-head {
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
}
.hd-stream-body {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--foreground);
  white-space: pre-wrap;
  word-break: break-word;
}

.hd-testimonials { padding: 64px 0; }
.hd-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.hd-quote {
  margin: 0;
  padding: 22px 22px 20px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto;
}
.hd-quote p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--foreground);
  flex: 0 0 auto;
}
.hd-quote p::before {
  content: "\201C";
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: color-mix(in oklch, var(--brand) 45%, var(--muted-foreground));
  margin-bottom: 8px;
}
.hd-quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.hd-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in oklch, var(--brand) 18%, transparent);
  color: var(--brand);
  flex-shrink: 0;
}
.hd-quote footer strong {
  display: block;
  font-size: 14px;
}
.hd-quote footer span {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.hd-workflows { padding: 64px 0 24px; }
.hd-workflow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.hd-workflow:last-child { border-bottom: none; }
.hd-workflow.reverse .hd-workflow-copy { order: 2; }
.hd-workflow.reverse .hd-workflow-art { order: 1; }
.hd-wf-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
}
.hd-workflow-copy h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.25;
}
.hd-workflow-copy > p {
  margin: 0 0 16px;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.6;
}
.hd-workflow-art {
  min-height: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hd-mock-frame {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-drop);
  overflow: hidden;
  height: 100%;
}
.hd-mock-wide { max-width: 920px; margin: 0 auto; }
.hd-mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 40%, var(--card));
}
.hd-mock-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}
.hd-mock-chrome span:nth-child(1) { background: var(--destructive); }
.hd-mock-chrome span:nth-child(2) { background: var(--warning); }
.hd-mock-chrome span:nth-child(3) { background: var(--success); }
.hd-mock-chrome em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: var(--muted-foreground);
  font-family: var(--mono);
}
.hd-mock-body { padding: 14px; font-size: 12px; }
.hd-mock-split {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 10px;
  min-height: 200px;
}
.hd-mock-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: color-mix(in oklch, var(--muted) 25%, transparent);
}
.hd-mock-list-head {
  padding: 8px 10px;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
}
.hd-mock-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 11px;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
}
.hd-mock-list-row:last-child { border-bottom: none; }
.hd-mock-list-row.active {
  background: color-mix(in oklch, var(--brand) 12%, transparent);
}
.hd-mock-list-row small { margin-left: auto; color: var(--muted-foreground); font-size: 10px; }
.hd-mock-ico {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: color-mix(in oklch, var(--info) 25%, var(--muted));
  flex-shrink: 0;
}
.hd-mock-ico.dotnet { background: color-mix(in oklch, var(--brand) 30%, var(--muted)); }
.hd-mock-ico.java { background: color-mix(in oklch, var(--warning) 35%, var(--muted)); }
.hd-mock-traffic { display: grid; gap: 8px; align-content: start; }
.hd-mock-traffic .mock-row { font-size: 11px; padding: 8px 10px; }

.hd-mock-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.hd-mock-tabs span {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}
.hd-mock-tabs span.on {
  background: color-mix(in oklch, var(--brand) 14%, var(--card));
  border-color: color-mix(in oklch, var(--brand) 35%, var(--border));
  color: var(--foreground);
}
.hd-mock-event {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--muted) 40%, transparent);
  border: 1px solid var(--border);
}
.hd-mock-event.warn {
  border-color: color-mix(in oklch, var(--warning) 40%, var(--border));
  background: color-mix(in oklch, var(--warning) 8%, transparent);
}
.hd-mock-event code {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
  word-break: break-all;
}

.hd-mock-submit-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.hd-mock-select {
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
}
.hd-mock-url {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
  background: var(--input-bg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hd-mock-send {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  background: var(--brand);
  color: var(--primary-foreground, #fff);
  cursor: default;
}
.hd-mock-submit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hd-mock-pane {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: color-mix(in oklch, var(--muted) 30%, transparent);
}
.hd-mock-pane-title {
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
}
.hd-mock-pane pre {
  margin: 0;
  padding: 10px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.hd-mock-resp {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.mock-status.err { color: var(--destructive); font-weight: 700; }
.mock-status.warn { color: var(--warning); font-weight: 700; }

.hd-mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 12px;
}
.hd-mock-table th,
.hd-mock-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.hd-mock-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted-foreground);
}
.hd-mock-table code { font-size: 10px; }
.hd-mock-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--muted) 60%, transparent);
  color: var(--muted-foreground);
}
.hd-mock-pill.ok {
  background: color-mix(in oklch, var(--success) 18%, transparent);
  color: var(--success);
}
.hd-mock-rule-preview pre {
  margin: 0;
  padding: 10px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--muted) 35%, transparent);
}

.hd-mock-bars { display: grid; gap: 8px; margin-bottom: 14px; }
.hd-mock-bar {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.hd-mock-bar i {
  display: block;
  height: 10px;
  border-radius: 4px;
  width: var(--w);
  background: linear-gradient(90deg, var(--brand), color-mix(in oklch, var(--info) 70%, var(--brand)));
}
.hd-mock-bar.slow i {
  background: linear-gradient(90deg, var(--warning), var(--destructive));
}
.hd-mock-bar em { font-style: normal; color: var(--muted-foreground); font-size: 10px; }
.hd-mock-chart-mini {
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--muted) 25%, transparent);
}
.hd-mock-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 72px;
  margin-bottom: 10px;
}
.hd-mock-chart-bars.tall { height: 120px; }
.hd-mock-chart-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: color-mix(in oklch, var(--brand) 55%, var(--info));
  min-height: 8px;
}
.hd-mock-chart-bars span:nth-child(even) {
  background: color-mix(in oklch, var(--info) 50%, var(--brand));
}
.hd-mock-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 10px;
  color: var(--muted-foreground);
}
.hd-mock-chart-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}
.hd-mock-chart-legend .c1 { background: var(--brand); }
.hd-mock-chart-legend .c2 { background: var(--info); }
.hd-mock-flag {
  margin-left: auto;
  color: var(--warning);
  font-weight: 600;
}

.hd-mock-timeline .hd-tl-row {
  display: grid;
  grid-template-columns: auto 1fr minmax(80px, 28%) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.hd-mock-timeline .hd-tl-row:last-child { border-bottom: none; }
.hd-tl-track {
  height: 8px;
  border-radius: 4px;
  background: color-mix(in oklch, var(--muted) 60%, transparent);
  position: relative;
  overflow: hidden;
}
.hd-tl-track i {
  position: absolute;
  left: var(--a);
  width: calc(var(--b) - var(--a));
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: var(--brand);
}
.hd-tl-row.slow .hd-tl-track i { background: var(--warning); }
.hd-tl-row em { font-style: normal; color: var(--muted-foreground); font-size: 10px; }

.hd-mock-charts-panel {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: end;
  min-height: 160px;
}
.hd-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto;
  background:
    conic-gradient(
      var(--brand) 0 38%,
      var(--info) 38% 62%,
      var(--success) 62% 78%,
      color-mix(in oklch, var(--muted) 70%, transparent) 78% 100%
    );
  mask: radial-gradient(circle at center, transparent 52%, #000 53%);
}
.hd-chart-labels {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 10px;
  color: var(--muted-foreground);
}

.hd-mock-highlight .mock-row { margin-bottom: 8px; }
.hd-mock-highlight .ok-row { border-left: 3px solid var(--success); }
.hd-mock-highlight .err-row {
  border-left: 3px solid var(--destructive);
  background: color-mix(in oklch, var(--destructive) 8%, transparent);
}
.hd-mock-highlight .slow-row {
  border-left: 3px solid var(--warning);
  background: color-mix(in oklch, var(--warning) 8%, transparent);
}

.hd-mock-modify { display: grid; gap: 10px; }
.hd-mock-mod-line label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}
.hd-mock-mod-line code {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
  background: color-mix(in oklch, var(--muted) 35%, transparent);
}
.hd-mock-apply {
  justify-self: start;
  margin-top: 4px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  background: var(--brand);
  color: var(--primary-foreground, #fff);
  cursor: default;
}

.hd-panel-mock {
  height: auto;
  min-height: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  margin: 0 auto;
  max-width: 920px;
  padding: 0 8px;
}
.hd-panel-mock .hd-mock-frame { text-align: left; }

@media (max-width: 720px) {
  .hd-mock-split,
  .hd-mock-submit-grid,
  .hd-mock-charts-panel { grid-template-columns: 1fr; }
  .hd-mock-timeline .hd-tl-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.hd-showcase {
  padding: 64px 0;
  background: color-mix(in oklch, var(--muted) 28%, transparent);
  border-top: 1px solid var(--border);
}
.hd-showcase-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 28px;
}
.hd-tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hd-tab-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.hd-tab-labels label {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  transition: border-color .15s, color .15s, background .15s;
}
#hd-tab-1:checked ~ .hd-tab-labels label[for="hd-tab-1"],
#hd-tab-2:checked ~ .hd-tab-labels label[for="hd-tab-2"],
#hd-tab-3:checked ~ .hd-tab-labels label[for="hd-tab-3"],
#hd-tab-4:checked ~ .hd-tab-labels label[for="hd-tab-4"],
#hd-tab-5:checked ~ .hd-tab-labels label[for="hd-tab-5"] {
  border-color: color-mix(in oklch, var(--brand) 40%, var(--border));
  background: color-mix(in oklch, var(--brand) 12%, var(--card));
  color: var(--foreground);
}
.hd-tab-panels { position: relative; min-height: 320px; }
.hd-tab-panel {
  display: none;
  text-align: center;
}
.hd-tab-panel p {
  margin: 0 0 16px;
  color: var(--muted-foreground);
  font-size: 14px;
}
#hd-tab-1:checked ~ .hd-tab-panels .hd-tab-panel:nth-child(1),
#hd-tab-2:checked ~ .hd-tab-panels .hd-tab-panel:nth-child(2),
#hd-tab-3:checked ~ .hd-tab-panels .hd-tab-panel:nth-child(3),
#hd-tab-4:checked ~ .hd-tab-panels .hd-tab-panel:nth-child(4),
#hd-tab-5:checked ~ .hd-tab-panels .hd-tab-panel:nth-child(5) {
  display: block;
  animation: hd-fade-in .25s ease;
}
@keyframes hd-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
/* hd-panel-mock — see block above .hd-showcase */

.hd-portal-band {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.hd-portal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-2xl);
  border: 1px solid color-mix(in oklch, var(--brand) 22%, var(--border));
  background: linear-gradient(135deg, color-mix(in oklch, var(--brand) 8%, var(--card)), var(--card));
}
.hd-portal-inner h2 { margin: 8px 0 10px; font-size: 1.45rem; }
.hd-portal-inner .hero-cta { margin-top: 0; }

.hd-download {
  padding: 56px 0 72px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--brand) 6%, transparent);
}
.hd-download-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}
.hd-download-inner h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); }
.hd-download-meta {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
}
.hd-foot .foot-col .brand { margin-bottom: 4px; }

@media (max-width: 960px) {
  .hd-hero-inner,
  .hd-ai-grid,
  .hd-pillar-grid,
  .hd-quote-grid,
  .hd-workflow {
    grid-template-columns: 1fr;
  }
  .hd-workflow.reverse .hd-workflow-copy,
  .hd-workflow.reverse .hd-workflow-art { order: unset; }
  .hd-hero-copy h1 { max-width: none; }
  .hd-stream-card.offset { margin-left: 0; }
  .hd-download-inner { text-align: center; justify-content: center; }
  .hd-portal-inner { text-align: center; justify-content: center; }
}
.foot, .app-foot {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 12px;
  padding: 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

/* —— Auth —— */
body.auth-page {
  background-color: var(--background);
  background-image: var(--body-gradient);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body.auth-page .top { background: var(--header-surface); }
.auth-shell {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1040px;
  width: calc(100% - 40px);
  margin: 36px auto 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-drop);
  min-height: 520px;
}
.auth-aside {
  position: relative;
  padding: 44px 40px;
  background: linear-gradient(160deg, color-mix(in oklch, var(--brand) 8%, var(--card)), var(--card));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.auth-aside-glow {
  position: absolute;
  inset: -30% -20% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 70% 55% at 30% 40%, color-mix(in oklch, var(--brand) 22%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 45% at 80% 20%, color-mix(in oklch, var(--info) 16%, transparent), transparent 55%);
  pointer-events: none;
}
.auth-aside > *:not(.auth-aside-glow) { position: relative; }
.auth-aside h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
  margin: 10px 0 14px;
  font-weight: 600;
}
.auth-aside-lead {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.6;
  font-size: 15px;
  max-width: 360px;
}
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-points li {
  position: relative;
  padding-left: 22px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.45;
}
.auth-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px color-mix(in oklch, var(--brand) 45%, transparent);
}
.auth-card {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: color-mix(in oklch, var(--muted) 25%, var(--card));
}
.auth-card-head { margin-bottom: 22px; }
.auth-card-head h2 { margin: 0 0 8px; font-size: 1.55rem; font-weight: 600; }
.auth-card-head p { margin: 0; color: var(--muted-foreground); font-size: 14px; }
.auth-form { gap: 14px; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-submit { width: 100%; margin-top: 6px; padding: 13px 18px; }
.auth-switch { margin: 20px 0 0; text-align: center; color: var(--muted-foreground); font-size: 14px; }
.auth-switch a { font-weight: 600; }

body.app-page {
  background-color: var(--background);
  background-image: var(--body-gradient);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body.app-page .top { background: var(--header-surface); }
body.app-page main { flex: 1; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; }
  .metrics-grid, .stats-row { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .feature-grid.wide, .feature-grid.quad, .product-split, .dl-downloads-split, .steps-list, .steps-list.cols-3, .api-grid, .plans-grid, .dash-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body.app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--sidebar-border);
  }
  .side-nav { flex-direction: row; flex-wrap: wrap; padding-bottom: 10px; }
  .side-nav a.active::after { display: none; }
  .side-foot { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .shell-main { padding: 20px 16px 40px; }
  .auth-shell { grid-template-columns: 1fr; margin: 20px auto 36px; min-height: 0; }
  .auth-aside { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 24px; }
  .auth-points { display: none; }
  .auth-card { padding: 28px 24px 32px; }
  .auth-row { grid-template-columns: 1fr; }
  .create-form { grid-template-columns: 1fr 1fr; }
  .quick-links, .foot-grid { grid-template-columns: 1fr; }
  .top { flex-direction: column; height: auto; padding: 12px 16px; align-items: flex-start; }
}
@media (max-width: 560px) {
  .stat-grid, .stats-row, .metrics-grid { grid-template-columns: 1fr; }
  .create-form { grid-template-columns: 1fr; }
  .create-form .span-2 { grid-column: span 1; }
  .page-head { flex-direction: column; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* —— Public download page —— */
.download-page { --dl-hero-bg: linear-gradient(165deg, color-mix(in oklch, var(--brand) 8%, var(--background)) 0%, var(--background) 55%); }
.download-main { padding-bottom: 0; }
body.download-page .hd-hero-copy h1 { max-width: 18ch; }
body.download-page .features-saas .wrap,
body.download-page .product-saas .wrap,
body.download-page .steps-saas .wrap { padding-top: 0; padding-bottom: 0; }

.dl-hero {
  padding: 48px 0 56px;
  background: var(--dl-hero-bg);
  border-bottom: 1px solid var(--border);
}
.dl-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.dl-hero-copy h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  margin: 8px 0 14px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.dl-hero-checks {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.dl-hero-checks li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--foreground);
}
.dl-hero-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: color-mix(in oklch, var(--brand) 18%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in oklch, var(--brand) 55%, transparent);
}
.dl-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 24px;
}
.dl-meta-os { font-size: 14px; color: var(--muted-foreground); }
.dl-meta-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.dl-hero-visual .hd-mock-frame {
  box-shadow: var(--shadow-elevated, 0 24px 48px color-mix(in oklch, var(--foreground) 12%, transparent));
  transform: translateY(4px);
}

.dl-section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.dl-highlights {
  padding: 48px 0;
}
.dl-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dl-highlight-card {
  padding: 22px 20px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.2s;
}
.dl-highlight-card:hover {
  border-color: color-mix(in oklch, var(--brand) 35%, var(--border));
  transform: translateY(-2px);
}
.dl-highlight-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: color-mix(in oklch, var(--brand) 12%, transparent);
  color: var(--brand);
}
.dl-highlight-ico .icon { width: 22px; height: 22px; }
.dl-highlight-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.dl-highlight-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.dl-downloads {
  padding: 40px 0 56px;
  background: color-mix(in oklch, var(--muted) 40%, var(--background));
}
.dl-downloads-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 32px;
  align-items: start;
}
.dl-downloads-lead { margin: -8px 0 20px; max-width: 52ch; }
.download-card-stack { display: grid; gap: 16px; }
.download-file-card {
  padding: 22px 24px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.download-file-card.is-featured {
  border-color: color-mix(in oklch, var(--brand) 40%, var(--border));
  background: linear-gradient(145deg, var(--card) 0%, color-mix(in oklch, var(--brand) 5%, var(--card)) 100%);
}
.download-file-card h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}
.download-file-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.download-file-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--brand) 14%, transparent);
  color: var(--brand);
}
.download-file-size {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-left: auto;
}
.dl-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.download-btn .icon { width: 18px; height: 18px; }
.dl-url-details {
  margin-top: 14px;
  font-size: 13px;
}
.dl-url-details summary {
  cursor: pointer;
  color: var(--muted-foreground);
  user-select: none;
}
.dl-url-details summary:hover { color: var(--brand); }
.download-url-hint {
  margin: 10px 0 0;
  word-break: break-all;
}
.download-url-hint code { font-size: 11px; }

.dl-sidebar { display: grid; gap: 16px; }
.dl-panel {
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.dl-panel h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
}
.dl-req-list,
.dl-inc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.dl-req-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 8px;
}
.dl-req-k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}
.dl-inc-list li {
  padding-left: 18px;
  position: relative;
  color: var(--muted-foreground);
}
.dl-inc-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
}

.dl-steps {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
}
.dl-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: none;
}
.dl-steps-list li {
  display: flex;
  gap: 16px;
  padding: 22px 20px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
}
.dl-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  color: var(--brand);
  background: color-mix(in oklch, var(--brand) 14%, transparent);
}
.dl-steps-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
.dl-steps-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.download-aside-band {
  padding: 44px 0 56px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--brand) 14%, transparent) 0%, color-mix(in oklch, var(--brand) 6%, transparent) 100%);
}
.dl-cta-band .download-aside-inner { align-items: center; }
.dl-cta-copy h2 { margin: 0 0 8px; font-size: 1.4rem; }
.dl-cta-actions { flex-wrap: wrap; }

.download-aside-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.download-aside-inner h2 { margin: 0 0 8px; font-size: 1.35rem; }
.download-slot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.download-slot:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.download-slot-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-foreground);
}
@media (max-width: 1024px) {
  .feature-grid.quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-hero-grid { grid-template-columns: 1fr; }
  .dl-hero-visual { max-width: 520px; }
}
@media (max-width: 860px) {
  .dl-downloads-grid { grid-template-columns: 1fr; }
  .dl-steps-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .dl-highlight-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
