/* AI Business Hero â€” glass premium theme. Site header stays above via z-index. */
.ai-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

.cah {
  --ink: #171b2e;
  --muted: #687087;
  --line: rgba(232, 231, 243, 0.72);
  --purple: #2196f3;
  --purple-2: #0F172A;
  --cyan: #2196f3;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  font-family: Inter, "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  padding: 72px 24px 48px;
  -webkit-font-smoothing: antialiased;
  z-index: 1;
  background: #fff;
}

.cah::before,
.cah::after {
  content: none;
  display: none;
}

.cah-content { width: min(1165px, 100%); position: relative; z-index: 2; }

.cah-scene {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
  transform-origin: 0 0;
  transition: translate .35s ease;
  opacity: 0.92;
}

.cah-orbit {
  position: absolute;
  left: -640px;
  top: 25px;
  width: 1280px;
  height: 740px;
  max-width: none;
  -webkit-mask-image: linear-gradient(#000 0, #000 68%, transparent 84%);
  mask-image: linear-gradient(#000 0, #000 68%, transparent 84%);
}

.cah-float {
  position: absolute;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #4c3d9e;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 8px 28px rgba(21, 101, 192, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  animation: cah-float 5.5s ease-in-out infinite;
}
.cah-float svg { stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cah-float--a { width: 70px; height: 70px; left: -350px; top: 88px; animation-delay: -.8s; }
.cah-float--b { width: 68px; height: 68px; left: 205px; top: 59px; animation-delay: -2.3s; }
.cah-float--c { width: 82px; height: 82px; left: -513px; top: 284px; animation-delay: -1.7s; }
.cah-float--d { width: 74px; height: 74px; left: 468px; top: 327px; animation-delay: -3.1s; }
.cah-float--a svg, .cah-float--b svg { width: 27px; height: 27px; }
.cah-float--c svg { width: 38px; height: 38px; }
.cah-float--d svg { width: 34px; height: 34px; }
.cah-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(33, 150, 243, 0.4);
  animation: cah-ripple2 3.6s ease-out infinite;
  pointer-events: none;
}
.cah-float--b::after { animation-delay: .9s; }
.cah-float--c::after { animation-delay: 1.8s; }
.cah-float--d::after { animation-delay: 2.7s; }

.cah-core {
  position: relative;
  width: 110px;
  height: 68px;
  margin: 0 auto 33px;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  border-radius: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2196f3 0%, #1565c0 55%, #3b82f6 120%);
  box-shadow:
    0 12px 32px rgba(21, 101, 192, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 40px rgba(33, 150, 243, 0.25);
  animation: cah-rise .8s cubic-bezier(.2, .7, .2, 1) backwards, cah-core-glow 4.5s ease-in-out infinite;
}
.cah-core svg { width: 44px; height: 44px; fill: #fff; animation: cah-spark 3.2s ease-in-out infinite; }
.cah-core::before, .cah-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  animation: cah-ripple 3.2s ease-out infinite;
  pointer-events: none;
}
.cah-core::after { animation-delay: 1.6s; border-color: rgba(100, 181, 246, 0.45); }
.cah-core path:last-child { transform-box: fill-box; transform-origin: center; animation: cah-twinkle 1.8s ease-in-out infinite; }

.cah-eye {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #1565c0;
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 18px rgba(21, 101, 192, 0.08);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  animation: cah-rise .8s .1s cubic-bezier(.2, .7, .2, 1) backwards, cah-badge-pulse 5s ease-in-out infinite;
}
.cah-eye svg { width: 17px; height: 17px; fill: currentColor; }
.cah-eye svg circle { animation: cah-dot 1.8s ease-in-out infinite; }
.cah-eye svg circle:nth-child(2) { animation-delay: .14s; }
.cah-eye svg circle:nth-child(3) { animation-delay: .28s; }
.cah-eye svg circle:nth-child(4) { animation-delay: .42s; }
.cah-eye svg circle:nth-child(5) { animation-delay: .56s; }
.cah-eye svg circle:nth-child(6) { animation-delay: .7s; }
.cah-eye svg circle:nth-child(7) { animation-delay: .84s; }
.cah-eye svg circle:nth-child(8) { animation-delay: .98s; }
.cah-eye svg circle:nth-child(9) { animation-delay: 1.12s; }

.cah h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  background: linear-gradient(105deg, #141830 38%, #1565c0 48%, #2196f3 52%, #141830 62%) 100% 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: cah-rise .8s .2s cubic-bezier(.2, .7, .2, 1) backwards, cah-sheen 7s 1.6s ease-in-out infinite;
}

.cah-copy {
  max-width: 600px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  animation: cah-rise .8s .3s cubic-bezier(.2, .7, .2, 1) backwards;
}

.cah-prompt {
  position: relative;
  width: min(903px, 100%);
  margin: 22px auto 0;
  padding: 22px 18px 13px 23px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 16px 48px rgba(21, 101, 192, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(21, 101, 192, 0.08);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  animation: cah-rise .8s .4s cubic-bezier(.2, .7, .2, 1) backwards, cah-prompt 4.5s 1.4s ease-in-out infinite;
  overflow: hidden;
}
.cah-prompt::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(120deg, rgba(33, 150, 243, 0.55), rgba(100, 181, 246, 0.35), rgba(21, 101, 192, 0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
  animation: cah-border-flow 6s linear infinite;
}
.cah-prompt:focus-within {
  animation: none;
  box-shadow:
    0 18px 44px rgba(21, 101, 192, 0.18),
    0 0 0 4px rgba(21, 101, 192, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}
.cah-prompt textarea {
  display: block;
  width: 100%;
  height: 27px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  line-height: 27px;
  padding: 0;
  font-family: inherit;
  position: relative;
  z-index: 1;
}
.cah-prompt textarea::placeholder { color: #8f93a5; opacity: 1; }

.cah-bar { display: flex; align-items: center; gap: 18px; margin-top: 22px; min-height: 52px; position: relative; z-index: 1; }
.cah-tool {
  border: 0;
  background: transparent;
  padding: 0;
  color: #4b5066;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  cursor: pointer;
  font-family: inherit;
}
.cah-tool:hover { color: var(--purple); }
.cah-tool svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.cah-split { width: 1px; height: 22px; background: #dcdae8; }
.cah-count { margin-left: auto; margin-right: 6px; color: #6f7589; font-size: 15px; white-space: nowrap; }

.cah-ask {
  position: relative;
  overflow: hidden;
  height: 52px;
  min-width: 135px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(115deg, #2196f3, #1565c0 55%, #4338ca);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 22px rgba(21, 101, 192, 0.28);
  transition: transform .2s, box-shadow .2s;
}
.cah-ask:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(21, 101, 192, 0.36); }
.cah-ask svg { width: 22px; height: 22px; fill: currentColor; animation: cah-spark 3.2s ease-in-out infinite; }
.cah-ask::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-20deg);
  animation: cah-shine 4s ease-in-out infinite;
  pointer-events: none;
}

.cah-status { min-height: 18px; margin: 8px 0 0; color: #5a36df; font-size: 13px; }

.cah-grid {
  display: grid;
  grid-template-columns: 378fr 369fr 378fr;
  gap: 20px;
  width: min(1165px, 100%);
  margin: 28px auto 0;
}

.cah-card {
  min-height: 111px;
  padding: 0 24px 0 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  animation: cah-rise .8s cubic-bezier(.2, .7, .2, 1) backwards;
  transition: transform .22s, border-color .22s, box-shadow .22s, background .22s;
}
.cah-card:nth-child(1) { animation-delay: .5s; }
.cah-card:nth-child(2) { animation-delay: .6s; }
.cah-card:nth-child(3) { animation-delay: .7s; }
.cah-card:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 150, 243, 0.35);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(21, 101, 192, 0.12);
}
.cah-ico {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(243, 239, 255, 0.95), rgba(226, 232, 255, 0.8));
  color: #1565c0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.cah-ico svg { width: 38px; height: 38px; stroke: currentColor; fill: none; }
.cah-card strong { display: block; font-size: 16px; font-weight: 650; line-height: 20px; margin-bottom: 6px; }
.cah-card p { margin: 0; color: #70768a; font-size: 14px; line-height: 21px; }
.cah-card > span:last-child { min-width: 0; flex: 1; }
.cah-go { flex: 0 0 auto; width: 21px; height: 21px; color: #1565c0; transition: transform .2s; }
.cah-card:hover .cah-go { transform: translateX(4px); }

.cah-trust {
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #565c72;
  font-size: 14.5px;
  flex-wrap: wrap;
  padding: 12px 8px;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: cah-rise .8s .85s cubic-bezier(.2, .7, .2, 1) backwards;
}
.cah-trust span { display: inline-flex; align-items: center; gap: 13px; padding: 0 43px; }
.cah-trust span + span { border-left: 1px solid rgba(230, 227, 240, 0.9); }
.cah-trust svg { width: 20px; height: 20px; stroke: #1565c0; fill: none; }

.cah .glow { filter: drop-shadow(0 0 6px #2196f3); }
.cah .halo { opacity: .22; animation: cah-halo 2.4s ease-in-out infinite; }
.cah .tw { animation: cah-tw 3.2s ease-in-out infinite; }

@keyframes cah-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes cah-ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6, 2); opacity: 0; } }
@keyframes cah-ripple2 { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes cah-spark { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.1) rotate(10deg); } }
@keyframes cah-twinkle { 0%, 100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1.25); opacity: 1; } }
@keyframes cah-dot { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes cah-sheen { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes cah-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes cah-prompt {
  0%, 100% { box-shadow: 0 12px 36px rgba(21, 101, 192, .08), 0 1px 0 rgba(255,255,255,.9) inset; }
  50% { box-shadow: 0 16px 44px rgba(33, 150, 243, .2), 0 0 0 4px rgba(21, 101, 192, .06), 0 1px 0 rgba(255,255,255,.95) inset; }
}
@keyframes cah-halo { 0%, 100% { opacity: .12; } 50% { opacity: .35; } }
@keyframes cah-tw { 0%, 100% { opacity: .06; } 50% { opacity: .75; } }
@keyframes cah-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cah-aurora {
  0% { transform: translate3d(-4%, 0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate3d(4%, 4%, 0) scale(1.08); opacity: 1; }
}
@keyframes cah-core-glow {
  0%, 100% { box-shadow: 0 12px 32px rgba(21, 101, 192, 0.32), 0 0 0 1px rgba(255,255,255,0.2) inset, 0 0 28px rgba(33, 150, 243, 0.2); }
  50% { box-shadow: 0 14px 36px rgba(21, 101, 192, 0.4), 0 0 0 1px rgba(255,255,255,0.28) inset, 0 0 48px rgba(100, 181, 246, 0.28); }
}
@keyframes cah-badge-pulse {
  0%, 70%, 100% { box-shadow: 0 4px 18px rgba(21, 101, 192, 0.08); }
  85% { box-shadow: 0 6px 24px rgba(21, 101, 192, 0.2), 0 0 0 4px rgba(21, 101, 192, 0.08); }
}
@keyframes cah-border-flow {
  0% { filter: hue-rotate(0deg); opacity: 0.75; }
  50% { filter: hue-rotate(25deg); opacity: 1; }
  100% { filter: hue-rotate(0deg); opacity: 0.75; }
}

@media (max-width: 1000px) {
  .cah-scene { transform: scale(.8); }
  .cah-card { padding: 0 14px; gap: 12px; }
  .cah-ico { width: 56px; height: 56px; flex-basis: 56px; }
  .cah-ico svg { width: 31px; height: 31px; }
  .cah-trust span { padding: 0 22px; }
}
@media (max-width: 760px) {
  .cah { padding: 36px 18px 28px; }
  .cah-scene { transform: scale(.5); }
  .cah-float--c, .cah-float--d { display: none; }
  .cah-core { width: 84px; height: 54px; margin-bottom: 24px; }
  .cah-core svg { width: 34px; height: 34px; }
  .cah-eye { font-size: 11px; margin-bottom: 14px; gap: 8px; padding: 6px 10px; }
  .cah h1 { font-size: clamp(24px, 6.5vw, 32px); }
  .cah-copy { font-size: 15px; margin-top: 14px; }
  .cah-copy br { display: none; }
  .cah-prompt { padding: 14px 13px 11px 16px; border-radius: 14px; }
  .cah-prompt textarea { font-size: 14px; height: 44px; line-height: 22px; }
  .cah-bar { gap: 10px; margin-top: 10px; min-height: 44px; }
  .cah-tool { font-size: 12px; gap: 6px; }
  .cah-ask { min-width: 105px; height: 44px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
  .cah-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .cah-card { min-height: 82px; padding: 11px 13px; border-radius: 14px; }
  .cah-card p br { display: none; }
  .cah-trust { margin-top: 23px; font-size: 12px; border-radius: 16px; }
  .cah-trust span { padding: 0 12px; gap: 7px; }
  .cah-trust svg { width: 16px; height: 16px; }
}

/* Chat overlay â€” clean, no tinted page bg; glass dock carries the AI feel */
.cah.is-chat {
  position: fixed;
  top: var(--ai-top, 72px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  height: auto;
  background: #fff;
  padding: 0;
  overflow: hidden;
}
.cah.is-chat::before,
.cah.is-chat::after { display: none; }
.cah.is-chat .ai-dock {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.cah.is-chat .ai-dock__main,
.ai-screen .ai-dock__main {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
body.ai-chat-open { overflow: hidden; background: #fff; }
body.ai-chat-open .site-footer,
body.ai-chat-open .hp-provider,
body.ai-chat-open .wa-float,
body.ai-chat-open #homepage > :not(.cah) { display: none !important; }
body.ai-chat-open #homepage,
body.ai-chat-open .hp { background: transparent !important; }

.ai-screen {
  position: fixed;
  top: var(--ai-top, 72px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  background: #fff;
  padding: 0;
  overflow: hidden;
}
.ai-screen .ai-dock { display: grid; width: 100%; height: 100%; min-height: 0; margin: 0; border: 0; border-radius: 0; }
.ai-screen .ai-dock__main { height: 100%; min-height: 0; }
.cah.is-chat .cah-scene { opacity: 0; transition: opacity .35s ease; }
.cah.is-chat .cah-content { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; }
.cah-content { transition: opacity .35s ease; }

.ai-dock {
  display: none;
  grid-template-columns: 240px 1fr;
  width: min(1100px, calc(100% - 32px));
  min-height: 620px;
  margin: 12px auto 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  text-align: left;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 20px 50px rgba(21, 101, 192, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 0 0 1px rgba(21, 101, 192, 0.06);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.ai-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.35), rgba(100, 181, 246, 0.2), rgba(21, 101, 192, 0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  animation: ai-dock-border 8s ease-in-out infinite;
  z-index: 1;
}
.ai-dock::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: 8%;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.14), transparent 68%);
  pointer-events: none;
  animation: ai-dock-glow 6s ease-in-out infinite;
  z-index: 0;
}
.cah.is-chat .ai-dock,
.ai-screen .ai-dock {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  animation: ai-dock-in .45s cubic-bezier(.2, .7, .2, 1);
}
.ai-dock__side { min-height: 0; overflow-y: auto; }
.ai-dock__msg { width: min(760px, 100%); max-width: 100%; margin-left: auto; margin-right: auto; }
.ai-dock__msg--user { width: fit-content; max-width: min(760px, 88%); margin-right: 0; }
.ai-dock__composer textarea { max-height: 120px; overflow-y: auto; }

@keyframes ai-dock-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes ai-dock-border {
  0%, 100% { opacity: 0.55; filter: hue-rotate(0deg); }
  50% { opacity: 0.95; filter: hue-rotate(18deg); }
}
@keyframes ai-dock-glow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate(-18px, 22px) scale(1.15); opacity: 0.9; }
}
@keyframes ai-dock-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes ai-dock-shimmer {
  0%, 60% { left: -50%; }
  100% { left: 120%; }
}

.ai-dock__side,
.ai-dock__main,
.ai-dock__log,
.ai-dock__composer { position: relative; z-index: 2; }

.ai-dock__side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f7f7f8;
  border-right: 1px solid #ececf1;
  padding: 12px 10px;
}
.ai-dock__side-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-dock__side-head .ai-dock__new { flex: 1; }
.ai-dock__side-close {
  display: none;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.ai-dock__side-close:hover { background: #ececf1; color: #0f172a; }
.ai-dock__scrim {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.ai-dock__topbar {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 6px 10px;
  border-bottom: 1px solid #ececf1;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
}
.ai-dock__menu,
.ai-dock__topbar-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
}
.ai-dock__menu:hover,
.ai-dock__topbar-new:hover { background: #f1f5f9; }
.ai-dock__topbar-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.ai-dock__nav { display: grid; gap: 2px; margin: 12px 0 8px; }
.ai-dock__nav a,
.ai-dock__recents,
.ai-dock__archived {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #0F172A;
  text-align: left;
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.ai-dock__nav a:hover,
.ai-dock__recents:hover,
.ai-dock__archived:hover,
.ai-dock__archived.is-on { background: #ececf1; }
.ai-dock__recents { font-weight: 650; color: #64748b; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
#ai-threads {  min-height: 0; }
.ai-row { position: relative; display: flex; align-items: center; border-radius: 10px; }
.ai-row:hover,
.ai-row:focus-within { background: #ececf1; }
.ai-row .ai-dock__thread { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-row__more {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  color: #334155;
  opacity: 0;
}
.ai-row:hover .ai-row__more,
.ai-row:focus-within .ai-row__more,
.ai-row__more:focus { opacity: 1; }
.ai-menu {
  position: absolute;
  right: 8px;
  top: 32px;
  z-index: 6;
  display: grid;
  min-width: 148px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.ai-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  color: #0F172A;
}
.ai-menu button:hover { background: #f4f6f8; }
.ai-tools { display: flex; align-items: center; gap: 2px; margin: 6px 0 14px; }
.ai-tools__btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b93a7;
  cursor: pointer;
}
.ai-tools__btn svg { width: 18px; height: 18px; transition: transform .18s ease; }
.ai-tools__btn:hover { background: #f1f3f7; color: #0F172A; }
.ai-tools__btn:hover svg { transform: scale(1.08); }
.ai-tools__btn:active svg { transform: scale(0.9); }
.ai-tools__btn.is-on { color: #2196f3; background: #e8f4fe; }
.ai-tools__btn.is-pop svg { animation: ai-tool-pop .32s ease; }
@keyframes ai-tool-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.ai-dock__new {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 0;
  background: linear-gradient(115deg, #2196f3, #1565c0);
  color: #fff;
  border-radius: 12px;
  padding: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(21, 101, 192, 0.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ai-dock__new:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(21, 101, 192, 0.3); }
.ai-dock__new::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg);
  animation: ai-dock-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}
.ai-dock__note { color: #687087; font-size: 12px; margin: 10px 4px 8px; }
.ai-dock__thread {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  color: #2c3348;
  font: inherit;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.ai-dock__thread:hover {
  background: rgba(21, 101, 192, 0.07);
  color: #1565c0;
  transform: translateX(2px);
}
.ai-dock__thread.is-on {
  background: rgba(21, 101, 192, 0.1);
  color: #1565c0;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(21, 101, 192, 0.12);
}

.ai-dock__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.ai-dock__log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px 6vw 12px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 12px), transparent 100%);
}

.ai-dock__msg {
  margin: 0 0 14px;
  max-width: 92%;
  animation: ai-dock-msg-in .32s ease both;
}
.ai-dock__msg:nth-child(1) { animation-delay: .02s; }
.ai-dock__msg:nth-child(2) { animation-delay: .06s; }
.ai-dock__msg:nth-child(3) { animation-delay: .1s; }
.ai-dock__msg:nth-child(4) { animation-delay: .14s; }
.ai-dock__msg:nth-child(n+5) { animation-delay: .18s; }
.ai-dock__msg--user { margin-left: auto; }
.ai-dock__msg > div {
  border-radius: 16px;
  padding: 11px 14px;
  line-height: 1.55;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ai-dock__msg--user > div {
  background: linear-gradient(115deg, rgba(33, 150, 243, 0.95), rgba(21, 101, 192, 0.95));
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.2);
}
.ai-dock__msg--assistant > div {
  background: rgba(255, 255, 255, 0.72);
  color: #171b2e;
  border: 1px solid rgba(232, 231, 243, 0.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.ai-dock__msg a {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  transition: transform .18s ease;
}
.ai-dock__msg a:hover { transform: translateX(3px); }

.ai-dock__composer {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 auto 12px;
  width: min(760px, calc(100% - 24px));
  border: 1px solid rgba(186, 214, 242, 0.7);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.06);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ai-dock__composer:focus-within {
  border-color: rgba(21, 101, 192, 0.45);
  box-shadow: 0 10px 28px rgba(21, 101, 192, 0.1), 0 0 0 3px rgba(21, 101, 192, 0.08);
}
.ai-dock__composer textarea {
  flex: 1;
  border: 0;
  resize: none;
  min-height: 40px;
  font: inherit;
  background: transparent;
  outline: none;
  color: #171b2e;
}
.ai-dock__composer button {
  width: 40px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(115deg, #2196f3, #1565c0);
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.22);
}
.ai-dock__composer button:hover { transform: translateY(-1px) scale(1.03); }

@media (max-width: 760px) {
  .ai-dock,
  .cah.is-chat .ai-dock,
  .ai-screen .ai-dock {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }

  /* ChatGPT-style: chat fills screen; sidebar is an overlay drawer */
  .ai-dock__topbar { display: flex; }

  .ai-dock__scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
  }

  .ai-dock__side {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 25;
    width: min(300px, 88vw);
    max-width: 100%;
    max-height: none;
    height: 100%;
    border-right: 1px solid #ececf1;
    border-bottom: 0;
    padding: 10px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 10px 0 32px rgba(15, 23, 42, 0.18);
    transform: translate3d(-105%, 0, 0);
    transition: transform .28s cubic-bezier(.2, .7, .2, 1);
    will-change: transform;
  }

  .ai-dock__side #ai-threads {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
  }

  .ai-dock__side .ai-dock__archived {
    margin-top: auto;
    flex: 0 0 auto;
  }

  .ai-dock__side-close { display: inline-flex; }

  .ai-dock.is-side-open .ai-dock__side {
    transform: translate3d(0, 0, 0);
  }

  .ai-dock.is-side-open .ai-dock__scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ai-dock__main {
    width: 100%;
    min-width: 0;
  }

  .ai-dock__new {
    width: auto;
    flex: 1 1 auto;
    padding: 10px 12px;
    font-size: 13px;
  }

  .ai-dock__thread {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
  }

  .ai-dock__note { display: none; }
  .ai-dock__log { padding: 14px 12px 8px; }
  .ai-dock__msg { max-width: 100%; }
  .ai-dock__composer { margin: 0 10px 10px; }
}

.ai-dock__loading { color: #0f172a; }
.ai-dock__loading::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: #2196f3; animation: ai-pulse 0.8s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .25; } }
.ai-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ai-choices button { text-align: left; border: 1px solid #d7e3f0; background: #fff; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: clamp(13px, 1.5vw, 15px); font-weight: 650; cursor: pointer; }
.ai-choices button:hover { border-color: #2196f3; }
.ai-dock .ai-results { margin-top: 12px; display: grid; gap: 10px; }
.ai-dock .ai-results__head { margin: 0; font-size: 13px; font-weight: 650; color: #334155; }
.ai-dock .ai-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.ai-dock__msg .ai-results a {
  margin-top: 0;
}
.ai-dock__msg .ai-results a:hover { transform: none; }
.ai-dock__msg .ai-results .btn { display: inline-flex; width: auto; }
.ai-dock__msg .ai-results .btn-accent { color: #fff; }
.ai-dock .ai-tile__media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0;
  opacity: 0;
  transition: opacity .45s ease;
}
.ai-dock .ai-tile__media img.is-on { opacity: 1; }
.ai-dock .ai-tile__media.is-logo img,
.ai-dock .bix-card__img img.bix-card__brand.is-on,
.ai-dock .clc-card__brand.is-on {
  position: static;
  width: 58% !important;
  height: auto !important;
  max-height: 72px;
  object-fit: contain;
  margin: 36px auto;
  opacity: 1;
}
.ai-dock__msg a.ai-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  text-decoration: none;
  color: #0F172A;
  font-weight: 500;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ai-dock__msg a.ai-tile:hover {
  transform: translateY(-2px);
  border-color: #2196f3;
  box-shadow: 0 14px 28px rgba(33, 150, 243, 0.14);
}
.ai-dock .ai-tile__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: #f4f8fc;
  overflow: hidden;
}
.ai-dock .ai-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.ai-dock .ai-tile__media.is-logo { background: #fff; }
.ai-dock .ai-tile__media.is-logo img { object-fit: contain; padding: 14px; }
.ai-dock .ai-tile__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #0F172A;
  color: #fff;
  font-size: 22px;
  font-weight: 750;
}
.ai-dock .ai-tile__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #0F172A;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.ai-dock .ai-tile__body { display: grid; gap: 3px; padding: 10px 12px 12px; }
.ai-dock .ai-tile__kind {
  color: #2196f3;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ai-dock .ai-tile__body strong {
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-dock .ai-tile__meta { color: #64748b; font-size: 12px; }
.ai-dock__msg > div, .ai-dock__composer textarea, .ai-dock__thread, .ai-dock__note {
  font-size: clamp(13px, 1.7vw, 16px);
}
.ai-main-busy {
  position: absolute;
  inset: 0 0 76px 0;
  display: grid;
  place-items: center;
  z-index: 5;
  pointer-events: none;
}
.ai-main-busy[hidden],
.ai-side-busy[hidden] { display: none; }
.ai-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}
.ai-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2196f3;
  animation: ai-bounce 1s ease-in-out infinite;
}
.ai-dots i:nth-child(2) { animation-delay: .15s; background: #0F172A; }
.ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-6px); opacity: 1; }
}
.ai-side-busy { display: grid; gap: 8px; margin-top: 12px; }
.ai-side-busy span {
  display: block;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e8eef6 20%, #f8fbff 50%, #e8eef6 80%);
  background-size: 200% 100%;
  animation: ai-side-shimmer 1.1s linear infinite;
}
@keyframes ai-side-shimmer { to { background-position: -200% 0; } }

@media (max-width: 760px) {
  .cah.is-chat .ai-dock,
  .ai-screen .ai-dock {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }
  .ai-choices { grid-template-columns: 1fr; }
  .ai-dock__log { padding: 12px 12px 8px; }
  .cah h1 { font-size: clamp(24px, 6.5vw, 30px); }
  .cah-copy { font-size: 15px; }
}
.ai-dock { font-size: 15px; }
.ai-dock__side { font-size: 14px; }
.ai-dock__new { font-size: 14px; font-family: inherit; }
.ai-row__more { opacity: 0.55; }
.ai-row .ai-dock__thread {
  font-size: 13.5px;
  font-weight: 550;
  color: #0F172A;
  background: transparent;
  box-shadow: none;
}
.ai-row .ai-dock__thread.is-on {
  background: #e7f3fe;
  color: #0F172A;
  font-weight: 700;
}
.ai-dock__msg--assistant > div { font-size: 15px; line-height: 1.55; }
.ai-tools { margin-top: 8px; }
.ai-menu { font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .cah::before,
  .cah-float,
  .cah-float::after,
  .cah-core,
  .cah-core::before,
  .cah-core::after,
  .cah-core svg,
  .cah-eye,
  .cah-eye svg circle,
  .cah h1,
  .cah-prompt,
  .cah-prompt::before,
  .cah-ask::after,
  .cah .halo,
  .cah .tw,
  .ai-dock,
  .ai-dock::before,
  .ai-dock::after,
  .ai-dock__new::after,
  .ai-dock__msg,
  .ai-dots i,
  .ai-side-busy span { animation: none !important; }
  .cah.is-chat .ai-dock, .cah-content { animation: none; transition: none; }
  .ai-dock__side,
  .ai-dock__scrim { transition: none !important; }
}
}
