/* ============================================================================
   MAMBO — CHROME.  v3.0.0
   Header, drawer, account popover, command palette, footer, subscribe card.
   Site-wide.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   RECLAIM .eos-nav / .eos-footer

   Those two class names MUST stay on the new roots: smart-tv.css hides both in TV
   mode and studio.css hides .eos-nav in cinema and studio-full. Drop them and the
   header paints straight over the video player.

   Keeping them means platform.css still paints them, so the paint is reset here.
   The `:root ` prefix is deliberate: platform.css carries
   `@media (prefers-color-scheme:dark) :root:not([data-theme="light"]) .eos-nav`,
   which is (0,3,0). `.eos-nav.mb-nav` alone is (0,2,0) and would LOSE. With :root
   we tie at (0,3,0) and win on source order, because mb-chrome prints last.

   z-index stays 95, NOT the token file's 60 — watch-controls.css assumes 95.
   -------------------------------------------------------------------------- */
:root .eos-nav.mb-nav {
  position: sticky;
  top: 0;
  z-index: 95;
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  will-change: transform;
  transition: transform var(--dur-header) var(--ease-header);
}

:root .eos-footer.mb-footer {
  margin-top: 0;
  padding: 0;
  background: var(--pg);
  color: var(--ink);
}

/* Hidden by the scroll handler. -100% minus a fixed 40px, because -120% did NOT
   clear the capsule's shadow: hidden only ever happens in capsule state, where
   the header is ~70px tall, so -120% is -84px and --navFloat's 60px-blur layer
   still smudged the top of the page. The last shadow layer reaches ~30px past
   the box; 40 covers it with margin. */
.mb-nav[data-mb-hidden] { transform: translateY(calc(-100% - 40px)); }

/* ---- the wash layer ------------------------------------------------------ */

.mb-nav-shell {
  position: relative;
  padding: 0;
  background: color-mix(in srgb, var(--pg) 84%, transparent);
  -webkit-backdrop-filter: blur(var(--header-blur)) saturate(150%);
  backdrop-filter: blur(var(--header-blur)) saturate(150%);
  border-bottom: 1px solid var(--line2);
  transition:
    background var(--dur-slow) ease,
    border-color var(--dur-slow) ease,
    padding var(--dur-header) var(--ease-header);
}

/* ---- the bar ------------------------------------------------------------- */

.mb-nav-bar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  max-width: var(--shell);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition:
    max-width .5s var(--ease-header),
    height .42s var(--ease-header),
    border-radius var(--dur-header) ease,
    border-color var(--dur-slow) ease,
    background var(--dur-slow) ease,
    box-shadow .44s ease;
}

/* ---- the floating capsule — past 140px of scroll ------------------------- */

.mb-nav[data-mb-float] .mb-nav-shell {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 11px clamp(14px, 3vw, 26px) 0;
}

.mb-nav[data-mb-float] .mb-nav-bar {
  max-width: 1120px;
  height: var(--header-h-float);
  border-radius: var(--r-15);
  border-color: var(--line);
  background: color-mix(in srgb, var(--card) 86%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--navFloat);
}

/* Replayed by JS on each upward reveal. */
.mb-nav[data-mb-revealing] .mb-nav-bar { animation: mbNavIn .5s var(--ease-header); }

/* ---- logo ---------------------------------------------------------------- */

.mb-logo { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }

.mb-logo-img { width: 34px; height: 34px; object-fit: contain; }

.mb-logo-lock { display: flex; flex-direction: column; gap: 4px; line-height: 1; }

.mb-logo-over {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .21em;
  text-transform: uppercase;
  color: var(--muted);
}

.mb-logo-name { font-size: 15px; font-weight: 700; letter-spacing: -.022em; color: var(--ink); }

/* ---- nav ----------------------------------------------------------------- */

.mb-nav-links-wrap { margin-left: auto; }

.mb-nav-links { display: flex; align-items: center; gap: 2px; }

