/* Big Boy 2.0 — shared visual language for the web and the iPhone shell.
   This layer owns presentation only. Gesture geometry, keyboard insets,
   card aspect ratios and chat theme contrast remain owned by their modules. */
:root {
  --bb2-canvas: #000000;
  --bb2-panel: #1c1c1e;
  --bb2-raised: #2c2c2e;
  --bb2-hover: #3a3a3c;
  --bb2-line: #ffffff1f;
  --bb2-line-strong: #ffffff38;
  --bb2-ink: #ffffff;
  --bb2-secondary: #ebebf5b3;
  --bb2-muted: #a1a1aa;
  --bb2-gold: #ffffff;
  --bb2-gold-dark: #3a3a3c;
  --bb2-success: #30d158;
  --bb2-gold-soft: #ffffff;
  --bb2-gold-wash: #ffffff0f;
  --bb2-radius: 22px;
  --bb2-control-radius: 13px;
  --bb2-fast: 140ms;
  --bb2-settle: 240ms;
  --bb2-reveal: 360ms;
  --bb2-ease: cubic-bezier(.2,.75,.25,1);
  --bb2-shadow: 0 12px 36px #00000020;
  --bg: var(--bb2-canvas);
  --surface: var(--bb2-panel);
  --surface-2: var(--bb2-raised);
  --surface-3: var(--bb2-hover);
  --text: var(--bb2-ink);
  --muted: var(--bb2-muted);
  --accent: var(--bb2-gold);
  --accent-2: var(--bb2-gold-soft);
  --border: var(--bb2-line);
  --bb-bg: var(--bb2-canvas);
  --bb-surface: var(--bb2-panel);
  --bb-surface-soft: var(--bb2-raised);
  --bb-line: var(--bb2-line);
  --bb-line-strong: var(--bb2-line-strong);
  --bb-text: var(--bb2-ink);
  --bb-text-secondary: var(--bb2-secondary);
  --bb-text-tertiary: var(--bb2-muted);
  --bb-gold: var(--bb2-gold);
  --bb-gold-light: var(--bb2-gold-soft);
  --bb-ease: var(--bb2-ease);
  --club-paper: var(--bb2-canvas);
  --club-panel: var(--bb2-panel);
  --club-line: var(--bb2-line);
  --club-muted: var(--bb2-muted);
  --club-gold: var(--bb2-gold);
}
body.light {
  --bb2-canvas: #f2f2f7;
  --bb2-panel: #ffffff;
  --bb2-raised: #ffffff;
  --bb2-hover: #e5e5ea;
  --bb2-line: #3c3c431f;
  --bb2-line-strong: #3c3c4338;
  --bb2-ink: #000000;
  --bb2-secondary: #3c3c43cc;
  --bb2-muted: #6e6e73;
  --bb2-gold: #000000;
  --bb2-gold-soft: #000000;
  --bb2-gold-wash: #0000000a;
  --bb2-shadow: 0 12px 32px #17212a08;
  --bg: var(--bb2-canvas);
  --surface: var(--bb2-panel);
  --surface-2: var(--bb2-raised);
  --surface-3: var(--bb2-hover);
  --text: var(--bb2-ink);
  --muted: var(--bb2-muted);
  --border: var(--bb2-line);
}
body { background: var(--bb2-canvas); color: var(--bb2-ink); }
.login-screen { background: var(--bb2-canvas); }
.login-shell { border-color: var(--bb2-line-strong); border-radius: 28px; background: var(--bb2-panel); box-shadow: 0 28px 90px #00000035; backdrop-filter: none; }
.login-shell::before,.login-brand-panel::after,.login-background { display: none; }
.login-brand-panel { background: var(--bb2-raised); border-color: var(--bb2-line); }
.login-brand-copy h2 { font-family: var(--ds-font); font-weight: 650; font-size: clamp(32px,4vw,48px); line-height: 1.08; letter-spacing: -.05em; }
.login-brand-copy h2 em { font-style: normal; color: var(--bb2-gold); }
.login-brand-copy p,.login-subtitle { color: var(--bb2-muted); line-height: 1.65; }
.login-form h1 { font-family: var(--ds-font); font-weight: 650; letter-spacing: -.04em; }
.login-form input { border-radius: 13px; background: var(--bb2-raised); border-color: var(--bb2-line-strong); }
.login-form input:focus { border-color: var(--interaction-strong); box-shadow: 0 0 0 3px var(--interaction-wash); }
.login-submit { background: var(--ds-text); color: #17140c; border: 1px solid #eddaa35c; border-radius: 13px; box-shadow: none; font-weight: 650; }
body.authenticated { font-feature-settings: "ss01" 1, "cv11" 1; }
body.authenticated :is(h1,h2,h3) { text-wrap: balance; }
body.authenticated :is(.section-intro h2,.club-welcome h2,.club-calendar-heading h2,.packs-heading h2,.shop-intro h2) {
  font-family: var(--ds-font);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.12;
}
body.authenticated :is(.eyebrow,.shop-kicker) {
  color: var(--bb2-gold);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .13em;
  line-height: 1.5;
}
body.authenticated :is(.panel-heading h3,.club-news-heading h3,.shop-section-heading h3) {
  font-family: var(--ds-font);
  font-weight: 600;
  letter-spacing: -.035em;
}
body.authenticated .noise { opacity: .008; }
body.authenticated :is(.aurora,.gold-grid,.cursor-glow) { display: none; }

/* Chrome and controls: one optical weight, consistent feedback. */
body.authenticated .topbar {
  border-bottom-color: var(--bb2-line);
  background: var(--bb2-canvas);
  box-shadow: none;
}
body.authenticated .topbar-title h1 { font-weight: 650; letter-spacing: -.035em; }
body.authenticated .topbar-title .eyebrow { font-size: 8px; color: var(--bb2-muted); letter-spacing: .16em; }
body.authenticated .top-actions { gap: 10px; }
body.authenticated .top-actions > .icon-button,
body.authenticated .top-actions .notification-button {
  border: 1px solid var(--bb2-line);
  border-radius: var(--bb2-control-radius);
  background: var(--bb2-panel);
  color: var(--bb2-secondary);
  box-shadow: none;
}
body.authenticated :is(.primary-button,.login-submit) {
  border: 1px solid #eddaa35c;
  border-radius: var(--bb2-control-radius);
  background: var(--ds-text);
  color: #17140c;
  box-shadow: inset 0 1px #ffffff26;
  font-weight: 650;
}
body.authenticated :is(.secondary-button,.packs-sync,.edit-profile-button) {
  border: 1px solid var(--bb2-line-strong);
  border-radius: var(--bb2-control-radius);
  background: var(--bb2-raised);
  color: var(--bb2-ink);
  box-shadow: none;
  font-weight: 550;
}
body.authenticated :is(button,a[role="button"],summary) {
  -webkit-tap-highlight-color: transparent;
}
body.authenticated :is(.primary-button,.secondary-button,.text-button,.icon-button,.packs-sync,.shop-text-button,.edit-profile-button) {
  transition: color var(--bb2-fast) ease, background-color var(--bb2-fast) ease,
    border-color var(--bb2-fast) ease, transform var(--bb2-fast) var(--bb2-ease);
}
body.authenticated :is(.primary-button,.secondary-button,.icon-button,.packs-sync):active:not(:disabled) {
  transform: scale(.97);
}
/* Type exclusions must not outweigh component styles: compound fields paint
   their surface on the wrapper, with a transparent input above it. */
body.authenticated :is(input:where(:not([type="range"]):not([type="checkbox"]):not([type="radio"])),textarea,select) {
  border-color: var(--bb2-line-strong);
  border-radius: var(--bb2-control-radius);
  color: var(--bb2-ink);
  background-color: var(--bb2-raised);
  caret-color: var(--interaction-strong);
}
body.authenticated :is(input,textarea,select)::placeholder { color: var(--bb2-muted); opacity: 1; }
body.authenticated :is(input,textarea,select):focus {
  border-color: var(--interaction-strong);
  box-shadow: 0 0 0 3px var(--interaction-wash);
}
body.authenticated :is(.search-hub-box input,.inbox-search input,.message-form input,.trade-search input,.achievement-search input,.group-poll-edit-option input,.request-username input) {
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.authenticated .floating-tab-bar {
  border-color: var(--bb2-line-strong);
  background: var(--bb2-panel);
  box-shadow: 0 8px 32px #00000030;
}
body.authenticated .tab-selection-indicator {
  border-color: transparent;
  background: var(--bb2-hover);
  box-shadow: inset 0 1px var(--bb2-line);
  transition-timing-function: var(--bb2-ease);
}
body.authenticated .tab-selection-indicator::after { background: var(--bb2-gold); box-shadow: none; }
body.authenticated .app-tab { color: var(--bb2-muted); }
body.authenticated .app-tab.active { color: var(--bb2-ink); }

/* Home: clear editorial hierarchy and breathing room around live content. */
body.authenticated .club-search .search-hub-box {
  border-color: var(--bb2-line);
  border-radius: 16px;
  background: var(--bb2-panel);
}
.club-welcome { margin-bottom: 24px; }
.club-welcome .status-pill { color: var(--bb2-secondary); border-color: var(--bb2-line); background: var(--bb2-panel); }
body.authenticated #noticias,
body.authenticated .club-dashboard > .panel {
  border: 1px solid var(--bb2-line);
  border-radius: var(--bb2-radius);
  background: var(--bb2-panel);
  box-shadow: var(--bb2-shadow);
}
.club-news-heading { padding: 20px 22px; }
.club-news-heading p { color: var(--bb2-muted); line-height: 1.5; }
.club-news-heading .news-collapse-button { border: 1px solid var(--bb2-line); border-radius: 11px; color: var(--bb2-secondary); }
.club-home .panel-heading h3 { font-size: 20px; }
.club-dashboard { gap: 22px; }
.club-event { border-color: var(--bb2-line); color: var(--bb2-ink); }
.club-calendar-link { color: var(--bb2-gold); font-weight: 550; }
.home-members-section { margin-top: 36px; }
.home-members-section > .panel-heading { margin-bottom: 18px; }
.club-member {
  border-color: var(--bb2-line);
  border-radius: 19px;
  background: var(--bb2-panel);
  color: var(--bb2-ink);
  box-shadow: var(--bb2-shadow);
  transition: border-color var(--bb2-settle) ease, background-color var(--bb2-settle) ease;
}
.club-member .club-member-hero .avatar { border-color: var(--bb2-panel); outline-color: var(--bb2-line-strong); box-shadow: 0 3px 10px #00000025; }
.club-member-identity { padding: 10px 16px 18px; }
.club-member strong { font-weight: 600; letter-spacing: -.025em; }
.club-member small { margin-top: 5px; color: var(--bb2-muted); }

/* The music player's look is owned by spotify-player.css. */

/* Inbox and conversation: presentation never changes the swipe geometry. */
body.authenticated .chat-inbox { background: var(--bb2-canvas); }
.inbox-search { border-color: var(--bb2-line); border-radius: 15px; background: var(--bb2-panel); }
.inbox-filters button { color: var(--bb2-muted); font-weight: 550; letter-spacing: -.015em; }
.inbox-filters button[aria-pressed="true"] { color: var(--interaction-strong); }
body.authenticated .chat-inbox .private-contact-copy strong { color: var(--bb2-ink); font-weight: 600; }
body.authenticated .chat-inbox .private-contact-copy small,
body.authenticated .chat-inbox .private-contact-copy time { color: var(--bb2-muted); }
body.authenticated .chat-inbox .private-contact::after { background: var(--bb2-line); }
body.authenticated .private-contact > .inbox-unread-count { background: var(--ds-text); color: #1a160e; font-variant-numeric: tabular-nums; }
body.authenticated .chat-header { border-bottom-color: var(--bb2-line); }
body.authenticated .message-form { box-shadow: 0 3px 14px #00000012; }
.message-attachment-menu,
.inbox-context-menu { border-color: var(--bb2-line-strong); border-radius: 17px; box-shadow: 0 14px 42px #00000038; }

/* Collection chrome; never crop or resize the card artwork. */
.packs-heading { gap: 12px; }
.packs-heading h2 { font-size: clamp(25px,3.8vw,38px); }
body.authenticated :is(.collection-catalog-trigger,.card-album-trigger,.duplicate-cards-trigger) {
  border-color: var(--bb2-line-strong);
  border-radius: 13px;
  background: var(--bb2-panel);
  color: var(--bb2-gold);
  box-shadow: none;
}
.collection-catalog-note { color: var(--bb2-muted); font-size: 12px; line-height: 1.6; }
.collection-card-grid { gap: 22px; }
.collection-card-dialog,
#duplicatesDialog { border-color: var(--bb2-line-strong); background: var(--bb2-canvas); }
.owned-card { border-color: var(--bb2-line); border-radius: 17px; background: var(--bb2-panel); }
.owned-card h4 { color: var(--bb2-ink); font-weight: 600; }
.owned-card p,.owned-card small { color: var(--bb2-secondary); }
.card-album-heading h2,.card-album-header h2 { font-family: var(--ds-font); font-weight: 650; letter-spacing: -.04em; }

/* Calendar and profile share the same quieter card treatment. */
#calendario .calendar-month-panel,
#calendario .calendar-agenda-panel { background: var(--bb2-panel); border-color: var(--bb2-line); border-radius: var(--bb2-radius); box-shadow: var(--bb2-shadow); }
#calendario .calendar-navigation .icon-button { border-color: var(--bb2-line); background: var(--bb2-raised); color: var(--bb2-secondary); }
#calendario .calendar-navigation h3 { font-weight: 600; letter-spacing: -.025em; }
#calendario .calendar-day > .calendar-day-number { position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
/* The date badge owns its fill; the old cell pseudo-circle obscured the number. */
#calendario .calendar-day.today::before { content: none; }
#calendario .calendar-day.selected { background: var(--interaction-wash); border-color: var(--interaction-strong); box-shadow: none; }
#calendario .calendar-day.today { box-shadow: inset 0 0 0 1px var(--bb2-line-strong); }
#calendario .calendar-day.today > .calendar-day-number { color: #17140c; background: var(--bb2-gold); border-radius: 50%; }
.club-profile-identity h2 { font-weight: 650; letter-spacing: -.045em; }
.club-profile-bio { color: var(--bb2-secondary); line-height: 1.65; }
.club-profile-handle { color: var(--bb2-muted); }
.club-profile-bottom { border-top-color: var(--bb2-line); }
.club-profile .profile-tags span { border-color: var(--bb2-line); background: var(--bb2-panel); color: var(--bb2-secondary); }
.club-profile .profile-actions button { border-radius: 12px; font-weight: 550; }
#perfil .profile-achievements { border-color: var(--bb2-line); box-shadow: none; }

/* Shop, account tools and sheets: consistent typography and borders. */
.banner-shop-dialog,
.profile-editor-modal,
.achievement-assignment-modal { color: var(--bb2-ink); border-color: var(--bb2-line-strong); background: var(--bb2-canvas); }
#bannerShopDialog { --shop-gold: var(--bb2-gold); --shop-muted: var(--bb2-muted); --shop-line: var(--bb2-line); background: var(--bb2-canvas); border-color: var(--bb2-line-strong); color: var(--bb2-ink); }
#bannerShopDialog .shop-topbar { background: var(--bb2-canvas); backdrop-filter: none; }
#bannerShopDialog .shop-wallet { background: var(--bb2-panel); border-color: var(--bb2-line); }
#bannerShopDialog .shop-navigation { background: var(--bb2-panel); }
#bannerShopDialog .shop-navigation button[aria-selected="true"] { background: var(--bb2-hover); color: var(--bb2-ink); box-shadow: none; }
#bannerShopDialog .banner-shop-item { background: var(--bb2-panel); border-color: var(--bb2-line); box-shadow: var(--bb2-shadow); }
#bannerShopDialog .banner-shop-item h3 { color: var(--bb2-ink); font-weight: 600; }
#bannerShopDialog #bannerShopTitle { font-family: var(--ds-font); font-weight: 650; letter-spacing: -.045em; }
.shop-topbar,.shop-navigation,.shop-section-heading { border-color: var(--bb2-line); }
.shop-intro p,.shop-section-heading p { color: var(--bb2-muted); line-height: 1.6; }
.shop-wallet { background: var(--bb2-panel); border-color: var(--bb2-line); border-radius: 16px; }
.shop-navigation button { border-radius: 12px; font-weight: 550; }
.shop-navigation button[aria-selected="true"] { background: var(--bb2-raised); color: var(--bb2-ink); }
.banner-shop-item { border-color: var(--bb2-line); border-radius: 20px; background: var(--bb2-panel); }
.banner-shop-item h3 { font-family: var(--ds-font); font-weight: 600; letter-spacing: -.025em; }
.admin-settings-entry { border-color: var(--bb2-line); background: var(--bb2-panel); border-radius: 18px; box-shadow: none; }
.admin-settings-entry strong { font-weight: 600; letter-spacing: -.025em; }
.admin-settings-entry small { color: var(--bb2-muted); line-height: 1.55; }
.admin-settings-symbol { color: var(--bb2-gold); background: var(--bb2-gold-wash); border-radius: 14px; }
.admin-settings-chevron { display: none; }
.admin-summary > * { border-color: var(--bb2-line); background: var(--bb2-panel); border-radius: 18px; box-shadow: none; }
.achievement-page-header h2 { font-family: var(--ds-font); font-weight: 650; letter-spacing: -.04em; }
.modal-heading h2 { font-family: var(--ds-font); font-weight: 650; letter-spacing: -.035em; }
.notifications-dropdown { border-color: var(--bb2-line-strong); background: var(--bb2-panel); box-shadow: 0 18px 56px #00000040; }

/* Motion is bounded and interruptible. No transforms on scrolling pages,
   no perpetual ambient effects, and no change to gesture-owned surfaces. */
.modal-backdrop.open > :is(.modal,.profile-editor-modal,.achievement-assignment-modal) {
  animation: bb2-sheet-arrive var(--bb2-settle) var(--bb2-ease) both;
}
@keyframes bb2-sheet-arrive { from { opacity: .45; } to { opacity: 1; } }
@media (hover:hover) and (pointer:fine) {
  .club-member:hover { border-color: var(--bb2-line-strong); background: var(--bb2-raised); }
  body.authenticated :is(.secondary-button,.icon-button,.packs-sync):hover:not(:disabled) { background-color: var(--bb2-hover); border-color: var(--bb2-line-strong); }
  .admin-settings-entry:hover { border-color: var(--bb2-line-strong); background: var(--bb2-raised); }
}
@media (min-width: 1100px) {
  body.authenticated .topbar { margin-bottom: 34px; padding-bottom: 22px; }
  .club-home,.club-calendar-page,#profileContent { width: min(100%,1120px); }
  .club-search { max-width: 560px; margin-bottom: 32px; }
  .club-welcome h2 { font-size: 42px; }
  .club-dashboard { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 24px; }
  body.authenticated .club-dashboard > .panel { padding: 28px; }
  .home-members-section { margin-top: 40px; }
}
@media (max-width:760px) {
  body.authenticated .top-actions { gap: 8px; }
  body.authenticated .top-actions > .icon-button,
  body.authenticated .top-actions .notification-button { border-radius: 12px; }
  .club-search { margin-bottom: 24px; }
  .club-welcome { margin-bottom: 22px; }
  .club-welcome h2 { font-size: 30px; }
  .club-news-heading { padding: 17px 18px; }
  .club-dashboard { gap: 18px; }
  body.authenticated .club-dashboard > .panel { padding: 20px; border-radius: 20px; }
  .home-members-section { margin-top: 30px; }
  .club-member { border-radius: 17px; }
  .club-member-identity { padding: 9px 14px 16px; }
  .packs-heading { gap: 8px; }
  .packs-heading h2 { font-size: clamp(22px,5.5vw,30px); }
  .collection-card-grid { gap: 14px; }
  #calendario .calendar-month-panel,#calendario .calendar-agenda-panel { border-radius: 19px; }
  body.authenticated :is(input:not([type="range"]),textarea,select) { font-size: max(16px,1em); }
}
@media (prefers-reduced-motion:reduce) {
  .modal-backdrop.open > :is(.modal,.profile-editor-modal,.achievement-assignment-modal) { animation: none; }
  body.authenticated :is(.club-member,.primary-button,.secondary-button,.icon-button,.packs-sync,.tab-selection-indicator,.admin-settings-entry) { transition: none; }
}
html[data-reduced-motion="true"] .modal-backdrop.open > :is(.modal,.profile-editor-modal,.achievement-assignment-modal) { animation: none; }



/* Screen composition, matching the editable Big Boy 2.0 frames.
   Keep the scroll owners and live gesture surfaces in their module styles. */
body.authenticated #inicio .club-welcome {
  flex-direction: row;
  align-items: flex-end;
  margin: 4px 0 22px;
  gap: 14px;
}
body.authenticated #inicio .club-welcome h2 {
  margin-top: 7px;
  font-size: clamp(34px,4vw,46px);
  line-height: 1.06;
  letter-spacing: -.055em;
}
body.authenticated #inicio .club-welcome .status-pill {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid var(--bb2-line);
  border-radius: 99px;
  background: var(--bb2-panel);
}
body.authenticated #inicio .club-search { margin-bottom: 22px; }
body.authenticated #inicio .club-search .search-hub-box {
  min-height: 52px;
  border-radius: 15px;
  background: var(--bb2-raised);
}
/* Search uses a neutral focus treatment; touch must not inherit the gold form halo. */
body.authenticated #inicio .club-search .search-hub-box:focus-within {
  border-color: var(--bb2-line-strong);
  box-shadow: none;
}
body.authenticated #inicio .club-search input { caret-color: var(--bb2-ink); }
body.authenticated #inicio .club-search input:focus,
body.authenticated #inicio .club-search input:focus-visible {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}
body.authenticated #inicio .club-search input::selection {
  color: var(--bb2-ink);
  background: #47668f;
}
body.authenticated #inicio .club-search .search-result:focus {
  outline: none;
  box-shadow: none;
}
:root[data-input-modality="keyboard"] body.authenticated #inicio .club-search .search-hub-box:has(input:focus-visible),
:root[data-input-modality="keyboard"] body.authenticated #inicio .club-search .search-result:focus-visible {
  outline: 2px solid var(--bb2-secondary);
  outline-offset: 3px;
}
body.authenticated #inicio #noticias {
  border-color: var(--bb2-line-strong);
  border-radius: 20px;
  background: var(--bb2-panel);
}
body.authenticated #inicio .club-news-heading { padding: 18px 20px; }
body.authenticated #inicio .club-news-heading h3 { font-size: 21px; letter-spacing: -.035em; }
body.authenticated #inicio .club-news-heading .news-collapse-button {
  padding: 0 13px;
  border-radius: 99px;
  background: var(--bb2-gold-wash);
  color: var(--bb2-gold);
}
body.authenticated #inicio .club-dashboard { gap: 16px; }
body.authenticated #inicio .club-dashboard > .panel {
  border-color: var(--bb2-line);
  border-radius: 22px;
  padding: 20px;
}
body.authenticated #inicio .club-dashboard > .spotify-panel {
  background: var(--bb2-panel);
  border-color: #6cbb8c25;
}
body.authenticated #inicio .club-dashboard .panel-heading h3 { font-size: 22px; }
body.authenticated #inicio .home-members-section { margin-top: 32px; }
body.authenticated #inicio .home-members-section > .panel-heading h3 { font-size: 28px; letter-spacing: -.045em; }
body.authenticated #inicio .members-grid { gap: 20px; }
body.authenticated #inicio .club-member {
  border: 1px solid var(--bb2-line-strong);
  border-radius: 22px;
  background: var(--bb2-panel);
}
body.authenticated #inicio .club-member-hero {
  height: auto;
  aspect-ratio: 3 / 1;
  margin-bottom: 29px;
}
body.authenticated #inicio .club-member .club-member-hero .avatar {
  width: 68px; height: 68px;
  min-width: 68px; max-width: 68px;
  min-height: 68px; max-height: 68px;
  left: 18px; bottom: -24px;
  border-width: 4px;
}
body.authenticated #inicio .club-member-identity { padding: 8px 19px 21px; }
body.authenticated #inicio .club-member strong { font-size: 19px; line-height: 1.3; }
body.authenticated #inicio .club-member small { font-size: 13px; margin-top: 5px; }
body.authenticated #sobres .packs-display {
  border-color: var(--bb2-line-strong);
  border-radius: 28px;
  background: var(--bb2-panel);
}
body.authenticated #sobres .packs-display-edition {
  padding: 8px 12px;
  border: 1px solid var(--bb2-line);
  border-radius: 99px;
  color: var(--bb2-gold);
  background: var(--bb2-canvas);
  font-size: 9px;
  letter-spacing: .13em;
}
body.authenticated #sobres .packs-information { display: grid; gap: 18px; }
body.authenticated #catalogo .collection-card-tile {
  padding: 10px 10px 15px;
  border: 1px solid var(--bb2-line);
  border-radius: 19px;
  background: var(--bb2-panel);
}
body.authenticated #catalogo .collection-card-tile > img { border-radius: 11px; }
body.authenticated #catalogo .collection-card-meta { margin-top: 12px; font-size: 9px; }
body.authenticated #catalogo .collection-card-tile > strong { font-size: 13px; line-height: 1.4; }
.bb2-inbox-heading { margin: 0 0 22px; }
.bb2-inbox-heading .eyebrow { display: block; }
.bb2-inbox-heading h2 {
  margin: 6px 0 0;
  color: var(--bb2-ink);
  font: 650 36px/1.08 Inter,sans-serif;
  letter-spacing: -.05em;
}
body.authenticated .chat-inbox .inbox-tools { padding: 22px 22px 14px; }
body.authenticated .chat-inbox .inbox-search { background: var(--bb2-raised); border-radius: 15px; }
body.authenticated .chat-inbox .inbox-filters { gap: 8px; margin-top: 16px; padding-bottom: 2px; }
body.authenticated .chat-inbox .inbox-filters button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--bb2-line);
  border-radius: 99px;
  color: var(--bb2-secondary);
  background: var(--bb2-panel);
}
body.authenticated .chat-inbox .inbox-filters button:last-child { margin-left: 0; }
body.authenticated .chat-inbox .inbox-filters [aria-pressed="true"] {
  border-color: var(--interaction-strong);
  color: var(--interaction-strong);
  background: var(--interaction-wash);
}
body.authenticated .chat-inbox .inbox-filters [aria-pressed="true"]::after { content: none; }
body.authenticated .chat-inbox .private-contact { min-height: 94px; gap: 16px; }
body.authenticated .chat-inbox .private-contact-copy strong { font-size: 16px; letter-spacing: -.02em; }
body.authenticated .chat-inbox .private-contact-copy small { font-size: 13px; line-height: 1.5; }
body.authenticated .floating-tab-bar { border-radius: 26px; }
body.authenticated .tab-selection-indicator { background: var(--bb2-gold-wash); border: 1px solid #ffffff26; border-radius: 19px; }
body.authenticated .app-tab.active { color: var(--interaction-strong); }
@media (max-width: 760px) {
  body.authenticated #inicio .club-dashboard { grid-template-columns: minmax(0,1fr); }
  body.authenticated #inicio .club-welcome h2 { font-size: 36px; }
  body.authenticated #inicio .club-welcome .status-pill { font-size: 10px; }
  body.authenticated #inicio .members-grid { grid-template-columns: minmax(0,1fr); }
  body.authenticated #inicio .club-member-hero { aspect-ratio: 3 / 1; }
  body.authenticated #sobres .packs-heading { flex-wrap: wrap; row-gap: 15px; margin-bottom: 24px; }
  body.authenticated #sobres .packs-heading > div { flex: 1; min-width: 130px; }
  body.authenticated #sobres .packs-heading h2 { font-size: 29px; }
  body.authenticated #sobres .packs-display { padding: 20px 16px 62px; }
  body.authenticated #sobres .packs-art-button { width: min(72%,255px); margin-block: 18px 5px; }
  body.authenticated #catalogo .collection-card-grid { gap: 12px; }
}
@media (max-width: 359px) {
  body.authenticated #inicio .club-welcome { align-items: flex-start; flex-direction: column; }
  body.authenticated #sobres .packs-heading > div { min-width: 150px; }
}


/* Composition v4: apply the Figma frame hierarchy to live, dynamic content.
   Scroll owners, native safe areas and gesture transforms stay untouched. */
body.authenticated #inicio:is(.active, .page-back-preview) {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,.75fr);
  grid-template-areas: "welcome welcome" "search search" "plans music" "day day" "members members" "news news";
  grid-template-rows: repeat(6,max-content);
  align-content: start;
  gap: 26px;
}
/* The edge-back destination uses the same grid and ordering before it becomes active. */
body.authenticated #inicio.page-back-preview { display: grid !important; }
body.authenticated #inicio > .club-welcome { grid-area: welcome; margin: 6px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--bb2-line-strong); }
body.authenticated #inicio .club-welcome h2 { font-size: clamp(38px,5vw,54px); font-weight: 700; }
body.authenticated #inicio > .club-search { grid-area: search; margin: 0; }
body.authenticated #inicio .club-dashboard > .clubhouse { grid-area: plans; }
body.authenticated #inicio > .club-day-entry { grid-area: day; margin: 0; }
body.authenticated #inicio > .club-dashboard { display: contents; }
body.authenticated #inicio .club-dashboard > .club-plans { grid-area: plans; padding: 22px; background: var(--bb2-raised); border: 1px solid var(--bb2-line-strong); border-radius: 22px; }
body.authenticated #inicio .club-dashboard > .spotify-panel { grid-area: music; padding: 22px; background: var(--bb2-panel); border-radius: 22px; }
body.authenticated #inicio .club-plans .panel-heading { margin-bottom: 14px; }
body.authenticated #inicio .club-plans .panel-heading h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--bb2-gold); }
body.authenticated #inicio .club-event-with-tigreton { border: 0; border-radius: 0; background: transparent; padding: 0; }
body.authenticated #inicio .club-event-open { gap: 14px; }
body.authenticated #inicio .club-event-open > time { background: var(--bb2-canvas); border: 1px solid var(--bb2-line-strong); border-radius: 12px; }
body.authenticated #inicio .club-event-details > strong { font-size: clamp(18px,2vw,23px); line-height: 1.22; letter-spacing: -.035em; }
body.authenticated #inicio .club-event-countdown { display: inline-flex; color: var(--bb2-gold); background: var(--bb2-gold-wash); border: 1px solid var(--bb2-gold-dark); border-radius: 7px; padding: 5px 8px; margin-top: 8px; }
body.authenticated #inicio .club-calendar-link { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--bb2-line-strong); width: 100%; text-align: left; }
body.authenticated #inicio > .home-members-section { grid-area: members; margin: 0; min-width: 0; }
body.authenticated #inicio .home-members-section > .panel-heading { margin-bottom: 14px; }
body.authenticated #inicio .home-members-section > .panel-heading .eyebrow { display: none; }
body.authenticated #inicio .home-members-section > .panel-heading h3 { font-size: 24px; }
body.authenticated #inicio .members-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(280px,calc((100% - 36px)/3)); gap: 18px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0 0 14px; scrollbar-width: thin; scrollbar-color: var(--bb2-gold-dark) transparent; }
body.authenticated #inicio .club-member { scroll-snap-align: start; border: 1px solid var(--bb2-line-strong); border-radius: 18px; }
body.authenticated #inicio .club-member-hero { aspect-ratio: 3 / 1; margin-bottom: 23px; }
body.authenticated #inicio .club-member .club-member-hero .avatar { width: 54px; height: 54px; min-width: 54px; max-width: 54px; min-height: 54px; max-height: 54px; left: 16px; bottom: -19px; }
body.authenticated #inicio .club-member-identity { padding: 7px 16px 17px; }
body.authenticated #inicio .club-member strong { font-size: 17px; }
body.authenticated #inicio > #noticias { grid-area: news; margin: 0; border-radius: 18px; background: var(--bb2-panel); }
body.authenticated #inicio .club-news-heading { padding: 18px 20px; }
body.authenticated #inicio .club-news-heading h3 { font-size: 19px; }

