/* The one bar.
 *
 * The site serves two documents — `web/home.html` at `/` and the Svelte shell at `/app`,
 * `/about`, `/community` and `/support` — and both wear this exact bar. It is written once,
 * here, and loaded by both: the marketing document links `/site-bar.css`, and `src/main.ts`
 * imports this same file so the app bundle carries it. Neither side may restyle the bar locally; a rule that lives here exists for both, and a rule that
 * lives anywhere else is how the two bars drifted apart in the first place.
 *
 * The bar is driven by the skin tokens the landing page already uses (`--skin-*`, from
 * `web/landing-skins.css`). `WebShell.svelte` supplies those same tokens from
 * `compactTheme(...)` as inline custom properties, so a board skin change recolours the
 * marketing bar and the portal bar through one code path.
 *
 * A `//` comment would be a parse error in CSS, so this header deliberately uses `*`.
 */

/* The page column.
 *
 * One measure for every document: `/`'s sections, the portal's sub-tab strip and the portal page
 * bodies all sit in this 1060px column, so a phone narrows all of them by the same amount. The
 * masthead is the one exception and widens itself to 2480px below, because a bar that holds a
 * 128px crest is furniture, not a column of prose.
 */
.wrap {
  width: 100%;
  max-width: var(--mk-wrap, 1060px);
  margin: 0 auto;
  /* `viewport-fit=cover` is declared on both documents, so a landscape notch would otherwise
     sit on top of the first character of every line. The gutter is the floor, the inset the
     ceiling — a phone with no notch gets exactly the old value. */
  padding: 0 max(var(--mk-gutter, 22px), env(safe-area-inset-right, 0px)) 0
    max(var(--mk-gutter, 22px), env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

/* The sub-tab strip.
 *
 * `/` scrolls through chapters with it, the portal pages switch a tab with it. Same row, same
 * rule, same type — text only, no pill, no tray, no glyph — so a sub-tab reads as a chapter link
 * on both documents. That is the whole reason it lives here instead of inside either page.
 */
nav.chapters {
  border-bottom: 1px solid
    var(--mk-rule, color-mix(in srgb, var(--skin-text-muted) 20%, transparent));
}
nav.chapters .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 11px;
  padding-bottom: 11px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav.chapters .wrap::-webkit-scrollbar {
  display: none;
}
nav.chapters a,
nav.chapters button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  color: var(--skin-text-muted);
  white-space: nowrap;
  cursor: pointer;
}
nav.chapters a:hover,
nav.chapters button:hover {
  color: var(--skin-text-primary);
  text-decoration: none;
}
nav.chapters [aria-current='page'] {
  color: var(--skin-text-primary);
  font-weight: 650;
}
@media (max-width: 1180px) {
  nav.chapters .wrap {
    gap: 18px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
/* A phone gets a real touch target out of the strip: the label stays text-only, the box
   around it grows to 40px so a thumb does not need pixel aim to change chapter. */
@media (max-width: 560px) {
  nav.chapters a,
  nav.chapters button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
}

/* A pinned strip.
 *
 * `/`'s chapters are a table of contents for a document you read top to bottom, so they scroll
 * away with it. A portal page's tabs are not: they switch what the page shows, so scrolling the
 * body must not take the switch away. `PageTabs` opts in with `class="chapters is-pinned"` and the
 * strip parks directly under the bar, which is itself sticky at `top: 0`.
 *
 * `--site-bar-height` is measured and published by `WebShell.svelte` (a `ResizeObserver` on the
 * header), because the bar is 156px on one line, 138px once it stacks and 123px on a phone, plus
 * the notch inset in standalone mode — no single breakpoint value is right for all of it. The
 * fallback is the desktop height, so the first paint parks the strip sensibly even before the
 * script runs.
 *
 * The strip is opaque and sits one layer under the bar (19 against the bar's 20): the body never
 * shows through it, and the bar always keeps the corner.
 */
nav.chapters.is-pinned {
  position: sticky;
  top: var(--site-bar-height, 156px);
  z-index: 19;
  background: var(--skin-background, #f7f8fa);
}

/* The ambient piece layer.
 *
 * `/` scatters fourteen root-set pieces behind its copy; the portal pages wear the same layer, so
 * the public site reads as one place instead of a landing page with three plain documents behind
 * it. The rules live here rather than in each document because both link this file — the markup
 * is a plain `div.ambient` of `span.ambient-piece` children in `web/home.html` and
 * `WebShell.svelte`, and its geometry is carried on each child as inline custom properties
 * (`--size`, `--rot`, `--op`, `--lift`, `--dur`, `--delay`), so the drift has one implementation.
 *
 * Decorative only: `pointer-events` off, the pieces carry `alt=""`, and the container is
 * `role="presentation"`. `--mk-shade` belongs to the marketing document's palette, so it gets the
 * same value as a fallback for the portal pages, which never define it.
 */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambient-piece {
  position: absolute;
  display: block;
  width: var(--size, 96px);
  transform: rotate(var(--rot, 0deg));
  opacity: var(--op, 0.45);
}
.ambient-piece img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 30px var(--mk-shade, rgba(4, 8, 16, 0.2)));
  animation: mk-drift var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes mk-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 var(--lift, -14px); }
}

/* The content column is the document, so it sits above the ambient layer. The bar lifts itself
 * (`z-index: 20`) and the pinned strip too (`19`); this covers the page column and the footer,
 * which are ordinary flow children in both documents. */
.ambient ~ main,
.ambient ~ footer {
  position: relative;
  z-index: 1;
}

/* Responsive ambient budget: 14 pieces on a wide desktop, 8 on a laptop, none once the column
 * reaches the screen edges. Opacity scales rather than the count alone, so a narrow window dims
 * instead of abruptly emptying. */
@media (max-width: 1499px) {
  .ambient-piece.is-wide { display: none; }
}
@media (max-width: 1399px) {
  .ambient-piece {
    transform: rotate(var(--rot, 0deg)) scale(0.66);
    opacity: calc(var(--op, 0.45) * 0.62);
  }
}
/* Below this width the 1060px column reaches the screen edge, so a piece can only sit on top of
 * text. The ambient art is the first thing to go. */
@media (max-width: 1099px) {
  .ambient { display: none; }
}

/* Accessibility: the drift is decoration, so it stops dead. Rotations stay, because they are
 * layout, not motion. */
@media (prefers-reduced-motion: reduce) {
  .ambient-piece img { animation: none; }
  .site-bar .cta.small,
  .site-bar .cta.small::after { animation: none; }
}

/* A portal page body: the same column as `/`, with room above the strip's rule and below the
 * fold. Pages that need more air add it locally rather than growing another wrapper. */
.site-body {
  padding-top: 34px;
  padding-bottom: 76px;
}
@media (max-width: 560px) {
  .site-body {
    padding-top: 26px;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

.site-bar {
  /* The bar's gutter follows the page gutter, so a phone narrows both together. */
  --site-bar-gutter: var(--mk-gutter, 22px);
  position: sticky;
  top: 0;
  z-index: 20;
  /* In standalone PWA mode `top: 0` is the physical screen edge, under the status bar or the
     notch. The bar background still fills that inset; only the lockup moves clear of it. */
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--skin-background) 86%, transparent);
  border-bottom: 1px solid var(--mk-rule, color-mix(in srgb, var(--skin-text-muted) 20%, transparent));
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  backdrop-filter: blur(14px) saturate(1.12);
}

.site-bar .wrap.masthead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  /* Twice the 78px strip this replaced: a header that holds a 128px crest is a header,
     not a strip. The bar owns the full page width, so the mark, the three routes and the
     one button hold a single line. `position: relative` is the containing block for the
     account door, which is pinned to the corner instead of taking a flex slot. */
  position: relative;
  min-height: 156px;
  max-width: 2480px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 14px max(var(--site-bar-gutter), env(safe-area-inset-right, 0px)) 14px
    max(var(--site-bar-gutter), env(safe-area-inset-left, 0px));
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  /* Pinned, not inherited: `/` and the shell set body type for their own copy, and an
     inherited line-height alone is enough to make one bar two pixels taller than the other. */
  line-height: 1.2;
  color: var(--skin-text-primary);
  font-family: var(--font-display, 'Inter', ui-sans-serif, system-ui, sans-serif);
  font-weight: var(--heading-weight, 700);
}
.brand,
.brand:hover {
  text-decoration: none;
}

