:root {
  color-scheme: dark;
  --bg: #080A0E;
  --surface: #101319;
  --surface-2: #151922;
  --surface-3: #0c0f14;
  --line: rgba(245, 200, 66, 0.2);
  --muted: #9da5b4;
  --text: #f8fafc;
  --accent: #F5C842;
  --accent-rgb: 245, 200, 66;
  --accent-ink: #171203;
  --good: #22D45F;
  --warn: #ffca57;
  --bad: #ff5d6c;
  --info: #53d9ff;
  --radius: 8px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Syne", var(--font-ui);
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

body[data-accent="gold"] {
  --accent: #F5C842;
  --accent-rgb: 245, 200, 66;
  --accent-ink: #121006;
}

body[data-accent="cyan"] {
  --accent: #43d7ff;
  --accent-rgb: 67, 215, 255;
  --accent-ink: #031217;
}

body[data-accent="violet"] {
  --accent: #a984ff;
  --accent-rgb: 169, 132, 255;
  --accent-ink: #120a25;
}

body[data-accent="coral"] {
  --accent: #ff6f61;
  --accent-rgb: 255, 111, 97;
  --accent-ink: #210807;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.09) 0, transparent 22rem),
    linear-gradient(110deg, rgba(83, 217, 255, 0.06) 0, transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  letter-spacing: 0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.brand,
.auth-brand,
.stat-value {
  font-family: var(--font-display);
}

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

button {
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

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

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 238px minmax(0, 1fr);
}

body.auth-mode .app-shell {
  grid-template-columns: 1fr;
}

body.landing-mode .app-shell {
  display: block;
}

body.auth-mode .sidebar,
body.auth-mode .topbar,
body.landing-mode .sidebar,
body.landing-mode .topbar {
  display: none;
}

body.auth-mode .main {
  min-height: 100vh;
}

body.auth-mode .page,
body.landing-mode .page {
  min-height: 100vh;
  padding: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.18);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.1), transparent 16rem),
    rgba(8, 10, 14, 0.96);
  backdrop-filter: blur(18px);
  padding: 28px 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px 18px;
  font-size: 19px;
  color: #fff8df;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 30px;
  height: 26px;
  background: linear-gradient(135deg, #fff8db 0%, var(--accent) 100%);
  filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.35));
  clip-path: polygon(0 0, 74% 0, 100% 50%, 74% 100%, 0 100%);
}

.auth-screen {
  min-height: 100vh;
  background:
    linear-gradient(rgba(245, 200, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 200, 66, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(245, 200, 66, 0.16), transparent 28rem),
    var(--bg);
  background-size: 46px 46px, 46px 46px, auto, auto;
  padding: 112px 22px 38px;
}

.auth-layout {
  display: grid;
  width: min(1120px, 100%);
  min-height: calc(100vh - 150px);
  align-items: center;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 462px);
  margin: 0 auto;
}