/* The pack is a horizontal feature; the album has its own primary entry. */
body.authenticated #sobres .packs-layout { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 22px; }
body.authenticated #sobres .packs-display { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); align-items: center; min-height: 340px; padding: 30px 28px 66px; border-color: var(--bb2-gold-dark); border-radius: 24px; background: var(--bb2-raised); }
.bb2-pack-copy { min-width: 0; align-self: start; padding-top: 14px; }
body.authenticated #sobres .packs-display-edition { display: block; padding: 0; border: 0; background: transparent; border-radius: 0; text-align: left; font-size: 9px; letter-spacing: .1em; line-height: 1.6; }
.bb2-pack-copy h3 { margin: 15px 0 22px; font: 700 clamp(25px,3vw,38px)/1.08 Inter,sans-serif; letter-spacing: -.045em; color: var(--bb2-ink); }
.bb2-pack-action { display: block; max-width: 130px; font-size: 11px; line-height: 1.6; color: var(--bb2-gold); }
body.authenticated #sobres .packs-art-button { width: 100%; margin: 0; align-self: center; filter: drop-shadow(0 15px 12px #0005); }
body.authenticated #sobres .packs-art { mix-blend-mode: normal; }
body.authenticated #sobres .packs-information { gap: 18px; }
.bb2-album-entry { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 22px; border: 1px solid var(--bb2-line-strong); border-radius: 22px; color: var(--bb2-ink); background: var(--bb2-panel); text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.bb2-album-entry > strong { font-size: 24px; font-weight: 650; letter-spacing: -.04em; }
.bb2-album-entry .eyebrow { color: var(--bb2-muted); font-size: 9px; }
.bb2-album-pages { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin: 2px 0; padding: 8px 0 4px; }
.bb2-album-card { position: relative; display: block; min-width: 0; aspect-ratio: 4 / 7; overflow: hidden; border: 1px solid var(--bb2-line-strong); border-radius: 6px; background: var(--bb2-raised); color: #77746b; }
.bb2-album-card::after { content: ""; position: absolute; inset: 4px; border: 1px solid #d0b88320; border-radius: 3px; pointer-events: none; }
.bb2-album-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bb2-album-card.is-missing img { filter: grayscale(1) brightness(.38) contrast(1.25); }
.bb2-album-card:nth-child(2),.bb2-album-card:nth-child(5) { color: #a29475; }
.bb2-album-label { color: var(--bb2-gold); font-size: 12px; font-weight: 600; }

/* Figma inbox: independent conversation surfaces, rather than ruled rows. */
body.authenticated .chat-inbox .bb2-inbox-heading { margin-bottom: 22px; }
body.authenticated .chat-inbox .bb2-inbox-heading h2 { font-size: 34px; }
body.authenticated .chat-inbox .inbox-filters { padding: 5px; border-radius: 14px; background: var(--bb2-panel); gap: 4px; }
body.authenticated .chat-inbox .inbox-filters button { border: 0; background: transparent; border-radius: 10px; padding-inline: 14px; }
body.authenticated .chat-inbox .inbox-filters button[aria-pressed="true"] { color: var(--bb2-ink); background: var(--bb2-raised); }
body.authenticated .chat-inbox .unified-chat-list { gap: 12px; padding: 6px 22px 28px; }
body.authenticated .chat-inbox .unified-chat-list .private-contact { min-height: 90px; padding: 17px 16px; border: 1px solid var(--bb2-line); border-radius: 18px; background: var(--bb2-panel); box-shadow: none; }
body.authenticated .chat-inbox .unified-chat-list .private-contact::before { display: none; }
body.authenticated .chat-inbox .unified-chat-list .private-contact.has-unread { border-color: var(--bb2-gold-dark); background: var(--bb2-raised); }
body.authenticated .chat-inbox .unified-chat-list .private-contact .avatar { border-color: var(--bb2-line-strong); }
body.authenticated .chat-inbox .private-contact-copy time { font-size: 10px; }
body.authenticated .chat-inbox .private-contact-copy small { color: var(--bb2-secondary); }
body.authenticated .floating-tab-bar { border: 1px solid var(--bb2-line-strong); border-radius: 20px; background: var(--bb2-panel); }
body.authenticated .tab-selection-indicator { background: var(--bb2-gold-dark); border-color: transparent; border-radius: 13px; box-shadow: none; }
body.authenticated .tab-selection-indicator::after { display: none; }
body.authenticated .app-tab.active { color: var(--interaction-strong); }
@media (max-width: 760px) {
  body.authenticated #inicio:is(.active, .page-back-preview) { grid-template-columns: minmax(0,1fr); grid-template-areas: "welcome" "search" "plans" "day" "members" "music" "news"; grid-template-rows: repeat(7,max-content); gap: 22px; }
  body.authenticated #inicio .club-welcome { padding-bottom: 18px; flex-direction: row; align-items: center; }
  body.authenticated #inicio .club-welcome h2 { font-size: 38px; }
  body.authenticated #inicio .club-welcome .eyebrow { font-size: 9px; }
  body.authenticated #inicio .club-welcome .status-pill { max-width: 118px; overflow: hidden; font-size: 9px; }
  body.authenticated #inicio .club-dashboard > .club-plans { padding: 19px; }
  body.authenticated #inicio .members-grid { grid-auto-columns: min(86%,340px); gap: 13px; }
  body.authenticated #inicio .club-member-hero { aspect-ratio: 3 / 1; }
  body.authenticated #sobres .packs-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
  body.authenticated #sobres .packs-display { min-height: 280px; padding: 22px 20px 62px; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
  body.authenticated #sobres .packs-art-button { width: 100%; margin: 0; }
  .bb2-pack-copy { padding-top: 8px; }
  .bb2-pack-copy h3 { font-size: clamp(25px,7.1vw,34px); margin: 12px 0 17px; }
  body.authenticated .chat-inbox .inbox-tools { padding: 18px 18px 12px; }
  body.authenticated .chat-inbox .unified-chat-list { padding-inline: 18px; }
  body.authenticated .chat-inbox .unified-chat-list .private-contact { padding: 15px 13px; gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .bb2-album-entry { transition: background-color 160ms ease; }
  .bb2-album-card { transition: transform 220ms var(--bb2-ease), color 180ms ease; }
  .bb2-album-entry:active .bb2-album-card { transform: translateY(2px); transition-duration: 90ms; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bb2-album-entry:hover .bb2-album-card { transform: translateY(-3px); color: #b4b4b4; }
  .bb2-album-entry:hover .bb2-album-card:nth-child(even) { transform: translateY(-6px); }
  .bb2-album-entry:active .bb2-album-card { transform: translateY(1px); }
}
/* Let long plan titles breathe beside the mascot on narrow phones. */
body.authenticated #inicio .club-event-with-tigreton { grid-template-columns: minmax(0,1fr) 90px; gap: 12px; }
body.authenticated #inicio .club-event-with-tigreton .club-event-open { grid-template-columns: minmax(0,1fr); gap: 9px; }
body.authenticated #inicio .club-event-open > time { display: inline-flex; align-items: baseline; gap: 5px; width: fit-content; padding: 5px 8px; }
body.authenticated #inicio .club-event-open > time strong { font-size: 13px; line-height: 1.2; }
body.authenticated #inicio .club-event-open > time small { font-size: 10px; }
body.authenticated #inicio .club-event-with-tigreton > .tigreton-agenda { width: 90px; }

/* Fewer decorative marks, clearer hierarchy and restrained navigation motion. */
body.authenticated .topbar::after { display: none; }
body.authenticated .topbar-title .eyebrow,
body.authenticated #inicio .club-welcome .eyebrow { display: none; }
body.authenticated .top-actions > .icon-button,
body.authenticated .top-actions .notification-button {
  border-color: transparent;
  background: transparent;
  transition: background-color 180ms var(--bb2-ease), color 180ms var(--bb2-ease);
}
body.authenticated .top-actions > .icon-button:active,
body.authenticated .top-actions .notification-button:active { background: var(--bb2-raised); }
body.authenticated .floating-tab-bar { box-shadow: 0 8px 24px #00000022; }
body.authenticated .tab-selection-indicator { transition-duration: 210ms; }
@media (min-width: 900px) {
  body.authenticated .floating-tab-bar .app-tab:not(.profile-tab) > svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.authenticated .top-actions > .icon-button,
  body.authenticated .top-actions .notification-button { transition: none; }
}

/* Minimal / 2026.10.20
   Flat, neutral surfaces and editorial spacing replace the nested gold cards.
   Do not transform a page/scroll owner: navigation and gestures own that space. */
:root {
  --bb2-canvas: #000000;
  --bb2-panel: #1c1c1e;
  --bb2-raised: #2c2c2e;
  --bb2-hover: #3a3a3c;
  --bb2-line: #ffffff1f;
  --bb2-line-strong: #ffffff38;
  --bb2-ink: #ffffff;
  --bb2-secondary: #ebebf5b3;
  --bb2-muted: #a1a1aa;
  --bb2-gold: #ffffff;
  --bb2-gold-soft: #ffffff;
  --bb2-gold-dark: #3a3a3c;
  --bb2-radius: 14px;
  --bb2-control-radius: 10px;
  --bb2-shadow: none;
}
body.light {
  --bb2-canvas: #f2f2f7;
  --bb2-panel: #ffffff;
  --bb2-raised: #ffffff;
  --bb2-hover: #e5e5ea;
  --bb2-line: #14171b10;
  --bb2-line-strong: #14171b25;
  --bb2-ink: #000000;
  --bb2-secondary: #3c3c43cc;
  --bb2-muted: #6e6e73;
  --bb2-gold: #000000;
  --bb2-gold-soft: #000000;
}
body.authenticated { background: var(--bb2-canvas); }
body.authenticated .noise { display: none; }
body.authenticated :is(.panel-heading h3,.section-intro h2,.packs-heading h2,.club-calendar-heading h2,.club-profile-identity h2) {
  font-weight: 600;
  letter-spacing: -.035em;
}
body.authenticated .topbar { padding-bottom: 16px; border-bottom: 1px solid var(--bb2-line); }
body.authenticated .topbar-title h1 { font-size: clamp(23px,3vw,30px); letter-spacing: -.05em; }
body.authenticated :is(.primary-button,.secondary-button,.packs-sync,.text-button) { font-weight: 550; text-shadow: none; }
body.authenticated .primary-button { background: var(--bb2-ink); color: var(--bb2-canvas); border-color: transparent; box-shadow: none; }
body.authenticated .secondary-button { background: transparent; border-color: var(--bb2-line-strong); }
body.authenticated :is(.floating-tab-bar,.notifications-dropdown,.chat-header,.message-form,.club-profile,.club-search .search-hub-box,.inbox-search) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.authenticated .floating-tab-bar { padding: 6px; border-radius: 16px; background: var(--bb2-panel); border-color: var(--bb2-line-strong); box-shadow: 0 4px 20px #0002; }
body.authenticated .tab-selection-indicator { background: var(--bb2-hover); border-radius: 10px; box-shadow: none; }
body.authenticated .app-tab { color: var(--bb2-muted); }
body.authenticated .app-tab.active { color: var(--bb2-ink); }

/* Home: plans, members, music and news read as sections, not nested windows. */
body.authenticated #inicio:is(.active,.page-back-preview) { gap: 30px; }
body.authenticated #inicio .club-welcome { padding-bottom: 0; margin: 0; border: 0; }
body.authenticated #inicio .club-welcome h2 { font-size: clamp(32px,4vw,46px); font-weight: 550; }
body.authenticated #inicio .club-welcome .status-pill { border: 0; background: transparent; padding: 6px 0; color: var(--bb2-muted); }
body.authenticated #inicio .club-search .search-hub-box { min-height: 48px; border: 0; border-radius: 12px; background: var(--bb2-panel); }
body.authenticated #inicio .club-search input { height: 48px; }
body.authenticated #inicio .club-dashboard > .club-plans { padding: 0; border: 0; border-radius: 0; background: transparent; }
body.authenticated #inicio .club-plans .panel-heading h3 { font-size: 17px; text-transform: none; letter-spacing: -.025em; color: var(--bb2-ink); }
body.authenticated #inicio .club-event-with-tigreton { padding: 14px 0; border-top: 1px solid var(--bb2-line-strong); border-bottom: 1px solid var(--bb2-line); }
body.authenticated #inicio .club-event-open > time { padding: 0; border: 0; background: transparent; color: var(--bb2-muted); }
body.authenticated #inicio .club-event-details > strong { font-size: clamp(18px,2vw,23px); font-weight: 550; }
body.authenticated #inicio .club-event-countdown { padding: 0; background: transparent; border: 0; color: var(--bb2-gold); }
body.authenticated #inicio .club-calendar-link { margin-top: 10px; padding-top: 8px; border: 0; color: var(--bb2-secondary); }
body.authenticated #inicio .home-members-section > .panel-heading h3 { font-size: 23px; font-weight: 550; }
body.authenticated #inicio .members-grid { gap: 16px; padding-bottom: 10px; scrollbar-color: var(--bb2-line-strong) transparent; }
body.authenticated #inicio .club-member { border: 0; border-radius: 12px; background: var(--bb2-panel); box-shadow: none; }
body.authenticated #inicio .club-member .club-member-hero .avatar { outline: 0; border-width: 3px; box-shadow: none; }
body.authenticated #inicio .club-member-identity { padding: 9px 16px 17px; }
body.authenticated #inicio .club-member strong { font-size: 16px; font-weight: 550; }
body.authenticated #inicio .club-member small { font-size: 12px; color: var(--bb2-muted); }
body.authenticated #inicio .club-dashboard > .spotify-panel { padding: 20px; border: 0; border-radius: 14px; background: var(--bb2-panel); }

/* Inbox: quiet separators and open rows, retaining every action and badge. */
body.authenticated .chat-inbox .inbox-tools { padding-bottom: 18px; }
body.authenticated .chat-inbox .bb2-inbox-heading h2 { font-size: 32px; font-weight: 550; }
body.authenticated .chat-inbox .inbox-search { border: 0; background: var(--bb2-panel); border-radius: 12px; }
body.authenticated .chat-inbox .inbox-filters { padding: 0; border-radius: 0; background: transparent; gap: 16px; }
body.authenticated .chat-inbox .inbox-filters button { padding: 10px 2px; border-radius: 0; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 500; }
body.authenticated .chat-inbox .inbox-filters button[aria-pressed="true"] { border-bottom-color: var(--bb2-ink); background: transparent; color: var(--bb2-ink); }
body.authenticated .chat-inbox .unified-chat-list { gap: 0; }
body.authenticated .chat-inbox .unified-chat-list .private-contact { min-height: 84px; padding: 17px 0; border: 0; border-bottom: 1px solid var(--bb2-line); border-radius: 0; background: transparent; }
body.authenticated .chat-inbox .unified-chat-list .private-contact.has-unread { background: transparent; border-color: var(--bb2-line); }
body.authenticated .chat-inbox .private-contact-copy strong { font-size: 15px; font-weight: 550; }
body.authenticated .chat-inbox .private-contact-copy small { font-size: 13px; color: var(--bb2-muted); }
body.authenticated .chat-inbox .private-contact-copy time { color: var(--bb2-muted); }
body.authenticated .chat-header { background: var(--bb2-canvas); box-shadow: none; }
body.authenticated .message-form { box-shadow: none; border-color: var(--bb2-line); }

/* Collection shares the mission board's dark materials; the pack and album are its two objects. */
body.authenticated #sobres { width:min(1180px,100%); }
body.authenticated #sobres .packs-heading { display:grid;grid-template-columns:44px minmax(0,1fr) auto auto;align-items:center;gap:16px;margin:8px 0 28px;padding:0 0 24px;border-bottom:1px solid var(--bb2-line-strong); }
body.authenticated #sobres .packs-heading>.collection-overview-title { min-width:0; }
body.authenticated #sobres .packs-heading .eyebrow { font-size:10px;line-height:1.5;letter-spacing:.11em;color:var(--bb2-muted); }
body.authenticated #sobres .packs-heading h2 { margin:7px 0 0;font-size:clamp(32px,4vw,44px);font-weight:550;letter-spacing:-.055em; }
body.authenticated #sobres .packs-heading :is(.packs-back,.collection-catalog-trigger,.duplicate-cards-trigger) { display:inline-flex;align-items:center;justify-content:center;align-self:center;gap:8px;min-width:44px;min-height:44px;width:auto;height:44px;padding:10px 13px;border:1px solid var(--bb2-line-strong);border-radius:11px;background:var(--bb2-panel);color:var(--bb2-secondary);font:500 12px/1.2 var(--font-body,sans-serif); }
body.authenticated #sobres .packs-heading .packs-back { width:44px;padding:10px;background:transparent; }
body.authenticated #sobres .packs-heading :is(.collection-catalog-trigger,.duplicate-cards-trigger) svg { width:20px;height:20px;flex:none; }
body.authenticated #sobres .duplicate-cards-trigger .collection-control-label { position:static;display:inline;min-width:0;height:auto;padding:0;border-radius:0;background:none;color:inherit;font:inherit; }
body.authenticated #sobres .duplicate-cards-trigger [data-duplicates-count] { position:static;min-width:18px;height:18px;padding:0 4px;background:var(--bb2-raised);color:var(--bb2-gold);border-radius:5px;font-size:10px; }
/* 1180px canvas = two content columns plus one 22px gutter. */
body.authenticated #sobres .packs-layout { grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:22px;align-items:stretch;padding-bottom:28px; }
body.authenticated #sobres .packs-display { --bb2-ink:#f5f1e8;position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);align-items:center;gap:8px;min-height:430px;padding:30px 30px 74px;border:1px solid #5b4c35;border-top:2px solid #ddb77a;border-radius:18px;background:radial-gradient(ellipse at 82% 48%,#9b744731,transparent 58%),linear-gradient(140deg,#25221c,#181c1d 72%); }
body.authenticated #sobres .packs-display::before { content:"";position:absolute;z-index:-1;right:-12%;top:-20%;width:62%;height:145%;border:1px solid #cdb78914;border-radius:20px;transform:rotate(18deg);pointer-events:none; }
body.authenticated #sobres .packs-display::after { content:"";position:absolute;z-index:-1;right:7%;top:18%;width:40%;height:56%;border:1px solid #cdb78913;border-radius:50%;pointer-events:none; }
body.authenticated #sobres .bb2-pack-copy { align-self:start;padding:0;min-width:0; }
body.authenticated #sobres .collection-section-label { display:flex;align-items:center;gap:10px;color:#d6d3c8;font-size:11px;font-weight:500;line-height:1.3;letter-spacing:.02em; }
body.authenticated #sobres .collection-section-label>span { color:#ddb77a;font-size:10px;font-variant-numeric:tabular-nums; }
body.authenticated #sobres .bb2-pack-copy h3 { margin:36px 0 15px;font:550 clamp(30px,3.5vw,44px)/1.06 var(--font-body,sans-serif);letter-spacing:-.055em;color:#f5f1e8; }
body.authenticated #sobres .packs-display-edition { display:block;padding:0;color:#a9a69a;font-size:9px;font-weight:500;letter-spacing:.12em;line-height:1.6; }
body.authenticated #sobres .bb2-pack-action { max-width:130px;margin-top:24px;color:var(--ds-text);font-size:12px;line-height:1.5; }
body.authenticated #sobres .packs-art-button { position:relative;z-index:1;align-self:center;justify-self:center;width:min(100%,240px);margin:0;padding:0;filter:drop-shadow(0 18px 16px #0006); }
body.authenticated #sobres .packs-art { width:100%;margin:0;mix-blend-mode:normal; }
body.authenticated #sobres .packs-art-button:disabled { opacity:.7; }
body.authenticated #sobres .packs-info-trigger { left:24px;bottom:18px;width:40px;height:40px;background:#ffffff08;border-color:#cbb27d45;color:#e2c58f; }
body.authenticated #sobres .packs-count-badge { right:24px;bottom:18px;display:flex;align-items:center;gap:10px;width:auto;min-width:40px;height:40px;padding:0 13px;border-color:#cbb27d45;border-radius:9px;background:#ffffff08;color:#f3e6c8;font-size:14px; }
body.authenticated #sobres .packs-count-badge::before { content:"Sobres";color:#bcb8aa;font-size:11px;font-weight:400; }
body.authenticated #sobres .packs-info-panel { left:24px;bottom:66px;width:min(320px,calc(100% - 48px));max-height:calc(100% - 82px);border-color:#bda37255;background:#171b1d;color:#f5f1e8; }
body.authenticated #sobres .packs-information { display:flex;min-width:0; }
body.authenticated #sobres .bb2-album-entry { --bb2-raised:#242b24;position:relative;isolation:isolate;display:flex;flex:1;flex-direction:column;gap:0;min-width:0;min-height:430px;padding:30px;border:1px solid #454b3d;border-top:2px solid #a9bb99;border-radius:18px;background:linear-gradient(140deg,#242b24,#17201e);color:#f5f1e8;overflow:hidden; }
body.authenticated #sobres .bb2-album-entry .collection-section-label>span { color:#acbda0; }
body.authenticated #sobres .bb2-album-entry>strong { margin-top:28px;font-size:36px;font-weight:550;line-height:1.1;letter-spacing:-.05em; }
body.authenticated #sobres .bb2-album-pages { position:relative;display:block;flex:1;width:100%;min-height:205px;margin:6px 0 14px;padding:0; }
body.authenticated #sobres .bb2-album-card { --preview-x:0%;--preview-y:0px;--preview-angle:0deg;position:absolute;left:50%;top:18px;width:25%;max-width:108px;aspect-ratio:4/7;border:1px solid #a99b7059;border-radius:7px;background:#242b24;color:#c9b98d;box-shadow:0 12px 20px #0004;transform:translate(calc(-50% + var(--preview-x)),var(--preview-y)) rotate(var(--preview-angle));transform-origin:center bottom; }
body.authenticated #sobres .bb2-album-card::after { border-color:#cfbd8e26; }
body.authenticated #sobres .bb2-album-card:nth-child(1) { --preview-x:-120%;--preview-y:24px;--preview-angle:-15deg;z-index:1;color:#b6a57e; }
body.authenticated #sobres .bb2-album-card:nth-child(2) { --preview-x:-60%;--preview-y:7px;--preview-angle:-7deg;z-index:2;color:#d1a578; }
body.authenticated #sobres .bb2-album-card:nth-child(3) { z-index:3;color:#d3c298; }
body.authenticated #sobres .bb2-album-card:nth-child(4) { --preview-x:60%;--preview-y:7px;--preview-angle:7deg;z-index:2;color:#9cb8a2; }
body.authenticated #sobres .bb2-album-card:nth-child(5) { --preview-x:120%;--preview-y:24px;--preview-angle:15deg;z-index:1;color:#b5a0b7; }
body.authenticated #sobres .bb2-album-label { display:block;margin-top:auto;padding-top:16px;border-top:1px solid #acbda02b;color:#c2d0b8;font-size:12px;font-weight:500;line-height:1.4; }
@media(max-width:760px) {
  body.authenticated #sobres .packs-heading { grid-template-columns:44px minmax(0,1fr) auto auto;gap:10px;row-gap:12px;margin-bottom:20px;padding-bottom:20px; }
  body.authenticated #sobres .packs-heading>.collection-overview-title { min-width:0; }
  body.authenticated #sobres .packs-heading h2 { font-size:32px; }
  body.authenticated #sobres .packs-heading .eyebrow { font-size:8px;letter-spacing:.08em; }
  body.authenticated #sobres .packs-heading :is(.collection-catalog-trigger,.duplicate-cards-trigger) { width:44px;padding:10px; }
  body.authenticated #sobres .packs-heading .collection-control-label { display:none; }
  body.authenticated #sobres .duplicate-cards-trigger [data-duplicates-count] { position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;background:#ddc58c;color:#242015;border:2px solid var(--bb2-canvas); }
  body.authenticated #sobres .packs-layout { grid-template-columns:minmax(0,1fr);gap:18px; }
  body.authenticated #sobres .packs-display { min-height:340px;padding:24px 24px 72px;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); }
  body.authenticated #sobres .bb2-pack-copy h3 { margin-top:30px;font-size:clamp(30px,7.7vw,39px); }
  body.authenticated #sobres .packs-art-button { width:min(100%,205px); }
  body.authenticated #sobres .bb2-pack-action { margin-top:18px;font-size:11px; }
  body.authenticated #sobres .bb2-album-entry { min-height:355px;padding:24px; }
  body.authenticated #sobres .bb2-album-entry>strong { margin-top:20px;font-size:32px; }
  body.authenticated #sobres .bb2-album-pages { min-height:205px;max-width:400px;margin:2px auto 14px; }
  body.authenticated #sobres .bb2-album-card { width:24%;max-width:92px;top:14px; }
}
@media(max-width:380px) {
  body.authenticated #sobres .packs-heading { gap:7px;grid-template-columns:40px minmax(0,1fr) 40px 40px; }
  body.authenticated #sobres .packs-heading :is(.packs-back,.collection-catalog-trigger,.duplicate-cards-trigger) { min-width:40px;width:40px;height:44px;padding:9px; }
  body.authenticated #sobres .packs-heading h2 { font-size:28px; }
  body.authenticated #sobres .packs-display { padding-inline:20px; }
  body.authenticated #sobres .bb2-pack-copy h3 { font-size:29px; }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  body.authenticated #sobres .packs-heading :is(.collection-catalog-trigger,.duplicate-cards-trigger):hover { border-color:var(--interaction-strong);color:var(--bb2-ink); }
  body.authenticated #sobres .packs-art-button:not(:disabled):hover { transform:translateY(-3px); }
  body.authenticated #sobres .bb2-album-entry:hover { border-color:#a9bb9966; }
  body.authenticated #sobres .bb2-album-entry:hover .bb2-album-card { transform:translate(calc(-50% + var(--preview-x)),calc(var(--preview-y) - 4px)) rotate(var(--preview-angle)); }
}
@media(prefers-reduced-motion:no-preference) {
  body.authenticated #sobres .packs-art-button { transition:transform 180ms var(--bb2-ease),opacity 140ms ease; }
  body.authenticated #sobres .bb2-album-entry { transition:border-color 160ms ease; }
  body.authenticated #sobres .bb2-album-card { transition:transform 220ms var(--bb2-ease),color 180ms ease; }
  body.authenticated #sobres .bb2-album-entry:active .bb2-album-card { transform:translate(calc(-50% + var(--preview-x)),calc(var(--preview-y) + 2px)) rotate(var(--preview-angle)); }
}
body.authenticated :is(.collection-card-meta,.collection-card-hint) { text-transform: none; letter-spacing: 0; color: var(--bb2-muted); }
body.authenticated .collection-card-tile > strong { font-size: 14px; font-weight: 550; }
body.authenticated .collection-card-grid { gap: 26px 18px; }
body.authenticated :is(.collection-catalog-trigger,.card-album-trigger,.duplicate-cards-trigger) { border-color: transparent; background: var(--bb2-panel); color: var(--bb2-secondary); border-radius: 10px; }
body.authenticated .card-album-header { border-color: var(--bb2-line); }
body.authenticated .card-album-header h2 { font-weight: 550; }

/* Repeated cards are a browsing shelf: the art leads, with copy and discard below. */
body.authenticated #duplicatesDialog { --duplicates-card:#1c2220;--duplicates-line:#454b3d;background:var(--bb2-canvas);color:var(--bb2-ink); }
body.authenticated #duplicatesDialog::backdrop { background:var(--bb2-canvas);-webkit-backdrop-filter:none;backdrop-filter:none; }
body.authenticated #duplicatesDialog .duplicates-heading { gap:24px;min-height:106px;padding:calc(22px + var(--duplicates-safe-top)) max(calc((100% - 1180px)/2),calc(24px + var(--duplicates-safe-right))) 22px max(calc((100% - 1180px)/2),calc(24px + var(--duplicates-safe-left)));border-color:var(--bb2-line-strong);background:var(--bb2-canvas); }
body.authenticated #duplicatesDialog .duplicates-kicker { display:block;margin-bottom:8px;color:var(--bb2-muted);font-size:10px;font-weight:500;line-height:1.4;letter-spacing:.1em; }
body.authenticated #duplicatesDialog .duplicates-heading h2 { font-size:clamp(27px,4vw,36px);font-weight:550;line-height:1.1;letter-spacing:-.045em; }
body.authenticated #duplicatesDialog [data-duplicates-close] { display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:11px;border:0;border-radius:10px;background:transparent;color:var(--bb2-secondary);box-shadow:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation; }
body.authenticated #duplicatesDialog [data-duplicates-close] svg { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;pointer-events:none; }
body.authenticated #duplicatesDialog .duplicates-toolbar { display:flex;align-items:center;justify-content:space-between;gap:24px;box-sizing:border-box;width:calc(100% - 48px - var(--duplicates-safe-left) - var(--duplicates-safe-right));max-width:1180px;margin:28px auto 24px;padding:20px 22px;border:1px solid #5b4c35;border-top:2px solid #cdb17b;border-radius:14px;background:#25241e; }
body.authenticated #duplicatesDialog #duplicatesStatus { width:auto;max-width:none;min-width:0;flex:1;margin:0;color:#d4cbb7;font-size:14px;line-height:1.6; }
body.authenticated #duplicatesDialog #discardAllDuplicates { flex:none;width:auto;max-width:none;min-height:44px;margin:0;padding:11px 15px;border:1px solid #b69e6c55;border-radius:10px;background:#e1c897;color:#292215;font-size:12px;font-weight:550;line-height:1.4; }
body.authenticated #duplicatesDialog #discardAllDuplicates:disabled { opacity:1;border-color:#7c75633d;background:#33322c;color:#aaa697; }
/* 1180px = five 220px cards and four 20px gutters. */
body.authenticated #duplicatesDialog #ownedCardInventory { box-sizing:border-box;width:calc(100% - 48px - var(--duplicates-safe-left) - var(--duplicates-safe-right));max-width:1180px;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:20px;margin:0 auto;padding:0; }
body.authenticated #duplicatesDialog .owned-card { display:flex;flex-direction:column;align-items:stretch;min-width:0;margin:0;padding:16px;border:1px solid var(--duplicates-line);border-radius:16px;background:var(--duplicates-card);box-shadow:none; }
body.authenticated #duplicatesDialog .owned-card img { width:100%;height:auto;max-height:none;aspect-ratio:948/1660;object-fit:contain;margin:0 0 20px;border-radius:0;-webkit-user-select:none;user-select:none;-webkit-user-drag:none; }
body.authenticated #duplicatesDialog .owned-card h4 { margin:0 0 8px;color:var(--bb2-ink);font-size:14px;font-weight:550;line-height:1.45;letter-spacing:-.015em; }
body.authenticated #duplicatesDialog .owned-card p { margin:0 0 18px;color:#b8c2b5;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums; }
body.authenticated #duplicatesDialog .owned-card button { margin-top:auto;padding:11px 10px;min-height:44px;border:1px solid #a9bb993b;border-radius:9px;background:#303b2f;color:#d0dfc4;font-size:12px;font-weight:500;line-height:1.5; }
body.authenticated #duplicatesDialog .owned-card button:disabled { opacity:1;color:#a4ada0;background:#272e27;border-color:#7c89782b; }
body.authenticated #duplicatesDialog #ownedCardInventory>p { grid-column:1/-1;margin:0;padding:28px;border:1px solid var(--bb2-line-strong);border-radius:14px;background:var(--bb2-panel);color:var(--bb2-secondary);font-size:14px;line-height:1.6; }
:root[data-input-modality="pointer"] body.authenticated #duplicatesDialog [data-duplicates-close]:focus { outline:none!important;box-shadow:none; }
:root[data-input-modality="keyboard"] body.authenticated #duplicatesDialog [data-duplicates-close]:focus-visible { outline:2px solid var(--bb2-ink);outline-offset:3px; }
@media(max-width:640px) {
 body.authenticated #duplicatesDialog .duplicates-heading { min-height:90px;gap:16px;padding:calc(18px + var(--duplicates-safe-top)) calc(20px + var(--duplicates-safe-right)) 18px calc(20px + var(--duplicates-safe-left)); }
 body.authenticated #duplicatesDialog .duplicates-heading h2 { font-size:28px; }
 body.authenticated #duplicatesDialog .duplicates-kicker { font-size:9px;letter-spacing:.07em; }
 body.authenticated #duplicatesDialog .duplicates-toolbar { align-items:flex-start;gap:16px;width:calc(100% - 40px - var(--duplicates-safe-left) - var(--duplicates-safe-right));margin:20px auto;padding:18px; }
 body.authenticated #duplicatesDialog #duplicatesStatus { font-size:12px; }
 body.authenticated #duplicatesDialog #discardAllDuplicates { max-width:108px;padding:10px;font-size:11px; }
 body.authenticated #duplicatesDialog #ownedCardInventory { width:calc(100% - 40px - var(--duplicates-safe-left) - var(--duplicates-safe-right));grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px; }
 body.authenticated #duplicatesDialog .owned-card { padding:10px;border-radius:12px; }
 body.authenticated #duplicatesDialog .owned-card img { margin-bottom:15px; }
 body.authenticated #duplicatesDialog .owned-card h4 { font-size:13px; }
 body.authenticated #duplicatesDialog .owned-card p { margin-bottom:14px;font-size:11px; }
 body.authenticated #duplicatesDialog .owned-card button { padding:10px 8px;font-size:11px; }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 body.authenticated #duplicatesDialog [data-duplicates-close]:hover { color:var(--bb2-ink); }
 body.authenticated #duplicatesDialog .owned-card button:not(:disabled):hover { border-color:#a9bb9980;background:#3a4738; }
}

/* Profile and calendar use open sections; banner and identity stay together. */
body.authenticated .club-profile { border: 0; border-radius: 0; background: transparent; padding: 20px 0; box-shadow: none; }
body.authenticated .club-profile-identity h2 { font-size: clamp(26px,4vw,34px); font-weight: 550; }
body.authenticated .club-profile-bio { color: var(--bb2-secondary); line-height: 1.65; }
body.authenticated .club-profile .profile-tags span { padding: 4px 0; margin-right: 12px; border: 0; background: transparent; }
body.authenticated .club-profile .profile-edit-compact { border-color: var(--bb2-line-strong); background: transparent; border-radius: 10px; }
body.authenticated #perfil .profile-achievements { padding: 24px 0; border: 0; border-top: 1px solid var(--bb2-line); border-radius: 0; background: transparent; }
body.authenticated #perfil .profile-feed-heading h3 { font-size: 21px; font-weight: 550; }
/* Calendar: the monthly date sheet and the club's plans share one measured canvas. */
body.authenticated #calendario { --calendar-ink:#f5f1e8;--calendar-muted:#b7b8ae;--calendar-gold:#dfc38c;--calendar-line:#b9ac8829;width:min(1180px,100%); }
body.authenticated #calendario .club-calendar-heading { gap:20px;margin:8px 0 20px;padding-bottom:24px;border-bottom:1px solid var(--bb2-line-strong); }
body.authenticated #calendario .club-calendar-heading .eyebrow { color:var(--bb2-muted);font-size:10px;font-weight:500;line-height:1.5;letter-spacing:.1em; }
body.authenticated #calendario .club-calendar-heading h2 { display:block;margin:7px 0 0;font-size:clamp(32px,4vw,40px);font-weight:550;line-height:1.1;letter-spacing:-.05em; }
body.authenticated #calendario #calendarTodayButton { min-height:44px;padding:10px 15px;border:1px solid var(--bb2-line-strong);border-radius:11px;background:var(--bb2-panel);color:var(--bb2-secondary);font-size:12px;font-weight:500; }
body.authenticated #calendario .calendar-actions { justify-content:flex-end;gap:10px;margin:0 0 22px; }
body.authenticated #calendario .calendar-actions button { min-height:44px;padding:11px 16px;border:1px solid var(--bb2-line-strong);border-radius:11px;background:var(--bb2-panel);color:var(--bb2-secondary);font-size:12px;font-weight:500;line-height:1.4; }
body.authenticated #calendario .calendar-actions .primary-button { border-color:transparent;background:#dfc38c;color:#252015; }
/* At 1180px: 684px month + 22px gutter + 474px agenda. */
body.authenticated #calendario .calendar-layout { grid-template-columns:minmax(0,1.44fr) minmax(0,1fr);align-items:start;gap:22px;padding-bottom:28px; }
body.authenticated #calendario :is(.calendar-month-panel,.calendar-agenda-panel) { min-width:0;padding:28px;border:1px solid #4b493c;border-top:2px solid #bca77b;border-radius:18px;background:#20231f;box-shadow:none;color:var(--calendar-ink); }
body.authenticated #calendario .calendar-month-panel { background:#22231f; }
body.authenticated #calendario .calendar-toolbar { display:block;margin:0 0 26px; }
body.authenticated #calendario .calendar-navigation { display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;width:100%;max-width:none; }
body.authenticated #calendario .calendar-navigation h3 { min-width:0;margin:0;text-align:center;color:var(--calendar-ink);font-size:24px;font-weight:550;line-height:1.2;letter-spacing:-.035em; }
body.authenticated #calendario .calendar-navigation .icon-button { display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:12px;border:1px solid #c2b48a2e;border-radius:10px;background:#ffffff05;color:#d8c9a8; }
body.authenticated #calendario .calendar-navigation .icon-button svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round; }
body.authenticated #calendario .calendar-grid { padding:0;gap:6px;border:0;border-radius:0;background:transparent; }
body.authenticated #calendario .calendar-weekday { padding:0 0 12px;color:#b0b2a7;font-size:11px;font-weight:500;line-height:1.4; }
body.authenticated #calendario .calendar-day { min-height:64px;padding:7px 2px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--calendar-ink);box-shadow:none; }
body.authenticated #calendario .calendar-day.has-events:not(.selected) { background:#ffffff04; }
body.authenticated #calendario .calendar-day.today { background:transparent;box-shadow:none; }
body.authenticated #calendario .calendar-day.today::before { content:none; }
body.authenticated #calendario .calendar-day > .calendar-day-number { display:grid;place-items:center;flex:none;width:30px;height:30px;margin:0;color:var(--calendar-ink);background:transparent;font-size:15px;font-weight:500;line-height:1;font-variant-numeric:tabular-nums; }
body.authenticated #calendario .calendar-day.today > .calendar-day-number { background:#dfc38c;color:#292215;border-radius:50%; }
body.authenticated #calendario .calendar-day.selected { border-color:#acacac;background:#3c3c3c;box-shadow:none; }
body.authenticated #calendario .calendar-day.selected > .calendar-day-number { color:#e7e7e7; }
body.authenticated #calendario .calendar-day.today.selected > .calendar-day-number { color:#232323; }
body.authenticated #calendario .calendar-day > .calendar-dots { gap:4px;height:5px;margin-top:5px; }
body.authenticated #calendario :is(.calendar-dots i,.calendar-legend i) { background:#ddbf80; }
body.authenticated #calendario :is(.calendar-dots i.birthday,.calendar-legend i.birthday) { background:#dba5ba; }
body.authenticated #calendario .calendar-legend { justify-content:flex-start;gap:24px;margin:22px 0 0;padding-top:19px;border-top:1px solid var(--calendar-line);color:var(--calendar-muted);font-size:11px; }
body.authenticated #calendario .calendar-agenda-panel { border-color:#424c3e;border-top-color:#a9bb99;background:#1d2621; }
body.authenticated #calendario .calendar-agenda-heading { align-items:center;gap:14px; }
body.authenticated #calendario .calendar-section-label { margin:0;color:#b8c2b4;font-size:12px;font-weight:500;line-height:1.4; }
body.authenticated #calendario .calendar-count { flex:none;padding:4px 8px;border:1px solid #acbda02b;border-radius:6px;color:#c9d7be;background:#ffffff03;font-size:11px;font-weight:500;line-height:1.3;font-variant-numeric:tabular-nums; }
body.authenticated #calendario #calendarSelectedTitle { margin:20px 0 24px;color:var(--calendar-ink);font-size:25px;font-weight:550;line-height:1.18;letter-spacing:-.035em; }
body.authenticated #calendario .calendar-agenda-event { gap:14px;padding:21px 0;border-color:#acbda023; }
body.authenticated #calendario .calendar-agenda-event:first-child { padding-top:0; }
body.authenticated #calendario .calendar-event-date { flex-basis:44px;padding:9px 3px;border:1px solid #c5b58035;border-radius:9px;background:#363729;color:#dfc58d; }
body.authenticated #calendario .calendar-event-date strong { font-size:20px;font-weight:550;line-height:1.1;font-variant-numeric:tabular-nums; }
body.authenticated #calendario .calendar-event-date span { margin-top:5px;font-size:10px;line-height:1.2; }
body.authenticated #calendario .calendar-agenda-event.birthday .calendar-event-date { border-color:#d5a7b130;background:#362e30;color:#e3b6c5; }
body.authenticated #calendario .calendar-event-type { color:#b4bfb2;font-size:11px;line-height:1.5; }
body.authenticated #calendario .calendar-event-copy h4 { margin:5px 0 8px;color:var(--calendar-ink);font-size:17px;font-weight:550;line-height:1.35;letter-spacing:-.025em; }
body.authenticated #calendario .calendar-event-copy p { margin:6px 0;color:#b8c2b5;font-size:12px;line-height:1.6; }
body.authenticated #calendario .calendar-edit-event { min-height:36px;margin:5px 10px 0 0;padding:8px 0;color:#d9c594;font-size:12px; }
body.authenticated #calendario .calendar-month-agenda { margin-top:22px;padding-top:22px;border-top:1px solid #acbda02b; }
body.authenticated #calendario .calendar-month-agenda .calendar-agenda-heading { margin-bottom:20px; }
body.authenticated #calendario .calendar-month-agenda .calendar-section-label { color:#e1e6db;font-size:16px;font-weight:550; }
body.authenticated #calendario .calendar-agenda-event.compact { gap:12px;padding:16px 0; }
body.authenticated #calendario .calendar-agenda-event.compact .calendar-event-copy h4 { margin-bottom:4px;font-size:14px; }
body.authenticated #calendario .calendar-agenda-event.compact .calendar-event-date { flex-basis:37px;padding:7px 2px; }
body.authenticated #calendario .calendar-agenda-event.compact .calendar-event-date strong { font-size:17px; }
body.authenticated #calendario .calendar-empty-day { padding:0 0 7px; }
body.authenticated #calendario .calendar-empty-day > span { display:none; }
body.authenticated #calendario .calendar-empty-day strong { color:#e1e6db;font-size:15px;font-weight:500; }
body.authenticated #calendario :is(.calendar-empty-day p,.calendar-month-empty) { color:#b8c2b5;font-size:12px;line-height:1.6; }
@media(max-width:900px) {
 body.authenticated #calendario .calendar-layout { grid-template-columns:minmax(0,1fr);gap:20px; }
 body.authenticated #calendario .calendar-month-panel { padding:26px; }
 body.authenticated #calendario .calendar-day { min-height:59px; }
 body.authenticated #calendario .calendar-agenda-panel { padding:26px; }
}
@media(max-width:620px) {
 body.authenticated #calendario .club-calendar-heading { margin-bottom:18px;padding-bottom:20px; }
 body.authenticated #calendario .club-calendar-heading h2 { font-size:32px; }
 body.authenticated #calendario #calendarTodayButton { min-width:0;padding:10px 12px;font-size:11px; }
 body.authenticated #calendario .calendar-actions { display:flex;flex-wrap:wrap;justify-content:stretch;gap:9px;margin-bottom:18px; }
 body.authenticated #calendario .calendar-actions button { flex:1 1 auto;width:auto;padding:10px 11px;font-size:11px; }
 body.authenticated #calendario :is(.calendar-month-panel,.calendar-agenda-panel) { padding:22px 18px;border-radius:16px; }
 body.authenticated #calendario .calendar-toolbar { margin-bottom:21px; }
 body.authenticated #calendario .calendar-navigation { grid-template-columns:44px minmax(0,1fr) 44px;gap:8px; }
 body.authenticated #calendario .calendar-navigation h3 { font-size:21px; }
 body.authenticated #calendario .calendar-grid { gap:3px; }
 body.authenticated #calendario .calendar-weekday { padding-bottom:10px;font-size:11px; }
 body.authenticated #calendario .calendar-day { min-height:48px;padding:4px 0;border-radius:9px; }
 body.authenticated #calendario .calendar-day > .calendar-day-number { width:26px;height:26px;font-size:14px; }
 body.authenticated #calendario .calendar-day > .calendar-dots { margin-top:3px;height:4px; }
 body.authenticated #calendario .calendar-legend { gap:20px;margin-top:18px;padding-top:17px; }
 body.authenticated #calendario #calendarSelectedTitle { margin:17px 0 22px;font-size:24px; }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 body.authenticated #calendario .calendar-day:not(.outside):not(.selected):hover { border-color:#b4b4b450;background:#ffffff09; }
 body.authenticated #calendario .calendar-navigation .icon-button:hover { background:#ffffff0b; }
}
@media(prefers-reduced-motion:no-preference) {
 body.authenticated #calendario .calendar-day { transition:background 160ms ease,border-color 160ms ease,transform 160ms var(--bb2-ease); }
 body.authenticated #calendario .calendar-navigation .icon-button { transition:background 160ms ease,scale 160ms var(--bb2-ease); }
 body.authenticated #calendario .calendar-navigation .icon-button:active { scale:.95; }
}
html[data-reduced-motion="true"] body.authenticated #calendario :is(.calendar-day,.calendar-navigation .icon-button) { transition:none; }

/* Store: consistent tile scale, no oversized featured card or patterned chrome. */
body.authenticated #bannerShopDialog { border-radius: 18px; background: var(--bb2-canvas); box-shadow: 0 12px 40px #0005; }
/* Shop: a gallery of the club's artwork, with one featured cover and compact purchase panels. */
body.authenticated #bannerShopDialog { --shop-ground:var(--bb2-canvas);--shop-card:#1b2021;--shop-card-line:#383e3d;--shop-gold:#dfc38c;background:var(--shop-ground); }
body.authenticated #bannerShopDialog::backdrop { background:var(--shop-ground);-webkit-backdrop-filter:none;backdrop-filter:none; }
body.authenticated #bannerShopDialog .shop-topbar { min-height:104px;padding:calc(20px + var(--pwa-safe-top,env(safe-area-inset-top,0px))) max(32px,calc((100vw - 1180px)/2)) 20px;background:var(--shop-ground);border-bottom:1px solid var(--bb2-line-strong);-webkit-backdrop-filter:none;backdrop-filter:none; }
body.authenticated #bannerShopDialog .shop-brand { gap:18px;color:var(--bb2-ink); }
body.authenticated #bannerShopDialog .shop-brand-mark { align-self:center;color:var(--shop-gold);font-size:32px;letter-spacing:-.09em; }
body.authenticated #bannerShopDialog .shop-brand-copy { display:flex;flex-direction:column;gap:5px; }
body.authenticated #bannerShopDialog .shop-kicker { color:var(--bb2-muted);font-size:10px;font-weight:500;line-height:1.4;letter-spacing:.1em; }
body.authenticated #bannerShopDialog #bannerShopTitle { margin:0;padding:0;border:0;font-size:clamp(30px,4vw,38px);font-weight:550;line-height:1;letter-spacing:-.05em; }
body.authenticated #bannerShopDialog .shop-wallet { flex-direction:column;align-items:flex-start;gap:5px;padding:12px 17px;border:1px solid #b39c6940;border-radius:12px;background:#25241e; }
body.authenticated #bannerShopDialog .shop-wallet>span { color:#c1baa9;font-size:11px; }
body.authenticated #bannerShopDialog .shop-wallet strong { gap:7px; }
body.authenticated #bannerShopDialog .banner-shop-balance { color:#e6d4ac;font-size:15px;font-weight:550; }
body.authenticated #bannerShopDialog #bannerShopClose { border:1px solid var(--bb2-line-strong);border-radius:11px;background:var(--bb2-panel); }
/* 1180px canvas: two 579px product columns with one 22px gutter. */
body.authenticated #bannerShopDialog .shop-content { width:min(1244px,100%);padding:0 32px calc(40px + var(--pwa-safe-bottom,env(safe-area-inset-bottom,0px))); }
body.authenticated #bannerShopDialog .shop-navigation { gap:30px;margin:0 0 30px;padding:0;border:0;border-bottom:1px solid var(--bb2-line-strong);border-radius:0;background:transparent; }
body.authenticated #bannerShopDialog .shop-navigation button { min-height:66px;padding:20px 0;border:0;border-radius:0;background:transparent;color:var(--bb2-muted);font-weight:500; }
body.authenticated #bannerShopDialog .shop-navigation button::after { bottom:-1px;background:var(--shop-gold); }
body.authenticated #bannerShopDialog .shop-navigation button[aria-selected="true"] { background:transparent;color:var(--bb2-ink);box-shadow:none; }
body.authenticated #bannerShopDialog .shop-navigation button>span { color:#a29e90;font-size:11px; }
body.authenticated #bannerShopDialog .shop-status { margin-bottom:22px;padding:14px 16px;border:1px solid #b59d6c38;border-radius:10px;background:#25241e; }
body.authenticated #bannerShopDialog .shop-department-heading { align-items:center;gap:20px;margin:0 0 24px; }
body.authenticated #bannerShopDialog .shop-department-label { display:block;margin:0 0 9px;color:var(--bb2-muted);font-size:11px;font-weight:500;line-height:1.4; }
body.authenticated #bannerShopDialog .shop-department-heading :is(h3,#rewardVoucherTitle) { margin:0;font-size:clamp(26px,3vw,32px);font-weight:550;line-height:1.15;letter-spacing:-.045em; }
body.authenticated #bannerShopDialog .shop-department-heading p { margin:10px 0 0;color:var(--bb2-muted);font-size:13px;line-height:1.5; }
body.authenticated #bannerShopDialog #shopBannersPanel .shop-department-heading p { display:inline-block;min-width:182px;margin-top:12px;padding:7px 10px;border:1px solid #b39c693d;border-radius:7px;background:#25241e;color:#d7c49b;font-size:12px;font-variant-numeric:tabular-nums; }
body.authenticated #bannerShopDialog .shop-text-button { min-height:44px;padding:10px 13px;border:1px solid var(--bb2-line-strong);border-radius:10px;background:var(--bb2-panel);font-size:12px; }
body.authenticated #bannerShopDialog .banner-shop-items { grid-template-columns:repeat(2,minmax(0,1fr));gap:22px; }
body.authenticated #bannerShopDialog .banner-shop-item { min-width:0;grid-column:auto;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--shop-card-line);border-radius:16px;background:var(--shop-card);box-shadow:none; }
body.authenticated #bannerShopDialog .shop-banner-card.is-featured { grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);margin:0;border-color:#776443;border-top:2px solid var(--shop-gold);background:#25241e; }
body.authenticated #bannerShopDialog .shop-artwork { align-self:stretch;border-radius:0;background:#14191b; }
body.authenticated #bannerShopDialog .shop-artwork .banner-art { width:100%;aspect-ratio:3/1; }
body.authenticated #bannerShopDialog .is-featured .shop-artwork { padding:24px; }
body.authenticated #bannerShopDialog .is-featured .shop-artwork .banner-art { border-radius:9px; }
body.authenticated #bannerShopDialog .shop-card-content { flex:1;padding:22px; }
body.authenticated #bannerShopDialog .is-featured .shop-card-content { padding:28px; }
body.authenticated #bannerShopDialog .shop-card-labels { min-height:18px;margin-bottom:12px;letter-spacing:0; }
body.authenticated #bannerShopDialog .shop-item-kind { color:var(--bb2-muted);font-size:11px; }
body.authenticated #bannerShopDialog .shop-ownership { color:#bacbb5;font-size:11px; }
body.authenticated #bannerShopDialog .shop-ownership.is-active { color:var(--interaction-strong); }
body.authenticated #bannerShopDialog .banner-shop-item h3 { margin-bottom:9px;font-size:22px;font-weight:550;letter-spacing:-.035em; }
body.authenticated #bannerShopDialog .is-featured h3 { font-size:28px; }
body.authenticated #bannerShopDialog .banner-shop-item p { color:#b9bfbc;font-size:13px;line-height:1.55; }
body.authenticated #bannerShopDialog .shop-card-purchase { margin-top:auto;padding-top:24px; }
body.authenticated #bannerShopDialog .shop-price strong { color:var(--shop-gold);font-size:24px;font-weight:550; }
body.authenticated #bannerShopDialog .shop-price small { font-size:11px; }
body.authenticated #bannerShopDialog .shop-purchase-button { min-width:110px;border:0;border-radius:10px;background:#e3cd9c;color:#242015;font-weight:550; }
body.authenticated #bannerShopDialog .is-equipped .shop-purchase-button { background:#34392f;color:#c7d4be; }
body.authenticated #bannerShopDialog .shop-voucher-art { min-height:190px;border:0;border-radius:0;background:#29271f; }
body.authenticated #bannerShopDialog .shop-voucher-art::after { bottom:20px;border-color:#a38d5945; }
body.authenticated #bannerShopDialog .reward-voucher-mark { color:#c8b27e;transform:none;box-shadow:none;background:transparent;border:0; }
body.authenticated #bannerShopDialog .reward-voucher-item .shop-card-content { border-top:1px solid #9f8b5c40; }
body.authenticated #bannerShopDialog .chota-shop-items { gap:22px; }
body.authenticated #bannerShopDialog .chota-shop-item { display:flex;flex-direction:column;gap:0;overflow:hidden;border:1px solid #424c3e;border-top:2px solid #a9bb99;border-radius:16px;background:#1e2723; }
body.authenticated #bannerShopDialog .chota-shop-object { height:215px;min-height:0;border-radius:0;background:#28312a; }
body.authenticated #bannerShopDialog .chota-shop-object img { filter:drop-shadow(0 12px 7px #0003); }
body.authenticated #bannerShopDialog .chota-shop-copy { flex:1;padding:22px; }
body.authenticated #bannerShopDialog .chota-shop-copy h4 { font-size:22px;font-weight:550;letter-spacing:-.035em; }
body.authenticated #bannerShopDialog .chota-shop-copy p { min-height:0;margin-bottom:20px;color:#bdc5be;font-size:13px;line-height:1.55; }
body.authenticated #bannerShopDialog .chota-shop-purchase { margin-top:auto; }
body.authenticated #bannerShopDialog .chota-shop-purchase strong { color:#c8d6bd;font-weight:550; }
body.authenticated #bannerShopDialog .chota-shop-purchase button { border:0;border-radius:10px;background:#c1d0b5;color:#1d281e;font-weight:550; }
body.authenticated #bannerShopDialog .chota-shop-item.is-owned .chota-shop-purchase button { background:#344235;color:#c8d6bd; }
body.authenticated #bannerShopDialog .shop-empty { border:1px solid var(--shop-card-line);border-radius:16px;padding:28px;background:var(--shop-card); }
@media(max-width:900px) {
 body.authenticated #bannerShopDialog .shop-topbar { padding-inline:28px; }
 body.authenticated #bannerShopDialog .shop-content { padding-inline:28px; }
 body.authenticated #bannerShopDialog .shop-banner-card.is-featured { grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr); }
 body.authenticated #bannerShopDialog .is-featured .shop-artwork { padding:18px; }
 body.authenticated #bannerShopDialog .is-featured .shop-card-content { padding:22px; }
 body.authenticated #bannerShopDialog .chota-shop-items { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.authenticated #bannerShopDialog .chota-shop-item:last-child:nth-child(odd) { grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}
@media(max-width:640px) {
 body.authenticated #bannerShopDialog .shop-topbar { min-height:90px;gap:12px;padding:calc(14px + var(--pwa-safe-top,env(safe-area-inset-top,0px))) max(16px,env(safe-area-inset-right,0px)) 14px max(20px,env(safe-area-inset-left,0px)); }
 body.authenticated #bannerShopDialog .shop-brand { gap:11px; }
 body.authenticated #bannerShopDialog .shop-brand-mark { font-size:25px; }
 body.authenticated #bannerShopDialog .shop-kicker { font-size:8px;letter-spacing:.06em; }
 body.authenticated #bannerShopDialog #bannerShopTitle { font-size:29px; }
 body.authenticated #bannerShopDialog .shop-wallet { gap:0;padding:10px; }
 body.authenticated #bannerShopDialog .shop-wallet>span { display:none; }
 body.authenticated #bannerShopDialog .banner-shop-balance { font-size:12px; }
 body.authenticated #bannerShopDialog #bannerShopClose { width:40px;min-width:40px;height:44px;padding:9px; }
 body.authenticated #bannerShopDialog .shop-content { padding:0 20px calc(28px + var(--pwa-safe-bottom,env(safe-area-inset-bottom,0px))); }
 body.authenticated #bannerShopDialog .shop-navigation { gap:26px;margin-bottom:24px; }
 body.authenticated #bannerShopDialog .shop-navigation button { min-height:60px;padding-block:17px;font-size:14px; }
 body.authenticated #bannerShopDialog .shop-department-heading { gap:14px;margin-bottom:20px; }
 body.authenticated #bannerShopDialog .shop-department-label { margin-bottom:7px; }
 body.authenticated #bannerShopDialog .shop-department-heading :is(h3,#rewardVoucherTitle) { font-size:27px; }
 body.authenticated #bannerShopDialog .shop-text-button { padding-inline:10px;font-size:11px; }
 body.authenticated #bannerShopDialog .banner-shop-items { grid-template-columns:minmax(0,1fr);gap:18px; }
 body.authenticated #bannerShopDialog .shop-banner-card.is-featured { display:flex;grid-column:auto; }
 body.authenticated #bannerShopDialog .is-featured .shop-artwork { padding:0; }
 body.authenticated #bannerShopDialog .is-featured .shop-artwork .banner-art { border-radius:0; }
 body.authenticated #bannerShopDialog :is(.shop-card-content,.is-featured .shop-card-content) { padding:20px; }
 body.authenticated #bannerShopDialog :is(.banner-shop-item h3,.is-featured h3) { font-size:22px; }
 body.authenticated #bannerShopDialog .shop-card-purchase { gap:12px;padding-top:20px; }
 body.authenticated #bannerShopDialog .chota-shop-items { grid-template-columns:minmax(0,1fr);gap:18px; }
 body.authenticated #bannerShopDialog .chota-shop-item,
 body.authenticated #bannerShopDialog .chota-shop-item:last-child:nth-child(odd) { display:grid;grid-column:auto;grid-template-columns:minmax(100px,35%) minmax(0,1fr); }
 body.authenticated #bannerShopDialog .chota-shop-object { height:100%;min-height:190px; }
 body.authenticated #bannerShopDialog .chota-shop-copy { padding:18px 16px; }
 body.authenticated #bannerShopDialog .chota-shop-copy h4 { font-size:20px; }
 body.authenticated #bannerShopDialog .chota-shop-copy p { margin-bottom:16px; }
 body.authenticated #bannerShopDialog .chota-shop-purchase { gap:10px; }
}
@media(max-width:380px) {
 body.authenticated #bannerShopDialog .shop-brand-mark { display:none; }
 body.authenticated #bannerShopDialog .shop-topbar { gap:10px;padding-inline:16px; }
 body.authenticated #bannerShopDialog .shop-content { padding-inline:16px; }
 body.authenticated #bannerShopDialog .shop-department-heading { align-items:flex-start; }
 body.authenticated #bannerShopDialog .shop-text-button { max-width:80px;white-space:normal;line-height:1.4; }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 body.authenticated #bannerShopDialog .shop-banner-card:hover { border-color:#707070; }
 body.authenticated #bannerShopDialog .shop-purchase-button:not(:disabled):hover { background:#dfdfdf; }
}
@media(prefers-reduced-motion:no-preference) {
 body.authenticated #bannerShopDialog .shop-banner-card { transition:border-color 180ms ease; }
}

/* News: images and headlines carry emphasis; metadata and actions recede. */
body.authenticated #inicio > #noticias { border: 0; border-top: 1px solid var(--bb2-line-strong); border-radius: 0; background: transparent; }
body.authenticated #noticias .club-news-heading { padding: 22px 0; }
body.authenticated #noticias .club-news-heading h3 { font-size: 23px; font-weight: 550; }
body.authenticated #noticias .club-news-heading .news-collapse-button { color: var(--bb2-secondary); border: 0; background: transparent; border-radius: 8px; }
/* Tabs, cards and the timeline are owned by news.css. */

/* Short feedback only. Large blurred surfaces never run during a gesture. */
@media (hover:hover) and (pointer:fine) {
  body.authenticated #inicio .club-member:hover { background: var(--bb2-raised); }
  body.authenticated .chat-inbox .unified-chat-list .private-contact:hover { background: var(--bb2-panel); }
  body.authenticated #bannerShopDialog .banner-shop-item:hover { background: var(--bb2-raised); }
}
@media (max-width:760px) {
  body.authenticated #inicio:is(.active,.page-back-preview) { gap: 26px; }
  body.authenticated #inicio .club-welcome h2 { font-size: 34px; }
  body.authenticated #inicio .club-dashboard > .spotify-panel { padding: 18px; }
  body.authenticated #inicio .members-grid { grid-auto-columns: min(86%,340px); }
  body.authenticated #bannerShopDialog { border-radius: 0; }
  body.authenticated #bannerShopDialog .shop-content { padding: 24px 20px; }
  body.authenticated #bannerShopDialog .shop-topbar { padding-inline: 20px; }
  body.authenticated .collection-card-grid { gap: 22px 13px; }
  body.authenticated .chat-inbox .unified-chat-list .private-contact { min-height: 82px; }
}
@media (prefers-reduced-motion:reduce) {
  body.authenticated .banner-panorama img,body.authenticated .banner-panorama::after { animation: none; }
}
html[data-reduced-motion="true"] body.authenticated .banner-panorama img,html[data-reduced-motion="true"] body.authenticated .banner-panorama::after { animation: none; }
body.authenticated #bannerShopDialog .shop-item-kind { color: var(--bb2-muted); letter-spacing: .05em; font-weight: 500; }
body.authenticated .top-actions svg { width: 20px; height: 20px; }
body.authenticated .admin-settings-entry { border-radius: 12px; background: transparent; box-shadow: none; }
body.authenticated .admin-settings-symbol { border-radius: 0; background: transparent; color: var(--bb2-secondary); }
body.authenticated .admin-summary > * { border: 0; border-radius: 12px; background: var(--bb2-panel); }
body.authenticated :is(.profile-editor-modal,.achievement-assignment-modal,.modal) { border-color: var(--bb2-line-strong); background-color: var(--bb2-panel); box-shadow: 0 12px 40px #0004; }
body.authenticated :is(.modal-heading h2,.profile-editor-modal h2) { font-weight: 550; letter-spacing: -.035em; }

/* Compact shell: the club's people and next plan own the first fold.
   Safe-area and gesture scroll owners remain in club.css. */
:root { --bb2-shadow: none; --bb2-nav-clearance: 78px; }
body.authenticated .topbar {
  height: 64px;
  margin-bottom: 0;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom-color: var(--bb2-line);
  background: var(--bb2-canvas);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.authenticated .topbar-title h1 { margin: 0; font-size: 18px; }
body.authenticated .page-section { padding-top: 22px; padding-bottom: calc(var(--bb2-nav-clearance) + 24px); }
body.authenticated #inicio:is(.active,.page-back-preview) { gap: 18px; padding-top: 18px; }
body.authenticated #inicio > .club-welcome { margin: 0; padding: 0; border: 0; min-height: 36px; }
body.authenticated #inicio .club-welcome h2 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; }
body.authenticated #inicio .club-welcome .status-pill { min-height: 28px; padding: 4px 0; border: 0; background: transparent; }
body.authenticated #inicio .club-search .search-hub-box { min-height: 46px; border-radius: 10px; }
body.authenticated #inicio .club-search input { height: 46px; }
body.authenticated #inicio .club-dashboard > :is(.club-plans,.spotify-panel) { padding: 18px; border-color: var(--bb2-line); background: var(--bb2-panel); box-shadow: none; }
body.authenticated #inicio .club-plans .panel-heading { margin-bottom: 10px; }
body.authenticated #inicio .club-plans .panel-heading h3 { font-size: 16px; line-height: 1.3; letter-spacing: -.02em; text-transform: none; color: var(--bb2-ink); }
body.authenticated #inicio .club-heading-link { min-height: 32px; }
body.authenticated #inicio .club-calendar-link { min-height: 40px; margin-top: 10px; padding-top: 8px; }
body.authenticated #inicio .home-members-section > .panel-heading h3 { font-size: 22px; }
body.authenticated #inicio .home-members-section > .panel-heading { margin-bottom: 12px; }
body.authenticated #inicio .club-member { box-shadow: none; }
body.authenticated .floating-tab-bar {
  bottom: 0;
  width: min(600px,100vw);
  min-height: 64px;
  border: 0;
  border-top: 1px solid var(--bb2-line-strong);
  border-radius: 0;
  background: var(--bb2-canvas);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.authenticated .tab-selection-indicator { background: var(--bb2-panel); border: 0; border-radius: 10px; box-shadow: none; }
body.authenticated .app-tab { min-height: 48px; }
body.authenticated .profile-tab-photo { box-shadow: none; }
body.authenticated :is(.panel,.admin-member-card,.help-request-item,.admin-achievement-card,.admin-settings-entry,.profile-stats > div) { background: var(--bb2-panel); box-shadow: none; }
body.authenticated :is(.primary-button,.send-button) { background: var(--bb2-gold); box-shadow: none; }
body.authenticated .spotify-panel .eyebrow { display: none; }
body.authenticated .spotify-panel .panel-heading { margin-bottom: 12px; }
#spotifyPlayer { min-height: 120px; }
.club-section-disabled { display: none !important; }
.feature-load-notice { position: fixed; z-index: 6000; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom,0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: min(90vw,560px); padding: 16px; border: 1px solid var(--bb2-line-strong); border-radius: 12px; color: var(--bb2-ink); background: var(--bb2-raised); box-shadow: 0 8px 24px #0004; font: 13px/1.5 var(--font-body,sans-serif); }
.feature-load-notice button { flex-shrink: 0; min-height: 44px; padding: 0 10px; border: 0; color: var(--bb2-ink); background: transparent; font: inherit; cursor: pointer; }
@media (min-width:761px) {
  body.authenticated { padding-bottom: 0; }
  body.authenticated .floating-tab-bar { --tab-shell-padding: 6px; padding: 6px; box-sizing: border-box; }
  body.authenticated .app-tab { max-width: 155px; }
}
@media (max-width:760px) {
  body.authenticated { --tab-safe-bottom: var(--pwa-safe-bottom,env(safe-area-inset-bottom,0px)); }
  body.authenticated .app > .topbar { height: calc(56px + var(--pwa-safe-top,0px)); padding: var(--pwa-safe-top,0px) 18px 0; }
  body.authenticated .app > .page-section,
  body.authenticated.standalone-app .app > .page-section { padding-top: 14px; padding-bottom: calc(80px + env(safe-area-inset-bottom,0px)); }
  body.authenticated #inicio:is(.active,.page-back-preview) { gap: 16px; padding-inline: 18px; }
  body.authenticated #inicio .club-welcome h2 { font-size: 25px; }
  body.authenticated #inicio > .club-welcome { min-height: 30px; }
  body.authenticated #inicio .club-dashboard > .club-plans { padding: 15px; }
  body.authenticated #inicio .club-event-details > strong { font-size: 18px; }
  body.authenticated #inicio .club-member-identity { padding-bottom: 14px; }
  body.authenticated .floating-tab-bar,
  body.authenticated.mobile-header-hidden:not(.chat-focus) .floating-tab-bar { top: auto; left: 0; right: auto; bottom: 0; width: 100%; height: calc(58px + var(--tab-safe-bottom)); min-height: 0; grid-template-rows: 48px; align-content: start; --tab-shell-padding: 5px; padding: 5px 5px calc(5px + var(--tab-safe-bottom)); border-radius: 0; transform: none; contain: none; }
  body.authenticated .floating-tab-bar .app-tab { box-sizing: border-box; height: 48px; min-height: 48px; padding: 4px; }
  body.authenticated .floating-tab-bar .tab-selection-indicator { bottom: calc(var(--tab-shell-padding) + var(--tab-safe-bottom)); }
  body.authenticated .profile-tab-photo { width: 34px; height: 34px; flex-basis: 34px; line-height: 28px; }
  @supports (-webkit-touch-callout: none) {
    /* The iOS inset can include invisible Safari controls even if standalone
       detection differs between installed shortcuts. */
    body.authenticated:not(.native-android) { --tab-safe-bottom: clamp(0px,var(--pwa-safe-bottom,env(safe-area-inset-bottom,0px)),34px); }
    /* The scroll shell and dock share the measured visible window. Mixing a
       100%-high clipping root with a separately positioned vh dock clips it. */
    html[data-pwa-viewport="ios"] { height: calc(var(--pwa-window-height,100dvh) + var(--pwa-window-top,0px)); min-height: 0; overflow: hidden; }
    html[data-pwa-viewport="ios"] body.authenticated { top: var(--pwa-window-top,0px); right: 0; bottom: auto; left: 0; height: var(--pwa-window-height,100dvh); min-height: 0; }
    html[data-pwa-viewport="ios"] body.authenticated:not(.chat-focus):not(.achievement-management-open):not(.superadmin-console-session) .app { position: absolute; inset: 0; height: 100%; }
    html[data-pwa-viewport="ios"] body.authenticated .floating-tab-bar { position: absolute; top: auto; bottom: 0; contain: none; }
  }
}

@media (max-width:760px) {
  /* Reserve the navigation's own strip instead of placing it over member artwork. */
  body.authenticated:not(.chat-focus):not(.achievement-management-open):not(.superadmin-console-session) .app { box-sizing: border-box; padding-bottom: calc(60px + var(--tab-safe-bottom)); }
  body.authenticated:not(.chat-focus):not(.achievement-management-open):not(.superadmin-console-session) .app > .page-section { padding-bottom: 24px; }
}

/* The offline entry is available before the optional album stylesheet is loaded. */
.offline-album-access { display: grid; gap: 5px; width: 100%; margin-top: 12px; padding: 13px 15px; border: 1px solid var(--bb2-line-strong); border-radius: 12px; background: var(--bb2-raised); color: var(--bb2-ink); text-align: left; }
.offline-album-access[hidden] { display: none; }
.offline-album-access strong { font-size: 13px; }
.offline-album-access small { color: var(--bb2-secondary); font-size: 11px; line-height: 1.5; }

/* iPhone: one translucent navigation material floats over the scrolling page.
   The four existing destinations keep their touch targets and transform selector. */
@media (max-width: 760px) {
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) {
    --ios-dock-bottom: max(10px, var(--tab-safe-bottom, 0px));
    --ios-dock-clearance: calc(82px + var(--ios-dock-bottom));
  }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated):not(.chat-focus):not(.achievement-management-open):not(.superadmin-console-session) .app {
    padding-bottom: 0;
  }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated):not(.chat-focus):not(.achievement-management-open):not(.superadmin-console-session) .app > .page-section {
    padding-bottom: var(--ios-dock-clearance);
    scroll-padding-bottom: var(--ios-dock-clearance);
  }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar,
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated).mobile-header-hidden:not(.chat-focus) .floating-tab-bar {
    --tab-shell-padding: 6px;
    --tab-slide-duration: 360ms;
    --tab-slide-ease: cubic-bezier(.2, .85, .2, 1.08);
    box-sizing: border-box;
    position: fixed;
    inset: auto 16px var(--ios-dock-bottom);
    width: auto;
    height: 66px;
    min-height: 66px;
    grid-template-rows: 52px;
    padding: var(--tab-shell-padding);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 34px;
    background: rgba(29,30,33,.58);
    box-shadow: 0 8px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.15);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    backdrop-filter: blur(22px) saturate(155%);
    contain: none;
    isolation: isolate;
    transform: none;
    transition: opacity 160ms ease;
  }
  /* The installed iPhone PWA keeps its dock inside the measured window shell. */
  html[data-pwa-viewport="ios"] body.authenticated .floating-tab-bar,
  html[data-pwa-viewport="ios"] body.authenticated.mobile-header-hidden:not(.chat-focus) .floating-tab-bar { position: absolute; }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar::before { content: none; }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255,255,255,.13), transparent 34%, transparent 68%, rgba(255,255,255,.045));
    pointer-events: none;
  }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .tab-selection-indicator {
    z-index: 1;
    inset: var(--tab-shell-padding) auto var(--tab-shell-padding) var(--tab-shell-padding);
    width: calc((100% - (var(--tab-shell-padding) * 2)) / var(--tab-count, 4));
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 28px;
    background: rgba(255,255,255,.13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 5px rgba(0,0,0,.08);
    transition: transform var(--tab-slide-duration) var(--tab-slide-ease);
  }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .tab-selection-indicator::after { display: none; }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .app-tab {
    z-index: 2;
    height: 52px;
    min-height: 52px;
    padding: 4px;
    border-radius: 28px;
    color: rgba(244,245,247,.67);
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: color 180ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .app-tab.active { color: #fff; }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .app-tab svg {
    width: 25px;
    height: 25px;
    stroke-width: 1.8;
    transform: none;
    transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .app-tab:active svg,
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .app-tab:active .profile-tab-photo { transform: scale(.9); }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .profile-tab-photo {
    flex-basis: 33px;
    width: 33px;
    height: 33px;
    border: 2px solid rgba(255,255,255,.28);
    line-height: 29px;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .tab-alert { border-color: #303136; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar,
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .tab-selection-indicator,
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .app-tab,
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .app-tab svg,
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .profile-tab-photo { transition: none; }
}
@media (max-width: 760px) and (prefers-reduced-transparency: reduce), (max-width: 760px) and (prefers-contrast: more) {
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar { background: #252629; -webkit-backdrop-filter: none; backdrop-filter: none; }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .app-tab { color: #d8d9dc; }
  :is(body.authenticated.native-ios,html[data-pwa-viewport="ios"] body.authenticated) .floating-tab-bar .app-tab.active { color: #fff; }
}
