/* Approved Tushly V3 accents. Neutral surfaces remain readable. */
html:root {
    --tushly-brand-pink: #c92b73;
    --tushly-brand-blue: #2862c6;
    --tushly-bg: #f4f2f5;
    --tushly-border: #e7e4eb;
    --tushly-pink-grad: linear-gradient(#c92b73,#c92b73);
}
html:root body .nav-wrapper a:hover,
html:root body .nav-wrapper a.active,
html:root body .modelsHeaderName > span:first-of-type { color: var(--tushly-brand-blue) !important; }
html:root body #tushlyWallet .tokensHeaderBtn,
html:root body #tushlyWallet a.bal,
html:root body #tushlyWallet a.bal i.balBG { color: var(--tushly-brand-blue) !important; background: #eef3fc !important; }
html:root body #bio2 .videoOptions a.tip,
html:root body #tushlyMobileBar a.tip,
html:root body #bio2 #sendMessage,
html:root body #bio2 #tushlyMobileBar a[data-tooltip*='Gift'] { background: var(--tushly-brand-pink) !important; border-color: var(--tushly-brand-pink) !important; color: #fff !important; }
html:root body #bio2 .videoOptions a.requestPrivateChat,
html:root body #tushlyMobileBar a.requestPrivateChat { color: #9f2157 !important; background: #faeaf2 !important; border-color: #edc8d8 !important; }
html:root body #bio2 #messages li .from { color: var(--tushly-brand-blue) !important; }
html:root body #bio2 #messages li.streamer .from { color: var(--tushly-brand-pink) !important; }
html:root body .profile-container .tab.active { color: var(--tushly-brand-blue) !important; background: #eef3fc !important; }
html:root body :is(.model-rank,.slider-rank-badge,.slider-visit-btn) { background: var(--tushly-brand-pink) !important; color: #fff !important; }
/* Tabs reserve their own space, preserving the mounted player and its controls. */
html:root body #bio2.vdchat-overlay > .container > .col-lg.tushly-has-room-tabs { padding-bottom: 0 !important; box-sizing: border-box !important; }
html:root body #bio2.vdchat-overlay .tushly-has-room-tabs > .videoContainer { height: calc(100% - 40px) !important; }
html:root body #bio2 #tushlyRoomTabs { position: absolute; bottom: 0; left: 0; right: 0; height: 40px; display: flex; align-items: stretch; justify-content: flex-start; gap: 20px; margin: 0; padding: 0 6px; border: 0; background: #f4f2f5; z-index: 30; }
html:root body #bio2 #tushlyRoomTabs :is(button,a) { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #625d70; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0 5px; font: 500 12px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
html:root body #bio2 #tushlyRoomTabs [aria-current='page'],
html:root body #bio2 #tushlyRoomTabs [aria-expanded='true'] { color: var(--tushly-brand-blue); border-bottom-color: var(--tushly-brand-blue); }
html:root body #bio2 #tushlyRoomTabs :focus-visible,
html:root body #bio2 #tushlyBioPanel button:focus-visible { outline: 2px solid var(--tushly-brand-blue); outline-offset: -3px; }
html:root body #bio2 #tushlyBioPanel { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; min-height: 0; background: #fff; color: #292637; border: 0; border-radius: inherit; padding: 18px; box-sizing: border-box; }
html:root body #bio2 #tushlyBioPanel[hidden] { display: none !important; }
html:root body #bio2 #tushlyBioPanel header { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e7e4eb; }
html:root body #bio2 #tushlyBioTitle { flex: 1; font-size: 17px; line-height: 1.4; margin: 0; color: #292637; }
html:root body #bio2 #tushlyBioClose { flex: 0 0 32px; height: 32px; width: 32px; padding: 0; border: 1px solid #e7e4eb; border-radius: 50%; background: #f5f2f6; color: #5d5266; cursor: pointer; font-size: 20px; }
html:root body #bio2 #tushlyBioContent { flex: 1; min-height: 0; overflow: auto; padding-top: 14px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width:1120px) and (orientation:portrait) {
    html:root body #bio2.vdchat-overlay > .container > .col-lg.tushly-has-room-tabs { height: calc(clamp(150px,56.25vw,260px) + 40px) !important; min-height: calc(clamp(150px,56.25vw,260px) + 40px) !important; padding: 0 !important; }
    html:root body #bio2.vdchat-overlay .tushly-has-room-tabs > .videoContainer { height: clamp(150px,56.25vw,260px) !important; }
    html:root body #bio2 #tushlyRoomTabs { justify-content: space-around; gap: 0; padding: 0 8px; }
    html:root body #bio2 #tushlyRoomTabs :is(button,a) { font-size: 11px; padding: 0 6px; }
    html:root body #bio2 #tushlyBioPanel { padding: 12px; }
    html:root body #bio2 #tushlyBioContent { font-size: 12px; }
}
html:root body.tushly-mobile-fullscreen #tushlyRoomTabs { display: none !important; }
/* Full-window mode must outrank the tab layout heights above in both orientations. */
html:root body.tushly-mobile-fullscreen #bio2.vdchat-overlay .tushly-has-room-tabs > .videoContainer {
    position: fixed !important; inset: 0 !important;
    width: 100vw !important; height: 100vh !important; height: 100dvh !important;
    max-height: none !important; margin: 0 !important; border-radius: 0 !important; z-index: 11000 !important;
}
@media (prefers-reduced-motion:reduce) { html:root body #tushlyRoomTabs * { transition: none !important; } }
/* Match the authenticated template's more specific overrides. */
html:root body:has(#bio2) #tushlyWallet .tokensHeaderBtn,
html:root body:has(#bio2) #tushlyWallet a.bal,
html:root body:has(#bio2) #tushlyWallet a.bal i.balBG { color: #2862c6 !important; background: #eef3fc !important; }
html:root body:has(#bio2) #tushlyMobileBar a.tip { background: #c92b73 !important; border-color: #c92b73 !important; color: #fff !important; }
html:root body #bio2 .tushly-private-rate-source { display: none !important; }
html:root body:has(#bio2) .tushly-priced-private { flex-direction: column !important; gap: 1px !important; }
html:root body:has(#bio2) .tushly-priced-private .tushly-private-rate { display: block; font-size: 9px; line-height: 11px; font-weight: 500; white-space: nowrap; }
html:root body:has(#bio2) .tushly-priced-private .tushly-private-rate[hidden] { display: none !important; }
html:root body:has(#bio2) #tushlyMobileBar a.requestPrivateChat { color: #9f2157 !important; background: #faeaf2 !important; border-color: #edc8d8 !important; }
html:root body #tushlySecondaryActions { position: fixed; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 10080; display: flex; flex-direction: column; min-width: 180px; max-width: calc(100vw - 24px); padding: 8px; background: #fff; color: #292637; border: 1px solid #e7e4eb; border-radius: 10px; box-shadow: 0 10px 34px #29263720; }
html:root body #tushlySecondaryActions[hidden] { display: none !important; }
html:root body #tushlySecondaryActions a { min-height: 40px; color: #413c4c !important; background: #fff !important; border: 0 !important; border-radius: 5px !important; text-decoration: none; }
html:root body #tushlyMoreActions { flex: 0 0 36px; width: 36px; min-width: 36px; height: 42px; border: 1px solid #ddd7e2; border-radius: 9px; background: #f8f5f9; color: #51475d; padding: 0; cursor: pointer; }
@media (min-width:1121px) { html:root body #tushlySecondaryActions { display: none !important; } }
/* Tip Menu sheet (V3): light surface, pink amounts; bottom sheet on phones. */
html:root body #tushlyTipMenu { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(24,26,40,.45); }
html:root body #tushlyTipMenu .tushly-tip-sheet { width: min(410px,100%); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; color: #272736; border-radius: 14px; padding: 22px; box-shadow: 0 24px 80px rgba(32,32,42,.25); font: 14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; box-sizing: border-box; }
html:root body #tushlyTipMenu .tushly-tip-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
html:root body #tushlyTipMenu h2 { margin: 0; font-size: 20px; letter-spacing: -.4px; color: #272736; }
html:root body #tushlyTipMenu .tushly-tip-x { width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 50%; background: #f4f1f5; color: #5d5266; font-size: 20px; line-height: 1; cursor: pointer; }
html:root body #tushlyTipMenu .tushly-tip-choice { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 2px; border: 0; border-bottom: 1px solid var(--tushly-border); background: none; color: #272736; text-align: left; font: inherit; cursor: pointer; }
html:root body #tushlyTipMenu .tushly-tip-choice strong { font-weight: 600; }
html:root body #tushlyTipMenu .tushly-tip-choice span { color: var(--tushly-brand-pink); font-weight: 700; font-size: 13px; white-space: nowrap; }
html:root body #tushlyTipMenu .tushly-tip-choice:hover:not([disabled]) { background: #fcf1f6; }
html:root body #tushlyTipMenu .tushly-tip-choice[disabled] { opacity: .55; cursor: default; }
html:root body #tushlyTipMenu :focus-visible { outline: 2px solid var(--tushly-brand-blue); outline-offset: 2px; }
html:root body #tushlyTipMenu .tushly-tip-status { min-height: 18px; margin: 12px 0 0; font-size: 12px; color: #6e6d7c; }
@media (max-width: 700px) {
    html:root body #tushlyTipMenu { align-items: flex-end; padding: 0; }
    html:root body #tushlyTipMenu .tushly-tip-sheet { width: 100%; border-radius: 18px 18px 0 0; padding: 20px 20px calc(22px + env(safe-area-inset-bottom)); }
}
/* Signed-out join prompt: a clearly visible close control on desktop and mobile. */
html:root body #popupWindow #closePopup { position: absolute; top: 10px; right: 10px; z-index: 5; display: grid !important; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #272736; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
html:root body #popupWindow #closePopup:focus-visible { outline: 2px solid var(--tushly-brand-blue); outline-offset: 2px; }
/* Go Private label follows the button colour; the legacy desktop rule left it white on the light pill. */
html:root body #bio2 .videoOptions a.requestPrivateChat :is(span, .mobile-hidden) { color: inherit !important; }
/* Swipeable mobile action row (111760): right edge fades while more actions are off-screen. */
html:root body #tushlyMobileBar.tushly-bar-more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
html:root body #tushlyMobileBar { scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
html:root body #tushlyMobileBar > a { scroll-snap-align: start; }