.auth-card {
  width: 100%;
  border: 1px solid rgba(var(--accent-rgb), 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    linear-gradient(150deg, #18150f, #0b0d0d 62%, rgba(var(--accent-rgb), 0.18));
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-showcase {
  max-width: 620px;
}

.auth-showcase h1 {
  margin: 14px 0 14px;
  font-size: 72px;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.auth-showcase p {
  max-width: 560px;
  color: #b9c0cc;
  font-size: 18px;
  line-height: 1.6;
}

.auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.auth-metrics div,
.hero-stats div {
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.auth-metrics strong,
.hero-stats strong {
  display: block;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
}

.auth-metrics span,
.hero-stats span {
  color: var(--muted);
  font-size: 12px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 900;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #d6dbe5;
  font-size: 13px;
  font-weight: 850;
}

.auth-submit,
.auth-google {
  width: 100%;
  margin-top: 4px;
}

.auth-google {
  margin-top: 12px;
}

.auth-switch,
.auth-hint,
.auth-alert {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-switch a {
  color: #ffffff;
  font-weight: 850;
}

.auth-alert {
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: var(--radius);
  background: rgba(var(--accent-rgb), 0.1);
  color: #ffe4a6;
  padding: 10px 12px;
}

.auth-success {
  margin-top: 16px;
  border: 1px solid rgba(34, 212, 95, 0.42);
  border-radius: var(--radius);
  background: rgba(34, 212, 95, 0.1);
  color: #b9ffd1;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
}

.role-pill {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: var(--radius);
  background: rgba(var(--accent-rgb), 0.08);
  color: #fff2c2;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.role-pill[data-role="owner"] {
  color: #fff7dc;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.18), 0 0 22px rgba(var(--accent-rgb), 0.1);
}

.swatches {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.swatch {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.swatch.is-active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.5);
}

.swatch-gold {
  background: #F5C842;
}

.swatch-cyan {
  background: #43d7ff;
}

.swatch-violet {
  background: #8b5cf6;
}

.swatch-coral {
  background: #ff6f61;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
  padding-bottom: 18px;
}

.nav-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: #d7dde8;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 750;
}

.nav-link:hover,
.nav-link.is-active {
  border-color: rgba(var(--accent-rgb), 0.36);
  background: rgba(var(--accent-rgb), 0.12);
  color: #fff8dd;
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-link.is-active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.28), rgba(var(--accent-rgb), 0.1));
}

.nav-link svg,
.btn svg,
.icon-tile svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.14);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.07), transparent 42%),
    rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(18px);
  padding: 22px 30px;
}

.app-picker {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-picker span {
  color: #c0b38f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.86);
  color: var(--text);
  outline: none;
  padding: 11px 12px;
}

select:focus,
input:focus,
textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.9);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.app-picker select {
  width: min(290px, 48vw);
}

.page {
  padding: 26px 30px 64px;
}

body:not(.landing-mode):not(.auth-mode) .page > * {
  animation: fade-up 0.55s ease both;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.page-title h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}

.page-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: #fff8e5;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.btn:hover {
  border-color: rgba(var(--accent-rgb), 0.8);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.18);
}

.btn-light {
  border-color: rgba(var(--accent-rgb), 0.8);
  background: #fff8df;
  color: #161207;
}

.btn-danger {
  border-color: rgba(255, 92, 102, 0.4);
  color: #ffd7da;
}

.btn-icon {
  width: 36px;
  min-height: 36px;
  padding: 0;
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 14px;
}

.stat-card,
.panel,
.record-card {
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    linear-gradient(150deg, rgba(21, 25, 34, 0.96), rgba(16, 19, 25, 0.96) 65%, rgba(var(--accent-rgb), 0.08));
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover,
.panel:hover,
.record-card:hover,
.feature-card:hover,
.pricing-card:hover {
  border-color: rgba(var(--accent-rgb), 0.58);
  transform: translateY(-2px);
  box-shadow: 0 24px 78px rgba(0, 0, 0, 0.48);
}

.stat-card {
  min-height: 181px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.stat-card::after,
.record-card::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.icon-tile {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: var(--radius);
  background: rgba(var(--accent-rgb), 0.13);
  color: #fff1bd;
}

.stat-label {
  margin-top: 16px;
  color: #c7b98f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 6px;
  font-size: 31px;
  font-weight: 900;
}

.stat-note {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.15;
}

.spark {
  display: flex;
  height: 26px;
  align-items: end;
  gap: 6px;
  margin-top: 18px;
}

.spark span {
  width: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), 0.34));
}

