/* Centro de actividad · Big Boy */
.notifications-backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.48); }
.notifications-backdrop[hidden] { display: none; }
#notificationsDropdown { position: fixed; top: var(--notifications-top, 80px); right: var(--notifications-right, 16px); z-index: 121; display: flex; flex-direction: column; width: min(430px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 120px)); border: 1px solid #353638; border-radius: 24px; background: #111317; box-shadow: 0 24px 80px #0009; overflow: hidden; pointer-events: none; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
#notificationsDropdown.open { pointer-events: auto; transform: translateY(0); }
#notificationsDropdown svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#notificationsDropdown button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
#notificationsDropdown button:focus-visible, #notificationsDropdown summary:focus-visible { outline: 2px solid #b5b5b5; outline-offset: -3px; }
#notificationsDropdown .notifications-heading { flex: 0 0 auto; align-items: center; padding: 24px 22px 18px; border: 0; gap: 10px; }
#notificationsDropdown .notifications-heading > div { min-width: 0; gap: 7px; }
#notificationsDropdown .eyebrow { color: #c3a866; font-size: 9px; letter-spacing: .18em; }
#notificationsDropdown h2 { color: #f4f1e9; font-size: 23px; line-height: 1.2; letter-spacing: -.04em; margin: 0; }
#notificationsUnreadSummary { font-size: 12px; color: #969aa3; }
#notificationsDropdown .notifications-close { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #303238; border-radius: 50%; color: #d3d5da; background: #1a1d22; }
.notifications-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 14px 16px 22px; border-bottom: 1px solid #ffffff0c; flex: 0 0 auto; }
.notifications-filters { display: flex; gap: 4px; padding: 3px; border: 1px solid #2b2e34; border-radius: 14px; background: #090b0f; }
#notificationsDropdown .notifications-filters button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; color: #989da6; background: transparent; font-size: 12px; font-weight: 650; white-space: nowrap; }
#notificationsDropdown .notifications-filters button[aria-pressed="true"] { background: #292929; color: #d3d3d3; box-shadow: inset 0 0 0 1px #b5b5b524; }
#notificationsFilterCount { display: inline-block; margin-left: 3px; font-size: 10px; }
#notificationsDropdown .notifications-heading-actions { gap: 1px; }
#notificationsDropdown .notifications-heading-actions button { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #a2a6af; }
@media (hover: hover) and (pointer: fine) { #notificationsDropdown .notifications-heading-actions button:hover:not(:disabled) { color: #d3d3d3; background: #ffffff07; } }
#notificationsDropdown button:disabled { opacity: .3; cursor: default; }
#notificationsDropdown .notifications-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 14px; scrollbar-width: thin; scrollbar-color: #393c43 transparent; }
.notifications-day h3 { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: #838994; margin: 16px 12px 9px; }
#notificationsDropdown .notification-item { border: 0; border-radius: 16px; margin: 3px 0; background: transparent; }
#notificationsDropdown .notification-item.unread { background: #d3b46a09; }
@media (hover: hover) and (pointer: fine) { #notificationsDropdown .notification-item:hover { background: #ffffff06; } }
#notificationsDropdown .notification-open { grid-template-columns: 46px minmax(0,1fr); gap: 12px; padding: 16px 44px 16px 12px; align-items: start; min-height: 94px; }
#notificationsDropdown .notification-avatar { position: relative; display: block; width: 46px; height: 46px; }
#notificationsDropdown .notification-avatar .avatar { width: 46px; height: 46px; min-width: 46px; border-radius: 50%; overflow: hidden; font-size: 18px; }
#notificationsDropdown .notification-message-icon { position: absolute; right: -3px; bottom: -2px; display: grid; place-items: center; width: 20px; height: 20px; background: #d3b46a; color: #1b1b16; border: 2px solid #111317; border-radius: 50%; }
#notificationsDropdown .notification-message-icon svg { width: 12px; height: 12px; stroke-width: 2; }
#notificationsDropdown .notification-copy { gap: 4px; }
.notification-row-title { display: flex; align-items: center; gap: 8px; }
#notificationsDropdown .notification-copy strong { font-size: 13px; font-weight: 700; color: #eceef2; overflow-wrap: anywhere; }
.notification-unread-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; background: #d3b46a; }
.notification-kind { font-size: 11px; color: #989eaa; line-height: 1.4; }
#notificationsDropdown .notification-copy small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; color: #c1c5cd; }
#notificationsDropdown .notification-copy time { font-size: 10px; margin-top: 4px; color: #838994; }
#notificationsDropdown .notification-delete { top: 12px; right: 1px; transform: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #686e79; display: grid; place-items: center; }
@media (hover: hover) and (pointer: fine) { #notificationsDropdown .notification-delete:hover { background: #ff89890a; color: #ffb0b0; } }
.notifications-empty { display: grid; place-items: center; text-align: center; padding: 42px 24px; min-height: 240px; }
.notifications-empty-symbol { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #d3b46a30; border-radius: 20px; color: #d3b46a; background: #d3b46a08; margin-bottom: 18px; }
#notificationsDropdown .notifications-empty-symbol svg { width: 28px; height: 28px; }
.notifications-empty strong { font-size: 17px; color: #eceef2; }
.notifications-empty p { font-size: 12px; line-height: 1.6; color: #969ca8; margin: 9px 0 0; max-width: 230px; }
.notifications-settings { flex: 0 0 auto; border-top: 1px solid #ffffff0c; background: #0d0f13; }
.notifications-settings summary { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 12px 22px; color: #a3a9b4; font-size: 12px; cursor: pointer; list-style: none; }
.notifications-settings summary::-webkit-details-marker { display: none; }
.notifications-chevron { margin-left: auto; transition: transform .18s; }
.notifications-settings[open] .notifications-chevron { transform: rotate(180deg); }
#notificationsDropdown .push-notification-settings { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 0 22px 18px; border: 0; background: transparent; }
#notificationsDropdown .push-notification-settings small { font-size: 11px; line-height: 1.5; color: #8e95a1; }
#notificationsDropdown .push-notification-actions { display: flex; gap: 8px; }
#notificationsDropdown .push-notification-actions button { min-height: 44px; padding: 0 16px; border-color: #373b43; border-radius: 12px; font-size: 12px; background: #1a1d22; }
#notificationsDropdown [hidden] { display: none !important; }
@media (max-width: 760px) {
  body.notifications-visible { overflow: hidden; }
  body #notificationsDropdown, body.standalone-app #notificationsDropdown { position: fixed; top: max(12px, env(safe-area-inset-top, 0px)); right: 8px; left: 8px; bottom: auto; width: auto; max-height: min(85dvh, calc(100dvh - max(24px, env(safe-area-inset-top, 0px)) - max(8px, env(safe-area-inset-bottom, 0px)))); border-radius: 26px; transform: translateY(-14px); }
  body #notificationsDropdown.open { transform: translateY(0); }
  #notificationsDropdown .notifications-heading { padding: 22px 18px 17px; }
  .notifications-toolbar { padding-left: 14px; padding-right: 10px; }
}
@media (max-width: 350px) {
  #notificationsDropdown .notifications-filters button { padding: 0 8px; font-size: 11px; }
  #notificationsDropdown h2 { font-size: 21px; }
  #notificationsDropdown .notifications-heading-actions button { min-width: 44px; }
  .notifications-toolbar { padding-left: 10px; padding-right: 6px; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  #notificationsDropdown, .notifications-chevron { transition: none; }
}

/* Preferences belong to the account; the device permission remains a separate control. */
#notificationsDropdown .notifications-settings[open]{flex:0 1 auto;min-height:0;overflow-y:auto;max-height:min(65dvh,calc(100dvh - 260px));overscroll-behavior:contain}
#notificationsDropdown .notification-preferences{padding:2px 20px 18px}
#notificationsDropdown .notification-preferences-heading{display:flex;align-items:center;justify-content:space-between;margin:14px 0 8px;border-top:1px solid #ffffff10;padding-top:18px;gap:12px}
#notificationsDropdown .notification-preferences-heading>span{font-size:9px;font-weight:700;letter-spacing:.15em;color:#c9b17a}
#notificationsDropdown .notification-preferences-heading>small{font-size:10px;color:#858e9b}
#notificationsDropdown .notification-preference-row{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #ffffff08;cursor:pointer}
#notificationsDropdown .notification-preference-symbol{display:grid;place-items:center;width:32px;height:32px;flex:none;border:1px solid #d2b97820;border-radius:10px;background:#d2b97808;color:#d4bc80;font-size:20px}
#notificationsDropdown .notification-preference-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
#notificationsDropdown .notification-preference-copy strong{font-size:12px;color:#e4e8ed;font-weight:600}
#notificationsDropdown .notification-preference-copy small{font-size:10px;line-height:1.5;color:#8e99a8}
#notificationsDropdown .notification-preference-switch{position:relative;flex:none;width:42px;height:25px}
#notificationsDropdown .notification-preference-switch input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
#notificationsDropdown .notification-preference-switch>span{display:block;position:absolute;inset:0;border:1px solid #ffffff24;border-radius:20px;background:#252b34;transition:background .16s,border-color .16s}
#notificationsDropdown .notification-preference-switch>span::after{content:"";position:absolute;left:3px;top:3px;width:17px;height:17px;border-radius:50%;background:#aeb5bf;transition:transform .16s,background .16s}
#notificationsDropdown .notification-preference-switch input:checked+span{background:#bababa;border-color:#bababa}
#notificationsDropdown .notification-preference-switch input:checked+span::after{transform:translateX(17px);background:#171b21}
#notificationsDropdown .notification-preference-switch input:disabled+span{opacity:.42}
#notificationsDropdown .notification-preference-switch input:focus-visible+span{outline:2px solid #d6d6d6;outline-offset:3px}
#notificationsDropdown #notificationPreferencesStatus{font-size:10px;line-height:1.6;color:#9ca5b2;margin:12px 0 0}
#notificationsDropdown #retryNotificationPreferences{font-size:11px;padding:7px 0;border:0;background:transparent;color:var(--ds-text);text-decoration:underline;min-height:36px}
#notificationsDropdown .notification-system-symbol{display:grid;place-items:center;width:42px;height:42px;border:1px solid #d0b57433;border-radius:14px;background:#d0b5740e;color:#d8bf80;font-size:23px}
@media(prefers-reduced-motion:reduce){#notificationsDropdown .notification-preference-switch>span,#notificationsDropdown .notification-preference-switch>span::after{transition:none}}

/* Activity reads as one full page on phones and a compact panel on desktop. */
#notificationsDropdown#notificationsDropdown { --row-muted:color-mix(in srgb,var(--bb2-ink) 58%,transparent); inset:0; width:100%; max-width:none; height:100dvh; max-height:none; border:0; border-radius:0; background:var(--bb2-canvas) !important; box-shadow:none; }
#notificationsDropdown#notificationsDropdown .notifications-heading { display:grid; grid-template-columns:44px 1fr 44px; align-items:center; gap:0; min-height:48px; margin:0; padding:max(4px,var(--pwa-safe-top,env(safe-area-inset-top,0px))) 4px 4px; border-bottom:.5px solid var(--bb2-line); }
#notificationsDropdown#notificationsDropdown .notifications-heading > div { display:block; grid-column:2; grid-row:1; text-align:center; }
#notificationsDropdown#notificationsDropdown .notifications-heading .eyebrow, #notificationsUnreadSummary { display:none; }
#notificationsDropdown#notificationsDropdown h2 { color:var(--bb2-ink); font:600 17px/1.2 var(--ds-font); letter-spacing:-.01em; }
#notificationsDropdown#notificationsDropdown .notifications-close { grid-column:1; grid-row:1; width:44px; height:44px; border:0; border-radius:50%; background:transparent; color:var(--bb2-ink); box-shadow:none; }
#notificationsDropdown#notificationsDropdown .notifications-close svg { width:22px; height:22px; stroke-width:2; }
#notificationsDropdown#notificationsDropdown .notifications-toolbar { padding:12px 8px 8px 16px; border:0; }
#notificationsDropdown#notificationsDropdown .notifications-filters { gap:8px; padding:0; border:0; border-radius:0; background:transparent; }
#notificationsDropdown#notificationsDropdown .notifications-filters button { min-height:34px; padding:0 14px; border-radius:10px; background:color-mix(in srgb,var(--bb2-ink) 11%,transparent); color:var(--bb2-ink); box-shadow:none; font-size:14px; font-weight:600; }
#notificationsDropdown#notificationsDropdown .notifications-filters button[aria-pressed="true"] { background:var(--bb2-ink); color:var(--bb2-canvas); }
#notificationsFilterCount { margin-left:2px; font-size:14px; font-weight:400; opacity:.65; font-variant-numeric:tabular-nums; }
#notificationsDropdown#notificationsDropdown .notifications-heading-actions button { color:var(--bb2-ink); background:transparent; border-radius:50%; }
#notificationsDropdown#notificationsDropdown .notifications-pending-entry { display:grid; grid-template-columns:44px minmax(0,1fr) 18px; align-items:center; gap:12px; width:auto; min-height:60px; margin:0 16px; padding:8px 0; border:0; border-bottom:.5px solid var(--bb2-line); border-radius:0; background:transparent; color:var(--bb2-ink); text-align:left; }
#notificationsDropdown#notificationsDropdown .notifications-pending-entry > svg:first-child { box-sizing:border-box; width:44px; height:44px; padding:11px; border-radius:50%; background:color-mix(in srgb,var(--bb2-ink) 11%,transparent); }
#notificationsDropdown#notificationsDropdown .notifications-pending-entry strong { font-size:15px; font-weight:600; }
#notificationsDropdown#notificationsDropdown .notifications-pending-entry small { color:var(--row-muted); font-size:13px; }
#notificationsDropdown#notificationsDropdown .notifications-list { padding:0 16px 20px; }
#notificationsDropdown#notificationsDropdown .notifications-day h3 { margin:16px 0 4px; color:var(--bb2-ink); font-size:16px; font-weight:700; letter-spacing:0; text-transform:none; }
#notificationsDropdown#notificationsDropdown .notification-item, #notificationsDropdown#notificationsDropdown .notification-item.unread { position:relative; margin:0; border-radius:0; background:transparent; }
#notificationsDropdown#notificationsDropdown .notification-open { grid-template-columns:44px minmax(0,1fr); gap:12px; min-height:64px; padding:10px 36px 10px 0; align-items:center; background:transparent; }
#notificationsDropdown#notificationsDropdown .notification-avatar, #notificationsDropdown#notificationsDropdown .notification-avatar .avatar { width:44px; height:44px; min-width:44px; }
#notificationsDropdown#notificationsDropdown .notification-copy { gap:1px; }
#notificationsDropdown#notificationsDropdown .notification-copy strong { color:var(--bb2-ink); font-size:14px; font-weight:600; }
#notificationsDropdown#notificationsDropdown .notification-kind { color:var(--row-muted); font-size:13px; }
#notificationsDropdown#notificationsDropdown .notification-copy small { color:var(--bb2-ink); font-size:14px; line-height:1.3; }
#notificationsDropdown#notificationsDropdown .notification-copy time { margin-top:1px; color:var(--row-muted); font-size:13px; }
.notification-unread-dot { width:8px; height:8px; flex-basis:8px; background:#0a84ff; }
#notificationsDropdown#notificationsDropdown .notification-delete { top:50%; right:-10px; transform:translateY(-50%); color:var(--row-muted); background:transparent; }
#notificationsDropdown#notificationsDropdown .notification-delete svg { width:18px; height:18px; }
#notificationsDropdown#notificationsDropdown .notifications-empty { min-height:300px; }
#notificationsDropdown#notificationsDropdown .notifications-empty-symbol { width:64px; height:64px; border:1.5px solid var(--bb2-ink); border-radius:50%; background:transparent; color:var(--bb2-ink); }
#notificationsDropdown#notificationsDropdown .notifications-empty strong { color:var(--bb2-ink); font-size:20px; font-weight:700; }
#notificationsDropdown#notificationsDropdown .notifications-empty p { color:var(--row-muted); font-size:14px; line-height:1.4; }
#notificationsDropdown#notificationsDropdown .notifications-settings { background:var(--bb2-canvas); border-top:.5px solid var(--bb2-line); padding-bottom:var(--pwa-safe-bottom,env(safe-area-inset-bottom,0px)); }
#notificationsDropdown#notificationsDropdown .notifications-settings summary { min-height:52px; padding:8px 16px; color:var(--bb2-ink); font-size:15px; }
@media (min-width:761px) { #notificationsDropdown#notificationsDropdown { inset:var(--notifications-top,80px) var(--notifications-right,16px) auto auto; width:420px; height:min(640px,calc(100dvh - var(--notifications-top,80px) - 16px)); border:.5px solid var(--bb2-line-strong); border-radius:16px; overflow:hidden; } }
