/* Branch ai-welcome (22 October 2026, a study): the welcome dialog for Your AI assistant (app/ai-welcome.js). The system's modal
   (base.css .v8-modal, 600 wide here) with its own small parts, on the v8 tokens: type 16, 20 and 28 only, Fennia greens and greys,
   curved squares not circles (README 70), 44 to tap. Loaded after ai-drawer.css, whose AI mark (.aid-mk) it reuses. One id in every
   selector (#v8), like the system's other overlays on <body>; sizes and weights !important, as the system requires (README 2).
   No font-size in a media query: only layout responds. */

#v8 .awm [hidden] { display: none !important; }

/* The AI mark in the dialog's icon slot: the drawer's mark at 48, no mint tile behind it */
#v8 .awm .v8-dlg-ic.awm-icw { width: auto; height: auto; place-items: start; background: none; }
#v8 .awm .awm-icw .aid-mk { width: 48px; height: 48px; border-radius: var(--v8-r-sm); }
#v8 .awm .awm-icw .aid-mk > span { font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; }

#v8 .awm .v8-dlg-b p { margin: 0 0 var(--v8-3); }
#v8 .awm .v8-dlg-b b { font-weight: 700 !important; }

/* Step 1: where it is. A drawn page corner (grey lines on the light grey) with the launcher at its bottom right, as it looks at that
   width: the mark and "Your AI assistant" from 640, the mark alone on a phone (ai-drawer.css, README 142 D2). A picture, not a control */
#v8 .awm .awm-where { position: relative; height: 112px; margin-top: var(--v8-5); border-radius: var(--v8-r-in); background: var(--v8-gray); box-shadow: inset 0 0 0 1px var(--v8-line); overflow: hidden; }
#v8 .awm .awm-page { position: absolute; top: 20px; left: 20px; display: grid; gap: 10px; width: 46%; }
#v8 .awm .awm-page i { display: block; height: 8px; border-radius: 4px; background: var(--v8-line); }
#v8 .awm .awm-page i:nth-child(2) { width: 80%; } #v8 .awm .awm-page i:nth-child(3) { width: 60%; }
#v8 .awm .awm-launch { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 6px; box-sizing: border-box;
  border: 2px solid transparent; border-radius: var(--v8-r-sm); background-color: transparent; background-image: linear-gradient(var(--v8-white), var(--v8-white)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box; box-shadow: var(--v8-shadow-pop); color: var(--v8-ink); white-space: nowrap; }
@media (max-width: 639px) {
  #v8 .awm .awm-launch { width: 48px; padding: 0; justify-content: center; }
  #v8 .awm .awm-ll { display: none; }
}

/* Step 2: the questions. Each one a button that asks it in the drawer: the drawer's question look (white, 1 px line, 12 corners), a
   Fennia icon on a 40 mint square (8 corners), the question in 16 ink; hover the green wash. 56 tall, so 44 to tap at every width */
#v8 .awm .awm-qs, #v8 .awm .awm-pts { display: grid; gap: var(--v8-2); margin: var(--v8-4) 0 0; padding: 0; list-style: none; }
#v8 .awm .awm-q { display: flex; align-items: center; gap: var(--v8-3); width: 100%; min-height: 56px; padding: 8px 16px 8px 8px; border: 1px solid var(--v8-line); border-radius: var(--v8-r-in);
  background: var(--v8-white); color: var(--v8-ink); font: inherit; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; text-align: left; cursor: pointer;
  transition: background-color .16s ease-out, border-color .16s ease-out; }
@media (hover: hover) { #v8 .awm .awm-q:hover { background: var(--v8-hover); border-color: var(--fennia-primary-40, #8ADC94); } }
#v8 .awm .awm-q:active { background: var(--v8-pressed, #B8EABB); }
#v8 .awm .awm-q:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
#v8 .awm .awm-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--v8-r-sm); background: var(--v8-mint); color: var(--v8-green-t); }
#v8 .awm .awm-ic svg.i, #v8 .awm .awm-ic svg { width: 24px; height: 24px; color: var(--v8-green-t); }

/* Step 3: what keeps her in control. Plain rows, nothing to press (no line, no hover), so they don't read like step 2's buttons */
#v8 .awm .awm-pts { gap: var(--v8-4); margin-top: 0; }
#v8 .awm .awm-pts li { display: flex; align-items: center; gap: var(--v8-3); min-height: 40px; }

/* The foot: where she is at the left, the buttons at the right; "Don't show this again" under them. Back is the quiet link, Next the
   primary, Try it now the AI button. Under 640 the buttons stack full width, the main one first */
#v8 .awm .v8-dlg-f { display: block; }
#v8 .awm .awm-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--v8-3) var(--v8-4); }
#v8 .awm .awm-step { margin: 0; color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; white-space: nowrap; }
#v8 .awm .awm-acts { display: flex; align-items: center; justify-content: flex-end; gap: var(--v8-4); }
#v8 .awm .awm-back { min-height: 44px !important; padding: 0 4px; }
#v8 .awm .awm-off { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: var(--v8-3); justify-self: start; min-height: 44px; color: var(--v8-ink); cursor: pointer; }
#v8 .awm .awm-off input { flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--v8-ink); border-radius: var(--v8-r-tag); background: var(--v8-white) center / 18px no-repeat; -webkit-appearance: none; appearance: none; cursor: pointer; }
#v8 .awm .awm-off input:checked { border-color: var(--v8-green); background-color: var(--v8-green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5 9.5-10' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E"); }
#v8 .awm .awm-off input:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
#v8 .awm .awm-next:focus-visible, #v8 .awm .awm-not:focus-visible, #v8 .awm .awm-back:focus-visible { outline: var(--v8-focus) !important; outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
@media (max-width: 639px) {
  #v8 .awm .v8-dlg-f { padding-left: var(--v8-4); padding-right: var(--v8-4); }
  #v8 .awm .awm-f { grid-template-columns: minmax(0, 1fr); }
  #v8 .awm .awm-acts { flex-direction: column-reverse; align-items: stretch; gap: var(--v8-2); }
  #v8 .awm .awm-acts .v8-btn { width: 100%; }
  #v8 .awm .awm-back { justify-content: center; }
}

/* A step arrives with a short fade and a 4 px rise, so it reads as the next page of the same dialog; none with reduced motion
   (or the prototype's Motion: off, which ai-welcome.js reads) */
#v8 .awm .v8-dlg-b.awm-in { animation: awm-in .18s ease-out; }
@keyframes awm-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #v8 .awm .v8-dlg-b.awm-in { animation: none; }
  #v8 .awm .v8-modal, #v8 .awm .v8-scrim, #v8 .awm .awm-q { transition: none; }
}
@media (forced-colors: active) {
  #v8 .awm .awm-launch, #v8 .awm .awm-ic { border: 1px solid CanvasText; }
  #v8 .awm .awm-off input { forced-color-adjust: auto; -webkit-appearance: auto; appearance: auto; }
}

