:root{--arqs-ai-bg:#07111b;--arqs-ai-panel:#0d1a26;--arqs-ai-text:#f7f4ec;--arqs-ai-muted:#c5d0d9;--arqs-ai-accent:#f0c766;--arqs-ai-line:#486070;--arqs-ai-shadow:0 20px 54px rgba(0,0,0,.34)}
.arqs-ai-dock,.arqs-ai-dock *{box-sizing:border-box}
.arqs-ai-dock{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:2147482000;font:15px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--arqs-ai-text)}
.arqs-ai-launch{display:flex;align-items:center;gap:10px;min-height:52px;padding:10px 16px;border:1px solid var(--arqs-ai-accent);border-radius:999px;background:var(--arqs-ai-bg);color:var(--arqs-ai-text);box-shadow:var(--arqs-ai-shadow);font:800 14px/1.1 inherit;cursor:pointer}
.arqs-ai-launch::before{content:"AI";display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--arqs-ai-accent);color:#111820;font-size:11px;font-weight:950;letter-spacing:.08em}
.arqs-ai-launch:hover{transform:translateY(-1px)}
.arqs-ai-launch:focus-visible,.arqs-ai-panel button:focus-visible,.arqs-ai-panel a:focus-visible{outline:3px solid var(--arqs-ai-accent);outline-offset:3px}
.arqs-ai-panel{position:absolute;right:0;bottom:66px;width:min(390px,calc(100vw - 24px));max-height:min(680px,calc(100vh - 104px));display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--arqs-ai-line);border-radius:22px;background:var(--arqs-ai-panel);box-shadow:var(--arqs-ai-shadow)}
.arqs-ai-panel[hidden]{display:none}
.arqs-ai-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 18px 14px;background:linear-gradient(135deg,var(--arqs-ai-bg),var(--arqs-ai-panel));border-bottom:1px solid var(--arqs-ai-line)}
.arqs-ai-kicker{color:var(--arqs-ai-accent);font-size:10px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.arqs-ai-title{margin:3px 0 0;color:var(--arqs-ai-text);font-size:19px;line-height:1.2}
.arqs-ai-close{flex:0 0 40px;width:40px;height:40px;border:1px solid var(--arqs-ai-line);border-radius:50%;background:transparent;color:var(--arqs-ai-text);font-size:22px;cursor:pointer}
.arqs-ai-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:10px 12px;border-bottom:1px solid var(--arqs-ai-line);background:var(--arqs-ai-bg)}
.arqs-ai-mode{min-height:42px;padding:7px 4px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--arqs-ai-muted);font:850 12px/1.15 inherit;cursor:pointer}
.arqs-ai-mode[aria-selected="true"]{border-color:var(--arqs-ai-accent);background:rgba(240,199,102,.16);color:var(--arqs-ai-text)}
.arqs-ai-body{min-height:240px;overflow:auto;padding:16px}
.arqs-ai-message{margin:0 0 14px;padding:12px 14px;border:1px solid var(--arqs-ai-line);border-radius:16px;background:var(--arqs-ai-bg);color:var(--arqs-ai-text)}
.arqs-ai-message p{margin:0;color:inherit}
.arqs-ai-message small{display:block;margin-top:7px;color:var(--arqs-ai-muted)}
.arqs-ai-actions{display:grid;gap:8px}
.arqs-ai-action{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:10px 12px;border:1px solid var(--arqs-ai-line);border-radius:12px;background:transparent;color:var(--arqs-ai-text);text-align:left;text-decoration:none;font:750 13px/1.25 inherit;cursor:pointer}
.arqs-ai-action::after{content:"→";color:var(--arqs-ai-accent)}
.arqs-ai-action:hover{border-color:var(--arqs-ai-accent)}
.arqs-ai-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--arqs-ai-line);background:var(--arqs-ai-bg)}
.arqs-ai-input{min-width:0;flex:1;min-height:44px;padding:10px 12px;border:1px solid var(--arqs-ai-line);border-radius:12px;background:#fff;color:#111820;font:16px/1.2 inherit}
.arqs-ai-send{min-width:58px;min-height:44px;padding:8px 12px;border:0;border-radius:12px;background:var(--arqs-ai-accent);color:#111820;font:900 13px/1 inherit;cursor:pointer}
.arqs-ai-foot{padding:8px 14px 12px;background:var(--arqs-ai-bg);color:var(--arqs-ai-muted);font-size:10px;text-align:center}
.arqs-ai-foot a{color:var(--arqs-ai-accent)}
.arqs-ai-dock .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html[data-place="townline"]{--arqs-ai-bg:#173b31;--arqs-ai-panel:#fffaf0;--arqs-ai-text:#102820;--arqs-ai-muted:#405b53;--arqs-ai-accent:#dd8c4b;--arqs-ai-line:#9eb8ad}
html[data-place="kids"]{--arqs-ai-bg:#5b3f94;--arqs-ai-panel:#fff8e7;--arqs-ai-text:#35245e;--arqs-ai-muted:#665780;--arqs-ai-accent:#f5bd43;--arqs-ai-line:#b9a7db}
html[data-place="campus"]{--arqs-ai-bg:#071a34;--arqs-ai-panel:#0d2847;--arqs-ai-text:#fff8e7;--arqs-ai-muted:#d7e2ed;--arqs-ai-accent:#f3d58b;--arqs-ai-line:#617892}
html[data-place="tan"]{--arqs-ai-bg:#352219;--arqs-ai-panel:#fff4e8;--arqs-ai-text:#352219;--arqs-ai-muted:#735b4d;--arqs-ai-accent:#e39a62;--arqs-ai-line:#c6a68f}
/* T03 2026-10-08: the light-panel themes (tan, kids) set a dark --arqs-ai-text, which also lands on the dark --arqs-ai-bg
   surfaces (launch pill, intro message, mode tabs, header, footer): keep light text there. Townline has its own overrides. */
html[data-place="tan"] .arqs-ai-head,html[data-place="kids"] .arqs-ai-head{background:var(--arqs-ai-bg)}
html[data-place="tan"] .arqs-ai-launch,html[data-place="kids"] .arqs-ai-launch,html[data-place="tan"] .arqs-ai-message,html[data-place="kids"] .arqs-ai-message,html[data-place="tan"] .arqs-ai-title,html[data-place="kids"] .arqs-ai-title,html[data-place="tan"] .arqs-ai-close,html[data-place="kids"] .arqs-ai-close,html[data-place="tan"] .arqs-ai-mode[aria-selected="true"],html[data-place="kids"] .arqs-ai-mode[aria-selected="true"]{color:#fff8ee}
html[data-place="tan"] .arqs-ai-message small,html[data-place="kids"] .arqs-ai-message small,html[data-place="tan"] .arqs-ai-mode,html[data-place="kids"] .arqs-ai-mode,html[data-place="tan"] .arqs-ai-foot,html[data-place="kids"] .arqs-ai-foot{color:#ecdccd}
/* page-wide link colours (e.g. kids-reading-bright.css "html body a ... !important") must not recolour the dock's own links */
html:not([data-place="townline"]) .arqs-ai-dock a.arqs-ai-action{color:var(--arqs-ai-text)!important}
html:not([data-place="townline"]) .arqs-ai-dock .arqs-ai-foot a{color:var(--arqs-ai-accent)!important}
html:not([data-place="townline"]) .arqs-ai-dock .arqs-ai-head .arqs-ai-title{color:#fff8ee!important}
@media(max-width:640px){.arqs-ai-dock{right:10px;bottom:max(10px,env(safe-area-inset-bottom));left:10px;display:flex;justify-content:flex-end}.arqs-ai-panel{position:fixed;left:8px;right:8px;bottom:74px;width:auto;max-height:calc(100dvh - 90px);border-radius:18px}.arqs-ai-launch{min-height:50px;padding:9px 14px}.arqs-ai-body{min-height:210px}.arqs-ai-mode{font-size:11px}}
@media(prefers-reduced-motion:reduce){.arqs-ai-launch{transition:none}}
@media(print){.arqs-ai-dock{display:none!important}}


/* TOWNLINE WARM PREMIUM OVERRIDE · founder screenshot correction 2026-10-08 */
html:root[data-place="townline"]{
  --arqs-ai-bg:#173b35;--arqs-ai-panel:#fffaf2;--arqs-ai-text:#173b35;--arqs-ai-muted:#63716b;
  --arqs-ai-accent:#d6a95e;--arqs-ai-line:#d8d0c2;--arqs-ai-shadow:0 18px 46px rgba(25,47,42,.18)}
html:root[data-place="townline"] body .arqs-ai-dock .arqs-ai-launch.arqs-ai-launch{
  background:#173b35!important;color:#fff!important;border:1px solid rgba(255,255,255,.92)!important;
  box-shadow:0 10px 24px rgba(23,59,53,.22)!important}
html:root[data-place="townline"] body .arqs-ai-dock .arqs-ai-launch.arqs-ai-launch::before{
  background:#f1d99b!important;color:#173b35!important}
html:root[data-place="townline"] body .arqs-ai-panel{
  background:#fffaf2!important;color:#173b35!important;border:1px solid #d8d0c2!important;
  box-shadow:0 22px 60px rgba(23,59,53,.20)!important}
html:root[data-place="townline"] body .arqs-ai-head{
  background:#fffaf2!important;border-bottom:1px solid #ddd5c8!important}
html:root[data-place="townline"] body .arqs-ai-kicker{color:#7b6844!important}
html:root[data-place="townline"] body .arqs-ai-title,
html:root[data-place="townline"] body .arqs-ai-close{color:#173b35!important}
html:root[data-place="townline"] body .arqs-ai-close{border-color:#cfc6b8!important}
html:root[data-place="townline"] body .arqs-ai-modes{
  background:#f2ede4!important;border-bottom:1px solid #d8d0c2!important}
html:root[data-place="townline"] body .arqs-ai-mode{color:#60706a!important}
html:root[data-place="townline"] body .arqs-ai-mode[aria-selected="true"]{
  background:#e1ebe6!important;color:#173b35!important;border-color:#4e7a6f!important}
html:root[data-place="townline"] body .arqs-ai-message{
  background:#f5f0e7!important;color:#173b35!important;border-color:#ddd5c8!important}
html:root[data-place="townline"] body .arqs-ai-message p{color:#173b35!important}
html:root[data-place="townline"] body .arqs-ai-message small{color:#63716b!important}
html:root[data-place="townline"] body .arqs-ai-action{
  background:#fff!important;color:#173b35!important;border-color:#d8d0c2!important;border-radius:9px!important}
html:root[data-place="townline"] body .arqs-ai-action::after{color:#4e7a6f!important}
html:root[data-place="townline"] body .arqs-ai-form,
html:root[data-place="townline"] body .arqs-ai-foot{
  background:#f2ede4!important;border-color:#d8d0c2!important;color:#63716b!important}
html:root[data-place="townline"] body .arqs-ai-input{
  background:#fff!important;color:#173b35!important;border-color:#cfc6b8!important;border-radius:9px!important}
html:root[data-place="townline"] body .arqs-ai-send{
  background:#173b35!important;color:#fff!important;border-radius:9px!important}
html:root[data-place="townline"] body .arqs-ai-foot a{color:#35695e!important}
@media(max-width:640px){
  html:root[data-place="townline"] body .arqs-ai-panel{
    left:10px!important;right:10px!important;bottom:64px!important;width:auto!important;max-height:70dvh!important;border-radius:14px!important}
  html:root[data-place="townline"] body .arqs-ai-head{padding:13px 13px 10px!important}
  html:root[data-place="townline"] body .arqs-ai-title{font-size:17px!important}
  html:root[data-place="townline"] body .arqs-ai-body{min-height:150px!important;padding:11px!important}
  html:root[data-place="townline"] body .arqs-ai-message{padding:10px 11px!important}
  html:root[data-place="townline"] body .arqs-ai-action{min-height:39px!important;padding:8px 10px!important}
  html:root[data-place="townline"] body .arqs-ai-form{padding:9px!important}
  html:root[data-place="townline"] body .arqs-ai-foot{padding:7px 10px 9px!important}
}

.arqs-ai-frame{display:block;width:100%;height:min(520px,calc(100dvh - 240px));min-height:320px;border:0;border-radius:14px;background:#fff}

/* JASON'S PLACE BRIGHT HELPER · founder 2026-10-16: Jason's Place is its own colourful kids' site, never ARQS black/gold.
   Palette from Jason's Place's own pages: sky #7fd0ff/#c9efff, paper #fffaf0, ink #271a3f/#4a3d63, violet #6d28d9, pink #be185d, blue #1d4ed8, lavender #f4eeff/#ddd0fb.
   Scoped by data-arqs-ai-context="kids" (set by arqs-ai-interface.js for jasonsplace.ca, /jasons-place, /press/kids, /kids). */
html[data-arqs-ai-context="kids"]{--arqs-ai-bg:#eef6ff;--arqs-ai-panel:#fffaf0;--arqs-ai-text:#271a3f;--arqs-ai-muted:#4a3d63;--arqs-ai-accent:#6d28d9;--arqs-ai-line:#ddd0fb;--arqs-ai-shadow:0 18px 44px rgba(29,78,216,.22)}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-launch.arqs-ai-launch{background:#ffffff!important;color:#271a3f!important;border:2px solid #6d28d9!important;box-shadow:0 6px 0 rgba(109,40,217,.25),0 12px 26px rgba(29,78,216,.22)!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-launch.arqs-ai-launch::before{background:linear-gradient(135deg,#6d28d9,#be185d)!important;color:#ffffff!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-panel{background:#fffaf0!important;color:#271a3f!important;border:3px solid #ddd0fb!important;box-shadow:0 18px 44px rgba(29,78,216,.22)!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-head{background:linear-gradient(135deg,#7fd0ff,#c9efff)!important;border-bottom:2px solid #ffffff!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-kicker{color:#5b21b6!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-head .arqs-ai-title{color:#271a3f!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-close{background:#ffffff!important;color:#271a3f!important;border:2px solid #6d28d9!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-modes{background:#eef6ff!important;border-bottom:2px solid #cfe3fb!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-mode{color:#4a3d63!important;background:transparent!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-mode[aria-selected="true"]{background:#ffffff!important;color:#271a3f!important;border:2px solid #6d28d9!important;box-shadow:0 3px 0 rgba(109,40,217,.2)!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-mode small,html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-mode span{color:inherit!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-body{background:#fffaf0!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-message{background:#ffffff!important;color:#271a3f!important;border:2px solid #cfe3fb!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-message small{color:#4a3d63!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock a.arqs-ai-action,html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-action{background:#ffffff!important;color:#271a3f!important;border:2px solid #ddd0fb!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-action:hover{border-color:#6d28d9!important;background:#f4eeff!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-action::after{color:#6d28d9!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-form{background:#eef6ff!important;border-top:2px solid #cfe3fb!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-input{background:#ffffff!important;color:#271a3f!important;border:2px solid #cfe3fb!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-send{background:#6d28d9!important;color:#ffffff!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-foot{background:#eef6ff!important;color:#4a3d63!important}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock .arqs-ai-foot a{color:#1d4ed8!important;text-decoration:underline}
html[data-arqs-ai-context="kids"] body .arqs-ai-dock :focus-visible{outline:3px solid #be185d!important;outline-offset:3px}
