/* chrome/chrome.css: the suite's top bar, account menu, app switcher and
   sign-in pages. Link it after menu.css (its panels are [estilo-menu]).
   Two custom properties are PUBLIC contract, read by apps and never
   copied as numbers: the bar's block size and its stacking level. */
:root {
  --estilo-bar-block-size: 3.25rem;   /* 52px. PUBLIC */
  --estilo-z-bar: 45;                 /* PUBLIC: the bar's stacking level, and the ceiling for in-page layers */
  --estilo-trigger-size: 2rem;        /* 32px targets, above the 24px floor */
}
/* On touch every bar trigger (Menu, the switcher, the account) is a 44px
   target, the size Apple's and Google's guidance ask for, in every app:
   the phone web audit (2026-11-28, finding 9) measured them at 34x32 and
   44x32. The 52px bar has the room. */
@media (pointer: coarse) {
  :root { --estilo-trigger-size: 2.75rem; }
}
[estilo-bar] {
  position: relative;
  z-index: var(--estilo-z-bar);
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--rst-sp-3);
  block-size: var(--estilo-bar-block-size);   /* fixed, not min: nothing may grow it */
  padding-inline: var(--rst-sp-4);
  background: var(--rst-surface);
  color: var(--rst-text);
  border-block-end: 1px solid var(--rst-line);
}
[estilo-bar~="sticky"] { position: sticky; inset-block-start: 0; }
[estilo-bar-brand] {
  display: inline-flex;
  align-items: center;
  gap: var(--rst-sp-2);
  flex: none;
  color: var(--rst-text);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
[estilo-bar-brand] img { flex: none; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 21%; }
[estilo-bar-context] {
  flex: 0 1 auto;
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-inline-start: var(--rst-sp-3);
  border-inline-start: 1px solid var(--rst-line);
  color: var(--rst-text);
  font-weight: 550;
}
[estilo-bar-nav] { display: flex; align-self: stretch; gap: var(--rst-sp-4); }
[estilo-bar-nav] a {
  display: flex;
  align-items: center;
  border-block: 2px solid transparent;               /* square current marker, in-flow */
  color: var(--rst-text-muted);
  font-size: var(--rst-fs-sm);
  text-decoration: none;
  white-space: nowrap;
}
[estilo-bar-nav] a:hover { color: var(--rst-text); }
[estilo-bar-nav] a[aria-current] { border-block-end-color: var(--rst-accent); color: var(--rst-text); font-weight: 550; }
[estilo-bar-end] { display: flex; align-items: center; gap: var(--rst-sp-2); flex: none; margin-inline-start: auto; }
[estilo-bar-actions] { display: flex; align-items: center; gap: var(--rst-sp-2); }
[estilo-bar-actions] form { display: contents; }   /* a POST action lays out as its button */
[estilo-bar-trigger] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rst-sp-1);
  box-sizing: border-box;
  min-inline-size: var(--estilo-trigger-size);
  block-size: var(--estilo-trigger-size);
  padding-inline: var(--rst-sp-2);
  border-radius: 0;           /* in-flow: square */
  color: var(--rst-text-muted);
  font-size: var(--rst-fs-sm);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
[estilo-bar-trigger]::-webkit-details-marker { display: none; }
[estilo-bar-trigger]::marker { content: ""; }
[estilo-bar-trigger] svg { flex: none; inline-size: 1.125rem; block-size: 1.125rem; }
[estilo-bar-trigger]:hover,
[open] > [estilo-bar-trigger] { color: var(--rst-text); background: var(--rst-surface-2); }
[estilo-bar-trigger]:focus-visible { outline: 2px solid var(--rst-accent); outline-offset: -2px; }
[estilo-bar-more] { display: none; }
@media (max-width: 799.98px) {                        /* rastrillo's shell breakpoint */
  [estilo-bar-nav], [estilo-bar-actions] { display: none; }
  [estilo-bar-more] { display: block; }
  [estilo-bar]:has([estilo-bar-context], [estilo-bar-title]) [estilo-bar-name] { display: none; }  /* the icon stays; the title gets the room */
}

/* The shell. <div estilo-shell> wraps the skip link, the bar and <main>
   on every page and has no styling of its own. estilo-shell="fill" is the
   full-height layout for the one kind of page that must fill the viewport
   (Sheets' grid): the shell is exactly the viewport, the bar keeps its
   52px, and <main> takes the rest, so the working area is the viewport
   less the bar without any app re-deriving that sum. The document never
   scrolls there, so the root drops its reserved scrollbar gutter, which
   would otherwise leave a dead strip down the inline end. <main> must be
   the shell's direct child. */
[estilo-shell~="fill"] {
  display: flex;
  flex-direction: column;
  block-size: 100dvh;
}
[estilo-shell~="fill"] > [estilo-bar] { flex: none; }
[estilo-shell~="fill"] > main { flex: 1 1 auto; min-block-size: 0; }
:root:has([estilo-shell~="fill"]) { scrollbar-gutter: auto; }

/* The editable title slot: the open object's title, renamed in place. The
   input is a bordered control, so it keeps the theme's radius; its block size is
   fixed so an input in the bar can never grow the bar. */
[estilo-bar-title] {
  display: flex;
  align-items: center;
  gap: var(--rst-sp-2);
  flex: 0 1 22rem;
  min-inline-size: 0;
  margin: 0;
  padding-inline-start: var(--rst-sp-3);
  border-inline-start: 1px solid var(--rst-line);
}
[estilo-bar-title-input] {
  box-sizing: border-box;
  block-size: 2rem;
  inline-size: 100%;
  min-inline-size: 6rem;
  padding-inline: var(--rst-sp-2);
  border: 1px solid transparent;
  border-radius: var(--rst-radius-sm);
  background: transparent;
  color: var(--rst-text);
  font: inherit;
  font-weight: 550;
  text-overflow: ellipsis;
}
[estilo-bar-title-input]:hover { border-color: var(--rst-line); }
[estilo-bar-title-input]:focus { border-color: var(--rst-accent); outline: none; background: var(--rst-surface); }
/* iOS zooms the page into a text field under 16px. tokens.css lifts fields
   to 16px on a coarse pointer, but with a bare `input` selector, which
   font: inherit above outweighs. Same rule, restated at this weight. */
@media (pointer: coarse) {
  [estilo-bar-title-input] {
    font-size: max(1rem, 1em);
  }
}
[estilo-bar-title-submit] { position: absolute; clip-path: inset(50%); inline-size: 1px; block-size: 1px; overflow: hidden; white-space: nowrap; }
[estilo-bar-title]:focus-within [estilo-bar-title-submit] { position: static; clip-path: none; inline-size: auto; block-size: 2rem; overflow: visible; flex: none; }
/* Below the shell breakpoint the row has no room for the button beside the
   field: it would sit under Menu or the switcher, and a click at its centre
   would open them instead (found in the first review, at 390px and 320px).
   So the field takes whatever width is left, down to nothing but its own
   padding, and on focus the button floats just under it, over the page,
   where nothing in the bar competes for it. Enter renames at every width. */
@media (max-width: 799.98px) {
  [estilo-bar-title] { position: relative; }
  [estilo-bar-title-input] { min-inline-size: 0; }
  [estilo-bar-title]:focus-within [estilo-bar-title-submit] {
    position: absolute;
    inset-block-start: calc(100% + 0.5rem);
    inset-inline-start: var(--rst-sp-3);
    border: 1px solid var(--rst-line);
    border-radius: var(--estilo-float-radius, 9px);   /* a float */
    background: var(--rst-surface);
    box-shadow: var(--rst-shadow-pop);
  }
}