.content-stack {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.panel {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

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

.panel h2,
.panel h3 {
  margin: 0;
}

.muted {
  color: var(--muted);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid rgba(245, 200, 66, 0.11);
  padding: 13px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #c6b98d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

td {
  color: #fffaf0;
  font-size: 14px;
}

.mono {
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid #3b3426;
  border-radius: 999px;
  padding: 0 10px;
  color: #dce7f6;
  font-size: 12px;
  font-weight: 850;
}

.pill-good {
  border-color: rgba(34, 212, 95, 0.45);
  background: rgba(34, 212, 95, 0.12);
  color: #b9ffd0;
}

.pill-warn {
  border-color: rgba(244, 182, 63, 0.45);
  background: rgba(244, 182, 63, 0.12);
  color: #ffe3a6;
}

.pill-bad {
  border-color: rgba(255, 92, 102, 0.45);
  background: rgba(255, 92, 102, 0.12);
  color: #ffd4d8;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.record-card {
  padding: 17px;
  position: relative;
  overflow: hidden;
}

.record-card h3 {
  margin: 0 0 7px;
}

.record-meta {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.kv strong {
  color: var(--text);
}

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

.form-grid label,
.form-full {
  display: grid;
  gap: 7px;
  color: #cbd5e4;
  font-size: 13px;
  font-weight: 800;
}

.form-full {
  grid-column: 1 / -1;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.code-shell {
  overflow: hidden;
  border: 1px solid #3a3323;
  border-radius: var(--radius);
  background: #050504;
}

.code-shell pre {
  overflow: auto;
  max-height: 480px;
  margin: 0;
  padding: 18px;
}

.code-shell code {
  color: #f4f8ff;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  border: 1px solid #3a3323;
  border-radius: 999px;
  background: #11100c;
  color: #d8cfbb;
  padding: 9px 14px;
  font-weight: 850;
}

.tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.empty {
  display: grid;
  min-height: 128px;
  place-items: center;
  border: 1px dashed rgba(var(--accent-rgb), 0.36);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-panel {
  display: grid;
  min-height: 360px;
  place-items: center;
}

.empty-hero {
  display: grid;
  max-width: 520px;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.empty-hero h2 {
  margin: 8px 0 0;
  font-size: 28px;
}

.empty-hero p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
  padding: 18px;
}

.modal {
  width: min(620px, 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent),
    #11100c;
  box-shadow: var(--shadow);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.modal-head {
  border-bottom: 1px solid #332d20;
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  padding: 18px;
}

.modal-actions {
  border-top: 1px solid #332d20;
  justify-content: flex-end;
}

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 10px;
}

.toast {
  max-width: 360px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: var(--radius);
  background: #15120d;
  box-shadow: var(--shadow);
  color: #fff;
  padding: 12px 14px;
  font-weight: 800;
}

.fade-up {
  animation: fade-up 0.7s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.marketing-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.72);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  padding: 0 14px 0 18px;
}

.marketing-nav .brand {
  padding: 0;
}

.marketing-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marketing-links a:not(.btn) {
  border-radius: var(--radius);
  color: #d7dde8;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.marketing-links a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff8dd;
}

.landing-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 12%, rgba(245, 200, 66, 0.18), transparent 30rem),
    radial-gradient(circle at 18% 18%, rgba(83, 217, 255, 0.1), transparent 24rem),
    var(--bg);
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: center;
  gap: 34px;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  padding: 140px max(24px, calc((100vw - 1180px) / 2)) 70px;
}

.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(245, 200, 66, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 200, 66, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  pointer-events: none;
}

.hero-copy,
.hero-preview,
.landing-section {
  position: relative;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 7px 10px;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 18px 0;
  font-size: 84px;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.hero-copy p {
  max-width: 650px;
  color: #b8c0ce;
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.hero-stats {
  display: grid;
  max-width: 650px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preview-shell {
  display: grid;
  min-height: 410px;
  overflow: hidden;
  grid-template-columns: 92px minmax(0, 1fr);
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(12, 15, 20, 0.9);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.5);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.15);
  background: rgba(8, 10, 14, 0.84);
  padding: 28px 22px;
}

.preview-sidebar span {
  height: 38px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.preview-sidebar span:first-child {
  background: rgba(var(--accent-rgb), 0.22);
}

.preview-main {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.preview-top,
.preview-code,
.showcase-list div {
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  font-family: "JetBrains Mono", monospace;
}

.preview-top strong,
.success {
  color: var(--good);
}

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

.preview-grid div {
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.025));
  padding: 18px;
}

.preview-grid small {
  display: block;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.preview-grid strong {
  display: block;
  margin-top: 10px;
  font-family: "Syne", sans-serif;
  font-size: 32px;
}

.preview-code,
.mini-terminal {
  font-family: "JetBrains Mono", monospace;
}

.preview-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.mini-terminal {
  max-width: 560px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.34);
  box-shadow: var(--shadow);
}

.mini-terminal > div {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
  padding: 12px;
}

.mini-terminal span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.mini-terminal pre {
  overflow: auto;
  margin: 0;
  color: #dfe7f5;
  font-size: 13px;
  line-height: 1.7;
  padding: 16px;
}

.landing-section {
  padding: 74px max(24px, calc((100vw - 1180px) / 2));
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 14px 0 0;
  font-size: 56px;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.feature-grid,
.pricing-grid {
  display: grid;
  gap: 16px;
}

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

.feature-card,
.pricing-card {
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(16, 19, 25, 0.84);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card h3,
.pricing-card h3 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.feature-card p,
.pricing-card p {
  color: var(--muted);
  line-height: 1.55;
}

.showcase-panel {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.showcase-list {
  display: grid;
  gap: 12px;
}

.showcase-list div {
  padding: 20px;
}

.showcase-list strong,
.showcase-list span {
  display: block;
}

.showcase-list span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

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

.pricing-card {
  position: relative;
}

.pricing-card.is-featured {
  border-color: rgba(var(--accent-rgb), 0.76);
  background:
    linear-gradient(160deg, rgba(var(--accent-rgb), 0.18), transparent 55%),
    rgba(16, 19, 25, 0.92);
  transform: translateY(-8px);
}

.pricing-card > strong {
  display: block;
  margin: 16px 0;
  font-family: "Syne", sans-serif;
  font-size: 44px;
}

.plan-note {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.13), transparent 55%),
    rgba(16, 19, 25, 0.72);
  padding: 26px;
}

.dashboard-hero h1 {
  margin: 14px 0 8px;
  font-size: 58px;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.dashboard-hero p {
  margin: 0;
  color: var(--muted);
}

.credentials-panel {
  overflow: visible;
}

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

.credential-grid label {
  display: grid;
  gap: 7px;
  color: #d6dbe5;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .grid-stats {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .hero-grid,
  .showcase-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    font-size: 68px;
  }

  .section-head h2 {
    font-size: 48px;
  }

  .dashboard-hero h1 {
    font-size: 50px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .app-picker {
    align-items: stretch;
    flex-direction: column;
  }

  .app-picker select {
    width: 100%;
  }

  .page {
    padding: 20px 16px 48px;
  }

  .grid-stats,
  .form-grid,
  .feature-grid,
  .pricing-grid,
  .credential-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .marketing-nav {
    top: 10px;
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .marketing-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .marketing-links a {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 168px;
  }

  .hero-stats,
  .auth-metrics,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-shell {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }

  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-showcase h1,
  .hero-copy h1 {
    font-size: 42px;
  }

  .page-title h1,
  .section-head h2,
  .dashboard-hero h1 {
    font-size: 36px;
  }
}

/* KernelAuth internal console design system */
:root {
  --gold: #F5C842;
  --gold-dim: rgba(245, 200, 66, 0.12);
  --gold-border: rgba(245, 200, 66, 0.18);
  --bg: #07090D;
  --surface: #0D1018;
  --surface2: #131720;
  --surface-2: var(--surface2);
  --surface-3: #090b10;
  --border: rgba(255, 255, 255, 0.06);
  --line: var(--border);
  --text: #E2E4EC;
  --muted: #5A6075;
  --muted2: #8891A8;
  --green: #1FD660;
  --good: #22D45F;
  --red: #FF4444;
  --bad: var(--red);
  --blue: #4F9FFF;
  --accent: var(--gold);
  --accent-rgb: 245, 200, 66;
  --accent-ink: #0A0800;
  --radius: 10px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Syne", var(--font-ui);
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

body:not(.auth-mode):not(.landing-mode) {
  background:
    radial-gradient(circle at 82% 8%, rgba(245, 200, 66, 0.11), transparent 24rem),
    linear-gradient(180deg, #090b11 0%, var(--bg) 22rem);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body:not(.auth-mode):not(.landing-mode) .nav-link,
body:not(.auth-mode):not(.landing-mode) .role-pill,
body:not(.auth-mode):not(.landing-mode) .btn,
body:not(.auth-mode):not(.landing-mode) .tab,
body:not(.auth-mode):not(.landing-mode) .pill,
body:not(.auth-mode):not(.landing-mode) input,
body:not(.auth-mode):not(.landing-mode) select,
body:not(.auth-mode):not(.landing-mode) textarea,
body:not(.auth-mode):not(.landing-mode) label,
body:not(.auth-mode):not(.landing-mode) table,
body:not(.auth-mode):not(.landing-mode) th,
body:not(.auth-mode):not(.landing-mode) td,
body:not(.auth-mode):not(.landing-mode) .modal {
  font-family: var(--font-ui);
  font-stretch: normal;
  letter-spacing: 0;
}

body:not(.auth-mode):not(.landing-mode) .app-shell {
  grid-template-columns: 238px minmax(0, 1fr);
}

body:not(.auth-mode):not(.landing-mode) .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 25;
  width: 238px;
  gap: 14px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.24);
  padding: 26px 10px 18px;
}

body:not(.auth-mode):not(.landing-mode) .brand {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0 8px 12px;
}

body:not(.auth-mode):not(.landing-mode) .brand-mark {
  background: linear-gradient(135deg, #fff6cf 0%, var(--gold) 100%);
  filter: drop-shadow(0 0 16px rgba(245, 200, 66, 0.28));
}

body:not(.auth-mode):not(.landing-mode) .role-pill {
  min-height: 34px;
  margin: 0 8px 4px;
  border: 0;
  border-radius: 8px;
  background: var(--surface2);
  color: var(--muted2);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--border);
}

body:not(.auth-mode):not(.landing-mode) .role-pill[data-role="owner"] {
  background: var(--gold);
  color: #0A0800;
  box-shadow: 0 2px 16px rgba(245, 200, 66, 0.22);
}

body:not(.auth-mode):not(.landing-mode) .swatches {
  display: none;
}

body:not(.auth-mode):not(.landing-mode) .nav-list {
  gap: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding: 4px 0 18px;
}

body:not(.auth-mode):not(.landing-mode) .nav-list::-webkit-scrollbar {
  width: 5px;
}

body:not(.auth-mode):not(.landing-mode) .nav-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.nav-section-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 14px 14px 6px;
  text-transform: uppercase;
}

body:not(.auth-mode):not(.landing-mode) .nav-link {
  min-height: 38px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--muted2);
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
  box-shadow: none;
}

body:not(.auth-mode):not(.landing-mode) .nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  transform: none;
  box-shadow: none;
}

body:not(.auth-mode):not(.landing-mode) .nav-link.is-active {
  border-left-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  box-shadow: none;
}

body:not(.auth-mode):not(.landing-mode) .nav-link.is-danger {
  color: var(--red);
}

body:not(.auth-mode):not(.landing-mode) .main {
  grid-column: 2;
  min-width: 0;
}

body:not(.auth-mode):not(.landing-mode) .topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 238px;
  z-index: 22;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 13, 0.85);
  backdrop-filter: blur(16px);
  padding: 9px 24px;
}

body:not(.auth-mode):not(.landing-mode) .app-picker {
  width: 100%;
  justify-content: flex-end;
  gap: 10px;
}

body:not(.auth-mode):not(.landing-mode) .app-picker span {
  color: var(--muted2);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

body:not(.auth-mode):not(.landing-mode) .app-picker select {
  width: min(270px, 34vw);
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
}

.top-create {
  min-height: 38px;
}

body:not(.auth-mode):not(.landing-mode) .page {
  padding: 86px 26px 58px;
}

body:not(.landing-mode):not(.auth-mode) .page > * {
  animation: page-reveal 0.25s ease both;
}

@keyframes page-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body:not(.auth-mode):not(.landing-mode) .page-head {
  margin-bottom: 22px;
}

.page-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 5px 8px;
  text-transform: uppercase;
}

body:not(.auth-mode):not(.landing-mode) .page-title h1 {
  font-family: var(--font-display);
  margin-top: 10px;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0;
}

body:not(.auth-mode):not(.landing-mode) .page-title p,
body:not(.auth-mode):not(.landing-mode) .muted {
  color: var(--muted2);
  font-size: 0.85rem;
}

body:not(.auth-mode):not(.landing-mode) .btn {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--muted2);
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

body:not(.auth-mode):not(.landing-mode) .btn:hover {
  border-color: var(--gold-border);
  color: var(--text);
  transform: translateY(-1px);
}

body:not(.auth-mode):not(.landing-mode) .btn-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #0A0800;
  box-shadow: 0 2px 16px rgba(245, 200, 66, 0.25);
}

body:not(.auth-mode):not(.landing-mode) .btn-primary:hover {
  box-shadow: 0 6px 26px rgba(245, 200, 66, 0.36);
}

body:not(.auth-mode):not(.landing-mode) .btn-danger {
  border-color: rgba(255, 68, 68, 0.2);
  background: rgba(255, 68, 68, 0.1);
  color: var(--red);
}

body:not(.auth-mode):not(.landing-mode) .btn-light {
  border-color: var(--gold-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

body:not(.auth-mode):not(.landing-mode) .grid-stats {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

body:not(.auth-mode):not(.landing-mode) .stat-card,
body:not(.auth-mode):not(.landing-mode) .panel,
body:not(.auth-mode):not(.landing-mode) .record-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: none;
  transition: all 0.25s ease;
}

body:not(.auth-mode):not(.landing-mode) .stat-card:hover,
body:not(.auth-mode):not(.landing-mode) .record-card:hover,
body:not(.auth-mode):not(.landing-mode) .panel:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

body:not(.auth-mode):not(.landing-mode) .stat-card {
  min-height: 152px;
  animation: page-reveal 0.25s ease both;
  animation-delay: var(--delay, 0ms);
  padding: 18px;
}

body:not(.auth-mode):not(.landing-mode) .stat-card::before,
body:not(.auth-mode):not(.landing-mode) .app-card::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

body:not(.auth-mode):not(.landing-mode) .app-card::before {
  top: 0;
  bottom: auto;
  height: 2px;
}

body:not(.auth-mode):not(.landing-mode) .stat-card:hover::before,
body:not(.auth-mode):not(.landing-mode) .app-card:hover::before {
  opacity: 1;
}

body:not(.auth-mode):not(.landing-mode) .icon-tile {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: var(--gold-dim);
  color: var(--gold);
}

body:not(.auth-mode):not(.landing-mode) .stat-label {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0;
}

body:not(.auth-mode):not(.landing-mode) .stat-value {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.9rem;
  font-weight: 600;
}

body:not(.auth-mode):not(.landing-mode) .stat-note {
  color: var(--muted2);
}

body:not(.auth-mode):not(.landing-mode) .spark span {
  background: linear-gradient(180deg, var(--gold), rgba(245, 200, 66, 0.22));
}

body:not(.auth-mode):not(.landing-mode) .panel {
  padding: 20px;
}

body:not(.auth-mode):not(.landing-mode) .panel-head {
  margin: -20px -20px 18px;
  border-bottom: 1px solid var(--border);
  padding: 18px 22px;
}

body:not(.auth-mode):not(.landing-mode) .record-card .panel-head {
  margin: -17px -17px 16px;
  padding: 16px 17px;
}

body:not(.auth-mode):not(.landing-mode) .panel h2,
body:not(.auth-mode):not(.landing-mode) .panel h3,
body:not(.auth-mode):not(.landing-mode) .record-card h3 {
  color: var(--text);
  font-weight: 700;
}

body:not(.auth-mode):not(.landing-mode) .table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}

body:not(.auth-mode):not(.landing-mode) table {
  min-width: 760px;
}

body:not(.auth-mode):not(.landing-mode) th,
body:not(.auth-mode):not(.landing-mode) td {
  border-bottom: 1px solid var(--border);
  padding: 13px 14px;
}

body:not(.auth-mode):not(.landing-mode) tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

body:not(.auth-mode):not(.landing-mode) th {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0;
}

body:not(.auth-mode):not(.landing-mode) td {
  color: var(--text);
}

body:not(.auth-mode):not(.landing-mode) .mono,
body:not(.auth-mode):not(.landing-mode) .kv strong {
  color: var(--muted2);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

body:not(.auth-mode):not(.landing-mode) .pill {
  min-height: 24px;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 0 9px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

body:not(.auth-mode):not(.landing-mode) .pill-good {
  background: rgba(31, 214, 96, 0.12);
  color: var(--green);
}

body:not(.auth-mode):not(.landing-mode) .pill-bad {
  background: rgba(255, 68, 68, 0.1);
  color: var(--red);
}

body:not(.auth-mode):not(.landing-mode) .pill-owner {
  background: var(--gold-dim);
  color: var(--gold);
}

body:not(.auth-mode):not(.landing-mode) .pill-default,
body:not(.auth-mode):not(.landing-mode) .pill-warn,
body:not(.auth-mode):not(.landing-mode) .pill:not(.pill-good):not(.pill-bad):not(.pill-owner) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted2);
}

body:not(.auth-mode):not(.landing-mode) select,
body:not(.auth-mode):not(.landing-mode) input,
body:not(.auth-mode):not(.landing-mode) textarea {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface2);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

body:not(.auth-mode):not(.landing-mode) select:focus,
body:not(.auth-mode):not(.landing-mode) input:focus,
body:not(.auth-mode):not(.landing-mode) textarea:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.12);
}

body:not(.auth-mode):not(.landing-mode) .form-grid label,
body:not(.auth-mode):not(.landing-mode) .form-full,
body:not(.auth-mode):not(.landing-mode) .credential-grid label,
body:not(.auth-mode):not(.landing-mode) .modal label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

body:not(.auth-mode):not(.landing-mode) .form-full.actions,
body:not(.auth-mode):not(.landing-mode) .card-footer,
body:not(.auth-mode):not(.landing-mode) .modal-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 16px;
}