/* The installed app's own icon (`Icon-192`), the same art as the favicon and the og:image,
   so `/`, `/about` and `/app` share one face. It fills the bar's inner height exactly
   (156px - 2 x 14px padding), so the masthead is measured by its mark rather than padded
   around it. */
.brand-mark {
  width: 128px;
  height: 128px;
  flex: none;
  border-radius: calc(var(--radius-small, 10px) + 2px);
  object-fit: contain;
  filter: drop-shadow(0 8px 18px var(--skin-accent-glow));
  transition: transform 0.2s var(--mk-ease, ease), filter 0.2s var(--mk-ease, ease);
}
a.brand:hover .brand-mark,
a.brand:focus-visible .brand-mark {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 12px 26px var(--skin-accent-glow));
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}
.brand-name {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--skin-accent);
  font-weight: 600;
}
/* On a phone row the sub-line drops its trailing word so the lockup and the button still
   share one line. `display: none` keeps the hidden copy out of the accessibility tree, and
   the link's own aria-label names the full title. */
.brand-sub-short {
  display: none;
}

/* The three portal routes, worn as a 14px glyph and a label inside a rounded pill. `/` is
   not one of those routes, so none of the three is ever current there; the marketing bar
   has no route to mark and every pill rests in the muted idle state. */
nav.site {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
nav.site a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--skin-text-muted);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
}
nav.site a:hover {
  color: var(--skin-text-primary);
  background: color-mix(in srgb, var(--skin-accent) 12%, transparent);
  text-decoration: none;
}
nav.site a[aria-current='page'] {
  color: var(--skin-accent);
  background: color-mix(in srgb, var(--skin-accent) 15%, transparent);
  border-color: color-mix(in srgb, var(--skin-accent) 30%, transparent);
}
nav.site svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-small, 10px);
  background-image: linear-gradient(
    180deg,
    var(--skin-accent),
    color-mix(in srgb, var(--skin-accent) 76%, #000)
  );
  color: var(--skin-on-accent);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  border: 1px solid color-mix(in srgb, var(--skin-accent-gold) 58%, transparent);
  box-shadow: 0 10px 26px var(--skin-accent-glow);
  transition:
    transform 0.18s var(--mk-ease, ease),
    box-shadow 0.18s var(--mk-ease, ease),
    filter 0.18s var(--mk-ease, ease);
}
.cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 15px 34px var(--skin-accent-glow);
}
.cta.small {
  padding: 13px 26px;
  font-size: 1rem;
}
@keyframes cta-urgent-pulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: 0 10px 26px var(--skin-accent-glow);
  }
  50% {
    transform: scale(1.045);
    filter: brightness(1.18);
    box-shadow:
      0 0 0 5px color-mix(in srgb, var(--skin-accent) 34%, transparent),
      0 0 28px var(--skin-accent-glow),
      0 14px 36px var(--skin-accent-glow);
  }
}