/* The app switcher: a float, so its tiles may be rounded. */
[estilo-switcher] { position: relative; }
[estilo-switcher-panel] { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 4px); }
[estilo-switcher-grid] { display: grid; grid-template-columns: repeat(3, 5.5rem); gap: var(--rst-sp-1); }
[estilo-switcher-app] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rst-sp-1);
  padding: var(--rst-sp-2) var(--rst-sp-1);
  border-radius: var(--rst-radius-sm);   /* inside a float: rounded is allowed */
  color: var(--rst-text);
  font-size: var(--rst-fs-xs);
  text-decoration: none;
}
[estilo-switcher-app]:hover,
[estilo-switcher-app]:focus-visible { background: var(--rst-accent-soft); }
[estilo-switcher-app][aria-current] { background: var(--rst-accent-soft); font-weight: 600; }
[estilo-switcher-app] img { border-radius: 21%; }
/* Three 5.5rem tiles hung from the trigger overflow a phone's inline start
   (at 320px, and sooner when the corner is the wider "Sign in" link), so
   below 30rem the panel spans the bar instead, as menubar panels do, and
   the three columns share its width. */
@media (max-width: 30rem) {
  [estilo-switcher] { position: static; }
  [estilo-switcher-panel] { inset-inline: 0.5rem; inline-size: auto; min-inline-size: 0; max-inline-size: none; }
  [estilo-switcher-grid] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The account menu. The account is always the last thing at the inline
   end of the bar: the "same corner" rule. */
[estilo-account] { position: relative; }
[estilo-account-panel] { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 4px); min-inline-size: 15rem; }
[estilo-avatar] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  border-radius: 50%;   /* an identity mark, not a highlight */
  background: var(--rst-accent-soft);
  color: var(--rst-accent);
  font-size: var(--rst-fs-xs);
  font-weight: 650;
}
[estilo-menu-identity] { display: grid; gap: 0; padding: var(--rst-sp-2) var(--estilo-item-padding-inline, var(--rst-sp-3)); }
[estilo-menu-identity-label] { color: var(--rst-text-muted); font-size: var(--rst-fs-xs); }
[estilo-menu-identity-name] { font-weight: 600; overflow-wrap: anywhere; }
[estilo-menu-identity-address] { color: var(--rst-text-muted); overflow-wrap: anywhere; }
[estilo-menu-identity-name] + [estilo-menu-identity-address] { font-size: var(--rst-fs-xs); }
[estilo-bar-signin] { flex: none; }

/* The account at a sidebar rail's foot (Account.Rail), for an app whose
   chrome is a rail rather than the bar. The trigger is a row the rail's
   width: the avatar, then who is signed in, cut short with an ellipsis.
   It stays in the page flow, so its highlight stays square. The panel is
   the foot's own width, edge to edge with the trigger: hung from the
   inline end of a foot narrower than the bar's 15rem panel it ran off
   the window's start edge, and from the inline start it ran past the
   rail, whose overflow-y: auto clips it (Fichas' first screenshot). */
