
/* DELTA YAR — local smart assistant */
:root{--dy-accent:#f58220;--dy-navy:#071522;--dy-panel:rgba(255,255,255,.96);--dy-text:#10202d;--dy-muted:#62707b;--dy-border:rgba(7,21,34,.12);--dy-shadow:0 24px 70px rgba(0,0,0,.22)}
body.delta-assistant-ready{--dy-panel:rgba(255,255,255,.97)}
html[data-theme="dark"]{--dy-panel:rgba(11,24,35,.98);--dy-text:#edf5fa;--dy-muted:#aebdca;--dy-border:rgba(255,255,255,.12)}
.dy-launcher{position:fixed;right:24px;bottom:24px;width:62px;height:62px;border:0;border-radius:20px;background:linear-gradient(145deg,#ff9b42,#ef6d12);color:#fff;box-shadow:0 15px 38px rgba(239,109,18,.32);z-index:99990;cursor:pointer;display:grid;place-items:center;transition:transform .18s ease,box-shadow .18s ease}
.dy-launcher:hover{transform:translateY(-2px);box-shadow:0 20px 44px rgba(239,109,18,.4)}
.dy-launcher svg{width:29px;height:29px}
.dy-badge{position:absolute;top:-4px;left:-4px;width:15px;height:15px;border-radius:50%;background:#22c55e;border:3px solid var(--dy-panel)}
.dy-panel{position:fixed;right:24px;bottom:98px;width:min(390px,calc(100vw - 32px));height:min(610px,calc(100vh - 130px));background:var(--dy-panel);color:var(--dy-text);border:1px solid var(--dy-border);border-radius:26px;box-shadow:var(--dy-shadow);z-index:99991;overflow:hidden;display:none;flex-direction:column;backdrop-filter:blur(18px)}
.dy-panel.open{display:flex;animation:dyIn .18s ease-out}
@keyframes dyIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.dy-head{padding:17px 18px;display:flex;align-items:center;gap:11px;background:linear-gradient(135deg,rgba(7,21,34,.98),rgba(11,39,57,.96));color:#fff}
.dy-avatar{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#ff9b42,#ef6d12);font-weight:900}
.dy-head-copy{flex:1;min-width:0}.dy-title{font-weight:800;font-size:16px}.dy-status{font-size:11px;opacity:.72;margin-top:2px}
.dy-close{width:34px;height:34px;border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:10px;cursor:pointer;font-size:20px}
.dy-messages{flex:1;overflow:auto;padding:16px 14px 10px;display:flex;flex-direction:column;gap:10px}
.dy-msg{max-width:88%;padding:11px 13px;border-radius:16px;font-size:13px;line-height:1.9;white-space:pre-wrap}
.dy-msg.bot{align-self:flex-start;background:rgba(127,145,158,.12);border:1px solid var(--dy-border)}
.dy-msg.user{align-self:flex-end;background:#f58220;color:#fff}
.dy-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.dy-links a{font-size:11px;color:var(--dy-accent);text-decoration:none;font-weight:700}
.dy-chips{display:flex;gap:7px;overflow:auto;padding:8px 13px 3px;scrollbar-width:none}.dy-chip{white-space:nowrap;border:1px solid var(--dy-border);background:transparent;color:var(--dy-text);padding:7px 10px;border-radius:999px;font:inherit;font-size:11px;cursor:pointer}.dy-chip:hover{border-color:#f58220}
.dy-form{display:flex;gap:8px;padding:11px 13px 13px;border-top:1px solid var(--dy-border)}.dy-input{min-width:0;flex:1;border:1px solid var(--dy-border);background:transparent;color:var(--dy-text);border-radius:14px;padding:11px 12px;outline:none;font:inherit;font-size:13px}.dy-input:focus{border-color:#f58220}.dy-send{width:45px;border:0;border-radius:14px;background:#f58220;color:#fff;cursor:pointer;font-size:18px}
.dy-note{text-align:center;font-size:9px;color:var(--dy-muted);padding:0 14px 7px}
@media(max-width:600px){.dy-launcher{right:15px;bottom:15px;width:56px;height:56px;border-radius:18px}.dy-panel{right:10px;bottom:80px;width:calc(100vw - 20px);height:min(650px,calc(100vh - 100px));border-radius:22px}.dy-msg{font-size:12px}}
@media(prefers-reduced-motion:reduce){.dy-panel.open,.dy-launcher{animation:none;transition:none}}

/* V82 assistant visual upgrade */
.dy-launcher{width:66px;height:66px;border-radius:22px;background:linear-gradient(145deg,#08bff2,#076cff 55%,#f58220);box-shadow:0 18px 45px rgba(8,124,255,.28),0 8px 25px rgba(245,130,32,.20);border:1px solid rgba(255,255,255,.42)}
.dy-launcher-mark{font-size:27px;font-weight:900;text-shadow:0 2px 12px rgba(0,0,0,.25)}
.dy-panel{border:1px solid rgba(8,124,255,.20);box-shadow:0 30px 90px rgba(0,20,45,.30)}
.dy-head{background:linear-gradient(135deg,#061725,#083b59 62%,#0a6683)}
.dy-avatar{background:linear-gradient(145deg,#09c8f4,#086dff);box-shadow:0 8px 20px rgba(0,145,255,.25)}
.dy-send{background:linear-gradient(135deg,#087cff,#08bce8);box-shadow:0 8px 18px rgba(8,124,255,.18)}
@media(max-width:600px){.dy-launcher{width:58px;height:58px;border-radius:19px}.dy-launcher-mark{font-size:24px}}

/* V85 — Delta Yar readability / explicit contrast fix */
.dy-panel,
.dy-panel *{box-sizing:border-box}
.dy-panel{background:#f7fbfe!important;color:#10202d!important}
.dy-panel .dy-head{color:#fff!important}
.dy-panel .dy-title{color:#fff!important}
.dy-panel .dy-status{color:#bfefff!important}
.dy-panel .dy-close{color:#fff!important}
.dy-panel .dy-messages{background:#f7fbfe!important;color:#10202d!important}
.dy-panel .dy-msg{color:#10202d!important;text-shadow:none!important}
.dy-panel .dy-msg.bot{background:#eaf4f8!important;border:1px solid #c9dfe9!important;color:#10202d!important}
.dy-panel .dy-msg.user{background:linear-gradient(135deg,#087cff,#08bde9)!important;color:#fff!important;border:0!important}
.dy-panel .dy-chip{background:#fff!important;color:#123044!important;border:1px solid #b9d3df!important;font-weight:700!important}
.dy-panel .dy-chip:hover{background:#e8f8fc!important;color:#075b87!important;border-color:#08bde9!important}
.dy-panel .dy-form{background:#f7fbfe!important;border-top:1px solid #d5e4eb!important}
.dy-panel .dy-input{background:#fff!important;color:#10202d!important;border:1px solid #b9d3df!important;caret-color:#087cff!important}
.dy-panel .dy-input::placeholder{color:#718594!important;opacity:1!important}
.dy-panel .dy-input:focus{background:#fff!important;color:#10202d!important;border-color:#08bde9!important;box-shadow:0 0 0 3px rgba(8,189,233,.12)!important}
.dy-panel .dy-send{color:#fff!important}
.dy-panel .dy-note{color:#5f7482!important}
html[data-theme="dark"] .dy-panel{background:#081a28!important;color:#edfaff!important}
html[data-theme="dark"] .dy-panel .dy-messages{background:#081a28!important;color:#edfaff!important}
html[data-theme="dark"] .dy-panel .dy-msg{color:#edfaff!important}
html[data-theme="dark"] .dy-panel .dy-msg.bot{background:#102b3d!important;border-color:#24485c!important;color:#edfaff!important}
html[data-theme="dark"] .dy-panel .dy-chip{background:#102b3d!important;color:#dff8ff!important;border-color:#31586d!important}
html[data-theme="dark"] .dy-panel .dy-chip:hover{background:#153d53!important;color:#fff!important}
html[data-theme="dark"] .dy-panel .dy-form{background:#081a28!important;border-top-color:#24485c!important}
html[data-theme="dark"] .dy-panel .dy-input{background:#102b3d!important;color:#edfaff!important;border-color:#31586d!important}
html[data-theme="dark"] .dy-panel .dy-input::placeholder{color:#9bb4c2!important}
html[data-theme="dark"] .dy-panel .dy-note{color:#9bb4c2!important}

/* V86 — DELTA YAR cinematic motion + maximum readability */
.dy-launcher{
  animation:dyLauncherFloat 3.2s ease-in-out infinite,dyLauncherGlow 2.2s ease-in-out infinite;
  transform-origin:center;
}
.dy-launcher::before{content:"";position:absolute;inset:-7px;border-radius:inherit;border:1px solid rgba(80,225,255,.30);animation:dyRing 2.6s ease-out infinite;pointer-events:none}
.dy-launcher::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(120deg,transparent 25%,rgba(255,255,255,.34) 48%,transparent 68%);transform:translateX(-120%);animation:dyShine 3.8s ease-in-out infinite;pointer-events:none}
.dy-launcher-mark{position:relative;z-index:2;animation:dyMarkPulse 2.4s ease-in-out infinite}
.dy-badge{z-index:4;animation:dyOnline 1.8s ease-in-out infinite}
.dy-panel.open{animation:dyPanelEnter .48s cubic-bezier(.16,1,.3,1)}
.dy-head{position:relative;overflow:hidden}
.dy-head::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 15%,rgba(91,228,255,.14) 45%,transparent 72%);transform:translateX(-120%);animation:dyHeaderSweep 4.5s ease-in-out infinite;pointer-events:none}
.dy-avatar{position:relative;z-index:1;animation:dyAvatarFloat 2.8s ease-in-out infinite}
.dy-avatar::after{content:"";position:absolute;inset:-4px;border-radius:inherit;border:1px solid rgba(89,226,255,.35);animation:dyAvatarRing 2.2s ease-out infinite}
.dy-title,.dy-status{position:relative;z-index:2}
.dy-messages{scroll-behavior:smooth}
.dy-msg{animation:dyMessageIn .42s cubic-bezier(.2,.8,.2,1) both;box-shadow:0 7px 20px rgba(4,35,55,.05)}
.dy-msg.bot{color:#071a28!important;background:#ffffff!important;border-color:#b7d6e5!important;font-weight:650!important}
.dy-msg.user{color:#ffffff!important;font-weight:700!important}
.dy-chip{animation:dyChipIn .5s cubic-bezier(.2,.8,.2,1) both}
.dy-chip:nth-child(1){animation-delay:.04s}.dy-chip:nth-child(2){animation-delay:.09s}.dy-chip:nth-child(3){animation-delay:.14s}.dy-chip:nth-child(4){animation-delay:.19s}.dy-chip:nth-child(5){animation-delay:.24s}.dy-chip:nth-child(6){animation-delay:.29s}
.dy-chip:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(8,189,233,.16)}
.dy-input{transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.dy-input:focus{transform:translateY(-1px)}
.dy-send{position:relative;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.dy-send::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 20%,rgba(255,255,255,.35) 50%,transparent 80%);transform:translateX(-120%);animation:dySendShine 2.8s ease-in-out infinite}
.dy-send:hover{transform:translateY(-2px) scale(1.03);box-shadow:0 12px 26px rgba(8,124,255,.28)!important}
.dy-send:active{transform:scale(.96)}
.dy-note{animation:dyNoteFade 2s ease-in-out infinite alternate}
html[data-theme="dark"] .dy-msg.bot{background:#102f43!important;color:#f4fcff!important;border-color:#2b6078!important}
html[data-theme="dark"] .dy-chip{background:#0d2636!important;color:#effcff!important}
@keyframes dyLauncherFloat{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-5px) rotate(1deg)}}
@keyframes dyLauncherGlow{0%,100%{filter:brightness(1);box-shadow:0 16px 42px rgba(8,124,255,.30),0 0 0 1px rgba(118,235,255,.22) inset}50%{filter:brightness(1.08);box-shadow:0 22px 54px rgba(8,124,255,.42),0 0 24px rgba(8,205,245,.18),0 0 0 1px rgba(164,246,255,.42) inset}}
@keyframes dyRing{0%{transform:scale(.96);opacity:.65}75%,100%{transform:scale(1.28);opacity:0}}
@keyframes dyShine{0%,58%{transform:translateX(-120%)}78%,100%{transform:translateX(120%)}}
@keyframes dyMarkPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.1)}}
@keyframes dyOnline{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.35)}50%{box-shadow:0 0 0 6px rgba(34,197,94,0)}}
@keyframes dyPanelEnter{0%{opacity:0;transform:translateY(30px) scale(.92);filter:blur(6px)}55%{opacity:1;transform:translateY(-5px) scale(1.015);filter:blur(0)}100%{transform:none}}
@keyframes dyHeaderSweep{0%,55%{transform:translateX(-120%)}78%,100%{transform:translateX(120%)}}
@keyframes dyAvatarFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes dyAvatarRing{0%{transform:scale(.9);opacity:.7}80%,100%{transform:scale(1.2);opacity:0}}
@keyframes dyMessageIn{0%{opacity:0;transform:translateY(12px) scale(.96)}100%{opacity:1;transform:none}}
@keyframes dyChipIn{0%{opacity:0;transform:translateY(8px)}100%{opacity:1;transform:none}}
@keyframes dySendShine{0%,55%{transform:translateX(-120%)}78%,100%{transform:translateX(120%)}}
@keyframes dyNoteFade{from{opacity:.55}to{opacity:1}}
@media(max-width:600px){.dy-panel.open{animation-duration:.4s}.dy-launcher{animation-duration:3.6s}.dy-msg{line-height:1.85}}
@media(prefers-reduced-motion:reduce){.dy-launcher,.dy-launcher::before,.dy-launcher::after,.dy-launcher-mark,.dy-badge,.dy-panel.open,.dy-head::after,.dy-avatar,.dy-avatar::after,.dy-msg,.dy-chip,.dy-send::after,.dy-note{animation:none!important}.dy-chip,.dy-send,.dy-input{transition:none!important}}
