:root {
  /* light theme — purple kept as the brand accent */
  --bg: #ffffff;
  --bg2: #f5f3fb;
  --card: #ffffff;
  --border: #e4dff2;
  --text: #1c1728;
  --muted: #5d5a6e;
  --accent: #7645d4;   /* TNT purple */
  --accent2: #6d28d9;  /* darker for text contrast on white */
  --green: #15803d;
  --red: #e11d48;
  --mono: 'SF Mono', 'Cascadia Code', Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; } /* safety net: nothing leaks past the right edge */
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}
/* flex/grid children must be able to shrink so wide content scrolls inside, not out */
.grid > *, .story-step > div, .chat-input input { min-width: 0; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* nav */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--mono); font-weight: 700; font-size: 22px; color: var(--text); }
.logo span { color: var(--accent); }
nav .links { display: flex; gap: 24px; align-items: center; }
nav .links a { color: var(--muted); font-size: 16px; font-weight: 500; }
nav .links a:hover { color: var(--text); text-decoration: none; }

/* language switcher */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.lang-btn:hover { border-color: var(--muted); color: var(--text); }
.lang-caret { font-size: 10px; opacity: 0.7; }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(28, 23, 40, 0.12); padding: 6px; min-width: 150px;
}
.lang-menu.open { display: block; }
.lang-item {
  display: block; width: 100%; text-align: left; background: transparent; border: none;
  padding: 8px 12px; font-size: 14px; color: var(--text); cursor: pointer; border-radius: 6px;
}
.lang-item:hover { background: var(--bg2); }
.lang-item.active { color: var(--accent2); font-weight: 600; }
nav .links a.btn-primary { padding: 11px 24px; font-size: 16px; }

/* buttons */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
  transition: transform 0.1s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn-primary:hover { box-shadow: 0 4px 24px rgba(118, 69, 212, 0.4); text-decoration: none; color: #fff; }
nav .links a.btn-primary, nav .links a.btn-primary:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--muted); text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 14px; }
.btn-danger { background: transparent; color: var(--red); border: 1px solid rgba(225, 29, 72, 0.4); }

/* hero */
.hero { padding: 72px 0 64px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center; text-align: left;
}
.hero-copy { text-align: left; }
.hero h1 { font-size: 50px; line-height: 1.08; font-weight: 800; letter-spacing: -1.5px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.hero p.sub { margin: 20px auto 0; max-width: 640px; color: var(--muted); font-size: 20px; }
.hero-visual {
  margin: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 12px;
  box-shadow: 0 24px 70px rgba(118, 69, 212, 0.18);
}
.hero-visual img { width: 100%; height: auto; display: block; border-radius: 14px; }
.hero-visual figcaption {
  margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5;
  display: flex; flex-direction: column; gap: 3px; padding: 0 6px 4px;
}
.hero-visual figcaption a { color: var(--accent2); text-decoration: none; font-size: 11.5px; }
.hero-visual figcaption a:hover { text-decoration: underline; }
/* full-width proof chart under the split */
.hero-chart {
  margin: 56px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 40px;
  align-items: center; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 40px;
  box-shadow: 0 16px 50px rgba(118, 69, 212, 0.12);
}
.chart-zoom {
  position: relative; padding: 0; border: none; background: none; cursor: zoom-in;
  border-radius: 8px; line-height: 0;
}
.chart-zoom img { height: 210px; width: auto; border-radius: 8px; transition: transform 0.15s ease; }
.chart-zoom:hover img { transform: scale(1.02); }
.chart-zoom-hint {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  background: rgba(28, 23, 40, 0.75); color: #fff; font-size: 11.5px;
  padding: 4px 12px; border-radius: 999px; opacity: 0; transition: opacity 0.15s;
  white-space: nowrap; pointer-events: none;
}
.chart-zoom:hover .chart-zoom-hint { opacity: 1; }
.hero-chart figcaption { font-size: 19px; color: var(--muted); line-height: 1.65; max-width: 560px; }
.hero-chart figcaption a { color: var(--accent2); font-size: 14px; }

/* lightbox — full-size chart viewer */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 13, 23, 0.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 32px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 900px); max-height: 92vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 20px;
  cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.hero-bullets {
  list-style: none; margin: 28px 0 0;
  display: flex; flex-direction: column; gap: 12px; text-align: left;
}
.hero-bullets li {
  position: relative; padding-left: 34px; font-size: 18px; color: var(--text);
}
.hero-bullets li::before {
  content: '▸'; position: absolute; left: 8px; top: 0;
  color: var(--accent2); font-size: 20px;
}
.hero-bullets b { color: var(--accent2); font-weight: 700; }
.hero .cta { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.badge-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.badge {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px;
}
.badge b { color: var(--green); font-weight: 600; }

/* GLM-5.2 "X" — we are better and cheaper */
.glm-x {
  margin: 24px 0 0;
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(225, 29, 72, 0.05); border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: 12px; padding: 10px 18px;
}
.glm-x-name {
  font-family: var(--mono); font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--muted); position: relative; white-space: nowrap;
}
.glm-x-mark {
  font-size: 26px; font-weight: 800; color: var(--red); line-height: 1;
  transform: rotate(-8deg);
}
.glm-x-copy { font-size: 14.5px; color: var(--muted); text-align: left; line-height: 1.45; }
.glm-x-copy b { color: var(--green); }

