/* WEB-046: Nodo Z voice controls; isolated premium widget and responsive layout. */
.nz-chat{--nz-line:#20d9ff;--nz-cyan:#0ce7fb;--nz-text:#edf8ff;position:fixed;inset:auto 0 0 auto;z-index:260;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--nz-text);font-size:13px;line-height:1.45;pointer-events:none}
.nz-chat *,.nz-chat *::before,.nz-chat *::after{box-sizing:border-box}
.nz-chat button,.nz-chat input{font:inherit}
.nz-chat button{cursor:pointer}
.nz-chat button:focus-visible,.nz-chat a:focus-visible,.nz-chat input:focus-visible{outline:3px solid #b2f8ff;outline-offset:3px}
/* Original WEB-034 avatar remains in WEB-035 topbar */
.nz-chat-launch{position:relative;display:flex;flex-direction:column-reverse;align-items:center;justify-content:center;gap:1px;flex:0 0 78px;min-width:78px;pointer-events:auto;z-index:1}
.nz-chat-launcher{width:53px;height:53px;position:relative;display:grid;place-items:center;padding:4px;border-radius:50%;border:2px solid #09d8ff;background:radial-gradient(circle at 50% 43%,#106aa3 0%,#02243f 69%);box-shadow:0 0 0 3px rgba(2,171,242,.12),0 0 17px rgba(0,182,255,.33),0 5px 15px rgba(0,0,0,.4);transition:transform .2s,box-shadow .2s}
.nz-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 0 0 6px rgba(2,171,242,.16),0 0 32px rgba(0,206,255,.6),0 9px 30px rgba(0,0,0,.5)}
.nz-chat-launcher img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
.nz-chat-nudge{padding:0;border:0;background:transparent;color:#cef6ff;font-size:9.5px;font-weight:750;white-space:nowrap;line-height:12px;text-align:center}
.nz-chat-nudge>span{display:none}
/* Strong two-tone halo for depth on the dark ZESIVO pages. */
.nz-chat-panel{position:fixed;top:96px;right:clamp(16px,2.4vw,41px);bottom:auto;width:min(440px,calc(100vw - 24px));height:min(685px,calc(100dvh - 110px));min-height:0;display:flex;flex-direction:column;overflow:hidden;border:2px solid #16dfff;border-radius:19px;background:linear-gradient(155deg,#071d34 0%,#07172d 44%,#050e22 100%);box-shadow:0 0 0 3px rgba(106,79,252,.38),0 0 0 6px rgba(10,202,250,.09),-10px 0 37px rgba(102,53,247,.31),0 0 48px rgba(0,198,255,.38),0 22px 50px rgba(0,0,0,.78);pointer-events:auto;color:#eaf8ff;z-index:2;transform-origin:top right;animation:nz-chat-drop .2s ease-out both;isolation:isolate}
.nz-chat-panel::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;background:linear-gradient(138deg,#37edff 0%,#178bfa 41%,#975cf6 73%,#2ddcff 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;z-index:8}
.nz-chat-panel[hidden]{display:none}
.nz-chat-head{display:flex;align-items:center;gap:11px;padding:13px 13px 12px 14px;min-height:91px;border-bottom:1px solid rgba(32,197,251,.54);background:linear-gradient(110deg,#142869 0%,#063765 55%,#062343 100%);box-shadow:inset 0 -7px 18px rgba(10,171,249,.14),0 5px 20px rgba(0,169,251,.22);flex:0 0 auto}
.nz-chat-head-avatar{flex:0 0 58px;width:58px;height:58px;object-fit:cover;border-radius:50%;border:2px solid #43dfff;box-shadow:0 0 0 3px rgba(56,87,247,.18),0 0 20px rgba(3,207,253,.53)}
.nz-chat-head-copy{display:flex;flex:1;flex-direction:column;min-width:0;gap:1px;line-height:1.25}
.nz-chat-head-copy strong{font-size:19px;color:#fff;font-weight:850}
.nz-chat-head-copy span{font-size:12px;color:#e4f5ff}
.nz-chat-head-copy small{font-size:10.5px;color:#b2cce7;display:flex;align-items:center;gap:6px;line-height:1.25}
.nz-chat-preview-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#e9bf53;box-shadow:0 0 8px rgba(233,191,83,.35)}
.nz-chat-head-button{width:31px;height:31px;border:0;border-radius:9px;background:transparent;color:#d9f3ff;display:grid;place-items:center;flex:0 0 31px}
.nz-chat-head-button:hover{background:rgba(4,195,249,.16);color:#fff}
/* WEB087: the blue minimize control preserves the conversation. */
.nz-chat-close{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;margin-left:auto;border:1px solid #53c5f1;border-radius:12px;background:linear-gradient(135deg,#145a86,#0b3557);color:#e6f8ff;transition:border-color .18s ease,background .18s ease,color .18s ease}
.nz-chat-close:hover{background:linear-gradient(135deg,#1c70a2,#104b74);border-color:#a0e8ff;color:#fff}
.nz-chat-close:focus-visible{outline:3px solid #b2f8ff;outline-offset:2px}
/* WEB085 · discreet amber restart control alongside speech and close */
.nz-chat-reset{flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid rgba(245,179,85,.45);border-radius:12px;color:#ffc07b;background:rgba(113,62,20,.14);transition:background .18s ease,color .18s ease,border-color .18s ease}
.nz-chat-reset:hover{border-color:#ffbb66;background:rgba(194,103,35,.24);color:#fff3dd}
.nz-chat-reset:focus-visible{outline:3px solid #ffe1a6;outline-offset:2px}
.nz-chat-reset-dialog{position:fixed;inset:0;margin:auto;width:min(360px,calc(100vw - 36px));max-height:min(80dvh,480px);padding:24px;border:1px solid rgba(242,162,69,.58);border-radius:18px;background:linear-gradient(150deg,#0b2844,#07182f);color:#eff9ff;box-shadow:0 24px 70px rgba(0,0,0,.7),0 0 25px rgba(253,151,44,.16)}
.nz-chat-reset-dialog::backdrop{background:rgba(0,10,24,.67)}
.nz-chat-reset-dialog h3{font-size:18px;margin:0 0 11px;color:#fff;line-height:1.2}
.nz-chat-reset-dialog p{font-size:13px;line-height:1.6;color:#d6e6f4;margin:0 0 22px}
.nz-chat-reset-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}
.nz-chat-reset-actions button{font:inherit;font-size:12px;font-weight:700;min-height:42px;border-radius:11px;padding:10px 13px;cursor:pointer}
.nz-chat-reset-cancel{background:#0c3653;color:#c6edf8;border:1px solid rgba(112,197,224,.5)}
.nz-chat-reset-confirm{background:linear-gradient(110deg,#ce812a,#edb15e);color:#101b2b;border:1px solid #eeb76d}
.nz-chat-reset-actions button:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(max-width:370px){.nz-chat-head{gap:6px}.nz-chat-reset,.nz-chat-close{flex-basis:31px;width:31px;height:31px}}
@media(prefers-reduced-motion:reduce){.nz-chat-reset{transition:none}}

@media(max-width:640px){.nz-chat-close{width:34px;height:34px;flex-basis:34px}}
@media(prefers-reduced-motion:reduce){.nz-chat-close{transition:none}}
.nz-chat-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:16px 13px 12px;scrollbar-color:rgba(32,194,249,.54) transparent;scrollbar-width:thin;background:radial-gradient(circle at 100% 0%,rgba(27,70,130,.14),transparent 55%)}
.nz-chat-line{display:flex;align-items:flex-end;gap:9px;margin-bottom:13px}
.nz-chat-line p{font-size:12.7px;line-height:1.55;max-width:86%;margin:0;padding:11px 13px;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid rgba(49,156,222,.41);border-radius:14px 14px 14px 4px;background:linear-gradient(140deg,#0c304e,#081f38);color:#eefaff}
.nz-chat-msg-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 32px;border:1px solid #0abdf5;background:#053957}
.nz-chat-line-user{justify-content:flex-end}
.nz-chat-line-user p{max-width:85%;border:1px solid rgba(84,180,255,.7);border-radius:14px 14px 4px 14px;background:linear-gradient(125deg,#0c56e0 0%,#0977fc 100%);color:#fff}
/* Compact recommendation card is inserted INSIDE the scrolling conversation only after a matching test query. */
.nz-chat-recommend{position:relative;margin:0 1px 13px 40px;padding:11px 12px 9px;border:1px solid rgba(3,212,255,.78);border-radius:13px;background:linear-gradient(138deg,rgba(6,56,93,.98),rgba(5,24,45,.97) 72%);box-shadow:inset 0 0 16px rgba(0,163,240,.12),0 5px 17px rgba(0,0,0,.15)}
.nz-chat-recommend-heading{display:flex;align-items:center;gap:9px;min-width:0}
.nz-chat-recommend-icon{display:grid;place-items:center;flex:0 0 43px;height:43px;border:1px solid #0edafa;border-radius:10px;background:linear-gradient(135deg,#095d98,#063351);color:#22e6ff}
.nz-chat-recommend-titles{display:flex;flex-direction:column;min-width:0;line-height:1.33}
.nz-chat-recommend-label{font-size:10px;font-weight:700;color:#55e8ff}
.nz-chat-recommend-titles strong{font-size:14px;line-height:1.3;color:#fff}
.nz-chat-recommend-titles small{font-size:10px;color:#b2d5e5}
.nz-chat-recommend-list{display:grid;grid-template-columns:1fr;gap:3px;padding:0;margin:9px 0 8px;list-style:none}
.nz-chat-recommend-list li{position:relative;padding-left:20px;color:#e3f6ff;font-size:11.5px;line-height:1.4}
.nz-chat-recommend-list li::before{content:"✓";position:absolute;left:1px;top:0;color:#01e2ee;font-weight:900}
.nz-chat-recommend-link{display:flex;justify-content:space-between;align-items:center;min-height:28px;padding:4px 10px;background:rgba(0,174,223,.16);border:1px solid rgba(0,214,255,.4);border-radius:9px;color:#b9f7ff;font-weight:700;font-size:11px;text-decoration:none}
.nz-chat-recommend-link:hover{color:#fff;background:rgba(0,174,223,.3)}
.nz-chat-recommend-link span{font-size:15px}
.nz-chat-inputbar{margin:11px 12px 0;min-height:46px;flex:0 0 auto;display:flex;align-items:center;gap:7px;border:1px solid rgba(27,188,242,.7);border-radius:11px;background:linear-gradient(105deg,#0a223c,#09233b);padding:4px 5px 4px 5px;box-shadow:0 0 12px rgba(6,166,241,.09)}
.nz-chat-inputbar:focus-within{border-color:#65e7ff;box-shadow:0 0 0 2px rgba(0,205,255,.13)}
.nz-chat-inputbar input{flex:1;width:100%;min-width:0;height:34px;border:0;outline:0;background:transparent;box-shadow:none;color:#eefcff;font-size:12.5px;padding:0}
.nz-chat-inputbar input::placeholder{color:#a5c0d0;opacity:1}
.nz-chat-send{flex:0 0 35px;width:35px;height:35px;display:grid;place-items:center;border-radius:10px;border:1px solid #08deff;background:linear-gradient(145deg,#045da3,#087ee1);color:#eafdff;box-shadow:0 0 12px rgba(0,188,255,.25)}
.nz-chat-send:hover{background:#0b9de0;color:#fff}
/* Optional speech: always explicit; normal typing works without browser speech support. */
.nz-chat-voice-switch.is-active{color:#041927;background:#68f4e7;box-shadow:0 0 0 1px #21e7f6}
.nz-chat-microphone{flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;border:1px solid rgba(29,208,241,.45);border-radius:9px;background:rgba(13,67,96,.55);color:#c5f5ff;transition:background .15s,border-color .15s}
.nz-chat-microphone{touch-action:none;user-select:none;-webkit-user-select:none}.nz-chat-microphone:hover{background:rgba(19,141,174,.45);border-color:#6ceeff}
.nz-chat-microphone.is-recording{color:#092433;background:#82f3e5;border-color:#e0fff9;box-shadow:0 0 0 3px rgba(48,228,207,.22)}
.nz-chat-microphone:disabled{opacity:.5;cursor:not-allowed}
.nz-chat-head-button[hidden],.nz-chat-microphone[hidden],.nz-chat-voice-status[hidden],.nz-chat-disclaimer span[hidden]{display:none}
.nz-chat-read{flex:0 0 25px;align-self:flex-end;width:25px;height:27px;display:grid;place-items:center;padding:3px;margin-bottom:2px;border:1px solid rgba(62,171,218,.33);border-radius:7px;background:rgba(18,70,100,.42);color:#b0def0}
.nz-chat-read:hover,.nz-chat-read.is-speaking{border-color:#66edfe;background:rgba(15,163,190,.3);color:#fff}
.nz-chat-voice-status{flex:0 0 auto;padding:4px 13px 0;margin:0;font-size:11px;line-height:1.45;color:#9becf0;text-align:left}
.nz-chat-voice-status:not([hidden]){display:block}
/* WEB071: a single compact secondary privacy link below the input. */
.nz-chat-disclaimer{flex:0 0 auto;color:#93b0c1;text-align:center;font-size:9.5px;line-height:1.25;margin:3px 8px 5px;padding:0}
.nz-chat-disclaimer a{color:inherit;font-size:inherit;line-height:inherit;text-decoration:none;text-underline-offset:2px}
.nz-chat-disclaimer a:hover{text-decoration:underline;color:#c3e8ef}
.nz-chat-disclaimer a:focus-visible{outline:2px solid #65e7ff;outline-offset:3px;border-radius:2px;text-decoration:underline}
.nz-chat-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes nz-chat-drop{from{opacity:0;transform:translateY(-11px) scale(.988)}to{opacity:1;transform:translateY(0) scale(1)}}
body:has(.nz-chat-is-open) .contact-back-to-top{display:none}
@media(max-width:1550px){.topbar:has(.nz-chat-launch){gap:16px}.topbar:has(.nz-chat-launch) .header-actions{gap:13px}}
@media(min-width:1001px) and (max-width:1350px){.topbar:has(.nz-chat-launch) .nav{gap:14px}.topbar:has(.nz-chat-launch) .brand{min-width:151px}.topbar:has(.nz-chat-launch) .header-cta{min-width:134px;padding-inline:13px}.nz-chat-launch{flex-basis:69px;min-width:69px}.nz-chat-launcher{width:47px;height:47px}.nz-chat-nudge{font-size:8.5px}}
@media(max-width:1000px){.nz-chat-panel{top:85px;right:10px;height:min(685px,calc(100dvh - 100px))}.nz-chat-launch{flex-basis:70px;min-width:70px}.nz-chat-launcher{width:46px;height:46px}.nz-chat-nudge{font-size:8.5px}.topbar:has(.nz-chat-launch) .header-actions{gap:10px}}
@media(max-width:640px){.nz-chat-panel{top:83px;right:10px;width:calc(100vw - 20px);height:min(660px,calc(100dvh - 95px));border-radius:15px}.nz-chat-launch{flex-basis:63px;min-width:63px}.nz-chat-launcher{width:42px;height:42px}.nz-chat-nudge{font-size:8px;line-height:10px}.topbar:has(.nz-chat-launch){padding-inline:12px;gap:5px}.topbar:has(.nz-chat-launch) .header-actions{gap:8px}.nz-chat-head{padding:10px;min-height:78px}.nz-chat-scroll{padding:12px 10px 8px}.nz-chat-line p{font-size:12.5px}.nz-chat-recommend{margin-left:22px}}
@media(max-width:370px){.topbar:has(.nz-chat-launch){padding-inline:9px}.topbar:has(.nz-chat-launch) .brand{gap:4px}.topbar:has(.nz-chat-launch) .brand-word{font-size:17px}.topbar:has(.nz-chat-launch) .brand-mark{width:29px}.nz-chat-launch{flex-basis:57px;min-width:57px}.nz-chat-launcher{width:39px;height:39px}.nz-chat-nudge{font-size:7.3px;letter-spacing:-.02em}.nz-chat-head-copy strong{font-size:15px}.nz-chat-head-avatar{flex-basis:52px;width:52px;height:52px}.nz-chat-head-button{width:28px;flex-basis:28px}.nz-chat-line p{font-size:12px}}
@media(max-height:520px){.nz-chat-panel{top:74px;height:calc(100dvh - 84px);min-height:0}.nz-chat-head{padding:5px 10px;min-height:0}.nz-chat-head-avatar{width:38px;height:38px;flex-basis:38px}}
@media(prefers-reduced-motion:reduce){.nz-chat-launcher,.nz-chat-microphone{transition:none}.nz-chat-panel{animation:none}}

/* A speech replay control is revealed only after the server issues a signed grant. */
.nz-chat-read[hidden]{display:none}

/* WEB044 · honest microphone meter; bar heights track actual microphone RMS only. */
.nz-chat-mic-visual{display:flex;align-items:center;gap:9px;min-height:23px;margin:6px 13px 0;color:#b9f8f5;font-size:11px;line-height:1.2;letter-spacing:.01em}
.nz-chat-mic-visual[hidden]{display:none}
.nz-chat-meter-bars{display:flex;align-items:center;justify-content:center;gap:3px;height:24px;min-width:46px;padding:2px 5px;border:1px solid rgba(81,232,239,.4);border-radius:16px;background:rgba(0,27,57,.65)}
.nz-chat-meter-bar{display:block;width:3px;height:3px;min-height:3px;max-height:24px;border-radius:3px;background:linear-gradient(0deg,#18baf5,#87f4df);transition:height 65ms linear}
.nz-chat-inputbar input{caret-color:#79eee3}
.nz-chat-microphone.is-recording{box-shadow:0 0 0 3px rgba(48,228,207,.22),0 0 12px rgba(71,239,213,.3)}
@media(prefers-reduced-motion:reduce){.nz-chat-meter-bar{transition:none}}

/* WEB-046: center the launcher state glyph precisely inside the red dot. */
.nz-chat-launcher[aria-expanded="true"]{box-shadow:0 0 0 3px rgba(2,171,242,.2),0 0 22px rgba(0,206,255,.6),0 5px 15px rgba(0,0,0,.4)}

/* WEB066 mobile: microphone remains discoverable; keyboard opens only on input tap. */
.nz-chat-microphone{display:grid;place-items:center;min-width:40px;min-height:40px;flex:0 0 40px}
@media(max-width:640px){
 .nz-chat-inputbar{margin:8px 9px 0;gap:6px;min-height:49px}
 .nz-chat-microphone{min-width:42px;min-height:42px;flex:0 0 42px;border-color:rgba(81,231,248,.8)}
 .nz-chat-inputbar input{font-size:16px;min-height:38px}
 .nz-chat-send{min-height:40px;min-width:40px}
}
