/* A familiar inbox, in MyFittys blue. */
.models-unlock{display:flex;justify-content:center;margin:28px 0 36px}
.models-unlock #unlockFittys{width:min(100%,340px);min-height:52px;padding:14px 28px;border:1px solid #176bff;border-radius:999px;background:linear-gradient(135deg,#176bff,#1157d8);color:#fff;font:700 16px/1.4 'DM Sans',sans-serif;box-shadow:inset 0 1px 0 #ffffff45,0 5px 18px #176bff26;cursor:pointer}
.models-unlock #unlockFittys:hover{background:#1157d8}
.models-unlock #unlockFittys:focus-visible{outline:3px solid #176bff;outline-offset:4px}
.topbar .header-chat{display:grid;place-items:center;flex-shrink:0;width:52px;height:52px;border:1px solid #dfe7f2;border-radius:50%;background:white;color:#176bff;box-shadow:0 3px 14px #176bff10;pointer-events:auto}.head-actions{gap:10px}
#chatPanel{inset:0;margin:auto!important;width:min(1120px,calc(100vw - 48px));height:min(820px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);max-width:none;padding:0;border:1px solid #e0e8f3;border-radius:26px;background:#fff;transform:none;overflow:hidden;box-shadow:0 24px 90px #091c4138}
#chatPanel[open]{display:grid;grid-template-columns:320px minmax(0,1fr)}
.chat-sidebar{display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid #e5ebf3;background:white}
.inbox-heading{display:flex;justify-content:space-between;align-items:center;padding:25px 22px 15px}.section-kicker{font-size:10px;font-weight:800;letter-spacing:2px;color:#2464cd}.inbox-heading h2{font:800 27px/1.2 Manrope,sans-serif;letter-spacing:-1px;margin:5px 0 0}.round-control{border:1px solid #e0e7f1;border-radius:50%;width:36px;height:36px;background:white;color:#50637f;font-size:24px;display:grid;place-items:center;flex-shrink:0}.inbox-search{display:flex;align-items:center;gap:8px;background:#f3f6fa;border:1px solid transparent;border-radius:13px;padding:11px 12px;margin:0 18px;color:#8a97a8}.inbox-search:focus-within{border-color:#70a4ff}.inbox-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;font-size:14px;color:#17273e}.inbox-tabs{display:flex;gap:8px;padding:14px 18px 8px}.inbox-tabs button{border:0;border-radius:99px;background:#f3f6fa;padding:8px 15px;color:#64748b;font-weight:600;font-size:13px}.inbox-tabs .active{color:#165dd0;background:#e9f1ff}.inbox-status{font-size:12px;color:#79879a;padding:0 20px;margin:5px 0 9px}.inbox-status:empty{display:none}.conversation-list{flex:1;overflow-y:auto;min-height:0;padding:0 8px 14px;overscroll-behavior:contain}
.inbox-row{display:flex;align-items:center;gap:11px;width:100%;border:0;background:white;text-align:left;padding:13px 10px;border-radius:13px;color:#152238;min-height:79px}.inbox-row:hover{background:#f5f8fd}.inbox-row.active{background:#eaf2ff}.inbox-row.locked{color:#79879a}.inbox-row.locked .inbox-avatar{filter:grayscale(.55);opacity:.62}.inbox-avatar{width:49px;height:49px;border-radius:50%;object-fit:cover;object-position:50% 22%;flex-shrink:0}.inbox-copy{min-width:0;flex:1}.inbox-copy strong{font-size:15px;font-weight:700;display:flex;align-items:center;gap:5px}.inbox-copy small{display:block;font-size:12px;line-height:1.5;color:#7a879a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.inbox-copy .favourite-mark{font-size:11px;color:#1e6aff}.inbox-meta{align-self:flex-start;padding-top:3px;display:flex;flex-direction:column;align-items:flex-end;gap:10px;font-size:10px;color:#8793a5}.inbox-lock{width:14px;height:14px;color:#7c8da5}.inbox-account{display:flex;align-items:center;gap:10px;background:#fbfcfe;border:0;border-top:1px solid #e8edf4;padding:16px 20px;text-align:left;color:#1f3049}.inbox-account>span:nth-child(2){flex:1}.inbox-account strong{font-size:13px;display:block}.inbox-account small{font-size:11px;display:block;color:#7a889c;margin-top:3px}
.user-photo{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex-shrink:0;border-radius:50%;overflow:hidden;background:#e8f0ff;color:#1d60cc;font-size:13px;font-weight:700}.user-photo img{width:100%;height:100%;object-fit:cover}.user-photo.large{width:74px;height:74px;font-size:23px}.chat-thread{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;background:#f6f8fc}.chat-head{border-bottom:1px solid #e8edf5;background:white;min-height:82px;padding:14px 22px;gap:12px;display:flex;align-items:center;justify-content:space-between}.chat-person{display:flex;align-items:center;gap:12px;flex:1;min-width:0}.chat-person #chatAvatar{width:46px;height:46px;border-radius:50%;flex-shrink:0}.chat-person strong{font-size:17px}.chat-person small{display:block;font-size:12px;margin-top:4px;color:#7c8b9d}.chat-back{display:none}.close-chat{position:static;width:34px;height:34px;font-size:24px;border-radius:50%;border:0;background:#f4f6fa;color:#65758b}.chat-notice{background:transparent;text-align:center;padding:12px;font-size:11px;color:#8a96a7}.chat-thread .messages{flex:1;min-height:60px;overflow:auto;padding:20px 25px;display:flex;flex-direction:column;gap:13px;background-image:radial-gradient(#d8e2f0 0.7px,transparent 0.7px);background-size:20px 20px;overscroll-behavior:contain}.message-row{display:flex;gap:8px;align-items:flex-end;max-width:88%;align-self:flex-start}.message-row.me{align-self:flex-end;flex-direction:row-reverse}.message-avatar{width:29px;height:29px;border-radius:50%;object-fit:cover;object-position:center 20%;flex-shrink:0}.message-row .user-photo{width:29px;height:29px;font-size:10px}.message-row .bubble{margin:0!important;max-width:none!important;padding:12px 15px;border-radius:17px 17px 17px 4px;background:white;color:#25354d;box-shadow:0 1px 2px #1e3e6a09;font-size:14px;line-height:1.6;white-space:pre-wrap;min-width:75px;overflow-wrap:anywhere}.message-row.me .bubble{background:#176bff;color:white;border-radius:17px 17px 4px 17px}.bubble small{display:block;font-size:10px;margin-top:5px;text-align:right;color:#92a0b2}.message-row.me .bubble small{color:#d3e3ff}.message-date{align-self:center;font-size:10px;background:#eaf0f8;color:#71839c;border-radius:99px;padding:5px 11px;margin:5px 0}.chat-thread .typing{margin-left:61px}.chat-thread .quick-replies{padding:10px 20px 2px;margin:0;display:flex;gap:7px;overflow:auto}.quick-replies button{border:1px solid #dbe5f4;background:white;color:#51739f;border-radius:99px;padding:7px 12px;font-size:11px;white-space:nowrap}.chat-thread .composer{display:flex;gap:10px;padding:13px 20px 7px;border:0;background:transparent;margin:0}.composer input{height:48px;min-width:0;flex:1;border:1px solid #e0e7f2;background:white;border-radius:99px;padding:12px 18px;font-size:15px;outline:0}.composer input:focus{border-color:#77aaff}.composer .send{border:0;width:48px;height:48px;border-radius:50%;background:#176bff;color:white;font-size:23px;flex-shrink:0}.chat-thread .message-limit{text-align:center;font-size:10px;margin:3px 12px 13px;color:#8996a9}.chat-thread .chat-unlock{margin:0 20px 14px;width:calc(100% - 40px);font-size:14px}.inbox-empty{font-size:13px;line-height:1.6;text-align:center;color:#7a899e;padding:35px 20px}
/* Account: profile, membership, conversations, settings. */
#accountDialog:not(.auth-screen){width:min(490px,calc(100% - 24px));padding:30px;background:#fff;border-radius:26px}#accountDialog:not(.auth-screen)>.plus-mark{display:none}#accountDialog:not(.auth-screen)>h2{font-size:25px;margin:0 38px 24px 0}.account-profile{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:0 0 24px}.profile-photo-wrap{position:relative;flex-shrink:0}.photo-edit{position:absolute;right:-2px;bottom:-1px;width:25px;height:25px;border:3px solid white;border-radius:50%;background:#176bff;color:white;font-size:18px;display:grid;place-items:center;line-height:1}.account-profile>div:nth-child(2){min-width:0;flex:1}.account-profile h3{font-size:21px;margin:0 0 4px;letter-spacing:-.5px}#accountDialog #accountEmail{font-size:12px;color:#8390a2;margin:0 0 8px;word-break:break-word}.account-inline{background:none;border:0;color:#176bff;font-size:12px;font-weight:600;padding:5px 0;margin-right:12px}.account-profile #avatarStatus{width:100%;font-size:12px;margin:0;color:#647891}.account-profile #avatarStatus:empty{display:none}.account-details{margin:0 0 14px;padding:20px;border:1px solid #dde8fb;border-radius:18px;background:linear-gradient(120deg,#eef5ff,#f8fbff)}.membership-topline{display:flex;align-items:center;justify-content:space-between;gap:10px}.membership-topline strong{font:800 21px Manrope,sans-serif;color:#174883}.membership-badge{font-size:10px;font-weight:600;padding:5px 8px;border-radius:99px;background:white;color:#3270c9}.account-details .allowance-number{font-size:13px;color:#42668f;margin:9px 0 0}.account-details .account-renewal{font-size:11px;color:#7b8fa9;margin:6px 0 0}.account-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}.account-shortcuts button{display:flex;align-items:center;gap:9px;padding:14px;border:1px solid #e3eaf4;border-radius:13px;background:white;color:#294666;font-size:13px;font-weight:600}.account-shortcuts button>span:first-child{font-size:22px;color:#3376d7}.account-shortcuts button>span:last-child{margin-left:auto;color:#9babbe}.account-membership-actions{display:grid;gap:8px}.account-membership-actions button{min-height:43px;font-size:13px;padding:11px}#accountDialog #unlockedSection{margin:24px 0 20px}.account-section-title{display:flex;align-items:center;justify-content:space-between}.account-section-title h3{font-size:15px;margin:0}#accountDialog #unlockHelp{font-size:12px;color:#7c8da4;margin:8px 0 12px}#unlockedChoices{display:flex;flex-wrap:wrap;gap:8px}#unlockedChoices .model-choice{flex-direction:row;padding:7px 12px 7px 7px;gap:8px;font-size:12px;border:1px solid #dbe7f7;border-radius:99px;min-height:43px;opacity:1}#unlockedChoices .model-choice img{width:29px;height:29px;border-radius:50%;object-fit:cover;object-position:center 20%}#unlockedChoices .model-choice:disabled{opacity:1}#unlockedChoices .model-choice.selected{background:#eef5ff;color:#205aa6}.account-settings{border-top:1px solid #e9edf4;padding-top:14px;font-size:13px;color:#72829a}.account-settings summary{cursor:pointer;padding:5px 0}.account-settings .text-button{text-align:left;margin:3px 0;padding-left:0;font-size:12px;min-height:35px}#accountDialog #signOutLink{margin:14px 0 0;padding:8px 0;min-height:36px;font-size:13px;text-align:left;color:#63748d}#accountDialog>.terms-note{font-size:11px!important;text-align:left;margin:12px 0 0}#accountDialog.auth-screen .account-profile,#accountDialog.auth-screen .account-shortcuts,#accountDialog.auth-screen .account-membership-actions,#accountDialog.auth-screen .account-settings{display:none!important}
@media(max-width:700px){#chatPanel{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;inset:0;padding:0;margin:0!important}#chatPanel[open]{display:block}#chatPanel.inbox-view .chat-thread{display:none}#chatPanel:not(.inbox-view) .chat-sidebar{display:none}.chat-sidebar,.chat-thread{height:100%;width:100%;padding-bottom:env(safe-area-inset-bottom)}.chat-sidebar{border:0}.inbox-heading{padding-top:calc(20px + env(safe-area-inset-top))}.chat-back{display:grid;font-size:29px;width:29px;border:0;background:transparent}.chat-head{padding:12px 13px;padding-top:calc(12px + env(safe-area-inset-top));gap:6px;min-height:74px}.chat-person{gap:9px}.chat-person strong{font-size:16px}.chat-person #chatAvatar{width:42px;height:42px}.chat-thread .messages{padding:16px 12px;gap:12px}.message-row{max-width:94%;gap:6px}.message-row .bubble{font-size:14px;padding:10px 12px}.message-avatar,.message-row .user-photo{width:25px;height:25px}.chat-thread .composer{padding:10px 12px 5px;gap:8px}.composer input{font-size:16px}.chat-thread .quick-replies{padding-inline:12px}.chat-thread .message-limit{font-size:10px;margin-bottom:9px}.inbox-row{padding:15px 12px}.inbox-avatar{width:54px;height:54px}.inbox-copy strong{font-size:16px}.inbox-copy small{font-size:13px}.conversation-list{padding-inline:8px}.inbox-account{padding-bottom:18px}.chat-notice{font-size:10px}}
@media(max-width:420px){.topbar .header-chat{width:44px;height:44px}.topbar .head-actions{gap:7px}.topbar #accountBtn{min-width:85px;padding-inline:14px;font-size:14px}.topbar .brand{width:130px}#accountDialog:not(.auth-screen){padding:25px 21px}.account-profile{gap:12px}.user-photo.large{width:66px;height:66px}.account-profile h3{font-size:19px}}

#chatPanel [hidden],#accountDialog [hidden]{display:none!important}

/* Separate dashboard and creator links from adjacent account actions. */
#accountDialog > a.secondary{margin-bottom:12px}
#accountDialog > a.secondary{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(135deg,#176bff,#1157d8);border-color:#176bff;color:#fff;box-shadow:inset 0 1px 0 #ffffff45,0 4px 14px #176bff26;text-decoration:none}
#accountDialog > a.secondary::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(110deg,transparent 25%,#ffffff38 45%,#ffffff70 50%,#ffffff38 55%,transparent 75%);transform:translateX(-130%);animation:account-button-shine 5s ease-in-out infinite}
#accountDialog > a.secondary:hover{background:linear-gradient(135deg,#1260eb,#0e4fc8)}
#accountDialog > a.secondary:focus-visible{outline:3px solid #176bff;outline-offset:4px}
@keyframes account-button-shine{0%,30%{transform:translateX(-130%)}70%,100%{transform:translateX(130%)}}
@media(prefers-reduced-motion:reduce){#accountDialog > a.secondary::before{animation:none;transform:none;opacity:.35}}

/* Compact account utilities; checkout recovery belongs to the action it blocks. */
#accountDialog .account-settings{margin-top:18px;padding-top:14px;font-size:14px}
#accountDialog .account-settings summary{padding:12px 0;color:#53657c;font-weight:600}
#accountDialog .account-settings-actions{display:flex;flex-direction:column;padding:4px 0 8px}
#accountDialog .account-settings-actions .text-button{display:block;width:100%;min-height:44px;margin:0;padding:12px 0;font-size:14px;text-align:left;text-decoration:none}
#accountDialog .account-settings-actions #signOutLink{margin:0;padding:12px 0;color:#53657c}
#accountDialog .account-settings-actions #deleteAccount{border-top:1px solid #edf0f5;color:#a02e2e}
#accountDialog:not(.auth-screen)>.terms-note{margin:12px 0 0;font-size:14px!important;color:#7a8799}
#accountDialog:not(.auth-screen)>.terms-note a{color:#697a90;text-decoration:none}
#accountDialog:not(.auth-screen)>.terms-note a:hover{text-decoration:underline}

#accountDialog.auth-screen #accountCreatorDashboard,#accountCreatorDashboard[hidden]{display:none!important}

/* Separate owner navigation from the creator programme. */
#accountDialog > :is(#accountCreatorDashboard,#accountMasterDashboard){display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;text-align:center;margin:0 0 16px;padding:14px 20px}
#accountDialog.auth-screen #accountMasterDashboard,#accountMasterDashboard[hidden]{display:none!important}

/* Recognisable Google sign-in, with Google's multicolour G. */
#accountDialog #googleSignIn{display:flex;align-items:center;justify-content:center;gap:12px;min-height:52px;padding:10px 20px;background:#4285f4;border:1px solid #4285f4;color:#fff;font-size:16px;font-weight:600;line-height:1.4;box-shadow:0 2px 6px #17488320}
#accountDialog #googleSignIn img{display:block;width:28px;height:28px;flex:0 0 28px;object-fit:contain}
#accountDialog #googleSignIn:hover:not(:disabled){background:#3367d6;border-color:#3367d6}
#accountDialog #googleSignIn:focus-visible{outline:3px solid #174883;outline-offset:3px}
#accountDialog #googleSignIn:disabled{opacity:.55;cursor:not-allowed}

/* Account settings and a separate sign-out action. */
#accountDialog .account-settings h3{font-size:18px;color:#17233a;margin:0 0 16px}
#accountDialog .account-settings .account-membership-actions{display:grid;gap:12px}
#accountDialog .account-settings #cancelRenewal{color:#b4232d;background:#fff;border:1px solid #e6b7bb;border-radius:999px;text-align:center;min-height:48px;font-size:15px;text-decoration:none}
#accountDialog #signOutLink{display:block;width:100%;min-height:50px;margin:20px 0 10px;padding:14px 20px;border:0;border-radius:999px;background:#c72c38;color:white;font-size:16px;font-weight:700;text-align:center;text-decoration:none}
#accountDialog #signOutLink:hover{background:#aa202b}
#accountDialog.auth-screen #signOutLink{display:none!important}
#renewalDialog .cancellation-reasons{border:0;padding:0;display:grid;gap:10px;margin:24px 0;text-align:left}
#renewalDialog .cancellation-reasons legend{font-size:16px;font-weight:700;line-height:1.5;margin-bottom:12px}
#renewalDialog .cancellation-reasons legend span{font-weight:400;color:#64748b}
#renewalDialog .cancellation-reasons label{display:flex;align-items:center;gap:12px;border:1px solid #dce6f5;border-radius:12px;padding:12px;font-size:15px;line-height:1.4;cursor:pointer}
#renewalDialog input[type=radio],#retentionForfeit{width:20px;height:20px;flex:0 0 20px;accent-color:#1968ff}
#renewalDialog .retention-offer{background:#eef5ff;border:1px solid #bcd4ff;padding:20px;border-radius:18px;margin:20px 0}
#renewalDialog .retention-offer strong{font-size:21px;color:#195cc4}
#renewalDialog .retention-offer p{font-size:14px;line-height:1.6}
#renewalDialog #confirmRenewalAction{width:100%;min-height:48px;margin-top:12px}
#renewalDialog [hidden],#retentionForfeitLabel[hidden]{display:none!important}
.retention-forfeit{display:flex;align-items:flex-start;gap:12px;padding:16px;background:#eef5ff;font-size:14px;line-height:1.5;border-radius:12px;margin:16px 0}

/* Destructive settings are deliberately separate from everyday navigation. */
#accountDialog .account-deletion{margin-top:20px;border-top:1px solid #e7edf5;padding-top:8px}
#accountDialog .account-deletion summary{font-size:14px;font-weight:600;color:#53657c;padding:14px 0;cursor:pointer}
#accountDialog .account-deletion p{font-size:14px;line-height:1.6;color:#64748b;margin:4px 0 12px}
#accountDialog .account-deletion #deleteAccount{border:1px solid #e6b7bb;border-radius:12px;padding:12px 16px;text-align:center;min-height:46px;background:#fff7f7;color:#a02e2e}
#accountDialog .account-shortcuts{gap:14px;margin:4px 0 20px}
#accountDialog .account-shortcuts button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:14px 12px;border:1px solid #176bff;border-radius:999px;background:linear-gradient(135deg,#176bff,#1157d8);color:#fff;font-size:15px;font-weight:700;box-shadow:inset 0 1px 0 #ffffff45,0 4px 14px #176bff20}
#accountDialog .account-shortcuts button>span{margin:0;color:#fff;font-size:22px;line-height:1}
#accountDialog .account-shortcuts button:hover{background:#1157d8}
@media(max-width:360px){#accountDialog .account-shortcuts{grid-template-columns:1fr}}

/* Fit the mobile conversation to the visible area above the software keyboard. */
@media(max-width:700px){
 html.mobile-chat-open,html.mobile-chat-open body{overflow:hidden;overscroll-behavior:none}
 #chatPanel{position:fixed;inset:auto 0 auto;top:var(--chat-top,0px);height:var(--chat-height,100dvh);max-height:var(--chat-height,100dvh)}
 #chatPanel .chat-thread{min-height:0;overflow:hidden}
 #chatPanel .messages{min-height:0;flex:1 1 0;overflow-y:auto;overflow-anchor:none;-webkit-overflow-scrolling:touch}
 #chatPanel .chat-head,#chatPanel .composer,#chatPanel .message-limit,#chatPanel .chat-notice{flex-shrink:0}
 #chatPanel,#chatPanel .chat-thread,#chatPanel .chat-head,#chatPanel .chat-actions,#chatPanel .composer,#chatPanel .messages{transition:none}
 #chatPanel .chat-actions{flex-shrink:0}
 #chatPanel .messages{scroll-behavior:auto}
 #chatPanel .composer input{font-size:16px;min-height:44px}
 #chatPanel.keyboard-open .chat-thread{padding-bottom:0}
 #chatPanel.keyboard-open .chat-head{min-height:56px;padding:7px 12px}
 #chatPanel.keyboard-open .chat-person #chatAvatar{width:36px;height:36px}
 #chatPanel.keyboard-open .chat-person small{display:none}
 #chatPanel.keyboard-open .chat-notice{padding:5px 10px;font-size:10px;line-height:1.4}
 #chatPanel.keyboard-open .chat-actions{padding:4px 12px 0;gap:8px;justify-content:flex-end}
 #chatPanel.keyboard-open .chat-actions button{flex:0 1 auto;padding:5px 12px;min-height:36px;font-size:12px}
 #chatPanel.keyboard-open .chat-actions svg{width:16px;height:16px}
 #chatPanel.keyboard-open .composer{padding:6px 12px 8px}
 #chatPanel.keyboard-open .message-limit{display:none}
 #chatPanel.keyboard-open .messages{padding:10px 12px}
}
@media(prefers-reduced-motion:reduce){#chatPanel .chat-head,#chatPanel .chat-actions{transition:none}}

/* Opaque full-screen backing prevents homepage flashes during iOS keyboard motion. */
@media(max-width:700px){
 #chatPanel::backdrop{background:#f6f8fc;opacity:1;backdrop-filter:none}
 #chatPanel{background:#f6f8fc;isolation:isolate;overscroll-behavior:none}
 #chatPanel .messages,#chatPanel .conversation-list{overscroll-behavior-y:none}
 html.mobile-chat-open{background:#f6f8fc;overflow:hidden;overscroll-behavior:none}
 html.mobile-chat-open body{overscroll-behavior:none}
}

/* Fitty replies: outlined speech bubbles pointing towards the sender's photo. */
#chatPanel .message-row.them{gap:12px}
#chatPanel .message-row.them .bubble{position:relative;border:1px solid #9fc2f5;border-radius:17px;background:#fff;box-shadow:0 2px 6px #176bff0a}
#chatPanel .message-row.them .bubble::before{content:"";position:absolute;left:-5px;bottom:11px;width:8px;height:8px;background:#fff;border-left:1px solid #9fc2f5;border-bottom:1px solid #9fc2f5;transform:rotate(45deg);pointer-events:none}

.account-referral{padding:20px;margin:0 0 20px;border:1px solid #dbe5f3;border-radius:18px;background:#f3f7ff;text-align:left}.account-referral h3{margin:0 0 8px}.account-referral p,.account-referral label{font-size:14px;line-height:1.5}.account-referral label{display:block;margin:12px 0}.account-referral input{display:block;width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid #cdd8e9;border-radius:8px;font-size:16px;background:white}.referral-actions{display:flex;gap:8px;flex-wrap:wrap}.referral-actions button{padding:10px 14px;font-size:14px;min-height:44px}.account-referral a{font-weight:600}.account-referral[hidden]{display:none!important}

.account-referral .referral-terms{display:flex;align-items:flex-start;gap:10px;line-height:1.5;padding:12px 0}.account-referral .referral-terms input{flex:0 0 22px;width:22px;height:22px;margin:0;padding:0;accent-color:#1260eb}.account-referral .referral-terms[hidden]{display:none!important}

/* A centred, compact account space on phones; authentication keeps its own layout. */
@media(max-width:600px){
 #accountDialog:not(.auth-screen){width:min(490px,calc(100% - 24px));padding:28px 18px max(22px,env(safe-area-inset-bottom));text-align:center;background:linear-gradient(180deg,#f7faff 0,#fff 180px);scrollbar-width:thin}
 #accountDialog:not(.auth-screen)>h2{margin:8px 28px 22px;font-size:26px;letter-spacing:-.7px}
 #accountDialog:not(.auth-screen) .account-profile{flex-direction:column;gap:12px;margin-bottom:22px}
 #accountDialog:not(.auth-screen) .account-profile>div:nth-child(2){width:100%}
 #accountDialog:not(.auth-screen) .user-photo.large{width:76px;height:76px;box-shadow:0 0 0 5px #fff,0 5px 22px #176bff18}
 #accountDialog:not(.auth-screen) .account-inline{margin:0 6px;min-height:36px}
 #accountDialog:not(.auth-screen) .account-details{padding:22px 16px;margin:0 0 16px;border-radius:22px;border-color:#dce8fb;background:linear-gradient(135deg,#edf4ff,#f0fcff);box-shadow:0 5px 18px #193d7006}
 #accountDialog:not(.auth-screen) .membership-topline{flex-direction:column-reverse;gap:10px}
 #accountDialog:not(.auth-screen) .membership-topline strong{font-size:23px;line-height:1.25;letter-spacing:-.5px}
 #accountDialog:not(.auth-screen) .membership-badge{padding:6px 12px;font-size:11px;line-height:1.3;color:#1763ce;border:1px solid #dbe8fa;white-space:nowrap}
 #accountDialog:not(.auth-screen) .allowance-number{font-size:14px;line-height:1.5;margin-top:12px}
 #accountDialog:not(.auth-screen) .account-renewal{font-size:12px;line-height:1.5;margin-top:8px}
 #accountDialog:not(.auth-screen) .account-referral{position:relative;isolation:isolate;overflow:hidden;padding:25px 16px 18px;margin:0 0 20px;border-radius:22px;background:linear-gradient(160deg,#fff 30%,#f1f8ff);border:1px solid #dce7f8;text-align:center;box-shadow:0 6px 24px #176bff09}
 #accountDialog:not(.auth-screen) .account-referral::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#176bff,#00bbd5);pointer-events:none}
 #accountDialog:not(.auth-screen) .account-referral h3{font-size:23px;letter-spacing:-.5px;line-height:1.25;margin:0 0 10px;color:#14243c}
 #accountDialog:not(.auth-screen) #accountReferralRate{font-size:14px;line-height:1.6;margin:0 auto 18px;max-width:32ch;color:#536781}
 #accountDialog:not(.auth-screen) .account-referral>label:not(.referral-terms){font-size:12px;font-weight:600;color:#526b8a;margin:0 0 12px}
 #accountDialog:not(.auth-screen) #accountReferralLink{margin-top:8px;padding:13px 8px;min-height:48px;border:1px solid #cbdcf3;border-radius:12px;text-align:center;color:#194d96;font:500 14px/1.4 'DM Sans',sans-serif;box-shadow:inset 0 1px 3px #193d7004}
 #accountDialog:not(.auth-screen) .referral-actions{justify-content:center;gap:8px}
 #accountDialog:not(.auth-screen) .referral-actions button{flex:1;min-height:46px;border:0;border-radius:999px;padding:12px 18px;font:700 14px/1.4 'DM Sans',sans-serif;background:linear-gradient(110deg,#176bff,#009dbf);color:white;box-shadow:0 4px 12px #176bff1c;cursor:pointer}
 #accountDialog:not(.auth-screen) .referral-actions button:disabled{box-shadow:none;cursor:not-allowed}
 #accountDialog:not(.auth-screen) #accountReferralStatus{font-size:12px;line-height:1.5;color:#61748e;margin:13px 0}
 #accountDialog:not(.auth-screen) #accountReferralDashboard{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;background:#eaf2ff;border:1px solid #d7e5fb;border-radius:999px;color:#1b5fbe;text-decoration:none;font-size:14px;font-weight:700;line-height:1.4}
 #accountDialog:not(.auth-screen) .referral-terms{text-align:left;font-size:12px}
 #accountDialog:not(.auth-screen) .referral-terms a{color:#1b5fbe}
 #accountDialog:not(.auth-screen) .account-shortcuts button{justify-content:center;gap:8px;min-height:52px;border-radius:16px;background:#f5f9ff;color:#2159a2}
 #accountDialog:not(.auth-screen) .account-section-title{justify-content:center;flex-wrap:wrap;gap:6px 12px}
 #accountDialog:not(.auth-screen) #unlockedChoices{justify-content:center}
 #accountDialog:not(.auth-screen) .account-settings h3{margin-top:6px}
 #accountDialog:not(.auth-screen) .account-deletion summary{text-align:center}
 #accountDialog:not(.auth-screen)>.terms-note{text-align:center;margin-top:18px}
 #accountDialog:not(.auth-screen) :is(#copyAccountReferralLink,#retryAccountReferral,#accountReferralDashboard):focus-visible{outline:3px solid #79b7ff;outline-offset:3px}
}

/* Mobile auth scrolls within the space above the software keyboard. */
@media(max-width:700px){
 #accountDialog.auth-screen.auth-mobile-viewport{position:fixed;inset:auto;top:calc(var(--auth-top,0px) + 8px);left:50%;transform:translateX(-50%);margin:0;width:calc(100% - 24px);max-width:460px;height:auto;max-height:calc(var(--auth-height,100dvh) - 16px);min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding:16px 0 24px;overflow-anchor:none;-webkit-overflow-scrolling:touch;padding:20px 20px max(24px,env(safe-area-inset-bottom));border-radius:24px}
 #accountDialog.auth-screen.auth-mobile-viewport:has(#authForm:not([hidden])) .auth-logo{width:48px;height:48px;margin:0 auto 8px}
 #accountDialog.auth-screen.auth-mobile-viewport:has(#authForm:not([hidden])) h2{font-size:24px;margin:0 36px 14px}
 #accountDialog.auth-screen.auth-mobile-viewport .auth-form input{font-size:16px;scroll-margin-block:24px}
 #accountDialog.auth-screen.auth-mobile-viewport .auth-form label[hidden]{display:none}
}

.relationship-mode{margin:10px 16px;padding:14px 16px;border:1px solid rgba(94,172,235,.24);border-radius:18px;background:rgba(90,162,220,.07);flex-shrink:0}.relationship-mode[hidden]{display:none}.relationship-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.relationship-heading strong{font-size:14px}.relationship-heading small{font-size:12px;opacity:.65}.relationship-choices{display:flex;gap:8px;margin-top:10px}.relationship-choices button{flex:1;padding:10px 8px;border-radius:12px;border:1px solid rgba(120,155,185,.28);background:transparent;color:inherit;font:inherit;font-size:14px;cursor:pointer}.relationship-choices button[aria-pressed=true]{background:linear-gradient(120deg,#187fe0,#00a8cc);color:white;border-color:transparent}.relationship-choices button:focus-visible{outline:2px solid #58c8ff;outline-offset:3px}.relationship-choices button:disabled{opacity:.55;cursor:wait}.sprite.p11{background-image:url('/optimized/matt-primary.webp');background-size:cover;background-position:center 25%}

.relationship-mode{padding:9px 12px;margin:6px 16px;border-radius:14px}.relationship-mode summary{cursor:pointer;font-size:13px;font-weight:600;list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:28px}.relationship-mode summary::-webkit-details-marker{display:none}.relationship-mode summary::after{content:'⌄';font-size:16px;opacity:.65}.relationship-mode[open] summary::after{transform:rotate(180deg)}.relationship-mode summary:focus-visible{outline:2px solid #58c8ff;outline-offset:3px;border-radius:6px}
.chat-thread .typing{margin-left:0;padding:0 25px 10px;gap:8px;align-items:flex-end;flex-shrink:0}.typing-dots{display:flex;align-items:center;gap:4px;min-height:29px;padding:8px 14px;border-radius:17px 17px 17px 4px;background:white;box-shadow:0 1px 2px #1e3e6a09}html[data-theme=dark] .typing-dots{background:#1c2a40}@media(max-width:700px){.chat-thread .typing{padding-left:12px;padding-right:12px}.typing-dots{min-height:25px}}@media(prefers-reduced-motion:reduce){.typing-dots span{animation:none}}

.connection-settings{width:100%;margin:22px 0;text-align:left}.connection-settings[hidden]{display:none}.connection-settings h3{margin:0 0 6px;font-size:18px}.connection-settings>p,.connection-settings>small{font-size:14px;line-height:1.5;color:#64748b}.connection-setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0}.connection-setting-row>strong{font-size:16px}.connection-setting-row>div{display:flex;padding:4px;gap:4px;border-radius:99px;background:#edf2f9}.connection-setting-row button{border:0;border-radius:99px;padding:10px 18px;font:600 14px/1.2 Manrope,sans-serif;color:#64748b;background:transparent;cursor:pointer;min-height:40px}.connection-setting-row button[aria-pressed=true]{background:#1968e8;color:white;box-shadow:0 3px 10px #1968e826}.connection-setting-row button:focus-visible{outline:3px solid #79b7ff;outline-offset:2px}.connection-setting-row button:disabled{opacity:.6;cursor:wait}#connectionSettingsStatus:empty{display:none}html[data-theme=dark] .connection-setting-row>div{background:#1c2a40}html[data-theme=dark] .connection-settings>p,html[data-theme=dark] .connection-settings>small,html[data-theme=dark] .connection-setting-row button{color:#b4c5de}html[data-theme=dark] .connection-setting-row button[aria-pressed=true]{color:white}

.slang-help{display:block;font-size:14px;line-height:1.4;color:#64748b;max-width:32ch;margin-top:5px}.connection-setting-row .slang-toggle{display:flex;align-items:center;gap:8px;min-width:82px;min-height:44px;padding:8px 12px;background:#e2e8f0;color:#334155;flex-shrink:0}.slang-toggle>span{width:18px;height:18px;border-radius:50%;background:currentColor}.connection-setting-row .slang-toggle[aria-checked=true]{background:#1968e8;color:white}.slang-toggle b{font:inherit}#slangSaveStatus:empty{display:none}html[data-theme=dark] .slang-help{color:#b4c5de}html[data-theme=dark] .slang-toggle[aria-checked=false]{background:#1c2a40;color:#b4c5de}