[estilo-account~="rail"] > [estilo-bar-trigger] {
  justify-content: flex-start;
  gap: var(--rst-sp-2);
  inline-size: 100%;
  block-size: auto;
  min-block-size: 2.5rem;
  color: var(--rst-text);
}
[estilo-account-who] { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[estilo-account~="rail"] > [estilo-account-panel] { inset-inline: 0; inline-size: auto; min-inline-size: 0; max-inline-size: none; }
/* A drop-up where the rail is the viewport's height (rastrillo's shell
   breakpoint): below the foot there is only the window's edge. Below
   800px the rail is a disclosure at the top of the page, with the page
   under it and too little above, so the panel opens downward there. */
@media (pointer: coarse) {
  [estilo-account~="rail"] > [estilo-bar-trigger] { min-block-size: 2.75rem; }
}
@media (min-width: 800px) {
  [estilo-account~="rail"] > [estilo-account-panel] {
    inset-block-start: auto;
    inset-block-end: calc(100% + 4px);
    max-block-size: max(calc(100dvh - 5rem), 8rem);
  }
}

/* Visually hidden, still announced. */
[estilo-visually-hidden] { position: absolute; clip-path: inset(50%); inline-size: 1px; block-size: 1px; overflow: hidden; white-space: nowrap; }

/* Sign-in, check-your-email and signed-out pages: the Oficina door. The
   suite's sky behind (estilo sky.css places and animates it), one card on
   it with the app's mark and name at its head — the same door Home draws
   at id.oficina.works, in the app's own colour. The door spans the page
   whatever the app's layout gives it, so the sky is never boxed in. */
:root:has([estilo-door]) { overflow-x: clip; --rst-scrollbar-gutter: auto; scrollbar-gutter: auto; }
[estilo-door] {
  box-sizing: border-box;
  margin-inline: calc(50% - 50vw); /* spacing-allow: full-bleed, the door spans the viewport whatever column it sits in */
  padding: max(var(--rst-sp-6), 9vh) var(--rst-sp-4) var(--rst-sp-6); /* spacing-allow: the card sits lower on a taller window, 9vh down */
  min-block-size: 680px;
  /* The whole sky lies inside the door, fading in and out, so the door's
     edges never cut it: under an app's bar there is no page top to hide
     an edge behind, as there is on Home. A sky's layers overhang its box
     by 12% above and below (sky.css), and fade in over their first 22%
     and out from 58% to 92% — so a 560px sky placed 67px down starts
     transparent at the door's top and has faded out by 640px. */
  --estilo-sky-top: 67px;
  --estilo-sky-height: 560px;
}
/* The card is a stack: its children's own block margins go, and the
   space above each comes from the table Fiesta's rst-stack uses
   (DESIGN.md, "The stack"), written here in estilo's own names because
   an app's tokens.css may predate it:

     after a heading (h1 to h6)                --rst-sp-2
     an actions row: a button, the card's
       action or a paragraph holding it,
       Forget (under another action:
       --rst-sp-2)                             --rst-sp-4
     an input after its label or its hint
       ([estilo-signin-hint]), a hint after
       its input                               --rst-sp-2
     an h1 or h2, a section
       ([estilo-signin-section]), or anything
       after the brand, which heads the card
       as a page header heads a page           --rst-sp-5
     an h3 to h6                               --rst-sp-4
     anything else                             --rst-sp-3

   Higher in the table wins: each relation sets its own property on the
   child, and the one margin rule reads them in the table's order, so
   specificity never decides it; every child resets them first, so
   content nested in the card never inherits an answer. A column, so
   nothing collapses; a button or a picture keeps its own width.

   As in Fiesta's stack, the column's gap is the table's smallest step
   and a child's margin is the rest of its answer: a hidden child (or a
   hidden input) is no flex item and takes no gap, so the block after
   one keeps --rst-sp-2 and never touches what is above it. */
[estilo-signin] {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-inline-size: 460px;
  margin: 0 auto;
  padding: var(--rst-sp-6);
  gap: var(--rst-sp-2);
  background: var(--rst-surface);
  border-radius: 20px;
  box-shadow: 0 0 0 1px light-dark(transparent, var(--rst-line)), var(--rst-shadow-lift);
}
[estilo-signin] > * {
  --estilo-stack-heading: initial;
  --estilo-stack-actions: initial;
  --estilo-stack-control: initial;
  --estilo-stack-section: initial;
  --estilo-stack-sub: initial;
  margin-block: 0;
}
[estilo-signin] > :not([hidden], [type="hidden"]) + :not([hidden]) {
  /* spacing-allow: the table's step less the column's --rst-sp-2 gap; margin and gap together are the step */
  margin-block-start: calc(var(--estilo-stack-heading, var(--estilo-stack-actions, var(--estilo-stack-control, var(--estilo-stack-section, var(--estilo-stack-sub, var(--rst-sp-3)))))) - var(--rst-sp-2));
}
[estilo-signin] > :is(img, button, a[estilo-signin-action]) { align-self: flex-start; }
[estilo-signin] > :not([hidden], [type="hidden"]) + :is(h3, h4, h5, h6) { --estilo-stack-sub: var(--rst-sp-4); }
[estilo-signin] > :not([hidden], [type="hidden"]) + :is(h1, h2),
[estilo-signin] > :not([hidden], [type="hidden"]) + [estilo-signin-section],
[estilo-signin] > [estilo-brand] + * { --estilo-stack-section: var(--rst-sp-5); }
[estilo-signin] > :is(label, [estilo-signin-hint]) + :is(input, select, textarea),
[estilo-signin] > :is(input, select, textarea) + [estilo-signin-hint] { --estilo-stack-control: var(--rst-sp-2); }
[estilo-signin] > :not([hidden], [type="hidden"]) + :is(button, [estilo-signin-action], [estilo-signin-forget], p:has(> [estilo-signin-action]), p:has(> button)) { --estilo-stack-actions: var(--rst-sp-4); }
[estilo-signin] > :is(button, [estilo-signin-action], [estilo-signin-forget], p:has(> [estilo-signin-action]), p:has(> button)) + :is(button, [estilo-signin-action], [estilo-signin-forget], p:has(> [estilo-signin-action]), p:has(> button)) { --estilo-stack-actions: var(--rst-sp-2); }
[estilo-signin] > :is(h1, h2, h3, h4, h5, h6) + * { --estilo-stack-heading: var(--rst-sp-2); }
[estilo-signin] > [estilo-brand] { display: flex; align-items: center; gap: var(--rst-sp-2); font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
[estilo-signin] > [estilo-brand] [estilo-brand-icon] { inline-size: 36px; block-size: 36px; }
[estilo-signin] h1 { font-size: 1.75rem; font-weight: 620; letter-spacing: -0.02em; line-height: 1.15; }
/* A heading the card holds directly is spaced by the stack above; one
   nested deeper brings no margin of its own. */
[estilo-signin] * h1 { margin: 0; }
[estilo-signin-lede] { color: var(--rst-text-muted); }
[estilo-signin-form] { max-inline-size: none; }
@media (max-width: 520px) {
  [estilo-door] { padding-inline: var(--rst-sp-4); padding-block-start: var(--rst-sp-5); }
  [estilo-signin] { padding: var(--rst-sp-5); }
}
/* The door's links are drawn here, not left to the app: an app that does
   not link base.css (Calendar, Memoria, Calls, Fichas) showed the browser's
   blue on the card. As base.css does, a link in the card is the app's
   colour at the lowest specificity, so a link drawn as a button keeps the
   button's. The card has no footer links (Paul, 2026-11-19). */
:where([estilo-signin]) a { color: var(--rst-accent); text-underline-offset: 0.15em; }
/* The smart door (estilo-signin-screen): rastrillo's sign-in partial in
   the card, inside [estilo-signin-screen]. The partial is a card of its
   own, made for the stage shell, with its brand in a column beside the
   way in; here the door is the card and its head is the brand, so the
   partial's surface, edge, padding and columns go, and so does its brand
   (the one brand on the card is the door's). Its buttons, rows and quiet
   controls are rastrillo's own. The partial is reached by structure, not
   by its rst- names, which are rastrillo's to style (AGENTS.md,
   Vocabulary): its card is a <section> of two children, the brand column
   then the door. The brand is hidden only while there are two, and never
   a child holding the heading, so a partial that draws no brand
   (HideBrand) keeps its door. Delete the hiding rule in the rastrillo
   bump that adopts HideBrand. The heading restates the door's own size
   one step more specific than rastrillo's door heading, so the order the
   stylesheets are linked in never decides it. */
[estilo-signin-screen] > section { display: block; inline-size: auto; max-inline-size: none; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
[estilo-signin-screen] > section > :first-child:not(:only-child):not(:has(h1)) { display: none; }
[estilo-signin] [estilo-signin-screen] h1 { margin: 0; font-size: 1.75rem; font-weight: 620; letter-spacing: -0.02em; line-height: 1.15; }
/* The door's buttons are the smart door's (Paul, 2026-11-21, "yes to pill
   buttons"), on every card the door draws. The card's main action is a
   full-width pill, 44px tall, lit from above, its shadow tinted by its
   fill: the accent's, or red for a danger button. Its secondary controls
   are quiet text buttons, centred under it: medium weight, the muted ink
   that darkens over a soft pill on hover and focus, a touch smaller than
   body text. rastrillo's one-way door already draws its own buttons this
   way; nothing here reaches it.

   Keyed on estilo's hooks, never on rastrillo's button attributes, which
   are rastrillo's to style (AGENTS.md, Vocabulary; internal/lint):
   - a door sign-in form's submit ([estilo-signin-form]) is its main
     action, so the classic form and every app's confirm step are pills;
   - [estilo-signin-action] marks any other main action on the card, and
     [estilo-signin-action~="danger"] a destructive one;
   - [estilo-signin-action~="quiet"] marks a secondary control, as the
     signed-out page's Forget ([estilo-signin-forget]) is.
   The button keeps its rastrillo variant for its fill and states; these
   rules give it the door's shape. A hidden button stays hidden. */
[estilo-signin] :is([estilo-signin-form] [type="submit"], [estilo-signin-action]:not([estilo-signin-action~="quiet"])):not([hidden]) {
  display: flex; inline-size: 100%; box-sizing: border-box; justify-content: center; align-items: center;
  min-block-size: 44px; padding-inline: var(--rst-sp-4); border-radius: 999px; font-weight: 600; text-decoration: none;
}
/* The glow lifts the pill only at rest: pressed, rastrillo's own pressed
   shadow draws it sinking. */
[estilo-signin] :is([estilo-signin-form] [type="submit"], [estilo-signin-action]:not([estilo-signin-action~="quiet"])):not([hidden]):not(:active) {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 1px 1px rgb(23 32 60 / 0.10),
    0 8px 18px -8px var(--estilo-signin-glow, light-dark(color-mix(in srgb, var(--rst-accent-fill, var(--rst-accent)) 80%, transparent), color-mix(in srgb, var(--rst-accent-fill, var(--rst-accent)) 30%, transparent)));
}
[estilo-signin] [estilo-signin-action~="danger"] {
  --estilo-signin-glow: light-dark(color-mix(in srgb, var(--rst-danger-fill, var(--rst-tone-negative-fg)) 60%, transparent), color-mix(in srgb, var(--rst-danger-fill, var(--rst-tone-negative-fg)) 30%, transparent));
}
[estilo-signin] :is([estilo-signin-action~="quiet"], [estilo-signin-forget] > button):not([hidden]) {
  display: flex; inline-size: fit-content; margin-inline: auto; justify-content: center; align-items: center;
  min-block-size: 2.5rem; padding: 0 var(--rst-sp-3); border-color: transparent; border-radius: 999px; background: transparent; box-shadow: none;
  color: var(--rst-text-muted); font-size: calc(var(--rst-fs-base) * 0.9375); font-weight: 500; text-decoration: none;
}
/* On touch, and on a narrow screen, a quiet control is a full tap target,
   as rastrillo's door draws its ghost (max(2.5rem, --rst-target), which is
   2.75rem there). Restated rather than read: estilo's pinned rastrillo
   does not declare --rst-target, and every token chrome.css reads must be
   declared by the pin (TestChromeUsesDefinedTokens). */
@media (pointer: coarse), (max-width: 40rem) {
  [estilo-signin] :is([estilo-signin-action~="quiet"], [estilo-signin-forget] > button):not([hidden]) { min-block-size: 2.75rem; }
}
[estilo-signin] :is([estilo-signin-action~="quiet"], [estilo-signin-forget] > button):is(:hover, :focus-visible) { background: var(--rst-ghost-face-hover, var(--rst-surface-2)); color: var(--rst-text); }

/* ── Bar stack (Docs' I2 editor header, spec 2026-11-11) ────────────────
   Everything below is opt-in. Each rule is keyed on a hook only a bar
   with a slot, a WideOnly or IconOnly action or the Appearance form
   renders, so a bar with none of them looks exactly as it did
   (TestEverythingAfterTheMarkerIsOptIn holds this, and that main's rules
   above are unchanged).

   The hooks: [estilo-bar~="stacked"] (Bar.Menubar), [estilo-bar-stack]
   and [estilo-bar-menubar] inside it, [estilo-bar-lead] (Bar.Lead),
   [estilo-bar-control] (each action in a bar with a slot),
   [estilo-bar-wide] (Action.WideOnly), [estilo-bar-icon]
   (Action.IconOnly) and [estilo-appearance].

   Breakpoints: 800px is rastrillo's shell breakpoint, the rule above
   this section and every app's, so it stays in px: restated in rem it
   would move apart from them whenever the reader's default font size is
   not 16px. 64rem is where a WideOnly action appears, the same 64rem
   Docs' inspector uses. A compact bar
   (Bar.Compact, below) is the one exception: it is the 56px header from
   704px, so an iPad in portrait gets it (Paul, 2026-11-28), and nothing
   else moves (Mapa and Fichas stack too, and their layouts change at
   800px). */

/* A WideOnly action exists only from 64rem (Docs' Format: the inspector
   it toggles exists only there). It is also left out of the Menu sheet
   (the template). (0,2,0), so it outweighs a POST action's display:
   contents form. */
@media (max-width: 63.99rem) {
  [estilo-bar-actions] [estilo-bar-wide],
  [estilo-bar-actions] [estilo-bar-control~="wide"] { display: none; }
}

/* Each action in a bar with a slot sits in its own wrapper, which lays
   out as its control. */
[estilo-bar-control] { display: contents; }
[estilo-bar-lead] { display: flex; align-items: center; gap: var(--rst-sp-2); }

/* The stacked bar's title is as wide as its title, never the bar's
   room: its size attribute is the first paint's guess, chrome.js
   measures the field and corrects it, and it is capped at the space it
   has, where a longer title scrolls inside the field as it always has.
   No ellipsis: the field is as wide as its title, so one would only ever
   mark a guess that came out short, not a title cut off. */
[estilo-bar~="stacked"] [estilo-bar-title] { flex: none; max-inline-size: 100%; }
[estilo-bar~="stacked"] [estilo-bar-title-input] { flex: 0 1 auto; inline-size: auto; min-inline-size: 0; max-inline-size: 100%; text-overflow: clip; }
[estilo-bar~="stacked"] [estilo-bar-context] { max-inline-size: 100%; }
[estilo-bar~="stacked"] [estilo-menubar-title] { cursor: pointer; }

/* Below 800px the stacked header does not fit a phone (spec C6: File to
   Help needs 261px, and at 320px the title fell to "U…"). So the bar
   stays today's one row, and the app's menus are a full-width second
   row under it: the stack dissolves and the same markup lays out on a
   grid. The header grows by that row, and the published block size
   with it. A menubar that wraps (English at 320px; a long locale
   sooner) grows it further: chrome.js then publishes the header's real
   height, and 85px is what a page without script gets. */
@media (max-width: 799.98px) {
  :root:has([estilo-bar~="stacked"]) { --estilo-bar-block-size: calc(3.25rem + 2rem + 1px); }   /* 85px: the bar's row, one menubar row and the bottom border. PUBLIC */
  [estilo-bar~="stacked"] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 3.25rem auto;
    grid-template-areas: "brand title end" "menus menus menus";
    column-gap: var(--rst-sp-3);
    row-gap: 0;
    align-items: center;
    block-size: auto;
  }
  [estilo-bar~="stacked"] > [estilo-bar-brand] { grid-area: brand; }
  [estilo-bar~="stacked"] > [estilo-bar-end] { grid-area: end; }
  [estilo-bar~="stacked"] [estilo-bar-stack] { display: contents; }
  [estilo-bar~="stacked"] [estilo-bar-title],
  [estilo-bar~="stacked"] [estilo-bar-context] { grid-area: title; justify-self: start; }
  [estilo-bar~="stacked"] [estilo-bar-menubar] {
    grid-area: menus;
    align-self: stretch;
    min-inline-size: 0;
    margin-inline: calc(-1 * var(--rst-sp-1));   /* the menus' edge 12px in (the bar's 16px less 4px), as Docs' own row had it */
  }
}

/* On touch the menu row's titles are 44px (menu.css), so the narrow
   header is that much taller without script too. */
@media (max-width: 799.98px) and (pointer: coarse) {
  :root:has([estilo-bar~="stacked"]) { --estilo-bar-block-size: calc(3.25rem + 2.75rem + 1px); }   /* 97px: the bar's row, a 44px menubar row and the bottom border. PUBLIC */
}

/* From 800px, the 56px stacked header: a 32px icon 12px in, and beside
   it a 44px stack, the 24px title row (16px, 600) over the 20px menu row
   (13px, muted), both starting at 56px (12 + 32 + 12). The app's name
   goes: the icon is the brand. Optical balance, measured at 2x in WebKit
   on the mock-up: the title's capitals start at the icon's top, so its
   row sits 2.5px low; the menu row sits 1px low, its 24px highlight
   stops 3px above the header's bottom edge, and an open panel hangs from
   1px above that edge. A compact bar gets this block from 704px too, as
   a copy CSS() makes (buildCSS, chrome.go). */
@media (min-width: 800px) {
  :root:has([estilo-bar~="stacked"]) { --estilo-bar-block-size: 56px; }   /* PUBLIC */
  [estilo-bar~="stacked"] { gap: var(--rst-sp-3); padding-inline: var(--rst-sp-3); }
  [estilo-bar~="stacked"] [estilo-bar-brand] img { inline-size: 32px; block-size: 32px; }
  [estilo-bar~="stacked"] [estilo-bar-name] { display: none; }
  [estilo-bar-stack] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1 1 auto;
    min-inline-size: 0;
    block-size: 44px;
  }
  [estilo-bar~="stacked"] [estilo-bar-title] {
    position: relative;
    inset-block-start: 2.5px;
    block-size: 24px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  [estilo-bar~="stacked"] [estilo-bar-title-input] {
    block-size: 24px;
    padding-block: 0;
    margin-inline-start: calc(-1 * var(--rst-sp-2) - 1px);   /* spacing-allow: the field's padding and 1px border pulled back, so its text sits on the edge */
    max-inline-size: calc(100% + var(--rst-sp-2) + 1px);   /* the form is that much narrower than the field: the cap gives it back */
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  [estilo-bar~="stacked"] [estilo-bar-context] {
    position: relative;
    inset-block-start: 2.5px;
    padding: 0;
    border: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  /* Rename, while the title is being edited: a 22px pill in the
     accent's tint inside the 24px title row, not the 2rem button. The
     box is the row's 24px, the 24px target floor (AGENTS.md); a
     transparent 1px border with the fill clipped inside it paints the
     22px pill. */
  [estilo-bar~="stacked"] [estilo-bar-title]:focus-within [estilo-bar-title-submit] {
    position: static;
    align-self: center;
    box-sizing: border-box;
    block-size: 24px;
    min-block-size: 0;
    min-inline-size: 0;
    margin: 0;
    padding: 0 var(--rst-sp-2);
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: var(--rst-accent-soft);
    background-image: none;
    background-clip: padding-box;
    box-shadow: none;
    color: var(--rst-accent);
    font: 600 12px/22px var(--rst-font);
  }
  [estilo-bar~="stacked"] [estilo-bar-title]:focus-within [estilo-bar-title-submit]:hover {
    border-color: transparent;
    background-color: var(--rst-accent);
    color: var(--rst-on-accent);
  }

  /* The menu row. estilo's 32px menubar floor goes here, and only here:
     the row is 20px, and each title's highlight is a 24px pill with a 6px
     radius, 2px over each edge by negative margins, so it takes no room. */
  [estilo-bar-menubar] {
    position: relative;
    inset-block-start: 1px;
    block-size: 20px;
    max-inline-size: calc(100% + var(--rst-sp-2));
    margin-inline-start: calc(-1 * var(--rst-sp-2));   /* the titles' padding pulled back: the first title's text sits on the edge */
  }
  [estilo-bar~="stacked"] [estilo-menubar] { block-size: 20px; min-block-size: 0; align-items: center; flex-wrap: nowrap; }
  [estilo-bar~="stacked"] [estilo-menubar-menu] { block-size: 20px; }
  [estilo-bar~="stacked"] [estilo-menubar-title] {
    block-size: 24px;
    min-block-size: 0;
    margin-block: -2px; /* spacing-allow: the 24px highlight overhangs the 20px row by 2px each way and takes no room */
    padding-inline: var(--rst-sp-2);
    border-radius: 6px;
    color: var(--rst-text-muted);
    font-size: 13px;
    line-height: 24px;
  }
  [estilo-bar~="stacked"] [estilo-menubar-title]:hover,
  [estilo-bar~="stacked"] [open] > [estilo-menubar-title] { color: var(--rst-text); }
  [estilo-bar~="stacked"] [estilo-menubar-menu] > [estilo-menu] { inset-block-start: calc(100% + 4.5px); }   /* the row ends at 50.5 (the stack is centred in 55px inside the border): 55, 1px above the 56px edge */

  /* Every panel in the stacked header matches it: 28px rows, 13px type,
     shortcuts muted, 4px padding and a 10px radius. */
  [estilo-bar~="stacked"] [estilo-menu] {
    --estilo-float-padding: var(--rst-sp-1);
    --estilo-item-padding-block: var(--rst-sp-1);
    --estilo-item-padding-inline: var(--rst-sp-3);
    border-radius: 10px;
    font-size: 13px;
  }
  [estilo-bar~="stacked"] [estilo-menu-item] { min-block-size: 28px; border-radius: 6px; }
  [estilo-bar~="stacked"] [estilo-menu] hr { margin-block: var(--rst-sp-1); }
  [estilo-bar~="stacked"] [estilo-menu-key] { color: var(--rst-text-muted); font-size: 12px; }

  /* The controls set, in a bar with a slot: every action a 28px pill,
     13px semibold, 8px apart; the primary the one filled pill; the
     account its circle; and a divider between the page's controls and
     the person's. Lit from above as the index's New document is, and far
     fainter in dark. */
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end],
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-actions] { gap: var(--rst-sp-2); }
  :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button) {
    display: inline-flex;
    align-items: center;
    gap: var(--rst-sp-2);
    box-sizing: border-box;
    block-size: 28px;
    min-block-size: 28px;
    min-inline-size: 28px;
    padding: 0 var(--rst-sp-3);
    border: 0;
    border-radius: 999px;
    background-color: transparent;
    box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.06));
    color: var(--rst-text-muted);
    font: 600 13px/1 var(--rst-font);
    text-decoration: none;
    white-space: nowrap;
  }
  :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button) svg { flex: none; inline-size: 15px; block-size: 15px; }
  :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button):hover:not(:disabled) {
    background-color: var(--rst-surface-2);
    color: var(--rst-text);
    box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.08)), 0 1px 2px rgb(23 32 60 / 0.08);
  }
  /* A toggle whose region is shown takes the accent's tint. */
  :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)[aria-expanded="true"] {
    background-color: var(--rst-accent-soft);
    color: var(--rst-accent);
    box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.08)), 0 1px 2px rgb(23 32 60 / 0.08);
  }
  /* The primary: the one filled pill, a fine highlight on its top edge
     and a shadow tinted with its own accent, 0 5px 12px -5px. */
  :is([estilo-bar-control~="primary"] > a, [estilo-bar-control~="primary"] > button, [estilo-bar-control~="primary"] > form > button),
  :is([estilo-bar-control~="primary"] > a, [estilo-bar-control~="primary"] > button, [estilo-bar-control~="primary"] > form > button):hover:not(:disabled) {
    padding-inline: var(--rst-sp-4);
    background-color: var(--rst-accent);
    color: var(--rst-on-accent);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.22),
      0 1px 1px rgb(23 32 60 / 0.10),
      0 5px 12px -5px light-dark(color-mix(in srgb, var(--rst-accent) 75%, transparent), color-mix(in srgb, var(--rst-accent) 25%, transparent));
  }
  :is([estilo-bar-control~="primary"] > a, [estilo-bar-control~="primary"] > button, [estilo-bar-control~="primary"] > form > button):hover:not(:disabled) {
    background-color: var(--rst-accent-strong);
  }

  /* The account is its circle: no square box behind it on hover or
     open. The avatar darkens on hover and takes a 2px ring while its menu
     is open; with no initials the glyph's own circle does the same. */
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger] {
    inline-size: 28px;
    min-inline-size: 0;
    block-size: 28px;
    padding: 0;
    border-radius: 50%;
    background: none;
  }
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger]:focus-visible { outline-offset: 2px; }
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] [estilo-avatar] {
    inline-size: 28px;
    block-size: 28px;
    font-size: 12px;
    box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.06)), 0 1px 2px rgb(23 32 60 / 0.08);
    transition: background-color 120ms ease, box-shadow 120ms ease;
  }
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger]:hover [estilo-avatar] {
    background: color-mix(in srgb, var(--rst-accent) 18%, var(--rst-surface));
  }
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account][open] [estilo-avatar],
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account][open] > [estilo-bar-trigger]:not(:has([estilo-avatar])) {
    box-shadow: 0 0 0 2px var(--rst-surface), 0 0 0 4px color-mix(in srgb, var(--rst-accent) 45%, transparent);
  }
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger]:not(:has([estilo-avatar])):hover {
    background: var(--rst-surface-2);
  }

  /* The divider: a 20px hairline before the account, 12px either side
     (the set's 8px gap and 4px more, then 12px of padding), drawn as the
     account's own background so it takes no element. Only when something
     of the page's precedes it: never on a bar with no actions and no
     lead. Below 64rem a WideOnly action is hidden, so it does not count
     there. */
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end]:has(> [estilo-bar-lead], > [estilo-bar-actions] > :not([estilo-bar-control~="wide"])) > [estilo-account] {
    margin-inline-start: var(--rst-sp-1);
    padding-inline-start: var(--rst-sp-3);
    background: linear-gradient(var(--rst-line), var(--rst-line)) left center / 1px 20px no-repeat;
  }
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end]:has(> [estilo-bar-lead], > [estilo-bar-actions] > :not([estilo-bar-control~="wide"])) > [estilo-account]:dir(rtl) {
    background-position: right center;
  }

  /* An icon-only action (Action.IconOnly: Search in Mapa and Fichas):
     a square as tall as the set's controls, the glyph centred. Its
     label is its accessible name and, with its shortcut, the tooltip
     the template asks rastrillo's rst-tip for, which hangs from this
     box, so the box is positioned. (0,2,0) outweighs the set's pill. */
  [estilo-bar-actions] [estilo-bar-icon] {
    position: relative;
    justify-content: center;
    inline-size: 28px;
    min-inline-size: 28px;
    padding-inline: 0;
  }

  /* Coarse pointers (an iPad): the header's controls are drawn 32px and
     take 44px to a tap, the size the phone web audit asked for
     (2026-11-28, finding 9), from a hit area drawn by nothing and taking
     no room: 6px over the top and bottom, inside the 56px header, and 4px
     either side, inside the 8px to the next control. The switcher keeps
     the set's 32px rather than the 44px box every bar's trigger takes on
     touch. The menubar titles keep their 24px look in the 20px row and
     take 44px of height: 16px up into the title row and 4px down, to the
     header's edge. Where that reaches up under the title field, the field
     stays on top (z-index), so it keeps all of its own 24px; beside a
     short title the space above File and Edit opens them. Menu rows are
     44px, as every menu's are on touch. */
  @media (pointer: coarse) {
    :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button) { block-size: 32px; min-block-size: 32px; }
    :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button) { position: relative; }
    :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)::before { content: ""; position: absolute; inset: -6px -4px; }
    :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger],
    :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] [estilo-avatar] { inline-size: 32px; block-size: 32px; }
    :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-switcher] > [estilo-bar-trigger] { min-inline-size: 32px; block-size: 32px; }
    :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) :is([estilo-account], [estilo-switcher]) > [estilo-bar-trigger] { position: relative; }
    :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) :is([estilo-account], [estilo-switcher]) > [estilo-bar-trigger]::before { content: ""; position: absolute; inset: -6px; }
    [estilo-bar~="stacked"] [estilo-menubar-title] { position: relative; }
    [estilo-bar~="stacked"] [estilo-menubar-title]::before { content: ""; position: absolute; inset-inline: 0; inset-block: -16px -4px; }
    [estilo-bar~="stacked"] [estilo-bar-title] { z-index: 1; }
    [estilo-bar~="stacked"] [estilo-menu-item] { min-block-size: 44px; }
    /* The icon-only action is drawn 32px like the rest, and takes 44px
       to a tap: 6px over each edge, drawn by nothing, inside the 56px
       header and short of the 8px to its neighbours. ::before, since
       ::after is the tooltip. */
    [estilo-bar-actions] [estilo-bar-icon] { inline-size: 32px; min-inline-size: 32px; }
    [estilo-bar-actions] [estilo-bar-icon]::before { content: ""; position: absolute; inset: -6px; }
  }
  /* Where nothing hovers (a tablet), a tap leaves :hover on the control,
     and the tooltip would stay up until the next tap elsewhere. There it
     shows for keyboard focus only. */
  @media (hover: none) {
    [estilo-bar-actions] [estilo-bar-icon]:not(:focus-visible)::after { display: none; }
  }
}
@media (min-width: 704px) and (max-width: 799.98px) and (not ((max-height: 480px) and (pointer: coarse))) {
:root:has([estilo-bar~="stacked"][estilo-bar~="compact"]) { --estilo-bar-block-size: 56px; }
:is([estilo-bar~="stacked"]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { gap: var(--rst-sp-3); padding-inline: var(--rst-sp-3); }
:is([estilo-bar~="stacked"] [estilo-bar-brand] img):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { inline-size: 32px; block-size: 32px; }
:is([estilo-bar~="stacked"] [estilo-bar-name]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { display: none; }
:is([estilo-bar-stack]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1 1 auto;
    min-inline-size: 0;
    block-size: 44px;
  }
:is([estilo-bar~="stacked"] [estilo-bar-title]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    position: relative;
    inset-block-start: 2.5px;
    block-size: 24px;
    margin: 0;
    padding: 0;
    border: 0;
  }
:is([estilo-bar~="stacked"] [estilo-bar-title-input]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    block-size: 24px;
    padding-block: 0;
    margin-inline-start: calc(-1 * var(--rst-sp-2) - 1px);   
    max-inline-size: calc(100% + var(--rst-sp-2) + 1px);   
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
:is([estilo-bar~="stacked"] [estilo-bar-context]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    position: relative;
    inset-block-start: 2.5px;
    padding: 0;
    border: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
:is([estilo-bar~="stacked"] [estilo-bar-title]:focus-within [estilo-bar-title-submit]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    position: static;
    align-self: center;
    box-sizing: border-box;
    block-size: 24px;
    min-block-size: 0;
    min-inline-size: 0;
    margin: 0;
    padding: 0 var(--rst-sp-2);
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: var(--rst-accent-soft);
    background-image: none;
    background-clip: padding-box;
    box-shadow: none;
    color: var(--rst-accent);
    font: 600 12px/22px var(--rst-font);
  }
:is([estilo-bar~="stacked"] [estilo-bar-title]:focus-within [estilo-bar-title-submit]:hover):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    border-color: transparent;
    background-color: var(--rst-accent);
    color: var(--rst-on-accent);
  }
:is([estilo-bar-menubar]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    position: relative;
    inset-block-start: 1px;
    block-size: 20px;
    max-inline-size: calc(100% + var(--rst-sp-2));
    margin-inline-start: calc(-1 * var(--rst-sp-2));   
  }
:is([estilo-bar~="stacked"] [estilo-menubar]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { block-size: 20px; min-block-size: 0; align-items: center; flex-wrap: nowrap; }
:is([estilo-bar~="stacked"] [estilo-menubar-menu]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { block-size: 20px; }
:is([estilo-bar~="stacked"] [estilo-menubar-title]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    block-size: 24px;
    min-block-size: 0;
    margin-block: -2px; 
    padding-inline: var(--rst-sp-2);
    border-radius: 6px;
    color: var(--rst-text-muted);
    font-size: 13px;
    line-height: 24px;
  }
:is([estilo-bar~="stacked"] [estilo-menubar-title]:hover):where([estilo-bar~="compact"], [estilo-bar~="compact"] *),
:is([estilo-bar~="stacked"] [open] > [estilo-menubar-title]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { color: var(--rst-text); }
:is([estilo-bar~="stacked"] [estilo-menubar-menu] > [estilo-menu]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { inset-block-start: calc(100% + 4.5px); }
:is([estilo-bar~="stacked"] [estilo-menu]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    --estilo-float-padding: var(--rst-sp-1);
    --estilo-item-padding-block: var(--rst-sp-1);
    --estilo-item-padding-inline: var(--rst-sp-3);
    border-radius: 10px;
    font-size: 13px;
  }
:is([estilo-bar~="stacked"] [estilo-menu-item]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { min-block-size: 28px; border-radius: 6px; }
:is([estilo-bar~="stacked"] [estilo-menu] hr):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { margin-block: var(--rst-sp-1); }
:is([estilo-bar~="stacked"] [estilo-menu-key]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { color: var(--rst-text-muted); font-size: 12px; }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *),
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-actions]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { gap: var(--rst-sp-2); }
:is(:is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    display: inline-flex;
    align-items: center;
    gap: var(--rst-sp-2);
    box-sizing: border-box;
    block-size: 28px;
    min-block-size: 28px;
    min-inline-size: 28px;
    padding: 0 var(--rst-sp-3);
    border: 0;
    border-radius: 999px;
    background-color: transparent;
    box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.06));
    color: var(--rst-text-muted);
    font: 600 13px/1 var(--rst-font);
    text-decoration: none;
    white-space: nowrap;
  }
:is(:is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button) svg):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { flex: none; inline-size: 15px; block-size: 15px; }
:is(:is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button):hover:not(:disabled)):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    background-color: var(--rst-surface-2);
    color: var(--rst-text);
    box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.08)), 0 1px 2px rgb(23 32 60 / 0.08);
  }
:is(:is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)[aria-expanded="true"]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    background-color: var(--rst-accent-soft);
    color: var(--rst-accent);
    box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.08)), 0 1px 2px rgb(23 32 60 / 0.08);
  }
