:root{color-scheme:light;--bg:#fff;--surface:#f1f3f9;--raised:#fff;--text:#171a25;--muted:#555e75;--line:#cdd3e1;--accent:#3049df;--soft:#e3e8ff;--on:#fff;--shadow:#28336922;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}html[data-theme=red]{color-scheme:dark;--bg:#101012;--surface:#212126;--raised:#19191e;--text:#fff;--muted:#c2c2d0;--line:#696976;--accent:#ff8178;--soft:#472622;--on:#161010;--shadow:#0006}html[data-theme=green]{color-scheme:light;--bg:#fffdf5;--surface:#eeefdf;--raised:#fffef9;--text:#1e2c24;--muted:#506052;--line:#b9c4ad;--accent:#25603c;--soft:#dfebd8;--on:#fff;--shadow:#23432e20}html[data-theme=violet]{color-scheme:dark;--bg:#141321;--surface:#252339;--raised:#1d1b2e;--text:#faf9ff;--muted:#c6c2dd;--line:#79728e;--accent:#c4a7ff;--soft:#39304e;--on:#20132f;--shadow:#0006}*{box-sizing:border-box}body{margin:0;color:var(--text);background:var(--bg);font-size:14px;-webkit-font-smoothing:antialiased}body.popup{width:420px;height:580px}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}.widget{height:100dvh;min-height:350px;display:flex;flex-direction:column;padding:20px 18px 0;background:linear-gradient(140deg,var(--raised),var(--bg) 55%)}body.popup .widget{height:580px}.brand-line{display:flex;align-items:center;gap:12px}h1{font-size:27px;letter-spacing:-1px;font-weight:750;color:var(--accent);margin:0}.status{font-size:10px;color:var(--muted);display:flex;gap:6px;align-items:center}.status i{width:7px;height:7px;background:#27855c;border-radius:50%}.icon-button{font-size:23px;line-height:1;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px}.icon-button:hover{background:var(--soft)}#settings-button{margin-left:auto}header>p{font-size:12px;color:var(--muted);line-height:1.6;margin:10px 0 17px}.scope-tabs{display:flex;gap:5px;padding:4px;border-radius:12px;background:var(--surface);border:1px solid var(--line)}.scope-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 7px;min-width:0;border-radius:9px;font-size:12px;color:var(--muted)}.scope-tabs button span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scope-tabs button.active{background:var(--soft);color:var(--accent);font-weight:650;box-shadow:0 1px 3px var(--shadow)}.messages{flex:1;min-height:0;overflow:auto;padding:18px 3px 0;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.message{display:flex;gap:11px;margin-bottom:20px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;font-size:25px;flex-shrink:0;box-shadow:inset 0 0 0 1px #00000015}.message-content{min-width:0;padding-top:1px}.message strong{font-size:12px;font-weight:650;color:var(--accent)}.message time{font-size:10px;color:var(--muted);margin-left:8px}.message p{font-size:13px;line-height:1.7;color:var(--text);margin:5px 0 0;overflow-wrap:anywhere}.identity-bar{display:flex;align-items:center;gap:7px;border-top:1px solid var(--line);padding:10px 0;font-size:10px;color:var(--muted)}.identity-bar .avatar{height:24px;width:24px;font-size:16px}.identity-bar strong{color:var(--text);font-weight:600}.identity-bar button{margin-left:auto;color:var(--accent);font-weight:600;font-size:10px;padding:5px}.composer{display:flex;align-items:center;gap:7px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:7px}.composer input{width:100%;min-width:0;color:var(--text);font-size:13px;background:none;border:0;padding:7px;outline:none}.composer input::placeholder{color:var(--muted)}.emoji-button{font-size:24px;color:var(--muted);padding:0 2px}.send-button{background:var(--accent);color:var(--on);border-radius:10px;height:36px;width:38px;font-size:19px;flex-shrink:0}footer{display:flex;gap:7px;align-items:center;padding:14px 0;font-size:9px;color:var(--muted)}footer strong{color:var(--text)}footer button{font-size:9px;margin-left:auto;padding:0;color:var(--accent)}dialog{border:1px solid var(--line);border-radius:16px;background:var(--raised);color:var(--text);box-shadow:0 15px 80px var(--shadow);width:calc(100% - 26px);max-width:420px;max-height:calc(100dvh - 24px);padding:22px;overflow:auto}dialog::backdrop{background:#15152560;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}.dialog-heading h2{font-size:19px;letter-spacing:-.5px;margin:4px 0 0;line-height:1.3}.dialog-heading .icon-button{flex-shrink:0}.subtle,dialog p{font-size:12px;color:var(--muted);line-height:1.7}.small{font-size:10px!important}fieldset{border:0;padding:0;margin:22px 0}legend{font-size:12px;font-weight:650;margin-bottom:12px}.theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.theme-grid button{border:1px solid var(--line);padding:10px;border-radius:10px;text-align:left;font-size:11px;font-weight:600;background:var(--surface)}.theme-grid button[aria-pressed=true]{border:2px solid var(--accent);padding:9px}.theme-grid small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.swatch{width:22px;height:22px;border-radius:50%;display:block;margin-bottom:8px;border:1px solid #888}.swatch.blue{background:linear-gradient(135deg,#fff 50%,#3049df 50%)}.swatch.red{background:linear-gradient(135deg,#111 50%,#ff6259 50%)}.swatch.green{background:linear-gradient(135deg,#fffdf5 50%,#25603c 50%)}.swatch.violet{background:linear-gradient(135deg,#141321 50%,#c4a7ff 50%)}.mode-options{display:grid;gap:10px}.mode-options label{font-size:12px;padding:10px;border:1px solid var(--line);border-radius:9px;cursor:pointer}.mode-options input{accent-color:var(--accent);margin-right:6px}.mode-options small{display:block;margin:5px 0 0 25px;color:var(--muted);font-size:10px;line-height:1.5}.primary-button{width:100%;background:var(--accent);color:var(--on);padding:12px;border-radius:10px;font-weight:600;font-size:12px}.identity-preview{display:flex;align-items:center;gap:13px;padding:14px;background:var(--surface);border-radius:12px;margin:18px 0}.identity-preview .avatar{width:50px;height:50px;font-size:32px}.color-options,.emoji-options{display:flex;gap:9px;flex-wrap:wrap}.color-options button{width:33px;height:33px;border-radius:50%;border:2px solid transparent;position:relative}.color-options button[aria-pressed=true]:after{content:'✓';color:#171717;font-size:20px}.emoji-options button{height:38px;width:38px;border-radius:9px;background:var(--surface);font-size:24px;border:1px solid var(--line)}.emoji-options button[aria-pressed=true]{border:2px solid var(--accent);background:var(--soft)}.notice{position:fixed;bottom:55px;left:18px;right:18px;padding:12px 15px;background:var(--text);color:var(--bg);border-radius:10px;font-size:11px;line-height:1.5;z-index:5;box-shadow:0 6px 20px var(--shadow)}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}@media(max-width:360px){.widget{padding:15px 12px 0}.status{font-size:9px}.brand-line{gap:8px}h1{font-size:24px}.message{gap:8px}.avatar{width:34px;height:34px;font-size:22px}.message time{font-size:9px;margin-left:5px}footer{font-size:8px}.composer input{font-size:16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.access-status{padding:16px;background:var(--soft);border:1px solid var(--line);border-radius:10px;margin-top:12px;font-size:12px;line-height:1.7}.filter-toggle,.age-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.7}.filter-toggle input,.age-check input{accent-color:var(--accent);width:17px;height:17px;flex-shrink:0;margin-top:2px}.age-badge{display:inline-flex;padding:10px 13px;border-radius:12px;color:var(--accent);background:var(--soft);font-size:24px;font-weight:700}.age-decline,.text-button{display:block;color:var(--accent);font-size:12px;padding:12px 0;text-align:center;width:100%}.primary-button:disabled{opacity:.5;cursor:not-allowed}.age-check{margin:22px 0}.nsfw-label{color:var(--accent);font-weight:700}dialog a{color:var(--accent)}

.activity-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:11px 3px 6px;font-size:11px;color:var(--muted);width:100%}.activity-bar strong{color:var(--accent)}.identity-bar{border-top:0;padding:8px 0}.sharing-status{font-size:9px;color:var(--muted);margin:0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-context{display:block;font-size:10px;color:var(--muted);line-height:1.55;margin-top:4px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.message .message-points{font-size:9px;color:var(--muted);font-weight:400;margin-left:6px}.activity-summary{display:flex;justify-content:space-around;margin:25px 0;padding:20px;background:var(--soft);border-radius:12px}.activity-summary>span{font-size:22px;color:var(--accent)}.activity-summary small{display:block;font-size:11px;color:var(--muted);margin-top:6px}
.live-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);padding:9px 2px;border-bottom:1px solid var(--line)}.live-bar button{flex-shrink:0;padding:7px 10px;background:var(--soft);color:var(--accent);border-radius:8px;font-weight:600}.live-bar span{overflow-wrap:anywhere}.message-actions{display:flex;gap:12px;margin-top:5px}.message-actions button{font-size:10px;color:var(--muted);padding:4px 0}.message-actions button:hover{color:var(--accent);text-decoration:underline}.message blockquote{margin:0 0 7px;padding:7px 10px;border-left:3px solid var(--accent);background:var(--surface);border-radius:0 6px 6px 0;font-size:11px;line-height:1.5;overflow-wrap:anywhere;color:var(--muted)}.reply-preview{display:flex;align-items:center;gap:10px;padding:8px 10px;margin-bottom:6px;background:var(--soft);border-radius:9px;color:var(--accent);font-size:10px;line-height:1.5}.reply-preview span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reply-preview button{font-size:20px}.empty-chat{text-align:center;color:var(--muted);font-size:12px;padding:20px 10px}#report-reason{display:block;width:100%;margin:9px 0;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit}.action-button{font-size:11px;padding:8px;margin:3px;background:var(--soft);color:var(--accent);border-radius:6px}#report-list section{border-bottom:1px solid var(--line);padding:12px 0}#report-list p{overflow-wrap:anywhere}button:disabled{cursor:not-allowed;opacity:.55}
.community-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);padding:7px 2px;flex-shrink:0}.community-bar[hidden]{display:none}.community-bar button{color:var(--accent);background:var(--soft);border:1px solid var(--line);border-radius:9px;padding:5px 9px;cursor:pointer}.community-settings h3{margin:18px 0 10px}.inbox-item{display:flex;flex-direction:column;gap:7px;text-align:left;width:100%;padding:12px;margin:8px 0;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--text);cursor:pointer;overflow-wrap:anywhere}.inbox-item.unread{border-left:4px solid var(--accent)}.inbox-item small{color:var(--muted)}.reply-highlight{outline:2px solid var(--accent);border-radius:10px}#reply-count{font-weight:700}.community-settings .filter-setting{display:flex;align-items:center;gap:9px}
.quiet-room{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;border-radius:10px;padding:8px 10px;background:var(--soft);font-size:11px}.quiet-room button{color:var(--accent);font-weight:650;white-space:nowrap}.empty-chat{text-align:center;padding:20px 10px}.empty-chat p{line-height:1.5}.empty-chat .primary-button{font-size:12px;padding:9px 14px}#welcome-dialog h2{line-height:1.2}#welcome-dialog .primary-button{width:100%;margin-top:10px}#welcome-sample{display:block;margin:12px auto}.live-bar{gap:10px}.live-bar #live-status{font-size:11px;line-height:1.4}.mode-options{flex-wrap:wrap}
.quiet-room:not([hidden])~.messages .empty-chat .primary-button{display:none}

