/* V18 dialog only. Existing pitch JS owns all controls and live statuses. */
#voice-dialog.pushkin-dialog-v18 {
  --dialog-navy:#0c1729;
  --dialog-ink:#14263f;
  --dialog-muted:#526983;
  --dialog-line:#d7e1ee;
  --dialog-cobalt:#3159ef;
  width:min(1040px,calc(100vw - 32px));
  max-width:none;
  max-height:92vh;
  max-height:92dvh;
  margin:auto;
  padding:0;
  overflow:auto;
  border:1px solid #46546a;
  border-radius:24px;
  background:#fff;
  color:var(--dialog-ink);
  font-family:'Geist',sans-serif;
  box-shadow:0 30px 100px #02091666;
  scrollbar-width:thin;
}
#voice-dialog.pushkin-dialog-v18::backdrop {background:#071020c7;backdrop-filter:blur(12px)}
#voice-dialog.pushkin-dialog-v18 *,#voice-dialog.pushkin-dialog-v18 *::before,#voice-dialog.pushkin-dialog-v18 *::after {box-sizing:border-box}
#voice-dialog .pushkin-dialog-bar {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px 10px 26px;min-height:64px;background:var(--dialog-navy);color:#fff;border-bottom:1px solid #31425b}
#voice-dialog .pushkin-dialog-brand {display:flex;align-items:center;gap:18px;min-width:0;color:#fff;text-decoration:none;font-size:18px;font-weight:760;letter-spacing:.13em}
#voice-dialog .pushkin-dialog-brand span {padding-left:18px;border-left:1px solid #46556c;color:#b6c7de;font:10px/1.4 'Geist Mono',monospace;letter-spacing:0}
#voice-dialog #close-voice {position:static;float:none;display:grid;place-items:center;flex:0 0 44px;width:44px;min-height:44px;padding:0;border:1px solid #46566e;border-radius:50%;background:transparent;color:#edf4ff;cursor:pointer;transition:background .15s}
#voice-dialog #close-voice:hover {background:#243750}
#voice-dialog .assistant-panel.pushkin-dialog-layout {display:grid;grid-template-columns:300px minmax(0,1fr);gap:0;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:#fff}
#voice-dialog .pushkin-call-panel {min-width:0;background:var(--dialog-navy);color:#fff}
#voice-dialog .pushkin-dialog-portrait {position:relative;isolation:isolate;height:208px;margin:0;overflow:hidden;background:#15253c}
#voice-dialog .pushkin-dialog-portrait::after {content:'';position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#0c1729)}
#voice-dialog .pushkin-dialog-portrait img {display:block;width:100%;height:100%;object-fit:cover;object-position:center 28%}
#voice-dialog .pushkin-dialog-portrait figcaption {position:absolute;left:26px;right:18px;bottom:12px;z-index:1;color:#d2e0f2;font:9px/1.5 'Geist Mono',monospace}
#voice-dialog .pushkin-call-copy {padding:10px 26px 24px}
#voice-dialog .pushkin-dialog-eyebrow {margin:0 0 9px;color:#526983;font:9px/1.6 'Geist Mono',monospace;letter-spacing:.04em}
#voice-dialog .pushkin-call-panel .pushkin-dialog-eyebrow {color:#a6bbd7}
#voice-dialog #voice-dialog-title {margin:0;color:#fff;font-size:34px;line-height:1.06;font-weight:650;letter-spacing:-.045em}
#voice-dialog .pushkin-dialog-description {margin:14px 0 17px;color:#b8c9df;font-size:13px;line-height:1.65}
#voice-dialog .assistant-head.pushkin-connection {display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:38px;margin:0 0 12px;padding:8px 0;border-top:1px solid #304159;border-bottom:1px solid #304159;color:#c3d3e8;font-size:11px;line-height:1.5}
#voice-dialog .status-dot {display:block;position:static;flex:0 0 7px;width:7px;height:7px;margin:0;border-radius:50%;background:#8d9ab0;box-shadow:none}
#voice-dialog .status-dot.ready {background:#85b8ff;box-shadow:0 0 0 4px #85b8ff14}
#voice-dialog #voice-state {display:block;min-width:0;margin:0;color:inherit;font-size:11px;overflow-wrap:anywhere}
#voice-dialog .actions.pushkin-call-actions {display:flex;flex-direction:column;gap:9px;margin:0}
#voice-dialog .pushkin-call-actions .button {display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:46px;margin:0;padding:12px 14px;border:1px solid var(--dialog-cobalt);border-radius:10px;background:var(--dialog-cobalt);color:#fff;font:550 13px/1.4 'Geist',sans-serif;letter-spacing:0;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s}
#voice-dialog .pushkin-call-actions .button:hover:not(:disabled) {border-color:#6686ff;background:#426af5}
#voice-dialog .pushkin-call-actions .button.outline {border-color:#61728c;background:transparent;color:#e1eaff}
#voice-dialog .pushkin-call-actions .button.outline:hover:not(:disabled) {background:#1b2e49;border-color:#91a6c7}
#voice-dialog .pushkin-call-actions .button:disabled {border-color:#35465e;background:#142238;color:#7d90ad;cursor:default}
#voice-dialog .pushkin-stop-icon {width:8px;height:8px;border-radius:2px;background:currentColor}
#voice-dialog #voice-feedback {margin:13px 0 0;color:#b8c9df;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
#voice-dialog .pushkin-chat-panel {display:flex;flex-direction:column;gap:0;min-width:0;padding:27px 28px 20px;background:#fff}
#voice-dialog .pushkin-chat-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px}
#voice-dialog .pushkin-chat-heading .pushkin-dialog-eyebrow {margin-bottom:5px}
#voice-dialog #pushkin-chat-title {margin:0;color:var(--dialog-ink);font-size:25px;line-height:1.18;letter-spacing:-.035em;font-weight:640}
#voice-dialog .pushkin-chat-format {flex-shrink:0;padding-top:2px;color:var(--dialog-muted);font:9px/1.5 'Geist Mono',monospace}
#voice-dialog .suggestions.pushkin-chat-suggestions {display:flex;flex-wrap:wrap;gap:9px;margin:0 0 15px}
#voice-dialog .pushkin-chat-suggestions button {display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:44px;margin:0;padding:11px 13px;border:1px solid var(--dialog-line);border-radius:9px;background:#f4f7fc;color:#274466;font:450 12px/1.4 'Geist',sans-serif;cursor:pointer}
#voice-dialog .pushkin-chat-suggestions button:hover {border-color:#95abd1;background:#edf2fb}
#voice-dialog .pushkin-chat-suggestions button span {color:#4568b2;font-size:14px}
#voice-dialog #chat {display:flex;flex:1 1 220px;flex-direction:column;gap:12px;min-width:0;min-height:180px;max-height:350px;height:auto;margin:0 0 15px;padding:17px;overflow:auto;overscroll-behavior:contain;border:1px solid #e0e7f0;border-radius:14px;background:#f8fafd;scrollbar-width:thin;scrollbar-color:#bdcce1 transparent;scroll-padding:17px}
#voice-dialog #chat p {flex:0 0 auto;max-width:91%;margin:0;padding:12px 14px;border:0;border-radius:12px;color:var(--dialog-ink);font-size:13px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
#voice-dialog #chat .user {align-self:flex-end;background:var(--dialog-cobalt);color:#fff;border-bottom-right-radius:3px}
#voice-dialog #chat .assistant {align-self:flex-start;background:#e8eff8;border-bottom-left-radius:3px}
#voice-dialog #chat .user::before,#voice-dialog #chat .assistant::before {display:block;margin-bottom:5px;font:9px/1.5 'Geist Mono',monospace;letter-spacing:.01em}
#voice-dialog #chat .user::before {content:'Вы';color:#e0e9ff}
#voice-dialog #chat .assistant::before {content:'Пушкин';color:#4b6585}
#voice-dialog #chat .chat-intro {max-width:100%;margin:auto 0;padding:12px 8px;color:var(--dialog-muted);background:transparent;font-size:13px;line-height:1.7;text-align:center;align-self:center}
#voice-dialog #chat-form.pushkin-composer {display:flex;align-items:center;gap:7px;min-width:0;min-height:56px;margin:0;padding:5px;border:1px solid #9fadc3;border-radius:12px;background:#fff;transition:border-color .15s,box-shadow .15s}
#voice-dialog #chat-form:focus-within {border-color:var(--dialog-cobalt);box-shadow:0 0 0 3px #3159ef12}
#voice-dialog #chat-message {flex:1 1 0;min-width:0;width:0;min-height:44px;margin:0;padding:10px 12px;border:0;border-radius:7px;outline:0;background:transparent;color:var(--dialog-ink);font:400 14px/1.4 'Geist',sans-serif}
#voice-dialog #chat-message::placeholder {color:#61738c;opacity:1}
#voice-dialog #chat-form button {display:grid;place-items:center;flex:0 0 44px;width:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--dialog-cobalt);border-radius:8px;background:var(--dialog-cobalt);color:#fff;cursor:pointer}
#voice-dialog #chat-form button:hover:not(:disabled) {background:#2447cd}
#voice-dialog #chat-form button:disabled {border-color:#8493b0;background:#8493b0;cursor:wait}
#voice-dialog .consent {display:flex;align-items:flex-start;gap:10px;min-height:44px;margin:0;padding:12px 0;color:#4d617c;font-size:11px;line-height:1.6;cursor:pointer}
#voice-dialog .consent input {flex:0 0 17px;width:17px;height:17px;min-height:0;margin:1px 0 0;padding:0;accent-color:var(--dialog-cobalt);cursor:pointer}
#voice-dialog .consent span {display:block;min-width:0}
#voice-dialog .pushkin-memory-settings {margin:0;border-top:1px solid var(--dialog-line);color:var(--dialog-muted)}
#voice-dialog .pushkin-memory-settings summary {display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;padding:11px 0;list-style:none;cursor:pointer;font-size:12px;line-height:1.5;user-select:none}
#voice-dialog .pushkin-memory-settings summary::-webkit-details-marker {display:none}
#voice-dialog .pushkin-memory-settings summary>span {display:block;width:20px;text-align:center;font-size:19px;line-height:1;transition:transform .15s}
#voice-dialog .pushkin-memory-settings[open] summary>span {transform:rotate(45deg)}
#voice-dialog .pushkin-memory-body {padding:0 0 4px}
#voice-dialog .pushkin-memory-body .consent {padding-top:2px}
#voice-dialog #memory-feedback {margin:0 0 8px;padding-left:27px;color:var(--dialog-muted);font-size:11px;line-height:1.6;overflow-wrap:anywhere}
#voice-dialog .pushkin-memory-actions {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 4px;padding-left:27px}
#voice-dialog .pushkin-memory-actions .text-button {min-height:44px;margin:0;padding:10px 12px;border:1px solid var(--dialog-line);border-radius:8px;background:#fff;color:#314e74;font:450 11px/1.5 'Geist',sans-serif;text-decoration:none;cursor:pointer}
#voice-dialog .pushkin-memory-actions .text-button:hover {border-color:#8eabc7;background:#f2f6fc}
#voice-dialog :is(button,a,summary,input[type='checkbox'],#chat):focus-visible {outline:2px solid #c99a5c;outline-offset:3px}
#voice-dialog .sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
@media(max-width:740px) {
  #voice-dialog.pushkin-dialog-v18 {width:calc(100vw - 20px);border-radius:18px}
  #voice-dialog .pushkin-dialog-bar {min-height:60px;padding:8px 12px 8px 20px}
  #voice-dialog .pushkin-dialog-brand {font-size:16px;gap:13px}
  #voice-dialog .pushkin-dialog-brand span {padding-left:13px;font-size:9px}
  #voice-dialog .assistant-panel.pushkin-dialog-layout {grid-template-columns:minmax(0,1fr)}
  #voice-dialog .pushkin-call-panel {display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px;padding:18px 20px 17px}
  #voice-dialog .pushkin-dialog-portrait {width:88px;height:112px;border-radius:10px}
  #voice-dialog .pushkin-dialog-portrait::after {display:none}
  #voice-dialog .pushkin-dialog-portrait figcaption {display:none}
  #voice-dialog .pushkin-dialog-portrait img {object-position:center 20%}
  #voice-dialog .pushkin-call-copy {display:contents;padding:0}
  #voice-dialog .pushkin-call-copy>.pushkin-dialog-eyebrow {grid-column:2;grid-row:1;align-self:start;margin:0;font-size:8px}
  #voice-dialog #voice-dialog-title {grid-column:2;grid-row:1;align-self:start;margin-top:24px;font-size:27px;line-height:1.04}
  #voice-dialog #voice-dialog-title br {display:none}
  #voice-dialog #voice-dialog-title br::after {content:' '}
  #voice-dialog .pushkin-dialog-description {display:none}
  #voice-dialog .assistant-head.pushkin-connection {grid-column:2;grid-row:1;align-self:end;min-height:26px;margin:0;padding:5px 0 0;border:0;font-size:10px}
  #voice-dialog #voice-state {font-size:10px}
  #voice-dialog .actions.pushkin-call-actions {grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:8px}
  #voice-dialog .pushkin-call-actions .button {min-height:44px;padding:10px 8px;font-size:11px}
  #voice-dialog #voice-feedback {grid-column:1/-1;margin:0;font-size:10px;line-height:1.5}
  #voice-dialog .pushkin-chat-panel {padding:20px 20px 12px}
  #voice-dialog .pushkin-chat-heading {margin-bottom:15px}
  #voice-dialog #pushkin-chat-title {font-size:22px}
  #voice-dialog .pushkin-chat-format {display:none}
  #voice-dialog .suggestions.pushkin-chat-suggestions {gap:7px;margin-bottom:12px}
  #voice-dialog .pushkin-chat-suggestions button {flex:1 1 145px;gap:8px;font-size:11px;padding:10px}
  #voice-dialog #chat {flex-basis:180px;min-height:180px;max-height:280px;padding:12px;gap:10px;margin-bottom:12px}
  #voice-dialog #chat p {max-width:96%;padding:11px 12px;font-size:13px}
  #voice-dialog #chat-message {padding:10px 8px;font-size:16px}
  #voice-dialog .consent {font-size:10px}
  #voice-dialog #memory-feedback {font-size:10px}
}
@media(prefers-reduced-motion:reduce) {
  #voice-dialog.pushkin-dialog-v18 * {scroll-behavior:auto!important;transition:none!important}
}
@media print {#voice-dialog.pushkin-dialog-v18 {display:none!important}}
