@font-face {
  font-family: Inter;
  src: url("/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0f1117;
  --elev: #161822;
  --card: #1c1e2a;
  --text: #eaeaf0;
  --muted: #9a9ab0;
  --faint: #6a6a82;
  --pink: #CB307A;
  --pink-ink: #f3b4d0;
  --teal: #3A9B9C;
  --teal-ink: #b7e4e4;
  --gold: #f5a623;
  --gold-ink: #f6d7a2;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 12px;
  --radius-lg: 16px;
  --side: 240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
h1, h2, .brand-name, .metric-value {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
}
body {
  font-family: Outfit, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
::selection { background: rgba(203, 48, 122, 0.35); }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.muted { color: var(--muted); }
.tiny { color: var(--faint); font-size: 12px; }
.kicker, .section-label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin: 0; }
h1 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
}
h2 { font-size: 16px; letter-spacing: -0.02em; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  font-weight: 600;
  color: var(--text);
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.brand-name { white-space: nowrap; letter-spacing: -0.02em; }
.brand em {
  font-style: normal;
  color: var(--pink);
  font-weight: 600;
}

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 8px 16px;
  background: rgba(15, 17, 23, 0.94);
  border-bottom: 1px solid var(--line);
}
.mode-public #chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 17, 23, 0.94);
  backdrop-filter: blur(16px);
}
.top-bar { display: contents; }
.mode-public .brand { order: 0; }
.mode-public .top-nav { order: 1; }
.mode-public .top-actions { order: 2; }
.top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}
.top-nav a, .side-nav a {
  color: var(--muted);
  border-radius: 10px;
  white-space: nowrap;
  flex: none;
}
.top-nav a {
  padding: 7px 10px;
  font-weight: 500;
}
.top-nav a.on, .top-nav a:hover { color: var(--text); background: var(--card); }
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
  position: static;
}

