/* Story pages (KI-28501): the prototype was built on browser defaults, but every
   page of this site also loads Tailwind, whose preflight resets margins, borders,
   headings, lists, images and form controls. Tailwind v4 puts all of that in
   cascade layers. These rules are unlayered with zero specificity, so they beat
   every Tailwind layer and lose to every prototype rule: wherever the prototype
   sets nothing, the browser default comes back, exactly as in the prototype.
   (globals.css's own unlayered base rules skip these pages via html.ss-story.)

   Left alone:
   - SVG internals: geometry (d, r, cx …) and paint are presentation attributes,
     which `revert` would discard along with every author style. On the <svg>
     element only the properties preflight sets are reverted.
   - the live SavvyAI chat (#ss-chat), which is styled with Tailwind.
   - <img> width and aspect-ratio: `all: revert` would also discard the hints its
     width/height attributes give (they sit in the author origin), and those are
     what reserve an image's box before it loads. The importer writes each image's
     intrinsic size, so the width hint is the size the image would have anyway;
     only the properties preflight sets are reverted, and height goes back to auto
     so a CSS width scales the image as before. */
:where(html, body, body *:not(svg, svg *, img, #ss-chat, #ss-chat *)),
:where(body *:not(svg, svg *, #ss-chat, #ss-chat *))::before,
:where(body *:not(svg, svg *, #ss-chat, #ss-chat *))::after,
:where(body *:not(svg, svg *, #ss-chat, #ss-chat *))::placeholder,
:where(body *:not(svg, svg *, #ss-chat, #ss-chat *))::marker {
  all: revert;
}
:where(body svg:not(#ss-chat svg)) {
  display: revert;
  vertical-align: revert;
  box-sizing: revert;
  margin: revert;
  padding: revert;
  border: revert;
}
:where(body img:not(#ss-chat img)) {
  display: revert;
  vertical-align: revert;
  max-width: revert;
  height: revert;
  box-sizing: revert;
  margin: revert;
  padding: revert;
  border: revert;
}
