/* Branch ai-center (5 November 2026). Janne: "instead of AI chat being at the bottom-right corner, I would want it to be at the very
   center ... the styling to be the same as those insurance cards: there is kind of a band stroke around it, so it gets a bit bulkier
   ... when you open it, it opens almost filling the entire page. Actually, you still need to see the background ... It should be wider
   than normal chat." Loaded after ai-drawer.css; everything here overrides it.
   The card's anatomy (policies-s.css): an 8 white band, 16 corners, a 1 px Primary-30 stroke and the soft shadow, the mint panel inside
   at 10 corners. On hover the band stays white and the inside deepens (README 148). */

/* The page area's left edge: both the widget and the panel centre on the page, not on the window with its side menu */
:root { --aic-rail: 0px; --aic-band: var(--v8-2, 8px); --aic-in: calc(var(--v8-r) - var(--aic-band) + 2px);
  --aic-edge: 0 0 0 1px var(--v8-pressed), 0 1px 2px -1px rgb(0 0 0 / .06), 0 2px 4px 0 rgb(0 0 0 / .04); }
@media (min-width: 1024px) {
  #v8:has(#app header.rail2) { --aic-rail: 274px; }
  #v8[data-rail="collapsed"]:has(#app header.rail2) { --aic-rail: 69px; }
}

/* ---------- The widget ---------- */
#v8:not(.v8-in-flow) body .aid-launch { left: var(--aic-rail); right: 0; bottom: 24px; width: max-content !important; max-width: calc(100vw - 32px); height: auto; margin-inline: auto;
  padding: var(--aic-band) !important; border: 0; border-radius: var(--v8-r); background: var(--v8-white); box-shadow: var(--aic-edge), var(--v8-shadow-pop); }
