:root {
  color-scheme: dark;
  --bg: #050805;
  --panel: #0b120c;
  --line: #203724;
  --green: #70ff7b;
  --green-soft: #b3ffb7;
  --text: #f1f5f1;
  --muted: #89968b;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font: 14px/1.6 var(--font); }
button, textarea { font: inherit; }
button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--green-soft); outline-offset: 3px; }
.topbar { position: absolute; inset: 0 0 auto; display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 48px); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 15px; font-weight: 750; letter-spacing: -.4px; text-decoration: none; }
.brand span span { color: var(--green); }
.brand-logo { width: 32px; height: 32px; border: 1px solid #335238; border-radius: 10px; object-fit: cover; }
.help-button { min-width: 58px; padding: 7px 13px; border: 1px solid #315337; border-radius: 99px; background: transparent; color: var(--green-soft); font-size: 12px; cursor: pointer; }
.help-button:hover { background: #102014; }
.main-panel { display: grid; min-height: 100vh; place-items: center; padding: 90px 20px 35px; }
.search-home { width: min(100%, 690px); text-align: center; }
.hero-logo { width: 88px; height: 88px; margin-bottom: 16px; border: 1px solid #335238; border-radius: 23px; object-fit: cover; box-shadow: 0 0 40px #70ff7b17; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 9px; font-weight: 750; letter-spacing: 1.5px; }
h1 { margin: 0; font-size: clamp(25px, 4vw, 34px); font-weight: 620; letter-spacing: -1.1px; }
.subtitle { margin: 8px 0 24px; color: var(--muted); font-size: 14px; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 8px; padding: 8px 9px 8px 20px; border: 1px solid #36583b; border-radius: 99px; background: var(--panel); box-shadow: 0 8px 40px #0008, 0 0 26px #70ff7b0b; transition: border-color .15s, box-shadow .15s; }
.search-form:focus-within { border-color: #70d87b; box-shadow: 0 0 0 3px #70ff7b10, 0 8px 40px #0008; }
.search-form textarea { width: 100%; min-height: 36px; max-height: 110px; resize: vertical; padding: 7px 0; border: 0; outline: 0; background: transparent; color: var(--text); line-height: 1.5; }
.search-form textarea::placeholder { color: #829084; }
.send-button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: var(--green); color: #071008; font-size: 20px; font-weight: 750; cursor: pointer; }
.send-button:hover { background: var(--green-soft); }
.privacy-note { margin: 10px 0 0; color: #6f7d71; font-size: 10px; }
.inference-choice { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: #c4d2c5; font-size: 11px; cursor: pointer; }
.inference-choice input { width: 15px; height: 15px; margin: 0; accent-color: var(--green); }
.inference-choice input:disabled + span { color: #68766a; cursor: not-allowed; }
.connection-status { min-height: 18px; margin: 5px 0 0; color: #7f8f81; font-size: 10px; }
.connection-status[data-state="ready"] { color: var(--green); }
.connection-status[data-state="error"] { color: #ff9a9a; }
.quick-starts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 23px; }
.quick-starts button { padding: 7px 12px; border: 1px solid #1f3322; border-radius: 99px; background: #090e0a; color: #bdc9bd; font-size: 11px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.quick-starts button:hover, .quick-starts button:focus-visible { border-color: #528a59; background: #0e180f; color: var(--green-soft); }
.answer-area { width: min(100%, 690px); align-self: start; padding: 48px 0 0; }
.answer-area[hidden] { display: none; }
.answer-question { margin-bottom: 20px; color: var(--muted); font-size: 12px; text-align: right; }
.answer-card { padding: clamp(17px, 4vw, 26px); border: 1px solid var(--line); border-radius: 13px; background: #0a100b; }
.answer-card h2 { margin: 0 0 8px; color: var(--green-soft); font-size: 20px; letter-spacing: -.3px; }
.answer-card p { margin: 0 0 14px; color: #c2cec3; }
.answer-card .answer-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-card ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: #d9e2d9; }
.answer-card li::marker { color: var(--green); }
.answer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.answer-links a { padding: 7px 10px; border: 1px solid #345c3b; border-radius: 7px; color: var(--green-soft); font-size: 11px; text-decoration: none; }
.answer-links a:hover { background: #102014; }
.answer-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px; margin-top: 15px; color: #728074; font-size: 10px; }
.answer-footer button { padding: 0; border: 0; background: none; color: var(--green-soft); font-size: 11px; cursor: pointer; }
.help-dialog { position: fixed; width: min(480px, calc(100vw - 28px)); max-height: min(80vh, 650px); padding: 25px; border: 1px solid #34583a; border-radius: 13px; background: #0a100b; color: var(--text); box-shadow: 0 20px 90px #000c; }
.help-dialog::backdrop { background: #000b; backdrop-filter: blur(3px); }
.help-dialog form { position: absolute; top: 13px; right: 13px; margin: 0; }
.close-button { width: 30px; height: 30px; border: 1px solid #293e2d; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.help-dialog h2 { max-width: 360px; margin: 0 0 12px; font-size: 24px; line-height: 1.2; letter-spacing: -.7px; }
.help-dialog p, .help-dialog li { color: #b9c5ba; font-size: 13px; }
.help-dialog ul { display: grid; gap: 7px; padding-left: 21px; }
.help-dialog li::marker { color: var(--green); }
.help-dialog strong { color: var(--green-soft); }
.help-dialog .help-privacy { padding-top: 11px; border-top: 1px solid var(--line); color: #829184; font-size: 11px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 520px) {
  .topbar { height: 62px; padding: 0 15px; }
  .main-panel { padding: 78px 17px 25px; }
  .hero-logo { width: 72px; height: 72px; margin-bottom: 13px; border-radius: 20px; }
  .subtitle { margin-bottom: 19px; }
  .search-form { grid-template-columns: minmax(0, 1fr) 36px; padding-left: 15px; }
  .send-button { width: 34px; height: 34px; }
  .inference-choice { font-size: 10px; }
  .quick-starts { gap: 6px; margin-top: 17px; }
  .quick-starts button { padding: 6px 10px; font-size: 10px; }
  .answer-area { padding-top: 30px; }
  .help-dialog { padding: 21px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
