/* Canonical DIGIGMA header, overlay, and footer.
   Loaded by homepage, shell pages, and Play. Do not restyle from play.css. */

html.is-nav-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 8px 12px;
  background-color: var(--header-bg, #FFF6E4);
  border-bottom: 1px solid var(--header-line, #E4C98A);
  color: var(--header-ink, var(--ink));
}

.site-header::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--game-sudoku, #3547B3),
    var(--game-binary, #2E8B7A),
    var(--game-codebreaker, #E07A5F),
    var(--game-kakuro, #6B5B95),
    var(--game-futoshiki, #C88708)
  );
  opacity: 0.42;
  pointer-events: none;
}

.site-header.is-nav-open {
  z-index: 50;
}

.site-header .brand,
.site-header .ds-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3, 12px);
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.site-header .brand h1,
.site-header .ds-logo-word {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-header .ds-logo-mark,
.site-header .ds-logo-dot {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  /* 26% of 42px ≈ 11px — same ratio as footer and baked brand assets */
  border-radius: 26%;
  background: none;
  object-fit: contain;
  display: block;
}

.site-header .mark { display: none; }

.shell-nav,
.site-header .nav {
  display: none;
  flex: 1 1 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 12px;
}

.site-header,
.site-footer {
  --nav-link-color: var(--header-ink, var(--ink));
  --nav-link-hover: #A86E06;
  --nav-link-active: var(--indigo, #3547B3);
  --nav-link-size: 0.86rem;
  --nav-link-weight: 500;
  --nav-link-tracking: 0.01em;
}

.site-footer {
  --nav-link-size: 0.78rem;
  overflow-x: clip;
}

html[data-ds-theme="dark"] .site-header,
html[data-ds-theme="dark"] .site-footer {
  --nav-link-hover: #E0C078;
  --nav-link-active: var(--indigo, #8E9BE8);
}

.shell-nav .shell-logout,
.shell-nav a,
.shell-nav a:link,
.shell-nav a:visited,
.site-header .nav > a,
.site-header .nav > a:link,
.site-header .nav > a:visited,
.footer-links a,
.footer-links a:link,
.footer-links a:visited,
.site-footer .footer-links a,
.site-footer .footer-links a:link,
.site-footer .footer-links a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--nav-link-color);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: var(--nav-link-size);
  font-weight: var(--nav-link-weight);
  letter-spacing: var(--nav-link-tracking);
  text-transform: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.shell-nav .shell-logout:hover,
.shell-nav a:hover,
.site-header .nav > a:hover,
.footer-links a:hover,
.site-footer .footer-links a:hover {
  color: var(--nav-link-hover);
  border-bottom-color: var(--nav-link-hover);
}

.shell-nav a[aria-current="page"],
.site-header .nav > a[aria-current="page"],
.footer-links a[aria-current="page"],
.site-footer .footer-links a[aria-current="page"] {
  color: var(--nav-link-active, var(--indigo, #3547B3));
  border-bottom-color: var(--nav-link-active, var(--indigo, #3547B3));
  font-weight: 600;
}

.shell-nav .shell-logout:focus-visible,
.shell-nav a:focus-visible,
.site-header .nav > a:focus-visible,
.footer-links a:focus-visible,
.site-footer .footer-links a:focus-visible {
  color: var(--nav-link-active, var(--indigo, #3547B3));
  outline: 2px solid var(--nav-link-active, var(--indigo, #3547B3));
  outline-offset: 3px;
  border-bottom-color: transparent;
}

.nav-panel {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  margin-left: 28px;
}

.shell-bar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
}

.locale-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-bright);
}

.locale-switch .locale-flag,
.locale-switch .player-flag {
  width: 22px;
  height: 16px;
  flex: 0 0 22px;
  pointer-events: none;
}

.locale-switch .locale-flag svg,
.locale-switch .player-flag svg {
  display: block;
  width: 22px;
  height: 16px;
}

.locale-switch-hit {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
}

.locale-switch select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 44px;
  min-width: 44px;
  max-width: none;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-bright);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 1px;
  background: currentColor;
}

.shell-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--sumi, #2B2419) 42%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion, 0.2s) ease;
}

.is-nav-open .shell-overlay,
.site-header.is-nav-open + .shell-overlay,
.shell-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-header.is-nav-open .nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: min(17.5rem, 86vw);
  max-width: 17.5rem;
  height: auto;
  max-height: 100dvh;
  margin: 0;
  padding: 12px 14px max(16px, env(safe-area-inset-bottom, 0px));
  background: var(--paper-bright);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow-y: auto;
}

.site-header.is-nav-open .shell-nav,
.site-header.is-nav-open .nav {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.site-header.is-nav-open .shell-nav .shell-logout,
.site-header.is-nav-open .shell-nav a,
.site-header.is-nav-open .nav > a {
  min-height: 44px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}

.shell-account-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 4px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.shell-nav .shell-logout {
  appearance: none;
  width: auto;
  margin: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: inherit;
  text-align: start;
  cursor: pointer;
}

.shell-nav .shell-logout:disabled { opacity: 0.6; cursor: wait; }

.site-header.is-nav-open .shell-account-group {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin: 12px 0 0;
  padding: 8px 0 0;
  border-left: 0;
  border-top: 1px solid var(--line);
}

.site-footer {
  margin-top: auto;
  padding: 36px 16px 52px;
  border-top: 1px solid var(--header-line, var(--line));
  background: color-mix(in srgb, var(--header-bg, #FFF6E4) 42%, var(--paper));
  color: var(--muted);
  text-align: left;
}

.site-footer::before {
  content: none;
  display: none;
}

.footer-inner,
.site-footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: min(1120px, 100%);
  max-width: none;
  margin: 0 auto;
  text-align: left;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

.footer-brand .ds-logo-word {
  display: block;
  line-height: 1;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
}

.footer-brand .mark { display: none; }

.footer-brand .ds-logo-mark,
.footer-brand .ds-logo-dot {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  /* 26% of 32px ≈ 8px — same ratio as the 42px header mark */
  border-radius: 26%;
  background: none;
  object-fit: contain;
  display: block;
}

.footer-links,
.site-footer .footer-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px 10px;
  max-width: 100%;
}

.footer-links a,
.site-footer .footer-links a {
  padding: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.footer-sep {
  color: var(--muted);
  user-select: none;
  flex: 0 0 auto;
}

.footer-copyright {
  margin: 4px 0 0;
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .site-footer {
    text-align: center;
  }

  .footer-inner,
  .site-footer .footer-inner {
    width: var(--mobile-content-width, 95%);
    margin-inline: auto;
    align-items: center;
    text-align: center;
  }

  .footer-links,
  .site-footer .footer-links {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  /* Keep Help · Privacy · Legal on one row on small phones; tighten type/gap. */
  .site-footer {
    --nav-link-size: 0.72rem;
  }

  .footer-links,
  .site-footer .footer-links {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2px 6px;
  }

  .footer-sep {
    display: inline;
    font-size: 0.72rem;
  }
}

.nav-games { display: none; }

.site-header .badge,
.site-header .badge-gold {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  min-height: 22px;
  padding: 1px 7px;
  border: 1px solid color-mix(in srgb, var(--cta, #C88708) 40%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--cta, #C88708) 12%, var(--paper-bright));
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.shell-auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  text-decoration: none;
}
.shell-auth-signin {
  min-height: 36px;
  min-width: auto;
  padding: 4px 12px;
  border-radius: var(--radius-pill, 999px);
  font-size: 0.78rem;
  box-shadow: none;
}
.shell-auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-bright, #fff) 70%, var(--paper));
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  pointer-events: none;
  flex: 0 0 auto;
}
.shell-auth-avatar img,
.shell-auth-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}
.shell-auth-avatar.is-founder {
  border-color: var(--cta, #C88708);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cta, #C88708) 35%, transparent);
}
#shellAccount.shell-auth-in,
#shellAccountSheet.shell-auth-in {
  min-height: 36px;
  padding: 2px 8px 2px 2px;
  border-radius: var(--radius-pill, 999px);
  box-shadow: none;
}
.shell-auth-label {
  font-size: 0.78rem;
}

@media (max-width: 767px) {
  #shellAccount.shell-auth-signin {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .site-header .ds-logo-word,
  body.home .site-header .ds-logo-word {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
  .site-header .brand,
  .site-header .ds-logo {
    gap: 6px;
  }
  .site-header { padding: 8px; gap: 6px; }
  .shell-bar-end { gap: 6px; }
  .locale-switch {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .locale-switch select {
    min-height: 36px;
    min-width: 36px;
  }
  .nav-toggle {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 390px) {
  #shellAccount.shell-auth-signin {
    max-width: 5.6rem;
    padding: 4px 8px;
  }
}

@media (max-width: 339px) {
  .site-header { padding: 8px 6px; gap: 4px; }
  .shell-bar-end { gap: 4px; }
  .site-header .ds-logo-word,
  body.home .site-header .ds-logo-word {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }
  .site-header .brand,
  .site-header .ds-logo {
    gap: 4px;
  }
}

@media (max-width: 1179px) {
  .site-header .brand,
  .site-header .ds-logo { flex: 0 0 auto; }
  .nav-panel {
    flex: 0 0 0;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
}

@media (min-width: 1024px) {
  .shell-nav { gap: var(--space-1, 4px) var(--space-4, 16px); }
  .shell-nav { --nav-link-size: 0.92rem; }
}

@media (min-width: 1180px) {
  .shell-nav,
  .site-header .nav { display: flex; }
  .nav-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .shell-overlay,
  .site-header .nav-panel { transition: none; }
}


/* Add to Home Screen — mobile/tablet sheet only; on-demand dialog */
.shell-add-home {
  display: none;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--nav-link-color, var(--ink));
  font-family: var(--font-sans);
  font-size: var(--nav-link-size, 0.86rem);
  font-weight: var(--nav-link-weight, 500);
  letter-spacing: var(--nav-link-tracking, 0.01em);
  text-align: left;
  cursor: pointer;
}
.site-header.is-nav-open .shell-add-home {
  display: inline-flex;
}
.shell-add-home:hover,
.shell-add-home:focus-visible {
  color: var(--nav-link-hover, #A86E06);
}
.shell-add-home:focus-visible {
  outline: 2px solid var(--nav-link-active, var(--indigo, #3547B3));
  outline-offset: 3px;
}
@media (min-width: 1180px) {
  .shell-add-home {
    display: none !important;
  }
}

.add-home-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--sumi, #2B2419) 42%, transparent);
}
.add-home-dialog[hidden] {
  display: none !important;
}
.add-home-card {
  width: min(22rem, 100%);
  max-height: min(90dvh, 36rem);
  overflow-y: auto;
  padding: 18px 18px 14px;
  background: var(--paper-bright, #FFF6E4);
  border: 1px solid var(--line);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-card, var(--shadow));
  color: var(--ink);
}
.add-home-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}
.add-home-lead,
.add-home-intro,
.add-home-hint,
.add-home-icon-note {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.45;
}
.add-home-home {
  margin: 0 0 12px;
}
.add-home-dialog.is-on-home .add-home-home {
  display: none;
}
.add-home-dialog.is-on-home .add-home-body {
  margin-top: 2px;
}
.add-home-home-link {
  color: var(--indigo, #3547B3);
  text-underline-offset: 3px;
}
.add-home-steps {
  margin: 0 0 12px;
  padding-left: 1.2em;
  font-size: 0.98rem;
  line-height: 1.45;
}
.add-home-steps li {
  margin: 0 0 6px;
}
.add-home-icon-note {
  color: var(--muted);
  font-size: 0.9rem;
}
.add-home-close {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.add-home-close:hover,
.add-home-close:focus-visible {
  color: var(--ink);
}
.add-home-close:focus-visible {
  outline: 2px solid var(--nav-link-active, var(--indigo, #3547B3));
  outline-offset: 3px;
}
@media (max-width: 420px) {
  .add-home-card {
    width: min(95vw, 100%);
    padding: 16px 14px 12px;
  }
}

/* Restore must resolve before guest controls appear. */
#shellBecomeMember[hidden], #shellAccountGroup[hidden], #shellLanguage[hidden], #shellAccount[hidden], #shellAccountSheet[hidden], #shellLogout[hidden] { display: none !important; }
.locale-globe { width: 20px; height: 20px; display: inline-flex; pointer-events: none; }
.locale-globe svg { width: 100%; height: 100%; }
.locale-switch:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }

/* One disclosure drawer at every viewport width. Closed links leave the tab order. */
.site-header .nav-toggle { display: inline-flex; width: auto; min-width: 44px; min-height: 44px; padding: 0 12px; gap: 9px; }
.site-header .nav-panel[hidden] { display: none !important; }
.site-header.is-nav-open .nav-panel {
  top: 64px;
  width: min(22rem, 95vw);
  max-width: 95vw;
  max-height: calc(100dvh - 64px);
  height: auto;
  overscroll-behavior: contain;
}
.site-header.is-nav-open .shell-account-group { gap: 12px; }
.site-header .shell-account-group #shellAccount { width: 100%; max-width: none; justify-content: flex-start; }
.site-header .shell-nav .locale-switch { margin-top: 16px; flex-shrink: 0; }
.site-header .nav-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* The trigger remains visible while the drawer overlays a scrolled page. */
.site-header.is-nav-open { position: fixed; inset: 0 0 auto; z-index: 50; }
.site-header.is-nav-open .shell-bar-end { position: relative; z-index: 2; }
.site-header .shell-account-group #shellAccount.shell-auth-signin {
  width: auto; max-width: 100%; align-self: flex-start; justify-content: center;
  min-height: 44px; padding: 8px 16px; border-radius: var(--radius-sm);
}

/* Unread messages are visible even with the navigation closed. */
.message-badge { display:inline-flex; align-items:center; justify-content:center; min-width:1.5rem; height:1.5rem; padding:0 .3rem; margin-inline-start:.5rem; border-radius:99px; background:#9b3e28; color:#fff9e8; font:700 .75rem/1 system-ui,sans-serif; }
.message-badge[hidden] { display:none; }
.message-toast { position:fixed; inset:auto 1rem 1rem auto; z-index:110; display:flex; align-items:center; gap:1rem; max-width:calc(100vw - 2rem); padding:1rem; background:var(--paper,#fff9e8); color:var(--ink,#30281f); border:1px solid #b28b45; border-radius:12px; box-shadow:0 5px 22px #0003; }
.message-toast a { color:inherit; font-weight:600; }
.message-toast button { border:0; background:transparent; color:inherit; min-width:44px; min-height:44px; font-size:1.4rem; cursor:pointer; }

/* One compact guest action row; native language options inherit site typography. */
.site-header .shell-auth-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:12px; border-top:1px solid var(--line); }
.site-header .shell-auth-row .shell-account-group { margin:0; padding:0; border:0; flex:1 1 auto; }
.site-header .shell-guest-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.site-header .shell-guest-actions #shellBecomeMember { border:0; padding:0; font-size:.85rem; line-height:1.3; }
.site-header .shell-guest-actions .locale-switch { margin:0; }
.site-header .locale-switch select,.site-header .locale-switch option { font-family:Inter,Arial,sans-serif; font-size:14px; font-weight:400; color:var(--ink); background:var(--paper-bright); }
.site-header .shell-auth-row:has(.shell-guest-actions > [hidden]:first-child) .shell-account-group { width:100%; }

.site-header .shell-guest-actions #shellBecomeMember { white-space:nowrap; }

/* Account and its explicit logout control share one row. */
.site-header .shell-auth-row .shell-account-group { display:flex; flex-direction:row; align-items:center; gap:10px; min-width:0; }
.site-header .shell-account-group #shellAccount { flex:1 1 auto; width:auto; min-width:0; }
.site-header .shell-account-group #shellLogout { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; min-height:44px; padding:8px; border:1px solid var(--line); border-radius:10px; background:transparent; color:var(--ink); }
.site-header #shellLogout:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.site-header .shell-guest-actions:has(> [hidden]:first-child):has(> [hidden]:last-child) { display:none; }

/* Shared action buttons across account, catalogue, dialogs and messages. */
html body :is(.btn,.ds-btn,button.primary) { min-height:44px; padding:10px 16px; border-radius:8px; font-family:var(--font-sans,Inter,Arial,sans-serif); font-size:.95rem; font-weight:600; letter-spacing:0; line-height:1.25; text-align:center; }
html body :is(.btn.primary,.ds-btn-primary,button.primary) { color:var(--cta-ink,#FFF9E8); background-color:var(--cta,#946526); border-color:var(--cta,#946526); }
html body :is(.btn.primary,.ds-btn-primary,button.primary):hover { color:var(--cta-ink,#FFF9E8); background-color:var(--cta-hover,#7E541F); border-color:var(--cta-hover,#7E541F); }

/* Message alert: envelope, sender and a distinct, compact cream card. */
.message-toast { width:340px; box-sizing:border-box; padding:12px; gap:4px; background:var(--paper-bright,#fff9e8); border:1px solid #b99c77; border-inline-start:4px solid #654383; border-radius:14px; box-shadow:0 8px 32px #30201f26; }
.message-toast a { display:flex; align-items:center; gap:12px; min-width:0; flex:1; padding:4px; text-decoration:none; }
.message-toast-icon { display:grid; place-items:center; flex:0 0 44px; height:44px; background:#eee5f2; color:#654383; border-radius:12px; }
.message-toast-content { display:flex; flex-direction:column; gap:3px; min-width:0; }
.message-toast-title { font-size:.8rem; font-weight:400; }
.message-toast-content strong { font-size:1rem; overflow-wrap:anywhere; }
.message-toast a:hover strong { text-decoration:underline; }
.message-toast :focus-visible { outline:2px solid #654383; outline-offset:2px; }

/* The account drawer uses a labelled action at every width, never an avatar-only pill. */
.site-header .shell-account-group #shellAccount.shell-auth-in {
  display:flex; align-items:center; gap:10px; min-height:48px; padding:7px 10px;
  border-radius:10px; overflow:visible; white-space:normal;
}
.site-header #shellAccount.shell-auth-in .shell-auth-label {
  display:block; min-width:0; font-size:.95rem; line-height:1.3; overflow-wrap:anywhere;
}
.site-header #shellAccount.shell-auth-in .shell-auth-avatar { width:32px; height:32px; flex:0 0 32px; }
.site-header #shellAccount.shell-auth-in .badge { display:none; }