/* ---------- Second look (Janne, 22 October 2026: "a bit too engineering-looking") ----------
   The picture panel: a soft wash of the AI's colours from Fennia's tokens (Yellow-10, the step cards' pale Plum, Blue-10), 12
   corners, 24 in; it carries each step's picture, the topics or the promises. The title and the one line stay the dialog's own */
#v8 .awm .awm-hero { position: relative; margin: 0 0 var(--v8-5); padding: var(--v8-5); border-radius: 12px;
  background: linear-gradient(135deg, var(--fennia-yellow-10) 0%, color-mix(in srgb, var(--fennia-plum-100) 9%, var(--v8-white)) 52%, var(--fennia-blue-10) 100%); }
#v8 .awm .awm-hero-qs, #v8 .awm .awm-hero-pts { margin: var(--v8-4) 0 0; padding: var(--v8-4); }

/* Step 1: the drawer greeting her, small: the mark and the name, "Aino, how can I help?" 20 Bold, two of the topics as the drawer's
   chips; the launcher sits at the panel's bottom right, where it is on the page. A picture, hidden from screen readers */
#v8 .awm .awm-hero:not(.awm-hero-qs):not(.awm-hero-pts) { height: 196px; box-sizing: border-box; }
#v8 .awm .awm-prev { position: relative; z-index: 1; display: grid; justify-items: start; gap: var(--v8-2); width: 72%; max-width: 330px; padding: var(--v8-4); box-sizing: border-box;
  border-radius: 12px; background: var(--v8-white); box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 8px 24px -8px rgb(0 0 0 / .18); }
#v8 .awm .awm-prev-h { display: inline-flex; align-items: center; gap: var(--v8-2); color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 .awm .awm-prev-h .aid-mk { width: 24px; height: 24px; border-radius: var(--v8-r-tag); }
#v8 .awm .awm-prev-t { margin: var(--v8-1) 0 var(--v8-1) !important; color: var(--v8-ink); font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; }
#v8 .awm .awm-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 1px solid var(--v8-line); border-radius: var(--v8-r-pill); color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 .awm .awm-hero .awm-launch { right: var(--v8-5); bottom: var(--v8-5); }
#v8 .awm .awm-hero ~ p { margin: 0 0 var(--v8-2); }

/* Step 2: the four topics as cards on the panel, two by two: white, no line (the panel frames them), the icon on its mint square
   above the words; hover the green wash; one column under 480 */