:is(:is([estilo-bar-control~="primary"] > a, [estilo-bar-control~="primary"] > button, [estilo-bar-control~="primary"] > form > button)):where([estilo-bar~="compact"], [estilo-bar~="compact"] *),
:is(:is([estilo-bar-control~="primary"] > a, [estilo-bar-control~="primary"] > button, [estilo-bar-control~="primary"] > form > button):hover:not(:disabled)):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    padding-inline: var(--rst-sp-4);
    background-color: var(--rst-accent);
    color: var(--rst-on-accent);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.22),
      0 1px 1px rgb(23 32 60 / 0.10),
      0 5px 12px -5px light-dark(color-mix(in srgb, var(--rst-accent) 75%, transparent), color-mix(in srgb, var(--rst-accent) 25%, transparent));
  }
:is(:is([estilo-bar-control~="primary"] > a, [estilo-bar-control~="primary"] > button, [estilo-bar-control~="primary"] > form > button):hover:not(:disabled)):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    background-color: var(--rst-accent-strong);
  }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    inline-size: 28px;
    min-inline-size: 0;
    block-size: 28px;
    padding: 0;
    border-radius: 50%;
    background: none;
  }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger]:focus-visible):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { outline-offset: 2px; }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] [estilo-avatar]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    inline-size: 28px;
    block-size: 28px;
    font-size: 12px;
    box-shadow: inset 0 1px 0 light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.06)), 0 1px 2px rgb(23 32 60 / 0.08);
    transition: background-color 120ms ease, box-shadow 120ms ease;
  }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger]:hover [estilo-avatar]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    background: color-mix(in srgb, var(--rst-accent) 18%, var(--rst-surface));
  }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account][open] [estilo-avatar]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *),
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account][open] > [estilo-bar-trigger]:not(:has([estilo-avatar]))):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    box-shadow: 0 0 0 2px var(--rst-surface), 0 0 0 4px color-mix(in srgb, var(--rst-accent) 45%, transparent);
  }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger]:not(:has([estilo-avatar])):hover):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    background: var(--rst-surface-2);
  }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end]:has(> [estilo-bar-lead], > [estilo-bar-actions] > :not([estilo-bar-control~="wide"])) > [estilo-account]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    margin-inline-start: var(--rst-sp-1);
    padding-inline-start: var(--rst-sp-3);
    background: linear-gradient(var(--rst-line), var(--rst-line)) left center / 1px 20px no-repeat;
  }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end]:has(> [estilo-bar-lead], > [estilo-bar-actions] > :not([estilo-bar-control~="wide"])) > [estilo-account]:dir(rtl)):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    background-position: right center;
  }