body:not(.auth-mode):not(.landing-mode) .app-card {
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface2);
}

body:not(.auth-mode):not(.landing-mode) .mini-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not(.auth-mode):not(.landing-mode) .mini-stats .kv {
  display: grid;
  gap: 7px;
}

body:not(.auth-mode):not(.landing-mode) .pricing-plan {
  overflow: visible;
  min-height: 255px;
}

body:not(.auth-mode):not(.landing-mode) .pricing-plan:hover {
  transform: translateY(-3px);
}

body:not(.auth-mode):not(.landing-mode) .pricing-plan.is-current {
  border-color: var(--gold-border);
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 200, 66, 0.16), transparent 18rem),
    var(--surface);
  box-shadow: 0 0 40px rgba(245, 200, 66, 0.08);
}

.current-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  border-radius: 999px;
  background: var(--gold);
  color: #0A0800;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  text-transform: uppercase;
  transform: translateX(-50%);
}

body:not(.auth-mode):not(.landing-mode) .plan-features .kv {
  display: grid;
  align-items: center;
  grid-template-columns: 18px 1fr auto;
}

body:not(.auth-mode):not(.landing-mode) .plan-features svg {
  width: 14px;
  color: var(--gold);
}

body:not(.auth-mode):not(.landing-mode) .empty {
  min-height: 170px;
  gap: 8px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
  color: var(--muted2);
  padding: 24px;
}