.mb-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--r-8);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background var(--dur) ease, color var(--dur) ease;
}

.mb-nav-link:hover { background: var(--soft); color: var(--ink); }
.mb-nav-link.is-current { color: var(--ink); }

.mb-nav-live {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 6px;
  border-radius: var(--r-xs);
  background: var(--live);
  color: var(--onacc);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Give stands apart from wayfinding: it is an action, not a destination. */
.mb-nav-give {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 9px 14px;
  border: 1px solid var(--accLight);
  border-radius: var(--r-8);
  background: var(--accsoft);
  font-size: 14px;
  font-weight: 650;
  color: var(--acc);
  transition: background var(--dur) ease, transform var(--dur) ease;
}

.mb-nav-give:hover { background: var(--accLight); transform: translateY(-1px); }
.mb-nav-give:active { transform: none; }

/* .mb-nav-setup is styled by the INLINE #eos-ops-nav-css in header.php.
   Do not restyle it here — LiteSpeed UCSS would strip an enqueued copy. */

/* ---- tools cluster ------------------------------------------------------- */

.mb-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }

.mb-theme-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-reveal) var(--spring);
}

.mb-theme-btn { overflow: hidden; }
[data-theme="dark"] .mb-theme-ic { transform: rotate(-180deg); }

/* Rests in --ink where its siblings rest in --body — the burger is the primary
   control of the cluster. It is also the only one whose border darkens on hover. */
.mb-burger { display: none; color: var(--ink); }
.mb-burger:hover { border-color: var(--faint); }

/* ---- account chip -------------------------------------------------------- */

.mb-acct { position: relative; }

.mb-acct-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: transparent;
  cursor: pointer;
  transition: background var(--dur) ease, transform var(--dur) ease;
}

.mb-acct-trigger:hover { background: var(--soft); transform: translateY(-1px); }
.mb-acct-trigger:active { transform: none; }

.mb-acct-chip { background: var(--acc); color: var(--onacc); }
.mb-acct-anon-ic { display: inline-flex; color: var(--body); }
html.eos-auth-yes .mb-acct-chip { background: var(--acc); }
html:not(.eos-auth-yes) .mb-acct-chip { background: transparent; }

.mb-acct-label {
  padding-right: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  max-width: 12ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- account popover ----------------------------------------------------- */

.mb-acct-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 180;
  width: 288px;
  max-height: min(560px, calc(100vh - 96px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-15);
  background: var(--card);
  box-shadow: var(--pop);
  animation: mbPop var(--dur-pop) var(--ease) both;
}

.mb-acct-menu[hidden] { display: none; }

.mb-acct-id {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px 13px;
  border-bottom: 1px solid var(--line2);
  margin-bottom: 6px;
}

.mb-acct-id-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.mb-acct-id-name {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb-acct-id-mail {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb-acct-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--r-ctl);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur) ease;
}

.mb-acct-row:hover { background: var(--soft); }
.mb-acct-row:hover .mb-icon-tile--sm { background: var(--accsoft); color: var(--acc); }

.mb-acct-row-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mb-acct-row-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.mb-acct-row-desc { font-size: 11.5px; color: var(--muted); }

.mb-acct-row--out .mb-acct-row-label { color: var(--live); }
.mb-acct-row--out:hover { background: color-mix(in srgb, var(--live) 9%, transparent); }

.mb-acct-rule { height: 1px; margin: 6px 4px; border: 0; background: var(--line2); }

.mb-acct-heading {
  padding: 6px 10px 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

.mb-acct-anon-copy { padding: 12px 10px; font-size: 13px; line-height: 1.5; color: var(--body); }
.mb-acct-cta { width: 100%; margin-bottom: 6px; }

/* ---- drawer -------------------------------------------------------------- */

.mb-drawer {
  position: absolute;
  left: clamp(14px, 3vw, 26px);
  right: clamp(14px, 3vw, 26px);
  top: 100%;
  z-index: 100;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-15);
  background: var(--card);
  box-shadow: var(--navFloat);
  /* The CLOSED state lives on the base rule — [data-mb-open] must have something
     to interpolate FROM, or the open is a snap and only the close animates. The
     [hidden] gate keeps a JS failure at "never shown", not "invisible overlay". */
  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transform-origin: top right;
  transition: opacity var(--dur-enter) ease, transform var(--dur-drawer) var(--ease-header);
}

