/* Kade assistant: floating chat panel opened by the round chat button. Plus Jakarta Sans only (inherited).
   The old on-page section (#assistant) is kept in the markup but hidden. */
#assistant[hidden]{display:none!important}

#kade-assistant.as-float{position:fixed;inset:auto 20px 20px auto;margin:0;padding:0;border:0;width:410px;max-width:calc(100vw - 24px);height:min(660px,calc(100dvh - 32px));background:transparent;overflow:visible;z-index:2147483000;color:#0c1f4f}
#kade-assistant:not([open]){display:none}
#kade-assistant.as-float[open]{animation:as-pop .28s cubic-bezier(.2,.9,.3,1.1)}
@keyframes as-pop{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
#kade-assistant *{box-sizing:border-box}
#kade-assistant .as-chat{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden;border-radius:26px;background:#fff;box-shadow:0 30px 80px rgba(8,26,80,.4),0 0 0 1px rgba(27,91,230,.12)}

/* Header */
#kade-assistant .as-top{position:relative;display:flex;align-items:center;gap:12px;padding:16px 16px 16px 18px;color:#fff;background:radial-gradient(120% 140% at 0 0,#2f7bff 0,transparent 55%),linear-gradient(120deg,#0b1a44,#12307a 70%,#1b3f9a)}
#kade-assistant .as-av{position:relative;flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:18px;background:linear-gradient(135deg,#20d4ff,#1b5be6);box-shadow:0 0 0 3px rgba(255,255,255,.18)}
#kade-assistant .as-av i{position:absolute;right:0;bottom:1px;width:12px;height:12px;border-radius:50%;background:#3ddc84;border:2px solid #12307a}
#kade-assistant .as-id{min-width:0}
#kade-assistant .as-id b{display:block;font-size:17px;font-weight:700;letter-spacing:-.01em}
#kade-assistant .as-id small{display:block;margin-top:1px;font-size:13px;color:#b9cdf7}
#kade-assistant .as-lang{margin-left:auto;display:flex;padding:3px;border-radius:999px;background:rgba(255,255,255,.14)}
#kade-assistant .as-lang button{border:0;background:none;color:#dbe6ff;font-family:inherit;font-size:12px;font-weight:700;letter-spacing:.06em;padding:6px 11px;border-radius:999px;cursor:pointer}
#kade-assistant .as-lang button[aria-pressed=true]{background:#fff;color:#12307a}
#kade-assistant .as-close{flex:none;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center}
#kade-assistant .as-close:hover{background:rgba(255,255,255,.26)}

/* Conversation */
#kade-assistant .as-msgs{flex:1;min-height:0;overflow:auto;padding:18px 16px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,#f3f7ff,#fafcff);scroll-behavior:smooth}
#kade-assistant .as-row{display:flex;gap:8px;align-items:flex-end;animation:as-in .25s ease both}
@keyframes as-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
#kade-assistant .as-row-user{justify-content:flex-end}
#kade-assistant .as-mini{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;color:#fff;background:linear-gradient(135deg,#20d4ff,#1b5be6)}
#kade-assistant .as-m{max-width:80%;padding:12px 15px;border-radius:18px;font-size:15px;line-height:1.55;overflow-wrap:anywhere;font-weight:500}
#kade-assistant .as-bot{background:#fff;color:#14264f;border-bottom-left-radius:6px;box-shadow:0 2px 10px rgba(30,70,150,.08)}
#kade-assistant .as-user{background:linear-gradient(130deg,#1b5be6,#2f7bff);color:#fff;border-bottom-right-radius:6px;box-shadow:0 6px 16px rgba(27,91,230,.25)}
#kade-assistant .as-typing{display:flex;gap:5px;padding:15px 17px}
#kade-assistant .as-typing i{width:8px;height:8px;border-radius:50%;background:#9db5e8;animation:as-dot 1.2s infinite}
#kade-assistant .as-typing i:nth-child(2){animation-delay:.15s}#kade-assistant .as-typing i:nth-child(3){animation-delay:.3s}
@keyframes as-dot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}