body:not(.auth-mode):not(.landing-mode) .empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  background: var(--surface2);
  color: var(--gold);
  opacity: 0.5;
}

body:not(.auth-mode):not(.landing-mode) .empty strong {
  color: var(--muted2);
  font-weight: 700;
}

body:not(.auth-mode):not(.landing-mode) .empty span {
  color: var(--muted);
  font-size: 0.8rem;
}

body:not(.auth-mode):not(.landing-mode) .code-shell,
body:not(.auth-mode):not(.landing-mode) pre {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}

body:not(.auth-mode):not(.landing-mode) .code-shell code,
body:not(.auth-mode):not(.landing-mode) pre,
body:not(.auth-mode):not(.landing-mode) code {
  color: var(--text);
  font-family: var(--font-mono);
}

body:not(.auth-mode):not(.landing-mode) a[href^="http"],
body:not(.auth-mode):not(.landing-mode) .code-shell code .url {
  color: var(--blue);
}

body:not(.auth-mode):not(.landing-mode) .tabs {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

body:not(.auth-mode):not(.landing-mode) .tab {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--muted2);
}

body:not(.auth-mode):not(.landing-mode) .tab.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: #0A0800;
}

body:not(.auth-mode):not(.landing-mode) .modal {
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  background: var(--surface);
}

