/* Admin browser baseline. Components own typography, geometry and focus styles.
   Keep this theme-independent: standalone service pages also import it.
   Preserve native focus and text semantics; never suppress outlines globally.
   Measured photo/editor surfaces retain their explicit box-sizing contracts. */

/* The hidden attribute always hides. A component's own display (flex, grid,
   block) outranks the browser's [hidden] rule, so without this a script that
   sets hidden would leave the element showing. hidden="until-found" keeps the
   browser's own behaviour: collapsed, yet found by find-in-page. */
[hidden]:not([hidden='until-found']) {
  display: none !important;
}

:where(html) {
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari uses the prefixed text adjustment property. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:where(body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, figure, dl, dd) {
  margin: 0;
}

:where(h1, h2, h3, h4, h5, h6) {
  font-size: inherit;
}

/* Admin lists are control collections. Rich-text components own prose markers. */
:where(ol, ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(fieldset) {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

:where(legend) {
  padding: 0;
}

:where(button, input, select, textarea) {
  font: inherit;
}

:where(iframe) {
  border: 0;
}

:where(table) {
  border-collapse: collapse;
  border-spacing: 0;
}

:where(th, td) {
  padding: 0;
  vertical-align: baseline;
}
