500;600;700;800&display=swap');
:root{--bg:#f7f7f2;--paper:#fff;--ink:#263b34;--muted:#748078;--line:#e5e9e1;--green:#25483d;--accent:#d4eaa4;--soft:#eff4e9;--radius:20px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.7 'Noto Sans KR',system-ui,sans-serif}button,input,textarea,select{font:inherit}button,a,label,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.wrap{--page-wrap-gutter:32px;max-width:1200px;margin:0 auto;padding:0 var(--page-wrap-gutter)}.demo-banner{background:var(--green);color:#e5f1de;text-align:center;padding:7px 20px;font-size:11px;letter-spacing:.03em}.demo-banner span{color:#bfd0c7;margin-left:14px}.header{height:96px;display:flex;align-items:center;justify-content:space-between}.header,.profile-section-divider{border-bottom:1px solid var(--line)}.brand{font-size:24px;font-weight:800;display:flex;align-items:center;gap:9px;letter-spacing:-1px}.brand-symbol{font-size:35px;color:#416d50;transform:rotate(-32deg);line-height:1}.beta{font-size:9px;letter-spacing:1px;font-weight:600;border:1px solid #d4ddcf;padding:2px 7px;border-radius:5px;margin-left:6px}.role-field{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}select{padding:9px 30px 9px 13px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:9px}.hero{min-height:300px;padding:48px 0 45px;display:grid;grid-template-columns:1fr 1fr;align-items:center}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#7a8a75;margin:0 0 13px}h1{font-size:37px;font-weight:600;line-height:1.4;letter-spacing:-1.8px;margin:0 0 15px}.hero-copy{margin:0;color:var(--muted);font-size:14px}.hero-art{height:235px;position:relative;overflow:hidden}.orbit{position:absolute;width:200px;height:200px;border:1px solid #e2e8d9;border-radius:50%;left:150px;top:15px}.orbit-two{width:280px;height:280px;left:110px;top:-25px}.bubble{position:absolute;box-shadow:0 10px 30px #3547310b;font-size:14px;padding:18px 25px;border-radius:18px;font-weight:500}.bubble-one{top:42px;left:35px;background:#e4edda;border-bottom-left-radius:3px;transform:rotate(-4deg)}.bubble-one span{color:#729451;margin-left:13px}.bubble-two{right:4px;top:119px;background:white;border-bottom-right-radius:3px;transform:rotate(3deg)}.seed{position:absolute;left:42px;top:155px;font-size:37px;color:#769553;transform:rotate(-25deg)}.art-label{position:absolute;bottom:0;right:15px;font-size:8px;letter-spacing:2px;color:#93a08a}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:25px;align-items:start}.sidebar,.main-column{display:flex;flex-direction:column;gap:20px}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.wallet{background:var(--green);color:#fff;padding:26px;border:none}.section-kicker{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1.5px;color:#bcd2bc}.section-kicker span{font-size:25px;transform:rotate(-25deg);color:#d4eaa4}.wallet-label{margin:17px 0 0;color:#b8c9bf;font-size:12px}.wallet-value{display:flex;align-items:baseline;gap:8px}.wallet-value strong{font-size:35px;font-weight:500;letter-spacing:-1px}.wallet-value>span{color:#b8c9bf}.wallet-note{font-size:11px;color:#b8c9bf;margin:4px 0 22px}.button{display:inline-flex;justify-content:center;align-items:center;gap:10px;padding:12px 17px;border-radius:10px;font-size:13px;font-weight:600;border:0;transition:background .16s,transform .16s}.button:active{transform:translateY(1px)}.button-primary{background:var(--green);color:#fff}.button-primary:hover{background:#376353}.button-light{background:var(--accent);color:#25442c;width:100%;justify-content:space-between;font-size:12px}.button-light span{font-size:10px;font-weight:400}.wallet small{display:block;text-align:center;font-size:9px;color:#b8c9bf;margin-top:10px}.create-card{padding:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}h2{font-size:18px;font-weight:600;letter-spacing:-.6px;margin:0}.pill{padding:3px 9px;background:var(--soft);color:#5f774d;font-size:10px;border-radius:6px;white-space:nowrap}.muted{color:var(--muted);font-size:12px;margin:8px 0 20px}.create-card form{display:flex;flex-direction:column;gap:10px}.create-card label{font-size:11px;font-weight:600}.create-card input{min-width:0;width:100%;border:1px solid var(--line);border-radius:9px;padding:12px;font-size:12px;background:#fbfcf9;color:var(--ink)}input::placeholder,textarea::placeholder{color:#9aA397}.create-card .button{margin-top:4px;justify-content:space-between}.fine{font-size:10px;color:#8e988c;margin:12px 0 0}.price-card{padding:9px 15px 15px}.price-card h2{font-size:13px;margin-bottom:12px}.price-card table{width:100%;border-collapse:collapse;font-size:11px}.price-card th{font-weight:400;text-align:left}.price-card td,.price-card thead th:not(:first-child){text-align:right}.price-card thead{color:#8a9586;font-size:10px}.price-card th,.price-card td{padding:7px 0;border-bottom:1px solid var(--line)}.room-card{padding:28px;min-height:310px}.room-header{display:flex;justify-content:space-between;align-items:center;gap:10px}.room-header .eyebrow{font-size:9px;margin-bottom:6px}.live-label{font-size:10px;color:#7e8c77;display:flex;align-items:center;gap:7px}.live-label i{width:6px;height:6px;border-radius:50%;background:#7eaa57}.rooms{display:grid;gap:10px}.rooms>button,.room-item,.room{border:1px solid var(--line);border-radius:13px;padding:17px;background:#fafbf8;color:var(--ink);text-align:left;width:100%}.rooms button:hover{background:var(--soft);border-color:#becdb1}.rooms h3{font-size:14px;margin:0 0 4px}.rooms p{font-size:11px;color:var(--muted);margin:0}.empty-state{padding:28px 16px 20px;text-align:center;border:1px dashed #dfe6d6;border-radius:13px;background:#fcfdfb}.empty-mark{display:inline-grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#edf2e6;color:#889d75;margin-bottom:12px;font-size:21px}.empty-state h3{font-size:13px;font-weight:500}.empty-state p{line-height:1.9}.chat-header{padding:24px 26px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px}.chat-header .eyebrow{font-size:9px;margin-bottom:6px}.chat-header .muted{margin:6px 0 0}.messages{padding:24px;min-height:250px;max-height:440px;overflow-y:auto;background:#fafbf7;display:flex;flex-direction:column;gap:12px;overflow-wrap:anywhere}.message,.msg{padding:10px 15px;background:white;border:1px solid var(--line);border-radius:14px;max-width:85%;align-self:flex-start}.message.own,.msg.own,.message.mine,.msg.mine{align-self:flex-end;background:#e4eed9;border-color:#e4eed9}.messages img{max-width:100%;max-height:220px;border-radius:8px;object-fit:contain}.messages small{display:block;color:var(--muted);font-size:10px}.composer{padding:18px 22px}.composer textarea{width:100%;resize:vertical;min-height:65px;max-height:180px;border:0;padding:7px;background:white;color:var(--ink);outline-offset:3px}.composer-bottom{display:flex;align-items:center;gap:12px;margin-top:8px}.composer-tools{display:flex;gap:4px}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;border-radius:7px;font-size:22px;color:#6d7e62;cursor:pointer}.icon-button:hover{background:var(--soft)}.file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.fee-preview{margin-left:auto;font-size:10px;color:var(--muted)}.composer .button{padding:9px 15px}.notice{font-size:12px;padding:12px 17px;background:#edf2e5;border:1px solid #e2e9d9;border-radius:10px;color:#5c7251}.notice:empty{display:none}.trust-note{display:flex;justify-content:center;align-items:center;gap:13px;text-align:left;color:#8b9787;font-size:11px;padding:5px}.trust-note>span{font-size:28px;color:#a5b498}.trust-note strong{font-size:10px;font-weight:400;color:#9ca697}.footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:44px;padding-top:22px;padding-bottom:26px;color:#96a08e;font-size:10px}.footer>span:first-child{font-weight:700;font-size:14px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:focus-visible{outline:3px solid #a8c781;outline-offset:3px}@media(max-width:850px){.wrap{--page-wrap-gutter:22px}.hero-art{opacity:.8}.hero{grid-template-columns:1.15fr 1fr}.bubble-one{left:5px;font-size:12px}.bubble-two{font-size:11px;right:-4px;padding:15px}.orbit{left:70px}.orbit-two{left:30px}.workspace{grid-template-columns:270px minmax(0,1fr);gap:18px}.wallet,.create-card{padding:20px}.room-card{padding:22px}.wallet-value strong{font-size:31px}.chat-header{padding:20px}.composer{padding:15px}.fee-preview{font-size:9px}}@media(max-width:640px){.demo-banner{font-size:10px;padding:7px 8px}.demo-banner span{display:block;margin:0;font-size:9px}.wrap{--page-wrap-gutter:18px}.header{height:76px}.brand{font-size:20px}.brand-symbol{font-size:30px}.beta{font-size:7px;margin-left:0;padding:2px 4px}.role-field{gap:6px}.role-field>label{display:none}select{font-size:11px;padding:8px 20px 8px 10px}.hero{display:block;min-height:0;padding:32px 0}.hero-art{display:none}.hero .eyebrow{font-size:8px;letter-spacing:1.2px}h1{font-size:30px;letter-spacing:-1.2px}.hero-copy{font-size:12px}.workspace{display:flex;flex-direction:column;gap:20px}.sidebar,.main-column{width:100%;gap:16px}.sidebar{display:grid;grid-template-columns:1fr}.wallet{padding:20px 22px}.wallet .section-kicker{float:right;gap:10px}.wallet-label{margin:0}.wallet-value strong{font-size:32px}.wallet-note{margin:0 0 14px}.wallet .button-light{padding:10px 14px}.create-card{padding:20px}.price-card{order:3;padding:2px 10px 8px}.price-card table{font-size:11px}.room-card{padding:22px 20px;min-height:0}.room-header h2{font-size:17px}.room-card .muted{margin-bottom:16px}.chat-header{padding:19px}.chat-header h2{font-size:16px}.chat-header .button{padding:9px 12px;white-space:nowrap;font-size:11px}.messages{padding:18px;min-height:230px}.composer-bottom{gap:7px}.footer{margin-top:28px;gap:14px;align-items:flex-start}.footer>span:last-child{max-width:210px;text-align:right;font-size:9px}}
[hidden]{display:none!important}
.room-row{width:100%;border:1px solid #e2e8e1;border-radius:14px;padding:14px 16px;background:white;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;color:#27493e;margin:8px 0;cursor:pointer}
.room-row[aria-pressed=true]{border-color:#457665;background:#edf5ed}
.room-row strong{overflow-wrap:anywhere}
.message-row{display:flex;flex-direction:column;align-items:flex-start;margin:10px 0;gap:4px}
.message-row.own{align-items:flex-end}
.message-bubble{max-width:84%;border-radius:14px;padding:10px 13px;background:#f0f1eb;white-space:pre-wrap;overflow-wrap:anywhere;color:#1d3e32}
.message-row.own .message-bubble{background:#dceee0}
.chat-photo{display:block;max-width:100%;max-height:260px;object-fit:contain;border-radius:8px}

/* Dating-first local prototype introduction */
html{scroll-behavior:smooth}.dating-cta{display:inline-flex;gap:32px;margin-top:22px;text-decoration:none}.hero-disclaimer{font-size:11px;color:var(--muted);margin:12px 0 0}.profile-section{margin:0 0 44px;scroll-margin-top:24px}.profile-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.profile-heading h2{font-size:24px;letter-spacing:-1px;margin:4px 0}.profile-heading p{margin:4px 0}.profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.profile-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;overflow:hidden}.profile-portrait{height:185px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.portrait-one{background:#ece3d6;color:#82624d}.portrait-two{background:#dce8e0;color:#486854}.portrait-three{background:#e5e0ed;color:#716582}.portrait-initial{position:relative;width:94px;height:94px;border-radius:50%;background:#ffffff70;display:grid;place-items:center;font-size:44px;font-weight:500;box-shadow:0 8px 40px #00000005}.portrait-orbit{position:absolute;width:215px;height:215px;border:1px solid #ffffff80;border-radius:50%;transform:translate(80px,65px)}.portrait-orbit:after{content:'';position:absolute;width:135px;height:135px;background:#ffffff25;border-radius:50%;left:-190px;top:-45px}.portrait-caption{position:absolute;bottom:14px;left:20px;letter-spacing:2px;font-size:9px;font-weight:600}.profile-info{padding:20px}.example-label{float:right;font-size:10px;border:1px solid var(--line);border-radius:5px;color:var(--muted);padding:0 6px}.profile-info h3{margin:0 0 9px;font-size:20px;letter-spacing:-.6px}.profile-info h3 span{font-size:12px;font-weight:400;color:var(--muted);margin-left:5px}.profile-info p{font-size:12px;margin:0 0 13px;color:#66756b}.interest-tags{display:flex;flex-wrap:wrap;gap:6px}.interest-tags span{padding:3px 9px;background:var(--bg);border-radius:6px;font-size:10px;color:#69756e}.profile-link{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;font-weight:600}.profile-link:hover{color:#728c4d}.profile-disclaimer{font-size:11px;color:var(--muted);margin:12px 0 0}.workspace{scroll-margin-top:24px}@media(max-width:640px){.profile-grid{grid-template-columns:1fr}.profile-card{display:grid;grid-template-columns:110px 1fr;border-radius:16px}.profile-portrait{height:100%;min-height:210px}.portrait-initial{width:65px;height:65px;font-size:30px}.portrait-caption{font-size:7px;left:12px;right:10px;letter-spacing:1px}.profile-info{padding:16px}.profile-heading{align-items:flex-start;flex-direction:column;gap:8px}.profile-heading h2{font-size:21px}.profile-section{margin-bottom:32px}.dating-cta{margin-top:15px}.profile-info h3{font-size:18px}.profile-info p{font-size:11px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.account-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.account-tools .button{padding:7px 12px;min-height:36px}
#accountDialog{width:min(430px,calc(100% - 36px));border:1px solid #dce4dc;border-radius:22px;padding:24px;color:#25483d;background:#fbfcf9;box-shadow:0 16px 80px #182f2b35}
#accountDialog::backdrop{background:#122a2366}
.account-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}
.account-header h2{font-size:1.45rem;margin:0}
#accountForm{display:grid;gap:8px}
#accountForm input{width:100%;margin-bottom:8px}
#accountForm button{justify-self:start}
#verifyStep{border-top:1px solid #e2e8e1;margin-top:12px;padding-top:9px}
.topic-choices{display:flex;gap:7px;flex-wrap:wrap;margin:2px 0 10px}
.topic-choices button{border:1px solid #d6e5d8;background:#f0f6ef;color:#25483d;border-radius:20px;padding:5px 12px;cursor:pointer}
.topic-choices button:hover,.topic-choices button:focus-visible{background:#dceee0}
#roomSearch{display:block;width:100%;margin:12px 0;border:1px solid #ceded2;border-radius:12px;padding:10px 13px;background:#fff;color:#25483d}

#feeDialog{width:min(480px,calc(100% - 36px));max-height:calc(100% - 36px);overflow:auto;border:1px solid #dce4dc;border-radius:22px;padding:24px;color:#25483d;background:#fbfcf9;box-shadow:0 16px 80px #182f2b35}
#feeDialog::backdrop{background:#122a2366}
#feeDialog .wallet{margin-bottom:14px}
#feeOpen{margin-top:10px}

.hobby-gallery{min-width:0;padding:0 0 0 clamp(12px,3vw,42px)}
.hobby-kicker{color:#31574a;font-size:13px;letter-spacing:.02em;margin:0 0 10px}
.hobby-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hobby-tile{aspect-ratio:1;position:relative;background-color:#345a48;background-image:url('hobby-photos.jpg');background-size:300% 200%;border-radius:12px;isolation:isolate;overflow:hidden}
.hobby-tile::before{content:'';position:absolute;inset:36% 0 0;background:linear-gradient(transparent,#10261fdc);z-index:-1}
.hobby-tile span{position:absolute;left:10px;bottom:8px;color:#fff;font-size:clamp(11px,1.2vw,15px);font-weight:700}
.hobby-golf{background-position:left top}.hobby-hike{background-position:center top}.hobby-music{background-position:right top}
.hobby-film{background-position:left bottom}.hobby-read{background-position:center bottom}.hobby-cafe{background-position:right bottom}
.browse-rooms{margin-left:4px}
@media(max-width:710px){.hobby-gallery{padding:0;margin-top:22px}.hobby-grid{gap:6px}.hobby-tile span{left:7px;bottom:6px}}

#profileDialog{width:min(460px,calc(100% - 36px));max-height:calc(100% - 36px);overflow:auto;border:1px solid #dce4dc;border-radius:22px;padding:24px;color:#25483d;background:#fbfcf9;box-shadow:0 16px 80px #182f2b35}
#profileDialog::backdrop{background:#122a2366}
.profile-summary{padding:8px 14px;border-radius:12px;background:#edf4e9}
.profile-summary div{display:flex;justify-content:space-between;gap:10px;padding:6px 0}
.profile-summary dd{margin:0;text-align:right;overflow-wrap:anywhere}
#profileForm,#leaveForm{--save-row-gap:8px;display:grid;gap:var(--save-row-gap)}
#leaveForm button{justify-self:start}
#leaveReasonRow{display:grid;gap:4px}#leaveReason{width:100%;resize:vertical;box-sizing:border-box}
.profile-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
#leaveAccount{border-top:1px solid #dce4dc;margin-top:16px;padding-top:12px}
#leaveAccount summary{cursor:pointer;color:#943d35}
.leave-btn{background:#fff2ef;border:1px solid #efc0b8;color:#8a332b}

.extra-dialog{width:min(570px,calc(100% - 32px));max-height:calc(100% - 32px);overflow:auto;border:1px solid #dce4dc;border-radius:22px;padding:24px;color:#25483d;background:#fbfcf9}
.extra-dialog::backdrop{background:#122a2366}
.extra-dialog fieldset{margin:12px 0;border:1px solid #dce4dc;border-radius:12px;padding:10px}
.choices{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.choices label{cursor:pointer}.choices input{position:absolute;opacity:0;width:1px;height:1px}.choices span{display:block;padding:6px 11px;background:#f2f5ed;border:1px solid #dae4d9;border-radius:999px}.choices input:checked+span{background:#d4eaa4;border-color:#789755}.choices input:focus-visible+span{outline:2px solid #25483d}
#cardForm{--save-row-gap:8px;display:grid;gap:var(--save-row-gap)}.card-gallery{display:flex;flex-wrap:wrap;gap:7px}.card-gallery img{width:78px;height:78px;object-fit:cover;border-radius:9px}.confirm-public{display:flex;align-items:flex-start;gap:7px;font-size:13px}.confirm-public input{width:auto}
.match-list article{border-bottom:1px solid #dce4dc;padding:12px 0}.match-list h3,.match-list p{margin:4px 0;overflow-wrap:anywhere}.match-list p{white-space:pre-wrap}

/* Keep the full composer visible while a conversation is open. */
body.chat-docked{padding-bottom:calc(var(--chat-dock-height,145px) + 12px)}
.chat-docked #chat .composer{padding:0;border:0}
.chat-docked #chatForm{position:fixed;z-index:25;left:var(--chat-dock-left,12px);width:var(--chat-dock-width,calc(100% - 24px));bottom:var(--chat-dock-bottom,0px);padding:10px 14px max(10px,env(safe-area-inset-bottom));background:var(--paper);border:1px solid #c8d9cc;border-radius:14px 14px 0 0;box-shadow:0 -5px 20px #25483d21}
.chat-docked #messageInput{display:block;width:100%;min-height:52px;max-height:24vh}
.chat-docked .composer-bottom{margin:6px 0 0}
.chat-docked #sendBtn{flex:none;white-space:nowrap;min-width:84px}
.chat-docked .messages{scroll-padding-bottom:12px}

#emojiDialog{width:min(385px,calc(100% - 24px));padding:12px;max-height:min(392px,calc(100vh - 20px));max-height:min(392px,calc(100dvh - 20px));overflow:hidden;margin:auto}
#emojiDialog[open]{display:flex;flex-direction:column}
#emojiDialog>.account-header{flex:0 0 auto;margin:0 0 8px}
#emojiDialog .emoji-choices{min-height:0;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y;scrollbar-gutter:stable;align-content:start;padding:3px 4px}
#emojiDialog .emoji-choice{aspect-ratio:auto;min-height:42px}
#emojiDialog .emoji-actions{flex:0 0 auto;border-top:1px solid #dce4dc;padding-top:8px;margin-top:8px}
#emojiDialog #emojiSend{margin-left:auto;white-space:nowrap}
@media(max-height:360px){#emojiDialog{padding:8px}#emojiDialog .emoji-choice{min-height:34px}#emojiDialog .emoji-actions{margin-top:5px;padding-top:5px}}
.emoji-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.emoji-choice{display:grid;place-items:center;aspect-ratio:1;border:1px solid #dce4dc;border-radius:10px;background:#fff;font-size:clamp(19px,5vw,27px);line-height:1;cursor:pointer}
.emoji-choice:hover,.emoji-choice[aria-pressed=true]{background:#edf4e1;border-color:#70914d}
.emoji-choice:focus-visible{outline:2px solid #25483d}
.emoji-actions{margin-top:14px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
#emojiSend:disabled{opacity:.5;cursor:not-allowed}

.compose-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px}
#chatForm #sendBtn,#emojiDialog #emojiSend{appearance:none;display:inline-flex;align-items:center;justify-content:center;align-self:stretch;min-height:42px;padding:8px 14px;gap:5px;white-space:nowrap;border:1px solid #174132;border-radius:9px;background:#21533f;color:#fff;opacity:1;visibility:visible;font-weight:700;box-shadow:none;text-indent:0}
#chatForm #sendBtn:hover,#emojiDialog #emojiSend:hover:not(:disabled){background:#194332;color:#fff}
#emojiDialog #emojiSend:disabled{opacity:1;background:#e1ebe3;color:#365146;border-color:#b5c9ba}
#chatForm #sendBtn:focus-visible,#emojiDialog #emojiSend:focus-visible{outline:2px solid #174132;outline-offset:2px}

body.chat-popup .header,body.chat-popup .demo-banner,body.chat-popup .hero,body.chat-popup .profile-section,body.chat-popup .sidebar,body.chat-popup .room-card,body.chat-popup .trust-note,body.chat-popup footer{display:none}
body.chat-popup .workspace{display:block;margin-top:12px}
body.chat-popup .main-column{display:block}
body.chat-popup #chat .messages{min-height:120px;height:calc(100dvh - 240px);max-height:none}
body.chat-popup #notice:empty{display:none}
#emojiDialog .emoji-choice{min-height:70px;font-size:clamp(38px,10vw,54px);line-height:1}
.message-bubble.message-emoji{font-size:2em;line-height:1.15}

body.chat-popup{background:var(--chat-popup-base,#f4f5f7) linear-gradient(rgb(var(--chat-popup-rgb,178 199 218) / var(--chat-background-alpha,1)),rgb(var(--chat-popup-rgb,178 199 218) / var(--chat-background-alpha,1)));color:#20252b}
body.chat-popup main.wrap{width:100%;max-width:none}
body.chat-popup .workspace{margin:0}
body.chat-popup .chat-card{border:0;border-radius:0;box-shadow:none;background:transparent}
body.chat-popup .chat-header{padding:14px 16px;background:transparent;border-bottom:1px solid #98b2c7}
.chat-room-heading{display:flex;align-items:center;gap:10px;min-width:0}
.chat-room-avatar{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:15px;background:#e7eef5;color:#284459;font-size:19px;font-weight:700}
#chat .group-header-participants{display:flex;align-items:center;flex:none;isolation:isolate}
#chat .group-header-avatar{appearance:none;position:relative;display:grid;place-items:center;flex:none;width:26px;height:26px;padding:0;overflow:hidden;border:2px solid var(--paper,Canvas);border-radius:50%;background:var(--soft,Canvas);color:var(--ink,CanvasText);font-family:inherit;font-weight:700;font-size:11px;line-height:1;text-align:center}
#chat .group-header-avatar+.group-header-avatar{margin-inline-start:-8px}
#chat .group-header-avatar:hover,#chat .group-header-avatar:focus-visible{z-index:1}
#chat .group-header-avatar>img{width:100%;height:100%;display:block;object-fit:cover}
#chat .chat-room-heading:has(.group-header-participants)>div:last-child{min-width:0;overflow-wrap:anywhere}
#chat .chat-header:has(.group-header-participants)>.chat-header-actions{flex:none}
body.chat-popup #chatTitle{font-size:16px;color:#18232d;overflow-wrap:anywhere}
body.chat-popup #roomStatus{font-size:11px;color:#405363;margin:3px 0 0}
body.chat-popup #chat .messages{padding:12px 14px;background:transparent;border:0;gap:4px}
body.chat-popup .message-bubble{border-radius:10px;background:#fff;color:#222;font-size:14px;padding:8px 10px}
body.chat-popup .message-row.own .message-bubble{background:#fee500;color:#241f0c}
body.chat-popup .message-bubble.message-emoji{font-size:2em;background:transparent;padding:0}
body.chat-popup .message-row>small{color:#36495a}
body.chat-popup #chatForm{border:0;border-top:1px solid #b0c0cc;border-radius:0;box-shadow:none;background:#fff}
body.chat-popup #messageInput{font-size:14px;background:#fff;color:#222;border:0;padding:7px;outline-offset:-1px;resize:none}
#chatForm #sendBtn,#emojiDialog #emojiSend{color:#231e09;background:#fee500;border:1px solid #e8cf00;border-radius:5px;opacity:1;visibility:visible;min-width:60px}
#chatForm #sendBtn:hover,#emojiDialog #emojiSend:hover:not(:disabled){color:#231e09;background:#f4da00}
#emojiDialog #emojiSend:disabled{color:#534a20;background:#f9edab;border-color:#dfd28b;opacity:1}

#rooms.rooms{gap:4px}
#rooms>.room-row{margin:0;padding:7px 10px;min-height:34px;border-radius:8px}
#rooms>.room-row .pill{padding:2px 8px;white-space:nowrap}

.header.wrap{height:68px}
.hero{min-height:0;align-items:start;column-gap:22px;padding:22px 0 20px}
.hero-intro .eyebrow{margin:0 0 8px}
.hero-intro h1{margin:0 0 14px;line-height:1.12}
.hero-intro .hero-copy{margin:0;line-height:1.6}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:12px}
.hero-actions .dating-cta{margin:0;gap:8px;padding:8px 13px}
.hero-announcements{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:center;margin-top:7px;min-width:0;font-size:14px;line-height:1.5;white-space:nowrap}
.hero-announcement-label{font-weight:700}
.hero-announcement-window{position:relative;height:1.5em;min-width:0;overflow:hidden}
.hero-announcement-line{position:absolute;inset:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#heroActions[hidden]+.hero-announcements,body.choose-visitor .hero-announcements{display:none}
.hero-intro .hero-disclaimer{margin:8px 0 0}
.hero .hobby-gallery{width:100%;max-width:395px;justify-self:end;padding:0}
.hero .hobby-kicker{margin:0 0 6px}
.hero .hobby-grid{gap:5px}
@media(min-width:711px){body:not(.choose-visitor) .hero-intro{align-self:stretch;display:flex;flex-direction:column;min-width:0}body:not(.choose-visitor) .hero .hobby-gallery{align-self:end}.hero-announcements{margin-top:auto;padding-top:7px}}
.profile-section{margin-bottom:24px}
@media(max-width:710px){.header.wrap{height:auto;min-height:64px;padding:6px 0}.hero{padding:14px 0}.hero .hobby-gallery{margin:14px 0 0;max-width:none}.hero-intro h1{margin-bottom:10px}}

/* Compact spacing around the room tools and below the room list. */
#roomWorkspace{gap:12px}
#roomWorkspace .sidebar,#roomWorkspace .main-column{gap:7px}
#roomWorkspace .room-card{min-height:0;padding:14px 16px 9px}
#roomWorkspace .room-header .eyebrow{margin-bottom:3px}
#roomWorkspace .room-card>.muted{margin:5px 0}
#roomSearch{margin:6px 0 7px}
#roomWorkspace .notice{padding:6px 10px;margin:0}
#roomWorkspace .trust-note{justify-content:flex-start;gap:7px;padding:0 4px;min-height:0}
#roomWorkspace .trust-note>span{font-size:17px;line-height:1}
#roomWorkspace .trust-note p{margin:0;line-height:1.4}
#roomWorkspace .create-card{padding:14px 16px}
#roomWorkspace .create-card form{gap:6px}
#roomWorkspace .create-card input{padding:8px}
#roomWorkspace .create-card .button{margin-top:0}
#roomWorkspace .create-card .fine{margin-top:6px}
#roomWorkspace #feeOpen{margin-top:0}
body:not(.chat-popup)>.footer{margin-top:12px;padding-top:7px;padding-bottom:10px}
@media(max-width:710px){#roomWorkspace{gap:9px}#roomWorkspace .room-card,#roomWorkspace .create-card{padding:10px 12px 8px}}

body.chat-popup main.wrap{padding:0}
body.chat-popup #chat .messages{height:calc(100dvh - var(--chat-head-height,70px) - var(--chat-dock-height,123px) - var(--chat-dock-bottom,0px));min-height:0;padding:8px 10px;gap:0}
body.chat-popup #chat .message-row{margin:0 0 6px;gap:2px}
body.chat-popup #chat .message-row>small{margin-bottom:1px}
#chat .message-row .message-bubble.message-photo,#chat .message-row .message-bubble.message-emoji{background:none;border:0;outline:0;box-shadow:none;padding:0}
#chat .message-bubble.message-photo{max-width:min(38%,150px)}
#chat .message-bubble.message-photo .chat-photo{display:block;max-width:100%;max-height:min(210px,36.4dvh);object-fit:contain;border:0;box-shadow:none;padding:0}
body.chat-popup .compose-entry{display:block}
body.chat-popup #chatForm{padding:8px 10px max(6px,env(safe-area-inset-bottom))}
body.chat-popup #chatForm #sendBtn{height:35px;min-height:35px;padding:4px 13px}
body.chat-popup #chatForm .composer-bottom{margin-top:3px}
body.chat-popup.chat-docked{padding-bottom:0}

#chatForm .composer-bottom #sendBtn{margin-left:auto}

.chat-room-avatar,.incoming-avatar{overflow:hidden}
.chat-room-avatar img,.incoming-avatar img{display:block;width:100%;height:100%;object-fit:cover}
#chat .message-row.other{display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:7px;align-items:start}
#chat .incoming-avatar{grid-column:1;display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#e7eef5;color:#284459;font-size:15px;font-weight:700}
#chat .incoming-content{grid-column:2;min-width:0}
#chat .incoming-name{display:block;color:#263c4d;font-size:11px;line-height:1.25;margin:0 0 4px}
#chat .incoming-content .message-bubble{position:relative;display:table;max-width:min(82%,300px)}
#chat .message-bubble.incoming-tail::before{content:'';position:absolute;left:-5px;top:8px;width:0;height:0;border-top:4px solid transparent;border-bottom:4px solid transparent;border-right:6px solid #fff}

body.chat-popup #chat .chat-header{min-height:54px;padding:5px 10px;gap:8px;box-sizing:border-box}
body.chat-popup .chat-room-heading{gap:8px}
body.chat-popup .chat-room-avatar{width:36px;height:36px;border-radius:12px}
body.chat-popup #chatTitle{line-height:18px}
body.chat-popup #roomStatus{margin-top:2px;line-height:13px}
body.chat-popup #chat .messages{padding-top:4px}

#emojiDialog{position:fixed;inset:auto;left:6px;bottom:6px;margin:0;width:min(254px,calc(100% - 12px));max-width:calc(100% - 12px);padding:8px;overflow:hidden;border-radius:10px;box-shadow:0 3px 14px #1d395640}
#emojiDialog::backdrop{background:transparent}
#emojiDialog>.account-header{margin:0 0 4px}
#emojiDialog>.account-header h2{font-size:14px;line-height:1.2}
#emojiDialog .emoji-choices{width:100%;min-width:0;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:2px;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:auto}
#emojiDialog .emoji-choice{width:100%;min-width:0;min-height:35px;padding:0;border-radius:6px;font-size:clamp(19px,5vw,27px);line-height:1}
#emojiDialog .emoji-actions{gap:4px;flex-wrap:nowrap;margin-top:5px;padding-top:5px;min-width:0}
#emojiDialog #emojiHint{min-width:0;margin:0;font-size:10px}
#emojiDialog #emojiSend{min-width:46px;min-height:29px;padding:3px 9px;flex:none;font-size:12px}

#emojiDialog .emoji-choices{display:block;overflow-x:hidden}
.emoji-theme+.emoji-theme{margin-top:8px}
.emoji-theme-title{font-size:11px;line-height:1.2;margin:2px 0 4px;color:#425a52;font-weight:700}
.emoji-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}

/* Windows follows the browser's system appearance (Light/Dark). */
:root{color-scheme:light dark}
body:not(.chat-popup){
  --bg:Canvas;--paper:Canvas;--ink:CanvasText;--muted:color-mix(in srgb,CanvasText 70%,Canvas);
  --line:color-mix(in srgb,CanvasText 20%,Canvas);--green:LinkText;--soft:ButtonFace;--radius:8px;
  background:Canvas;color:CanvasText;font-family:'Segoe UI','Malgun Gothic',system-ui,sans-serif
}
body:not(.chat-popup) :is(.header,.footer,.profile-card,.card,.price-card){border-color:var(--line)}
body:not(.chat-popup) :is(.profile-card,.card,.price-card){background:Canvas;color:CanvasText;box-shadow:none}
body:not(.chat-popup) :is(.eyebrow,.hobby-kicker,.brand,.profile-link){color:LinkText}
body:not(.chat-popup) :is(.hero-copy,.muted,.fine,.footer,.trust-note,.trust-note strong,.hero-disclaimer,.room-header .live-label){color:var(--muted)}
body:not(.chat-popup) :is(.demo-banner,.notice,.trust-note,.profile-summary){background:ButtonFace;color:CanvasText;border-color:var(--line)}
body:not(.chat-popup) :is(.button,.icon-button,.topic-choices button,.room-row):where(:not(#chat *,#emojiDialog *)){color:var(--control-text);background:var(--control-bg);border:1px solid var(--control-border);border-radius:6px;box-shadow:none}
body:not(.chat-popup) :is(.button,.icon-button,.topic-choices button,.room-row):where(:not(#chat *,#emojiDialog *)):hover{background:var(--control-hover);border-color:var(--control-border)}
body:not(.chat-popup) .button-primary:where(:not(#chat *,#emojiDialog *)){background:var(--rose-solid);color:var(--rose-on);border-color:var(--rose-solid)}
body:not(.chat-popup) .button-primary:where(:not(#chat *,#emojiDialog *)):hover{background:var(--control-primary-hover);border-color:var(--control-primary-hover)}
body:not(.chat-popup) :is(input:not([type=checkbox]),select,textarea,#roomSearch){color:FieldText;background:Field;border:1px solid var(--line);border-radius:5px}
body:not(.chat-popup) :is(input,select,textarea,button,a):where(:not(#chat *,#emojiDialog *)):focus-visible{outline:2px solid var(--rose-title);outline-offset:2px}
body:not(.chat-popup) :is(.pill,.example-label,.interest-tags span,.brand .beta,.section-kicker){color:CanvasText;background:var(--control-bg);border-color:var(--line)}
body:not(.chat-popup) :is(#accountDialog,#profileDialog,#feeDialog,.extra-dialog){background:Canvas;color:CanvasText;border-color:var(--line);border-radius:8px}
body:not(.chat-popup) .choices span{background:ButtonFace;color:ButtonText;border-color:var(--line)}
body:not(.chat-popup) .choices input:checked+span{background:AccentColor;color:AccentColorText;border-color:AccentColor}
/* In a chat popup, only messages scroll; the entry area stays outside the track. */
html.chat-popup-root{overflow:hidden;scroll-behavior:auto}
body.chat-popup #chat{display:flex;flex-direction:column;height:100dvh;overflow:hidden}
body.chat-popup #chat>:is(.chat-header,.shared-group-tools,.composer){flex:none}
body.chat-popup #chat .messages{flex:1 1 auto;height:auto;min-height:0;max-height:none;overflow-y:auto}

body:not(.chat-popup) .header.wrap{gap:12px;align-items:center}
body:not(.chat-popup) .header .account-tools,body:not(.chat-popup) .header .header-nav{width:auto;display:flex;align-items:center;flex:0 0 auto;flex-wrap:nowrap;gap:6px}
body:not(.chat-popup) .header :is(.header-nav>.button,#siteGuideOpen){width:auto;min-width:0;white-space:nowrap;min-height:34px;padding:6px 10px;text-decoration:none}
body:not(.chat-popup) .hero-actions .dating-cta{width:auto;min-width:0}
.local-test{color:var(--muted);font-size:11px}.local-test summary{cursor:pointer;white-space:nowrap}.local-test .role-field{margin-top:5px}
@media(max-width:420px){body:not(.chat-popup) .header.wrap{column-gap:4px;padding-inline:10px}body:not(.chat-popup) .header .header-nav{gap:3px}body:not(.chat-popup) .header :is(.header-nav>.button,#siteGuideOpen){font-size:11px;padding-inline:6px}body:not(.chat-popup) .header .beta{display:none}}

.header .brand .site-icon{display:inline-block;width:32px;height:32px;margin:0 5px 0 0;object-fit:contain;background:none;border:none;border-radius:0;vertical-align:middle}

#chat .message-row.own .message-bubble{position:relative}
#chat .message-unread{color:#ffdf00;text-shadow:0 0 2px #695600;font:600 11px/1.3 'Segoe UI',sans-serif;white-space:nowrap}

/* Keep room search and the workspace in place while results change. */
html:not(.chat-popup-root){scrollbar-gutter:stable}
#rooms.rooms{grid-template-columns:minmax(0,1fr);align-content:start;min-width:0}
#rooms.rooms>.empty-state{align-self:start;padding:9px 12px}
#rooms.rooms>.empty-state .empty-mark{width:24px;height:24px;margin-bottom:4px;font-size:16px}
#rooms>.room-row>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.header .site-version{font-size:10px;font-weight:500;letter-spacing:0;white-space:nowrap;color:var(--muted)}
@media(max-width:420px){.header .brand{gap:4px}.header .site-version{font-size:9px}}

#matchDialog .account-header h2{font-size:18px;line-height:1.4}
#matchDialog .match-list p,#matchDialog>.fine{font-size:14px;line-height:1.5}
#matchDialog .match-list h3{font-size:16px;line-height:1.4}

#accountDialog .keep-login{display:flex;align-items:center;gap:7px;margin:3px 0;font-size:13px;cursor:pointer}
#accountDialog #keepLogin{width:auto;margin:0;padding:0;accent-color:AccentColor}

#chat .message-with-meta{display:flex;align-items:flex-end;gap:5px;width:100%;min-width:0}
#chat .message-row.own .message-with-meta{justify-content:flex-end}
#chat .message-with-meta>.message-bubble{min-width:0;flex:0 1 auto}
#chat .message-meta{display:inline-flex;align-items:baseline;flex:none;gap:4px;white-space:nowrap}
#chat .message-time{font-size:11px;line-height:1.3;color:#344755;white-space:nowrap}
#chat .chat-date-divider{align-self:center;margin:9px 0 8px;padding:3px 11px;border-radius:99px;background:#dce6ee;color:#2c404e;font-size:12px;line-height:1.4;text-align:center}

/* A separate account palette; never applied to the KakaoTalk-style chat. */
body:not(.chat-popup) dialog.account-ui:is(#accountDialog,#profileDialog,#detailsDialog,#cardDialog,#matchDialog){
  --a-panel:#fff;--a-surface:#f1f5fa;--a-text:#152238;--a-muted:#47576e;--a-border:#d5dfea;
  --a-accent:var(--rose-solid);--a-accent-hover:var(--control-primary-hover);--a-on:var(--rose-on);--a-danger:#a1243b;
  color:var(--a-text);background:var(--a-panel);border:1px solid var(--a-border);border-radius:16px;
  padding:clamp(16px,4vw,24px);line-height:1.5;box-shadow:0 18px 64px #06142747;
}
@media(prefers-color-scheme:dark){
  body:not(.chat-popup) dialog.account-ui:is(#accountDialog,#profileDialog,#detailsDialog,#cardDialog,#matchDialog){
    --a-panel:#141b27;--a-surface:#1c2739;--a-text:#eef4ff;--a-muted:#b7c6dc;--a-border:#384761;
    --a-accent:var(--rose-solid);--a-accent-hover:var(--control-primary-hover);--a-on:var(--rose-on);--a-danger:#ff9bac;
  }
}
body:not(.chat-popup) dialog.account-ui#profileDialog[data-account-gender=male]{--a-accent:#4B9FFF;--a-accent-hover:#73B5FF;--a-on:#071D38;--a-menu-ink:#17528F}
@media(prefers-color-scheme:dark){body:not(.chat-popup) dialog.account-ui#profileDialog[data-account-gender=male]{--a-menu-ink:#66AEFF}}
body:not(.chat-popup) .account-ui::backdrop{background:#09132688}
body:not(.chat-popup) .account-ui .account-header{margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--a-border)}
body:not(.chat-popup) .account-ui .account-header h2{font-size:19px;line-height:1.35;letter-spacing:-.3px}
body:not(.chat-popup) .account-ui :is(.fine,.muted){color:var(--a-muted);font-size:13px;line-height:1.5}
body:not(.chat-popup) .account-ui [role=status]:empty{display:none}
body:not(.chat-popup) dialog.account-ui:is(#accountDialog,#profileDialog,#detailsDialog,#cardDialog,#matchDialog) :is(input:not([type=checkbox]),select,textarea){
  background:var(--a-surface);color:var(--a-text);border:1px solid var(--a-border);border-radius:8px
}
body:not(.chat-popup) dialog.account-ui:is(#accountDialog,#profileDialog,#detailsDialog,#cardDialog,#matchDialog) :is(input,select,textarea,button):focus-visible{
  outline:2px solid var(--a-accent);outline-offset:2px
}
body:not(.chat-popup) .account-ui :is(.button,.icon-button,.choices span){
  background:var(--a-surface);color:var(--a-text);border:1px solid var(--a-border);border-radius:8px
}
body:not(.chat-popup) .account-ui :is(.button,.icon-button):hover{
  background:color-mix(in srgb,var(--a-surface) 88%,var(--a-accent));border-color:var(--a-accent)
}
body:not(.chat-popup) .account-ui :is(.button-primary,.choices input:checked+span){
  background:var(--a-accent);border-color:var(--a-accent);color:var(--a-on)
}
body:not(.chat-popup) .account-ui .button-primary:hover{background:var(--a-accent-hover);color:var(--a-on)}
body:not(.chat-popup) .account-ui #keepLogin{accent-color:var(--a-accent)}
body:not(.chat-popup) .account-ui fieldset,body:not(.chat-popup) .account-ui .match-list article{border-color:var(--a-border)}
body:not(.chat-popup) .account-ui .profile-summary{background:var(--a-surface);color:var(--a-text);border:1px solid var(--a-border);border-radius:10px;margin:0 0 14px;padding:4px 12px}
body:not(.chat-popup) .account-ui .profile-summary>div+div{border-top:1px solid var(--a-border)}
body:not(.chat-popup) .account-ui .profile-summary dt{color:var(--a-muted)}
body:not(.chat-popup) #profileDialog :is(#cardOpen,#matchOpen){margin-top:7px}
body:not(.chat-popup) #profileDialog #profileForm{margin-bottom:9px}
body:not(.chat-popup) #profileDialog #leaveAccount{border-color:var(--a-border)}
body:not(.chat-popup) #profileDialog #leaveAccount :is(summary,.leave-btn){color:var(--a-menu-ink,var(--a-danger))}
@media(forced-colors:active){body:not(.chat-popup) .account-ui .button-primary{border-color:ButtonText}}

#accountDialog #genderRow{display:grid;gap:5px}

/* Public landing and top navigation, intentionally separate from chat. */
body:not(.chat-popup){--rose-title:#923958;--rose-solid:#a92e5d;--rose-on:#fff;--rose-soft:#fff1f5;--rose-edge:#e5becd;--rose-muted:#65233f;--rose-hover:#f9dce8}
@media(prefers-color-scheme:dark){
  body:not(.chat-popup){--rose-title:#f6a3b8;--rose-solid:#f19bb4;--rose-on:#30121f;--rose-soft:#2b1d2a;--rose-edge:#633c54;--rose-muted:#f6c3d2;--rose-hover:#3f293b}
}
body:not(.chat-popup) .hero h1{color:#66AEFF}

body:not(.chat-popup) :is(.header .header-nav>.button,.hero-actions>.button,.header #siteGuideOpen){background:var(--rose-soft);color:var(--rose-muted);border:1px solid var(--rose-edge)}
body:not(.chat-popup) :is(.header .header-nav>.button,.hero-actions>.button,.header #siteGuideOpen):hover{background:var(--rose-hover);border-color:var(--rose-title)}
body:not(.chat-popup) :is(.header .header-nav,.hero-actions)>.button-primary,
body:not(.chat-popup) :is(.header .header-nav,.hero-actions)>.button-primary:hover{background:var(--rose-solid);color:var(--rose-on);border-color:var(--rose-solid)}
body:not(.chat-popup) .hero-actions>#heroSignup{min-height:40px;padding:8px 15px;font-size:14px}

/* First visit: keep the introduction and login visible, reveal the rest after one choice. */
body.choose-visitor :is(.hero-actions,#profiles,#roomWorkspace,.footer,#signupOpen){display:none}
body:not(.chat-popup) #roomWorkspace.initial-room-load{visibility:hidden}
body.choose-visitor .hero{min-height:min(520px,calc(100svh - 76px));gap:clamp(24px,5vw,72px)}
.visitor-entry{margin-top:20px;max-width:350px;padding:16px;border:1px solid var(--rose-edge);border-radius:14px;background:var(--rose-soft)}
.visitor-entry p{margin:0 0 10px;color:var(--rose-muted);font-weight:700;font-size:15px}
.visitor-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body:not(.chat-popup) .visitor-options>.button{width:100%;min-height:42px;justify-content:center;padding:6px 10px;border:1px solid var(--rose-edge);background:var(--rose-solid);color:var(--rose-on);font-size:15px}
body:not(.chat-popup) .visitor-options>.button:hover{background:var(--rose-hover);color:var(--rose-muted)}

#profileDialog .profile-gender{display:flex;align-items:center;gap:12px;margin:1px 0 3px;color:var(--a-muted);font-size:13px}
#profileDialog .profile-gender dd{margin:0;color:var(--a-text);font-weight:600}

@media(max-width:360px){body:not(.chat-popup) .header.wrap:has(#memberNav:not([hidden])){height:auto;min-height:76px;flex-wrap:wrap;padding-block:7px;row-gap:3px}}

#birthRow{margin:0;padding:0;border:0;min-width:0}
#birthRow legend{padding:0;margin-bottom:4px;font-weight:650}
#birthRow>div{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:8px}
#birthRow label{display:grid;gap:3px;min-width:0}
#birthRow input{width:100%;min-width:0}
.profile-portrait .member-portrait{width:100%;height:100%;display:block;object-fit:cover}

#chat .compose-photo{position:relative;grid-column:1/-1;justify-self:start;align-self:start;display:flex;align-items:center;justify-content:center;width:76px;height:64px;margin:3px 0 6px;background:#f1f3f5;border:1px solid #d7dce2;border-radius:8px}
#chat .compose-photo>img{display:block;width:100%;height:100%;border-radius:7px;object-fit:contain}
#chat .compose-photo>button,#cardGallery .editable-photo>button{position:absolute;right:3px;top:3px;display:grid;place-items:center;width:19px;height:19px;padding:0;border:0;border-radius:50%;background:#20252de0;color:white;font:15px/1 'Segoe UI',sans-serif;cursor:pointer}

/* Five portrait cards on desktop; scale down without cropping the photo. */
/* Fit as many cards as the available logical content width allows. */
#memberProfiles{grid-template-columns:repeat(auto-fill,minmax(min(100%,clamp(94px,calc(4vw + 73px),106px)),1fr));column-gap:8px;row-gap:8px;align-items:start}
#memberProfiles>.profile-card{display:block;min-width:0}
#memberProfiles .profile-portrait{display:grid;place-items:center;aspect-ratio:1.05;min-height:0;height:auto;padding:12px;background:color-mix(in srgb,Canvas 94%,CanvasText);overflow:hidden}
#memberProfiles .member-portrait{height:100%;width:100%;object-fit:contain;object-position:center;border-radius:8px}
#memberProfiles .profile-info{padding:5px 10px 6px}
#memberProfiles .profile-info h3{font-size:16px;line-height:1.35;margin:0 0 4px}
#memberProfiles .profile-info p{margin:0 0 5px;line-height:1.4;overflow-wrap:anywhere}
@media (max-width:1050px){
 #memberProfiles>.profile-card>.profile-portrait{padding:5px}
 #memberProfiles>.profile-card>.profile-info{padding:5px 4px 6px}
 #memberProfiles>.profile-card>.profile-info h3{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
 #memberProfiles>.profile-card>.profile-info h3>span:not(.staff-badge){font-size:11px;white-space:nowrap}
 #memberProfiles>.profile-card>.profile-info>.profile-location{font-size:11px}
 #memberProfiles>.profile-card>.profile-info>.interest-tags>span{font-size:10px}
}

#memberProfiles .interest-tags{margin:0 0 4px;gap:4px}
#memberProfiles .interest-tags span{padding:1px 6px;line-height:1.4}
#memberProfiles .profile-info>.interest-tags{flex-wrap:nowrap;gap:2px;min-width:0}
#memberProfiles .profile-info>.interest-tags>span{flex:0 1 auto;min-width:0;padding-inline:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#profiles .profile-info>.interest-tags:not(:has(>span:nth-child(4))){justify-content:center;flex-wrap:nowrap}
.profile-admin-tools{position:absolute;top:0;left:0;z-index:4;font-size:12px}
body:not(.profile-admin-authenticated) .profile-admin-tools:not(.profile-admin-entry):not(.profile-operator-tools),body:not(.profile-admin-eligible) .profile-admin-entry:not(.profile-admin-member-entry),body:not(.profile-admin-eligible):not(.profile-admin-designated) .profile-admin-member-entry,body.profile-admin-authenticated .profile-admin-entry{display:none}
.profile-admin-tools>summary{padding:7px 10px;cursor:pointer;white-space:nowrap}
.profile-admin-tools>summary::-webkit-details-marker{display:none}
.profile-admin-options{position:absolute;top:calc(100% + 3px);left:0;display:grid;gap:2px;min-width:112px;padding:4px;border:1px solid var(--control-border);border-radius:7px;background:Canvas;box-shadow:0 4px 12px #0003}
.profile-admin-tools:not([open]) .profile-admin-options{display:none}
.profile-admin-options>button{min-width:0;white-space:nowrap;padding:5px 7px;text-align:left;font-size:12px}
#cardGallery .editable-photo{position:relative;width:78px;height:78px}#cardGallery .editable-photo>img{display:block}
#memberProfiles :is(.interest-tags,.card-gallery):empty{display:none}

#memberProfiles .avatar-marker{display:block;color:var(--muted);font-size:10px;line-height:1.3;margin:0 0 3px}
@media(min-width:1051px){#memberProfiles .profile-portrait{padding:5px}#memberProfiles .profile-info{padding:5px 6px}#memberProfiles .profile-info h3{font-size:13px;overflow-wrap:anywhere}#memberProfiles .profile-info h3 span{font-size:11px;margin-left:0}#memberProfiles .card-gallery img{width:min(48px,100%);height:auto;aspect-ratio:1}}

#chat .chat-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap}
#chat .chat-header-actions>#hostMenuToggle,#chat .chat-header-actions>#qaAvatarJoin,#chat .chat-header-actions>#qaAvatarNext{font-size:11px;padding:4px 7px;background:#edf4fa;color:#29445a;border:1px solid #829bb0;border-radius:5px}
#profileDialog .qa-gender{display:grid;gap:4px;margin:0 0 2px}

#memberProfiles>.profile-card{position:relative;overflow:visible}
#memberProfiles .profile-detail-toggle{display:grid;width:100%;border:0;border-radius:7px 7px 0 0;position:relative}
#memberProfiles .profile-detail-toggle:disabled{opacity:1;cursor:default}
#memberProfiles .avatar-marker{position:absolute;inset:5px auto auto 5px;margin:0;padding:2px 4px;border-radius:4px;background:#252630e8;color:#fff;font-size:9px}
#memberProfiles .detail-open{z-index:3}
#memberProfiles .profile-hover-detail{position:absolute;top:calc(100% - 1px);left:0;box-sizing:border-box;width:min(404px,calc(100vw - 24px));height:auto;background:Canvas;color:CanvasText;border:1px solid var(--line);border-radius:8px;padding:10px;box-shadow:0 6px 20px #0005;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
@media(max-height:700px){#memberProfiles .profile-hover-detail{width:min(512px,calc(100vw - 24px))}#memberProfiles .profile-hover-detail .profile-hover-photo{height:clamp(80px,22vh,155px)}}
#memberProfiles .profile-hover-detail p{margin:5px 0;color:var(--muted)}
#memberProfiles .profile-hover-detail .card-gallery{margin-top:6px}

.profile-more-row{display:flex;justify-content:center;margin-top:12px}
.profile-more-row>:is(#profileMore,.room-kind-more){width:auto;min-width:96px;justify-content:center;padding:6px 15px}

body:not(.chat-popup){--control-bg:#f1f4f8;--control-text:#212d3d;--control-border:#cbd5e2;--control-hover:#e3eaf3;--control-primary-hover:#88244a}
@media(prefers-color-scheme:dark){body:not(.chat-popup){--control-bg:#252d3b;--control-text:#edf2fa;--control-border:#414c5e;--control-hover:#323e50;--control-primary-hover:#ffb4c9}}
body:not(.chat-popup) .account-ui :is(.button,.icon-button):not(.button-primary){background:var(--control-bg);color:var(--control-text);border-color:var(--control-border)}
body:not(.chat-popup) .account-ui :is(.button,.icon-button):not(.button-primary):hover{background:var(--control-hover);border-color:var(--control-border)}
body:not(.chat-popup) #profileDialog #leaveAccount .leave-btn{color:var(--a-menu-ink,var(--a-danger))}

body:not(.chat-popup) #profiles .interest-tags span{background:var(--hobby-tag-bg);color:var(--hobby-tag-ink);border:0}

#memberProfiles .profile-hover-photo{width:100%;height:190px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin:0 0 8px;background:color-mix(in srgb,Canvas 94%,CanvasText);border-radius:8px}
#memberProfiles .profile-hover-portrait{display:block;flex:none;width:auto;height:auto;max-width:100%;max-height:100%;border-radius:8px}
#memberProfiles .profile-hover-detail .card-gallery{align-items:center}
#memberProfiles .profile-hover-detail .card-gallery img{width:auto;height:auto;max-width:78px;max-height:78px;aspect-ratio:auto;border-radius:8px}

/* Guest profile hint shares the room notification treatment without catching pointer input. */
#guestProfileHint{pointer-events:none;inset:auto;width:max-content;max-width:calc(100vw - 16px);max-height:none;overflow:visible}
/* Keep room notifications clear of the scrollbar's moving Top control. */
body:not(.chat-popup) .incoming-rooms{position:fixed;z-index:25;right:max(64px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));width:min(310px,calc(100vw - 78px));max-height:min(48vh,350px);overflow:auto;overscroll-behavior:contain;padding:12px 13px;border:1px solid color-mix(in srgb,CanvasText 22%,Canvas);border-radius:10px;background:Canvas;color:CanvasText;box-shadow:0 5px 17px #0003;font-size:14px;line-height:1.45}
.incoming-room-row{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
.incoming-room-row + .incoming-room-row{margin-top:10px;padding-top:10px;border-top:1px solid color-mix(in srgb,CanvasText 14%,Canvas)}
.incoming-room-row>span{overflow-wrap:anywhere}
body:not(.chat-popup) .incoming-room-row>.button{justify-self:end;min-height:34px;padding:5px 11px;border:1px solid var(--control-border,ButtonBorder);border-radius:6px;background:var(--control-bg,ButtonFace);color:var(--control-text,ButtonText);font-size:13px}
body:not(.chat-popup) .incoming-room-row>.button:hover{background:var(--control-hover,ButtonFace);border-color:var(--control-border,ButtonBorder)}
@media(forced-colors:active){body:not(.chat-popup) .incoming-rooms{border-color:CanvasText;box-shadow:none}}

#memberProfiles .profile-hover-heading{margin:0 0 5px}
#memberProfiles .profile-hover-heading h3{margin:0 0 4px;font-size:16px;line-height:1.35}
#memberProfiles .profile-hover-heading h3 span{white-space:nowrap}
#memberProfiles .profile-hover-heading .interest-tags{margin:0;display:flex;flex-wrap:wrap}
#memberProfiles .profile-hover-heading .interest-tags:empty{display:none}

#chat :is(.chat-room-avatar,.incoming-avatar).peer-photo-button{appearance:none;padding:0;border:0}
#chat .peer-photo-button:not(:disabled){cursor:pointer}
#chat .peer-photo-button:focus-visible{outline:2px solid #165982;outline-offset:2px}
#chatRoomCover{width:45px;height:34px;object-fit:cover;border-radius:6px;border:1px solid #829bb0}
#chat .chat-header-actions>#chatMoreToggle{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:transparent;color:#20252b;box-shadow:none}
#chat .chat-header-actions>#chatMoreToggle[hidden]{display:none}
#chat .chat-header-actions>#chatMoreToggle:is(:hover,:focus-visible,[aria-expanded=true]){background:#38536c20}
#chat .chat-header-actions>#chatCoverChange{font-size:11px;padding:4px 7px;background:#edf4fa;color:#29445a;border:1px solid #829bb0;border-radius:5px;white-space:nowrap}
#chatPeerDialog{box-sizing:border-box;width:min(430px,calc(100% - 24px));padding:15px;border-radius:8px;background:Canvas;color:CanvasText;border:1px solid color-mix(in srgb,CanvasText 23%,Canvas)}
#chatPeerDialog .icon-button,#roomHostDialog .button:not(.button-primary){background:ButtonFace;color:ButtonText;border:1px solid color-mix(in srgb,ButtonText 25%,ButtonFace)}
#chatPeerDialog .icon-button:hover,#roomHostDialog .button:not(.button-primary):hover{border-color:Highlight}
#chatPeerBody .muted,.profile-popup-location{color:CanvasText;opacity:.78}
.profile-popup-location{font-size:13px;margin:-4px 0 8px}
#chatPeerDialog .account-header{margin-bottom:10px;gap:10px}
#chatPeerDialog h2{font-size:17px;overflow-wrap:anywhere}
#chatPeerBody{display:grid;gap:7px;overflow-wrap:anywhere}
#chatPeerBody .chat-peer-bio,#chatPeerBody .muted{margin:0;white-space:pre-wrap}
#chatPeerBody .interest-tags span{background:var(--hobby-tag-bg);color:var(--hobby-tag-ink)}
#chatPeerBody .chat-peer-portrait{width:100%;height:min(230px,38vh);object-fit:contain;background:#f0f4f8;border-radius:7px}

#chat .chat-header-actions>#chatLeave{font-size:11px;padding:4px 7px;background:#edf4fa;color:#29445a;border:1px solid #829bb0;border-radius:5px;white-space:nowrap}
:is(#chatLeaveDialog,#chatKickDialog,#chatTransferHostDialog){box-sizing:border-box;width:min(360px,calc(100% - 24px));padding:15px;border-radius:12px;background:#fff;color:#20252b;border:1px solid #9bb2c5}
:is(#chatLeaveDialog,#chatKickDialog,#chatTransferHostDialog) .account-header{margin-bottom:8px}
:is(#chatLeaveDialog,#chatKickDialog,#chatTransferHostDialog) h2{font-size:17px}
:is(#chatLeaveDialog,#chatKickDialog,#chatTransferHostDialog) p{font-size:14px;overflow-wrap:anywhere}
:is(#chatLeaveDialog,#chatKickDialog,#chatTransferHostDialog) .chat-leave-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:12px}
:is(#chatKickDialog,#chatTransferHostDialog) select{display:block;width:100%;margin:4px 0 9px}
:is(#chatLeaveConfirm,#chatKickConfirm){background:#963e4e;border-color:#963e4e;color:#fff}

#rooms>.room-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;gap:8px;align-items:center}
#rooms .room-list-thumb{display:grid;place-items:center;width:34px;height:30px;border:1px solid var(--control-border);border-radius:5px;box-sizing:border-box;overflow:hidden;background:var(--control-hover)}
#rooms .room-list-thumb:not(:has(img))::after{content:'';width:10px;height:8px;border:1px solid currentColor;opacity:.38;border-radius:2px}
#rooms .room-list-thumb img{display:block;width:100%;height:100%;object-fit:cover}
#rooms .room-people{min-width:24px;text-align:right;white-space:nowrap;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}

#memberProfiles .profile-hover-detail.profile-fit-wide{display:flow-root;width:min(620px,calc(100vw - 24px))}
#memberProfiles .profile-fit-wide .profile-hover-photo{float:left;width:min(35%,180px);height:156px;margin:0 12px 7px 0}
#memberProfiles .profile-fit-wide .card-gallery{clear:both}

#chat .compose-photos{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px;margin:3px 0 5px}
#chat .compose-photos>.compose-photo{margin:0;width:64px;height:55px}

/* Private support conversations use the existing chat UI. */
.support-footer-link{border:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;padding:4px 0;cursor:pointer}.support-rooms{display:grid;gap:8px;max-height:55vh;overflow:auto}.support-room-button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left;padding:12px;border:1px solid var(--line);border-radius:8px;background:transparent;color:inherit}.support-room-button strong{overflow-wrap:anywhere}.support-room-button span{white-space:nowrap;font-size:12px}.support-chat .peer-photo-button{cursor:default}.support-chat .chat-header-actions{display:none}

.location-fields{border:0;padding:0;margin:12px 0;min-width:0}.location-fields legend{padding:0;margin-bottom:6px;font-size:14px}.location-selects{display:flex;gap:10px}.location-selects label{flex:1;min-width:0}.location-selects select{display:block;width:100%;margin-top:4px}.location-fields .fine{margin:6px 0 0}.location-fields .fine:empty{display:none}

.profile-info .profile-location,.profile-hover-heading .profile-location{margin:3px 0 7px;font-size:13px;line-height:1.5;color:inherit}.location-disclosure{line-height:1.5}

body:not(.chat-popup) #profileDialog.account-ui{width:min(660px,calc(100% - 24px))}
#profileDialog .profile-settings{display:grid;grid-template-columns:152px minmax(0,1fr);gap:16px}
#profileDialog .profile-settings-body{min-width:0}
#profileDialog .profile-menu{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;padding-right:9px;border-right:1px solid var(--a-border)}
body:not(.chat-popup) #profileDialog .profile-menu>.button{justify-content:flex-start;text-align:left;width:100%;white-space:nowrap;font-size:12px;padding-inline:7px;margin:0}
body:not(.chat-popup) #profileDialog .profile-menu>.button[aria-pressed=true]{color:var(--a-menu-ink,var(--a-accent));border-color:var(--a-accent);font-weight:700}
body:not(.chat-popup) #profileDialog .profile-menu>.profile-withdraw-nav{margin-top:auto;color:var(--a-menu-ink,var(--a-danger))}
#profileDialog .profile-identity{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center}
#profileDialog .profile-identity .qa-gender{display:grid;grid-template-columns:auto minmax(42px,1fr);align-items:center;gap:6px;white-space:nowrap;margin:0}
#profileDialog #qaBirth,#profileDialog #qaGender{min-width:0;width:100%;height:34px;padding:4px 6px}
#profileDialog #profileIdentityAdmin{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#profileDialog #profileNotice:empty{display:none}
@media(max-width:560px){#profileDialog .profile-settings{grid-template-columns:132px minmax(0,1fr);gap:8px}#profileDialog .qa-gender-prefix{display:none}#profileDialog .profile-identity{gap:7px}}
@media(max-width:390px){#profileDialog .profile-settings{grid-template-columns:118px minmax(0,1fr);gap:6px}#profileDialog .profile-menu{padding-right:4px}body:not(.chat-popup) #profileDialog .profile-menu>.button{font-size:11px;padding-inline:4px}#profileDialog .profile-identity .qa-gender{grid-template-columns:minmax(0,1fr);gap:2px}}
#rechargePanel,#rechargeForms{display:grid;gap:12px}
#rechargePanel .recharge-demo{margin:0;font-size:12px;color:var(--muted)}
#rechargePanel .recharge-form{--save-row-gap:6px;display:grid;gap:var(--save-row-gap);margin:0;padding:12px;border:1px solid var(--line);border-radius:8px}
#rechargePanel .recharge-form label{font-weight:600}
#rechargePanel select{width:100%;background:Canvas;color:CanvasText;font-size:13px}
#rechargePanel .recharge-check{display:flex;gap:7px;align-items:center;cursor:pointer}
#rechargePanel .recharge-total,#rechargePanel .muted,#rechargeStatus{margin:0}
#rechargeStatus:empty{display:none}
#profileCardPane h3{font-size:15px;margin:0 0 8px}#cardForm :is(input:not([type=checkbox]),textarea){width:100%;min-width:0}#cardForm .fine:empty{display:none}
#profileDialog .profile-settings-body{max-height:max(140px,calc(100dvh - 120px));overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
.icon-button.profile-close{display:grid;place-items:center;padding:0}
.icon-button.profile-close svg{display:block}
#profileRecharge h3{font-size:15px;margin:0 0 8px}
#profileRecharge .profile-recharge-balance{margin:0 0 10px}
body:not(.chat-popup) dialog.account-ui#roomHostDialog{position:fixed;margin:0;inset:auto;max-height:calc(100dvh - 24px);overflow:auto;width:min(690px,calc(100% - 24px));color:CanvasText;background:Canvas;border:1px solid var(--line);border-radius:16px;padding:clamp(14px,3vw,24px)}
#roomHostDialog .account-header{margin-bottom:8px}
#roomHostRoom{margin:0 0 12px;overflow-wrap:anywhere}
#roomHostDetails{margin-bottom:12px}
.room-host-summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start}
.room-host-portrait{display:block;width:clamp(88px,26vw,210px);max-height:280px;object-fit:contain;border-radius:12px}
.room-host-text{min-width:0;overflow-wrap:anywhere}
.room-host-text>*{margin:0 0 6px}
.room-host-gallery{margin-top:10px}
.room-host-gallery img{width:clamp(65px,14vw,112px);height:clamp(65px,14vw,112px)}

#rooms .room-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0;padding-right:7px}
#rooms .room-entry .room-row{min-width:0}
#rooms .room-entry .room-start{width:auto;white-space:nowrap;padding:7px 9px;font-size:12px}
@media(max-width:430px){#rooms .room-entry{gap:4px;padding-right:0}#rooms .room-entry .room-start{padding:5px 4px;font-size:11px}}

#roomKind{width:100%;margin-bottom:4px}.group-rooms-section,.private-invites-section{padding:16px;margin-top:12px}.main-column>.private-invites-section{margin-top:0;margin-bottom:12px}.group-rooms-section h2,.private-invites-section h2{font-size:17px}.group-room-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;text-align:left;margin-top:7px;padding:10px;border:1px solid var(--control-border);border-radius:7px;background:var(--control-bg);color:inherit}.group-dialog{width:min(940px,calc(100% - 24px));max-height:90vh;overflow:auto}.group-dialog h3{font-size:14px;margin:8px 0}.group-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:15px}.group-layout>div{min-width:0}.group-messages{height:42vh;min-height:160px;overflow:auto;border:1px solid var(--control-border);border-radius:8px;padding:12px}.group-message{padding:8px 10px;margin-bottom:8px;background:var(--control-bg);border-radius:8px;overflow-wrap:anywhere}.group-message.own{border-left:3px solid #779ae3}.group-message strong,.group-message small{font-size:11px;opacity:.8}.group-message p{margin:3px 0;white-space:pre-wrap}.group-composer{display:flex;align-items:flex-end;gap:8px;margin-top:10px}.group-composer textarea{flex:1;min-width:0;resize:vertical}.group-members{max-height:24vh;overflow:auto}.group-member,.private-invite{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:7px 0;border-bottom:1px solid var(--control-border)}.group-member>span,.private-invite>span{flex:1;min-width:90px;overflow-wrap:anywhere}.group-member button,.private-invite button{font-size:12px;padding:5px 7px}.group-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.group-dialog #groupInvites{max-height:22vh;overflow:auto}@media(max-width:650px){.group-layout{grid-template-columns:1fr}.group-layout aside{border-top:1px solid var(--control-border);padding-top:8px}.group-messages{height:30vh}.group-members{max-height:16vh}.group-bottom{align-items:flex-start;flex-direction:column}}

#memberProfiles .profile-hover-detail .profile-private-request{position:absolute;right:9px;top:9px;z-index:2;padding:7px 10px;font-size:12px;box-shadow:0 1px 5px #0003}#memberProfiles .has-private-request .profile-hover-heading{padding-right:95px}

/* One profile detail component for hover, room host and chat peer. */
.shared-profile-detail{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;font-size:13px;line-height:1.5;color:CanvasText;overflow-wrap:anywhere}.shared-profile-detail .shared-profile-portrait{display:block;width:100%;height:min(220px,30vh);object-fit:contain;border-radius:8px;background:transparent}.shared-profile-detail .shared-profile-heading h3{font-size:17px;line-height:1.4;margin:0}.shared-profile-detail .shared-profile-heading h3 span{font-size:13px;font-weight:400}.shared-profile-detail .shared-profile-heading .profile-location{margin:3px 0 6px;font-size:13px}.shared-profile-detail .shared-profile-bio{white-space:pre-wrap}.shared-profile-detail p,.shared-profile-detail .shared-profile-traits{margin:0;font-size:13px}.shared-profile-detail .interest-tags{display:flex;flex-wrap:wrap;gap:5px}.shared-profile-detail .interest-tags span{font-size:12px}.shared-profile-detail .shared-profile-gallery{display:flex;flex-wrap:wrap;gap:7px;margin-top:0}.shared-profile-detail .shared-profile-gallery img{width:auto!important;height:auto!important;max-width:90px!important;max-height:90px!important;object-fit:contain;border-radius:7px}.shared-profile-detail .profile-private-request{position:absolute;top:0;right:0;z-index:2;font-size:12px;padding:7px 10px}.shared-profile-detail.with-request .shared-profile-heading{padding-right:90px}#memberProfiles .profile-hover-detail .shared-profile-detail p{color:inherit;margin:0}#memberProfiles .profile-hover-detail .shared-profile-detail .profile-location{margin:3px 0 6px}#memberProfiles .profile-hover-detail .shared-profile-detail .profile-private-request{top:0;right:0}#roomHostDialog,#chatPeerDialog{background:Canvas;color:CanvasText}#chatPeerBody{display:block}

#groupHours,#groupGender{min-width:0;margin:0;padding:8px 9px 9px;border:1px solid var(--line);border-radius:8px}
#groupHours legend,#groupGender legend{padding:0 4px;font-size:13px;font-weight:700}
.group-hours-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.group-hours-fields label{display:grid;gap:4px;min-width:0}
.group-hours-fields select{width:100%;padding-inline:6px}
#groupHoursHint,#groupTalkHours,#groupGenderHint{margin:6px 0 0}
.group-room-heading{display:grid;gap:1px;text-align:left;min-width:0}
.group-hours-label{font-size:12px;font-weight:500;white-space:normal}

#groupGender select{width:100%}

/* Playground uses the same chat window, messages and composer. */
.shared-group-tools{padding:0 12px 6px;font-size:12px}.shared-group-tools summary{cursor:pointer;width:fit-content;color:inherit}.shared-group-panel{max-height:40vh;overflow:auto;padding:10px;background:Canvas;color:CanvasText;border:1px solid ButtonBorder;border-radius:8px}.shared-group-panel h3{font-size:13px;margin:8px 0}.shared-group-panel .group-members{max-height:none}.shared-group-panel .group-member{padding:5px 0}.shared-group-panel .private-request-button{font-size:12px;padding:5px 8px}

.private-invite>.private-invite-cancel{margin-left:auto;flex-shrink:0;white-space:nowrap}

/* Two recommendation cards, not two introduction photos; only this dialog widens. */
body:not(.chat-popup) dialog.account-ui#matchDialog{width:min(900px,calc(100% - 24px));padding:0;overflow:hidden;max-height:calc(100dvh - 32px)}
#matchDialog .match-scroll{overflow-y:auto;overflow-x:hidden;max-height:calc(100dvh - 34px);padding:clamp(16px,3vw,24px) 72px 24px clamp(16px,3vw,24px);scrollbar-gutter:stable;overscroll-behavior:contain}
#matchDialog .match-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px}
#matchDialog .match-list>article{min-width:0}
#matchDialog .match-list>p{grid-column:1/-1}
#matchDialog .card-gallery{max-width:100%;min-width:0}
.scroll-top-button{min-width:46px;min-height:40px;padding:8px;border:1px solid var(--a-border,ButtonBorder);background:var(--a-panel,Canvas);color:var(--a-text,CanvasText);box-shadow:0 2px 10px #0002;font-size:12px}
.scroll-top-button:focus-visible{outline:2px solid var(--a-accent,AccentColor);outline-offset:2px}
#matchDialog .match-top{position:absolute;right:19px;bottom:20px;z-index:2}
.main-top{position:fixed;right:calc(6px + env(safe-area-inset-right,0px));top:var(--main-top-y,calc(100% - 46px));z-index:30}
body.chat-popup .main-top{display:none!important}
#matchDialog .match-scroll>.fine{font-size:14px;line-height:1.5}
@media(max-width:640px){#matchDialog .match-list{grid-template-columns:minmax(0,1fr)}#matchDialog .match-scroll{padding-left:16px;padding-right:68px}#matchDialog .match-top{right:15px}}

/* Recommendation popover uses the shared profile renderer. */
.match-profile-preview{position:fixed;inset:auto;margin:0;width:min(380px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow-y:auto;box-sizing:border-box;padding:16px;border:1px solid ButtonBorder;border-radius:12px;background:Canvas;color:CanvasText;box-shadow:0 10px 32px #0003;z-index:1000}.match-profile-preview::backdrop{background:transparent;pointer-events:none}.match-preview-anchor{cursor:pointer}.match-preview-anchor:focus-visible{outline:2px solid Highlight;outline-offset:3px}



.group-room-cover{width:48px;height:48px;object-fit:contain;flex:none;border-radius:6px}.group-room-row .group-room-heading{flex:1}

.host-menu{position:fixed;inset:auto;margin:0;min-width:130px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;padding:5px;border:1px solid ButtonBorder;border-radius:8px;background:Canvas;color:CanvasText;box-shadow:0 5px 20px #0003}.host-menu [role=menuitem]{display:block;width:100%;padding:9px 14px;border:0;border-radius:4px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}.host-menu [role=menuitem]:is(:hover,:focus-visible){background:Highlight;color:HighlightText;outline:none}.host-menu [hidden]{display:none!important}.host-menu::backdrop{display:none}

.signup-portrait-preview{display:block;max-width:100%;width:140px;height:160px;object-fit:contain;margin:10px 0;border-radius:8px}.signup-portrait-preview[hidden]{display:none}

#rooms .combined-room-title{display:flex;flex-wrap:wrap;align-items:center;gap:3px 7px;min-width:0;text-align:left}#rooms .combined-room-title strong{min-width:0;overflow-wrap:anywhere}#rooms .combined-room-title .group-hours-label{flex-basis:100%;font-size:11px}#roomSearch{display:block;width:100%;box-sizing:border-box;margin:6px 0 10px}#rooms .room-entry .room-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:7px;margin:0;padding:7px 10px}

#rooms .room-kind-section{min-width:0}#rooms .room-kind-heading{font-size:15px;margin:12px 0 7px}#rooms .room-kind-list{display:grid;gap:4px}#rooms .room-kind-list>.room-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;align-items:center;margin:0;padding:7px 10px;min-height:34px;border-radius:8px}#rooms .room-kind-list .pill{padding:2px 8px;white-space:nowrap}#rooms .room-kind-empty{font-size:13px;margin:5px 0 10px}

#rooms .room-open-date{font-size:11px;line-height:1.3;font-weight:400;opacity:.68;white-space:nowrap;font-variant-numeric:tabular-nums}

#rooms .room-open-today{font-size:10px;opacity:.8;border:1px solid var(--control-border);border-radius:4px;padding:1px 4px;letter-spacing:.02em}

@media (prefers-color-scheme:dark){#rooms .room-open-today{color:#ffe45e;border-color:rgba(255,228,94,.55);background-color:rgba(255,228,94,.10);opacity:1}}

@media (prefers-color-scheme:light){#rooms .room-open-today{color:#78420c;border-color:rgba(120,66,12,.55);background-color:rgba(120,66,12,.08);opacity:1}}

:root{--hobby-tag-bg:#e7f1f7;--hobby-tag-ink:#2e4a60}@media(prefers-color-scheme:dark){:root{--hobby-tag-bg:#283845;--hobby-tag-ink:#d3e3ee}}.shared-profile-detail .interest-tags span{background:var(--hobby-tag-bg);color:var(--hobby-tag-ink)}

/* Hit-testing uses the actual photo rectangle. Detail photos never exceed their source pixels. */
.shared-profile-detail .inline-profile-zoom{position:relative;display:block;flex:none;width:var(--photo-width,var(--photo-initial-width,90px));max-width:100%;aspect-ratio:var(--photo-ratio,1);border-radius:7px;line-height:0}
.shared-profile-detail .inline-profile-portrait{--photo-initial-width:min(220px,30vh);align-self:center;border-radius:8px}
.shared-profile-detail .shared-profile-gallery{align-items:flex-start}
#memberProfiles .profile-hover-detail .shared-profile-gallery{align-items:flex-start}
.shared-profile-detail .inline-profile-zoom>img,.shared-profile-detail .shared-profile-gallery .inline-profile-zoom>img{position:absolute;z-index:1;display:block;left:0;top:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:auto;object-fit:contain;pointer-events:none;border-radius:inherit;transition:left 180ms ease-in-out,top 180ms ease-in-out,width 180ms ease-in-out,height 180ms ease-in-out}
.shared-profile-detail .inline-profile-zoom.can-zoom{cursor:zoom-in}
.shared-profile-detail .inline-profile-zoom.can-zoom:is(:hover,:focus-visible){z-index:2}
.shared-profile-detail .inline-profile-zoom.can-zoom:is(:hover,:focus-visible)>img,.shared-profile-detail .shared-profile-gallery .inline-profile-zoom.can-zoom:is(:hover,:focus-visible)>img{left:var(--photo-zoom-left);top:var(--photo-zoom-top);width:var(--photo-zoom-width)!important;height:var(--photo-zoom-height)!important;pointer-events:auto}
.shared-profile-detail .profile-private-request,#memberProfiles .profile-hover-detail .profile-private-request{z-index:3}
.shared-profile-detail .inline-profile-zoom:focus-visible{outline:2px solid AccentColor;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.shared-profile-detail .inline-profile-zoom>img{transition:none}}

/* Keep the medium base fixed; decode the authorized large photo only on interaction. */
.shared-profile-detail .inline-profile-zoom.has-large-preview>img:not(.profile-zoom-large){left:0!important;top:0!important;width:100%!important;height:100%!important;pointer-events:none}
.shared-profile-detail .inline-profile-zoom>.profile-zoom-large{opacity:0;pointer-events:none;transition:left 180ms ease-in-out,top 180ms ease-in-out,width 180ms ease-in-out,height 180ms ease-in-out,opacity 180ms ease-in-out}
.shared-profile-detail .inline-profile-zoom.has-large-preview.can-zoom:is(:hover,:focus-visible)>.profile-zoom-large{opacity:1}
@media(prefers-reduced-motion:reduce){.shared-profile-detail .inline-profile-zoom>.profile-zoom-large{transition:none}}

.shared-profile-detail .profile-occupation{font:inherit;color:inherit;white-space:nowrap}.profile-occupation-field{display:grid;gap:5px;margin-top:10px;max-width:240px}

.chat-jump-bottom{position:absolute;right:var(--chat-jump-inline-end,0px);bottom:10px;z-index:24;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #d9dfe3;border-radius:50%;background:#f5f5f5;color:#292929;box-shadow:0 1px 2px #0000001a}
.chat-message-pane{position:relative;min-width:0}
body.chat-popup .chat-message-pane{display:flex;flex-direction:column;flex:1 1 0;min-height:0}
body.chat-popup.chat-docked #chat{height:max(0px,calc(100dvh - var(--chat-dock-height,123px) - var(--chat-dock-bottom,0px)))}
body.chat-popup #notice:not(:empty){position:fixed;inset:8px 12px auto;z-index:26;margin:0 auto;width:fit-content;max-width:calc(100% - 24px)}
#chat .messages{scrollbar-width:thin;scrollbar-color:#7d8d9a transparent}
@supports selector(::-webkit-scrollbar){
 #chat .messages{scrollbar-width:auto;scrollbar-color:auto}
 #chat .messages::-webkit-scrollbar{width:12px}
 #chat .messages::-webkit-scrollbar-button{display:none;width:0;height:0}
 #chat .messages::-webkit-scrollbar-track,#chat .messages::-webkit-scrollbar-corner{background:transparent}
 #chat .messages::-webkit-scrollbar-thumb{background:rgba(36,45,52,.45);background-clip:padding-box;border-right:2px solid transparent;border-radius:8px}
 #chat .messages::-webkit-scrollbar-thumb:hover{background-color:#5d6770}
}
.chat-jump-bottom:hover{background:#fff;border-color:#c8cfd4}
.chat-jump-bottom svg{display:block;pointer-events:none}
@media(forced-colors:active){.chat-jump-bottom,.chat-jump-bottom:hover{border-color:ButtonText;background:ButtonFace;color:ButtonText}}

#profileDialog{--profile-button-height:32px}
body:not(.chat-popup) #profileDialog button,#profileDialog input[type=file]::file-selector-button,#profileDialog #profileTraitsForm .choices label>span{height:var(--profile-button-height);min-height:var(--profile-button-height);padding-block:5px;line-height:20px}
#profileDialog :is(.profile-close,.editable-photo>button){width:var(--profile-button-height);padding:0}
#profileDialog .profile-save{justify-self:start;width:auto;margin-block-start:calc(10px - var(--save-row-gap,0px));padding-inline:14px;white-space:nowrap}
body:not(.chat-popup) dialog.account-ui#profileDialog .profile-settings-body :is(input,select,textarea):focus,body:not(.chat-popup) dialog.account-ui#profileDialog .profile-settings-body button:focus-visible{outline:2px solid var(--a-accent);outline-offset:-2px}

.staff-badge,#memberProfiles .profile-info h3 .staff-badge,.shared-profile-detail .shared-profile-heading h3 .staff-badge{display:inline-block;margin-inline-start:4px;padding:0 4px;border:1px solid #597f9a;border-radius:4px;background:#e2edf5;color:#234b69;font:700 10px/1.5 system-ui,sans-serif;white-space:nowrap;vertical-align:middle}
#rooms .staff-badge{margin-inline-start:0}
@media(prefers-color-scheme:dark){body:not(.chat-popup) .staff-badge,body:not(.chat-popup) #memberProfiles .profile-info h3 .staff-badge,body:not(.chat-popup) .shared-profile-detail .shared-profile-heading h3 .staff-badge{background:#253e50;color:#c8e6fa;border-color:#719bb8}}
.profile-admin-options .profile-admin-status{max-width:175px;margin:0;font-size:11px}
.profile-admin-options .profile-admin-status:empty{display:none}

#profileDialog #profileTraitsForm .choices label>span{display:flex;align-items:center;justify-content:center}

#profileDialog .profile-mbti-field{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-block-start:8px}

#rooms .group-room-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}#rooms .group-room-count{font-size:11px;line-height:1.3;font-variant-numeric:tabular-nums;color:CanvasText}

.message-context-menu [role=menuitem]:disabled{color:GrayText;background:transparent;cursor:default}
.chat-message-notice,.chat-reply-preview{flex:none;display:flex;align-items:center;gap:8px;min-width:0;padding:5px 10px;background:Canvas;color:CanvasText;font-size:13px;border-block-end:1px solid ButtonBorder}
.chat-message-notice[hidden],.chat-reply-preview[hidden]{display:none}
.chat-message-notice span,.chat-reply-preview>span,.chat-message-quote{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-reply-preview{justify-content:space-between;margin-bottom:4px}
.chat-reply-preview strong{margin-inline-end:8px}
.chat-reply-preview button{flex:none;width:24px;height:24px;min-height:0;padding:0;line-height:1}
.chat-message-quote{border-block-end:1px solid currentColor;font-size:12px;font-weight:600;padding-bottom:3px;margin-bottom:3px}
.deleted-chat-message{font-style:italic}
#messages [data-chat-message]:focus-visible{outline:2px solid Highlight;outline-offset:2px}

#chat .message-bubble:not(.message-photo,.message-emoji){padding-block:5.5px}

body.chat-popup #chat .message-row{margin-block-end:9px}

#chatOpacity{display:none}
body.chat-popup #chatOpacity:not([hidden]){appearance:none;display:block;box-sizing:content-box;flex:0 1 54px;width:54px;min-width:36px;height:24px;padding:0;margin:0 10px 0 auto;cursor:pointer;background:transparent;touch-action:pan-y}
body.chat-popup #chatForm .composer-bottom #sendBtn{margin-left:0}
#chatOpacity:focus-visible{outline:2px solid #376891;outline-offset:2px;border-radius:3px}
#chatOpacity::-webkit-slider-runnable-track{height:1px;background:#c7c7c7;border-radius:1px}
#chatOpacity::-webkit-slider-thumb{appearance:none;width:12px;height:12px;margin-top:-5.5px;border:1px solid #a9a9a9;border-radius:50%;background:#fff}
#chatOpacity::-moz-range-track{height:1px;background:#c7c7c7;border-radius:1px}
#chatOpacity::-moz-range-thumb{box-sizing:border-box;width:12px;height:12px;border:1px solid #a9a9a9;border-radius:50%;background:#fff}
@media(max-width:320px){body.chat-popup #chatOpacity:not([hidden]){margin-inline-end:2px}}

#chatComposeDefault{display:contents}
#chatComposeDefault[hidden],.chat-delete-toolbar[hidden]{display:none}
#chat.message-selecting #chatForm{padding:0}
.chat-delete-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:70px;padding:8px clamp(8px,2.75vw,16px) max(8px,env(safe-area-inset-bottom));background:#fff;color:#222}
.chat-delete-summary,.chat-delete-actions{display:flex;align-items:center;gap:10px;min-width:0}
.chat-delete-summary{font-size:14px}
.chat-delete-summary #chatDeleteClear{display:grid;place-items:center;flex:none;border:0;border-radius:50%;padding:0;width:25px;height:25px;background:#e9e9e9;color:#666;font:20px/1 system-ui}
.chat-delete-actions{flex:none}
.chat-delete-actions .button{display:grid;place-items:center;min-width:58px;width:64px;height:38px;padding:0 7px;border:1px solid #dedede;border-radius:5px;background:#fff;color:#222;font:inherit}
.chat-delete-actions #chatDeleteConfirm{background:#fee500;border-color:#e8cf00;color:#231e09}
#chat.message-selecting #messages{padding-inline-start:55px}
#chat.message-selecting .message-row{position:relative}
.chat-message-check{appearance:none;position:absolute;z-index:1;inset-inline-start:-36px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:27px;height:27px;margin:0;padding:0;border:1px solid #7e93a4;border-radius:50%;background:#fff;cursor:pointer}
#chat .chat-message-check:checked{background:#fee500;border-color:#efd500}
.chat-message-check:checked::after{content:'';width:9px;height:5px;border:solid #232323;border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg)}
.chat-message-check:focus-visible{outline:2px solid #376891;outline-offset:2px}
#chat.message-selecting .message-row:has(.chat-message-check) .message-bubble{cursor:pointer}

/* Referral link uses the existing account controls and theme. */
.profile-referral{margin-top:20px;padding-top:14px;border-top:1px solid var(--line,#ddd)}
.profile-referral h3{font-size:14px;margin:0 0 8px}
.profile-referral-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px}
.profile-referral-actions input{flex:1 1 220px;min-width:0;width:100%;margin:0}
.profile-referral-actions .button{flex:0 0 auto}
.profile-referral .fine{overflow-wrap:anywhere;margin:8px 0 0}

.referral-invitees-list{list-style:none;padding:0;margin:0}
.referral-invitee,.referral-invitees-labels{display:grid;grid-template-columns:minmax(0,1fr) 3em minmax(0,1fr) minmax(0,1.3fr) minmax(0,.95fr);gap:8px;align-items:center;padding:9px 0}
.referral-invitees-labels{font-size:12px;opacity:.7;border-bottom:1px solid var(--line,#ddd)}
.referral-invitee{border-bottom:1px solid var(--line,#ddd)}
.referral-invitee-name{overflow-wrap:anywhere;min-width:0}
.referral-invitee-date{font-size:12px;opacity:.7;white-space:nowrap}
#profileInvitees h3{font-size:16px;margin:0 0 12px}
@media(max-width:420px){.referral-invitee,.referral-invitees-labels{gap:8px}.referral-invitee-date{font-size:11px}}

.referral-invitee-age{font-size:12px;white-space:nowrap}

.referral-invitee>*,.referral-invitees-labels>*{min-width:0;overflow-wrap:anywhere}
.referral-invitee-region,.referral-invitee-hobbies{font-size:12px}
.referral-invitee-date{white-space:normal}
@media(max-width:420px){.referral-invitee,.referral-invitees-labels{grid-template-columns:minmax(0,1fr) 2.4em minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr);gap:5px}.referral-invitee>*,.referral-invitees-labels>*{font-size:11px}}

/* The same single-line metadata strip is used by every shared profile detail. */
.shared-profile-detail .shared-profile-meta{display:flex;align-items:center;gap:8px;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;margin:3px 0 6px}
.shared-profile-detail .shared-profile-heading .shared-profile-meta .profile-location{flex:0 0 auto;white-space:nowrap;margin:0;font-size:13px;line-height:1.5}
.shared-profile-detail .shared-profile-meta .interest-tags{display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;gap:4px;margin:0}
.shared-profile-detail .shared-profile-meta .interest-tags>span{white-space:nowrap}
@media(max-width:420px){.shared-profile-detail .shared-profile-meta{gap:6px}.shared-profile-detail .shared-profile-heading .shared-profile-meta .profile-location{font-size:12px}.shared-profile-detail .shared-profile-meta .interest-tags{gap:3px}}

.shared-profile-detail .shared-profile-personality-line{display:flex;align-items:baseline;gap:12px;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.shared-profile-detail .shared-profile-personality-line>.shared-profile-traits{flex:0 0 auto;white-space:nowrap}

.shared-profile-detail.with-request .shared-profile-heading{padding-right:0}
.shared-profile-detail.with-request .shared-profile-heading>h3{padding-right:90px}

/* Subtle separator directly below the detail metadata strip. */
.shared-profile-detail .shared-profile-meta{padding-bottom:7px;border-bottom:1px solid rgba(90,105,120,.18)}
@media(prefers-color-scheme:dark){.shared-profile-detail .shared-profile-meta{border-bottom-color:rgba(190,200,210,.20)}}

.shared-profile-detail .shared-profile-personality-line.has-top-divider{padding-top:7px;border-top:1px solid rgba(90,105,120,.18)}
@media(prefers-color-scheme:dark){.shared-profile-detail .shared-profile-personality-line.has-top-divider{border-top-color:rgba(190,200,210,.20)}}

#memberProfiles>.profile-card>.profile-info>.profile-location{text-align:center}

/* Hover summaries keep their compact width; full detail dialogs retain all prose. */
#memberProfiles .profile-hover-detail,#memberProfiles .profile-hover-detail.profile-fit-wide{width:min(404px,calc(100vw - 24px))}
:is(#memberProfiles .profile-hover-detail,.match-profile-preview) .shared-profile-bio{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-clamp:2}

/* AI reply status is not a pinned-message excerpt: keep the full error readable. */
#chat #aiReplyStatus{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 10px;background:Canvas;color:CanvasText;line-height:1.5}
#chat #aiReplyText{flex:1 1 160px;min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
#chat #aiReplyRetry{flex:0 0 auto;width:auto;max-width:100%;margin-left:auto;padding:5px 10px;min-height:32px;justify-content:center;background:ButtonFace;color:ButtonText;border:1px solid ButtonBorder;border-radius:6px;font-size:12px;line-height:1.5;white-space:nowrap}
#chat #aiReplyRetry:hover{background:Highlight;color:HighlightText}
#chat #aiReplyRetry:focus-visible{outline:2px solid Highlight;outline-offset:2px}

/* One compact ten-column picker; squirrel sheets remain original assets. */
#emojiDialog{width:min(440px,calc(100% - 12px))}
#emojiDialog .emoji-tiles{grid-template-columns:repeat(10,minmax(0,1fr));gap:3px}
#emojiDialog .emoji-choice{min-height:30px;aspect-ratio:1;font-family:'Segoe UI Emoji','Segoe UI Symbol',sans-serif;font-size:clamp(10px,4.5vw,26px)}
#emojiDialog .emoji-theme-title{color:CanvasText}
.squirrel-sticker{display:block;width:100%;aspect-ratio:1;background-repeat:no-repeat;border-radius:5px}
#emojiDialog .squirrel-choice{padding:1px;overflow:hidden}
.message-bubble.message-sticker{padding:4px;background:transparent!important;box-shadow:none}
.message-sticker .squirrel-sticker{width:min(150px,42vw)}
.squirrel-01{background-image:url(squirrel-moods.png);background-size:300.00000% 298.57143%;background-position:0.00000% 17.38609%}
.squirrel-02{background-image:url(squirrel-moods.png);background-size:300.00000% 298.57143%;background-position:50.00000% 17.38609%}
.squirrel-03{background-image:url(squirrel-moods.png);background-size:300.00000% 298.57143%;background-position:100.00000% 17.38609%}
.squirrel-04{background-image:url(squirrel-moods.png);background-size:300.00000% 298.57143%;background-position:0.00000% 79.73621%}
.squirrel-05{background-image:url(squirrel-moods.png);background-size:300.00000% 298.57143%;background-position:50.00000% 79.73621%}
.squirrel-06{background-image:url(squirrel-moods.png);background-size:300.00000% 298.57143%;background-position:100.00000% 79.73621%}
.squirrel-07{background-image:url(squirrel-affection.png?v=clean-0737);background-size:300.00000% 200.00000%;background-position:0.00000% 0.00000%}
.squirrel-08{background-image:url(squirrel-affection.png?v=clean-0737);background-size:300.00000% 200.00000%;background-position:50.00000% 0.00000%}
.squirrel-09{background-image:url(squirrel-affection.png?v=clean-0737);background-size:300.00000% 200.00000%;background-position:100.00000% 0.00000%}
.squirrel-10{background-image:url(squirrel-affection.png?v=clean-0737);background-size:300.00000% 200.00000%;background-position:0.00000% 100.00000%}
.squirrel-11{background-image:url(squirrel-affection.png?v=clean-0737);background-size:300.00000% 200.00000%;background-position:50.00000% 100.00000%}
.squirrel-12{background-image:url(squirrel-affection.png?v=clean-0737);background-size:300.00000% 200.00000%;background-position:100.00000% 100.00000%}
.squirrel-13{aspect-ratio:436/310;background-image:url(squirrel-actions.png);background-size:406.88073% 286.12903%;background-position:0.29895% 17.33102%}
.squirrel-14{aspect-ratio:419/327;background-image:url(squirrel-actions.png);background-size:423.38902% 271.25382%;background-position:33.57934% 15.00000%}
.squirrel-15{aspect-ratio:428/307;background-image:url(squirrel-actions.png);background-size:414.48598% 288.92508%;background-position:66.19614% 14.31034%}
.squirrel-16{aspect-ratio:439/265;background-image:url(squirrel-actions.png);background-size:404.10023% 334.71698%;background-position:99.85019% 18.32797%}
.squirrel-17{aspect-ratio:429/268;background-image:url(squirrel-actions.png);background-size:413.51981% 330.97015%;background-position:0.59480% 89.17609%}
.squirrel-18{aspect-ratio:423/334;background-image:url(squirrel-actions.png);background-size:419.38534% 265.56886%;background-position:33.01258% 93.49005%}
.squirrel-19{aspect-ratio:437/326;background-image:url(squirrel-actions.png);background-size:405.94966% 272.08589%;background-position:66.64174% 90.73084%}
.squirrel-20{aspect-ratio:1;background-image:url(squirrel-phone.png);background-size:contain;background-position:center}

/* Match the lower detail separator without stacking a second bottom margin. */
.shared-profile-detail .shared-profile-meta{margin-bottom:0}

#memberProfiles .profile-hover-detail .shared-profile-detail .shared-profile-meta .profile-location{margin:0}
.shared-profile-detail .shared-profile-personality-line:has(+.shared-profile-traits){margin-bottom:-4px}

/* Compact complete picker; short viewports retain wheel/touch/keyboard access. */
#emojiDialog{padding:6px;max-height:calc(100dvh - 12px)}
#emojiDialog>.account-header{padding:0;margin:0 0 2px;min-height:0}
#emojiDialog>.account-header h2{margin:0;line-height:1.2}
#emojiDialog .emoji-choices{padding:0;scrollbar-width:none;scrollbar-gutter:auto}
#emojiDialog .emoji-choices::-webkit-scrollbar{display:none;width:0;height:0}
#emojiDialog .emoji-theme+.emoji-theme{margin-top:1px}
#emojiDialog .emoji-theme-title{margin:0;line-height:11px}
#emojiDialog .emoji-tiles{gap:2px}
#emojiDialog .emoji-choice{height:clamp(24px,7vw,34px);min-height:0;aspect-ratio:auto}
#emojiDialog .squirrel-choice .squirrel-sticker{width:min(100%,30px);max-height:100%}
#emojiDialog .emoji-actions{margin-top:4px;padding-top:4px}

#chat #aiCallNotice{flex:none;margin:0;padding:6px 10px;background:Canvas;color:CanvasText;border-bottom:1px solid ButtonBorder;font-size:12px;line-height:1.5;overflow-wrap:anywhere}

#chat #aiCallInstall{margin:5px 0 0;display:block;width:auto;font-size:12px;padding:5px 8px;background:ButtonFace;color:ButtonText;border:1px solid ButtonBorder}

.chat-message-pane{position:relative}
#chatTypingIndicator{position:absolute;left:14px;bottom:10px;z-index:3;display:flex;align-items:center;gap:4px;padding:7px 10px;border-radius:10px;background:color-mix(in srgb,Canvas 92%,CanvasText);color:color-mix(in srgb,CanvasText 72%,Canvas);border:0;pointer-events:none;box-shadow:none}body.chat-popup #chatTypingIndicator{background:color-mix(in srgb,#fff 83%,rgb(var(--chat-popup-rgb,178 199 218)));color:#485b6c}
#chatTypingIndicator>span[aria-hidden]{width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.45;animation:chat-typing-pulse 1.2s ease-in-out infinite}
#chatTypingIndicator>span[aria-hidden]:nth-last-child(2){animation-delay:.15s}
#chatTypingIndicator>span[aria-hidden]:last-child{animation-delay:.3s}
@keyframes chat-typing-pulse{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){#chatTypingIndicator>span[aria-hidden]{animation:none;opacity:.7}}

/* Explicit message deletion keeps its original conversation position. */
#messages .message-bubble.deleted-chat-message{background:#f1f2f4;color:#70757c;border:1px solid #dfe2e6;font-style:normal;box-shadow:none;cursor:default}
#messages .message-bubble.deleted-chat-message::before,#messages .message-bubble.deleted-chat-message::after{display:none}
@media(prefers-color-scheme:dark){#messages .message-bubble.deleted-chat-message{background:#36393d;color:#bfc3c9;border-color:#4c5158}}

#chat .chat-header-actions #aiCallBtn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:CanvasText;box-shadow:none}
#chat .chat-header-actions #aiCallBtn:hover{background:color-mix(in srgb,CanvasText 10%,transparent)}
#chat #aiCallBtn svg{width:18px;height:18px;flex:none;pointer-events:none}
#chat #aiCallBtn .call-hangup{display:none}
#chat #aiCallBtn.is-calling .call-handset{display:none}
#chat #aiCallBtn.is-calling .call-hangup{display:block}
#chat .chat-header-actions #aiCallBtn.is-calling{color:#bd3540;background:color-mix(in srgb,#bd3540 9%,transparent)}
#chat #aiCallBtn:focus-visible{outline:2px solid Highlight;outline-offset:2px}

#chat #aiCallLevel{display:block;width:110px;height:12px;margin-top:4px}#chat #aiCallFinish{margin-top:4px;padding:5px 9px;background:ButtonFace;color:ButtonText;border:1px solid ButtonBorder;font-size:12px}

/* Tombstones blend with the actual message surface, not the OS color scheme. */
#messages .message-bubble.deleted-chat-message{background:transparent;color:#58636e;border-color:rgb(32 37 43 / .12);box-shadow:none}
body.chat-popup #messages .message-bubble.deleted-chat-message{background:rgb(var(--chat-popup-rgb,178 199 218) / .10);color:color-mix(in srgb,#20252b 78%,rgb(var(--chat-popup-rgb,178 199 218)));border-color:rgb(32 37 43 / .12)}

/* One member palette for the main controls and every account dialog. */
body:not(.chat-popup)[data-account-gender=male]{
 --rose-title:#17528F;--rose-solid:#4B9FFF;--rose-on:#071D38;
 --rose-soft:#edf5ff;--rose-edge:#aacdf5;--rose-muted:#17528F;--rose-hover:#dbeaff;
 --control-primary-hover:#73B5FF
}
@media(prefers-color-scheme:dark){
 body:not(.chat-popup)[data-account-gender=male]{
  --rose-title:#66AEFF;--rose-solid:#4B9FFF;--rose-on:#071D38;
  --rose-soft:#14263d;--rose-edge:#355a85;--rose-muted:#b8d8ff;--rose-hover:#203b5b;
  --control-primary-hover:#73B5FF
 }
}
body:not(.chat-popup) dialog.account-ui#profileDialog[data-account-gender=male]{
 --a-accent:var(--rose-solid);--a-accent-hover:var(--control-primary-hover);--a-on:var(--rose-on);--a-menu-ink:var(--rose-title)
}

body:not(.chat-popup) .account-ui{
 --a-accent:var(--rose-solid);--a-accent-hover:var(--control-primary-hover);--a-on:var(--rose-on)
}
body:not(.chat-popup) .button.button-primary:where(:not(#chat *,#emojiDialog *)){
 background:var(--rose-solid);color:var(--rose-on);border-color:var(--rose-solid)
}
body:not(.chat-popup) .button.button-primary:where(:not(#chat *,#emojiDialog *)):hover{
 background:var(--control-primary-hover);color:var(--rose-on);border-color:var(--control-primary-hover)
}

/* Deleted placeholders stay compact without changing ordinary messages. */
#messages .message-bubble.deleted-chat-message{font-size:11px;line-height:1.35;padding:3px 7px;min-height:0;border-radius:7px}

/* Top-layer preview leaves the ten-column picker grid untouched. */
.emoji-hover-preview{position:fixed;inset:auto;margin:0;padding:0;border:0;background:transparent;color:CanvasText;box-shadow:none;pointer-events:none;display:grid;place-items:center;overflow:visible;font-family:'Segoe UI Emoji','Apple Color Emoji',sans-serif;line-height:1;animation:emoji-preview-in .12s ease-out}
.emoji-hover-preview .squirrel-sticker{width:100%;max-height:100%}
.emoji-hover-preview::backdrop{pointer-events:none;background:transparent}
@keyframes emoji-preview-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.emoji-hover-preview{animation:none}}

#messages .support-fee-link{display:inline;margin:0;padding:0;min-width:0;min-height:0;border:0;border-radius:2px;background:transparent;color:inherit;font:inherit;line-height:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#messages .support-fee-link:hover{text-decoration-thickness:2px}
#messages .support-fee-link:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* Earned rank only; the source sheet is ordered left-to-right, then top-to-bottom. */
.squirrel-rank-badge{display:inline-block;width:24px;height:24px;margin-left:4px;vertical-align:middle;flex:none;background-image:url('squirrel-ranks-site.png');background-repeat:no-repeat;background-size:400% 200%;font-size:0;line-height:0}
.squirrel-rank-1{background-position:0.0% 0%}
.squirrel-rank-2{background-position:33.333333333333336% 0%}
.squirrel-rank-3{background-position:66.66666666666667% 0%}
.squirrel-rank-4{background-position:100.0% 0%}
.squirrel-rank-5{background-position:0.0% 100%}
.squirrel-rank-6{background-position:33.333333333333336% 100%}
.squirrel-rank-7{background-position:66.66666666666667% 100%}
.squirrel-rank-8{background-position:100.0% 100%}
.profile-name-line,.profile-name-rank{display:flex;align-items:center}
.profile-name-rank .squirrel-guardian-icon{display:inline-block;width:20px;height:20px;object-fit:contain;margin-inline:4px;flex:none}
.profile-name-line{min-height:24px;flex-wrap:wrap;column-gap:5px;row-gap:4px}
#profileAdministratorBadge{margin-inline-start:0}
#profileAdministratorAuth{margin-inline-start:auto;white-space:nowrap;min-height:30px;padding:3px 8px;font-size:12px}
#profileForm .profile-name-line label{display:inline-block;margin:0}

/* One fee guide, shared between the home rail and the chat dialog. */
#feeInline{min-width:0;width:100%;padding:14px;border:1px solid var(--line);border-radius:8px;background:Canvas;color:CanvasText;box-sizing:border-box}
.fee-guide{min-width:0;color:inherit;font-size:12px;line-height:1.6}
.fee-guide>section+section{margin-top:18px}
.fee-guide h3{font-size:13px;margin:0 0 8px}
.fee-guide p{margin:0}
.fee-guide table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:11px}
.fee-guide th,.fee-guide td{padding:6px 2px;border-bottom:1px solid var(--line);text-align:right;overflow-wrap:anywhere}
.fee-guide th:first-child{width:44%;text-align:left;font-weight:500}
.fee-guide thead th{font-weight:600}
.fee-guide .wallet{padding:12px;margin-bottom:0;background:transparent;color:inherit}
.fee-guide .wallet-value strong{font-size:26px}
.fee-guide .wallet .section-kicker{float:none;font-size:10px}

.fee-guide .squirrel-rank-badge{width:27px;height:27px;margin:0 4px 0 0;vertical-align:middle}
.fee-guide th[scope=row]{white-space:nowrap}

.dotori-indicator{display:inline-block;width:20px;height:20px;object-fit:contain;vertical-align:middle}
.profile-summary .dotori-indicator{margin-right:4px}

.squirrel-rank-label{margin-inline-start:4px;font-size:12px;font-weight:500;white-space:nowrap}

.squirrel-rank-chat{background-image:url('squirrel-rank-chat.png');background-size:400% 200%}
.squirrel-rank-chat-1{background-position:0.0% 0%}
.squirrel-rank-chat-2{background-position:33.333333333333336% 0%}
.squirrel-rank-chat-3{background-position:66.66666666666667% 0%}
.squirrel-rank-chat-4{background-position:100.0% 0%}
.squirrel-rank-chat-5{background-position:0.0% 100%}
.squirrel-rank-chat-6{background-position:33.333333333333336% 100%}
.squirrel-rank-chat-7{background-position:66.66666666666667% 100%}
.squirrel-rank-chat-8{background-position:100.0% 100%}

/* Message size is independent from the responsive ten-column picker and 3x preview. */
.message-sticker .squirrel-sticker{width:min(90px,30vw)}
#emojiDialog{width:min(600px,calc(100% - 12px));container-type:inline-size}
#emojiDialog .emoji-choice{height:clamp(28px,7.8cqw,47px);aspect-ratio:auto;font-size:clamp(19px,6.8cqw,40px)}
#emojiDialog .squirrel-choice .squirrel-sticker{width:80%;max-height:none}

.squirrel-21,.squirrel-22,.squirrel-23,.squirrel-24,.squirrel-25,.squirrel-26,.squirrel-27{background-image:url('squirrel-transit.png');background-size:400% 200%}
.squirrel-21{background-position:0.0% 0%}
.squirrel-22{background-position:33.333333333333336% 0%}
.squirrel-23{background-position:66.66666666666667% 0%}
.squirrel-24{background-position:100.0% 0%}
.squirrel-25{background-position:0.0% 100%}
.squirrel-26{background-position:33.333333333333336% 100%}
.squirrel-27{background-position:66.66666666666667% 100%}

@media(prefers-color-scheme:dark){
 body.chat-popup{color:#e9f0f6}
 body.chat-popup .chat-header{border-bottom-color:#708598}
 body.chat-popup #chatTitle{color:#f1f5f9}
 body.chat-popup #roomStatus,
 body.chat-popup .message-row>small,
 body.chat-popup #chat .message-time{color:#f1f5f9}
 body.chat-popup #messages .message-bubble.deleted-chat-message{color:#ebf1f7;border-color:rgb(235 241 247 / .24)}
}
body.chat-popup #emojiDialog .emoji-theme-title{color:#4a5967}

/* Compact text only; native scrollbar keeps a stable rail and stronger hover contrast. */
body.chat-popup #chat .message-bubble:not(.message-photo,.message-emoji,.deleted-chat-message){line-height:1.4}
body.chat-popup #chat .messages{--chat-scroll-thumb:#71818e;--chat-scroll-active:#465c6e;scrollbar-gutter:stable;scrollbar-color:var(--chat-scroll-thumb) transparent}
body.chat-popup #chat .messages:hover{scrollbar-color:var(--chat-scroll-active) transparent}
@media(prefers-color-scheme:dark){body.chat-popup #chat .messages{--chat-scroll-thumb:#8fa1b0;--chat-scroll-active:#d1dfeb}}
@supports selector(::-webkit-scrollbar){
 body.chat-popup #chat .messages{scrollbar-color:auto}
 body.chat-popup #chat .messages:hover{scrollbar-color:auto}
 body.chat-popup #chat .messages::-webkit-scrollbar{width:12px}
 body.chat-popup #chat .messages::-webkit-scrollbar-thumb{background-color:var(--chat-scroll-thumb);border:2px solid transparent;background-clip:padding-box;border-radius:8px}
 body.chat-popup #chat .messages:hover::-webkit-scrollbar-thumb,body.chat-popup #chat .messages::-webkit-scrollbar-thumb:hover,body.chat-popup #chat .messages::-webkit-scrollbar-thumb:active{background-color:var(--chat-scroll-active)}
}

/* Incoming bubble and typing capsule share the same column geometry. */
body.chat-popup #chat{--chat-message-inset:10px;--chat-avatar-width:34px;--chat-incoming-gap:2px}
body.chat-popup #chat .messages{padding-inline-start:var(--chat-message-inset)}
body.chat-popup #chat.message-selecting{--chat-message-inset:55px}
body.chat-popup #chat .message-row.other{grid-template-columns:var(--chat-avatar-width) minmax(0,1fr);column-gap:var(--chat-incoming-gap)}
body.chat-popup #chat .incoming-avatar{width:var(--chat-avatar-width)}
body.chat-popup #chatTypingIndicator{left:calc(var(--chat-message-inset) + var(--chat-avatar-width) + var(--chat-incoming-gap))}

/* Keep the 12px gutter fixed; only the thumb itself expands on hover/drag. */
@supports selector(::-webkit-scrollbar){
 body.chat-popup #chat .messages::-webkit-scrollbar{width:12px}
 body.chat-popup #chat .messages::-webkit-scrollbar-thumb,
 body.chat-popup #chat .messages:hover::-webkit-scrollbar-thumb{border:2px solid transparent;border-inline-width:5px;background-clip:padding-box;background-color:var(--chat-scroll-thumb);border-radius:8px}
 body.chat-popup #chat .messages::-webkit-scrollbar-thumb:hover,
 body.chat-popup #chat .messages::-webkit-scrollbar-thumb:active{border-inline-width:3px;background-color:var(--chat-scroll-active)}
}

@media(prefers-color-scheme:dark){body.chat-popup #chat .messages{--chat-scroll-active:#aebfcd}}

/* Fee guide uses the same 27px visual size as its rank badges. */
#feeOpen{font-size:13px}
#feeTitle{font-size:calc(1.45rem + 1px)}
:is(#feeOpen,#feeTitle) .dotori-indicator{width:27px;height:27px;flex-shrink:0}

#profiles.profile-section{padding-top:4px}
.profile-section-divider{margin:0 calc(-1 * var(--page-wrap-gutter)) 8px}
#profiles>.profile-heading{margin-bottom:0}
.profile-toolbar{--profile-summary-padding:7px;display:flex;justify-content:space-between;align-items:center;gap:6px;margin:0 0 4px;font-size:clamp(12px,3.5vw,14px)}
/* Preserve the original heading-to-copy gap while the taller controls sit on the same row. */
.profile-toolbar:has(>#profileGridTools:not([hidden])){margin-top:calc(-1 * var(--profile-summary-padding))}
.profile-toolbar>p{margin:0;white-space:nowrap;letter-spacing:-.015em}
.profile-grid-tools{display:flex;flex:0 0 auto;justify-content:flex-end;align-items:center;gap:8px;margin:0}
@media(max-width:360px){.profile-grid-tools{gap:3px}
body:not(.chat-popup) #profileGridTools summary.button,body:not(.chat-popup) #profileGridTools summary.button:hover{padding-inline:7px}
}
.profile-grid-tools details{position:relative}
.profile-grid-tools summary{list-style:none;cursor:pointer;white-space:nowrap}
.profile-grid-tools summary::-webkit-details-marker{display:none}
body:not(.chat-popup) #profileGridTools summary.button,body:not(.chat-popup) #profileGridTools summary.button:hover{background:transparent;border:0;box-shadow:none;color:var(--ink);width:auto;justify-content:center;padding:var(--profile-summary-padding) 9px}
#profileGridTools summary:hover,#profileGridTools details[open] summary,#profileGridTools .is-active summary{text-decoration:underline;text-underline-offset:3px}
#profileGridTools summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.profile-grid-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:8;box-sizing:border-box;width:min(250px,calc(100vw - 36px));margin:0;padding:12px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 6px 20px #0002}
.profile-grid-tools #profileGridFilter .profile-grid-panel{right:-48px}
.profile-grid-panel label,.profile-grid-age-field{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}
.profile-grid-panel input,.profile-grid-panel select{min-width:0;width:100%;padding:4px 6px;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--ink)}
.profile-grid-age{display:flex;align-items:center;gap:6px}
.profile-grid-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}
#profileGridTools .profile-grid-actions > .button{box-sizing:border-box;width:100%;min-width:0;height:34px;min-height:34px;padding:4px 8px;justify-content:center;align-items:center;text-align:center;white-space:nowrap;word-break:keep-all}
.profile-grid-sort{width:110px;padding:4px}
.profile-grid-sort button{display:block;width:100%;text-align:left;background:transparent;color:inherit;border:0;border-radius:4px;padding:4px 8px}
.profile-grid-sort button:hover,.profile-grid-sort button:focus-visible,.profile-grid-sort button[aria-pressed=true]{background:var(--soft)}

#chatPhotoDialog{width:min(400px,calc(100% - 28px));box-sizing:border-box;max-height:calc(100dvh - 24px);padding:16px;background:Canvas;color:CanvasText;border:1px solid var(--line);border-radius:10px}
#chatPhotoDialog .account-header{margin:0 0 10px}
#chatPhotoDialog .account-header h2{font-size:16px}
#chatPhotoDialog .chat-photo-files{max-height:min(360px,max(80px,calc(100dvh - 120px)));overflow:auto;padding:0;margin:0;list-style:none}
#chatPhotoDialog .chat-photo-file{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 0;border-top:1px solid var(--line)}
#chatPhotoDialog .chat-photo-thumbnail{display:grid;place-items:center;width:40px;height:40px;overflow:hidden;border-radius:4px;background:color-mix(in srgb,var(--muted) 15%,Canvas)}
#chatPhotoDialog .chat-photo-thumbnail-image{display:block;width:100%;height:100%;object-fit:contain}
#chatPhotoDialog .chat-photo-thumbnail-fallback{color:var(--muted);font-size:10px;white-space:nowrap}
#chatPhotoDialog .chat-photo-file-info{display:grid;min-width:0;gap:2px}
#chatPhotoDialog .chat-photo-file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#chatPhotoDialog .chat-photo-file-size,#chatPhotoStatus{color:var(--muted);font-size:12px}
#chatPhotoDialog .chat-photo-actions{display:flex;justify-content:flex-end;margin-top:12px}
#chatPhotoSend{background:#fee500;color:#211e00;border:0;padding:6px 14px;white-space:nowrap}

.squirrel-28,.squirrel-29,.squirrel-30,.squirrel-31,.squirrel-32,.squirrel-33,.squirrel-34,.squirrel-35,.squirrel-36{background-image:url('squirrel-daily-states.png');background-size:300% 300%}
.squirrel-28{background-position:0% 0%}
.squirrel-29{background-position:50% 0%}
.squirrel-30{background-position:100% 0%}
.squirrel-31{background-position:0% 50%}
.squirrel-32{background-position:50% 50%}
.squirrel-33{background-position:100% 50%}
.squirrel-34{background-position:0% 100%}
.squirrel-35{background-position:50% 100%}
.squirrel-36{background-position:100% 100%}

.squirrel-37,.squirrel-38,.squirrel-39,.squirrel-40,.squirrel-41,.squirrel-42,.squirrel-43,.squirrel-44,.squirrel-45{background-image:url('squirrel-sports.png');background-size:300% 300%}
.squirrel-37{background-position:0% 0%}
.squirrel-38{background-position:50% 0%}
.squirrel-39{background-position:100% 0%}
.squirrel-40{background-position:0% 50%}
.squirrel-41{background-position:50% 50%}
.squirrel-42{background-position:100% 50%}
.squirrel-43{background-position:0% 100%}
.squirrel-44{background-position:50% 100%}
.squirrel-45{background-position:100% 100%}

.squirrel-27{background-image:url('squirrel-office-lunch.png');background-size:100% 100%;background-position:center}


#chat .chat-photo-open{display:block;width:max-content;max-width:100%;padding:0;border:0;background:transparent;border-radius:8px;cursor:zoom-in}
#chat .chat-photo-open:focus-visible{outline:2px solid Highlight;outline-offset:2px}
#chatPhotoViewer{width:min(1200px,calc(100dvw - 24px));height:min(900px,calc(100dvh - 24px));padding:12px;box-sizing:border-box;background:Canvas;color:CanvasText;border:1px solid var(--line);border-radius:10px}
#chatPhotoViewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px}
#chatPhotoViewer .account-header{margin:0}
#chatPhotoViewer .account-header h2{font-size:16px}
#chatPhotoViewerImage{display:block;width:100%;height:100%;min-height:0;object-fit:contain}

#chat .message-bubble.chat-photo-batch{width:min(150px,26dvh,50dvw)}
#chat .chat-photo-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);width:100%;aspect-ratio:1;gap:2px}
#chat .chat-photo-gallery[data-photo-count="2"]{aspect-ratio:2/1}
#chat .chat-photo-gallery .chat-photo-open{width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;border-radius:4px;background:color-mix(in srgb,var(--muted) 13%,Canvas)}
#chat .message-bubble .chat-photo-gallery .chat-photo{width:100%;height:100%;max-height:100%;object-fit:scale-down;border-radius:0}

#chatPhotoViewer .chat-photo-viewer-arrow{position:absolute;top:50%;translate:0 -50%;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:50%;background:color-mix(in srgb,Canvas 87%,transparent);color:CanvasText;font-weight:700;box-shadow:0 2px 8px #0003}
#chatPhotoViewerPrev{left:14px}
#chatPhotoViewerNext{right:14px}
#chatPhotoViewer .chat-photo-viewer-arrow:focus-visible{outline:2px solid Highlight;outline-offset:2px}
#chatPhotoViewer .chat-photo-viewer-arrow:disabled{opacity:.32}

.profile-moderation-dialog{width:min(465px,calc(100vw - 28px));padding:18px;border:1px solid var(--control-border);border-radius:12px;background:Canvas;color:CanvasText}
.profile-moderation-dialog form{display:grid;gap:8px}.profile-moderation-dialog :is(h2,p){margin:0}.profile-moderation-dialog :is(textarea,input){display:block;width:100%}.profile-moderation-buttons{display:flex;justify-content:flex-end;gap:8px}
.profile-moderation-list{display:grid;gap:10px;list-style:none;padding:0}.profile-moderation-note{display:grid;gap:5px;justify-items:start;padding:9px;border:1px solid var(--control-border);border-radius:8px}.profile-moderation-message{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}

/* Guest opening announcement: shares the hero's existing light/dark and gender theme. */
.launch-signup-offer:not([hidden]){
  min-width:0;width:fit-content;max-width:min(100%,470px);margin-top:10px;padding:11px 14px;
  border:1px solid var(--rose-edge);border-inline-start:4px solid var(--rose-solid);border-radius:12px;
  background:linear-gradient(110deg,var(--rose-hover),var(--rose-soft) 76%);color:var(--rose-muted);
  line-height:1.42;word-break:keep-all;overflow-wrap:anywhere
}
.launch-signup-offer p,.launch-signup-offer h2{margin:0}
.launch-signup-offer .launch-signup-date{
  display:inline-block;padding:2px 8px;border-radius:20px;margin-bottom:4px;background:var(--rose-solid);
  color:var(--rose-on);font-size:11px;font-weight:800;line-height:1.5
}
.launch-signup-offer h2{font-size:clamp(17px,2.3vw,22px);font-weight:800;letter-spacing:-.04em}
.launch-signup-offer h2+p{margin-top:3px;font-size:clamp(13px,1.6vw,15px);font-weight:600}
.launch-signup-offer{--launch-emphasis:#124b99}
body[data-account-gender=male] .launch-signup-offer{--launch-emphasis:#942357}
@media(prefers-color-scheme:dark){
  .launch-signup-offer{--launch-emphasis:#91cdff}
  body[data-account-gender=male] .launch-signup-offer{--launch-emphasis:#ff9bc7}
}
.launch-signup-offer :is(h2,h2+p) strong{font-weight:850;color:var(--launch-emphasis);white-space:nowrap}
.launch-signup-offer .launch-signup-first{margin-top:4px;font-size:12px;font-weight:750}
@media(max-width:370px){.launch-signup-offer:not([hidden]){padding:9px 10px}}

/* Main-site feature guide: title and left navigation stay while the right pane scrolls. */
#siteGuideDialog{width:min(780px,calc(100% - 22px));height:min(720px,calc(100dvh - 22px));max-height:calc(100dvh - 22px);
  padding:0;overflow:hidden;background:var(--paper);color:var(--ink);border-color:var(--line)}
#siteGuideDialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
#siteGuideDialog .account-header{margin:0;padding:10px clamp(10px,3vw,20px);border-bottom:1px solid var(--line)}
#siteGuideDialog .account-header h2{margin:0;font-size:clamp(18px,3.6vw,24px);color:var(--ink)}
#siteGuideDialog .account-header .icon-button{color:var(--ink)}
.site-guide-layout{display:grid;grid-template-columns:clamp(92px,25vw,163px) minmax(0,1fr);min-height:0}
.site-guide-menu{padding:8px 5px;border-inline-end:1px solid var(--line);min-width:0;min-height:0;overflow-y:auto}
.site-guide-menu button{display:block;width:100%;margin:1px 0;padding:8px 6px;text-align:start;
 border:1px solid transparent;border-radius:8px;background:none;color:var(--ink);font-size:clamp(11px,2.3vw,14px);
 font-weight:650;line-height:1.35;word-break:keep-all;overflow-wrap:anywhere}
.site-guide-menu button:hover,.site-guide-menu button[aria-current=true]{background:var(--rose-soft);color:var(--rose-muted)}
.site-guide-menu button[aria-current=true]{border-color:var(--rose-edge);font-weight:800}
.site-guide-content{padding:8px clamp(8px,3vw,21px) 0;overflow-y:auto;overscroll-behavior:contain;min-width:0;min-height:0}
.site-guide-content:focus-visible{outline:2px solid var(--rose-title);outline-offset:-2px}
.site-guide-content section{padding:0 0 15px;margin:0 0 17px;border-bottom:1px solid var(--line)}
.site-guide-content section:last-of-type{margin:0;min-height:100%;border-bottom:0}
.site-guide-content h3{margin:0 0 8px;color:var(--rose-muted);font-size:clamp(15px,3.2vw,20px);font-weight:800}
.site-guide-content ol{margin:8px 0 0;padding-inline-start:1.6em}
.site-guide-content li{margin:0 0 5px;font-size:clamp(12px,2.6vw,14px);line-height:1.55;word-break:keep-all;overflow-wrap:anywhere}
.site-guide-content figure{margin:0}
#guide-join{--site-guide-preview-width:301px}
#guide-login{--site-guide-preview-width:301px}
#guide-profiles{--site-guide-preview-width:175px}
#guide-rooms{--site-guide-preview-width:424.9px}
#guide-ai{--site-guide-preview-width:357px}
#guide-wallet{--site-guide-preview-width:462px}
.site-guide-content img{display:block;width:min(70%,var(--site-guide-preview-width,70%));height:auto;border:1px solid var(--line);border-radius:8px}
.site-guide-content figcaption{margin-top:3px;color:var(--muted);font-size:11px}
@media(max-width:420px){
  body:not(.chat-popup) .header.wrap{flex-wrap:wrap;justify-content:space-between}
  body:not(.chat-popup) .header .account-tools{margin-inline-start:auto;max-width:100%;gap:3px}
  body:not(.chat-popup) .header .header-nav{flex-wrap:wrap;justify-content:flex-end;min-width:0;flex-shrink:1}
}

#profileForm .profile-name-edit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}
#profileNameCheck{white-space:nowrap;min-height:32px;padding:4px 8px}
#profileForm :is(#profileNamePolicy,#profileNameStatus){margin:0}
#profileNameStatus:empty{display:none}

.room-header h2 .room-login-tip{color:var(--muted);font-size:calc(1em - 1px);font-weight:400;word-break:keep-all;overflow-wrap:anywhere}
.room-header:has(#roomGuestLoginTip:not([hidden]))>div{min-width:0}
.room-header:has(#roomGuestLoginTip:not([hidden]))>.live-label{flex:none;white-space:nowrap}

/* Small footer note on signup and in the guide, never part of login. */
.site-rules-note{position:static;margin:14px 0 0;padding:8px 0 0;border-top:1px solid var(--line);
 color:var(--ink);font-size:12px;line-height:1.55;word-break:keep-all;overflow-wrap:anywhere}
.site-guide-content>.site-rules-note{margin:0;padding:8px 0 10px}
#accountDialog #verifyStep[hidden]+#signupRulesNote{display:none}

/* Single-image stickers share picker, message and hover dimensions with the sprite stickers. */
.squirrel-sticker-single{background-size:contain;background-position:center;background-repeat:no-repeat}
.squirrel-sticker-single.squirrel-guardian{background-image:url('squirrel-guardian-chat-hd.webp')}
.squirrel-sticker-single.squirrel-roller{background-image:url('squirrel-roller.webp')}
.squirrel-sticker-single.squirrel-ski{background-image:url('squirrel-ski.webp')}
.squirrel-sticker-single.squirrel-snowboard{background-image:url('squirrel-snowboard.webp')}
.squirrel-sticker-single.squirrel-skate{background-image:url('squirrel-skate.webp')}
#emojiChoices [data-member-sticker][hidden]{display:none}

/* Topic art sits below messages and above the existing room canvas. */
body.chat-popup #chat .chat-message-pane>.chat-topic-backdrop{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
body.chat-popup #chat .chat-message-pane>.chat-topic-backdrop~#messages{position:relative;z-index:1}
body.chat-popup #chat .chat-topic-backdrop .chat-topic-art{position:absolute;inset:0;width:100%;height:100%;max-height:none;border-radius:0;object-fit:cover;object-position:var(--chat-scene-focus,50%) center;opacity:0;transition:opacity 2s ease-in-out}
body.chat-popup #chat .chat-topic-art.is-visible{opacity:1}
@media(prefers-color-scheme:dark){body.chat-popup #chat .chat-topic-art.is-visible{opacity:1}}
@starting-style{body.chat-popup #chat .chat-topic-art.is-visible{opacity:0}}
@media(prefers-reduced-motion:reduce){body.chat-popup #chat .chat-topic-backdrop .chat-topic-art{transition:none}}

/* One effect surface, flight animation, landing handoff and slow pile fade for all materials. */
.chat-message-pane>.chat-snow-overlay{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden;contain:layout paint}
#chat .chat-message-pane>#messages{position:relative;z-index:1}
.chat-message-pane>.chat-snow-overlay:not([data-effect="snow"]){z-index:0}
.chat-effect-flight,.chat-effect-rest{position:absolute;display:block;width:var(--effect-width);height:var(--effect-height);background:center/contain no-repeat;transform-origin:50% 100%}
.chat-effect-flight{opacity:0;animation:chat-effect-flight var(--effect-duration) var(--effect-delay) linear both}
.chat-effect-rest{left:var(--effect-x);bottom:var(--effect-bed);transform:translateX(-50%) rotate(var(--effect-angle)) scale(var(--effect-settle-scale));opacity:var(--effect-alpha)}
@keyframes chat-effect-flight {
 0%{top:-3px;left:var(--effect-start-x);transform:perspective(160px) translate(-50%,-100%) rotate(calc(var(--effect-turn)*-.55)) rotateY(calc(var(--effect-pitch)*.36));opacity:0}
 9%{opacity:var(--effect-alpha)}
 20%{transform:perspective(160px) translate(calc(-50% + var(--effect-sway)),-100%) rotate(var(--effect-turn)) rotateY(var(--effect-pitch))}
 39%{transform:perspective(160px) translate(calc(-50% - var(--effect-sway)*.62),-100%) rotate(calc(var(--effect-turn)*-.62)) rotateY(calc(var(--effect-pitch)*-.88))}
 61%{transform:perspective(160px) translate(calc(-50% + var(--effect-sway)*.55),-100%) rotate(calc(var(--effect-turn)*.68)) rotateY(calc(var(--effect-pitch)*.76))}
 79%{transform:perspective(160px) translate(calc(-50% - var(--effect-sway)*.33),-100%) rotate(calc(var(--effect-turn)*-.28)) rotateY(calc(var(--effect-pitch)*-.48))}
 100%{top:calc(100% - var(--effect-bed));left:var(--effect-x);transform:perspective(160px) translate(-50%,-100%) rotate(var(--effect-angle)) scale(var(--effect-settle-scale));opacity:var(--effect-alpha)}
}
.chat-effect-bank{position:absolute;inset:0;transition:opacity 4.4s ease-in-out}
.chat-snow-finishing .chat-effect-bank{opacity:0}
.chat-snow-flake{border-radius:45% 55% 61% 39%;background:radial-gradient(ellipse at 45% 40%,#fff 25%,#f9fcff 62%,#ebf4ff 78%,#e8f2ff20 100%);box-shadow:0 0 1.2px #465c7b5c}
.chat-snow-flake[data-snow-depth="far"]{box-shadow:0 0 .8px #4a638a72}
.chat-snow-flake[data-snow-depth="near"]{border-radius:57% 43% 53% 47%;box-shadow:0 0 2px #4e698450}
.chat-snow-deposit{position:absolute;left:var(--effect-x);bottom:0;width:calc(100% / 30 + 2px);height:var(--effect-deposit-depth,0px);transform:translateX(-50%);border-radius:53% 47% 0 0 / 78% 83% 0 0;background:linear-gradient(0deg,#e6f2ff 4%,#f4faff 38%,#fff 86%);transition:height .18s ease-out;box-shadow:0 -1px 1px #f2f8ff40}
.chat-snow-overlay:not([data-effect="snow"]) :is(.chat-effect-flight,.chat-effect-rest){filter:drop-shadow(0 1px 1px #1117)}
.chat-snow-overlay[data-effect="money"] :is(.chat-treasure-note,.chat-treasure-folded-note){background-image:url('treasure-50000won-prop-v1.webp?v=photo1')}
.chat-snow-overlay[data-effect="money"] .chat-treasure-coin{background-image:url('chat-treasure-coin.webp?v=0.9.66-photo')}
.chat-snow-overlay[data-effect="gold"] .chat-treasure-gold{background-image:url('chat-treasure-gold.webp?v=0.9.66-photo')}
.chat-snow-overlay[data-effect="gold"] .chat-treasure-nugget{background-image:url('chat-treasure-nugget.webp?v=0.9.66-photo')}
.chat-snow-overlay[data-effect="gold"] :is(.chat-effect-flight,.chat-effect-rest){filter:hue-rotate(10deg) saturate(1.24) brightness(1.11) drop-shadow(0 1px 1px #1117)}
.chat-snow-overlay[data-effect="diamond"] .chat-treasure-diamond{background-image:url('chat-treasure-diamond.webp?v=0.9.66-photo')}
.chat-snow-overlay[data-effect="diamond"] .chat-treasure-diamond-ring{background-image:url('treasure-diamond-ring-v1.webp?v=photo1')}
@media(prefers-reduced-motion:reduce){.chat-snow-overlay{display:none!important}.chat-effect-flight{animation:none}.chat-effect-bank,.chat-snow-deposit{transition:none}}

.private-invite-open{display:inline-flex;align-items:center;gap:8px}
.room-unread-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:21px;min-height:21px;padding:1px 6px;border-radius:999px;background:#ffdf28;color:#352700;font-size:12px;font-weight:800;line-height:1;white-space:nowrap}

body:not(.profile-operator-active) .profile-operator-tools{display:none}