/* No AI ring on the widget's edge: the band is the card's; the ring stays on the mark */
#v8:not(.v8-in-flow) body .aid-launch, #v8:not(.v8-in-flow) body .aid-launch:hover, #v8:not(.v8-in-flow) body .aid-launch:active { border: 0 !important; background: var(--v8-white) !important; background-image: none !important; animation: none !important; }
#v8 body .aid-launch .aid-lp { display: contents; }
#v8:not(.v8-in-flow) body .aid-launch .aid-lp { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border-radius: var(--aic-in); background: var(--v8-mint); transition: background-color .16s ease-out; }
#v8:not(.v8-in-flow) body .aid-launch .aid-ll { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; font-weight: 700 !important; letter-spacing: -0.01em; }
#v8:not(.v8-in-flow) body .aid-launch .aid-ls { display: none; }
@media (hover: hover) {
  #v8:not(.v8-in-flow) body .aid-launch:hover { background: var(--v8-white); }
  #v8:not(.v8-in-flow) body .aid-launch:hover .aid-lp { background: var(--fennia-primary-30); }
  #v8:not(.v8-in-flow) body .aid-launch:hover .aid-mk { animation: ai-turn 2.4s linear infinite; }
}
#v8:not(.v8-in-flow) body .aid-launch:active { background: var(--v8-white); }
#v8:not(.v8-in-flow) body .aid-launch:active .aid-lp { background: var(--fennia-primary-40); }
@media (max-width: 1023px) { #v8:not(.v8-in-flow) body .aid-launch { bottom: calc(var(--tabbar-h, 64px) + 12px + env(safe-area-inset-bottom)); } }
@media (min-width: 1024px) { #v8 body:has(.aid-launch:not([hidden])) .toast { bottom: calc(24px + 56px + 16px) !important; } }

/* ---------- The panel ---------- */
#v8 body .aid-scrim { position: fixed; inset: 0; z-index: 84; background: rgb(0 0 0 / .32); }
/* About 40 % of the page area (Janne: "it should cover less of the screen. 40%"): 70 % of its width and 58 % of the window's height. Wider than tall, so it stays wider than the drawer */
#v8 body .aid[data-mode="center"] { top: 0; bottom: 0; left: var(--aic-rail); right: 0; width: min(max(calc((100vw - var(--aic-rail)) * .7), 560px), calc(100vw - 32px), 1080px); height: min(max(58dvh, 480px), calc(100dvh - 32px)); margin: auto;
  padding: var(--aic-band); border: 0; border-radius: var(--v8-r); box-shadow: var(--aic-edge), var(--v8-shadow-pop); transform-origin: 50% 100%; }
#v8 body .aid[data-mode="center"].aid-in { transform: translateY(24px) scale(.98); }
#v8 body .aid[data-mode="center"].aid-ghost { animation-name: aid-leave-down; }
/* The head is the card's mint panel */
#v8 body .aid[data-mode="center"] .aid-head { min-height: 48px; padding: 4px 4px 4px 12px; border-radius: var(--aic-in) var(--aic-in) 0 0; background: var(--v8-mint); box-shadow: none; }
#v8 body .aid[data-mode="center"] .aid-head h2 { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; letter-spacing: -0.01em; }
/* The title always stands in the head, so the empty state doesn't repeat it */
#v8 body .aid[data-mode="center"] .aid-head { justify-content: flex-start; }
#v8 body .aid[data-mode="center"] .aid-head > .aid-mk { display: inline-grid; }
#v8 body .aid[data-mode="center"] .aid-head > h2 { position: static; flex: 1; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
#v8 body .aid[data-mode="center"] .aid-brand { display: none; }
/* The words keep the 700 measure; the panel's extra width is room round them */
#v8 body .aid[data-mode="center"] .aid-body > *, #v8 body .aid[data-mode="center"] .aid-foot > * { width: 100%; max-width: 700px; margin-inline: auto; box-sizing: border-box; }
#v8 body .aid[data-mode="center"] .aid-ai { max-width: none; }
#v8 body .aid[data-mode="center"] .aid-me p { max-width: 70%; }
/* The greeting and the questions stay by the field; in a short window they scroll from the top, never clipped */
#v8 body .aid[data-mode="center"] .aid-body-empty { justify-content: flex-start; }
#v8 body .aid[data-mode="center"] .aid-empty5 { min-height: 0; margin-top: auto; }
@media (prefers-reduced-motion: reduce) { #v8 body .aid-scrim { animation: none; } }
@media (prefers-reduced-motion: no-preference) { #v8 body .aid-scrim { animation: aic-fade .2s ease-out both; } }
@keyframes aic-fade { from { opacity: 0; } }
@media (forced-colors: active) { #v8 body .aid[data-mode="center"], #v8:not(.v8-in-flow) body .aid-launch { outline: 1px solid CanvasText; } }

/* ---------- The chat's look (Janne, 5 November 2026: "just making the chat in general ... I just want to see the aesthetic of it") ----------
   The whole panel is the policy card: the white band with one mint panel inside. On the mint, white things are what she reads and
   uses: the assistant's answers as cards, the suggested questions as cards, the field. Her own messages are the one deeper green. */
#v8 body .aid[data-mode="center"] :is(.aid-body, .aid-foot) { background: var(--v8-mint); }
#v8 body .aid[data-mode="center"] .aid-foot { padding: 0 24px 12px; border-radius: 0 0 var(--aic-in) var(--aic-in); }
#v8 body .aid[data-mode="center"] .aid-body { padding: 8px 24px 24px; }
#v8 body .aid[data-mode="center"].aid-scrolled .aid-head { box-shadow: 0 1px 0 var(--fennia-primary-30); }
#v8 body .aid[data-mode="center"] .aid-comp { border: 0 !important; border-radius: var(--v8-r-in); box-shadow: var(--aic-edge) !important; }
#v8 body .aid[data-mode="center"] .aid-comp:focus-within { box-shadow: 0 0 0 2px var(--fennia-primary-40) !important; }
/* Empty: the greeting large, the three questions side by side */
#v8 body .aid[data-mode="center"] .aid-low { display: grid; gap: 12px; }
#v8 body .aid[data-mode="center"] .aid-empty5 .aid-hello { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; letter-spacing: -0.01em; text-align: center; }
#v8 body .aid[data-mode="center"] .aid-empty5 .aid-qs { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
#v8 body .aid[data-mode="center"] .aid-empty5 .aid-q { display: flex; align-items: flex-start; width: 100%; height: 100%; min-height: 0; padding: 12px; border: 0 !important; border-radius: var(--v8-r-in);
  background: var(--v8-white) !important; box-shadow: var(--aic-edge); color: var(--v8-green-t); text-align: left; }
@media (hover: hover) { #v8 body .aid[data-mode="center"] .aid-empty5 .aid-q:hover { background: var(--v8-hover) !important; } }
/* The conversation */
#v8 body .aid[data-mode="center"] .aid-log { gap: 16px; }
#v8 body .aid[data-mode="center"] .aid-ai { gap: 12px; padding: 16px; border-radius: var(--v8-r-in); background: var(--v8-white); box-shadow: var(--aic-edge); }
#v8 body .aid[data-mode="center"] .aid-me p { padding: 8px 12px; border-radius: var(--v8-r-in); background: var(--fennia-primary-30); }
#v8 body .aid[data-mode="center"] .aid-note { padding: 0 24px; }
/* The insurance cards' type, measured on the page (Janne: "it should be the sizes we used in the insurance cards"): titles 16 Bold,
   text 16, small print 12. Nothing in the panel is larger than that */
#v8 body .aid[data-mode="center"] :is(.aid-note, .aid-src, .aid-fbs) { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }   /* 16, as the answer (README 195: "the source, maybe everything, should be the same font size") */
#v8 body .aid[data-mode="center"] .aid-head .aid-mk { width: 24px; height: 24px; }

/* ---------- The mark (Janne, 8 November 2026: option D, "use it exactly how it is, like in that white container") ----------
   Hugeicons' ai-user at 28 in the portal's green, with no tile, ring or turning: the line drawing alone, in the widget and the head */
#v8 body .aid-mk.aid-mk-ic { width: 28px !important; height: 28px !important; border: 0 !important; border-radius: 0 !important; background: none !important; color: var(--v8-deep); animation: none !important; }
#v8 body .aid-mk.aid-mk-ic .aid-ic { display: block; width: 28px; height: 28px; }

/* ---------- The colour band (Janne, 8 November 2026: "I would also flip it so that the place where you write and the space where the
   text appears are white, but the band should be a colorful stroke"; "Use B, 16 px soft square corners, with my portfolio's yellow,
   blue and green band, white inside") ----------
   The band is his portfolio's live ring (site/app/globals.css, .fx-live): yellow into blue into green, turning once in 7 s. It is
   4 px, the white inside follows. Corners: 16, the proportion of his reference's icon tiles, never half-round; where the browser
   has corner-shape they are squircles at 1.8 times the radius, which is what he picked in Chrome */
@property --aic-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes aic-turn { to { --aic-a: 360deg; } }
:root { --aic-band: 4px; --aic-r: 16px; --aic-ring: conic-gradient(from var(--aic-a), #F5D341, #3D7BF5 30%, #B6D0F9 50%, #5DD39B 70%, #F5D341); }
@supports (corner-shape: squircle) { :root { --aic-r: 28.8px; } }
#v8:not(.v8-in-flow) body .aid-launch, #v8:not(.v8-in-flow) body .aid-launch:hover, #v8:not(.v8-in-flow) body .aid-launch:active,
#v8 body .aid[data-mode="center"] {
  padding: var(--aic-band) !important; border-radius: var(--aic-r) !important; corner-shape: squircle;
  background: var(--aic-ring) !important; box-shadow: var(--v8-shadow-pop) !important; }
#v8:not(.v8-in-flow) body .aid-launch .aid-lp { min-height: 48px; padding: 0 18px 0 14px; border-radius: calc(var(--aic-r) - var(--aic-band)); corner-shape: squircle; background: var(--v8-white); }
@media (hover: hover) { #v8:not(.v8-in-flow) body .aid-launch:hover .aid-lp { background: var(--v8-hover); } }
#v8:not(.v8-in-flow) body .aid-launch:active .aid-lp { background: var(--v8-pressed); }
/* Inside the panel everything is white; the answers and questions keep their thin edge so they still read as cards */
#v8 body .aid[data-mode="center"] :is(.aid-head, .aid-body, .aid-foot) { background: var(--v8-white); corner-shape: squircle; }
#v8 body .aid[data-mode="center"] .aid-head { border-radius: calc(var(--aic-r) - var(--aic-band)) calc(var(--aic-r) - var(--aic-band)) 0 0; }
#v8 body .aid[data-mode="center"] .aid-foot { border-radius: 0 0 calc(var(--aic-r) - var(--aic-band)) calc(var(--aic-r) - var(--aic-band)); }
@media (prefers-reduced-motion: no-preference) {
  #v8:not(.v8-in-flow) body .aid-launch { animation: aic-turn 7s linear infinite !important; }
  #v8 body .aid[data-mode="center"]:not(.aid-ghost) { animation: aic-grow .36s var(--aid-ease), aic-turn 7s linear infinite; }
  #v8 body .aid[data-mode="center"].aid-ghost { animation: aic-shrink .26s var(--aid-ease) forwards; }
}
@media (forced-colors: active) { #v8:not(.v8-in-flow) body .aid-launch, #v8 body .aid[data-mode="center"] { background: Canvas !important; } }
/* The name in Regular (Janne, 8 November 2026: "the font size is too thick compared to the icon ... Maybe the font should be a
   regular or medium thickness"). Fennia Sans has only Regular and Bold, so Regular, beside the icon's thin line in the widget and the head */
#v8:not(.v8-in-flow) body .aid-launch .aid-ll, #v8 body .aid[data-mode="center"] .aid-head h2 { font-weight: 400 !important; letter-spacing: 0; }
/* On white the suggested questions need their edge back (ai-drawer.css takes every shadow off them with !important) */
#v8 body .aid[data-mode="center"] .aid-empty5 .aid-q { box-shadow: var(--aic-edge) !important; }

/* ---------- Opening from the widget (Janne, 8 November 2026: "the bottom part should remain where the widget is. It shouldn't open in
   the middle. It should be kind of like expanding upwards and then coming downwards") ----------
   The panel's bottom edge is the widget's bottom edge. It opens as a clip that starts at the widget's box (--aic-wx and --aic-hy,
   measured by assistant.js) and grows up and out to the whole panel; closing, it shrinks back down into the widget. The clip ends
   wider than the panel so the shadow isn't cut. No dimmed page any more: the page stays usable beside it (see assistant.js) */
:root { --aic-bottom: 24px; }
@media (max-width: 1023px) { :root { --aic-bottom: calc(var(--tabbar-h, 64px) + 12px + env(safe-area-inset-bottom)); } }
#v8 body .aid[data-mode="center"] { top: auto; bottom: var(--aic-bottom); margin: 0 auto; height: min(max(58dvh, 480px), calc(100dvh - var(--aic-bottom) - 16px)); }
#v8 body .aid[data-mode="center"].aid-in { transform: none; opacity: 1; }
@keyframes aic-grow { from { clip-path: inset(var(--aic-hy, 0px) var(--aic-wx, 0px) 0 var(--aic-wx, 0px) round var(--aic-r)); } to { clip-path: inset(-80px round var(--aic-r)); } }
@keyframes aic-shrink { from { clip-path: inset(-80px round var(--aic-r)); } to { clip-path: inset(var(--aic-hy, 0px) var(--aic-wx, 0px) 0 var(--aic-wx, 0px) round var(--aic-r)); } }
#v8 body .aid-scrim { display: none; }

/* ---------- The soft blue frame (Janne, 8 November 2026, with a reference card: a pale lavender frame, the title on the tint, a white
   card inside: "the rainbow is just too rainbowy, and you could try to do this kind of bluish color. When it expands, it should have
   the top part the same way, where you have the icon and that") ----------
   Replaces the turning colour band. Closed, the widget is that tinted top: the icon and the name on the blue. Open, the same tint is
   the frame: the head sits on it and the conversation is one white card inside, 6 from the frame's edge. Nothing turns */
:root { --aic-band: 6px; --aic-tint: linear-gradient(160deg, #F1F4FF 0%, #E2E9FF 55%, #CFDBFD 100%); --aic-tint-hover: linear-gradient(160deg, #E6ECFF 0%, #D6E0FF 55%, #C2D1FB 100%);
  --aic-frame-edge: 0 0 0 1px rgb(120 140 210 / .18); }
#v8:not(.v8-in-flow) body .aid-launch, #v8:not(.v8-in-flow) body .aid-launch:hover, #v8:not(.v8-in-flow) body .aid-launch:active, #v8 body .aid[data-mode="center"] {
  background: var(--aic-tint) !important; box-shadow: var(--aic-frame-edge), var(--v8-shadow-pop) !important; }
#v8:not(.v8-in-flow) body .aid-launch { padding: 0 !important; animation: none !important; }
#v8:not(.v8-in-flow) body .aid-launch .aid-lp { min-height: 56px; padding: 0 20px 0 16px; background: transparent !important; }
@media (hover: hover) { #v8:not(.v8-in-flow) body .aid-launch:hover { background: var(--aic-tint-hover) !important; } }
#v8:not(.v8-in-flow) body .aid-launch:active { background: var(--aic-tint-hover) !important; }
#v8 body .aid[data-mode="center"]:not(.aid-ghost) { animation: aic-grow .36s var(--aid-ease); }
@media (prefers-reduced-motion: reduce) { #v8 body .aid[data-mode="center"]:not(.aid-ghost) { animation: none; } }
/* The head on the tint; the body and the field one white card */
#v8 body .aid[data-mode="center"] .aid-head { min-height: 48px; padding: 2px 4px 6px 12px; background: transparent !important; box-shadow: none !important; }
#v8 body .aid[data-mode="center"] .aid-body { background: var(--v8-white); border-radius: calc(var(--aic-r) - var(--aic-band)) calc(var(--aic-r) - var(--aic-band)) 0 0; corner-shape: squircle; }
#v8 body .aid[data-mode="center"] .aid-foot { background: var(--v8-white); }
/* A blue outer band, pale blue inside (Janne, 8 November 2026: "it should have an outer stroke that is more like this blue, and
   inside it should be very pale blue? When it expands, it kind of follows the same logic: the interior is white, and the outside
   is blue"). Closed: a 4 blue band round a very pale blue inside. Open: the same blue frame round the white card; the head sits on
   the blue */
:root { --aic-band: 4px; --aic-tint: linear-gradient(160deg, #D9E3FF 0%, #C4D3FC 55%, #AFC2F7 100%); --aic-pale: #F4F7FF; --aic-pale-hover: #E8EEFF; }
#v8:not(.v8-in-flow) body .aid-launch, #v8:not(.v8-in-flow) body .aid-launch:hover, #v8:not(.v8-in-flow) body .aid-launch:active { padding: var(--aic-band) !important; background: var(--aic-tint) !important; }
#v8:not(.v8-in-flow) body .aid-launch .aid-lp { min-height: 48px; background: var(--aic-pale) !important; }
@media (hover: hover) { #v8:not(.v8-in-flow) body .aid-launch:hover .aid-lp { background: var(--aic-pale-hover) !important; } }
#v8:not(.v8-in-flow) body .aid-launch:active .aid-lp { background: var(--aic-pale-hover) !important; }
#v8 body .aid[data-mode="center"] .aid-head { padding: 4px 4px 6px 12px; }
/* The writing field shows focus once, on its own rounded edge (.aid-comp:focus-within). The portal's focus glow (README 187) was
   also drawn on the textarea inside it, a square 4 px halo inside the rounded field (Janne, 8 November 2026: "this thicker stroke
   that is not rounded inside"). The field is a control, so it takes the control corner (README 190) */
#v8 body .aid .aid-comp textarea:is(:focus, :focus-visible) { box-shadow: none !important; outline: none !important; }
#v8 body .aid .aid-comp { border-radius: var(--v8-r-pill) !important; }
/* Close says so (Janne, 8 November 2026: "The X is also not enough. I think it should actually say 'Close', or at least it should
   have more of a button-like feeling"): the portal's secondary button, the x and the word, 36 tall in the head */
#v8 body .aid .aid-head .aid-close { min-height: 36px !important; height: 36px; gap: 6px; padding: 0 12px 0 10px !important; font-size: var(--v8-fs-14, 14px) !important; }
#v8 body .aid .aid-head .aid-close svg { width: 16px; height: 16px; }
/* Pure white inside, the name and the mark in navy running into soft violet (Janne, 8 November 2026: "some very dark shade of blue
   for both the icon and the text ... make the background pure white"; "some kind of very faint gradient or some kind of Apple-like
   aesthetic so that it would look a bit techier and a bit more joyful"; he chose B). Navy #0A2A66 (13.7:1 on white) through
   #2F4FC4 (6.9:1) to #6A4BD6 (5.8:1): every point of the words passes 4.5:1. Hover tints the inside the palest blue */
:root { --aic-ink: linear-gradient(90deg, #0A2A66 0%, #2F4FC4 55%, #6A4BD6 100%); }
#v8:not(.v8-in-flow) body .aid-launch .aid-lp { background: var(--v8-white) !important; }
@media (hover: hover) { #v8:not(.v8-in-flow) body .aid-launch:hover .aid-lp { background: var(--aic-pale) !important; } }
#v8:not(.v8-in-flow) body .aid-launch:active .aid-lp { background: var(--aic-pale-hover) !important; }
#v8:not(.v8-in-flow) body .aid-launch .aid-ll, #v8 body .aid[data-mode="center"] .aid-head h2 {
  background: var(--aic-ink); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; }
@media (forced-colors: active) { #v8:not(.v8-in-flow) body .aid-launch .aid-ll, #v8 body .aid[data-mode="center"] .aid-head h2 { background: none; color: CanvasText !important; -webkit-text-fill-color: CanvasText; } }
/* The head's title as wide as its words, so the run reaches violet at its last letter, as in the widget */
#v8 body .aid[data-mode="center"] .aid-head > h2 { flex: 0 1 auto; margin-right: auto; }
/* Close as a square X button (Janne, 8 November 2026, of the labelled one: "It should obviously be like hug content ... Maybe it
   should just be X"). The portal's button carries a 120 minimum width, so Close is its own: a 36 white square, the control corner,
   the secondary button's edge and hover, the x at 20. Its name is "Close the assistant" */
#v8 body .aid .aid-head .aid-close { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; min-width: 0; padding: 0; border: 0;
  border-radius: var(--v8-r-pill); background: var(--v8-white); box-shadow: inset 0 0 0 1px var(--fennia-primary-30, #B8EABB); color: var(--v8-green-t); cursor: pointer; transition: background-color .16s ease-out; }
#v8 body .aid .aid-head .aid-close svg { width: 20px; height: 20px; }
@media (hover: hover) { #v8 body .aid .aid-head .aid-close:hover { background: var(--v8-hover); } }
#v8 body .aid .aid-head .aid-close:active { background: var(--v8-pressed); }
/* The navy a step darker (Janne: "I like the navy, but could it be slightly darker?"): #061A44 (16.9:1) through #253F9E (9.2:1) to the same
   soft violet */
:root { --aic-ink: linear-gradient(90deg, #061A44 0%, #253F9E 55%, #6A4BD6 100%); }
/* Correction (Janne, 8 November 2026: "I didn't mean that the gradient should be in the text. The text should be just dark navy. I
   meant the light blue should have this little gradient happening there, but very subtle, subtle, subtle, subtle"). The name and
   the mark are solid navy #061A44 (16.9:1). The blue band carries the gradient: periwinkle blue drifting faintly to lavender and a
   breath of pink, moving slowly (20 s a sweep, still with reduced motion). Widget and panel frame alike */
#v8:not(.v8-in-flow) body .aid-launch .aid-ll, #v8 body .aid[data-mode="center"] .aid-head h2 { background: none !important; color: #061A44 !important; -webkit-text-fill-color: #061A44; }
#v8 body .aid-mk.aid-mk-ic { color: #061A44; }
:root { --aic-tint: linear-gradient(120deg, #CBD8FC 0%, #D3D7FB 30%, #DCD4F8 55%, #E7D6F2 75%, #CFDAFC 100%); }
#v8:not(.v8-in-flow) body .aid-launch, #v8:not(.v8-in-flow) body .aid-launch:hover, #v8:not(.v8-in-flow) body .aid-launch:active, #v8 body .aid[data-mode="center"] {
  background: var(--aic-tint) !important; background-size: 240% 240% !important; }
@keyframes aic-drift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: no-preference) {
  #v8:not(.v8-in-flow) body .aid-launch { animation: aic-drift 20s ease-in-out infinite !important; }
  #v8 body .aid[data-mode="center"]:not(.aid-ghost) { animation: aic-grow .36s var(--aid-ease), aic-drift 20s ease-in-out infinite; }
}

/* ---------- The starter prompts as a mosaic of chips (Janne, 8 November 2026: shorter, "light green inside", "more clickable-
   looking", "Fennia icons ... orchestrated in a mosaic style") ----------
   Each chip hugs its words: a Fennia icon at 20, the short label, a light green inside with a thin green edge, the control corner.
   They flow centred and wrap into a loose mosaic under the greeting, never stretched into equal columns */
#v8 body .aid[data-mode="center"] .aid-empty5 .aid-qs.aid-mosaic { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 480px; margin-inline: auto; padding: 0; list-style: none; grid-template-columns: none; }
#v8 body .aid[data-mode="center"] .aid-empty5 .aid-mosaic > li { flex: none; width: auto; }
/* The chip, in the panel and the phone's sheet alike. Its padding is set by eye, measured (Janne, 8 November 2026: "still looks sides
   have less padding than tops and bottoms"; his rule: "the top and bottom paddings should always be the same as the side paddings").
   A 24 line in a 40 chip leaves the words' capitals 13.75 from the top and the baseline 15 from the bottom, and the icon's ink 11.75
   from both, so even padding (8) left only 9.5 of white beside the icon and 8.5 after the words. Each side now matches its
   neighbour's top and bottom: 10 before the icon puts its ink 11.75 in, 14 after the words puts the last letter's ink 14.4 in.
   Measured in headless Chrome at 4x (the ink, not the boxes) */
:root { --aic-chip-x-icon: 10px; --aic-chip-x-text: 14px; }
#v8 body .aid:is([data-mode="center"], [data-mode="sheet"]) .aid-empty5 .aid-q.aid-chip { display: inline-flex; align-items: center; gap: var(--v8-2); width: auto; height: var(--v8c-btn-h); min-height: var(--v8c-btn-h);
  padding: 0 var(--aic-chip-x-text) 0 var(--aic-chip-x-icon);
  border: 0 !important; border-radius: var(--v8-r-pill); background: var(--v8-mint) !important; box-shadow: inset 0 0 0 var(--v8-stroke) var(--fennia-primary-30) !important;
  color: var(--v8-deep) !important; white-space: nowrap; text-align: left; }
#v8 body .aid:is([data-mode="center"], [data-mode="sheet"]) .aid-empty5 .aid-q.aid-chip .aid-q-ic { width: 20px; height: 20px; flex: none; }
@media (hover: hover) { #v8 body .aid:is([data-mode="center"], [data-mode="sheet"]) .aid-empty5 .aid-q.aid-chip:hover { background: var(--v8-hover) !important; box-shadow: inset 0 0 0 var(--v8-stroke) var(--fennia-primary-40) !important; } }
#v8 body .aid:is([data-mode="center"], [data-mode="sheet"]) .aid-empty5 .aid-q.aid-chip:active { background: var(--v8-pressed) !important; }
/* High contrast: the edge is a box shadow, which forced colours drop, so the chip takes a real border there (as the review's answers do) */
@media (forced-colors: active) { #v8 body .aid:is([data-mode="center"], [data-mode="sheet"]) .aid-empty5 .aid-q.aid-chip { border: var(--v8-stroke) solid ButtonText !important; } }
/* Left-aligned (Janne, 8 November 2026: "They should be more left-aligned"): the greeting and the chips start at the conversation's
   left edge, the chips wrapping from there */
#v8 body .aid[data-mode="center"] .aid-empty5 .aid-hello { text-align: left !important; }
#v8 body .aid[data-mode="center"] .aid-empty5 .aid-qs.aid-mosaic { justify-content: flex-start; max-width: none; margin-inline: 0; }
/* The answers without a container (Janne, 8 November 2026: "we would save space if all the responses were without the stroked
   container"): the assistant's words sit straight on the white, full width; her own messages keep their green bubble, so who
   said what stays clear */
#v8 body .aid[data-mode="center"] .aid-ai { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
/* Her own messages much paler (Janne, 8 November 2026: "the users' messages are too dark green ... It should be closer to the
   white color"): a green barely off white, ink words (18:1) */
#v8 body .aid[data-mode="center"] .aid-me p { background: #F1FBF1 !important; color: var(--v8-ink) !important; }
/* Padding even on every side, by eye (Janne, 8 November 2026: "the top and bottom paddings should always be the same as the side
   paddings. Now ... the text is all immediately tied to it"; then "still looks sides have less padding than tops and bottoms"). The
   follow-up questions inside an answer, panel and sheet alike: 12 all round left the capitals 18.75 from the top and the baseline 20
   from the bottom but the first letter 13.5 from the edge. Now 44 tall (the portal's button height): 8 above and below centre a
   one-line question with its capitals 15.75 from the top and the baseline 17 from the bottom, and 14 at the sides (a 1 edge, then
   the letter's own white) puts the words' ink 15.5 to 16.25 in. The sheet had kept the drawer's 5 on the left, for an icon tile
   the follow-ups don't have */
#v8 body .aid:is([data-mode="center"], [data-mode="sheet"]) .aid-qs-in .aid-q { min-height: var(--v8c-btn-hit) !important; height: auto !important; padding: var(--v8-2) var(--aic-chip-x-text) !important; line-height: var(--v8-lh-16, 24px); }
/* Her messages in the frame's faintest blue (Janne, 8 November 2026: "Would it also be more harmonious if it were that very faint
   light blue ... instead of green"): the widget's pale blue, ink words */
#v8 body .aid[data-mode="center"] .aid-me p { background: var(--aic-pale, #F4F7FF) !important; }
/* The x dead centre in its square (Janne: "X is also not centered inside that little button"): another button rule left 2 of side
   padding and an inline icon on the baseline; the square takes none and the icon is a centred block */
#v8 body .aid .aid-head .aid-close { display: grid !important; place-items: center !important; padding: 0 !important; gap: 0 !important; }
#v8 body .aid .aid-head .aid-close svg { display: block !important; margin: 0 !important; }
/* The chips' words and icons in the deep green (Janne, 8 November 2026: "The text is not dark enough. I would make the text inside
   them much darker green. Also the icons"): --v8-deep #004C07, 9.4:1 on the mint. Set in the chip's own rule above */

/* ---------- More gradient, palest at the top (Janne, 8 November 2026: "I still don't think it has enough gradients ... paler colors
   at the very top, where there is the text and the icon, so that they would be somehow a bit nicer or easier to read") ----------
   Two layers: a vertical wash from near white at the top to the deeper periwinkle at the bottom, and over it the faint blue,
   lavender and pink drift. The head's navy words sit on the palest part (16:1 or more) */
:root {
  --aic-tint: linear-gradient(180deg, rgb(246 248 255 / .92) 0%, rgb(236 241 255 / .55) 22%, rgb(255 255 255 / 0) 55%),
              linear-gradient(120deg, #C7D4FC 0%, #D0D3FB 30%, #D9CEF7 55%, #E6D2F0 75%, #C9D6FC 100%);
}
#v8:not(.v8-in-flow) body .aid-launch, #v8:not(.v8-in-flow) body .aid-launch:hover, #v8:not(.v8-in-flow) body .aid-launch:active, #v8 body .aid[data-mode="center"] {
  background: var(--aic-tint) !important; background-size: 100% 100%, 240% 240% !important; }
@keyframes aic-drift { 0% { background-position: 0 0, 0% 50%; } 50% { background-position: 0 0, 100% 50%; } 100% { background-position: 0 0, 0% 50%; } }

/* ---------- The frame breathes, thinks and reacts (Janne, 8 November 2026: "I would want this container to somehow have a bit of a
   feeling that it is thinking and reacting ... this impression of breathing. Copy those styles a bit") ----------
   After the portfolio's chat ring (site/app/globals.css, the kit's fx--ring-* states), carried by a halo outside the frame so the
   layout never moves: at rest it breathes slowly; sent, one flare; thinking, the drift speeds up and the halo breathes in step
   with the dots; receive, one knock; typing, the frame quietens; upload, a ring fills clockwise. Set by aiMood() in assistant.js */
@property --aic-p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
#v8:not(.v8-in-flow) body .aid-launch::after, #v8 body .aid[data-mode="center"]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: var(--aic-r); corner-shape: squircle;
  box-shadow: 0 0 0 0 rgb(120 140 240 / 0); }
#v8 body .aid[data-mode="center"]::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: var(--aic-r); corner-shape: squircle; padding: var(--aic-band);
  background: conic-gradient(from 0deg, #3D5BD9 var(--aic-p), transparent 0); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@keyframes aic-rest { 0%, 100% { box-shadow: 0 0 0 0 rgb(120 140 240 / 0); } 50% { box-shadow: 0 0 0 4px rgb(120 140 240 / .16); } }
@keyframes aic-flare { 0% { box-shadow: 0 0 0 0 rgb(110 130 245 / .45); } 100% { box-shadow: 0 0 0 14px rgb(110 130 245 / 0); } }
@keyframes aic-breathe { 0%, 60%, 100% { box-shadow: 0 0 0 2px rgb(110 130 245 / .18); } 30% { box-shadow: 0 0 0 8px rgb(140 120 240 / .30); } }
@keyframes aic-knock { 0% { box-shadow: 0 0 0 0 rgb(120 140 240 / .35); } 40% { box-shadow: 0 0 0 7px rgb(150 130 240 / .28); } 100% { box-shadow: 0 0 0 0 rgb(120 140 240 / 0); } }
@keyframes aic-fill { from { --aic-p: 0%; opacity: 1; } 90% { --aic-p: 100%; opacity: 1; } to { --aic-p: 100%; opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  #v8:not(.v8-in-flow) body .aid-launch::after { animation: aic-rest 5s ease-in-out infinite; }
  #v8 body .aid[data-mode="center"]::after { animation: aic-rest 6s ease-in-out infinite; }
  #v8 body .aid[data-mode="center"][data-mood="think"]:not(.aid-ghost) { animation: aic-drift 3s ease-in-out infinite; }
  #v8 body .aid[data-mode="center"][data-typing]:not([data-mood="think"]):not(.aid-ghost) { animation: aic-drift 40s ease-in-out infinite; }
  #v8 body .aid[data-mode="center"][data-typing]::after { animation: none; }
  #v8 body .aid[data-mode="center"][data-mood="upload"]::before { animation: aic-fill 1.7s linear both; }
}
/* Still, the thinking is shown by the dots and the words ("Checking your policies…"), never by motion alone */
/* Motion at rest stops by itself within 5 s (WCAG 2.2.2, Pause, Stop, Hide: motion that starts on its own and runs longer than five
   seconds beside other content needs a way to stop it). The drift plays one pass when the widget appears and when the panel opens,
   the halo breathes twice, then all is still. The states that react (sent, thinking, the answer, the upload) are short and stay */
@media (prefers-reduced-motion: no-preference) {
  #v8:not(.v8-in-flow) body .aid-launch { animation: aic-drift 5s ease-in-out 1 !important; }
  #v8:not(.v8-in-flow) body .aid-launch:hover { animation: aic-drift 5s ease-in-out 1 !important; }
  #v8:not(.v8-in-flow) body .aid-launch::after { animation: aic-rest 2.5s ease-in-out 2; }
  #v8 body .aid[data-mode="center"]:not(.aid-ghost) { animation: aic-grow .36s var(--aid-ease), aic-drift 5s ease-in-out 1; }
  #v8 body .aid[data-mode="center"]::after { animation: aic-rest 2.5s ease-in-out 2; }
  #v8 body .aid[data-mode="center"][data-typing]:not([data-mood="think"]):not(.aid-ghost) { animation: none; }
}
/* Phones: the full-screen sheet gets the same mark and chips (the sheet still showed the rainbow sparkle, and its chips broke
   word by word): the person-and-spark in navy, the mosaic of deep green chips, left-aligned */
#v8 body .aid[data-mode="sheet"] .aid-brand .aid-mk.aid-mk-ic { color: #061A44; }
#v8 body .aid[data-mode="sheet"] .aid-bname { color: #061A44; }
#v8 body .aid[data-mode="sheet"] .aid-empty5 .aid-qs.aid-mosaic { display: flex !important; flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding: 0; list-style: none; grid-template-columns: none; }
#v8 body .aid[data-mode="sheet"] .aid-empty5 .aid-mosaic > li { flex: none; width: auto; }
/* The chip itself is the panel's rule (the measured padding), which covers the sheet too */

/* ---------- Reading from the top (Janne, 8 November 2026: "when the text appears, it shouldn't autoscroll to the bottom, but remain at
   the top so you can read it. Check the behaviour from other AI chats like Claude or ChatGPT") ----------
   assistant.js (aiRoom, aiDraw) moves her new message to the top of the conversation and leaves it there; the answer grows under it.
   The body is the measuring box for that (offsetTop is read from it). This replaces the 22 October rule that the conversation rests on
   the field and the drawer keeps scrolling to the newest message (ai-drawer.css, "grows upward"): the log still starts at the field
   when it is short, but once she has sent a message the room under it lets her message reach the top */
#v8 body .aid .aid-body { position: relative; }
/* Go to end of conversation (the scroll-to-latest button): the portal's secondary button (.v8-btn .v8-btn-2), icon only, 44 square, the control corner, floating centred just
   above the field while more of the conversation is below the view; hidden at the end. It floats, so it takes the floating shadow */
#v8 body .aid .aid-foot { position: relative; }
#v8 #aid .aid-foot > .v8-btn.aid-down { position: absolute; left: 50%; bottom: calc(100% + var(--v8-2)); z-index: 2; display: inline-grid; place-items: center; width: var(--v8c-btn-hit); min-width: 0; max-width: none;
  height: var(--v8c-btn-hit); min-height: var(--v8c-btn-hit); margin: 0; padding: 0; transform: translateX(-50%); box-shadow: inset 0 0 0 var(--v8-stroke) var(--fennia-primary-30), var(--v8-shadow-pop); }
#v8 #aid .aid-foot > .v8-btn.aid-down[hidden] { display: none; }
#v8 #aid .aid-foot > .v8-btn.aid-down svg.i { width: 20px; height: 20px; }
@media (hover: hover) { #v8 #aid .aid-foot > .v8-btn.aid-down:hover { box-shadow: inset 0 0 0 var(--v8-stroke) var(--fennia-primary-40), var(--v8-shadow-pop); } }
#v8 #aid .aid-foot > .v8-btn.aid-down:active { box-shadow: inset 0 0 0 var(--v8-stroke) var(--fennia-primary-40), var(--v8-shadow-pop); }
@media (prefers-reduced-motion: no-preference) { #v8 #aid .aid-foot > .v8-btn.aid-down:not([hidden]) { animation: aic-down-in .16s var(--v8-ease) both; } }
@keyframes aic-down-in { from { opacity: 0; transform: translate(-50%, var(--v8-1)); } }
@media (forced-colors: active) { #v8 #aid .aid-foot > .v8-btn.aid-down { border: var(--v8-stroke) solid ButtonText; } }

/* ---------- One source for the band (system README 193): the widget, the panel's frame and every AI button on the pages draw the
   same tint, navy and palest blues from base.css's --v8-ai-* tokens ---------- */
:root { --aic-tint: var(--v8-ai-tint); --aic-pale: var(--v8-ai-pale); --aic-pale-hover: var(--v8-ai-pale-2); }

/* ---------- 30 % larger (Janne, 8 November 2026: "Could you actually increase the size of the smaller size of the AI chat by
   30%?"). The centre panel was 70 % of the page area's width (560 to 1080) and 58 % of the window's height (at least 480); now
   1.3 times each: 91 % of the page area's width (728 to 1404) and 75.4 % of the height (at least 624), still capped to the page
   area and the window with the same 16 margins. It keeps its bottom on the widget's and grows out of it as before
   (assistant.js measures --aic-wx and --aic-hy from this size) ---------- */
#v8 body .aid[data-mode="center"] {
  width: min(max(calc((100vw - var(--aic-rail)) * .91), 728px), calc(100vw - var(--aic-rail) - 32px), 1404px);
  height: min(max(75.4dvh, 624px), calc(100dvh - var(--aic-bottom) - 16px)); }

/* ---------- The band reacts (Janne, 8 November 2026: "When I click to talk to a person, somehow the screen all of a sudden almost
   disappears. I would want there to be a bit more of that kind of liveliness happening. In general, when it's thinking or when
   you're submitting something, there could be something that it would interact with a bit, kind of like the blue container") ----------
   The halo outside the frame (::after) was too faint to see. Now the band itself answers, through a glow layer over the band only
   (::before, masked to the band as the upload ring is): a deeper periwinkle, violet and rose run. Calm, as Apple's: ease-out, no
   bounce, nothing moves the layout.
   - sent (her message, a chip, Talk to a person): the band lights up once and fades, the halo opens out with it (700 ms);
   - think (while the assistant works): the band breathes, deeper and paler, every 1.6 s, and a soft light runs round it once a
     breath; the words in the typing line ("Checking our opening hours…") say the same. It is a status, so it runs while busy;
   - receive (the answer lands): one knock, the band bright, then still (900 ms);
   - the widget (.aid-launch[data-mood]) does the same when Write to us is sent from the assistant (assistant.js aiWrote).
   With reduced motion none of it plays: the dots and the words carry the status */
@property --aic-sw { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root { --aic-glow: linear-gradient(120deg, #5C7BFF 0%, #7E6BF2 40%, #B07BE6 70%, #E39AC8 100%); }
#v8 body .aid[data-mode="center"]:not([data-mood="upload"])::before, #v8:not(.v8-in-flow) body .aid-launch::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: var(--aic-r); corner-shape: squircle; padding: var(--aic-band);
  background: var(--aic-glow); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@keyframes aic-glow-flare { 0% { opacity: 0; } 25% { opacity: .95; } 100% { opacity: 0; } }
@keyframes aic-glow-breathe { 0%, 100% { opacity: .3; } 50% { opacity: .85; } }
@keyframes aic-glow-knock { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes aic-sweep { to { --aic-sw: 360deg; } }
@keyframes aic-flare2 { 0% { box-shadow: 0 0 0 0 rgb(110 120 245 / .5); } 100% { box-shadow: 0 0 0 18px rgb(110 120 245 / 0); } }
@keyframes aic-breathe2 { 0%, 100% { box-shadow: 0 0 0 2px rgb(110 120 245 / .16); } 50% { box-shadow: 0 0 0 10px rgb(130 110 240 / .24); } }
@keyframes aic-knock2 { 0% { box-shadow: 0 0 0 0 rgb(120 130 240 / .4); } 35% { box-shadow: 0 0 0 9px rgb(150 120 240 / .26); } 100% { box-shadow: 0 0 0 0 rgb(120 130 240 / 0); } }
/* The band no longer glows when a message is sent, while the assistant thinks or when the answer lands (Janne, 10 November 2026:
   "take the effect away when you're sending a new message, where it's glowing. We don't need that in the insurance assistant
   around the frame of the thing"). The typing dots and their words carry the status. The rules are in git history. */
@media (forced-colors: active) { #v8 body .aid[data-mode="center"]::before, #v8:not(.v8-in-flow) body .aid-launch::before { display: none; } }
/* Grown once: after the opening clip (assistant.js adds .aid-grown at 420 ms) the panel's own animation is only the drift while it
   thinks, so a mood change can never replay aic-grow (it clipped the head and frame away as the answer landed) */
#v8 body .aid[data-mode="center"].aid-grown:not(.aid-ghost):not([data-mood="think"]) { animation: none; }
@media (prefers-reduced-motion: no-preference) { #v8 body .aid[data-mode="center"].aid-grown[data-mood="think"]:not(.aid-ghost) { animation: aic-drift 3s ease-in-out infinite; } }

/* ---------- README 195: smaller chips with the broad labels, and the launcher's prompt (8 November 2026) ----------
   From Jordi's pull request #11 (jmsalo/b2b-portal). Janne: "I still want to use these more broad topics because they're cognitively
   easier to understand ... What I do like about them is that they're smaller. I guess the font size is smaller, and the containers
   are smaller. That style, we can do an update, put our design system." */
/* The starter chips, one rule for the panel and the phone's sheet: 14/20 words, a 16 icon, 32 tall. The padding is set by eye so
   the sides look like the top and bottom (his standing rule): in 32 the capitals sit about 11 from the top and the baseline about
   11 from the bottom, the 16 icon's ink 9 from both; 8 before the icon puts its ink about 9 in, 10 after the words their last
   letter's ink about 10 in. 32 passes WCAG 2.5.8 (24 is the AA bar) on its own; on a touch screen each chip's hit area grows to 44
   through ::after, and the rows move 12 apart so no two hit areas overlap */
:root { --aic-chip-s-h: 32px; --aic-chip-s-y: 6px; --aic-chip-s-ic: 16px; --aic-chip-s-gap: 6px; --aic-chip-s-x-icon: 8px; --aic-chip-s-x-text: 10px; }
#v8 body .aid:is([data-mode="center"], [data-mode="sheet"]) .aid-empty5 .aid-q.aid-chip { position: relative; gap: var(--aic-chip-s-gap);
  height: var(--aic-chip-s-h); min-height: var(--aic-chip-s-h); padding: 0 var(--aic-chip-s-x-text) 0 var(--aic-chip-s-x-icon); }
#v8 body .aid:is([data-mode="center"], [data-mode="sheet"]) .aid-empty5 .aid-q.aid-chip span:last-child { font-size: var(--v8-fs-14) !important; line-height: var(--v8-lh-14) !important; }
#v8 body .aid:is([data-mode="center"], [data-mode="sheet"]) .aid-empty5 .aid-q.aid-chip .aid-q-ic { width: var(--aic-chip-s-ic); height: var(--aic-chip-s-ic); }
@media (pointer: coarse) {
  #v8 body .aid:is([data-mode="center"], [data-mode="sheet"]) .aid-empty5 .aid-qs.aid-mosaic { row-gap: var(--v8-3); }
  #v8 body .aid:is([data-mode="center"], [data-mode="sheet"]) .aid-empty5 .aid-q.aid-chip::after { content: ""; position: absolute; inset: calc((var(--aic-chip-s-h) - var(--v8c-btn-hit)) / 2) 0; }
}

/* The launcher's prompt beside the widget is gone (README 218) */
/* The thumbs without "Was this helpful?" (Janne, 8 November 2026: "Let's remove that and just thumb up and down"): the first thumb's
   ink lines up with the answer's left edge, so the row starts half a button's white early (32 around an 18 thumb; 44 on touch) */
:root { --aic-thumb: 32px; --aic-thumb-ic: 18px; }
@media (pointer: coarse) { :root { --aic-thumb: 44px; } }
#v8 body .aid-fbl { margin-inline-start: calc((var(--aic-thumb-ic) - var(--aic-thumb)) / 2); }

/* ---------- README 215, the closed widget and the closing (Janne, 9 November 2026) ----------
   "the gradient at the top part, even though I had said that I wanted it to be lighter, just looks really funky when the widget is
   closed. So it shouldn't be that light at the top": the widget's ring is the band's colour alone, without the white fade from the
   top that the open panel's head keeps (--v8-ai-tint's first layer), so the ring is even all round */
#v8:not(.v8-in-flow) body .aid-launch, #v8:not(.v8-in-flow) body .aid-launch:hover, #v8:not(.v8-in-flow) body .aid-launch:active {
  background: linear-gradient(120deg, #C7D4FC 0%, #D0D3FB 30%, #D9CEF7 55%, #E6D2F0 75%, #C9D6FC 100%) !important; }
/* "It should go smoother when it closes": the panel shrinks back into the widget over .38 (it was .26 on a curve that starts at full
   speed and stops dead), on an ease-in-out curve; its contents fade in the first half, so a shrinking frame never squeezes words; and
   the widget fades in as the frame reaches it, instead of standing there whole from the first frame */
@keyframes aic-out { to { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  #v8 body .aid[data-mode="center"].aid-ghost { animation: aic-shrink .38s cubic-bezier(.4, 0, .2, 1) forwards !important; }
  #v8 body .aid[data-mode="center"].aid-ghost > * { animation: aic-out .18s ease-in forwards; }
  #v8:not(.v8-in-flow) body:has(.aid-ghost) .aid-launch { animation: aic-fade .2s ease-out .22s both !important; }
}
/* ---------- Questions from the mark (README 222) ----------
   Chips leave whole, words and all (a mask read as cut off); the mark never moves on its own, as on a claim nothing may nudge */
#v8 body #app .aim { position: relative; display: inline-block; width: 28px; height: 28px; margin: -2px 0 -2px 10px; vertical-align: middle; }
/* Insights' narrow list stacks the pill over its caption; with a mark, the pill and the mark share the first line */
#v8 body #app .ixgk-ss:has(> .aim) { flex-flow: row wrap; align-items: center; }
#v8 body #app .ixgk-ss:has(> .aim) > .ixgk-cap { flex-basis: 100%; }
#v8 body #app .ixgk-ss > .aim { margin-left: calc(10px - var(--v8-1)); }
#v8 body #app .aim.aim-open { z-index: 20; }
#v8 body #app .aim-mark { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 0; box-sizing: border-box; border-radius: 50%;
  border: 1.5px solid transparent; background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, var(--aic-glow) border-box; color: #061A44; cursor: pointer;
  transition: transform 200ms cubic-bezier(.23, 1, .32, 1), box-shadow 200ms ease-out; }
#v8 body #app .aim-mark svg { width: 16px; height: 16px; stroke-width: 1.6; }
#v8 body #app .aim.aim-open .aim-mark { transform: scale(1.08); box-shadow: 0 0 0 4px rgb(127 151 242 / .2); }
#v8 body #app .aim-qs { position: absolute; left: 0; top: 0; width: 0; height: 0; }
#v8 body #app .aim-qs::before { content: ""; position: absolute; left: 14px; top: -76px; width: 26px; height: 180px; pointer-events: none; }   /* only the gap to the chips, so nothing beside them is covered */
#v8 body #app .aim.aim-open .aim-qs::before { pointer-events: auto; }
#v8 body #app .aim-q { position: absolute; left: 0; top: -2px; height: 32px; padding: 0 12px; box-sizing: border-box; border-radius: 16px; border: 1.5px solid transparent;
  background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, var(--aic-glow) border-box; color: #061A44;
  white-space: nowrap; cursor: pointer; box-shadow: 0 8px 18px -10px rgb(20 30 90 / .4); transform-origin: 14px 16px;
  transform: translate(4px, 0) scale(.92); opacity: 0; filter: blur(2px); pointer-events: none;
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1), opacity 140ms cubic-bezier(.23, 1, .32, 1), filter 140ms cubic-bezier(.23, 1, .32, 1); }
/* Table cells force their own text on everything inside (base.css .v8-tbox-t, payments-k.css .pk-c); this outranks both */
html#v8 body #app .aim .aim-qs .aim-q.aim-q { font-family: inherit; font-size: 14px !important; line-height: 20px !important; font-weight: 400 !important; letter-spacing: normal; text-transform: none; }
#v8 body #app .aim.aim-open .aim-q { transform: translate(38px, var(--aim-y)) scale(1); opacity: 1; filter: blur(0); pointer-events: auto;
  transition: transform 260ms cubic-bezier(.34, 1.15, .64, 1) var(--aim-d), opacity 140ms cubic-bezier(.23, 1, .32, 1) var(--aim-d), filter 200ms cubic-bezier(.23, 1, .32, 1) var(--aim-d); }
@media (hover: hover) and (pointer: fine) {
  #v8 body #app .aim-own { display: none; }
  #v8 body #app .aim-q:hover { background: linear-gradient(#F4F7FF, #F4F7FF) padding-box, var(--aic-glow) border-box; }
}
@media (prefers-reduced-motion: reduce) {
  #v8 body #app .aim-q, #v8 body #app .aim.aim-open .aim-q { transform: translate(38px, var(--aim-y)); filter: none; transition: opacity 140ms ease-out; }
  #v8 body #app .aim-mark { transition: none; }
}
@media (forced-colors: active) { #v8 body #app .aim-mark, #v8 body #app .aim-q { border-color: CanvasText; background: Canvas; } }
/* The quote: one plain line, in the composer while she writes, and above her question in the conversation */
#v8 body .aid .aid-quote { display: flex; align-items: center; gap: 8px; margin: 0; color: #22337A; font-size: 14px; line-height: 20px; }
#v8 body .aid .aid-quote-c { padding: 4px 4px 4px 12px; border-radius: 10px; background: #F4F7FF; box-shadow: inset 0 0 0 1px #DCE3FB; }
#v8 body .aid .aid-quote-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#v8 body .aid .aid-quote-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: #5E5E5E; cursor: pointer; }
#v8 body .aid .aid-quote-x svg { width: 16px; height: 16px; }
#v8 body .aid .aid-me p.aid-quote-m { max-width: 85%; justify-content: flex-end; margin: 0 0 4px; padding: 0; border-radius: 0; background: none !important; color: #5E5E5E !important; }   /* not a second bubble */