/* Welcome */
#kade-assistant .as-welcome{display:flex;flex-direction:column;gap:16px;animation:as-in .3s ease both}
#kade-assistant .as-hero h3{margin:0;font-size:22px;line-height:1.2;font-weight:800;letter-spacing:-.02em;color:#0c1f4f}
#kade-assistant .as-hero p{margin:6px 0 0;font-size:15px;line-height:1.55;color:#4b5a7c;font-weight:400}
#kade-assistant .as-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#kade-assistant .as-tile{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:14px;border:1.5px solid #dbe5f7;border-radius:18px;background:#fff;text-align:left;font-family:inherit;color:inherit;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
#kade-assistant .as-tile:hover,#kade-assistant .as-tile:focus-visible{transform:translateY(-2px);border-color:#1b5be6;box-shadow:0 10px 24px rgba(27,91,230,.16)}
#kade-assistant .as-tile-ico{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#e4edff;color:#1b5be6}
#kade-assistant .as-tile-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#kade-assistant .as-tile-text b{display:block;font-size:15px;font-weight:700;color:#0c1f4f}
#kade-assistant .as-tile-text small{display:block;margin-top:2px;font-size:13px;color:#64739a}
#kade-assistant .as-tile:nth-child(4) .as-tile-ico{background:#e3f7ec;color:#0f8a4a}

/* Plan card */
#kade-assistant .as-row-card{align-items:flex-start}#kade-assistant .as-row-card .as-plan{flex:1;min-width:0;width:auto}
#kade-assistant .as-plan{width:100%;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(27,91,230,.14);border:1.5px solid #bcd0fb}
#kade-assistant .as-plan-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px 16px;background:linear-gradient(120deg,#0b1a44,#12307a);color:#fff}
#kade-assistant .as-plan-head small{display:block;font-size:11px;font-weight:700;letter-spacing:.1em;color:#8fd8ff}
#kade-assistant .as-plan-head b{display:block;margin-top:3px;font-size:18px;font-weight:800;letter-spacing:-.01em}
#kade-assistant .as-plan-price{text-align:right}
#kade-assistant .as-plan-price strong{display:block;font-size:19px;font-weight:800;white-space:nowrap}
#kade-assistant .as-plan-price span{font-size:12px;color:#b9cdf7}
#kade-assistant .as-speed{display:inline-block;margin:12px 16px 0;padding:4px 11px;border-radius:999px;background:#e4edff;color:#1b5be6;font-size:13px;font-weight:700}
#kade-assistant .as-plan ul{margin:10px 0 0;padding:0 16px;list-style:none;display:grid;gap:7px}
#kade-assistant .as-plan li{display:flex;align-items:center;gap:8px;font-size:14px;color:#2b3a63;font-weight:500}
#kade-assistant .as-plan li svg{flex:none;width:16px;height:16px;fill:none;stroke:#12a150;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
#kade-assistant .as-plan-more{display:block;margin:12px 16px 14px;font-size:13.5px;font-weight:700;color:#1b5be6;text-decoration:none}

/* Actions and chips */
#kade-assistant .as-row-actions{padding-left:34px}
#kade-assistant .as-actions{display:flex;flex-wrap:wrap;gap:8px}
#kade-assistant .as-act{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:14px;border:1.5px solid #1b5be6;background:#fff;color:#1b5be6;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;text-decoration:none}
#kade-assistant .as-act:hover{background:#eef4ff}
#kade-assistant .as-act.is-primary{background:linear-gradient(120deg,#1b5be6,#2f7bff);border-color:transparent;color:#fff;box-shadow:0 8px 20px rgba(27,91,230,.3)}
#kade-assistant .as-chips{display:flex;gap:8px;padding:10px 16px;overflow-x:auto;background:#fafcff;border-top:1px solid #eaf0fb;scrollbar-width:none}
#kade-assistant .as-chips[hidden]{display:none}
#kade-assistant .as-chips::-webkit-scrollbar{display:none}
#kade-assistant .as-chips button{flex:none;border:1.5px solid #cdd9f2;border-radius:999px;padding:8px 14px;background:#fff;color:#14264f;font-family:inherit;font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap}
#kade-assistant .as-chips button:hover{border-color:#1b5be6;color:#1b5be6}