.mb-drawer[hidden] { display: none; }
.mb-drawer[data-mb-closing] { opacity: 0; transform: translateY(-10px) scale(.98); }
.mb-drawer[data-mb-open] { opacity: 1; transform: translateY(0) scale(1); }

.mb-drawer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--r-field);
  color: var(--ink);
  transition: background var(--dur) ease;
}

.mb-drawer-row:hover { background: var(--soft); }

.mb-drawer-lead { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--muted); }
.mb-drawer-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mb-drawer-label { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.mb-drawer-desc { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.mb-drawer-row > svg { color: var(--faint); flex: 0 0 auto; }

.mb-drawer-foot {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  padding: 9px 5px 5px;
  border-top: 1px solid var(--line2);
}

.mb-drawer-search,
.mb-drawer-give {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  height: 44px;
  border-radius: var(--r-field);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) ease;
}

.mb-drawer-search { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.mb-drawer-search:hover { background: var(--soft); }

.mb-drawer-give { border: 1px solid transparent; background: var(--acc); color: var(--onacc); }
.mb-drawer-give:hover { background: var(--accHover); }

/* ---- command palette ----------------------------------------------------- */

.mb-palette { position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center; padding: clamp(48px, 12vh, 120px) 18px 18px; }
.mb-palette[hidden] { display: none; }

.mb-palette-scrim {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(var(--scrim-blur));
  backdrop-filter: blur(var(--scrim-blur));
  animation: mbPop var(--dur) ease both;
}

.mb-palette-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(624px, 100%);
  max-height: min(580px, calc(100vh - 120px));
  border: 1px solid var(--line2);
  border-radius: var(--r-dialog);
  background: var(--card);
  box-shadow: var(--pop);
  animation: mbPop var(--dur-pop) var(--ease) both;
}

.mb-palette-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line2);
  color: var(--muted);
}

.mb-palette-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.014em;
}

.mb-palette-input:focus { outline: none; }
.mb-palette-input::placeholder { color: var(--faint); }

.mb-kbd {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--r-sm);
  background: var(--stage);
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
}

.mb-palette-body { flex: 1; overflow-y: auto; padding: 8px; }

.mb-palette-group {
  padding: 8px 10px 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

.mb-palette-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px 10px 8px;
  border-radius: var(--r-12);
  color: var(--muted);
  transition: background var(--dur) ease;
}

.mb-palette-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: var(--r-pill);
  background: var(--acc);
  transform: translateY(-50%);
  transition: height var(--dur) var(--ease);
}

.mb-palette-row[data-mb-cursor],
.mb-palette-row:hover { background: var(--soft); }
.mb-palette-row[data-mb-cursor]::before { height: 22px; }

.mb-palette-row-text { display: flex; flex-direction: column; gap: 1px; }
.mb-palette-row-label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mb-palette-row-meta { font-size: 12px; color: var(--muted); }

.mb-palette-enter { margin-left: auto; color: var(--faint); opacity: 0; transition: opacity var(--dur) ease; }
.mb-palette-row[data-mb-cursor] .mb-palette-enter { opacity: 1; }

.mb-palette-empty { padding: 22px 12px; font-size: 13.5px; color: var(--muted); }

.mb-palette-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-top: 1px solid var(--line2);
  font-size: 11.5px;
  color: var(--muted);
}

.mb-palette-hint { margin-left: auto; }

/* ---- subscribe card ------------------------------------------------------ */