/* story steps */
.story { display: flex; flex-direction: column; gap: 28px; max-width: 860px; }
.story-step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px;
}
.story-n {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.story-step h3 { font-size: 20px; margin-bottom: 8px; }
.story-step p { color: var(--muted); font-size: 16px; }
.story-step b { color: var(--text); }

/* sections */
section { padding: 72px 0; }
section h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
section .lead { color: var(--muted); max-width: 720px; margin-bottom: 40px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  nav .container { height: 68px; }
  .logo { font-size: 20px; }
  nav .links { gap: 20px; }
  nav .links a { font-size: 15px; }
  nav .links a.btn-primary { padding: 9px 18px; font-size: 15px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .hero-chart { grid-template-columns: 1fr; text-align: center; padding: 24px; }
  .chart-zoom img { height: auto; max-height: 260px; margin: 0 auto; }
  .hero-chart figcaption { max-width: none; font-size: 16px; }
}
@media (max-width: 800px) {
  nav .links a.btn-primary { display: none; } /* CTA lives in the hero — keep the nav from wrapping */
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero h1 em { white-space: normal; }
  .hero-bullets li { font-size: 17px; }
  .glm-x { padding: 12px 14px; gap: 10px; }
  .glm-x-name { font-size: 18px; }
  .glm-x-mark { font-size: 22px; }
  .glm-x-copy { font-size: 13.5px; }
  .story-step { flex-direction: column; gap: 12px; padding: 20px; }
  .dash-main { padding: 20px 16px; }
  .dash-side { border-right: none; border-bottom: 1px solid var(--border); }
  .chat-input { flex-wrap: wrap; }
  .chat-input input { min-width: 0; width: 100%; }
  .chat-input .btn { width: 100%; }
  footer .container { flex-direction: column; text-align: center; }
  section { padding: 48px 0; }
  section h2 { font-size: 27px; }
}
@media (max-width: 560px) {
  nav .container { height: 60px; }
  .logo { font-size: 18px; }
  nav .links { gap: 12px; }
  nav .links a { font-size: 13px; }
  nav .links a.btn-primary { display: none; } /* keep the nav from wrapping on tiny screens */
  .hero h1 { font-size: 29px; }
  .container { padding: 0 16px; }
}

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  overflow-x: auto; /* wide tables/code scroll inside the card, never past the viewport */
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* pricing table */
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th {
  text-align: left; color: var(--muted); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.price-table td { padding: 16px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table tr:last-child td { border-bottom: none; }
.price-table .sku-name { font-weight: 700; font-size: 15px; }
.price-table .sku-price { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--accent2); white-space: nowrap; }
.price-table .sku-price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.hero-sku { position: relative; }
.hero-sku td { background: rgba(118, 69, 212, 0.08); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; margin-left: 8px; vertical-align: middle;
}
.tag-hero { background: rgba(118, 69, 212, 0.18); color: var(--accent2); }
.tag-note { background: rgba(93, 90, 110, 0.1); color: var(--muted); }

/* CTA bands — big conversion moments */
.cta-band { padding: 40px 0; }
.cta-band-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, rgba(118, 69, 212, 0.08), rgba(109, 40, 217, 0.14));
  border: 1px solid rgba(118, 69, 212, 0.25); border-radius: 20px;
  padding: 40px 48px;
}
.cta-band-alt .cta-band-grid {
  background: linear-gradient(135deg, rgba(118, 69, 212, 0.14), rgba(21, 128, 61, 0.08));
  border-color: rgba(118, 69, 212, 0.3);
}
.cta-band-copy h2 { font-size: 32px; margin-bottom: 10px; letter-spacing: -0.5px; }
.cta-band-copy p { color: var(--muted); font-size: 17px; margin-bottom: 22px; max-width: 480px; }
.cta-band-art { width: 100%; max-width: 320px; height: auto; justify-self: center; border-radius: 14px; }
.btn-lg { padding: 15px 34px; font-size: 18px; }

/* 3-step visual flow */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 8px 0 36px; }
.step-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px 24px; text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(118, 69, 212, 0.14); }
.step-card img { width: 100%; height: auto; border-radius: 10px; margin-bottom: 16px; }
.step-n {
  position: absolute; top: 30px; left: 30px; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(118, 69, 212, 0.4);
}
.step-card h3 { font-size: 18px; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* story closer art */
.story-art-wrap { margin-top: 36px; text-align: center; }
.story-art-wrap img {
  width: 100%; max-width: 640px; border-radius: 16px;
  border: 1px solid var(--border); box-shadow: 0 16px 48px rgba(118, 69, 212, 0.12);
}
.story-art-cap { margin-top: 14px; font-size: 14px; color: var(--muted); font-style: italic; }

/* features closer art */
.feat-art-wrap { margin-top: 36px; text-align: center; }
.feat-art-wrap img { width: 100%; max-width: 520px; border-radius: 16px; }

@media (max-width: 900px) {
  .cta-band-grid { grid-template-columns: 1fr; padding: 28px 24px; text-align: center; }
  .cta-band-copy p { margin-left: auto; margin-right: auto; }
  .cta-band-art { max-width: 240px; }
  .steps3 { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  nav .links a.btn-primary { display: none; } /* CTA lives in the hero — keep the nav from wrapping */
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 34px; }
  .hero-bullets li { font-size: 17px; }
  .glm-x { padding: 16px 18px; gap: 12px; }
  .glm-x-name { font-size: 32px; }
  .glm-x-mark { font-size: 38px; }
  .glm-x-copy { max-width: none; font-size: 15px; }
  .story-step { flex-direction: column; gap: 12px; padding: 20px; }
  .dash-main { padding: 20px 16px; }
  .dash-side { border-right: none; border-bottom: 1px solid var(--border); }
  .chat-input { flex-wrap: wrap; }
  .chat-input input { min-width: 0; width: 100%; }
  .chat-input .btn { width: 100%; }
  footer .container { flex-direction: column; text-align: center; }
  section { padding: 48px 0; }
  section h2 { font-size: 27px; }
}
@media (max-width: 560px) {
  nav .container { height: 60px; }
  .logo { font-size: 18px; }
  nav .links { gap: 12px; }
  nav .links a { font-size: 13px; }
  nav .links a.btn-primary { display: none; } /* keep the nav from wrapping on tiny screens */
  .hero h1 { font-size: 29px; }
  .container { padding: 0 16px; }
}

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  overflow-x: auto; /* wide tables/code scroll inside the card, never past the viewport */
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* quick-start page */
.qs-card {
  margin-top: 32px; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 32px; box-shadow: 0 12px 40px rgba(118, 69, 212, 0.10);
}
.qs-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.qs-step { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); }
.qs-n {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.qs-fine { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.qs-card .btn-lg { display: block; margin: 0 auto; }

/* code blocks */
pre {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.5;
}
code { font-family: var(--mono); font-size: 0.92em; }
.inline-code { background: var(--bg2); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--border); }

/* chat */
.chat-box { display: flex; flex-direction: column; height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 15px; white-space: pre-wrap; overflow-wrap: break-word; }
.chat-msg.user { align-self: flex-end; background: rgba(118, 69, 212, 0.18); border: 1px solid rgba(118, 69, 212, 0.4); }
.chat-msg.bot { align-self: flex-start; background: var(--bg2); border: 1px solid var(--border); }
/* markdown-rendered bot replies */
.chat-msg.md { white-space: normal; }
.chat-msg.md > p:first-child { margin-top: 0; }
.chat-msg.md > p:last-child { margin-bottom: 0; }
.chat-msg.md p { margin: 6px 0; }
.chat-msg.md h4 { font-size: 15px; margin: 10px 0 4px; }
.chat-msg.md ul { margin: 6px 0 6px 20px; padding: 0; }
.chat-msg.md li { margin: 3px 0; }
.chat-msg.md .md-code {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; margin: 8px 0; overflow-x: auto; font-family: var(--mono);
  font-size: 13px; line-height: 1.5; white-space: pre;
}
.chat-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input input {
  flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text); font-size: 15px;
}
.chat-input input:focus { outline: none; border-color: var(--accent); }

/* forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text); font-size: 15px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }

/* dashboard */
.dash-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 60px); }
@media (max-width: 800px) { .dash-layout { grid-template-columns: minmax(0, 1fr); } }
.dash-side { border-right: 1px solid var(--border); padding: 24px 16px; background: var(--bg2); min-width: 0; }
.dash-side a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.dash-side a.active, .dash-side a:hover { background: var(--card); color: var(--text); text-decoration: none; }
.dash-side.locked a { opacity: 0.45; pointer-events: none; }
.dash-main { padding: 32px; min-width: 0; }
.dash-main h2 { margin-bottom: 24px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 800px) { .stat-row { grid-template-columns: 1fr; } }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.stat .v { font-family: var(--mono); font-size: 26px; font-weight: 700; }
.stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.st-running { background: rgba(21, 128, 61, 0.12); color: var(--green); }
.st-stopped, .st-failed { background: rgba(225, 29, 72, 0.1); color: var(--red); }
.st-pending { background: rgba(118, 69, 212, 0.12); color: var(--accent2); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; color: var(--muted); font-size: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
table.data td { padding: 12px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 13px; }
.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 20px; font-size: 14px; z-index: 100;
  box-shadow: 0 8px 24px rgba(28, 23, 40, 0.12); display: none;
}
.toast.err { border-color: var(--red); }
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 15px; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��
   Dashboard-only dark theme.
   The public site stays light; the /dashboard page opts in by
   setting <body class="dashboard">. Only the CSS variables and the
   few hardcoded rgba values that the dashboard surfaces use are
   overridden here G�� everything else inherits from the light theme.
   G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G��G�� */
