/* Code24 website assistant – uses the site's own colour and font variables, with fallbacks */
.c24c-launch{position:fixed;right:20px;bottom:20px;z-index:60;display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 18px 0 16px;border:0;border-radius:999px;
  background:var(--midnight,#00003B);color:#fff;font:500 .9375rem/1 var(--f-display,system-ui,sans-serif);cursor:pointer;box-shadow:0 12px 28px -10px rgba(0,0,59,.55);transition:transform .15s ease,background-color .15s ease}
.c24c-launch svg{color:var(--aqua,#1DF4ED)}
.c24c-launch:hover{transform:translateY(-1px)}
.c24c-launch:focus-visible{outline:3px solid var(--aqua,#1DF4ED);outline-offset:3px}
.c24c-launch.is-open span{display:none}
.c24c-launch.is-open{padding:0 14px}

.c24c-panel{position:fixed;right:20px;bottom:80px;z-index:60;display:flex;flex-direction:column;width:min(380px,calc(100vw - 32px));height:min(560px,calc(100vh - 120px));
  background:#fff;color:var(--ink,#0B0B2E);border-radius:18px;overflow:hidden;box-shadow:0 24px 60px -20px rgba(0,0,59,.5);border:1px solid rgba(0,0,59,.08)}
.c24c-panel[hidden]{display:none}
.c24c-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 14px 12px 16px;background:var(--midnight,#00003B);color:#fff}
.c24c-title{margin:0;font:500 1rem/1.2 var(--f-display,system-ui,sans-serif)}
.c24c-sub{margin:4px 0 0;font-size:.8125rem;line-height:1.35;color:rgba(255,255,255,.72)}
.c24c-close{flex:none;display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;cursor:pointer}
.c24c-close:hover{background:rgba(255,255,255,.2)}

.c24c-log{flex:1;min-height:0;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#F7F6FF}
.c24c-msg{max-width:88%;padding:9px 12px;border-radius:14px;font-size:.9375rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.c24c-assistant{align-self:flex-start;background:#fff;border:1px solid rgba(0,0,59,.08);border-bottom-left-radius:4px}
.c24c-user{align-self:flex-end;background:var(--midnight,#00003B);color:#fff;border-bottom-right-radius:4px}
.c24c-msg a{color:inherit;text-decoration:underline;text-decoration-color:var(--aqua,#1DF4ED);text-decoration-thickness:2px;text-underline-offset:3px}
.c24c-error{border-color:#F5B5B5;background:#FFF5F5}
.c24c-wait{color:rgba(0,0,59,.5);letter-spacing:2px}
@media (prefers-reduced-motion:no-preference){.c24c-wait{animation:c24cblink 1s ease-in-out infinite}}
@keyframes c24cblink{50%{opacity:.35}}

.c24c-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px;background:#F7F6FF}
.c24c-chips[hidden]{display:none}
.c24c-chip{padding:7px 11px;border:1px solid rgba(0,0,59,.18);border-radius:999px;background:#fff;color:var(--midnight,#00003B);font-size:.8125rem;line-height:1.2;cursor:pointer;text-align:left}
.c24c-chip:hover{border-color:var(--midnight,#00003B)}

.c24c-form{display:flex;align-items:flex-end;gap:8px;padding:10px 10px 8px 14px;border-top:1px solid rgba(0,0,59,.08)}
.c24c-input{flex:1;min-width:0;resize:none;max-height:120px;padding:9px 2px;border:0;outline:0;font:inherit;font-size:.9375rem;line-height:1.4;color:inherit;background:transparent}
.c24c-send{flex:none;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:var(--midnight,#00003B);color:var(--aqua,#1DF4ED);cursor:pointer}
.c24c-send:disabled{opacity:.5;cursor:default}
.c24c-send:focus-visible,.c24c-chip:focus-visible,.c24c-close:focus-visible{outline:3px solid var(--aqua,#1DF4ED);outline-offset:2px}
.c24c-foot{margin:0;padding:0 14px 10px;font-size:.75rem;line-height:1.35;color:rgba(0,0,59,.6)}
.c24c-foot a{color:inherit}

@media (max-width:640px){
  .c24c-launch{right:14px;bottom:14px;height:44px}
  .c24c-panel{right:8px;left:8px;bottom:68px;width:auto;height:calc(100vh - 96px);height:calc(100dvh - 96px)}
}
@media print{.c24c-launch,.c24c-panel{display:none!important}}