body:not(.auth-mode):not(.landing-mode) .modal-head {
  border-bottom: 1px solid var(--border);
}

body:not(.auth-mode):not(.landing-mode) .modal-head h2,
body:not(.auth-mode):not(.landing-mode) .panel h2,
body:not(.auth-mode):not(.landing-mode) .panel h3,
body:not(.auth-mode):not(.landing-mode) .record-card h3,
body:not(.auth-mode):not(.landing-mode) .empty strong {
  font-family: var(--font-display);
}

body:not(.auth-mode):not(.landing-mode) .modal-head h2 {
  font-size: 18px;
  font-weight: 700;
}

body:not(.auth-mode):not(.landing-mode) .modal-body {
  font-family: var(--font-ui);
}

body:not(.auth-mode):not(.landing-mode) .modal .btn,
body:not(.auth-mode):not(.landing-mode) .modal button {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
}

body:not(.auth-mode):not(.landing-mode) .dashboard-hero {
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(circle at 5% 0%, rgba(245, 200, 66, 0.14), transparent 20rem),
    var(--surface);
  box-shadow: none;
}

body:not(.auth-mode):not(.landing-mode) .dashboard-hero h1 {
  color: var(--text);
  font-size: 2.35rem;
}

body:not(.auth-mode):not(.landing-mode) .eyebrow {
  border-radius: 6px;
  background: var(--gold-dim);
  color: var(--gold);
}