/* Keep installed chat focused on the conversation. */
.installed #settings-dialog .activity-bar{width:100%;margin:16px 0}
.message-menu summary{cursor:pointer;list-style:none;width:40px;padding:4px 0;color:var(--muted);font-weight:700}
.message-menu summary::-webkit-details-marker{display:none}
.message-menu summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}

.alias-suggestions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.alias-suggestions button{background:var(--soft);color:var(--text);border:1px solid var(--line);border-radius:20px;padding:8px 10px;font-size:12px}.message-content strong,.identity-bar strong{overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.usage-consent{display:flex;align-items:flex-start;gap:10px;margin:18px 0;font-size:11px;line-height:1.7;color:var(--text)}.usage-consent input{margin-top:5px;flex-shrink:0;accent-color:var(--accent)}
.room-counts{display:flex;gap:6px;padding:6px 14px;flex-wrap:wrap}.room-counts button{font:inherit;font-size:11px;color:var(--muted);background:transparent;border:1px solid currentColor;border-radius:12px;padding:4px 8px;cursor:pointer;overflow-wrap:anywhere}#bug-description{display:block;width:100%;min-height:140px;margin-top:12px;padding:12px;border-radius:10px;font:inherit;box-sizing:border-box}#bug-status{font-size:13px}
.status,#detach-button{display:none!important}.discovery-tools{display:flex;justify-content:flex-end;padding:2px 14px 5px}.discovery-tools button{font:inherit;font-size:11px;padding:4px 8px;border:1px solid var(--line);border-radius:14px;background:transparent;color:var(--muted);cursor:pointer}.discovery-tools button:hover{color:var(--text);background:var(--surface)}#rankings-list{padding-left:24px}#rankings-list li{padding:5px 0;color:var(--muted)}.ranking-site{width:100%;display:flex;flex-direction:column;gap:4px;text-align:left;border:0;background:transparent;color:var(--text);padding:8px;cursor:pointer;border-radius:8px}.ranking-site:hover{background:var(--surface)}.ranking-site strong{font-size:13px;overflow-wrap:anywhere}.ranking-site small{font-size:11px;color:var(--muted)}

.brand-line{gap:7px}.brand-line h1{margin-right:auto}.brand-line #settings-button{margin-left:0}.brand-line .discovery-tools{padding:0;flex-shrink:0}.header-tool{font-size:11px;color:var(--muted);padding:5px 7px;border:1px solid var(--line);border-radius:14px;white-space:nowrap}#site-address{width:100%;padding:10px;margin-top:10px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px}.scope-tabs button{min-width:0;overflow-wrap:anywhere}#settings-dialog .live-bar{margin-top:12px}

html[data-theme=ocean]{color-scheme:dark;--bg:#071e29;--surface:#123340;--raised:#0c2733;--text:#ebfcff;--muted:#b3d6df;--line:#527e8b;--accent:#69ded4;--soft:#1c4448;--on:#062624}
html[data-theme=sunset]{color-scheme:light;--bg:#fff8ef;--surface:#f5e5d7;--raised:#fffaf5;--text:#432419;--muted:#785143;--line:#c7a38d;--accent:#a73f20;--soft:#f7d9c9;--on:#fff}
html[data-theme=rose]{color-scheme:dark;--bg:#251522;--surface:#3a2335;--raised:#301c2a;--text:#fff1fa;--muted:#e0b7d1;--line:#90657f;--accent:#f7a9d4;--soft:#543149;--on:#35152b}
html[data-theme=slate]{color-scheme:dark;--bg:#171d24;--surface:#28323c;--raised:#202831;--text:#f3f7fc;--muted:#bccbd9;--line:#627487;--accent:#a4d8ff;--soft:#344958;--on:#172839}
.swatch.ocean{background:linear-gradient(135deg,#071e29 50%,#69ded4 50%)}.swatch.sunset{background:linear-gradient(135deg,#fff8ef 50%,#a73f20 50%)}.swatch.rose{background:linear-gradient(135deg,#251522 50%,#f7a9d4 50%)}.swatch.slate{background:linear-gradient(135deg,#171d24 50%,#a4d8ff 50%)}
.message-menu .message-actions{display:flex;gap:12px;flex-wrap:wrap;position:static;padding:6px 0;background:none;border:0;box-shadow:none}.message-context{display:block;color:var(--accent);text-decoration:underline;overflow-wrap:anywhere}.chat-emojis{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}.chat-emojis button{font-size:25px;padding:6px;border-radius:8px}.chat-emojis button:hover{background:var(--soft)}.identity-bar+.activity-bar{align-self:center;width:auto;max-width:100%;border:1px solid var(--line);border-radius:999px;background:var(--surface);margin:0 0 10px;padding:5px 12px;justify-content:center;gap:12px;font-size:11px;line-height:1.4}.identity-bar+.activity-bar>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.identity-bar+.activity-bar>span+span{border-left:1px solid var(--line);padding-left:12px}.identity-bar+.activity-bar:hover{background:var(--soft)}dialog a{color:var(--accent)}

.chat-safety-note{font-size:10px;color:var(--muted);margin:0 0 5px}

/* Reset native button padding and line boxes so emoji glyphs stay centered. */
.emoji-options button,.chat-emojis button{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;flex-shrink:0}.emoji-options button{border-width:1px}.emoji-options button[aria-pressed=true]{border-width:1px;box-shadow:inset 0 0 0 1px var(--accent)}.chat-emojis button{min-width:0;aspect-ratio:1}.avatar{line-height:1;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}

/* Compact beta navigation. */
header>p{margin:3px 0 12px;font-size:11px}.scope-tabs button{gap:4px}.scope-tabs #tab-host{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab-population{flex-shrink:0;font-variant-numeric:tabular-nums}.scope-tabs .unread-badge{background:#b91c1c;color:#fff;border-radius:4px;padding:2px 4px;font-size:10px;line-height:1.2;flex-shrink:0;font-weight:700}footer{padding:9px 0;min-height:36px}footer #activity-button{width:auto;margin:0 auto 0 0;border:0;padding:3px 0;gap:12px;font-size:10px;line-height:1.4}footer #activity-button>span{white-space:nowrap}footer #about-button{flex-shrink:0}.settings-tabs{display:flex;gap:4px;position:sticky;top:0;background:var(--raised);padding:8px 0;z-index:1}.settings-tabs button{flex:1;padding:9px 3px;border-radius:8px;font-size:11px}.settings-tabs button[aria-selected=true]{background:var(--soft);color:var(--accent);font-weight:650}[role=tabpanel]{min-height:180px}.pin-tip{display:flex;align-items:center;gap:8px;background:var(--soft);border-radius:8px;padding:9px;margin:0 0 8px;font-size:11px;line-height:1.5}.pin-tip button{margin-left:auto;font-size:20px}.scope-tabs{flex-wrap:wrap}#page-tab:not([hidden]){flex-basis:100%}