:is([estilo-bar-actions] [estilo-bar-icon]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) {
    position: relative;
    justify-content: center;
    inline-size: 28px;
    min-inline-size: 28px;
    padding-inline: 0;
  }
@media (pointer: coarse) {
:is(:is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { block-size: 32px; min-block-size: 32px; }
:is(:is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { position: relative; }
:is(:is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)):where([estilo-bar~="compact"], [estilo-bar~="compact"] *)::before { content: ""; position: absolute; inset: -6px -4px; }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] > [estilo-bar-trigger]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *),
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] [estilo-avatar]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { inline-size: 32px; block-size: 32px; }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-switcher] > [estilo-bar-trigger]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { min-inline-size: 32px; block-size: 32px; }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) :is([estilo-account], [estilo-switcher]) > [estilo-bar-trigger]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { position: relative; }
:is(:is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) :is([estilo-account], [estilo-switcher]) > [estilo-bar-trigger]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *)::before { content: ""; position: absolute; inset: -6px; }
:is([estilo-bar~="stacked"] [estilo-menubar-title]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { position: relative; }
:is([estilo-bar~="stacked"] [estilo-menubar-title]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *)::before { content: ""; position: absolute; inset-inline: 0; inset-block: -16px -4px; }
:is([estilo-bar~="stacked"] [estilo-bar-title]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { z-index: 1; }
:is([estilo-bar~="stacked"] [estilo-menu-item]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { min-block-size: 44px; }
:is([estilo-bar-actions] [estilo-bar-icon]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *) { inline-size: 32px; min-inline-size: 32px; }
:is([estilo-bar-actions] [estilo-bar-icon]):where([estilo-bar~="compact"], [estilo-bar~="compact"] *)::before { content: ""; position: absolute; inset: -6px; }
}
@media (hover: none) {
:is([estilo-bar-actions] [estilo-bar-icon]:not(:focus-visible)):where([estilo-bar~="compact"], [estilo-bar~="compact"] *)::after { display: none; }
}
}
/* Between 704px and 800px a compact bar is the 56px header, as every
   stacked bar is from 800px: the copy of the block above that CSS() puts
   here, and these, which undo the narrow two-row layout below 800px
   (its stack dissolved, its menu row's margins: the copy keeps the
   original rules' specificity, so the narrow ones would win) and put its
   actions back in the bar. A compact bar with nav keeps its Menu
   sheet there, as below 800px every bar does. */
@media (min-width: 704px) and (max-width: 799.98px) and (not ((max-height: 480px) and (pointer: coarse))) {
  [estilo-bar~="stacked"][estilo-bar~="compact"] { display: flex; block-size: var(--estilo-bar-block-size); }
  [estilo-bar~="stacked"][estilo-bar~="compact"] [estilo-bar-stack] { display: flex; }
  [estilo-bar~="stacked"][estilo-bar~="compact"] [estilo-bar-menubar] { align-self: auto; margin-inline: calc(-1 * var(--rst-sp-2)) 0; }   /* the 56px header's, which the copy, at its own weight, no longer outweighs here */
  [estilo-bar~="compact"] [estilo-bar-actions] { display: flex; }
}
@media (min-width: 64rem) {
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end]:has(> [estilo-bar-actions]) > [estilo-account] {
    margin-inline-start: var(--rst-sp-1);
    padding-inline-start: var(--rst-sp-3);
    background: linear-gradient(var(--rst-line), var(--rst-line)) left center / 1px 20px no-repeat;
  }
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-bar-end]:has(> [estilo-bar-actions]) > [estilo-account]:dir(rtl) {
    background-position: right center;
  }
}
/* Forced colours drop the controls' fills and shadows, leaving their
   border to draw them, and the set's border: 0 above outweighs
   rastrillo's own forced-colors border on its buttons: Share and Format
   would lose every edge. So the set gives it back, at its own weight and
   after it. An expanded toggle's tint is gone too, so it is drawn in Highlight,
   two pixels deep with the outline (left to the focus ring while that
   shows). At every width: below 800px the same border is rastrillo's. */