.mode-app #chrome {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--side);
  z-index: 30;
  background: var(--elev);
  border-right: 1px solid var(--line);
}
.mode-app #app {
  margin-left: var(--side);
  min-height: 100vh;
  padding: 18px 20px 48px;
}
.side-scroll {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 12px;
  gap: 4px;
  overflow: auto;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
}
.side-nav a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-weight: 500;
}
.side-nav a.on {
  color: var(--text);
  background: var(--card);
  box-shadow: inset 2px 0 0 var(--pink);
}
.side-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.side-spacer { flex: 1; }
.side-foot { display: flex; flex-direction: column; gap: 8px; }
.side-user strong { display: block; font-size: 13px; }
.side-user span {
  display: block;
  color: var(--faint);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.side-fuel {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--teal-ink);
  font-weight: 600;
  white-space: nowrap;
}
.side-fuel.low { color: var(--gold-ink); }
.side-fuel.bad { color: var(--pink-ink); }
.mode-app #logout { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 14px;
  background: var(--pink);
  color: white;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  position: static;
}
.btn:hover { background: #a82568; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover { background: var(--card); }
.btn.teal { background: var(--teal); color: #041416; }
.btn.teal:hover { filter: brightness(1.06); }
.btn.danger { color: var(--pink-ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.small { padding: 7px 10px; font-size: 13px; }
.row, .form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-actions { margin-top: 14px; }

#app { min-width: 0; }
.loading { color: var(--muted); padding: 28px 20px; }

.hero {
  position: relative;
  min-height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #0f1117;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 85% 8%, rgba(58, 155, 156, 0.2), transparent 58%),
    radial-gradient(720px 420px at 6% 92%, rgba(203, 48, 122, 0.16), transparent 55%),
    linear-gradient(165deg, #161822 0%, #0f1117 72%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 23, 0.78) 0%, rgba(15, 17, 23, 0.5) 42%, rgba(15, 17, 23, 0.92) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 64px 20px 28px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.08;
  max-width: 16ch;
  margin: 8px 0 12px;
}
.lede { color: var(--muted); font-size: 15px; max-width: 58ch; }
.hero .row { margin-top: 16px; }

.tape {
  position: relative;
  z-index: 1;
  display: flex;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: rgba(15, 17, 23, 0.78);
}
.tape-item {
  padding: 10px 16px 12px;
  min-width: max-content;
  border-right: 1px solid var(--line);
}
.tape-item .lbl {
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tape-item .val { font-weight: 600; font-size: 15px; margin-top: 2px; }
.flag { font-size: 11px; letter-spacing: 0.06em; margin-left: 6px; }
.flag.up, .up { color: var(--teal); }
.flag.down, .down { color: var(--pink); }

.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 8px 20px 56px; }
.section { margin-top: 28px; }
.section-head { margin-bottom: 12px; }
.section-head p { margin-top: 6px; }

.callout {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(58, 155, 156, 0.35);
  background: rgba(58, 155, 156, 0.08);
  max-width: 68ch;
}
.callout code { color: var(--teal-ink); }

.spec, .split, .desk-grid, .auth-grid, .fuel-grid {
  display: grid;
  gap: 14px;
}
.spec { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
.split { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.desk-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
.auth-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 460px);
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 32px 20px 64px;
  align-items: start;
}
.fuel-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }

.facts { display: grid; gap: 8px; }
.facts div, .kv {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.facts dt, .kv dt { color: var(--faint); font-size: 12px; font-weight: 600; }
.facts dd, .kv dd { margin: 0; }

.pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 12px 0 0;
}
.pipeline li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.step {
  color: var(--pink);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pipeline p { color: var(--muted); margin-top: 6px; font-size: 13px; }

.math {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}
.math-cell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 160px;
}
.math-cell strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.math-op {
  display: flex;
  align-items: center;
  color: var(--faint);
  font-size: 22px;
  padding: 0 2px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-width: 0;
}
.card h3 { margin-bottom: 4px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.stack { display: grid; gap: 10px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}
.metric-value {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.metric-value.warn { color: var(--gold); }
.metric-value.bad { color: var(--pink); }
.metric-sub { margin-top: 4px; }

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.page-head h1 { margin-top: 4px; }

.dom { display: grid; gap: 8px; margin-top: 10px; }
.dom-row {
  display: grid;
  grid-template-columns: 52px minmax(72px, 120px) minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
}
.dom-sym { font-weight: 600; }
.dom-name { color: var(--muted); overflow-wrap: anywhere; }
.dom-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.dom-bar { height: 100%; border-radius: 99px; background: var(--teal); width: 0; }
.dom-row:nth-child(3n + 1) .dom-bar { background: var(--pink); }
.dom-row:nth-child(3n) .dom-bar { background: var(--gold); }
.dom-pct { text-align: right; font-weight: 600; }

.sheet-wrap { overflow-x: auto; }
.sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sheet th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sheet td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.sheet td.wrap { white-space: normal; }
.sheet tr:hover td { background: rgba(255, 255, 255, 0.025); }
.sheet a { color: var(--teal-ink); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--elev);
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.pill.online, .pill.running, .pill.paid, .pill.ok, .pill.done {
  color: var(--teal-ink);
  background: rgba(58, 155, 156, 0.14);
  border-color: rgba(58, 155, 156, 0.35);
}
.pill.queued, .pill.pending {
  color: var(--gold-ink);
  background: rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.35);
}
.pill.out_of_fuel, .pill.error, .pill.failed {
  color: var(--pink-ink);
  background: rgba(203, 48, 122, 0.14);
  border-color: rgba(203, 48, 122, 0.4);
}
.pill.paused, .pill.draft, .pill.expired, .pill.unknown { color: var(--muted); }

.template {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  margin-bottom: 8px;
}
.template.on { border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.template strong { display: block; }
label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 6px;
}
input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--teal); }

.note, .error, .ok {
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0;
}
.note {
  background: rgba(245, 166, 35, 0.1);
  color: var(--gold-ink);
  border: 1px solid rgba(245, 166, 35, 0.28);
}
.error {
  background: rgba(203, 48, 122, 0.12);
  color: var(--pink-ink);
  border: 1px solid rgba(203, 48, 122, 0.28);
}
.ok {
  background: rgba(58, 155, 156, 0.12);
  color: var(--teal-ink);
  border: 1px solid rgba(58, 155, 156, 0.28);
}
.empty { color: var(--muted); }

.report {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: auto;
}

.fuel-head { display: flex; gap: 14px; align-items: center; }
.fuel-orb {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 35% 30%, rgba(234, 234, 240, 0.38), rgba(58, 155, 156, 0.28) 42%, rgba(15, 17, 23, 0.92) 74%),
    var(--elev);
}
.fuel-orb img { width: 100%; height: 100%; object-fit: cover; }
.pay-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.pay-amt { font-size: 18px; font-weight: 600; margin: 4px 0; }

.socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.socials .btn { width: 100%; }
.rule {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 12px;
  margin: 16px 0 8px;
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.foot p { margin-top: 6px; max-width: 52ch; }
.foot a { color: var(--pink); }

.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.delta.pos { color: var(--teal-ink); }
.delta.neg { color: var(--pink-ink); }

@media (max-width: 800px) {
  .top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
  }
  .top-actions { flex: none; flex-wrap: nowrap; }
  .brand { flex: none; }
  .top-nav { width: 100%; }

  .mode-app #chrome {
    position: sticky;
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mode-app #app { margin-left: 0; padding: 14px 12px 40px; }
  .side-scroll {
    flex-direction: row;
    align-items: center;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 8px 10px;
  }
  .side-nav { flex-direction: row; margin-top: 0; gap: 4px; }
  .side-spacer { display: none; }
  .side-foot { flex-direction: row; align-items: center; }
  .side-user { display: flex; gap: 8px; align-items: baseline; }
  .side-user span { white-space: nowrap; overflow-wrap: normal; }
  .brand-name, .side-nav a, .side-fuel, .mode-app #logout { white-space: nowrap; }
  .mode-app #logout { width: auto; }

  .hero { min-height: 70vh; }
  .hero h1 { font-size: 32px; }
  .hero-copy { padding: 36px 14px 20px; }
  .wrap, .auth-grid { padding-left: 14px; padding-right: 14px; }
  .spec, .split, .desk-grid, .auth-grid, .fuel-grid, .pipeline, .metrics, .packs, .socials {
    grid-template-columns: 1fr;
  }
  .metrics { grid-template-columns: 1fr 1fr; }
  .facts div, .kv { grid-template-columns: 1fr; gap: 2px; }
  .dom-row { grid-template-columns: 48px minmax(0, 1fr) 64px; }
  .dom-name { display: none; }
  .page-head, .foot, .fuel-head { flex-direction: column; align-items: flex-start; }
  .form-actions .btn, .packs .btn { width: auto; }
}

.mode-app #app:has(.tmc-chat) { padding: 0; min-height: 100vh; }
.tmc-chat {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-left: 1px solid var(--line);
}
.tmc-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--elev);
  border-bottom: 1px solid var(--line);
}
.tmc-chat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(203, 48, 122, 0.16);
  color: transparent;
}
.tmc-chat-icon svg { width: 22px; height: 22px; }
.tmc-chat-icon svg path {
  stroke: url(#tmc-chat-grad);
}
.tmc-chat-head h2 {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}
.tmc-chat-head p { margin: 0; color: var(--faint); font-size: 13px; }
.tmc-chat-status { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-size: 12px; font-weight: 600; }
.tmc-chat-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block; }
.tmc-chat-stream {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tmc-welcome { margin: auto; text-align: center; max-width: 460px; padding: 24px 8px; }
.tmc-welcome-icon {
  width: 80px; height: 80px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(203, 48, 122, 0.16);
}
.tmc-welcome-icon svg { width: 36px; height: 36px; }
.tmc-welcome h3 { margin: 0 0 6px; font-family: Outfit, "Segoe UI", sans-serif; font-size: 20px; letter-spacing: 0; }
.tmc-welcome p { margin: 0 0 16px; color: var(--muted); }
.tmc-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tmc-chips button {
  padding: 7px 12px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}
.tmc-chips button:hover { border-color: #cb307a; color: #cb307a; background: rgba(203, 48, 122, 0.1); }
.tmc-turn { display: flex; flex-direction: column; gap: 8px; }
.tmc-bubble { max-width: min(560px, 90%); border-radius: 16px; padding: 12px 14px; }
.tmc-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2ebfb0 0%, #d72a72 100%);
  color: white;
  border-bottom-right-radius: 4px;
}
.tmc-bubble.ai {
  align-self: flex-start;
  background: var(--elev);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.tmc-bubble header { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.tmc-bubble.user header { color: rgba(255,255,255,0.82); }
.tmc-bubble.ai header { color: var(--faint); }
.tmc-bubble p { margin: 0; line-height: 1.6; white-space: pre-wrap; }
.tmc-chat-error { margin: 0 16px 8px; }
.tmc-chat-input {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  background: var(--elev);
  border-top: 1px solid var(--line);
}
.tmc-chat-input input {
  flex: 1;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.tmc-chat-input input:focus { outline: none; border-color: #cb307a; box-shadow: 0 0 0 3px rgba(203, 48, 122, 0.15); }
.tmc-chat-input button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; color: white; cursor: pointer;
  background: linear-gradient(135deg, #2ebfb0 0%, #d72a72 100%);
  display: grid; place-items: center;
}
.tmc-chat-input button:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 4px 15px rgba(203, 48, 122, 0.4); }
.tmc-chat-input button:disabled { opacity: 0.5; cursor: not-allowed; }
.tmc-chat-input svg { width: 16px; height: 16px; fill: none; stroke: white; stroke-width: 2; }

.mcp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mcp-card { padding: 0; overflow: hidden; }
.mcp-shot { width: 100%; aspect-ratio: 1; object-fit: cover; background: #12141c; }
.mcp-plain {
  display: grid; place-items: center;
  font-family: Fraunces, Georgia, serif;
  font-size: 42px; color: #eaeaf0;
  background:
    radial-gradient(120px 80px at 30% 20%, rgba(203, 48, 122, 0.35), transparent 70%),
    radial-gradient(140px 90px at 80% 80%, rgba(58, 155, 156, 0.28), transparent 70%),
    #12141c;
}
.mcp-body { padding: 14px; display: grid; gap: 8px; }
.mcp-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
@media (max-width: 800px) {
  .mcp-grid { grid-template-columns: 1fr; }
  .mcp-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
