:root{--font:"Noto Sans Devanagari", "Noto Sans Gujarati", "Noto Sans", Roboto, system-ui, sans-serif;--bg:#f6f7f9;--surface:#fff;--text:#1c1f24;--muted:#5d6470;--accent:#1f5fbf;--accent-text:#fff;--question-bg:#dce8fb;--error:#b3261e;--border:#d9dde3;font-family:var(--font);color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-size:18px;line-height:1.7}*,:before,:after{box-sizing:border-box}html,body{overscroll-behavior-y:contain;height:100%;margin:0}body{background:var(--bg)}#root{height:100dvh}button,textarea{font:inherit}.no-token{max-width:36rem;margin:0 auto;padding:2rem 1rem}.no-token section+section{border-top:1px solid var(--border);margin-top:1.5rem;padding-top:1.5rem}.no-token h1{margin:0 0 .5rem;font-size:1.2rem}.no-token p{margin:0}.no-token .note{color:var(--muted);margin-top:.5rem}.chat{flex-direction:column;max-width:48rem;height:100%;margin:0 auto;display:flex}.debug-bar{border-bottom:1px dashed var(--border);flex-wrap:wrap;justify-content:flex-end;gap:.5rem;padding:.25rem 1rem;display:flex}.claims-debug{flex-basis:100%;margin:0;font:.75rem/1.4 ui-monospace,SFMono-Regular,Menlo,monospace}.scroll-debug{z-index:1000;pointer-events:none;border-bottom:1px dashed var(--error);overflow-wrap:anywhere;background:#ffffffeb;max-height:75vh;padding:.25rem .5rem;font:.62rem/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;position:fixed;top:0;left:0;right:0;overflow:hidden}.debug-scroll .scroll-thumb{outline:1px dashed var(--error);background:#b3261e1f}.claims-debug div{gap:.5rem;display:flex}.claims-debug dt{min-width:8.5rem;color:var(--muted)}.claims-debug dd{overflow-wrap:anywhere;margin:0}.intro{background:linear-gradient(135deg,#e8f0fd 0%,#f3f7fe 100%);border:1px solid #c9daf6;border-radius:1rem;margin-bottom:1.25rem;padding:1rem 1.125rem}.intro-greeting{color:var(--accent);margin:0;font-size:1.35rem;font-weight:700}.intro-welcome{margin:.25rem 0 0;font-weight:600}.intro-what{color:var(--muted);margin:.5rem 0 0}.mic-probe{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:999px;padding:.25rem .75rem;font-size:.8rem}.mic-granted{color:#2e7d32;border-color:#2e7d32}.mic-denied,.mic-unavailable{border-color:var(--error);color:var(--error)}.turns{overscroll-behavior:contain;flex:1;padding:1rem;overflow-y:auto}.turn+.turn{margin-top:1.25rem}.question,.answer,.error,.waiting{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.question{background:var(--question-bg);border-radius:1rem 1rem .25rem;width:fit-content;max-width:85%;margin-left:auto;padding:.5rem .875rem}.answer-card{background:var(--surface);border:1px solid var(--border);border-radius:1rem;margin-top:.5rem;padding:.75rem 1rem}.attribution{color:var(--muted);margin:0 0 .5rem;font-size:.8rem}.waiting{color:var(--muted)}.error{color:var(--error)}.answer+.error{margin-top:.5rem}.composer{padding:.5rem 1rem calc(.5rem + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);gap:.5rem;display:flex;position:relative}.scrollable-textarea{flex:1;min-width:0;display:flex;position:relative}.composer textarea{resize:none;scrollbar-width:none;overscroll-behavior:contain;border:1px solid var(--border);background:var(--bg);min-width:0;height:calc(5.2rem + 2px);color:var(--text);border-radius:.75rem;flex:1;padding:.5rem 40px .5rem .75rem;font-size:1rem;line-height:1.4;overflow-y:auto}.composer textarea::-webkit-scrollbar{display:none}.scroll-thumb{touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;width:44px;position:absolute;right:-8px}.scroll-thumb:before{content:"";background:var(--muted);border-radius:3px;width:6px;position:absolute;top:8px;bottom:8px;right:13px}.scroll-thumb.is-grabbed{background:#1f5fbf2e;border-radius:.5rem}.scroll-thumb.is-grabbed:before{background:var(--accent)}.composer button{background:var(--accent);min-height:2.75rem;color:var(--accent-text);border:0;border-radius:.75rem;align-self:center;padding:0 1.25rem;font-weight:600}.composer button:disabled{opacity:.5}.mic{align-self:center;display:flex}.composer .mic-button{border:1px solid var(--border);background:var(--surface);width:44px;height:44px;min-height:0;color:var(--accent);border-radius:50%;place-items:center;padding:0;display:grid}.composer .mic-button:disabled{opacity:1;color:var(--muted)}.composer .mic-button-recording{background:var(--error);border-color:var(--error);color:var(--accent-text);animation:1.2s ease-in-out infinite mic-pulse}@keyframes mic-pulse{50%{box-shadow:0 0 0 6px #b3261e40}}@media (prefers-reduced-motion:reduce){.composer .mic-button-recording{animation:none}}.mic-status{z-index:1;white-space:nowrap;background:var(--text);color:var(--surface);border-radius:.5rem;padding:.25rem .6rem;font-size:.85rem;position:absolute;bottom:calc(100% + .25rem);left:1rem}.notice{background:var(--question-bg);color:var(--text);margin:0;padding:.5rem 1rem;font-size:.9rem}.composer .mute-button{border:1px solid var(--border);background:var(--surface);width:44px;height:44px;min-height:0;color:var(--accent);border-radius:50%;align-self:center;place-items:center;padding:0;display:grid}.composer .mute-button[aria-pressed=true]{color:var(--muted)}.answer-speech{gap:.5rem;margin-top:.5rem;display:flex}.speech-button{border:1px solid var(--border);background:var(--surface);width:40px;height:40px;color:var(--accent);cursor:pointer;border-radius:50%;place-items:center;padding:0;display:grid}
