/* Main-site quality retrofit. Retains the approved page palettes and glass tokens. */
@font-face {
  font-family: Geist; src: url("/assets/tidal-home-20261109/geist.woff2") format("woff2");
  font-style: normal; font-weight: 100 900; font-display: swap;
}
:root { scroll-padding-block: 20px 82px; }
body :where(a,button,summary,input,select,textarea,[tabindex="0"]):focus-visible {
  outline: 2px solid var(--focus, #a9432e); outline-offset: 3px;
}
body :where(button,input,select,textarea) { accent-color: var(--link, #2f695d); }
body ::selection { color: var(--ink, #253a35); background: var(--hover, #d3dfca); }
.bmsg-sr, .bmsg-skip:not(:focus) {
  position: absolute; inline-size: 1px; block-size: 1px; padding: 0;
  overflow: hidden; white-space: nowrap; clip-path: inset(50%);
}
.bmsg-skip:focus {
  position: fixed; z-index: 1000; inset: 12px auto auto 12px;
  background: var(--surface); color: var(--ink); padding: 12px 16px; border-radius: 9px;
}

/* Desktop and mobile use the same visible language link, not copies in a drawer. */
html body .masthead > .bmsg-language,
html body .masthead > .bmsg-appearance > .bmsg-language {
  display: inline-grid; place-items: center; flex: none; min-inline-size: 44px;
  min-block-size: 44px; padding: 0 7px; text-decoration: none; border-radius: 11px;
  color: var(--ink); font: 650 .81rem/1 Geist, "PingFang SC", "Microsoft YaHei", sans-serif;
}
html body .masthead > .brand > span { font-size: 11px; }
html body .masthead > .bmsg-language:hover { background: var(--hover); }
.masthead .menu-toggle[aria-expanded="true"] { background-color: var(--hover); }
@media (max-width:1100px) {
  html body .masthead > .brand { margin-inline-end: auto; }
  html body .masthead > .bmsg-language { order: 0; }
  html body .masthead #primary-nav > .search-open { grid-row: 3; grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  html body .masthead { gap: 4px; padding-inline: 12px; }
  html body .masthead .brand img { width: clamp(94px, 30vw, 143px); }
}
@media (max-width: 360px) {
  html body .masthead:is(.tidal-site-header,.bmsg-legacy-header,.masthead) { padding-inline: 10px; gap: 5px; }
  html body .masthead > .brand { flex: 0 1 auto; min-width: 0; max-inline-size: 108px; }
  html body .masthead > .brand > span { white-space: normal; }
}

/* Retrofit legacy pages without importing an opinionated content-page shell. */
body.bmsg-legacy { background: var(--surface); color: var(--ink); }
.bmsg-legacy-header {
  min-height: 92px; position: relative; z-index: 24; display: flex;
  align-items: center; gap: clamp(8px, 1vw, 15px); padding: 0 4.2%;
  background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line);
  font-family: Geist, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.bmsg-legacy-header a { text-decoration: none; color: inherit; }
.bmsg-legacy-header .brand {
  display: flex; align-items: flex-start; flex-direction: column; flex: none; gap: 5px;
  color: var(--muted); font-size: 10px; line-height: 1.2;
}
.bmsg-legacy-header .brand img { inline-size: clamp(130px, 13vw, 183px); block-size: auto; }
.bmsg-legacy-header #primary-nav {
  display: flex; flex: 1; min-width: 0; align-items: center; justify-content: center;
  margin: 0; gap: 3px; font-size: 13px; font-weight: 560;
}
.bmsg-legacy-header #primary-nav > a {
  display: flex; align-items: center; gap: 7px; min-height: 44px;
  padding: 0 8px; border-radius: 9px; white-space: nowrap;
}
.bmsg-legacy-header #primary-nav > a:is(:hover,[aria-current]) { background: var(--hover); }
.bmsg-legacy-header svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bmsg-legacy-header #primary-nav > a > svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.bmsg-legacy-header :is(.header-hub,button) { min-height: 44px; font: 650 12px/1.2 Geist, "PingFang SC", "Microsoft YaHei", sans-serif; }
.bmsg-legacy-header .header-hub { display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; white-space: nowrap; }
.bmsg-legacy-header :is(.bmsg-legacy-theme,.bmsg-legacy-palette,.bmsg-legacy-menu) {
  flex: 0 0 44px; width: 44px; height: 44px; padding: 0; display: grid;
  place-items: center; cursor: pointer; color: var(--ink); border-radius: 50%;
}
.bmsg-legacy-header .bmsg-legacy-palette { border: 0; background: transparent; }
.bmsg-legacy-header .palette-dot { display: block; width: 23px; height: 23px; border: 1px solid var(--muted); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--surface); }
.bmsg-legacy-header .bmsg-legacy-menu,
html:not([data-theme="dark"]) .bmsg-legacy-header .bmsg-legacy-theme svg + svg,
html[data-theme="dark"] .bmsg-legacy-header .bmsg-legacy-theme svg:first-child { display: none; }
body.bmsg-legacy .bmsg-legacy-header .bmsg-prompt-search {
  display: flex; align-items: center; gap: 5px; position: static; flex: 0 1 190px; 
  width: auto; min-width: 114px; margin: 0 0 0 4px; padding: 0 4px 0 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.bmsg-prompt-search > svg { flex: none; }
body.bmsg-legacy .bmsg-prompt-search input { min-height: 42px; min-width: 0; width: 100%; padding-inline: 2px; border: 0; background: transparent; color: var(--ink); font: inherit; }
body.bmsg-legacy .bmsg-prompt-search input::placeholder { color: var(--muted); }
body.bmsg-legacy .bmsg-prompt-search button { min-width: 38px; display: grid; place-items: center; color: var(--ink); border: 0; background: transparent; }
@media (max-width: 1100px) {
  .bmsg-legacy-header { min-height: 74px; padding-inline: 20px; gap: 8px; }
  .bmsg-legacy-header .brand img { inline-size: max(100px, min(143px, 32vw)); }
  .bmsg-legacy-header .header-hub { display: none; }
  .bmsg-legacy-header .bmsg-legacy-menu { display: grid; order: 3; }
  .bmsg-legacy-header .bmsg-legacy-theme { order: 1; }
  .bmsg-legacy-header .bmsg-legacy-palette { order: 2; }
  .bmsg-legacy-header #primary-nav {
    position: absolute; inset: 100% 0 auto; display: grid; grid-template-columns: 1fr 1fr;
    gap: 5px; padding: 12px 16px 16px; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgb(17 37 26 / .12);
  }
  .bmsg-legacy-header:not(.menu-open) #primary-nav { visibility: hidden; pointer-events: none; }
  .bmsg-legacy-header #primary-nav > a { min-height: 48px; padding-inline: 12px; }
  body.bmsg-legacy .bmsg-legacy-header .bmsg-prompt-search { grid-column: 1 / -1; margin: 4px 0 0; }
}
body.bmsg-legacy.ai-page {
  --bg: var(--surface); --aibg: var(--surface); --airow: var(--hover);
  --aitext: var(--ink); --aimuted: var(--muted); --aiborder: var(--line);
  --card: color-mix(in srgb, var(--surface) 84%, var(--hover));
  --primary: var(--link); --primary-soft: var(--hover); --shadow: none;
}
body.bmsg-legacy.ai-page main {
  color: var(--ink);
}
body.bmsg-legacy.ai-page .ai-tag { color: var(--ink); background: var(--hover); }
body.bmsg-legacy.ai-page .ai-view-button { color: var(--ink); border-color: var(--line); }
body.bmsg-legacy.ai-page .ai-view-button[aria-pressed="true"],
body.bmsg-legacy.ai-page .ai-button-stack a.button-primary,
body.bmsg-legacy.ai-page .ai-button-stack button.button-primary {
  background: var(--strip); color: #fffbed; border-color: var(--strip);
}
body.bmsg-legacy.ai-page .ai-button-stack .button-secondary { color: var(--link); border-color: var(--line); }
.bmsg-info main.bmsg-info-content {
  max-inline-size: 72ch; width: calc(100% - 40px); margin: 0 auto; padding: clamp(38px, 6vw, 85px) 0 90px;
  font: 400 1rem/1.68 Geist, "PingFang SC", "Microsoft YaHei", sans-serif; overflow-wrap: anywhere;
}
.bmsg-info .bmsg-info-content h1 { font-size: clamp(2.1rem, 5.7vw, 3.65rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
.bmsg-info .bmsg-info-content h2 { margin-block: 1.6em .55em; }
.bmsg-info .bmsg-info-content a { color: var(--link); text-underline-offset: .2em; }
.bmsg-info .bmsg-info-content a[href^="mailto:"] { font-weight: 680; }
.bmsg-info .bmsg-info-content nav { border-top: 1px solid var(--line); margin-block-start: 36px; padding-block-start: 18px; }
.bmsg-info .bmsg-info-content code { background: var(--hover); color: var(--ink); padding: .16em .35em; border-radius: 5px; }

/* Product facts and AI usage lead the DOM. The wide split keeps familiar art placement. */
@media (min-width: 761px) {
  .bmsg-credit-detail > .detail-art,
  .bmsg-account-detail > :nth-child(2),
  .bmsg-ai-detail > .ai-panel { grid-column: 1; grid-row: 1; }
  .bmsg-credit-detail > .card-overview,
  .bmsg-account-detail > :first-child,
  .bmsg-ai-detail > .ai-command-info { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) {
  html body .bmsg-credit-detail.compact-detail,
  html body .bmsg-account-detail.aw-detail-hero,
  html body .bmsg-ai-detail.ai-detail-grid {
    grid-template-columns: minmax(0,1fr); gap: 22px; align-items: start;
  }
  .bmsg-credit-detail > :is(.card-overview,.detail-art),
  .bmsg-account-detail > *,
  .bmsg-ai-detail > :is(.ai-command-info,.ai-panel) { grid-column: auto; grid-row: auto; order: initial; }
  .bmsg-credit-detail .card-overview h1,
  .bmsg-account-detail h1,
  .bmsg-ai-detail .ai-command-info h1 { text-wrap: balance; overflow-wrap: anywhere; margin-block-start: .3em; }
  .bmsg-credit-detail .card-overview > .eyebrow { font-size: .68rem; }
  .bmsg-credit-detail :is(.quick-facts,.sg-detail-quick,.sg-facts) { margin-block: 12px; }
  html .bmsg-credit-detail > .detail-art { min-block-size: 0; padding-block: 16px; }
  html .bmsg-credit-detail > .detail-art > img { max-inline-size: min(100%,330px); max-block-size: 250px; object-fit: contain; }
  .bmsg-ai-detail .ai-command-info { position: static; }
  .bmsg-ai-detail .ai-view-button { min-block-size: 44px; font-size: .77rem; padding-inline: 6px; }
  .bmsg-ai-detail .ai-view-controls { gap: 5px; }
}
.bmsg-bank-filters .bmsg-bank-heading {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-block-end: 8px;
}
.bmsg-bank-filters .bmsg-bank-heading h2 { margin: 0; }
.bmsg-bank-filters .bmsg-bank-reset { color: var(--link); min-height: 44px; background: transparent; border: 0; cursor: pointer; font-size: .8rem; font-weight: 650; }
.bmsg-bank-filters summary.bmsg-bank-heading { cursor: pointer; min-height: 44px; align-items: center; }
.bmsg-bank-filters summary.bmsg-bank-heading[hidden] { display: none; }
.bmsg-bank-filters .bmsg-bank-count { color: var(--muted); font-size: .8rem; }
.bmsg-bank-filters > details { grid-column: 1 / -1; width: 100%; }
.credit-directory-shell main .bank-tabs {
  margin-block-start: clamp(16px, 2.5vw, 28px);
}
.credit-directory-shell main .bank-tabs.bmsg-bank-switch {
  align-items: flex-start; padding-block: 0 14px; gap: 6px 14px;
}
.bank-tabs.bmsg-bank-switch .bmsg-bank-chooser { flex: 1 1 220px; min-width: 0; }
.bank-tabs.bmsg-bank-switch > .bmsg-bank-all,
.bank-tabs.bmsg-bank-switch .bmsg-bank-chooser > summary {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  max-width: 100%; padding: 8px 12px; border-radius: 10px;
  font-size: .87rem; font-weight: 600; color: var(--ink); white-space: normal;
}
.bank-tabs.bmsg-bank-switch > .bmsg-bank-all {
  padding-inline-start: 0; border-color: transparent; text-decoration: underline; text-underline-offset: .22em;
}
.bank-tabs.bmsg-bank-switch .bmsg-bank-chooser > summary {
  cursor: pointer; list-style: none; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--hover) var(--bmsg-glass-opacity, 42%), transparent);
}
.bmsg-bank-chooser > summary::-webkit-details-marker { display: none; }
.bmsg-bank-chooser > summary::after {
  content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); flex: none; margin-inline-start: 2px;
}
.bmsg-bank-chooser[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.bmsg-bank-chooser .bmsg-bank-current {
  color: var(--link); font-weight: 700; padding-inline-start: 7px; border-inline-start: 1px solid var(--line);
}
.bmsg-bank-chooser .bmsg-bank-choices {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr));
  gap: 4px 8px; margin-block-start: 8px; padding: 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.bank-tabs.bmsg-bank-switch .bmsg-bank-choices > a {
  min-width: 0; min-height: 44px; padding: 7px 9px; border: 0; border-radius: 7px;
  color: var(--ink); white-space: normal; overflow-wrap: anywhere;
  font-size: .85rem; font-weight: 550;
}
.bank-tabs.bmsg-bank-switch .bmsg-bank-choices > a[aria-current="page"] {
  background: var(--strip); color: var(--strip-muted); font-weight: 700;
}
.ai-hub-page #explore .resource-search { min-width: 0; }
.ai-hub-page #explore .resource-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.ai-hub-page #explore .resource-search input:focus-visible { outline: none; }
.sg-filters.bmsg-bank-filters .bmsg-bank-content { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.sg-filters.bmsg-bank-filters .bmsg-bank-content > label { flex: 1 1 190px; }
.bmsg-wallet-title { color: var(--ink); font-weight: 650; font-size: .9rem; margin-top: 12px; }
.bmsg-wallet-note { color: var(--muted); font-size: .83rem; margin-block: 4px 8px; }

/* Quiet utilities and primary actions remain deliberately different. */
main .bmsg-direct-link {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px;
  font-weight: 630; text-decoration: none; min-height: 44px; min-width: 0;
}
main .bmsg-direct-link > .bmsg-icon { flex: 0 0 14px; width: 14px; height: 14px; }
html main .bmsg-directory-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: initial; }
html main .bmsg-directory-actions > a {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
  background: color-mix(in srgb,var(--hover) var(--bmsg-glass-opacity),transparent);
  color: var(--ink); line-height: 1.25; font-size: .84rem;
}
html main .bmsg-directory-actions > a:first-child,
html main .bmsg-directory-actions > a:first-child:hover { background: var(--strip); color: #fffbed; border-color: var(--strip); }
html main .bmsg-directory-actions > a:not(:first-child):hover { background: var(--hover); }
html .aw-category-nav [aria-current="page"],
html .ai-view-button[aria-pressed="true"] {
  background: var(--strip); color: #fffbed; border-color: var(--strip); box-shadow: none;
}
html :is(.aw-card-arrow,.sg-arrow,.filter-chip,.bmsg-language) { min-inline-size: 44px; min-block-size: 44px; }
html button:is(:disabled,[aria-disabled="true"]) { cursor: not-allowed; opacity: .66; box-shadow: none; }

.bmsg-home-tasks { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-block: 12px 8px; }
html .hero-copy .bmsg-home-tasks a {
  justify-content: space-between; background: rgb(26 48 38 / .72); color: #fffbed;
  border: 1px solid rgb(255 251 237 / .34); padding: 6px 12px; border-radius: 999px;
  font-size: .84rem; line-height: 1.25; text-shadow: none;
}
html .hero-copy .bmsg-home-tasks a:hover { background: rgb(26 48 38 / .92); color: #fffbed; }
html .hero-copy a.explore[class] {
  padding: 2px 0; min-height: 44px; width: fit-content; background: none; border: 0;
  color: #fffbed; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  text-decoration: underline; text-underline-offset: .23em; text-shadow: 0 1px 5px #142622;
}
html .hero-copy a.explore[class]:hover { background: none; color: #fffbed; }
@media (max-width: 640px) {
  html body .hero .motion-controls { right: max(72px, env(safe-area-inset-right)); max-width: calc(100% - 84px); }
  .bmsg-home-tasks { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 5px; }
  .bmsg-home-tasks a:nth-child(3) { grid-column: 1 / -1; justify-self: start; }
  html .hero-copy .bmsg-home-tasks a { padding-inline: 9px; font-size: .8rem; }
  .bmsg-directory-actions .bmsg-direct-link { flex: 0 1 auto; }
}
.bmsg-table-hint { display: none; margin: 7px 0; color: var(--muted); font-size: .86rem; }
.bmsg-scroll-table { scrollbar-width: thin; scrollbar-color: var(--muted) var(--hover); max-width: 100%; }
@media (max-width: 620px) { .bmsg-table-hint:is(.bmsg-table-visible) { display: block; } }
.bmsg-scroll-table:focus-visible { outline-offset: 3px; }

.cross-border-hub .bmsg-hub-actions { gap: 6px; display: flex; flex-wrap: wrap; }
.cross-border-hub .bmsg-hub-actions a { padding: 9px 12px; line-height: 1.18; }
.cross-border-hub .crossing-activity[data-state="stale"] .crossing-activity-dot { background: #f3c77f; color: #f3c77f; }
.cross-border-hub .crossing-activity[data-state="unavailable"] .crossing-activity-dot { background: transparent; opacity: .76; }
.cross-border-hub .border-head .bmsg-status-retry {
  display: inline-flex; align-items: center; width: auto; border: 0; padding-inline: 0;
  background: none; color: var(--link); font-size: .82rem; min-height: 44px;
  text-decoration: underline; text-underline-offset: .22em; cursor: pointer;
}
.cross-border-hub .bmsg-status-retry[hidden] { display: none; }
@media (max-width: 680px) {
  html .cross-border-hub .travel-intro { padding: 18px 15px; }
  html .cross-border-hub .travel-hero-main { min-height: clamp(290px, 85vw, 365px); }
  .cross-border-hub .bmsg-hub-actions a { padding: 7px 10px; font-size: .8rem; }
  .cross-border-hub .bmsg-hub-actions .bmsg-hub-transport { display: none; }
  .cross-border-hub .crossing-activity { margin-block-start: 8px; }
}
/* Keep the chat usable without leaving a floating hit target over live controls. */
body.cross-border-hub #bmy-mira.bmsg-mira-docked {
  position: static; display: flex; justify-content: flex-end; margin-block: 14px 24px; z-index: 40;
}
body.cross-border-hub #bmy-mira.bmsg-mira-docked:not(.bmsg-mira-open) .mira-launch { position: static; }
body.cross-border-hub #bmy-mira.bmsg-mira-docked #mira-panel { position: fixed; bottom: max(18px,env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) {
  .bmsg-direct-link, .bmsg-legacy-header :is(a,button), .bmsg-language { transition: none; }
}