@media (forced-colors: active) {
  :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button) { border: 1px solid ButtonBorder; }
  :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)[aria-expanded="true"] { border-color: Highlight; }
  :is([estilo-bar-control] > a, [estilo-bar-control] > button, [estilo-bar-control] > form > button)[aria-expanded="true"]:not(:focus-visible) { outline: 1px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) {
  :is([estilo-bar~="stacked"], [estilo-bar]:has([estilo-bar-lead])) [estilo-account] [estilo-avatar] { transition: none; }
}

/* ── Compact (the phone web design, Paul 2026-11-28) ───────────────────
   Bar.Compact: below 704px, or on a phone held sideways, the phone's one
   52px row, as Docs' native iPhone screen has it: Back (the brand: a
   chevron and the app's name, in the accent, to App.Home), the title,
   the app's Lead, then its Trail (Docs' Aa and •••). The menubar row, the
   actions, the switcher and the account go: the trail carries the
   commands, and the app's other screens the person's menus (native D4).
   From 704px none of this applies, and the bar is the 56px header
   (from 800px every stacked bar's; between 704px and 800px a compact
   bar's alone, above). The breakpoints are px, as 800px is, so they
   never part at a reader's larger default font size. A compact bar with
   Bar.Nav keeps its Menu sheet, in the row, so the nav is never out of
   reach. Every rule is keyed on a compact hook:
   [estilo-bar~="compact"], [estilo-bar-back], [estilo-bar-trail],
   [estilo-bar-compact-title] and [estilo-bar-tool], and the state the
   app's script sets, [estilo-bar-folded].

   The trail's panels are drop-downs from the bar's inline end (Paul's
   answer 3: the ••• menu is a drop-down, not a bottom sheet), sized for a
   finger: 44px rows at 16px, a 16px radius, no shortcut hints, and
   iOS's grouped separator between sections.

   [estilo-bar-tool] is a 44px round control in the accent, for a button,
   a link or a <summary> in the trail or the lead. */
