/* README 225. Fewer pastels (from branch-serious, 9 to 10 November 2026; the study's thirteen rounds are in old/branches/branch-serious/README.md).
   Janne: "maybe there are too many of these other pastel colors ... use the light gray that we have in the design system or make
   things white ... I just want to see how this could look if it was a bit more serious-looking." Then: "i like light green lets
   keep it", and on 10 November, "Yes, bring branch-serious into the prototype."
   Indications keep their colours: tags, counts, status marks, amount highlights, buttons, hover, pressed and selected states, the
   assistant's own blue, error red. Surfaces change: tinted panels and discs go the system gray, information is one blue, cards are
   white with the lift, Home's page is light green and every other page white.
   Loaded last in prototype/, design-system/ and admin/index.html. */

:root {
  --v8-gray: var(--fennia-neutral-15, #F5F5F5);   /* Janne: "one grade darker ... neutral 15 ... so the gray would be a bit more visible" */
  --v8-panel: var(--v8-gray);
  --v8-mint: var(--v8-panel);                      /* help panels, her chat bubbles, icon discs, done panels: no longer mint */
  --fennia-primary-10: var(--v8-panel);
  --v8-home-bg: #E6FAE7;                              /* Home's page: Primary-10, the mint Home always had */
  --v8-lift: 0 0 0 1px rgb(0 0 0 / .06), 0 1px 2px -1px rgb(0 0 0 / .06), 0 2px 4px 0 rgb(0 0 0 / .04);   /* the cards' lift, as Home's other cards */
}

/* The indications keep their colours. Setting the tokens back on the element itself lets every existing rule resolve as before */
html#v8 :is([class*="-mk-"], [class*="-amt"], .v8-tag, .ixgk-tag, .ixgk-disc, .ixgk-pi, .count, .nav-item, .nav-tab, .nav-sub-a, .rkc-ck, .v8-cek-ok) {
  --v8-mint: #E6FAE7; --fennia-primary-10: #E6FAE7; --sb-current: #E6FAE7; }
/* The assistant keeps its own look (the widget, its launcher, the welcome): this change is the portal's surfaces, not the assistant */
html#v8 :is(.aid, .aid-launch, .awm) { --v8-mint: #E6FAE7; --fennia-primary-10: #E6FAE7; }

/* Page zones: every page's hero is white. Home's page is light green from the hero to the footer, under white cards (Janne: "i like
   light green lets keep it"); the hero and floor let the page's ground through, and the footer's dot field fades into it */
#v8 #app .v8-hero, #v8 #app .v8-hm-floor { background: var(--v8-white) !important; }
html#v8:has(#app .v8-hm-floor) body { background: var(--v8-home-bg); }
html#v8:has(#app .v8-hm-floor) #app :is(.v8-hero, .v8-hm-floor) { background: transparent !important; }
html#v8 #app main.page:has(.v8-hm-floor) ~ .qfoot.qfoot-field { --qf-bg: var(--v8-home-bg); }

/* Home's Recent claims and Messages: white cards with the lift (Janne: "everything should have a drop shadow"); their icon discs gray */
#v8 #app .v8-hm-floor .v8-hm-tile { border: 0 !important; background: var(--v8-white) !important; box-shadow: var(--v8-lift) !important; }
#v8 #app .v8-hm-floor .v8-hm-tile .v8-hm-ric:has(> svg) { background: var(--v8-gray); }

/* Quick stats: one tray, as Claims' What's next (Janne, with a shot of it: "I meant this ... as the quick stats, like the style"),
   the info blue (Janne: "every time it is info-related, it should be this same blue color"): an 8 px blue band, corners 20, its
   1 px #0052CC ring at 18 % and the lift; the three stats white cards inside, corners 12, the lift instead of their line */
#v8 #app .v8-hm-floor ul.v8-qs { gap: var(--v8-2); padding: var(--v8-2); border-radius: calc(var(--v8-r-in) + var(--v8-2)); background: var(--v8-blue);
  box-shadow: 0 0 0 1px color-mix(in srgb, #0052CC 18%, transparent), 0 1px 2px -1px rgb(0 0 0 / .06), 0 2px 4px 0 rgb(0 0 0 / .04) !important; }
#v8 #app .v8-hm-floor ul.v8-qs > .v8-qs-c { border-color: transparent !important; border-radius: var(--v8-r-in) !important; background: var(--v8-white) !important; box-shadow: var(--v8-lift) !important; }
#v8 #app .v8-hm-floor ul.v8-qs .v8-qs-i { background: var(--v8-gray); }

/* Suggestions for you: the peach, lavender and blue art panels are Fennia Neutral-20 #EFEFEF, one step past the cards' gray
   (Janne: "add a bit clearer color in the suggestions for you ... now they're not quite visible") */
html#v8 #app .v8-hm-ics .v8-hm-ic .v8-hm-ic-p { background: var(--fennia-neutral-20, #EFEFEF) !important; }

/* Claims' "If something happens" art panels go gray; the info notice takes the info blue #EEF3FF (it was Blue-10 #F2F5FF) */
html#v8 #app .v8c-ift-p { background: var(--v8-panel); }
html#v8 :is(#app, .v8-dlgw) .v8-info:not(.v8-info-success, .v8-info-attention, .v8-info-error) { background: var(--v8-blue); }

/* "If something happens" closes Home too (Janne: "bring this also if something happens ... on the home page at the very bottom ... you
   can still keep it in your lower risk"; v8-home.js, id hm-if). It spans Home's whole grid, and the cards take Home's lift */
html#v8 #app .v8-hm-bento > .v8-sec[aria-labelledby="hm-if"] { grid-column: 1 / -1; }
html#v8 #app .v8-hm-floor .v8c-iftc { border-color: transparent !important; box-shadow: var(--v8-lift) !important; }

/* A page hero's illustration stands on the page in every hero, not only the policy and purchase heroes of README 209 (Janne: "You
   have been putting these illustrations into containers. I think you could take them out of the container"). An icon in that place
   (.v8-hw-ic, the claim page's gavel) keeps its tile, as in 209 */
html#v8 #app .v8-hw-ill:not(.v8-hw-ic) { background: transparent !important; }
