/* Theme controls share a quiet two-icon silhouette, always in reach. */
.profile .cover-identity .handle{font-size:11px;letter-spacing:.55px}
.theme-toggle{position:absolute;top:14px;right:14px;z-index:3;display:flex;align-items:center;gap:4px;padding:5px;border:1px solid #ffffff40;border-radius:12px;background:#18082d35;color:#fff;min-height:36px;cursor:pointer}
.theme-toggle svg{width:23px;height:23px;padding:3px;box-sizing:border-box;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;border-radius:6px;opacity:.55}
.theme-toggle .theme-sun{background:#ffffff25;opacity:1}
[data-theme=dark] .theme-toggle .theme-sun{background:transparent;opacity:.55}
[data-theme=dark] .theme-toggle .theme-moon{background:#ffffff25;opacity:1}
.theme-toggle:hover{background:#18082d55}.theme-toggle:focus-visible{outline:2px solid #fff;outline-offset:3px}
.mobile-profile .theme-toggle{display:none}
@media(min-width:901px) and (max-width:1150px){.profile .cover-identity .handle{font-size:10px;letter-spacing:.2px}.theme-toggle{right:10px;top:12px;gap:1px}}
@media(max-width:900px){.mobile-profile{position:relative;padding-top:54px}.mobile-profile .theme-toggle{display:flex;top:6px;right:0;background:#f3f1f6;color:#55505f;border-color:#e9e5ee;min-height:40px}.mobile-profile .theme-toggle:focus-visible{outline-color:#9616b5}.mobile-profile .theme-toggle svg{width:25px;height:25px}.mobile-profile .theme-sun{background:#fff}.profile .theme-toggle{min-height:40px}}
/* Graphite surfaces, warm neutral type and the original branded gradient. */
html[data-theme=dark]{--ink:#f1eff5;--muted:#aaa5b3;--line:#34313d;--accent-ink:#dfa4ef;--accent-soft:#33253e;background:#121216}
[data-theme=dark] body,[data-theme=dark] .feed-panel{background:#121216;color:#f1eff5}
[data-theme=dark] .profile,[data-theme=dark] .chat-panel,[data-theme=dark] .post,[data-theme=dark] dialog:not(#intro-screen){background:#1c1b22;border-color:#34313d;box-shadow:0 10px 28px #00000022;color:#f1eff5}
[data-theme=dark] .post.selected-post{background:#25202d}
[data-theme=dark] .post-body,[data-theme=dark] .post-author,[data-theme=dark] .post-quote,[data-theme=dark] .profile .bio,[data-theme=dark] .presence-line,[data-theme=dark] .local-message p,[data-theme=dark] .welcome-chat h3,[data-theme=dark] .chat-head h2,[data-theme=dark] .chat-head .chat-icon,[data-theme=dark] .online-status b{color:#eeebf2}
[data-theme=dark] .post-meta,[data-theme=dark] .post-date,[data-theme=dark] .post-date small,[data-theme=dark] .feed-end,[data-theme=dark] .empty-posts,[data-theme=dark] .online-status,[data-theme=dark] .local-message .message-label,[data-theme=dark] .local-message blockquote,[data-theme=dark] .welcome-chat p,[data-theme=dark] .feed-tabs button,[data-theme=dark] .save-text,[data-theme=dark] .reaction .count,[data-theme=dark] .chat-menu,[data-theme=dark] .profile .experiment p,[data-theme=dark] .profile .tiny,[data-theme=dark] .footer-brand,[data-theme=dark] .legal-link,[data-theme=dark] .mobile-profile small,[data-theme=dark] dialog:not(#intro-screen) p,[data-theme=dark] .message-steps span,[data-theme=dark] dialog .dialog-status{color:#b5afbf}
[data-theme=dark] .feed-tabs button.active,[data-theme=dark] .profile .profile-links button,[data-theme=dark] .profile .profile-links button.selected{color:#eeeaf4}
[data-theme=dark] .profile .profile-links button b,[data-theme=dark] .profile .profile-links .small-arrow{color:#b5afbf}
[data-theme=dark] .profile .profile-links button:hover,[data-theme=dark] .profile .profile-links button.selected:hover{background:#2b2734}
[data-theme=dark] .profile-divider{background:#34313d}
[data-theme=dark] .direct-invite,[data-theme=dark] .experiment,[data-theme=dark] .feed-tabs,[data-theme=dark] .chat-status,[data-theme=dark] #chat-form,[data-theme=dark] .local-message,[data-theme=dark] .local-message blockquote{border-color:#34313d}
[data-theme=dark] .profile .avatar.large{border-color:#1c1b22;box-shadow:0 0 0 1px #48414f}
[data-theme=dark] .verified,[data-theme=dark] .post-author span,[data-theme=dark] .chat-rules-button,[data-theme=dark] .save-text.selected,[data-theme=dark] .reaction.selected .count,[data-theme=dark] .profile-quote-mark,[data-theme=dark] .message-steps b{color:#dfa4ef}
[data-theme=dark] .composer{background:#24222c;border-color:#494252}
[data-theme=dark] .composer textarea{color:#f1eff5}
[data-theme=dark] .composer textarea::placeholder{color:#aaa3b6}
[data-theme=dark] .composer button:disabled{background:#39323f;color:#aaa1b1}
[data-theme=dark] .composer:focus-within{border-color:#c88de2;box-shadow:0 0 0 2px #c88de220}
[data-theme=dark] .reaction-picker{background:#302a39;border-color:#55465f;box-shadow:0 8px 22px #0007}
[data-theme=dark] .reaction-toggle{color:#c8bdd2}
[data-theme=dark] .reaction-picker button:hover,[data-theme=dark] .reaction-picker button[aria-pressed=true]{background:#4a365a}
[data-theme=dark] .local-message .message-label>span:first-child{filter:brightness(1.55) saturate(.7)}
[data-theme=dark] .reply-context,[data-theme=dark] .development-state{background:#30243b;border-color:#51405c;color:#e0b3ee}
[data-theme=dark] dialog:not(#intro-screen) .close{background:#322c3c;color:#e8e0ef}
[data-theme=dark] .mobile-nav{background:#1c1b22;border-color:#34313d}
[data-theme=dark] .mobile-nav button{color:#aba3b7}
[data-theme=dark] .mobile-nav button.active{color:#e0a7f1}
[data-theme=dark] .mobile-profile .theme-toggle{background:#302a39;color:#eee5f4;border-color:#494052}
[data-theme=dark] .toast{background:#eee7f4;color:#211b29}
[data-theme=dark] button:focus-visible,[data-theme=dark] a:focus-visible,[data-theme=dark] .feed-scroll:focus-visible,[data-theme=dark] .chat-scroll:focus-visible{outline-color:#e0a7f1}
[data-theme=dark] #chat-form .composer{background:#24222c;border-color:#494252}
[data-theme=dark] #chat-form .composer textarea{color:#f1eff5}
[data-theme=dark] .composer #send-message:disabled{background:#39323f;color:#aaa1b1}
[data-theme=dark] #chat-form .composer:focus-within{border-color:#c88de2;box-shadow:0 0 0 2px #c88de220}
[data-theme=dark] .reaction-toggle{background:transparent;color:#c8bdd2}
[data-theme=dark] dialog:not(#intro-screen) .tiny{color:#b5afbf}
[data-theme=dark] dialog:not(#intro-screen)::backdrop{background:#09070dbb}
/* The longer draft rules remain readable in the existing modal. */
#rules-dialog p{font-size:14px;line-height:1.75}
#rules-dialog h3{font-size:15px;line-height:1.5}
#rules-dialog .dialog-status{font-size:13px;line-height:1.7}
/* Wider rules sheet: no scrollbar chrome; short screens still scroll normally. */
#rules-dialog{box-sizing:border-box;width:min(800px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:32px 36px;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior:contain}
#rules-dialog::-webkit-scrollbar{display:none;width:0;height:0}
#rules-dialog h2{margin:12px 0 16px}
#rules-dialog h3{margin:18px 0 6px}
#rules-dialog p{margin:6px 0}
#rules-dialog .dialog-status{margin-top:20px}
@media(max-width:600px){#rules-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:26px 24px}#rules-dialog h2{font-size:28px}}
/* Match the chat-rules link rather than using the low-contrast light-theme hover. */
[data-theme=dark] .feed-tabs .feed-how:hover{color:#dfa4ef}
/* Portable, non-submitting preview of the future paid-message form. */
#write-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;scrollbar-width:none}
#write-dialog::-webkit-scrollbar{display:none}
#write-dialog .lead-copy{margin-bottom:20px}
#write-dialog .message-steps{margin:20px 0 26px}
.kvey-message-form{text-align:left;margin-top:24px}
.message-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.kvey-message-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:#62566f;margin:0 0 16px}
.kvey-message-form label>span{font-size:10px;font-weight:400;color:#95859d;margin-top:-4px}
.kvey-message-form input,.kvey-message-form textarea{box-sizing:border-box;width:100%;border:1px solid #ded5e5;border-radius:10px;background:#fbf9fc;color:#392e44;padding:12px 13px;font:inherit;font-weight:400;font-size:13px;line-height:1.6;outline:none}
.kvey-message-form textarea{resize:vertical;min-height:120px;max-height:320px}
.kvey-message-form input::placeholder,.kvey-message-form textarea::placeholder{color:#a295aa;opacity:1}
.kvey-message-form input:focus,.kvey-message-form textarea:focus{border-color:#b267c6;box-shadow:0 0 0 3px #a34ac411}
.message-form-meta{display:flex;justify-content:space-between;color:#9a8aa5;font-size:10px;margin-top:-9px}
.message-price-row{display:flex;justify-content:space-between;align-items:center;margin:22px 0 14px;padding-top:16px;border-top:1px solid #e7dfea;font-size:13px;color:#87788f}
.message-price-row strong{font-size:22px;font-weight:700;color:#533760}
.message-pay-preview{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #d3b3df;border-radius:10px;padding:14px;background:#ece0f2;color:#9565a7;font:inherit;font-size:13px;font-weight:600;cursor:not-allowed;opacity:1}
.message-pay-preview svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
#write-dialog .payment-preview-status{display:flex;justify-content:center;align-items:center;gap:8px;margin:12px 0;font-size:11px;color:#92749d}
.payment-preview-status i{width:5px;height:5px;border-radius:50%;background:currentColor}
#write-dialog .kvey-message-form .dialog-status{font-size:10px;line-height:1.7;margin:12px 0 0}
[data-theme=dark] .kvey-message-form label{color:#d5c7de}
[data-theme=dark] .kvey-message-form input,[data-theme=dark] .kvey-message-form textarea{background:#24212c;border-color:#494052;color:#eee5f4}
[data-theme=dark] .kvey-message-form input:focus,[data-theme=dark] .kvey-message-form textarea:focus{border-color:#bf8cd2;box-shadow:0 0 0 3px #bf8cd211}
[data-theme=dark] .message-price-row{border-color:#3b3344;color:#b6a3c2}
[data-theme=dark] .message-price-row strong{color:#e3beeF}
[data-theme=dark] .message-pay-preview{background:#34283f;border-color:#594167;color:#c298d4}
[data-theme=dark] #write-dialog .payment-preview-status{color:#c49bd5}
@media(max-width:600px){#write-dialog{width:calc(100vw - 24px);padding:28px 24px;max-height:calc(100dvh - 24px)}.message-form-row{grid-template-columns:1fr;gap:0}.kvey-message-form input,.kvey-message-form textarea{font-size:16px}#write-dialog h2{font-size:29px}}
