.bbx-brand-mount { margin: 0 0 36px; }
.bbx-brand-launcher, .bbx-brand-dialog { --bbx-brand-green: #173d32; --bbx-brand-red: #8a2435; --bbx-brand-paper: #f5f3ea; --bbx-brand-ink: #183b32; font-family: inherit; box-sizing: border-box; }
.bbx-brand-launcher *, .bbx-brand-dialog * { box-sizing: border-box; }
.bbx-brand-launcher { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 38px); color: #fff; background: var(--bbx-brand-green); border-radius: 16px; border: 1px solid #31574b; box-shadow: 0 10px 30px #173d3214; }
.bbx-brand-launcher .bbx-brand-eyebrow { color: #e7d6ad; }
.bbx-brand-eyebrow { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.bbx-brand-launcher .bbx-brand-launcher-title { margin: 0; color: #fff; font: inherit; font-size: clamp(25px, 3vw, 33px); font-family: Georgia, serif; line-height: 1.2; }
.bbx-brand-launcher-detail { margin: 10px 0 0; color: #f3f0e7; font-size: 15px; line-height: 1.5; }
.bbx-brand-launcher .bbx-brand-launch { flex-shrink: 0; padding: 15px 22px; border: 1px solid #ead5a7; border-radius: 8px; background: #f5e6bd; color: #193c31; font: inherit; font-weight: 700; line-height: 1.3; cursor: pointer; transition: background .2s, transform .2s; }
.bbx-brand-launcher .bbx-brand-launch::after { content: ' ↗'; margin-left: 14px; }
.bbx-brand-launcher .bbx-brand-launch:hover { background: #fff5d8; transform: translateY(-2px); }
.bbx-brand-launcher button:focus-visible, .bbx-brand-dialog :focus-visible { outline: 3px solid #b44b55; outline-offset: 4px; }
.bbx-brand-dialog { width: min(1160px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; margin: auto; color: var(--bbx-brand-ink); background: #fffef9; border: 1px solid #dcded6; border-radius: 18px; box-shadow: 0 24px 100px #061b1870; overflow: auto; overscroll-behavior: contain; }
.bbx-brand-dialog::backdrop { background: #0a241dd9; backdrop-filter: blur(5px); }
.bbx-brand-dialog [hidden] { display: none !important; }
.bbx-brand-shell { padding: clamp(20px, 3vw, 34px); }
.bbx-brand-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.bbx-brand-dialog .bbx-brand-eyebrow { color: #65776e; }
.bbx-brand-dialog .bbx-brand-title { margin: 0 0 12px; color: var(--bbx-brand-green); font-family: Georgia, serif; font-size: clamp(25px, 3vw, 35px); font-weight: 400; line-height: 1.2; }
.bbx-brand-description { max-width: 720px; margin: 0; font-size: 15px; line-height: 1.6; color: #53685f; }
.bbx-brand-dialog .bbx-brand-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid #d9dfd7; border-radius: 50%; background: #fff; color: #183b32; font: 30px/1 Arial, sans-serif; cursor: pointer; }
.bbx-brand-dialog .bbx-brand-close:hover { color: var(--bbx-brand-red); border-color: var(--bbx-brand-red); }
.bbx-brand-toolbar { display: flex; align-items: flex-end; gap: 20px; margin: 25px 0 22px; }
.bbx-brand-search-label { display: block; flex: 1; max-width: 570px; }
.bbx-brand-field-label { display: block; margin-bottom: 7px; color: #53685f; font-size: 12px; font-weight: 600; line-height: 1.4; }
.bbx-brand-dialog .bbx-brand-search { display: block; width: 100%; height: 46px; margin: 0; padding: 10px 14px; color: #183b32; background: #fff; border: 1px solid #bfcac1; border-radius: 8px; font: inherit; font-size: 16px; box-shadow: none; }
.bbx-brand-dialog .bbx-brand-play { min-height: 44px; margin-left: auto; padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: #244d3d; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.bbx-brand-body { min-height: 210px; touch-action: pan-y; }
.bbx-brand-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; perspective: 1000px; }
.bbx-brand-card { min-width: 0; margin: 0; padding: 12px; text-align: center; border: 1px solid #e0e5de; border-radius: 9px; background: #fff; }
.bbx-brand-image-frame { display: flex; align-items: center; justify-content: center; height: 100px; padding: 7px; }
.bbx-brand-dialog .bbx-brand-image { display: block; max-width: 100%; width: 100%; height: 100%; object-fit: contain; border: none; box-shadow: none; }
.bbx-brand-name { margin: 8px 0 0; min-height: 2.5em; color: #52665c; font-size: 11px; line-height: 1.25; overflow-wrap: anywhere; }
.bbx-brand-image-note { font-size: 11px; line-height: 1.4; color: #64766b; }
.bbx-brand-footer { padding-top: 21px; margin-top: 21px; border-top: 1px solid #e0e5dc; }
.bbx-brand-status { margin: 0 0 14px; color: #56685f; text-align: center; font-size: 13px; line-height: 1.5; }
.bbx-brand-controls { display: flex; align-items: center; gap: 22px; }
.bbx-brand-dialog .bbx-brand-nav, .bbx-brand-dialog .bbx-brand-retry { min-height: 44px; padding: 11px 17px; color: #fff; border: 1px solid #173d32; border-radius: 7px; background: #173d32; font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; white-space: nowrap; }
.bbx-brand-dialog .bbx-brand-nav:hover:not(:disabled), .bbx-brand-dialog .bbx-brand-retry:hover:not(:disabled) { background: #285845; }
.bbx-brand-dialog button:disabled { opacity: .45; cursor: default; }
.bbx-brand-range-label { display: block; flex: 1; min-width: 60px; text-align: center; }
.bbx-brand-dialog .bbx-brand-range { display: block; width: 100%; height: 30px; margin: 0; accent-color: #8a2435; cursor: pointer; }
.bbx-brand-message, .bbx-brand-failure { margin: 0; padding: 60px 20px; text-align: center; color: #53685f; font-size: 16px; line-height: 1.6; }
.bbx-brand-failure p { margin: 0 0 20px; }
@media (prefers-reduced-motion: no-preference) {
  .bbx-brand-card-enter .bbx-brand-image-frame { animation: bbx-brand-wave .7s cubic-bezier(.35,0,.25,1) both; animation-delay: var(--bbx-brand-delay, 0ms); backface-visibility: hidden; transform-origin: center; }
  @keyframes bbx-brand-wave { from { transform: perspective(700px) rotateY(0deg); } to { transform: perspective(700px) rotateY(360deg); } }
}
@media (max-width: 900px) and (min-width: 641px) {
  .bbx-brand-grid { gap: 9px; }
  .bbx-brand-card { padding: 9px 6px; }
  .bbx-brand-image-frame { height: 80px; padding: 5px; }
}
@media (max-width: 640px) {
  .bbx-brand-launcher { align-items: flex-start; flex-direction: column; gap: 20px; }
  .bbx-brand-launcher .bbx-brand-launch { width: 100%; }
  .bbx-brand-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .bbx-brand-shell { padding: 20px 15px; }
  .bbx-brand-header { gap: 12px; }
  .bbx-brand-description { font-size: 13px; }
  .bbx-brand-toolbar { display: block; margin: 18px 0; }
  .bbx-brand-dialog .bbx-brand-play { display: block; margin: 5px 0 -8px auto; font-size: 12px; }
  .bbx-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bbx-brand-card { padding: 9px 6px; }
  .bbx-brand-image-frame { height: 76px; padding: 5px; }
  .bbx-brand-name { font-size: 10px; }
  .bbx-brand-controls { gap: 10px; }
  .bbx-brand-dialog .bbx-brand-nav { padding: 10px 11px; font-size: 12px; }
  .bbx-brand-footer { margin-top: 16px; padding-top: 16px; }
  .bbx-brand-range-label .bbx-brand-field-label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .bbx-brand-launcher *, .bbx-brand-dialog * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .bbx-brand-launcher .bbx-brand-launch:hover { transform: none; }
}

/* Keep paging and close controls visible on short screens. */
.bbx-brand-dialog { overflow: hidden; }
.bbx-brand-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 50px); }
.bbx-brand-header, .bbx-brand-toolbar, .bbx-brand-footer { flex-shrink: 0; }
.bbx-brand-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 3px; }
@media (max-width:640px) { .bbx-brand-shell { max-height: calc(100dvh - 18px); } }
@media (max-height:800px) and (min-width:641px) {
 .bbx-brand-shell { padding: 23px 28px; }
 .bbx-brand-title { font-size: 29px; }
 .bbx-brand-toolbar { margin: 17px 0; }
 .bbx-brand-footer { margin-top: 13px; padding-top: 13px; }
 .bbx-brand-image-frame { height: 80px; }
}
