:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --fg: #e8e6e1;
  --mut: #8a9088;
  --line: #1e2420;
  --accent: #c8f542;
  --accent-dim: #9bc02e;
  --bubble: #141816;
  --mine: #1a2218;
  --hook-bg: #121610;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(200, 245, 66, 0.07), transparent 55%),
    var(--bg);
  color: var(--fg);
  font: 16px/1.45 ui-sans-serif, system-ui, Segoe UI, sans-serif;
}
.shell {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 44rem;
  margin: 0 auto;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  color: inherit;
  font-size: 15px;
}
.brand-2 { color: var(--accent); }
.campaign-tag {
  flex: 1;
  text-align: center;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: lowercase;
  color: var(--mut);
  opacity: .85;
}
@media (max-width: 380px) {
  .campaign-tag { display: none; }
}
.top nav { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.top a { color: var(--mut); text-decoration: none; font-size: 13px; }
.top a:hover { color: var(--accent); }
.log {
  overflow: auto;
  padding: 20px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg.bot {
  background: var(--bubble);
  align-self: flex-start;
  border: 1px solid var(--line);
}
.msg.bot.hook {
  background: var(--hook-bg);
  border-color: rgba(200, 245, 66, 0.35);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.msg.me {
  background: var(--mine);
  align-self: flex-end;
  border: 1px solid rgba(200, 245, 66, 0.12);
}
.composer {
  display: flex;
  gap: 8px;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line);
}
.composer textarea {
  flex: 1;
  resize: none;
  min-height: 48px;
  max-height: 160px;
  background: #0d100e;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.composer textarea:focus {
  outline: none;
  border-color: rgba(200, 245, 66, 0.45);
}
.composer button {
  background: var(--accent);
  color: #0a0b0d;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}
.composer button:hover {
  background: var(--accent-dim);
}
.hint { color: var(--mut); font-size: 12px; padding: 0 16px 10px; }
