:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:#173126;
  background:#eef3ee;
  font-synthesis:none;
}
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:linear-gradient(180deg,#eff5f0 0%,#f7f5ee 100%); }
button, textarea { font:inherit; }
button { cursor:pointer; }
.shell { width:min(980px,calc(100% - 32px)); margin:0 auto; padding:40px 0 64px; }
.brandbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:38px; }
.brand { display:flex; gap:12px; align-items:center; font-weight:800; letter-spacing:.08em; }
.brand-dot { width:14px; height:14px; border-radius:50%; background:#6f9b2d; box-shadow:0 0 0 7px #dce8d2; }
.status-pill { padding:8px 12px; border:1px solid #cedbd0; border-radius:999px; font-size:.78rem; color:#607066; background:#ffffffb8; }
.hero { max-width:760px; margin-bottom:24px; }
.eyebrow { margin:0 0 12px; font-size:.75rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:#628c2d; }
.hero h1 { margin:0; max-width:760px; font-size:clamp(2.4rem,6vw,5rem); line-height:.98; letter-spacing:-.045em; }
.hero-copy { max-width:680px; margin:20px 0 0; font-size:1.04rem; line-height:1.65; color:#53655a; }
.surface { margin-top:28px; background:#fff; border:1px solid #dfe7df; border-radius:28px; box-shadow:0 20px 70px rgba(27,55,42,.09); overflow:hidden; }
#app { padding:32px; }
.start-wrap { display:flex; flex-direction:column; gap:18px; align-items:flex-start; }
.primary-button, .send-button { border:0; border-radius:14px; padding:14px 20px; background:#173a2c; color:#fff; font-weight:800; }
.primary-button:hover, .send-button:hover { background:#0f2c21; }
.question-panel { display:grid; gap:22px; }
.question-top { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.meta { margin:0; color:#708077; font-size:.84rem; line-height:1.45; }
.azim { color:#648f2e; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.question-title { margin:0; max-width:760px; font-size:clamp(1.65rem,3vw,2.55rem); line-height:1.14; letter-spacing:-.025em; }
.ghost-button, .voice-button { border:1px solid #cfdbd1; border-radius:12px; padding:10px 13px; background:#f8faf8; color:#274438; font-weight:700; }
.ghost-button:hover, .voice-button:hover { background:#eff5f0; }
.history { border:1px solid #e2e8e2; border-radius:16px; background:#fafcf9; }
.history summary { padding:13px 15px; cursor:pointer; font-weight:700; color:#52645a; }
.history-list { padding:0 15px 15px; display:grid; gap:10px; }
.history-item { padding:12px 14px; border-radius:12px; background:#fff; border:1px solid #e7ece7; }
.history-kicker { display:block; color:#6b7a71; font-size:.74rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.history-question { margin:7px 0 4px; font-weight:700; line-height:1.45; }
.history-answer { margin:0; color:#506158; line-height:1.55; }
.composer { padding:20px; border-radius:20px; background:#f4f7f3; border:1px solid #dbe5dc; }
.answer-label { display:block; margin-bottom:10px; font-size:.82rem; font-weight:800; color:#42574b; text-transform:uppercase; letter-spacing:.06em; }
textarea { display:block; width:100%; min-height:150px; resize:vertical; padding:17px 18px; border:1px solid #bac9bd; border-radius:16px; background:#fff; color:#173126; line-height:1.55; outline:none; }
textarea:focus { border-color:#5f8d36; box-shadow:0 0 0 4px rgba(95,141,54,.12); }
.composer .meta { margin-top:9px; }
.composer-actions { margin-top:16px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.send-button { margin-left:auto; }
.voice-status { color:#66776d; font-size:.82rem; }
button:disabled { cursor:not-allowed; opacity:.52; }
.error { margin-top:16px; padding:12px 14px; border-radius:12px; background:#fff0ed; color:#9d3328; border:1px solid #f2cbc5; }
.result-title { margin:0 0 20px; font-size:clamp(1.8rem,3vw,2.8rem); letter-spacing:-.03em; }
.result-card { padding:18px 20px; margin:12px 0; border:1px solid #e0e7e1; border-radius:18px; background:#fbfcfa; }
.result-card.highlight { background:#eef5e8; border-color:#cedec0; }
.result-label { display:block; margin-bottom:8px; color:#607066; font-size:.76rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.result-card p { margin:0; line-height:1.58; color:#2f493c; }
.confidence-note { margin:20px 0 8px; font-weight:700; color:#42574b; }
.result-note { margin-bottom:22px; }
.footer-note { margin-top:18px; max-width:720px; color:#6a796f; font-size:.78rem; line-height:1.5; }
@media (max-width:700px) {
  .shell { width:min(100% - 20px,980px); padding-top:20px; }
  .brandbar { margin-bottom:26px; }
  .status-pill { display:none; }
  .hero h1 { font-size:clamp(2.2rem,13vw,3.7rem); }
  .hero-copy { font-size:.98rem; }
  .surface { margin-top:22px; border-radius:20px; }
  #app { padding:20px; }
  .question-top { align-items:flex-start; }
  .question-title { font-size:1.65rem; }
  .composer { padding:15px; }
  .composer-actions { align-items:stretch; }
  .voice-button, .send-button { width:100%; margin-left:0; }
  .voice-status { width:100%; }
}
.question-voice-controls { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
@media (max-width:700px) {
  .question-voice-controls { width:100%; justify-content:flex-start; }
  .question-voice-controls .ghost-button { flex:1 1 180px; }
}

.voice-button.is-listening { background:#173a2c; border-color:#173a2c; color:#fff; box-shadow:0 0 0 4px rgba(23,58,44,.12); }

.owner-validation-banner{margin:0 auto 18px;padding:11px 14px;border:1px solid #dcc768;border-radius:12px;background:#fff6c9;color:#4f4307;font-size:12px;font-weight:800;line-height:1.45;letter-spacing:.035em;text-align:center}