body.dashboard {
  --bg: #0f0d17;
  --bg2: #181523;
  --card: #1c1830;
  --border: #2e2842;
  --text: #ece9f5;
  --muted: #9b96b0;
  --accent: #9b6dff;   /* brighter purple for contrast on dark */
  --accent2: #b794ff;
  --green: #4ade80;
  --red: #fb7185;
}
/* nav: translucent dark instead of translucent white */
body.dashboard nav {
  background: rgba(15, 13, 23, 0.85);
  border-bottom-color: var(--border);
}
body.dashboard .logo { color: var(--text); }
body.dashboard nav .links a { color: var(--muted); }
body.dashboard nav .links a:hover { color: var(--text); }
/* language menu dropdown sits on dark */
body.dashboard .lang-menu {
  background: var(--card); border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
body.dashboard .lang-item { color: var(--text); }
body.dashboard .lang-item:hover { background: var(--bg2); }
body.dashboard .lang-item.active { color: var(--accent2); }
/* sidebar */
body.dashboard .dash-side { background: var(--bg2); border-right-color: var(--border); }
body.dashboard .dash-side a { color: var(--muted); }
body.dashboard .dash-side a.active,
body.dashboard .dash-side a:hover { background: var(--card); color: var(--text); }
/* cards, stats, tables, toasts */
body.dashboard .card { background: var(--card); border-color: var(--border); }
body.dashboard .card p { color: var(--muted); }
body.dashboard .stat { background: var(--card); border-color: var(--border); }
body.dashboard .stat .k { color: var(--muted); }
body.dashboard table.data th { color: var(--muted); border-bottom-color: var(--border); }
body.dashboard table.data td { border-bottom-color: var(--border); }
body.dashboard .toast {
  background: var(--card); border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
/* forms + inputs */
body.dashboard .field input,
body.dashboard .field select {
  background: var(--bg2); color: var(--text); border-color: var(--border);
}
body.dashboard .field input:focus,
body.dashboard .field select:focus { border-color: var(--accent); }
body.dashboard .chat-input { border-top-color: var(--border); }
body.dashboard .chat-input input {
  background: var(--bg2); color: var(--text); border-color: var(--border);
}
body.dashboard .chat-input input:focus { border-color: var(--accent); }
/* chat bubbles */
body.dashboard .chat-msg.user {
  background: rgba(155, 109, 255, 0.22); border-color: rgba(155, 109, 255, 0.5);
}
body.dashboard .chat-msg.bot { background: var(--bg2); border-color: var(--border); }
/* status pills G�� brighter on dark */
body.dashboard .st-running { background: rgba(74, 222, 128, 0.16); color: var(--green); }
body.dashboard .st-stopped,
body.dashboard .st-failed { background: rgba(251, 113, 133, 0.14); color: var(--red); }
body.dashboard .st-pending { background: rgba(155, 109, 255, 0.18); color: var(--accent2); }
/* code blocks + inline code */
body.dashboard pre { background: var(--bg2); border-color: var(--border); }
body.dashboard .inline-code { background: var(--bg2); border-color: var(--border); }
body.dashboard .chat-msg.md .md-code { background: var(--bg2); border-color: var(--border); }
/* footer */
body.dashboard footer { border-top-color: var(--border); color: var(--muted); }
