/* Steps that come along (README 199, 8 November 2026): the numbered steps in an answer, the step bar that takes the widget's place,
   and the ring on the control for the step. Loaded after the assistant's other styles; app/ai-steps.js draws them. */

/* ---------- The answer's steps: a numbered list, the number in a 24 curved square (no circles, README 70) ---------- */
#v8 body .aid-a ol.ais-ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: ais; }
#v8 body .aid-a ol.ais-ol li { position: relative; min-height: 24px; padding-left: 36px; counter-increment: ais; }
#v8 body .aid-a ol.ais-ol li::before { content: counter(ais); left: 0; top: calc(0.5lh - 12px); width: 24px; height: 24px; border-radius: 6px;
  background: var(--v8-ai-pale-2, #E8EEFF); color: var(--v8-ai-ink, #061A44); font-size: var(--v8-fs-14); line-height: 24px; font-weight: 700; text-align: center; }

/* ---------- The bar: the widget's place, band and corners, white inside ---------- */
html.ais-on body .aid-launch { display: none !important; }
#v8 body .ais-bar { position: fixed; left: var(--aic-rail, 0px); right: 0; bottom: 24px; z-index: 80; box-sizing: border-box; width: max-content;
  max-width: min(720px, calc(100vw - var(--aic-rail, 0px) - 32px)); margin-inline: auto; padding: var(--aic-band, 4px); border-radius: var(--aic-r, 16px); corner-shape: squircle;
  background: var(--aic-tint); background-size: 100% 100%, 240% 240%; box-shadow: var(--aic-frame-edge, 0 0 0 1px rgb(120 140 210 / .18)), var(--v8-shadow-pop); color: var(--v8-ai-ink, #061A44); }
#v8 body:has(.aid:not(.aid-ghost)) .ais-bar { display: none; }   /* the panel open: it speaks for itself */
#v8 body .ais-in { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 4px 4px 12px; border-radius: calc(var(--aic-r, 16px) - var(--aic-band, 4px)); corner-shape: squircle; background: var(--v8-white); }
#v8 body .ais-mk { display: inline-grid; flex: none; width: 28px; height: 28px; color: var(--v8-ai-ink, #061A44); }
#v8 body .ais-mk svg { width: 28px; height: 28px; }
#v8 body .ais-n { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--v8-ai-pale-2, #E8EEFF); color: var(--v8-ai-ink, #061A44); font-size: var(--v8-fs-14); line-height: var(--v8-lh-14); white-space: nowrap; }
#v8 body .ais-n-ok { display: inline-flex; align-items: center; gap: 4px; padding-left: 6px; background: var(--v8-mint); color: var(--v8-deep); }
#v8 body .ais-n-ok svg { width: 16px; height: 16px; fill: currentColor; }
#v8 body .ais-t { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--v8-fs-16); line-height: var(--v8-lh-16); color: var(--v8-ai-ink, #061A44); }
/* Next and Back to Certificates: the answer's own action (.aid-act); the x: the panel's Close, a 36 square with the secondary edge */
#v8 body .ais-go { display: inline-flex; flex: none; align-items: center; height: 36px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--fennia-primary-30, #B8EABB);
  border-radius: var(--v8-r-sm); background: var(--v8-white); color: var(--v8-green-t) !important; font: inherit; font-size: var(--v8-fs-16); line-height: var(--v8-lh-16); text-decoration: none; white-space: nowrap; cursor: pointer; }
#v8 body .ais-x { display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--fennia-primary-30, #B8EABB);
  border-radius: var(--v8-r-sm); background: var(--v8-white); color: var(--v8-green-t); cursor: pointer; }
#v8 body .ais-x svg { width: 20px; height: 20px; }
@media (hover: hover) { #v8 body .ais-go:hover, #v8 body .ais-x:hover { background: var(--v8-hover); border-color: var(--fennia-primary-40, #8ADC94); } }
#v8 body .ais-bar :focus-visible { outline: var(--v8-focus) !important; outline-offset: 0 !important; box-shadow: var(--v8-focus-glow) !important; }
@media (pointer: coarse) { #v8 body .ais-go, #v8 body .ais-x { min-height: 44px; } #v8 body .ais-x { width: 44px; } }
/* Above the tab bar, as the widget; on a phone two rows: the tag with Next and the x, then the words, so it covers as little as it can */
@media (max-width: 1023px) { #v8 body .ais-bar { bottom: calc(var(--tabbar-h, 64px) + 12px + env(safe-area-inset-bottom)); } }
@media (max-width: 639px) {
  #v8 body .ais-bar { left: 16px; right: 16px; width: auto; max-width: none; }
  #v8 body .ais-in { flex-wrap: wrap; gap: 8px; padding: 8px 8px 12px 12px; }
  #v8 body .ais-n { margin-right: auto; }
  #v8 body .ais-t { order: 5; flex-basis: 100%; }
}

/* ---------- The ring: the assistant's band round what to use next, 4 outside it, never over a dialog or the panel ---------- */
#v8 body .ais-ring { position: fixed; z-index: 79; box-sizing: border-box; pointer-events: none; border-radius: 12px; box-shadow: 0 0 0 4px rgb(111 134 238 / .22); }
#v8 body .ais-ring[hidden] { display: none; }
#v8 body .ais-ring i { position: absolute; inset: 0; padding: 2px; border-radius: inherit; background: linear-gradient(120deg, #5B74E0, #8A6FDB 55%, #B979C4);
  -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); }
@media (forced-colors: active) {
  #v8 body .ais-bar { outline: 1px solid CanvasText; }
  #v8 body .ais-ring { box-shadow: none; outline: 2px solid Highlight; outline-offset: 0; }
  #v8 body .ais-ring i { display: none; }
}

/* Show me where as the primary button (Janne, 9 November 2026: "'Show me where' could be a primary button"): the portal's primary
   green, as base.css .btn-primary */
#v8 body .aid-acts a.aid-act[href*="steps="] { background: var(--v8-green); border-color: var(--v8-green); color: var(--v8-white) !important; }
@media (hover: hover) { #v8 body .aid-acts a.aid-act[href*="steps="]:hover { background: var(--v8-deep); border-color: var(--v8-deep); } }
#v8 body .aid-acts a.aid-act[href*="steps="]:active { background: var(--v8-deep); }
@media (forced-colors: active) { #v8 body .aid-acts a.aid-act[href*="steps="] { background: ButtonText; color: ButtonFace !important; forced-color-adjust: none; } }