#v8 .awm .awm-hero-qs .awm-qs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--v8-3); margin: 0; }
#v8 .awm .awm-hero-qs .awm-q { flex-direction: column; align-items: flex-start; gap: var(--v8-3); height: 100%; min-height: 120px; padding: var(--v8-4); border-color: transparent;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 2px 8px -4px rgb(0 0 0 / .12); }
@media (max-width: 479px) { #v8 .awm .awm-hero-qs .awm-qs { grid-template-columns: minmax(0, 1fr); } #v8 .awm .awm-hero-qs .awm-q { min-height: 0; flex-direction: row; align-items: center; } }

/* Step 3: the four promises in one white card on the panel, hairlines between them */
#v8 .awm .awm-hero-pts .awm-pts { gap: 0; padding: var(--v8-1) var(--v8-4); border-radius: 12px; background: var(--v8-white); box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 2px 8px -4px rgb(0 0 0 / .12); }
#v8 .awm .awm-hero-pts .awm-pts li { padding: var(--v8-3) 0; }
#v8 .awm .awm-hero-pts .awm-pts li + li { border-top: 1px solid var(--v8-line); }

/* The foot: progress as three small curved squares (the current one long and green), the buttons at the right, "Don't show this
   again" a quiet link under them at the left */
#v8 .awm .awm-dots { display: inline-flex; align-items: center; gap: 6px; }
#v8 .awm .awm-dots > i { display: block; width: 8px; height: 8px; border-radius: 2px; background: var(--v8-line); transition: width .2s ease-out, background-color .2s ease-out; }
#v8 .awm .awm-dots > i.on { width: 24px; background: var(--v8-green); }
#v8 .awm button.awm-off { grid-column: 1 / -1; justify-self: start; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--v8-ink-2); font: inherit;
  font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (hover: hover) { #v8 .awm button.awm-off:hover { color: var(--v8-ink); } }
#v8 .awm button.awm-off:focus-visible { outline: var(--v8-focus); outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
@media (prefers-reduced-motion: reduce) { #v8 .awm .awm-dots > i { transition: none; } }
@media (forced-colors: active) { #v8 .awm .awm-dots > i { background: CanvasText; } #v8 .awm .awm-dots > i:not(.on) { opacity: .4; } }
/* Step 1: the greeting card leaves room for the launcher at the panel's bottom right (both visible, side by side); step 3's panel
   starts right under the title */
#v8 .awm .awm-prev { width: 56%; max-width: 290px; }
#v8 .awm .awm-hero:not(.awm-hero-qs):not(.awm-hero-pts) { height: auto; min-height: 184px; }
#v8 .awm .v8-dlg-b > .awm-hero-pts:first-child { margin-top: 0; }
@media (max-width: 639px) { #v8 .awm .awm-prev { width: calc(100% - 64px); } }

/* ---------- Third look: Home's suggestion card as a dialog (Janne: "more negative space ... very airy and light ... plenty of
   padding. Very small image at the top, very cute ... the cards we've been creating for the homepage") ----------
   The dialog is 520 wide with Home's 8 white band round a pastel panel (176 high, 10 corners, each step its own colour as Home's
   cards: the step cards' pale Plum, Blue-10, the calculator's peach), a 64 picture in its middle; Close a white 36 square in the
   panel's corner. Under it 32 in: the title 20 Bold, one or two lines 16/24 in ink-2, then the foot: progress at the left, Back
   and Next ("Got it" at the end) at the right. No hairline above the foot */
#v8 .awm .v8-modal { position: relative; display: flex; flex-direction: column; padding: var(--v8-2); border-radius: 16px; }
#v8 .awm .awm-pic { display: grid; place-items: center; flex: none; height: 176px; border-radius: 10px; }
#v8 .awm .awm-t-lilac { background: color-mix(in srgb, var(--fennia-plum-100) 7%, var(--v8-white)); }
#v8 .awm .awm-t-blue { background: var(--fennia-blue-10); }
#v8 .awm .awm-t-peach { background: color-mix(in srgb, var(--fennia-yellow-10) 60%, var(--v8-white)); }
#v8 .awm .awm-pic img { display: block; width: 64px; height: 64px; }
#v8 .awm .awm-pic-mk .aid-mk { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .18); }
#v8 .awm .awm-pic-mk .aid-mk > span { font-size: var(--v8-fs-28) !important; line-height: var(--v8-lh-28) !important; }
#v8 .awm .awm-pic-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; box-sizing: border-box; border: 2px solid transparent; border-radius: var(--v8-r-pill);
  background-color: transparent; background-image: linear-gradient(var(--v8-white), var(--v8-white)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .18); color: var(--v8-ink);
  font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 .awm .v8-dlg-h { padding: var(--v8-6) var(--v8-6) 0 !important; border: 0 !important; }
#v8 .awm .v8-dlg-h h2 { font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; font-weight: 700 !important; }
#v8 .awm .v8-dlg-h .v8-ib { position: absolute; top: calc(var(--v8-2) + 12px); right: calc(var(--v8-2) + 12px); width: 36px; height: 36px; border-radius: var(--v8-r-pill); background: var(--v8-white); }
#v8 .awm .v8-dlg-b { padding: var(--v8-2) var(--v8-6) 0 !important; }
#v8 .awm .v8-dlg-b p { margin: 0 0 var(--v8-2) !important; color: var(--v8-ink-2); }
#v8 .awm .v8-dlg-b b { color: var(--v8-ink); font-weight: 700 !important; }
#v8 .awm .v8-dlg-f { padding: var(--v8-6) !important; border: 0 !important; box-shadow: none !important; }
#v8 .awm .awm-f { grid-template-columns: minmax(0, 1fr) auto; }
#v8 .awm .awm-acts { gap: var(--v8-3); }
#v8 .awm .awm-pic.awm-in { animation: awm-in .2s ease-out; }
/* ?welcome=side: the panel at the right, the words at the left (760 wide) */
#v8 .awm-side .v8-modal { display: grid; grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: auto 1fr auto; }
#v8 .awm-side .awm-pic { grid-column: 2; grid-row: 1 / span 3; height: auto; min-height: 320px; }
#v8 .awm-side .v8-dlg-h { grid-column: 1; grid-row: 1; }
#v8 .awm-side .v8-dlg-b { grid-column: 1; grid-row: 2; }
#v8 .awm-side .v8-dlg-f { grid-column: 1; grid-row: 3; }
#v8 .awm-side .v8-dlg-h .v8-ib { right: calc(var(--v8-2) + 12px); }
@media (max-width: 639px) {
  #v8 .awm .v8-dlg-h { padding: var(--v8-5) var(--v8-5) 0 !important; }
  #v8 .awm .v8-dlg-b { padding: var(--v8-2) var(--v8-5) 0 !important; }
  #v8 .awm .v8-dlg-f { padding: var(--v8-5) !important; }
  #v8 .awm .awm-f { grid-template-columns: minmax(0, 1fr); }
  #v8 .awm-side .v8-modal { display: flex; }
  #v8 .awm-side .awm-pic { height: 160px; min-height: 0; }
}
/* Close sits in the panel's top right corner (the modal is its frame, not the title row) */
#v8 .awm .v8-dlg-h { position: static !important; }
#v8 .awm .v8-dlg-h h2 { padding-right: 0 !important; }

/* ---------- Fourth look (Janne, 22 October 2026) ----------
   One peach panel for every step, taller (232); each picture a close-up of what the step names, at the size it has on the page:
   the launcher; two of the drawer's suggested questions; two AI buttons. The title at Home's suggestion card size (16 Bold), the
   text 16 regular in ink-2 with no bold, two sentences at most. The body keeps the tallest step's height, so the dialog never
   jumps between steps. Progress: three 6 px curved squares, the current one green, nothing grows or slides */
#v8 .awm .awm-pic { height: 232px; }
#v8 .awm .v8-dlg-h h2 { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; font-weight: 700 !important; }
#v8 .awm .v8-dlg-b { min-height: calc(3 * var(--v8-lh-16) + var(--v8-2)); }
#v8 .awm .v8-dlg-b p { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 .awm .v8-dlg-b b { font-weight: 400 !important; color: inherit; }
#v8 .awm .awm-cu-launch { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 8px; box-sizing: border-box; border: 2px solid transparent; border-radius: var(--v8-r-sm);
  background-color: transparent; background-image: linear-gradient(var(--v8-white), var(--v8-white)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box; box-shadow: var(--v8-shadow-pop); color: var(--v8-ink);
  font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 .awm .awm-cu-launch .aid-mk { width: 32px; height: 32px; border-radius: var(--v8-r-sm); box-shadow: none; }
#v8 .awm .awm-cu-launch .aid-mk > span { font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 .awm .awm-cu-stack { display: grid; justify-items: center; gap: var(--v8-3); }
#v8 .awm .awm-cu { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; box-sizing: border-box; border: 1px solid var(--v8-line); border-radius: var(--v8-r-sm);
  background: var(--v8-white); box-shadow: 0 4px 12px -6px rgb(0 0 0 / .16); color: var(--v8-ink); white-space: nowrap; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 .awm .awm-cu-sp { color: var(--v8-green-t); }
#v8 .awm .awm-cu-ai { border: 2px solid transparent; background-color: transparent; background-image: linear-gradient(var(--v8-white), var(--v8-white)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box; }
#v8 .awm .awm-dots { gap: 6px; }
#v8 .awm .awm-dots > i { width: 6px !important; height: 6px !important; border-radius: 2px; background: var(--fennia-neutral-30, #DDDDDD); transition: none !important; }
#v8 .awm .awm-dots > i.on { width: 6px !important; background: var(--v8-green); }
@media (max-width: 639px) { #v8 .awm .awm-pic { height: 200px; } #v8 .awm .awm-cu { white-space: normal; } }
#v8 .awm .v8-dlg-b { flex: 1 1 auto; }   /* the held height goes to the words' area, so the foot stays at the bottom */

/* ---------- Fifth look: a taller panel, crops that run off its edge ---------- */
#v8 .awm .awm-pic { position: relative; height: 320px; overflow: hidden; }
#v8 .awm .awm-crop { position: absolute; display: block; box-sizing: border-box; background: var(--v8-white); border-radius: 12px; box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 12px 32px -12px rgb(0 0 0 / .2); }
/* Step 1: a page's bottom right corner, a few grey lines, the launcher resting 24 in from its corner */
#v8 .awm .awm-crop-page { left: 64px; top: 64px; right: -24px; bottom: -24px; }
#v8 .awm .awm-crop-page > i { display: block; height: 10px; margin: 0 0 14px 32px; border-radius: 3px; background: var(--fennia-neutral-15); }
#v8 .awm .awm-crop-page > i:nth-child(1) { width: 52%; margin-top: 32px; } #v8 .awm .awm-crop-page > i:nth-child(2) { width: 68%; } #v8 .awm .awm-crop-page > i:nth-child(3) { width: 40%; }
#v8 .awm .awm-crop-page .awm-cu-launch { position: absolute; right: 48px; bottom: 48px; }
/* Step 2: the chat, cropped: the greeting 16 Bold, two suggested questions as the drawer draws them (white, 1 px line, 8 corners, no
   sparkle), the box to type in */
#v8 .awm .awm-crop-chat { left: 72px; right: 72px; top: 48px; bottom: -24px; display: grid; align-content: start; justify-items: start; gap: var(--v8-2); padding: var(--v8-5); }
#v8 .awm .awm-chat-t { margin-bottom: var(--v8-2); color: var(--v8-ink); font-weight: 700 !important; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 .awm .awm-chat-q { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--v8-line); border-radius: var(--v8-r-sm); color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; white-space: nowrap; }
#v8 .awm .awm-chat-in { justify-self: stretch; display: flex; align-items: center; min-height: 48px; margin-top: var(--v8-3); padding: 0 14px; box-sizing: border-box; border: 1px solid var(--fennia-primary-30); border-radius: 12px; color: var(--v8-ink-2); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
/* Step 3: a card's top left corner (Coverages) with its AI button at the right, two grey lines under */
#v8 .awm .awm-crop-card { left: -24px; right: 56px; top: 72px; bottom: -24px; padding: var(--v8-5) var(--v8-5) 0 calc(var(--v8-5) + 24px); }
#v8 .awm .awm-card-h { display: flex; align-items: center; justify-content: space-between; gap: var(--v8-3); margin-bottom: var(--v8-5); }
#v8 .awm .awm-card-t { color: var(--v8-ink); font-weight: 700 !important; font-size: var(--v8-fs-20) !important; line-height: var(--v8-lh-20) !important; }
#v8 .awm .awm-crop-card .awm-cu-ai { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; box-sizing: border-box; border: 2px solid transparent; border-radius: var(--v8-r-sm);
  background-color: transparent; background-image: linear-gradient(var(--v8-white), var(--v8-white)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box; color: var(--v8-ink); white-space: nowrap; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 .awm .awm-crop-card > i { display: block; height: 10px; margin-bottom: 14px; border-radius: 3px; background: var(--fennia-neutral-15); width: 70%; }
#v8 .awm .awm-crop-card > i + i { width: 48%; }
@media (max-width: 639px) {
  #v8 .awm .awm-pic { height: 260px; }
  #v8 .awm .awm-crop-page { left: 32px; top: 40px; } #v8 .awm .awm-crop-page .awm-cu-launch { right: 40px; bottom: 40px; }
  #v8 .awm .awm-crop-chat { left: 24px; right: -24px; top: 32px; }
  #v8 .awm .awm-crop-card { right: -40px; top: 48px; }
}

/* ---------- Sixth look (Janne, 22 October 2026) ----------
   Step 1 "the other way around": the page shows its own bottom right corner, where the launcher rests, and runs off the panel's top
   and left. Step 2: the chat runs off the panel's top and ends at the bottom, finished, with the writing field as the drawer draws it
   (the field's line, the placeholder, the add square at the left and the send square at the right), the suggested questions above
   it with the light green stroke (Primary-30), as the drawer now draws them too */
#v8 .awm .awm-crop-page { left: -24px; top: -24px; right: 56px; bottom: 56px; }
#v8 .awm .awm-crop-page > i { margin-left: 56px; }
#v8 .awm .awm-crop-page > i:nth-child(1) { margin-top: 64px; }
#v8 .awm .awm-crop-page .awm-cu-launch { right: 24px; bottom: 24px; }
#v8 .awm .awm-crop-chat { left: 64px; right: 64px; top: -24px; bottom: 40px; align-content: end; padding: var(--v8-4); }
#v8 .awm .awm-chat-q { border-color: var(--fennia-primary-30); }
#v8 .awm .awm-chat-in { display: grid; gap: 4px; min-height: 0; margin-top: var(--v8-3); padding: 8px; border-color: var(--v8-field); border-radius: 12px; }
#v8 .awm .awm-chat-ph { padding: 8px 4px; color: var(--v8-ink-2); }
#v8 .awm .awm-chat-row { display: flex; align-items: center; justify-content: space-between; }
#v8 .awm .awm-chat-add, #v8 .awm .awm-chat-send { display: grid; place-items: center; width: 32px; height: 32px; box-sizing: border-box; border-radius: var(--v8-r-pill); }
#v8 .awm .awm-chat-add { border: 1px solid var(--fennia-primary-30); color: var(--v8-green-t); }
#v8 .awm .awm-chat-send { background: var(--fennia-neutral-20); color: var(--fennia-neutral-60); }
#v8 .awm .awm-chat-send svg { width: 18px; height: 18px; }
@media (max-width: 639px) {
  #v8 .awm .awm-crop-page { left: -24px; top: -24px; right: 32px; bottom: 32px; }
  #v8 .awm .awm-crop-chat { left: 24px; right: 24px; top: -24px; bottom: 24px; }
}

/* ---------- Seventh look (Janne, 22 October 2026) ----------
   The panel has a darker peach edge, 1 px, so a white crop never melts into the dialog's white ("the white item bleeds to the
   white at the bottom, and it shouldn't") */
#v8 .awm .awm-pic { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fennia-yellow-100) 30%, var(--v8-white)); }
#v8 .awm .awm-crop { z-index: 0; }
#v8 .awm .awm-pic::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fennia-yellow-100) 30%, var(--v8-white)); pointer-events: none; }
/* Step 3: the policy page skeleton, 600 x 420 at full size, zoomed: far (0.5, the whole page in the panel) to near (1.25 on the AI
   button) and back, 7 s a loop with holds at both ends. Transform only, so it runs smoothly */
#v8 .awm .awm-zoom { position: absolute; inset: 0; overflow: hidden; }
#v8 .awm .awm-zp { position: absolute; left: 50%; top: 50%; width: 600px; height: 420px; margin: -210px 0 0 -300px; padding: 32px; box-sizing: border-box; border-radius: 16px; background: var(--v8-white);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .05), 0 16px 40px -16px rgb(0 0 0 / .22); transform-origin: 75% 38%; transform: scale(.5); animation: awm-zoom 7s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes awm-zoom { 0%, 18% { transform: scale(.5); } 45%, 75% { transform: scale(1.25); } 100% { transform: scale(.5); } }
#v8 .awm .awm-zp-t { display: block; width: 46%; height: 20px; margin-bottom: 12px; border-radius: 4px; background: var(--fennia-neutral-30); }
#v8 .awm .awm-zp-l { display: block; width: 64%; height: 10px; margin-bottom: 24px; border-radius: 3px; background: var(--fennia-neutral-15); }
#v8 .awm .awm-zp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; height: 48px; margin-bottom: 24px; border: 1px solid var(--v8-line); border-radius: var(--v8-r-sm); }
#v8 .awm .awm-zp-facts > i + i { border-left: 1px solid var(--v8-line); }
#v8 .awm .awm-zp-card { display: block; padding: 20px; margin-bottom: 16px; border: 1px solid var(--v8-line); border-radius: 12px; }
#v8 .awm .awm-zp-card > i { display: block; height: 10px; margin-top: 12px; border-radius: 3px; background: var(--fennia-neutral-15); width: 80%; }
#v8 .awm .awm-zp-card > i:nth-of-type(2) { width: 62%; } #v8 .awm .awm-zp-card > i:nth-of-type(3) { width: 70%; }
#v8 .awm .awm-zp .awm-card-h { margin-bottom: 8px; }
#v8 .awm .awm-zp .awm-cu-ai { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; box-sizing: border-box; border: 2px solid transparent; border-radius: var(--v8-r-sm);
  background-color: transparent; background-image: linear-gradient(var(--v8-white), var(--v8-white)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box; color: var(--v8-ink); white-space: nowrap; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 .awm .awm-zp-card2 { height: 40px; }
@media (prefers-reduced-motion: reduce) { #v8 .awm .awm-zp { animation: none; transform: scale(1.1); } }
html[data-motion="off"] #v8 .awm .awm-zp { animation: none; transform: scale(1.1); }
/* The close-in end centres on the AI button and keeps it whole, with a little of its card round it */
#v8 .awm .awm-zp { transform-origin: 74% 50%; }
@keyframes awm-zoom { 0%, 18% { transform: scale(.5); } 45%, 75% { transform: scale(.95); } 100% { transform: scale(.5); } }
@media (prefers-reduced-motion: reduce) { #v8 .awm .awm-zp { transform: scale(.85); } }
html[data-motion="off"] #v8 .awm .awm-zp { transform: scale(.85); }

/* ---------- Eighth look: a deeper panel and the loop (Janne, 22 October 2026, with a reference: an AI product's page with its UI on a
   deep lavender-blue backdrop; "a bit darker background color ... so you should see it better in context. I think looping videos
   would work really well in here") ----------
   The panel: Fennia's Blue-30 and Aqua-10 with Plum, soft, light at the top left and deeper to the bottom right; the white pieces sit
   on it with real shadows. Every step the same panel */
#v8 .awm .awm-t-deep { background:
  radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--fennia-blue-20) 85%, var(--v8-white)) 0%, transparent 60%),
  radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--fennia-plum-100) 30%, var(--fennia-aqua-10)) 0%, transparent 70%),
  linear-gradient(135deg, var(--fennia-blue-30) 0%, color-mix(in srgb, var(--fennia-plum-100) 18%, var(--fennia-blue-30)) 100%); }
#v8 .awm .awm-t-deep, #v8 .awm .awm-t-deep::after { box-shadow: none; }
#v8 .awm .awm-crop, #v8 .awm .awm-zp { box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 24px 48px -20px rgb(20 30 80 / .45); }

/* The loop, 11 s (step 3). Times in the keyframes: 0-12 the page far; 12-30 zoom in, the pointer glides to the button; 30-38 hover;
   38-40 click; 42-56 zoom out, the drawer slides in; 58-62 her question; 62-74 the answer writes in; 74-88 hold; 88-98 the drawer
   slides out; again */
#v8 .awm .awm-zp { transform-origin: var(--bx, 74%) var(--by, 50%); animation: awm-loop-zoom 11s cubic-bezier(.65, 0, .35, 1) infinite; overflow: hidden; }
@keyframes awm-loop-zoom { 0%, 12% { transform: scale(.5); } 30%, 40% { transform: scale(1); } 56%, 100% { transform: scale(.52); } }
#v8 .awm .awm-zp-btn { position: relative; animation: awm-loop-btn 11s ease infinite; }
@keyframes awm-loop-btn { 0%, 30% { background-color: transparent; background-image: linear-gradient(var(--v8-white), var(--v8-white)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box; transform: none; }
  32%, 37% { background-color: transparent; background-image: linear-gradient(var(--v8-hover), var(--v8-hover)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box; transform: none; }
  38.5% { background-color: transparent; background-image: linear-gradient(var(--v8-pressed), var(--v8-pressed)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box; transform: scale(.95); }
  41%, 100% { background-color: transparent; background-image: linear-gradient(var(--v8-white), var(--v8-white)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box; transform: none; } }
#v8 .awm .awm-zp-cur { position: absolute; left: var(--bx, 440px); top: var(--by, 200px); z-index: 5; width: 40px; height: 40px; margin: -4px 0 0 -6px; pointer-events: none;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / .25)); animation: awm-loop-cur 11s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes awm-loop-cur { 0%, 14% { opacity: 0; transform: translate(150px, 120px); } 18% { opacity: 1; transform: translate(130px, 104px); }
  30%, 37% { opacity: 1; transform: translate(0, 0) scale(1); } 38.5% { transform: translate(0, 0) scale(.88); } 40% { opacity: 1; transform: translate(0, 0) scale(1); }
  46%, 100% { opacity: 0; transform: translate(10px, 10px); } }
#v8 .awm .awm-zp-dr { position: absolute; top: 0; right: 0; bottom: 0; z-index: 4; display: flex; flex-direction: column; gap: 14px; width: 42%; padding: 20px; box-sizing: border-box;
  border-left: 1px solid var(--v8-line); background: var(--v8-white); box-shadow: -12px 0 32px -16px rgb(20 30 80 / .3); transform: translateX(105%); animation: awm-loop-dr 11s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes awm-loop-dr { 0%, 42% { transform: translateX(105%); } 56%, 88% { transform: translateX(0); } 98%, 100% { transform: translateX(105%); } }
#v8 .awm .awm-zp-drh { display: inline-flex; align-items: center; gap: 8px; color: var(--v8-ink); font-weight: 700 !important; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 .awm .awm-zp-drh .aid-mk { width: 28px; height: 28px; border-radius: var(--v8-r-sm); }
#v8 .awm .awm-zp-me { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--v8-mint); color: var(--v8-ink);
  font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; opacity: 0; transform: translateY(6px); animation: awm-loop-me 11s ease infinite; }
@keyframes awm-loop-me { 0%, 57% { opacity: 0; transform: translateY(6px); } 61%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
#v8 .awm .awm-zp-ans { display: grid; gap: 8px; }
#v8 .awm .awm-zp-ans > i { display: block; height: 10px; border-radius: 3px; background: var(--fennia-neutral-20); transform-origin: left; transform: scaleX(0); animation: awm-loop-ln 11s ease-out infinite; }
#v8 .awm .awm-zp-ans > i:nth-child(2) { width: 88%; animation-name: awm-loop-ln2; } #v8 .awm .awm-zp-ans > i:nth-child(3) { width: 94%; animation-name: awm-loop-ln3; }
#v8 .awm .awm-zp-ans > i:nth-child(4) { width: 60%; animation-name: awm-loop-ln4; }
#v8 .awm .awm-zp-ans > b { margin-top: 6px; color: var(--v8-ink); font-weight: 700 !important; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; opacity: 0; animation: awm-loop-src 11s ease infinite; }
#v8 .awm .awm-zp-ans > i.s { width: 70%; background: color-mix(in srgb, var(--v8-green-t) 35%, var(--v8-white)); animation-name: awm-loop-ln5; }
@keyframes awm-loop-ln { 0%, 63% { transform: scaleX(0); } 66%, 92% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes awm-loop-ln2 { 0%, 65% { transform: scaleX(0); } 68%, 92% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes awm-loop-ln3 { 0%, 67% { transform: scaleX(0); } 70%, 92% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes awm-loop-ln4 { 0%, 69% { transform: scaleX(0); } 72%, 92% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes awm-loop-src { 0%, 72% { opacity: 0; } 74%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes awm-loop-ln5 { 0%, 74% { transform: scaleX(0); } 77%, 92% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); opacity: 0; } }
/* Reduced motion (or Motion: off): one still, zoomed out with the drawer open, her question and the answer shown */
@media (prefers-reduced-motion: reduce) {
  #v8 .awm .awm-zp, #v8 .awm .awm-zp-btn, #v8 .awm .awm-zp-cur, #v8 .awm .awm-zp-dr, #v8 .awm .awm-zp-me, #v8 .awm .awm-zp-ans > * { animation: none !important; }
  #v8 .awm .awm-zp { transform: scale(.52); } #v8 .awm .awm-zp-cur { opacity: 0; } #v8 .awm .awm-zp-dr { transform: none; } #v8 .awm .awm-zp-me, #v8 .awm .awm-zp-ans > b { opacity: 1; transform: none; } #v8 .awm .awm-zp-ans > i { transform: none; }
}
/* Far away the page is centred in the panel; close in, 0.85 keeps the button and its card whole */
@keyframes awm-loop-zoom { 0%, 12% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(.5); } 30%, 40% { transform: translate(0, 0) scale(.85); } 56%, 100% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(.5); } }
@media (prefers-reduced-motion: reduce) { #v8 .awm .awm-zp { transform: translate(var(--tx, 0), var(--ty, 0)) scale(.5); } }

/* ---------- Loops for steps 1 and 2 (the step 3 timeline, other targets) ---------- */
#v8 .awm .awm-zp-launch { position: absolute; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px; box-sizing: border-box;
  border: 2px solid transparent; border-radius: var(--v8-r-sm); background-color: transparent; background-image: linear-gradient(var(--v8-white), var(--v8-white)), var(--v8-ring); background-clip: padding-box, border-box; background-origin: border-box;
  box-shadow: var(--v8-shadow-pop); color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; white-space: nowrap; }
#v8 .awm .awm-zp-launch .aid-mk { width: 28px; height: 28px; border-radius: var(--v8-r-sm); }
#v8 .awm .awm-zp-hi { margin-top: 8px; color: var(--v8-ink); font-weight: 700 !important; font-size: var(--v8-fs-16) !important; line-height: var(--v8-lh-16) !important; }
#v8 .awm .awm-zp-q { display: inline-flex; align-self: flex-start; align-items: center; min-height: 34px; padding: 4px 10px; box-sizing: border-box; border: 1px solid var(--fennia-primary-30); border-radius: var(--v8-r-sm);
  background: var(--v8-white); color: var(--v8-ink); font-size: var(--v8-fs-16) !important; line-height: 20px !important; }
#v8 .awm .awm-zp-qs { display: flex; flex-direction: column; gap: 10px; }
/* Step 1: the drawer shows its greeting and questions as it arrives; the launcher hides while it's open */
#v8 .awm .awm-s1 .awm-zp-hi, #v8 .awm .awm-s1 .awm-zp-q { opacity: 0; animation: awm-s1-in 11s ease infinite; }
@keyframes awm-s1-in { 0%, 52% { opacity: 0; transform: translateY(6px); } 58%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
#v8 .awm .awm-s1 .awm-zp-launch { animation: awm-loop-btn 11s ease infinite, awm-s1-launch 11s ease infinite; }
@keyframes awm-s1-launch { 0%, 44% { opacity: 1; } 48%, 94% { opacity: 0; } 100% { opacity: 1; } }
/* Step 2: the drawer is open from the start, wider, the page behind; the questions go when one is chosen, her message and the answer
   come in */
#v8 .awm .awm-s2 .awm-zp-dr { width: 50%; transform: none; animation: none; }
#v8 .awm .awm-s2 .awm-zp-qs { animation: awm-s2-qs 11s ease infinite; }
@keyframes awm-s2-qs { 0%, 41% { opacity: 1; max-height: 200px; } 46%, 92% { opacity: 0; max-height: 0; } 98%, 100% { opacity: 1; max-height: 200px; } }
#v8 .awm .awm-s2 .awm-zp-me { animation: awm-s2-me 11s ease infinite; }
@keyframes awm-s2-me { 0%, 46% { opacity: 0; transform: translateY(6px); } 50%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
#v8 .awm .awm-s2 .awm-zp-ans > i { animation-name: awm-s2-ln; } #v8 .awm .awm-s2 .awm-zp-ans > i:nth-child(2) { animation-name: awm-s2-ln2; }
#v8 .awm .awm-s2 .awm-zp-ans > i:nth-child(3) { animation-name: awm-s2-ln3; } #v8 .awm .awm-s2 .awm-zp-ans > i:nth-child(4) { animation-name: awm-s2-ln4; }
@keyframes awm-s2-ln { 0%, 52% { transform: scaleX(0); } 56%, 90% { transform: scaleX(1); } 95%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes awm-s2-ln2 { 0%, 54% { transform: scaleX(0); } 58%, 90% { transform: scaleX(1); } 95%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes awm-s2-ln3 { 0%, 56% { transform: scaleX(0); } 60%, 90% { transform: scaleX(1); } 95%, 100% { transform: scaleX(0); opacity: 0; } }
@keyframes awm-s2-ln4 { 0%, 58% { transform: scaleX(0); } 62%, 90% { transform: scaleX(1); } 95%, 100% { transform: scaleX(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #v8 .awm .awm-s1 .awm-zp-hi, #v8 .awm .awm-s1 .awm-zp-q, #v8 .awm .awm-s1 .awm-zp-launch, #v8 .awm .awm-s2 .awm-zp-qs, #v8 .awm .awm-s2 .awm-zp-me { animation: none !important; opacity: 1; transform: none; }
  #v8 .awm .awm-s1 .awm-zp-launch { opacity: 0; }
  #v8 .awm .awm-s2 .awm-zp-me, #v8 .awm .awm-s2 .awm-zp-ans { display: none; }
}
/* Close in, the target sits in the panel's middle (the launcher in its page corner would otherwise fall below the panel) */
@keyframes awm-loop-zoom { 0%, 12% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(.5); } 30%, 40% { transform: translate(var(--nx, 0), var(--ny, 0)) scale(.85); } 56%, 100% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(.5); } }
/* The answer's lines read from far away: Neutral-30, the Sources line in a deeper green */
#v8 .awm .awm-zp-ans > i { background: var(--fennia-neutral-30); height: 12px; }
#v8 .awm .awm-zp-ans > i.s { background: color-mix(in srgb, var(--v8-green-t) 55%, var(--v8-white)); }

/* ---------- The live scenes: the working prototype in a frame, driven by script ---------- */
#v8 .awm .awm-live { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
#v8 .awm .awm-live-w { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 24px 48px -20px rgb(20 30 80 / .45); transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
#v8 .awm .awm-live-if { display: block; width: 1440px; height: 900px; border: 0; background: var(--v8-white); pointer-events: none; }
#v8 .awm .awm-live-cur { position: absolute; left: 0; top: 0; z-index: 3; width: 40px; height: 40px; opacity: 0; pointer-events: none; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .25));
  transition: transform 1s cubic-bezier(.45, 0, .2, 1), opacity .3s ease; }
#v8 .awm .awm-live-cur > svg { transition: transform .12s ease; transform-origin: 20% 15%; }
#v8 .awm .awm-live-cur.is-down > svg { transform: scale(.85); }
@media (prefers-reduced-motion: reduce) { #v8 .awm .awm-live-w, #v8 .awm .awm-live-cur { transition: none; } }
/* Our own pastel (Janne, 22 October 2026: the deep blue-lilac was "too similar to the colors ... from [the reference] ... pick the
   colors we did, like some pastel colors ... the [mauve] color we used in the B2B portal work"): the step cards' mauve (Plum-100 on
   white), a little deeper towards the bottom right so the white page still stands off it */
#v8 .awm .awm-t-deep { background: linear-gradient(135deg, color-mix(in srgb, var(--fennia-plum-100) 6%, var(--v8-white)) 0%, color-mix(in srgb, var(--fennia-plum-100) 14%, var(--v8-white)) 100%); }

/* ---------- Tenth look: a larger dialog, the page as a framed screen (Janne, 22 October 2026: "make the modal larger ... at least
   30%, but do not make the text or the buttons any bigger ... You need a stroke around where you're presenting the page ... like the
   viewport ... show the screen in the middle of the colored container ... When you zoom in on your AI assistant, you would also see
   the bottom-right corner of the screen", after his reference of a browser window on a backdrop) ----------
   The dialog is 680 wide (was 520), the panel 420 high; the type and buttons keep their sizes. The page sits in a browser window:
   a 40 top bar (three grey dots and the address) over the 1440 x 900 page, 16 corners, a 1 px edge and a soft lift, 28 in from the
   panel's edges when seen whole. The camera moves the whole window, so close in on a corner its own corner shows */
#v8 .awm .awm-pic { height: 420px; }
#v8 .awm .awm-live-w { height: 940px; border-radius: 16px; background: var(--v8-white); box-shadow: 0 0 0 2px rgb(255 255 255 / .9), 0 0 0 3px color-mix(in srgb, var(--fennia-plum-100) 22%, var(--v8-white)), 0 32px 64px -24px rgb(60 20 60 / .35); }
#v8 .awm .awm-live-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; box-sizing: border-box; border-bottom: 1px solid var(--v8-line); background: var(--fennia-neutral-10, #F9F9F9); }
#v8 .awm .awm-live-bar > i { width: 12px; height: 12px; border-radius: 4px; background: var(--fennia-neutral-30, #DDDDDD); }
#v8 .awm .awm-live-bar > span { margin-left: 24px; padding: 4px 16px; border-radius: var(--v8-r-tag); background: var(--v8-white); color: var(--v8-ink-2); font-size: 14px; line-height: 20px; box-shadow: inset 0 0 0 1px var(--v8-line); }
#v8 .awm .awm-live-if { border-radius: 0 0 16px 16px; }
@media (max-width: 719px) { #v8 .awm .awm-pic { height: 300px; } }

/* ---------- The screen's bezel (Janne, 22 October 2026: "a thicker stroke to signify a proper frame for the screen ... remove that
   really awful part at the top where it says the website name ... a better aesthetic for the stroke around") ----------
   No address bar. A 22 white bezel round the page (about 9 at the whole-screen scale), 28 outer corners, a hairline where the bezel
   meets the page and a soft mauve edge outside, and the screen's lift */
#v8 .awm .awm-live-bar { display: none; }
#v8 .awm .awm-live-w { width: 1484px; height: 944px; padding: 22px; box-sizing: border-box; border-radius: 28px; background: var(--v8-white);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fennia-plum-100) 20%, var(--v8-white)), 0 2px 4px rgb(60 20 60 / .06), 0 36px 72px -28px rgb(60 20 60 / .4); }
#v8 .awm .awm-live-if { border-radius: var(--v8-r-sm); box-shadow: 0 0 0 1px var(--v8-line); }

/* The mauve panel keeps a visible edge (Janne, 23 October 2026: "make a stronger color stroke, like a mob stroke, at the edge of the mob
   container. There are instances where the video moves so that it shows white on white, like the white band, and they blend"): a 2 px
   mauve stroke drawn above the scene (the ::after overlay, z-index over the framed page), so the white bezel of the live page never meets
   the dialog's white without a line between them. Plum-100 at 35 % on white */
#v8 .awm .awm-t-deep::after { z-index: 10 !important; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fennia-plum-100) 60%, var(--v8-white)) !important; }

/* The scene pointer over a text field is a text cursor (Janne, 23 October 2026: a proper hover over the field) */
#v8 .awm .awm-live-cur .awm-ibeam { position: absolute; left: -8px; top: -10px; display: none; }
#v8 .awm .awm-live-cur.is-text > svg:first-child { display: none; }
#v8 .awm .awm-live-cur.is-text .awm-ibeam { display: block; }

/* The close button on the coloured picture panel (Janne, 23 October 2026, seen on the case page: "the X button should have a white
   container and a stroke around it so that you see it properly and can close it"): a white square, the system's stronger line round it,
   the green wash on hover, the deep green ring on focus as everywhere */
html#v8 .awm .v8-ib[data-act="awm-close"] { background: var(--v8-white) !important; box-shadow: inset 0 0 0 1px var(--v8-line-strong, #CFCFCF) !important; color: var(--v8-ink) !important; }
@media (hover: hover) { html#v8 .awm .v8-ib[data-act="awm-close"]:hover { background: var(--v8-hover) !important; box-shadow: inset 0 0 0 1px var(--fennia-primary-40, #8ADC94) !important; } }
html#v8 .awm .v8-ib[data-act="awm-close"]:active { background: var(--v8-pressed) !important; }

/* The demo note on the last step (?welcome=demo, README 176): a dark tip above Got it, its arrow pointing at the button, 14 over 20 as
   the chart tips (README 149); it fades out after 4 s */
#v8 .awm .awm-acts { position: relative; }
#v8 .awm .awm-tip { position: absolute; right: 0; bottom: calc(100% + 12px); z-index: 3; width: max-content; max-width: 280px; padding: 8px 12px;
  border-radius: var(--v8-r-sm); background: var(--v8-ink); color: var(--v8-white); font-size: 14px; line-height: 20px; text-align: left;
  box-shadow: var(--v8-shadow-pop); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .16s ease-out, transform .16s ease-out; }
#v8 .awm .awm-tip::after { content: ""; position: absolute; right: var(--tip-x, 28px); top: 100%; border: 6px solid transparent; border-top-color: var(--v8-ink); }
#v8 .awm .awm-tip.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { #v8 .awm .awm-tip { transition: none; } }

/* The close button's demo note (README 176): the same dark tip, below the X, its arrow pointing up at it */
#v8 .awm .awm-tip.awm-tip-x { bottom: auto; transform: translateY(-4px); }
#v8 .awm .awm-tip.awm-tip-x.is-on { transform: none; }
#v8 .awm .awm-tip.awm-tip-x::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--v8-ink); }

/* The close button evenly inset (Janne, 23 October 2026: "move the X more towards the left so it's evenly distributed from the top and
   right-hand side"): the dialogs' shared -10 right margin pushed it to 2 px from the picture's right edge against 12 from its top; with
   no margin it sits 12 from both edges of the picture it reads against. README 174 */
html#v8 .awm .v8-ib[data-act="awm-close"] { margin-right: 0 !important; }