@media (max-width: 1180px) {
  body:not(.auth-mode):not(.landing-mode) .grid-stats {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 820px) {
  body:not(.auth-mode):not(.landing-mode) .app-shell {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
  }

  body:not(.auth-mode):not(.landing-mode) .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 178px;
    height: 100vh;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    padding: 18px 8px 14px;
  }

  body:not(.auth-mode):not(.landing-mode) .topbar {
    position: fixed;
    left: 178px;
    min-height: auto;
    padding: 9px 16px;
  }

  body:not(.auth-mode):not(.landing-mode) .app-picker {
    align-items: center;
    flex-direction: row;
  }

  body:not(.auth-mode):not(.landing-mode) .app-picker select {
    width: min(210px, 42vw);
  }

  body:not(.auth-mode):not(.landing-mode) .page {
    padding: 76px 16px 48px;
  }

  body:not(.auth-mode):not(.landing-mode) .nav-list {
    display: flex;
    grid-template-columns: none;
  }

  .nav-section-label {
    grid-column: auto;
    padding: 12px 10px 5px;
    font-size: 9px;
  }

  body:not(.auth-mode):not(.landing-mode) .grid-stats,
  body:not(.auth-mode):not(.landing-mode) .mini-stats,
  body:not(.auth-mode):not(.landing-mode) .form-grid,
  body:not(.auth-mode):not(.landing-mode) .credential-grid {
    grid-template-columns: 1fr;
  }

  body:not(.auth-mode):not(.landing-mode) .dashboard-hero {
    align-items: stretch;
  }

  body:not(.auth-mode):not(.landing-mode) .brand {
    font-size: 14px;
    gap: 8px;
  }

  body:not(.auth-mode):not(.landing-mode) .brand-mark {
    width: 22px;
    height: 19px;
  }

  body:not(.auth-mode):not(.landing-mode) .nav-link {
    min-height: 34px;
    gap: 9px;
    font-size: 11px;
    padding: 0 8px;
  }

  body:not(.auth-mode):not(.landing-mode) .role-pill {
    min-height: 30px;
    font-size: 11px;
    margin-inline: 6px;
  }

  body:not(.auth-mode):not(.landing-mode) .app-picker > span {
    display: none;
  }

  body:not(.auth-mode):not(.landing-mode) .top-create span {
    display: none;
  }
}