/* The negative translate and the closing band's tall bottom padding in
   mambo-landing.css are ONE mechanism. Change either and the card floats in white. */
.mb-subscribe-wrap { position: relative; z-index: 2; transform: translateY(clamp(-56px, -5.5vw, -44px)); }

/* The gutter goes on the shell, INSIDE the 1240px cap — the same construction as
   .mb-footer-inner/-legal below, which is what lands the card's edges on exactly
   the footer grid's x at every width. On the wrap it would yield a 1240px card
   over a 1160px footer column. Without it the card ran edge-to-edge on phones. */
.mb-subscribe-wrap > .mb-shell { padding-inline: var(--gutter); }

.mb-subscribe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px 40px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  /* --sub, the card's own three-layer lift: it floats between two surfaces and
     the page-level --sh reads too shallow there. */
  background: var(--card);
  box-shadow: var(--sub);
}

/* Icon tile + text: the clay mail tile is part of the design's copy block. */
.mb-subscribe-copy { display: flex; gap: 15px; align-items: flex-start; }
.mb-subscribe-copy-text { min-width: 0; }

.mb-subscribe-title { font-size: clamp(19px, 2.1vw, 23px); letter-spacing: -.024em; }
.mb-subscribe-sub { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--body); }

.mb-subscribe-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; }

.mb-subscribe-input {
  height: 46px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  background: var(--stage);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.mb-subscribe-input::placeholder { color: var(--faint); }
/* Accent ring on --stage: the surface does NOT flip to --card on focus. */
.mb-subscribe-input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--accsoft); }

/* The submit button's glow is accent-tinted — a design literal (rgba of the light
   accent) that deliberately does not re-tone in dark. */
.mb-subscribe .mb-btn--primary { box-shadow: 0 1px 2px rgba(66,48,32,.14), 0 6px 14px -6px color-mix(in srgb, var(--acc) 50%, transparent); } /* v3.36.0 - palette-aware */
.mb-subscribe .mb-btn--primary:hover { box-shadow: 0 2px 4px rgba(66,48,32,.16), 0 10px 20px -8px color-mix(in srgb, var(--acc) 55%, transparent); } /* v3.36.0 - palette-aware */

.mb-subscribe-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.mb-subscribe-note.is-good { color: var(--success); }
.mb-subscribe-note.is-bad { color: var(--live); }

/* ---- footer -------------------------------------------------------------- */

/* v3.8.1 — no subscribe card on this page, so the top padding stops being
   "the rest of the overlap" and becomes the footer's own separation from the
   page above it. 10-18px was correct only while a card hung over it; on Watch,
   Setup and Events it put the link columns straight against the content. */
.mb-footer--nosub .mb-footer-inner {
  padding-top: clamp(38px, 4vw, 62px);
  border-top: 1px solid var(--line);
  margin-top: clamp(28px, 4vw, 56px);
}

.mb-footer-inner {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) repeat(4, minmax(104px, 1fr));
  gap: 32px 24px;
  /* The top padding completes the subscribe overlap arithmetic: transform does
     not give back the space the card vacated, and without this the link columns
     sat closer to the card than to each other. */
  padding: clamp(10px, 1.5vw, 18px) var(--gutter) 44px;
}

.mb-footer-tagline { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--body); max-width: 42ch; }

.mb-footer-col-title {
  margin-bottom: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  /* --muted, not --faint: --faint is the disabled step, and headings that
     organise live links have not earned it. */
  color: var(--muted);
}

.mb-footer-col ul { display: grid; gap: 9px; }

.mb-footer-col a {
  font-size: 13.5px;
  color: var(--body);
  transition: color var(--dur) ease;
}

.mb-footer-col a:hover { color: var(--acc); }

/* The hairline lives on this full-bleed wrapper, NOT on the 1240px-capped legal
   shell — on the shell it stopped mid-air at wide viewports instead of ruling
   the whole footer like every other divider on the page. */
.mb-footer-rule { border-top: 1px solid var(--line2); }