:is([estilo-bar-trail], [estilo-bar-compact-title], [estilo-bar-back]) { display: none; }
[estilo-bar-tool] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rst-sp-1);
  box-sizing: border-box;
  min-inline-size: 44px;
  block-size: 44px;
  padding: 0 var(--rst-sp-2);
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--rst-accent);
  font: inherit;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
[estilo-bar-tool]::-webkit-details-marker { display: none; }
[estilo-bar-tool]::marker { content: ""; }
[estilo-bar-tool] svg { flex: none; inline-size: 22px; block-size: 22px; }
[estilo-bar-tool]:is([aria-pressed="true"], [aria-expanded="true"]),
[open] > [estilo-bar-tool] { background: var(--rst-accent-soft); }
[estilo-bar-tool]:focus-visible { outline: 2px solid var(--rst-accent); outline-offset: -2px; }
[estilo-bar-tool]:disabled { color: var(--rst-text-faint); cursor: default; }
@media (hover: hover) {
  [estilo-bar-tool]:hover:not(:disabled):not([aria-pressed="true"], [aria-expanded="true"]) { background: var(--rst-surface-2); }
}
/* The trail's details are not positioned, so a panel hangs from the bar
   itself, 8px in from its inline end, as wide as a phone allows. */
[estilo-bar-trail] [estilo-menu] {
  position: absolute;
  inset-inline-end: var(--rst-sp-2);
  inset-block-start: calc(100% + var(--rst-sp-1));
  inline-size: min(17rem, calc(100vw - var(--rst-sp-4)));
  min-inline-size: 0;
  max-inline-size: none;
  padding: var(--rst-sp-1) 0;
  border-radius: 16px;
  font-size: 1rem;
  --estilo-item-padding-inline: var(--rst-sp-4);
}
[estilo-bar-trail] [estilo-menu-item] { min-block-size: 44px; gap: var(--rst-sp-3); border-radius: 0; }
[estilo-bar-trail] [estilo-menu-key] { display: none; }
[estilo-bar-trail] [estilo-menu-check] { inline-size: 1.25rem; block-size: 1.25rem; }
[estilo-bar-trail] [estilo-menu] hr {
  block-size: 7px;
  margin: var(--rst-sp-1) 0;
  border: 0;
  background: light-dark(rgb(0 0 0 / 0.045), rgb(0 0 0 / 0.25));
}
@media (max-width: 703.98px), (max-height: 480px) and (pointer: coarse) {
  :root:has([estilo-bar~="compact"]) { --estilo-bar-block-size: 3.25rem; }   /* 52px: the one row. PUBLIC */
  [estilo-bar~="compact"] {
    display: flex;
    gap: var(--rst-sp-1);
    block-size: 3.25rem;
    padding-inline: var(--rst-sp-2);
  }
  [estilo-bar~="compact"] [estilo-bar-menubar],
  [estilo-bar~="compact"] [estilo-bar-actions],
  [estilo-bar~="compact"] [estilo-switcher],
  [estilo-bar~="compact"] [estilo-account] { display: none; }
  [estilo-bar][estilo-bar~="compact"] [estilo-bar-end] { gap: var(--rst-sp-1); }   /* (0,3,0): on a phone held sideways, past 800px, it outweighs the 56px header's */
  [estilo-bar~="compact"] [estilo-bar-stack] { display: contents; }
  [estilo-bar~="compact"] [estilo-bar-more] { display: block; }
  [estilo-bar~="compact"] [estilo-bar-trail] { display: flex; align-items: center; }
  [estilo-bar~="compact"] [estilo-bar-compact-title] { display: block; flex: 1 1 auto; min-inline-size: 0; overflow: hidden; }
  /* Back: the brand without its mark, the chevron before the name. */
  [estilo-bar~="compact"] [estilo-bar-back] { display: block; flex: none; }
  [estilo-bar~="compact"] [estilo-bar-back]:dir(rtl) { transform: scaleX(-1); }
  [estilo-bar~="compact"] [estilo-bar-brand] {
    gap: 0;
    min-block-size: 44px;
    padding-inline: 0 var(--rst-sp-2);
    border-radius: 999px;
    font-size: 1.0625rem;
    font-weight: 400;
  }
  /* Only a link is drawn in the accent: on a public page the brand is
     plain text (App.Home empty) and has no Back. */
  [estilo-bar~="compact"] a[estilo-bar-brand] { color: var(--rst-accent); }
  [estilo-bar~="compact"] [estilo-bar-brand] img { display: none; }
  [estilo-bar~="compact"] [estilo-bar-brand] [estilo-bar-name] { display: inline; }
  /* The bar's own title fills the room between Back and the end group,
     one line ending in an ellipsis rather than cut mid-letter (the audit's
     finding 2), unless Compact.Title takes its place. chrome.js leaves
     the field unfitted here. */
  [estilo-bar~="compact"]:has(> [estilo-bar-compact-title]) :is([estilo-bar-title], [estilo-bar-context]) { display: none; }
  [estilo-bar~="compact"] :is([estilo-bar-title], [estilo-bar-context]) {
    flex: 1 1 auto;
    inset-block-start: 0;
    min-inline-size: 0;
    max-inline-size: none;
    block-size: auto;
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  [estilo-bar~="compact"] [estilo-bar-title-input] { flex: 1 1 auto; inline-size: 100%; block-size: 2rem; max-inline-size: none; margin-inline-start: 0; text-overflow: ellipsis; }
  /* With Compact.Title the page has a large title of its own (Docs), and
     the bar is the large-title idiom: at rest Back and the end group on
     no hairline, the compact title hidden; once the app's script marks
     the bar folded (estilo-bar-folded, when its large title has scrolled
     away), the compact title fades in, the hairline appears, and Back is
     its chevron alone, the name kept as its accessible name. Without
     script the bar never folds and the large title is the title. */
  [estilo-bar~="compact"]:has(> [estilo-bar-compact-title]) { border-block-end-color: transparent; }
  [estilo-bar~="compact"] [estilo-bar-compact-title] { opacity: 0; visibility: hidden; transition: opacity 150ms ease, visibility 0s linear 150ms; }
  [estilo-bar~="compact"][estilo-bar-folded]:has(> [estilo-bar-compact-title]) { border-block-end-color: var(--rst-line); }
  [estilo-bar~="compact"][estilo-bar-folded] [estilo-bar-compact-title] { opacity: 1; visibility: visible; transition: opacity 150ms ease; }
  [estilo-bar~="compact"][estilo-bar-folded]:has(> [estilo-bar-compact-title]) [estilo-bar-brand] { min-inline-size: 44px; justify-content: center; padding-inline: 0; }
  [estilo-bar~="compact"][estilo-bar-folded]:has(> [estilo-bar-compact-title]) [estilo-bar-name] { position: absolute; clip-path: inset(50%); inline-size: 1px; block-size: 1px; overflow: hidden; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  [estilo-bar~="compact"] [estilo-bar-compact-title] { transition: none; }
}

/* Appearance, in every app's account menu: Light, Dark and System as
   three equal segments in one well, an icon over each word. The one in
   force is raised (the surface, a step lighter in dark, where the
   surface is barely off the well), bold, with its icon in the accent:
   raised and bold, so more than colour says which. aria-pressed is the
   state. chrome.js switches it in place. */
[estilo-appearance] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rst-sp-1);
  margin: var(--rst-sp-1) var(--rst-sp-2) var(--rst-sp-2);
  padding: var(--rst-sp-1);
  border-radius: 10px;
  background: var(--rst-surface-2);
  box-shadow: inset 0 1px 2px light-dark(rgb(23 32 60 / 0.06), rgb(0 0 0 / 0.25));
}
[estilo-appearance] [estilo-menu-item] {
  flex-direction: column;
  justify-content: center;
  gap: var(--rst-sp-1);
  min-block-size: 46px;
  padding: var(--rst-sp-2) var(--rst-sp-1);
  border-radius: 8px;
  background: none;
  color: var(--rst-text-muted);
  font-size: 12px;
  text-align: center;
}
[estilo-appearance] [estilo-menu-label] { flex: none; max-inline-size: 100%; overflow-wrap: anywhere; }
[estilo-appearance-icon] { display: inline-flex; flex: none; inline-size: 16px; block-size: 16px; }
[estilo-appearance-icon] svg { inline-size: 100%; block-size: 100%; }
[estilo-appearance] [estilo-menu-item]:hover:not([aria-pressed="true"]) {
  background: light-dark(rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.04));
  color: var(--rst-text);
}
[estilo-appearance] [estilo-menu-item][aria-pressed="true"] {
  background: light-dark(var(--rst-surface), #2f333d);
  color: var(--rst-text);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 light-dark(rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.06)),
    0 1px 2px rgb(23 32 60 / 0.12),
    0 0 0 1px light-dark(rgb(23 32 60 / 0.06), rgb(255 255 255 / 0.06));
}
[estilo-appearance] [estilo-menu-item][aria-pressed="true"] [estilo-appearance-icon] { color: var(--rst-accent); }
