.neodialog{max-width:720px;margin:2rem auto;font-family:inherit;color:var(--nm-ui-text,#143548)}
.neodialog__shell{overflow:hidden;border:1px solid var(--nm-ui-border,#d7e1e5);border-radius:18px;background:var(--nm-ui-muted,#f5f8f8);box-shadow:var(--nm-shadow,0 12px 32px rgba(0,53,83,.14))}
.neodialog__website{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.neodialog__emergency{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 1.15rem;background:#fff0ee;color:#7a291f;font-size:.9rem;line-height:1.35}.neodialog__emergency a{flex:none;border-radius:6px;background:#b42318;color:#fff;padding:.45rem .6rem;font-weight:700;text-decoration:none}.neodialog__emergency a:hover,.neodialog__emergency a:focus{background:#8f1d14}
.neodialog__header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem 1.15rem;background:#0063a4;color:#fff;font-weight:700}.neodialog__progress{margin-left:auto;color:#d5efff;font-size:.8rem;font-weight:400}
.neodialog__reset{width:2rem;height:2rem;border:0;border-radius:50%;background:transparent;color:#fff;font:inherit;font-size:1.3rem;cursor:pointer}.neodialog__reset:hover,.neodialog__reset:focus{background:rgba(255,255,255,.16)}
.neodialog__transcript{box-sizing:border-box;display:flex;flex-direction:column;gap:.75rem;min-height:260px;max-height:min(56vh,560px);overflow-y:auto;padding:1.25rem;background:linear-gradient(135deg,var(--nm-ui-muted,#edf4f4),var(--nm-ui-surface,#f8fbf9));scroll-behavior:smooth}
.neodialog__message{display:flex;width:100%;transition:opacity .25s ease,transform .25s ease}.neodialog__message--enter{opacity:0;transform:translateY(9px)}
.neodialog__message--question,.neodialog__message--result,.neodialog__message--system,.neodialog__message--typing{justify-content:flex-start}.neodialog__message--answer{justify-content:flex-end}
.neodialog__bubble{max-width:min(82%,530px);padding:.8rem 1rem;border-radius:1.05rem;line-height:1.45;box-shadow:0 1px 1px rgba(0,0,0,.06)}
.neodialog__message--question .neodialog__bubble{border-bottom-left-radius:.25rem;background:var(--nm-ui-surface,#fff);color:var(--nm-ui-text,#143548)}.neodialog__message--answer .neodialog__bubble{border-bottom-right-radius:.25rem;background:#d9f7d5;color:#173d22}.neodialog__message--action .neodialog__bubble{background:#fff0c7;color:#604500}.neodialog__message--result .neodialog__bubble{border-bottom-left-radius:.25rem;background:var(--nm-ui-accent-soft,#e1eff8);color:var(--nm-ui-text,#143548)}.neodialog__message--system .neodialog__bubble{background:#fff0ee;color:#8a281e}
.neodialog__message--typing .neodialog__bubble{display:flex;gap:.25rem;align-items:center;border-bottom-left-radius:.25rem;background:var(--nm-ui-surface,#fff)}.neodialog__message--typing i{width:.42rem;height:.42rem;border-radius:50%;background:var(--nm-ui-text-muted,#6c838b);animation:neodialog-typing 1.05s infinite ease-in-out}.neodialog__message--typing i:nth-child(2){animation-delay:.14s}.neodialog__message--typing i:nth-child(3){animation-delay:.28s}@keyframes neodialog-typing{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-.2rem)}}
.neodialog__composer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.65rem;min-height:0;padding:1rem 1.15rem;background:var(--nm-ui-surface,#fff);border-top:1px solid var(--nm-ui-border,#dfe8e9)}.neodialog__composer--enter>*{animation:neodialog-reveal .32s ease both}@keyframes neodialog-reveal{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
.neodialog button{font:inherit;cursor:pointer}.neodialog__choices{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.55rem}.neodialog__choice,.neodialog__restart{border:0;border-radius:1rem;border-bottom-right-radius:.3rem;background:#d9f7d5;color:#173d22;padding:.7rem .95rem;font-weight:700}.neodialog__choice--action{background:#fff0c7;color:#604500}
.neodialog__input-form{display:flex;align-items:flex-end;gap:.55rem;width:min(100%,560px)}.neodialog__input{box-sizing:border-box;flex:1;min-width:0;border:1px solid var(--nm-ui-border,#b7c7c9);border-radius:1rem;padding:.7rem .9rem;background:var(--nm-ui-surface,#fff);color:var(--nm-ui-text,#143548);font:inherit;resize:vertical}.neodialog__back{align-self:center;border:0;background:transparent;color:var(--nm-ui-accent,#0063a4);padding:.45rem;font-weight:600;text-decoration:underline}.neodialog__back:hover,.neodialog__back:focus{filter:brightness(.85)}.neodialog__footer{background:var(--nm-ui-surface,#fff)}.neodialog__help{display:inline-block;margin:.7rem 1.15rem 0;color:var(--nm-ui-accent,#0063a4);font-size:.9rem;font-weight:700}.neodialog__privacy{margin:0;padding:.75rem 1.15rem;background:var(--nm-ui-surface,#fff);color:var(--nm-ui-text-muted,#526872);font-size:.8rem;line-height:1.4}.neodialog__error{color:#a00}
@media (prefers-reduced-motion:reduce){.neodialog__message,.neodialog__composer--enter>*,.neodialog__message--typing i{animation:none;transition:none}}
@media (max-width:540px){.neodialog{margin:1.25rem 0}.neodialog__emergency{align-items:flex-start;flex-direction:column;gap:.5rem}.neodialog__transcript{min-height:220px;max-height:55vh;padding:1rem}.neodialog__bubble{max-width:88%}.neodialog__composer{padding:.8rem}.neodialog__input-form{align-items:stretch;flex-direction:column}.neodialog__input-form .neodialog__choice{align-self:flex-end}.neodialog__choices{flex-direction:column;align-items:flex-end}.neodialog__choice{max-width:100%;text-align:right}}

.neodialog__context { padding:12px 20px; margin:0; border-bottom:1px solid currentColor; font-size:.9rem; }

/* Shared response feedback: choice, link/phone action, typed-answer submit and restart. */
.neodialog :is(.neodialog__choice,.neodialog__restart) {
 transition:box-shadow .18s ease, transform .18s ease;
}
.neodialog :is(.neodialog__choice,.neodialog__restart):focus-visible {
 outline:2px solid var(--nm-ui-text,#244e67); outline-offset:3px;
 box-shadow:inset 0 0 0 2px var(--nm-brand-petrol,#244e67);
}
@media(hover:hover) and (pointer:fine) {
 .neodialog :is(.neodialog__choice,.neodialog__restart):not(:disabled):not([aria-disabled="true"]):not([aria-pressed="true"]):not([aria-selected="true"]):not(.is-selected):hover {
  box-shadow:inset 0 0 0 2px var(--nm-brand-petrol,#244e67);
  transform:translateY(-2px);
 }
}
.neodialog :is(.neodialog__choice,.neodialog__restart):is(:disabled,[aria-disabled="true"]) { cursor:default; }
@media(prefers-reduced-motion:reduce) {
 .neodialog :is(.neodialog__choice,.neodialog__restart) { transition:none; transform:none !important; }
}
html.nm-reduced-motion .neodialog :is(.neodialog__choice,.neodialog__restart) { transition:none; transform:none !important; }

/* Directional speech: Neo/system left, user answers/actions right. */
.neodialog__bubble { position:relative; margin-left:7px; border-radius:1rem 1rem 1rem 0; }
.neodialog__bubble::after { content:""; position:absolute; bottom:0; left:-7px; width:8px; height:10px; background:inherit; clip-path:polygon(100% 0,0 100%,100% 100%); pointer-events:none; }
.neodialog__message--answer .neodialog__bubble { margin-left:0; margin-right:7px; border-radius:1rem 1rem 0 1rem; }
.neodialog__message--answer .neodialog__bubble::after { left:auto; right:-7px; clip-path:polygon(0 0,0 100%,100% 100%); }
.neodialog__choices { gap:.75rem; }
.neodialog__choices .neodialog__choice { position:relative; margin-right:7px; border-radius:1rem 1rem 0 1rem; }
.neodialog__choices .neodialog__choice::after { content:""; position:absolute; right:-7px; bottom:0; width:8px; height:10px; background:inherit; clip-path:polygon(0 0,0 100%,100% 100%); pointer-events:none; }
.neodialog__input-form .neodialog__choice,.neodialog__restart,.neodialog__back,.neodialog__emergency a { border-radius:0; }

.neodialog .neodialog__message .neodialog__bubble { border-radius:1rem 1rem 1rem 0; }
.neodialog .neodialog__message--answer .neodialog__bubble { border-radius:1rem 1rem 0 1rem; }