.mb-footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px var(--gutter) 30px;
}

.mb-footer-copy { font-size: 11.5px; color: var(--muted); }

.mb-socials { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.mb-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-ctl);
  color: var(--muted);
  transition: background var(--dur) ease, color var(--dur) ease, transform var(--dur) ease;
}

.mb-social:hover { background: var(--soft); color: var(--acc); transform: translateY(-1px); }

/* ============================================================================
   RESPONSIVE

   Real media queries, not the prototype's JS-computed layout. The prototype
   collapses everything at a single 760px because it has no stylesheet; four
   independent spec sources say 900 for the nav and 1120 for the account label.
   ============================================================================ */

@media (max-width: 1120px) {
  /* The name goes; the avatar stays, so the chip becomes a square button. */
  .mb-acct-label { display: none; }
  .mb-acct-trigger { padding: 0 4px; }
}

@media (max-width: 1020px) {
  .mb-footer-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mb-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .mb-nav-links-wrap { display: none; }
  .mb-burger { display: inline-flex; }
  .mb-search-btn { display: none; }  /* search moves into the drawer */
  .mb-tools { gap: 6px; }
  .mb-nav-bar { gap: 12px; }
}

@media (max-width: 760px) {
  .mb-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mb-subscribe { padding: 22px 20px; }
  .mb-subscribe-form { grid-template-columns: 1fr; }
  /* -88px, not -28px: the popover is right-anchored to the account chip, and the
     burger (38px) + tools gap sit to its RIGHT below 900px, plus gutter and the
     capsule inset on the left. 288px survives on every viewport ≥ ~376px; only
     narrower phones get a trimmed card instead of a clipped one. */
  .mb-acct-menu { width: min(288px, calc(100vw - 88px)); }
}

@media (max-width: 620px) {
  .mb-logo-lock { display: none; }
  .mb-palette-dialog { max-height: calc(100vh - 84px); }
  .mb-palette { padding-top: 40px; }
}

@media (max-width: 520px) {
  .mb-footer-inner { grid-template-columns: 1fr; }
  .mb-footer-legal { padding-bottom: 26px; }
  .mb-socials { margin-left: 0; }
}

/* ----------------------------------------------------------------------------
   THEME PALETTE PICKER  (v3.36.0) - the account-menu Theme row.
   Tokens only; the chips preview each palette with a hardcoded light/dark
   swatch pair printed by PHP (they ARE colour data, not skin).
   -------------------------------------------------------------------------- */
.mb-acct-theme { padding: 10px 14px 12px; }
.mb-acct-theme .mb-acct-row-head { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; }
.mb-acct-theme .mb-acct-row-t { font-size: 13px; font-weight: 650; color: var(--ink); }
.mb-acct-theme .mb-acct-row-s { font-size: 11px; color: var(--muted); }

.mb-pal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.mb-pal-chip {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 7px 4px 5px; border: 1.5px solid var(--line2); border-radius: 11px;
  background: var(--card); cursor: pointer; font: inherit;
  transition: border-color var(--dur) ease, background var(--dur) ease;
}
.mb-pal-chip:hover { border-color: var(--line); background: var(--stage); }
.mb-pal-chip[aria-selected="true"], .mb-pal-chip.is-on { border-color: var(--acc); background: var(--accsoft); }
.mb-pal-chip:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }

.mb-pal-sw { width: 26px; height: 26px; border-radius: 9px; border: 1px solid var(--line2); }
.mb-pal-n { font-size: 9.5px; font-weight: 650; color: var(--muted); text-align: center; line-height: 1.15; }
.mb-pal-chip[aria-selected="true"] .mb-pal-n { color: var(--ink); }

.mb-pal-chip--custom { position: relative; }
.mb-pal-chip--custom input[type="color"] {
  width: 26px; height: 26px; padding: 0; border: 1px solid var(--line2);
  border-radius: 9px; background: transparent; cursor: pointer;
}