@keyframes cta-shimmer-sweep {
  0% { transform: translateX(-140%) skewX(-22deg); }
  55%, 100% { transform: translateX(240%) skewX(-22deg); }
}

.site-bar .cta.small {
  position: relative;
  overflow: hidden;
  order: 3;
  flex: none;
  animation: cta-urgent-pulse 1.35s ease-in-out infinite;
}
.site-bar .cta.small::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--skin-on-accent) 42%, transparent),
    transparent
  );
  pointer-events: none;
  animation: cta-shimmer-sweep 2.4s ease-in-out infinite;
}
.site-bar .cta.small:hover,
.site-bar .cta.small:focus-visible,
.site-bar .cta.small:hover::after,
.site-bar .cta.small:focus-visible::after {
  animation-play-state: paused;
}

@media (max-width: 1180px) {
  /* Three pills no longer fit beside the lockup and the button, so they drop to their own
     horizontally scrollable row instead of leaving the page. */
  nav.site {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 6px;
    padding: 9px 0 0;
    border-top: 1px solid var(--mk-rule, rgba(128, 128, 128, 0.24));
    overflow-x: auto;
    scrollbar-width: none;
  }
  nav.site::-webkit-scrollbar {
    display: none;
  }
  .site-bar .cta.small {
    order: 1;
    margin-left: auto;
  }
  /* First row: lockup, CTA, then the account slot at the far right. The route pills drop to
     the second row and never share a line with the profile control. */
  /* The stacked bar is already tall; it does not inherit the 156px desktop rule. */
  .site-bar .wrap.masthead {
    gap: 8px 18px;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand-mark {
    width: 60px;
    height: 60px;
  }
  .brand-name {
    font-size: 1.2rem;
  }
  .brand-sub {
    font-size: 0.64rem;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 44px;
    height: 44px;
  }
  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }
  .brand-sub {
    font-size: 0.56rem;
    letter-spacing: 0.26em;
  }
  .brand-sub-full {
    display: none;
  }
  .brand-sub-short {
    display: inline;
  }
  /* Both rows of the stacked bar hold the 44px thumb floor: the one door into the board is
     the bar's whole job, and the three route pills sit right under it. */
  nav.site a {
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  /* Lockup and the button have to share the row, or the bar grows a third line. */
  .site-bar .cta.small {
    padding: 10px 14px;
    min-height: 44px;
    font-size: 0.85rem;
    gap: 7px;
  }
  .site-bar .cta.small svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 400px) {
  /* At 320px the lockup and the button no longer fit a 22px gutter, and the scrollbar
     takes another 15px off the usable row. */
  .site-bar {
    --site-bar-gutter: 16px;
  }
  .site-bar .wrap.masthead {
    gap: 8px 10px;
  }
  .site-bar .cta.small {
    padding: 9px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  /* 320-380px: the lockup, the CTA and the account door must still share one row. If the
     account slot wraps, the bar grows a third line (171px instead of 122px) and every
     anchored chapter on `/` lands under the bar. The CTA therefore sheds its decorative
     icon at this width — never its 44px height or its label — and the mark tightens. */
  .site-bar .wrap.masthead {
    gap: 6px;
  }
  .site-bar .brand {
    gap: 9px;
  }
  .site-bar .brand-mark {
    width: 40px;
    height: 40px;
  }
  .site-bar .cta.small {
    padding: 8px 10px;
  }
  .site-bar .cta.small svg {
    display: none;
  }
}

/* ------------------------------------------------------------------------------------------
   Account slot (`AccountChip.svelte`).
   Sits at the far right of the bar, after the CTA and separated from the route pills, because
   it is account chrome rather than a fourth tab: the profile control must keep its own space
   and must not shift when the main tabs change. It renders only for a signed-in session — a
   guest gets no account control at all, because the CTA is the one door into `/app`, where the
   access gate offers sign-in and Create Account.
   `/` links this same stylesheet, and loads no Firebase SDK, so it never shows the chip.
   ------------------------------------------------------------------------------------------ */
/* The account door is account chrome, not a fourth route: on the one-line bar it is pinned
   to the top-right corner and taken out of the flex flow, so its width (a signed-in name) can
   never push `nav.site` or the CTA around. It also costs no reserved inline space, so there is
   nothing to wrap at the tight desktop widths, and it rides above the CTA rather than beside
   it (`top: 6px` leaves the corner badge clear of the button's box at every desktop width).
   Below 1180px the bar stacks and the slot rejoins the flow on the first row. */
.site-bar .account {
  position: absolute;
  top: 6px;
  right: max(var(--site-bar-gutter), env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  flex: none;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--skin-accent) 32%, transparent);
  background: color-mix(in srgb, var(--skin-accent) 12%, transparent);
  color: var(--skin-text-primary);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.16s var(--mk-ease, ease),
    border-color 0.16s var(--mk-ease, ease);
}
.account-chip:hover {
  background: color-mix(in srgb, var(--skin-accent) 20%, transparent);
  border-color: color-mix(in srgb, var(--skin-accent) 48%, transparent);
}
/* The corner badge, not a second button: one small round avatar, so it reads as account chrome
   instead of a duplicate call to action beside "Play Now". The label stays in the DOM as the
   control's tooltip and `aria-label`, but it does not print — the avatar alone says who is
   signed in. */
.site-bar .account .account-chip {
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 50%;
}
.site-bar .account .account-name,
.site-bar .account .account-chevron {
  display: none;
}
.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--skin-accent);
  color: var(--skin-on-accent);
  font-size: 0.76rem;
  font-weight: 800;
}
.account-avatar.lg {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}
.account-name {
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-chevron {
  flex: none;
  opacity: 0.7;
  transition: transform 0.16s var(--mk-ease, ease);
}
.account-chevron.is-open {
  transform: rotate(180deg);
}

.account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 268px;
  max-width: calc(100vw - 32px);
  padding: 13px;
  border-radius: 15px;
  border: 1px solid var(--skin-border-glass, rgba(128, 128, 128, 0.28));
  background: color-mix(in srgb, var(--skin-panel-glass, #101014) 96%, transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.account-lines {
  min-width: 0;
}
.account-display-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--skin-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-email {
  margin: 1px 0 0;
  font-size: 0.74rem;
  color: var(--skin-text-muted);
  overflow-wrap: anywhere;
}
.account-id-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 9px;
  border-top: 1px solid var(--mk-rule, rgba(128, 128, 128, 0.24));
}
.account-id-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--skin-text-muted);
  white-space: nowrap;
}
.account-id-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.71rem;
  color: var(--skin-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid var(--skin-border-glass, rgba(128, 128, 128, 0.28));
  background: transparent;
  color: var(--skin-text-muted);
  cursor: pointer;
}
.account-icon-btn:hover {
  color: var(--skin-accent);
  border-color: color-mix(in srgb, var(--skin-accent) 46%, transparent);
}
.account-action {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--skin-text-muted) 10%, transparent);
  color: var(--skin-text-primary);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.account-action:hover {
  color: var(--skin-accent);
  background: color-mix(in srgb, var(--skin-accent) 16%, transparent);
  text-decoration: none;
}
.account-action.danger:hover {
  color: #f87171;
  background: color-mix(in srgb, #f87171 15%, transparent);
}
.account-action:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 1180px) {
  /* On the stacked bar the account door shares the first row with the CTA (`order: 1`) and
     must be ordered before the route pills (`order: 3`), or it is pushed below them onto a
     third line. There is no corner to overlay there, so it rejoins the flow and gets its
     divider back. */
  .site-bar .account {
    position: static;
    top: auto;
    right: auto;
    order: 2;
    margin-left: 0;
    padding-left: 10px;
    border-left: 1px solid var(--mk-rule, color-mix(in srgb, var(--skin-text-muted) 22%, transparent));
  }
}

@media (max-width: 560px) {
  /* On touch the round door keeps a 40px box around a 28px avatar. */
  .account-chip {
    padding: 4px;
    min-width: 40px;
    min-height: 40px;
  }
  .account-avatar {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 400px) {
  /* The slot is an icon at this width; the gutter is already down to 16px. The 40px touch
     floor holds — only the divider gap tightens. */
  .site-bar .account {
    padding-left: 6px;
  }
}

