/* Voice toggle in the command bar and the spoken gist inside «Линия мысли». */
.space-command #command-voice{position:relative;width:44px;display:flex;align-items:center;justify-content:center;padding:0;border-color:#4f7f74;background:#132a2a;color:#9ff9d9;transition:background .25s,box-shadow .25s,transform .25s}
.space-command #command-voice:hover{transform:translateY(-2px);box-shadow:0 0 16px #69e7be44}
#command-voice svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
#command-voice .sv-body{fill:currentColor;fill-opacity:.18}
#command-voice .sv-x{display:none;stroke:#ff9c9c}
#command-voice.is-off{color:#6f8893;border-color:#3a4e55;background:#0f1c22}
#command-voice.is-off .sv-w{display:none}#command-voice.is-off .sv-x{display:block}
#command-voice.is-speaking .sv-w{animation:svWave .9s ease-in-out infinite;transform-origin:12px 12px}
#command-voice.is-speaking .sv-w2{animation-delay:.15s}
@keyframes svWave{50%{opacity:.25}}

.thought-voice{display:flex;align-items:flex-start;gap:11px;margin-top:6px;padding:10px 12px;border-radius:14px;background:linear-gradient(135deg,#0f3330b3,#0c1d27b3);box-shadow:inset 0 0 0 1px #6ff7d844}
.thought-voice[hidden]{display:none}
.tv-copy{display:grid;gap:3px;min-width:0}
.tv-copy small{font-size:9px;font-weight:800;letter-spacing:.14em;color:#8be5cc}
.tv-text{margin:0;font-size:14px;line-height:1.45;color:#eafff7}
.tv-bars{flex:none;display:flex;align-items:center;gap:3px;height:22px;margin-top:2px}
.tv-bars i{width:3px;height:6px;border-radius:2px;background:linear-gradient(#6ff7d8,#c3a9fd)}
.thought-voice.is-speaking .tv-bars i{animation:tvBar .8s ease-in-out infinite}
.thought-voice.is-speaking .tv-bars i:nth-child(2){animation-delay:.12s}.thought-voice.is-speaking .tv-bars i:nth-child(3){animation-delay:.24s}.thought-voice.is-speaking .tv-bars i:nth-child(4){animation-delay:.36s}
@keyframes tvBar{50%{height:20px}}
@media(max-width:760px){.space-command #command-voice{width:38px}#command-voice svg{width:19px;height:19px}.tv-text{font-size:13px}}
@media(prefers-reduced-motion:reduce){#command-voice *,.tv-bars i{animation:none!important}}

.prompt-reset{justify-self:start;margin-top:5px;min-height:30px;padding:0 10px;border:1px solid #4c756b;border-radius:9px;background:#10272e;color:#9ff9d9;font-size:12px;cursor:pointer}

/* «Покажи сам»: the pill in the search field, the AI cursor and the step panel */
.pilot-pill{display:none;flex:none;align-items:center;gap:6px;height:34px;padding:0 12px;border:1px solid #b9a0f8;border-radius:17px;background:linear-gradient(135deg,#2a2152,#173c35);color:#efe9ff;font:600 12.5px Manrope,system-ui,sans-serif;white-space:nowrap;cursor:pointer;box-shadow:0 0 18px #a487f433}
.pilot-pill.is-on{display:inline-flex;animation:pilotIn .4s cubic-bezier(.2,1.3,.4,1)}
.pilot-pill i{font-style:normal;color:#6ff7d8}
@keyframes pilotIn{from{opacity:0;transform:scale(.8)}}
.space-command.is-thinking .pilot-pill{display:none}
.space-command .pilot-pill{display:none!important}  /* the pilot starts from the mic menu «Показать на экране» (voice-choice.js) */
.pilot-cursor{position:fixed;left:0;top:0;z-index:90;width:30px;height:30px;margin:-4px 0 0 -4px;pointer-events:none;filter:drop-shadow(0 0 10px #6ff7d8)}
.pilot-cursor[hidden]{display:none}
.pilot-cursor svg{width:26px;height:26px;fill:#6ff7d8;stroke:#04211a;stroke-width:1.3}
.pilot-cursor i{position:absolute;left:4px;top:4px;width:8px;height:8px;border-radius:50%;background:#c3a9fd;box-shadow:0 0 12px #c3a9fd;animation:pilotPing 1s ease-out infinite}
@keyframes pilotPing{to{transform:scale(3);opacity:0}}
.pilot-ring{position:fixed;z-index:89;width:34px;height:34px;border-radius:50%;border:2px solid #6ff7d8;pointer-events:none}
.pilot-glow{position:fixed;z-index:88;border-radius:12px;pointer-events:none;box-shadow:0 0 0 2px #6ff7d8,0 0 30px #6ff7d877}
.pilot-hud{position:fixed;z-index:62;left:50%;bottom:104px;transform:translateX(-50%);width:min(560px,calc(100vw - 24px));padding:12px 14px;color:#e6fbf5;background:linear-gradient(145deg,#08171df4,#0c1522f8);border:1px solid #b9a0f8;border-radius:16px;box-shadow:0 18px 50px #000c,0 0 30px #a487f430;font:13px/1.45 Manrope,system-ui,sans-serif}
.pilot-hud[hidden]{display:none}
.pilot-head{display:flex;align-items:center;gap:10px}
.pilot-head small{font:700 9.5px "JetBrains Mono",ui-monospace,monospace;letter-spacing:.13em;color:#c3a9fd}
.pilot-step{margin-left:auto;font:10px "JetBrains Mono",ui-monospace,monospace;color:#8be5cc}
.pilot-stop{min-height:30px;padding:0 12px;border:1px solid #ff9c9c66;border-radius:9px;background:#ff6b6b14;color:#ffc4c4;font:600 12px Manrope,system-ui,sans-serif;cursor:pointer}
.pilot-say{margin:8px 0 4px;font-size:15px;color:#fff}
.pilot-trail{margin:0;padding-left:18px;color:#8aa1ad;font-size:12px}.pilot-trail:empty{display:none}
.pilot-on .space-command{box-shadow:0 0 0 2px #b9a0f8,0 0 30px #a487f444}
@media(max-width:760px){.pilot-hud{bottom:calc(150px + env(safe-area-inset-bottom))}.pilot-pill span{display:none}.pilot-pill{padding:0 10px}}
@media(prefers-reduced-motion:reduce){.pilot-cursor i,.pilot-pill{animation:none}}
/* The command bar styles every button as a 35px square: the pill needs its own size, font and look back. */
.space-command .pilot-pill{width:auto;min-width:0;height:37px;padding:0 14px 0 11px;border:1px solid #b9a0f8;border-radius:19px;background:linear-gradient(135deg,#2a2152,#173c35);color:#efe9ff;font:700 13px/1 Manrope,system-ui,sans-serif;gap:6px;box-shadow:0 0 18px #b9a0f833}
.space-command .pilot-pill span{font-size:13px;line-height:1}
.space-command .pilot-pill i{font-size:15px;line-height:1}
.space-command .pilot-pill:hover{background:linear-gradient(135deg,#3a2c74,#1d4d44)}
@media(max-width:760px){.space-command .pilot-pill{padding:0 10px}.space-command .pilot-pill span{display:inline;font-size:11.5px}}
.pilot-ask{display:flex;gap:8px;margin-top:8px}
.pilot-ask button{flex:1;height:40px;border:0;border-radius:12px;font:800 13px Manrope,system-ui,sans-serif;cursor:pointer}
.pilot-yes{background:linear-gradient(135deg,#6ff7d8,#c3a9fd);color:#04130f}.pilot-no{background:#ffffff14;color:#eaf4f6}
.pilot-hud.is-looking{box-shadow:0 0 0 1px #6ff7d8,0 0 40px #6ff7d855}
.pilot-hud.is-looking .pilot-say{animation:pilotLook 1.2s ease-in-out infinite}@keyframes pilotLook{50%{opacity:.55}}
/* The microphone asks first: «Сказать голосом» or «Показать на экране» (voice-choice.js) */
.vc-pop{position:absolute;right:56px;bottom:calc(100% + 10px);z-index:40;display:grid;gap:6px;width:min(300px,calc(100vw - 32px));padding:8px;border-radius:18px;background:linear-gradient(150deg,#0c1c22f7,#121a2cf7);box-shadow:0 18px 50px #000b,inset 0 0 0 1px #6ff7d855;backdrop-filter:blur(14px)}
.vc-pop[hidden],.vc-hint[hidden]{display:none}
.vc-opt{display:grid!important;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;width:100%!important;height:auto!important;padding:10px!important;border:0!important;border-radius:13px!important;background:#ffffff08!important;color:#eef8f5!important;text-align:left;font:inherit!important}
.vc-opt:hover,.vc-opt:focus-visible{background:#6ff7d81c!important}
.vc-opt>b{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#203a39;font-size:18px;font-weight:400}
.vc-show>b{background:linear-gradient(135deg,#2a2152,#173c35);color:#6ff7d8}
.vc-opt span{display:grid;gap:2px}.vc-opt strong{font-size:14px}.vc-opt small{font-size:11.5px;color:#93aab0}
.vc-hint{position:absolute;left:16px;bottom:calc(100% + 8px);padding:6px 12px;border-radius:999px;background:#0c1c22f2;color:#c7fff0;font:600 12px Manrope,system-ui,sans-serif;box-shadow:inset 0 0 0 1px #6ff7d855;pointer-events:none}
#command-mic.vc-open{box-shadow:0 0 0 2px #6ff7d8}
@media(max-width:760px){.vc-pop{right:0;left:0;margin:auto}}
