#nara-chat-root { --nara-ink:#162b29; --nara-green:#174d43; --nara-border:#dce5df; font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--nara-ink); position:fixed; right:24px; bottom:24px; z-index:999990; text-align:left; }
#nara-chat-root *, #nara-chat-root *::before, #nara-chat-root *::after { box-sizing:border-box; }
#nara-chat-root [hidden] { display:none !important; }
#nara-chat-root button, #nara-chat-root textarea { font:inherit; letter-spacing:normal; text-transform:none; margin:0; }
#nara-chat-root button { cursor:pointer; border:0; min-height:44px; }
#nara-chat-root button:disabled { opacity:.6; cursor:wait; }
#nara-chat-root :focus-visible { outline:3px solid #b46b0b; outline-offset:3px; }
#nara-chat-root a { color:#17584c; text-decoration:underline; }
#nara-chat-root .nara-launcher { border-radius:30px; padding:14px 22px; color:white; background:var(--nara-green); box-shadow:0 6px 28px #102c2926; font-weight:600; }
#nara-chat-root .nara-panel { position:absolute; right:0; bottom:70px; width:390px; max-width:calc(100vw - 32px); height:610px; max-height:calc(100dvh - 125px); background:#fff; border:1px solid var(--nara-border); border-radius:22px; box-shadow:0 20px 80px #0a252c26; overflow:hidden; display:flex; flex-direction:column; }
#nara-chat-root .nara-header { display:flex; align-items:center; justify-content:space-between; padding:20px 22px; background:#f3f6f1; border-bottom:1px solid var(--nara-border); gap:12px; }
#nara-chat-root .nara-eyebrow { display:block; font-size:10px; font-weight:700; letter-spacing:1.8px; color:#49645b; }
#nara-chat-root h2 { color:var(--nara-ink); font:600 21px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; margin:3px 0 0; padding:0; }
#nara-chat-root .nara-icon { background:transparent; color:var(--nara-ink); font-size:28px; width:44px; padding:0; border-radius:50%; flex-shrink:0; }
#nara-chat-root .nara-log { padding:20px 16px; flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
#nara-chat-root .nara-intro { padding:4px 7px; }
#nara-chat-root h3 { font-size:24px; line-height:1.25; margin:4px 0 16px; color:var(--nara-ink); }
#nara-chat-root p { margin:0 0 12px; padding:0; color:inherit; }
#nara-chat-root .nara-muted { color:#54645f; font-size:13px; }
#nara-chat-root .nara-start { display:block; padding:11px 20px; border-radius:12px; background:var(--nara-green); color:#fff; margin-top:20px; font-weight:600; }
#nara-chat-root .nara-message { padding:12px 14px; margin:0 20px 14px 0; background:#f1f5f2; border:1px solid #e3eae5; border-radius:4px 16px 16px; overflow-wrap:anywhere; }
#nara-chat-root .nara-message p { white-space:pre-wrap; margin:0 0 12px; line-height:1.6; }
#nara-chat-root .nara-message p:last-child { margin-bottom:0; }
#nara-chat-root .nara-message ul, #nara-chat-root .nara-message ol { margin:4px 0 12px; padding-left:22px; line-height:1.6; }
#nara-chat-root .nara-message li { margin:0 0 8px; padding-left:2px; color:inherit; }
#nara-chat-root .nara-user p { margin:0; }
#nara-chat-root .nara-user { margin:0 0 14px 28px; border-radius:16px 4px 16px 16px; background:var(--nara-green); border-color:var(--nara-green); color:white; }
#nara-chat-root .nara-sources { margin-top:12px; padding-top:10px; border-top:1px solid #d5dfd8; font-size:12px; }
#nara-chat-root .nara-sources a, #nara-chat-root .nara-sources span { display:block; padding:4px 0; }
#nara-chat-root .nara-sources strong { display:block; font-size:11px; color:#52655a; }
#nara-chat-root .nara-contacts { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
#nara-chat-root .nara-contact-link { display:inline-flex; align-items:center; min-height:44px; padding:8px 11px; border:1px solid #9db8a9; border-radius:9px; background:white; font-size:13px; }
#nara-chat-root .nara-status { margin:0; padding:0 16px; font-size:12px; color:#52655a; }
#nara-chat-root .nara-status:not(:empty) { padding:8px 16px; }
#nara-chat-root .nara-form { display:flex; align-items:flex-end; gap:8px; border-top:1px solid var(--nara-border); padding:12px; background:#fff; }
#nara-chat-root textarea { resize:none; width:100%; min-height:54px; max-height:110px; padding:10px 12px; border:1px solid #abbcb3; border-radius:10px; background:#fff; color:var(--nara-ink); box-shadow:none; }
#nara-chat-root textarea::placeholder { color:#63776c; opacity:1; }
#nara-chat-root .nara-send { padding:10px 13px; border-radius:10px; color:#fff; background:var(--nara-green); }
#nara-chat-root .nara-footer { display:flex; justify-content:space-between; gap:8px; padding:0 12px 6px; background:#fff; }
#nara-chat-root .nara-text-button { color:#476259; padding:4px; background:transparent; text-decoration:underline; font-size:12px; border-radius:3px; }
#nara-chat-root .nara-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:480px) { #nara-chat-root { right:12px; bottom:12px; } #nara-chat-root .nara-panel { width:calc(100vw - 24px); max-width:none; bottom:65px; max-height:calc(100dvh - 100px); height:640px; border-radius:18px; } #nara-chat-root textarea { font-size:16px; } }
@media(prefers-reduced-motion:no-preference) { #nara-chat-root .nara-panel { animation:nara-appear .18s ease-out; } @keyframes nara-appear { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } } }
/* Conversation and contact flow, v0.2 */
#nara-chat-root .nara-panel { height:700px; width:410px; }
#nara-chat-root .nara-header { padding:16px 18px; }
#nara-chat-root .nara-header-actions { display:flex; align-items:center; gap:4px; }
#nara-chat-root .nara-sound { color:#36564a; background:transparent; padding:6px; font-size:11px; border-radius:6px; white-space:nowrap; }
#nara-chat-root .nara-screen { padding:20px; flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
#nara-chat-root .nara-screen .nara-intro { padding:0; }
#nara-chat-root .nara-field { margin:12px 0; }
#nara-chat-root .nara-field label, #nara-chat-root .nara-compose>label:not(.nara-check) { display:block; font-size:13px; font-weight:600; margin-bottom:5px; }
#nara-chat-root input:not([type=checkbox]), #nara-chat-root select { font:inherit; width:100%; min-height:44px; padding:9px 11px; color:var(--nara-ink); background:#fff; border:1px solid #abbcb3; border-radius:9px; box-shadow:none; }
#nara-chat-root .nara-check { display:flex; align-items:flex-start; gap:10px; margin:16px 0; padding:12px; border:1px solid var(--nara-border); border-radius:9px; font-size:12px; line-height:1.5; cursor:pointer; }
#nara-chat-root .nara-check input { appearance:auto; -webkit-appearance:checkbox; flex-shrink:0; width:18px; height:18px; margin:2px 0 0; accent-color:var(--nara-green); }
#nara-chat-root .nara-footer { flex-wrap:wrap; justify-content:flex-start; gap:0 12px; padding:0 12px 4px; }
#nara-chat-root .nara-compose textarea { max-height:none; min-height:180px; resize:vertical; font-size:14px; }
#nara-chat-root .nara-compose textarea[readonly] { background:#f4f7f3; }
#nara-chat-root .nara-compose .nara-start { margin-bottom:8px; }
#nara-chat-root .nara-sources summary, #nara-chat-root .nara-history-preview summary { cursor:pointer; min-height:36px; padding:6px 0; font-size:12px; font-weight:600; }
#nara-chat-root .nara-source-list { max-height:160px; overflow-y:auto; }
#nara-chat-root .nara-history-preview { border-top:1px solid var(--nara-border); margin:16px 0; }
#nara-chat-root .nara-history-preview pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:230px; overflow-y:auto; font-family:inherit; font-size:12px; line-height:1.5; background:#f3f6f1; padding:10px; color:var(--nara-ink); }
#nara-chat-root .nara-status { display:flex; align-items:center; gap:9px; }
#nara-chat-root .nara-thinking { display:inline-flex; gap:4px; flex-shrink:0; }
#nara-chat-root .nara-thinking i { width:6px; height:6px; background:var(--nara-green); border-radius:50%; animation:nara-thinking 1.1s infinite ease-in-out; }
#nara-chat-root .nara-thinking i:nth-child(2) { animation-delay:.16s; }
#nara-chat-root .nara-thinking i:nth-child(3) { animation-delay:.32s; }
#nara-chat-root .nara-honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
@keyframes nara-thinking { 0%,70%,100% { opacity:.35; transform:translateY(0); } 35% { opacity:1; transform:translateY(-4px); } }
@media(prefers-reduced-motion:reduce) { #nara-chat-root .nara-thinking i { animation:none; } }
@media(max-width:480px) { #nara-chat-root .nara-panel { width:calc(100vw - 24px); height:720px; } #nara-chat-root input:not([type=checkbox]), #nara-chat-root select { font-size:16px; } }

/* Compact introductory privacy information and an always-visible start action. */
#nara-chat-root .nara-privacy { margin:12px 0 4px; border-top:1px solid var(--nara-border); font-size:12px; }
#nara-chat-root .nara-privacy summary { cursor:pointer; min-height:44px; padding:12px 0; font-weight:600; line-height:1.5; }
#nara-chat-root .nara-privacy p { margin:4px 0 10px; }
#nara-chat-root .nara-privacy a { display:inline-block; padding:4px 0; }
#nara-chat-root .nara-intro-actions { flex-shrink:0; padding:10px 20px; border-top:1px solid var(--nara-border); background:white; }
#nara-chat-root .nara-intro-actions .nara-start { width:100%; margin:0; }

/* Clear confirmation after a visitor sends a request. */
#nara-chat-root .nara-mail-success { text-align:center; padding:18px 2px; }
#nara-chat-root .nara-success-icon { display:flex; align-items:center; justify-content:center; margin:0 auto 20px; width:64px; height:64px; border-radius:50%; background:#e4f3e9; color:#174d43; font-size:32px; font-weight:600; }
#nara-chat-root .nara-mail-success h3 { font-size:26px; line-height:1.2; margin-bottom:16px; }
#nara-chat-root .nara-success-email { display:block; padding:12px; border-radius:10px; background:#f0f6f2; color:#174d43; font-weight:600; overflow-wrap:anywhere; }
#nara-chat-root .nara-success-actions { display:flex; flex-direction:column; gap:10px; margin:24px 0 12px; }
#nara-chat-root .nara-success-actions .nara-start { margin:0; width:100%; }
#nara-chat-root .nara-secondary { width:100%; padding:11px 16px; border:1px solid #a9beb2; border-radius:12px; background:#fff; color:#174d43; font-weight:600; }
