/* V20 JARVIS · premium local command console / isolated from main site */
#jv-launch{position:fixed;bottom:20px;right:20px;z-index:12000;display:flex;align-items:center;gap:9px;min-height:55px;padding:5px 18px 5px 6px;border:1px solid rgba(76,233,255,.65);border-radius:32px;background:linear-gradient(120deg,#061c32,#084b72 65%,#0e7793);color:#e7fbff;font:800 13px system-ui,sans-serif;letter-spacing:1px;box-shadow:0 0 17px rgba(17,216,249,.32),0 13px 45px #02182c8e;cursor:pointer}
#jv-launch::before{content:'';position:absolute;inset:-5px;border:1px solid rgba(23,207,248,.26);border-radius:40px;animation:jvHalo 3s ease-in-out infinite;pointer-events:none}
#jv-launch img{width:43px;height:43px;object-fit:contain;filter:drop-shadow(0 0 7px #38caff)}
#jv-launch:hover{transform:translateY(-2px);box-shadow:0 0 24px rgba(17,216,249,.58),0 15px 42px #02182c90}
#jv-panel{position:fixed;bottom:89px;right:18px;z-index:12001;width:min(444px,calc(100vw - 24px));max-height:min(770px,calc(100dvh - 110px));display:flex;flex-direction:column;border:1px solid #2195bd;border-radius:17px;background:radial-gradient(ellipse at 60% 0%,#0d4566 0%,#071f32 42%,#061422 100%);box-shadow:0 19px 70px #000b1bd9,0 0 35px #0fa4d035;overflow:hidden;color:#eafcff;font-family:system-ui,'Segoe UI',sans-serif}
#jv-launch[hidden],#jv-panel[hidden]{display:none!important}
#jv-panel .jv-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;background:linear-gradient(90deg,#06253b,#135078 63%,#07334e);border-bottom:1px solid #1b7898}
#jv-panel .jv-head-title{display:flex;gap:10px;align-items:center;min-width:0}
#jv-panel .jv-head-title strong{display:block;font-weight:800;letter-spacing:2px;font-size:17px;color:#9af2ff}
#jv-panel .jv-head-title strong em{font-style:normal;letter-spacing:0;background:#0b8fc3;border-radius:4px;color:#fff;padding:1px 5px;font-size:10px;vertical-align:middle}
#jv-panel .jv-head-title small{display:block;font-size:9px;letter-spacing:1px;color:#9acbdf;margin-top:2px}
#jv-panel .jv-core-wrap{width:49px;height:49px;border-radius:50%;display:grid;place-items:center;border:1px solid #4ddcff;box-shadow:inset 0 0 14px #1091bf,0 0 12px #19bfea4d}
#jv-panel .jv-head-core{width:43px;height:43px;object-fit:contain}
#jv-close{border:1px solid #4d9bba;background:#082c45;color:#c9faff;border-radius:9px;width:36px;height:36px;font-size:24px;cursor:pointer}
#jv-panel button{cursor:pointer}
#jv-panel .jv-info{display:flex;align-items:center;gap:8px;padding:9px 14px;border-bottom:1px solid #1a6681;color:#a8d8ec;background:#071a2ccc;font-size:11px;line-height:1.35}
#jv-panel .jv-dot{width:7px;height:7px;background:#36e6bf;border-radius:50%;box-shadow:0 0 12px #40e8c5;flex-shrink:0}
#jv-panel .jv-command-core{display:flex;align-items:center;gap:12px;padding:11px 18px;position:relative;background:linear-gradient(105deg,#0b2943,#083047,#07223d)}
#jv-panel .jv-command-core>img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 0 9px #34d1ff);animation:jvFloat 4s ease-in-out infinite}
#jv-panel .jv-command-core>div{min-width:0;flex:1}
#jv-panel .jv-command-core strong{display:block;font-size:11px;letter-spacing:1.4px;color:#64f4c4}
#jv-panel .jv-command-core small{font-size:11px;color:#a2bdcb}
#jv-panel .jv-voice-wave{display:flex;gap:3px;align-items:center;height:32px}
#jv-panel .jv-voice-wave i{display:block;width:3px;height:6px;background:#3bdcff;border-radius:3px;opacity:.5}
#jv-panel.jv-hearing .jv-voice-wave i,#jv-panel.jv-speaking .jv-voice-wave i{animation:jvBar 580ms ease-in-out infinite alternate;opacity:1}
#jv-panel .jv-voice-wave i:nth-child(2){animation-delay:-150ms}#jv-panel .jv-voice-wave i:nth-child(3){animation-delay:-300ms}#jv-panel .jv-voice-wave i:nth-child(4){animation-delay:-80ms}#jv-panel .jv-voice-wave i:nth-child(5){animation-delay:-220ms}
#jv-panel .jv-history{display:flex;flex-direction:column;flex:1;gap:9px;min-height:150px;overflow:auto;padding:13px 14px;scrollbar-color:#277aa1 transparent}
#jv-panel .jv-message{margin:0;border:1px solid #244c64;border-radius:11px;line-height:1.5;font-size:12px;max-width:98%;padding:9px 11px}
#jv-panel .jv-message strong{display:block;font-size:10px;letter-spacing:.7px;color:#81e8ff;margin-bottom:3px}
#jv-panel .jv-message span{display:block;white-space:pre-wrap;overflow-wrap:anywhere}
#jv-panel .jv-response{align-self:flex-start;background:#0d3046}#jv-panel .jv-user{align-self:flex-end;background:#0b5366;border-color:#247c8d}
#jv-panel .jv-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 12px}
#jv-panel .jv-quick button{font:700 11px system-ui,sans-serif;min-height:35px;padding:6px 4px;border:1px solid #287a97;border-radius:7px;background:#0b3550;color:#d1f6ff}
#jv-panel .jv-quick button:hover{background:#135c7a}
#jv-form{display:flex;align-items:center;gap:6px;padding:4px 12px 11px}
#jv-form input{background:#071c2f;border:1px solid #3c8aa7;color:#effdff;padding:11px 10px;border-radius:9px;font-size:13px;min-width:0;flex:1}
#jv-form input::placeholder{color:#85aebf}
#jv-form button{border:1px solid #278cb4;background:#095b7c;color:white;min-height:40px;border-radius:8px;font-weight:700;font-size:12px;padding:8px;cursor:pointer}
#jv-form #jv-mic{font-size:20px;background:#0e3c5c}
#jv-form #jv-mic.listening{background:#a63248;border-color:#ff9fac;box-shadow:0 0 18px #fd53648c}
#jv-form button:disabled{opacity:.5}
#jv-panel .jv-controls{display:flex;justify-content:space-between;align-items:center;padding:0 14px 9px;color:#a2c7d6;font-size:10px;gap:8px}
#jv-panel .jv-speech{display:flex;gap:6px;align-items:center}#jv-panel .jv-speech input{accent-color:#0bb9f3}
#jv-panel .jv-footer{border-top:1px solid #24617b;color:#8fafbc;font-size:10px;line-height:1.4;padding:10px 14px;background:#051a2b}
#jv-panel .jv-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@keyframes jvBar{to{height:28px}}@keyframes jvHalo{50%{opacity:.25;transform:scale(1.1)}}@keyframes jvFloat{50%{transform:scale(1.04);filter:drop-shadow(0 0 14px #4adeff)}}
@media(max-width:600px){#jv-launch{right:10px;bottom:10px}#jv-panel{right:8px;bottom:72px;max-height:calc(100dvh - 80px)}#jv-panel .jv-quick{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){#jv-launch::before,#jv-panel .jv-command-core>img,#jv-panel .jv-voice-wave i{animation:none!important}}
@media print{#jv-launch,#jv-panel{display:none!important}}

/* Cinematic voice studio · custom Turkish or installed UK voice, no cloud AI usage */
#jv-panel .jv-voice-settings{border-top:1px solid #174c67;border-bottom:1px solid #174c67;background:linear-gradient(105deg,#071f34,#0a3049);font-size:11px}
#jv-panel .jv-voice-settings summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 14px;cursor:pointer;list-style:none;color:#9aebff;font-size:10px;letter-spacing:1.3px;font-weight:800}
#jv-panel .jv-voice-settings summary::-webkit-details-marker{display:none}
#jv-panel .jv-voice-settings summary>span{font-size:10px;font-weight:500;letter-spacing:0;color:#a2bfd1}
#jv-panel .jv-voice-pad{padding:0 13px 10px;display:grid;gap:8px}
#jv-panel #jv-voice-select{width:100%;min-height:36px;padding:8px;border-radius:8px;color:#d7f7ff;background:#061828;border:1px solid #2983a6;font:11px system-ui,sans-serif}
#jv-panel .jv-voice-hint{margin:0;color:#98bbce;font-size:10px;line-height:1.4}
#jv-panel .jv-voice-tuners{display:grid;grid-template-columns:1fr 1fr;gap:13px}
#jv-panel .jv-voice-tuners label{display:grid;gap:4px;font-size:11px;font-weight:650;color:#b9e5f3}
#jv-panel .jv-voice-tuners output{float:right;font-variant-numeric:tabular-nums;color:#66f4e5}
#jv-panel .jv-voice-tuners input{width:100%;accent-color:#43deff}
#jv-panel .jv-voice-buttons{display:flex;gap:8px}
#jv-panel .jv-voice-buttons button{flex:1;padding:8px 5px;min-height:34px;color:#cef7ff;background:#0c4665;border:1px solid #2d9bbc;border-radius:7px;font-size:11px;font-weight:700}
#jv-panel .jv-voice-buttons button:hover{background:#126c91}

/* JARVIS phone contact, phone OS opens dialer on click */
.jv-phone-dial{display:block;margin:8px 12px;padding:12px;border:1px solid #44d8f1;border-radius:12px;background:#0a384b;color:#b9efff;text-decoration:none;font-weight:700;text-align:center}

/* Owner launcher: mobile dock clearance and low-cost compositor animation. */
#jv-launch{transition:transform .18s ease,box-shadow .18s ease;touch-action:manipulation}
#jv-launch:focus-visible{outline:3px solid #8ef2ff;outline-offset:6px}
@media(max-width:767px){#jv-launch{right:max(12px,env(safe-area-inset-right,0px));bottom:calc(84px + env(safe-area-inset-bottom,0px));min-height:50px;padding-right:14px}#jv-launch img{width:38px;height:38px}#jv-panel{right:8px;bottom:calc(144px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 164px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}body:has(.mobile-drawer-open,.mobile-keyboard-open,.ops-fullscreen,dialog[open]) #jv-launch{display:none}}
@media(prefers-reduced-motion:reduce){#jv-launch{transition:none!important}}
body:has(#jv-panel[hidden]) #jv-panel *{animation-play-state:paused!important}
/* Compact mobile launcher; desktop and command permissions unchanged. */
@media(max-width:767px){
 #jv-launch{right:max(8px,env(safe-area-inset-right,0px));bottom:calc(84px + env(safe-area-inset-bottom,0px));width:44px;height:44px;min-width:44px;min-height:44px;padding:5px;gap:0;justify-content:center;border-radius:50%;letter-spacing:0;box-shadow:0 0 10px #11d8f94d}
 #jv-launch img{width:30px;height:30px}
 #jv-launch>span{display:none}
 #jv-launch::before{inset:-3px;border-radius:50%}
}
/* Mobile conversation layout: reserve room for the dock and software keyboard. */
@media(max-width:767px),(max-height:500px) and (pointer:coarse){
 #jv-panel{box-sizing:border-box;right:8px;left:auto;bottom:calc(var(--jv-mobile-bottom,84px) + env(safe-area-inset-bottom,0px));width:min(380px,calc(100vw - 16px));height:min(510px,65dvh);max-height:calc(var(--jv-visible-height,100dvh) - 100px);border-radius:14px}
 #jv-panel>*{flex-shrink:0;min-width:0}
 #jv-panel .jv-head{padding:8px 10px;gap:6px;min-height:48px}
 #jv-panel .jv-head-title strong{font-size:14px;letter-spacing:1px}
 #jv-panel .jv-head-title small{font-size:8px;letter-spacing:0}
 #jv-panel .jv-core-wrap{width:32px;height:32px}
 #jv-panel .jv-head-core{width:28px;height:28px}
 #jv-panel #jv-close{min-width:44px;min-height:44px}
 #jv-panel .jv-command-core,#jv-panel .jv-quick,#jv-panel .jv-footer{display:none}
 #jv-panel .jv-info{font-size:10px;padding:6px 10px}
 #jv-panel .jv-history{flex:1 1 0;min-height:0;padding:8px 10px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 #jv-panel .jv-message{font-size:13px;padding:7px 9px}
 #jv-panel .jv-voice-settings summary{padding:7px 10px;font-size:10px}
 #jv-panel .jv-voice-settings[open]{max-height:36%;overflow:auto}
 #jv-panel .jv-controls{padding:5px 10px;min-height:28px}
 #jv-panel .jv-controls>span{display:none}
 #jv-panel #jv-form{padding:6px 8px;gap:5px;margin:0}
 #jv-panel #jv-form input{font-size:16px;min-height:44px;padding:8px;box-sizing:border-box}
 #jv-panel #jv-form button{min-height:44px;min-width:44px;padding:7px;font-size:12px}
 #jv-panel[data-jv-keyboard=true]{height:calc(var(--jv-visible-height,100dvh) - 16px);max-height:calc(var(--jv-visible-height,100dvh) - 16px)}
 #jv-panel[data-jv-keyboard=true] .jv-info,#jv-panel[data-jv-keyboard=true] .jv-voice-settings{display:none}
}