/* Composer */
#kade-assistant .as-form{display:flex;gap:10px;align-items:center;padding:12px 14px;background:#fff;border-top:1px solid #eaf0fb}
#kade-assistant .as-form input{flex:1;min-width:0;height:48px;padding:0 18px;border:1.5px solid #dbe5f7;border-radius:999px;background:#f5f8ff;color:#0c1f4f;font-family:inherit;font-size:16px;outline:0;transition:border-color .15s ease,background .15s ease}
#kade-assistant .as-form input::placeholder{color:#8792ab}
#kade-assistant .as-form input:focus{border-color:#1b5be6;background:#fff}
#kade-assistant .as-form button{flex:none;width:48px;height:48px;border:0;border-radius:50%;background:linear-gradient(130deg,#1b5be6,#2f7bff);color:#fff;cursor:pointer;display:grid;place-items:center;box-shadow:0 8px 18px rgba(27,91,230,.35)}
#kade-assistant .as-form button:disabled{opacity:.5;cursor:wait}
#kade-assistant .as-form svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#kade-assistant .as-note{margin:0;padding:0 18px 12px;background:#fff;font-size:12px;line-height:1.5;color:#6a7590}
#kade-assistant .as-note a{color:#1b5be6;font-weight:700;white-space:nowrap}
#kade-assistant button:focus-visible,#kade-assistant a:focus-visible{outline:3px solid #1b5be6;outline-offset:2px}

/* Teaser bubble beside the chat button */
.as-teaser{position:fixed;right:96px;bottom:30px;z-index:2147482000;display:flex;align-items:flex-start;gap:4px;animation:as-in .35s ease both}
.as-teaser-msg{display:flex;flex-direction:column;gap:2px;max-width:230px;padding:12px 16px;border:0;border-radius:18px 18px 4px 18px;background:#fff;color:#0c1f4f;font-family:inherit;text-align:left;cursor:pointer;box-shadow:0 14px 36px rgba(8,26,80,.28);border:1px solid #dbe5f7}
.as-teaser-msg b{font-size:15px;font-weight:800}
.as-teaser-msg span{font-size:14px;color:#4b5a7c;font-weight:500}
.as-teaser-x{width:24px;height:24px;margin-top:-8px;border:0;border-radius:50%;background:#0b1a44;color:#fff;font-size:16px;line-height:1;cursor:pointer}

/* Dark scheme */
html[data-scheme=dark] #kade-assistant .as-chat{background:#0f1a36;box-shadow:0 30px 80px rgba(0,0,0,.6),0 0 0 1px #22335f}
html[data-scheme=dark] #kade-assistant .as-msgs{background:linear-gradient(180deg,#0b1530,#0d1832)}
html[data-scheme=dark] #kade-assistant .as-bot,html[data-scheme=dark] #kade-assistant .as-tile,html[data-scheme=dark] #kade-assistant .as-plan{background:#14224a;color:#e8eeff;box-shadow:none;border-color:#27396b}
html[data-scheme=dark] #kade-assistant .as-hero h3,html[data-scheme=dark] #kade-assistant .as-tile-text b{color:#eef3ff}
html[data-scheme=dark] #kade-assistant .as-hero p,html[data-scheme=dark] #kade-assistant .as-tile-text small,html[data-scheme=dark] #kade-assistant .as-note{color:#a3b2d4}
html[data-scheme=dark] #kade-assistant .as-tile-ico,html[data-scheme=dark] #kade-assistant .as-speed{background:#1c2f66;color:#8db4ff}
html[data-scheme=dark] #kade-assistant .as-plan li{color:#d4def5}
html[data-scheme=dark] #kade-assistant .as-chips,html[data-scheme=dark] #kade-assistant .as-form,html[data-scheme=dark] #kade-assistant .as-note{background:#0f1a36;border-color:#22335f}
html[data-scheme=dark] #kade-assistant .as-chips button,html[data-scheme=dark] #kade-assistant .as-act{background:#14224a;color:#e8eeff;border-color:#3b5bb0}
html[data-scheme=dark] #kade-assistant .as-act.is-primary{background:linear-gradient(120deg,#1b5be6,#2f7bff);border-color:transparent}
html[data-scheme=dark] #kade-assistant .as-form input{background:#0b1530;border-color:#27396b;color:#eef3ff}
html[data-scheme=dark] .as-teaser-msg{background:#14224a;color:#eef3ff;border-color:#27396b}
html[data-scheme=dark] .as-teaser-msg span{color:#a3b2d4}

@media (max-width:620px){
  #kade-assistant.as-float{inset:auto 0 0 0;width:100vw;max-width:none;height:min(720px,calc(100dvh - 12px))}
  #kade-assistant .as-chat{border-radius:24px 24px 0 0}
  .as-teaser{right:84px;bottom:24px}
}
@media (prefers-reduced-motion:reduce){#kade-assistant.as-float[open],#kade-assistant .as-row,#kade-assistant .as-welcome,.as-teaser,#kade-assistant .as-typing i{animation:none}#kade-assistant .as-msgs{scroll-behavior:auto}}
