/* One brand signature, directly above the profile title. */
#profile-screen>.screen-heading{padding-top:4px}
#profile-screen>.screen-heading>div:first-child{padding-top:0}
#profile-screen .profile-brand-logo{display:block;width:76px;height:14px;max-width:none;margin:0 0 7px;mix-blend-mode:screen}
#profile-screen .screen-heading>.notification-logo-row{inset:0 0 auto auto;width:44px}
#profile-screen .profile-toolbar{margin-top:48px}
#profile-screen #profileSettings,#profile-screen #profileBasket{background:#25222e;border-color:#b49ac333;color:#d4bfee}
#profile-screen .profile-website{padding:20px;margin:22px 0 8px;border:1px solid #b39ac22e;border-radius:18px;background:linear-gradient(120deg,#25212e,#17221e);box-shadow:none}
#profile-screen .profile-website-kicker{font-size:9px;letter-spacing:.12em;font-weight:650;color:#bca8d1}
#profile-screen .profile-website h3{font:800 26px/1.05 'Barlow Condensed',sans-serif;color:#f3edf8;margin:12px 0 8px;letter-spacing:-.02em}
#profile-screen .profile-website-copy{color:#b8c7bb;font-size:13px;line-height:1.6;margin:0 0 16px}
#profile-screen .profile-website-link{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#cdb5eb;color:#282030;padding:13px 15px;min-height:46px;box-sizing:border-box;border-radius:10px;text-decoration:none;font-size:14px;font-weight:700}
#profile-screen .profile-website-link>span:last-child{font-size:20px}
#profile-screen .profile-install{margin-top:16px;border-top:1px solid #ffffff12;padding-top:13px;color:#b6c3ba;font-size:12px}
#profile-screen .profile-install summary{cursor:pointer;min-height:30px;line-height:1.5;color:#c6b4dc;font-size:12px}
#profile-screen .profile-install p{font-size:12px;line-height:1.6;color:#a9b8ad}
#profile-screen .profile-install button{border:1px solid #a9dfc53a;border-radius:10px;background:#a9dfc510;color:#bce6d4;padding:11px;font-size:13px}
/* Shared panel surfaces and readable headings. */
:is(#settingsDialog,#settingsPrivacyDialog,#ageSettingsDialog,#achievementDialog,#rallyBasketDialog){box-sizing:border-box;width:min(460px,calc(100% - 28px));max-height:86dvh;padding:22px;border:1px solid #b39ac23b;border-top:3px solid #cdb5eb;border-radius:22px;background:radial-gradient(ellipse at top right,#59406d20,transparent 45%),#141b18;color:#f4f5ef;box-shadow:0 24px 80px #0009;overflow:auto;scrollbar-color:#655270 #141b18}
:is(#settingsDialog,#settingsPrivacyDialog,#ageSettingsDialog,#achievementDialog,#rallyBasketDialog)::backdrop{background:#000b;backdrop-filter:blur(6px)}
:is(#settingsDialog,#settingsPrivacyDialog,#ageSettingsDialog,#achievementDialog,#rallyBasketDialog) .follow-dialog-heading{gap:12px;margin-bottom:20px}
:is(#settingsDialog,#settingsPrivacyDialog,#ageSettingsDialog,#achievementDialog,#rallyBasketDialog) .follow-dialog-heading h3{font:italic 800 30px/1.05 'Barlow Condensed',sans-serif;letter-spacing:-.02em;text-transform:uppercase;color:#e7d9f5;margin:0}
:is(#settingsDialog,#settingsPrivacyDialog,#ageSettingsDialog,#achievementDialog,#rallyBasketDialog) .follow-dialog-heading button{display:grid;place-items:center;min-width:44px;min-height:44px;border:0;border-radius:10px;background:#cdb5eb0b;color:#d3bdeb;font-size:13px;padding:9px;box-shadow:none}
:is(#settingsDialog,#settingsPrivacyDialog,#ageSettingsDialog,#achievementDialog,#rallyBasketDialog) button:focus-visible,:is(#rallyBasketDialog,#settingsDialog) a:focus-visible{outline:2px solid #cdb5eb;outline-offset:3px}
#settingsDialog .friend-tabs{border-color:#ffffff20}
#settingsDialog .friend-tabs button{color:#aab8ae;font-size:14px}
#settingsDialog .friend-tabs button[aria-selected=true]{color:#efe7f7}
#settingsDialog .friend-tabs button[aria-selected=true]:after{background:#cdb5eb}
#settingsDialog .settings-identity{border-color:#ffffff12}
#settingsDialog .settings-identity>span{color:#bca7d1}
#settingsDialog #settingsEmail{color:#e3e8e0;overflow-wrap:anywhere}
#settingsDialog #accountSettings>button,#settingsDialog .settings-privacy{font-size:14px;line-height:1.5;min-height:56px;color:#e0e5dc;border-color:#ffffff12}
#settingsDialog #accountSettings>button:before,#settingsDialog .settings-privacy:before{background:#c3abd9}
#settingsDialog #accountSettings>button:after,#settingsDialog .settings-privacy:after{border-color:#a9c8b9}
#settingsDialog #accountSettings>button:hover,#settingsDialog .settings-privacy:hover{color:#d8c1f1}
#settingsDialog #accountSettings>#settingsSignOut{border-color:#ffffff16;color:#c4b3d6}
#settingsDialog #accountSettings>#settingsDeleteAccount{color:#e3abae}
#settingsDialog #accountSettings>#settingsDeletionRequests{color:#cdb5eb;border-color:#ffffff16}
#settingsDialog .notification-choice{color:#e0e5dc}
#settingsDialog .notification-choice input{background:#29322e;border-color:#7e9286}
#settingsDialog .notification-choice input:checked{background:#cdb5eb;border-color:#cdb5eb}
#settingsDialog .notification-choice input:checked:before{background:#302239}
#settingsDialog #notificationForm>button{background:#cdb5eb;color:#282030;border-radius:11px;font-size:13px}
#settingsDialog #settingsPreferencesStatus{color:#b9d5c7}
#settingsPrivacyDialog .follow-dialog-heading{background:#141b18}
#ageSettingsDialog button:not(.follow-dialog-heading button){background:#cdb5eb;color:#282030;border-radius:11px}
#ageSettingsDialog input{accent-color:#cdb5eb}
/* Private inbox and crisp conversation bubbles. */
#messagesHub{background:radial-gradient(ellipse at top right,#59406d16,transparent 45%),#141b18;border-color:#b39ac23b;border-top:3px solid #cdb5eb;border-radius:22px;color:#f4f5ef}
#messagesHub::backdrop{background:#000b;backdrop-filter:blur(6px)}
#messagesHub #messagesHubTitle{font:italic 800 30px/1.05 'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:-.02em;color:#e7d9f5}
#messagesHub #messagesHubClose{background:#cdb5eb0b;color:#d3bdeb;border-radius:10px;width:44px;height:44px;min-height:44px}
#messagesHub .messages-hub-tabs{border-color:#ffffff20}
#messagesHub .messages-hub-tabs button{font-size:13px;color:#b0bfb4}
#messagesHub .messages-hub-tabs button[aria-selected=true]{color:#eee6f7}
#messagesHub .messages-hub-tabs button[aria-selected=true]:after{background:#cdb5eb}
#messagesHub #dmSearch{background:#1c2421;border:1px solid #b39ac22e;border-radius:11px;color:#eff2eb}
#messagesHub #dmSearch::placeholder{color:#b3b9b5}
#messagesHub #dmHome>.social-section-heading button{background:#cdb5eb;color:#282030;border-radius:10px;width:40px;height:40px}
#messagesHub .social-thread{border-color:#ffffff12;padding:16px 0}
#messagesHub .social-thread:hover{background:#cdb5eb06}
#messagesHub .social-thread>.dm-chat-avatar,#messagesHub .dm-chat-avatar{background:#393044;color:#eadbf7;border:1px solid #cdb5eb33}
#messagesHub .dm-thread-copy p{color:#b5c2b8;line-height:1.5}
#messagesHub .dm-thread-meta small{color:#b7a8c5}
#messagesHub .dm-thread-meta .social-request-label{color:#cdb5eb}
#messagesHub #dmChat>.social-section-heading{border-color:#ffffff15}
#messagesHub #dmChat>.social-section-heading>.social-small{color:#cdb5eb;min-width:44px;min-height:44px;font-size:20px}
#messagesHub:has(#dmChat:not([hidden])) #messagesHubTitle{color:#bca8d0}
#messagesHub #dmMessages{background:radial-gradient(ellipse at top right,#59406d14,transparent 65%)}
#messagesHub .social-message-row .social-message{background:#29362f;color:#eff4ee;border:1px solid #b5d2c31a;border-radius:14px 14px 14px 4px;padding:12px 14px 9px;box-shadow:none}
#messagesHub .social-message-row.mine .social-message{background:#d1bdeb;color:#2b2233;border:1px solid #e5d8f2;border-radius:14px 14px 4px 14px}
#messagesHub .social-message p{font-size:14px;line-height:1.6}
#messagesHub .social-message small{font-size:10px;color:#b6cbbb}
#messagesHub .social-message.mine small{color:#584666}
#messagesHub .social-message-options{color:#b7cec0;font-size:13px;width:28px;height:28px;min-height:28px;border-radius:7px}
#messagesHub #dmRequest{background:#292232;border-color:#b39ac244;border-radius:12px}
#messagesHub #dmRequest p{color:#d8c9e5;line-height:1.6;font-size:13px}
#messagesHub #dmRequest button{background:#cdb5eb;color:#282030;border-radius:9px;min-height:40px}
#messagesHub #dmOlder{color:#cbb4e0;font-size:12px}
#messagesHub .social-send{background:#141b18;border-color:#ffffff15}
#messagesHub #dmText{background:#1e2823;border-color:#b39ac23d;border-radius:12px;color:#f1f4ed}
#messagesHub #dmText::placeholder{color:#aab9ae}
#messagesHub #dmSend,#messagesHub #dmSend:hover{background:#cdb5eb;color:#282030;border-radius:12px}
#messagesHub button:focus-visible,#messagesHub textarea:focus-visible,#messagesHub input:focus-visible{outline-color:#cdb5eb}
#messagesHub #dmListStatus,#messagesHub #dmStatus{color:#b9cbbf}
/* Trophy collection: keep the artwork colourful, let the panel stay quiet. */
#achievementDialog #badgeCount{color:#cdb5eb;font-size:13px;line-height:1.6;margin:0 0 18px}
#achievementDialog #badgeList .trophy-achievement{gap:14px;padding:18px 0;border-color:#ffffff14}
#achievementDialog #badgeList .trophy-achievement h4{font-size:15px;color:#f0edf4;line-height:1.4}
#achievementDialog #badgeList .trophy-achievement p{font-size:13px;line-height:1.6;color:#b8c6bd}
#achievementDialog #badgeList .trophy-achievement small{font-size:12px;color:#a9b9ae}
#achievementDialog #badgeList .trophy-achievement.earned small{color:#bfe4d1}
#achievementDialog #badgeList .trophy-hard h4{color:#e8d099}
#achievementDialog #badgeList .trophy-icon{flex-basis:68px;width:68px;height:68px}
#achievementDialog .passport-achievements{border-color:#b39ac22e;background:#cdb5eb08;color:#e6daef}
.achievement-toast{background:#25212d;border-color:#cdb5eb;color:#f4f0f7}
.achievement-toast small{color:#cdb5eb}
/* Basket and earned rewards. */
#rallyBasketDialog .reward-shop-link{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#cdb5eb;color:#282030;border:0;border-radius:11px;padding:14px 16px;font-size:14px;line-height:1.4;font-weight:700;text-decoration:none;margin:0 0 22px}
#rallyBasketDialog .reward-shop-link:after{content:'↗';font-size:20px}
#rallyBasketDialog #rallyDiscountDetails{border:1px solid #b39ac22e;border-radius:13px;padding:16px;background:#ffffff03}
#rallyBasketDialog summary{color:#e0d2ec;font-size:14px;font-weight:600;line-height:1.5;cursor:pointer}
#rallyBasketDialog :is(.reward-help,#rallyDiscountStatus){color:#b5c4ba;font-size:12px;line-height:1.7}
#rallyBasketDialog .reward-code-card{background:#25212e;border:1px solid #b39ac238;border-radius:13px;padding:16px;color:#f0e9f7;overflow-wrap:anywhere}
#rallyBasketDialog .reward-code-card strong{font-size:14px;line-height:1.5;color:#eee5f6}
#rallyBasketDialog .reward-code-card code{background:#141b18;border:1px dashed #b39ac266;color:#e0c5fa;border-radius:9px;padding:12px;white-space:normal}
#rallyBasketDialog .reward-code-card button,#rallyBasketDialog .reward-code-card a{background:#cdb5eb;color:#282030;border:0;border-radius:9px;font-size:12px;min-height:40px;padding:11px;text-decoration:none}
#rallyBasketDialog .passport-reward-journey{background:transparent;border:0;padding:0;margin-top:26px}
#rallyBasketDialog .passport-reward-journey h3{color:#e8ddf3;font-size:20px}
#rallyBasketDialog .passport-reward-journey>p{color:#b7c8bd;font-size:13px}
#rallyBasketDialog .passport-reward-step{border-color:#ffffff16;background:#ffffff03;border-radius:12px}
#rallyBasketDialog .passport-reward-step small{color:#baa4d0}
#rallyBasketDialog .passport-reward-step strong{color:#eee7f5}
#rallyBasketDialog .passport-reward-step span{color:#b7c8bd}
#rallyBasketDialog .passport-reward-step b{color:#b6d6c6}
#rallyBasketDialog .passport-reward-terms{color:#b7c8bd;font-size:12px;line-height:1.6}
@media(max-width:600px){#messagesHub{border-radius:0;border:0;border-top:3px solid #cdb5eb}}
@media(max-width:350px){:is(#settingsDialog,#achievementDialog,#rallyBasketDialog){padding:18px}#achievementDialog #badgeList .trophy-icon{flex-basis:56px;width:56px;height:56px}#profile-screen .profile-website{padding:17px}}
#settingsDialog #closeSettings{width:44px;height:44px;min-width:44px;border:0;border-radius:10px;background:#cdb5eb0b;color:#d3bdeb}

/* Official direct-message composer matches the refreshed private chats. */
#officialCompose{width:min(480px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:22px;border:1px solid #b39ac238;border-top:3px solid #cdb5eb;border-radius:20px;background:#171e1b;color:#eff2ed;box-shadow:0 24px 80px #0008;overflow:auto;overscroll-behavior:contain;scroll-padding:20px}
#officialCompose::backdrop{background:#080b0bd9;backdrop-filter:blur(5px)}
#officialCompose .social-heading{gap:12px;margin-bottom:18px}
#officialCompose .social-heading h3{font-size:22px;line-height:1.25;letter-spacing:-.035em;color:#f0e9f6}
#officialCompose .social-close{flex-shrink:0;width:44px;height:44px;min-height:44px;border-radius:11px;background:#cdb5eb0b;color:#d3bdeb;font-size:26px}
#officialCompose form{display:flex;flex-direction:column;min-width:0}
#officialCompose .official-compose-identity{display:flex;align-items:center;gap:11px}
#officialCompose .official-compose-avatar{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:12px;background:#393044;border:1px solid #cdb5eb33;color:#eadbf7;font-size:18px;font-weight:750}
#officialCompose .official-compose-identity strong{font-size:14px;font-weight:650;color:#e4d7f0}
#officialCompose form>p{margin:10px 0 20px;color:#afbeb4;font-size:12px;line-height:1.6}
#officialCompose label{font-size:12px;font-weight:600;color:#cbb6de;margin-bottom:8px}
#officialCompose textarea{display:block;box-sizing:border-box;width:100%;height:140px;min-height:100px;max-height:28dvh;resize:vertical;margin:0 0 16px;padding:14px;border:1px solid #b39ac23d;border-radius:12px;background:#1e2823;color:#f1f4ed;caret-color:#cdb5eb;font:inherit;font-size:16px;line-height:1.6}
#officialCompose textarea::placeholder{color:#aab9ae}
#officialCompose textarea:focus{outline:2px solid #cdb5eb;outline-offset:2px;border-color:transparent}
#officialCompose .social-button{align-self:stretch;margin:0;min-height:46px;padding:12px 18px;border:0;border-radius:11px;background:#cdb5eb;color:#282030;font-size:14px;font-weight:700}
#officialCompose .social-button:hover{background:#ddc9f5}
#officialCompose button:focus-visible{outline:2px solid #cdb5eb;outline-offset:3px}
#officialCompose form>p[role=status]{margin:12px 0 0;color:#d4c1e6}
#officialCompose form>p[role=status]:empty{display:none}
@media(max-height:550px){#officialCompose{padding:16px;margin:12px auto;max-height:calc(100dvh - 24px)}#officialCompose .social-heading{margin-bottom:10px}#officialCompose form>p{margin:8px 0 12px}#officialCompose textarea{height:100px;min-height:72px}}

/* Use the sender's profile image in both message composers and sent bubbles. */
#officialCompose .official-compose-identity>.dm-chat-avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;overflow:hidden;background:#393044;color:#eadbf7;border:1px solid #cdb5eb33;font-size:13px}
#officialCompose .dm-chat-avatar img{display:block;width:100%;height:100%;object-fit:cover}
#messagesHub .dm-compose-sender{display:block;flex:0 0 30px;align-self:flex-end;margin-bottom:9px}
#messagesHub .dm-compose-sender .dm-chat-avatar{width:30px;height:30px;font-size:10px}
#messagesHub .social-message-row.mine>.dm-chat-avatar{display:grid}
