.chat-page{--chat-muted:#a9b5cc;--chat-line:#30394e;max-width:1440px;margin:auto;padding:30px 30px 50px;color:#e5e9f5}
.chat-page h1,.chat-page h2,.chat-page h3,.chat-page p{margin:0;letter-spacing:normal}.chat-page h1{font-size:clamp(28px,3.4vw,42px);font-weight:550;line-height:1.2}.chat-page h2{font-size:19px;font-weight:550}.chat-page h3{font-size:15px;font-weight:550}.chat-page p{font-size:13px;line-height:1.65;color:var(--chat-muted)}
.chat-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.chat-heading .home-kicker{margin-bottom:9px}.chat-heading>div>p{margin-top:9px}.chat-heading>a{font-size:12px;color:#d4c1fb;text-decoration:none;min-height:44px;display:flex;align-items:center;white-space:nowrap}
.chat-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:640px;border:1px solid #40445f;border-radius:14px;overflow:hidden;background:#0d111c;box-shadow:0 20px 65px #0004}
.chat-sidebar{padding:22px 16px;border-right:1px solid var(--chat-line);background:linear-gradient(170deg,#1b182b,#10131f 65%);display:flex;flex-direction:column;gap:22px}.chat-sidebar-brand{display:flex;align-items:center;gap:10px;padding-inline:8px}.chat-sidebar-brand img{width:72px;height:auto}.chat-sidebar-brand>span{font:9px monospace;color:#c5b4df;letter-spacing:.16em;border-left:1px solid #56506a;padding-left:12px}
.chat-nav{display:grid;gap:5px}.chat-nav a{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px;border:1px solid transparent;border-radius:7px;text-decoration:none;color:#a9b5cc;font-size:11px;font-weight:600;letter-spacing:.06em}.chat-nav a>span{font-size:18px;line-height:1;color:#bca5e7}.chat-nav a:hover{background:#292339}.chat-nav a[aria-current]{background:linear-gradient(100deg,#35264d,#221f33);border-color:#6c4f90;color:#f4ebff;box-shadow:inset 3px 0 #b385e7}
.chat-room-select{padding:16px 6px;border-top:1px solid var(--chat-line)}.chat-room-select label{display:grid;gap:10px;color:#a9b5cc;font-size:11px}.chat-room-select select{min-height:44px;font-size:12px;width:100%}.chat-sidebar-note{margin-top:auto;padding:14px 8px;border-top:1px solid var(--chat-line)}.chat-sidebar-note strong{display:block;font-size:11px;color:#d8c2a1;margin-bottom:6px}.chat-sidebar-note p{font-size:11px}.chat-sidebar-note a{color:#c8b6eb;display:inline-flex;align-items:center;min-height:44px;font-size:11px;text-decoration:none}
.chat-conversation{min-width:0;display:flex;flex-direction:column}.chat-room-header{display:flex;align-items:center;gap:14px;padding:22px 26px;border-bottom:1px solid var(--chat-line);background:linear-gradient(110deg,#191a2d,#111726)}.chat-room-symbol{flex:0 0 44px;height:44px;display:grid;place-items:center;border:1px solid #655782;border-radius:12px;background:#2c2440;font-size:24px;color:#d0a3f8}.chat-room-header p{font-size:12px;margin-top:4px}.chat-connection{margin-left:auto;white-space:nowrap;font-size:10px;color:#e1c69f;border:1px solid #5f4c37;border-radius:30px;background:#30251970;padding:7px 10px}.chat-connection::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#d9b578;margin-right:6px}
.chat-empty{flex:1;min-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 24px;background:radial-gradient(ellipse at 50% 40%,#35234a3d,transparent 68%)}.chat-empty-art{position:relative;width:138px;height:90px;margin-bottom:24px}.chat-empty-art>span{position:absolute;display:grid;place-items:center;width:84px;height:58px;border:1px solid #a383c0;border-radius:15px 15px 3px 15px;transform:rotate(-8deg);background:linear-gradient(140deg,#49305d,#211e33);font-size:25px;color:#dabef8;left:6px;top:4px;box-shadow:0 8px 25px #0004}.chat-empty-art>span+span{width:65px;height:48px;transform:rotate(10deg);border-radius:13px 13px 13px 3px;left:68px;top:37px;background:linear-gradient(140deg,#173b4c,#15202e);border-color:#55859a;color:#91d2e3;font-size:22px}.chat-empty h3{font-size:22px;font-weight:500;color:#e0d9f0;margin-bottom:9px}.chat-empty p{max-width:410px;font-size:12px}.chat-room-media{font-size:10px;color:#c4b7d8;margin-top:20px;letter-spacing:.04em}
.chat-composer-wrap{margin-top:auto;border-top:1px solid var(--chat-line);padding:18px 24px 22px;background:#111522}.chat-delivery{display:flex;gap:10px;align-items:start;margin-bottom:13px}.chat-delivery>span{color:#d5b87d;font-size:16px;line-height:1.3}.chat-delivery p{font-size:11px;max-width:650px}.chat-composer{border:1px solid #596078;border-radius:10px;background:#0a101c;overflow:visible}.chat-composer:focus-within{border-color:#b69ada;box-shadow:0 0 0 2px #b69ada16}.chat-composer textarea{display:block;border:0;background:transparent;box-shadow:none;resize:vertical;min-height:90px;max-height:220px;color:#edf0f8;font-family:inherit;font-size:14px;line-height:1.6;padding:16px;width:100%}.chat-composer textarea:focus{outline:none}.chat-composer textarea::placeholder{color:#8e9ab0}.chat-composer-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 10px 10px}.chat-composer-tools{display:flex;align-items:center;gap:5px}.chat-page button,.chat-page .chat-file-control{min-height:42px;font-size:11px}.chat-page button:disabled{opacity:.48;cursor:default}.chat-page button:focus-visible,.chat-page a:focus-visible,.chat-page summary:focus-visible{outline:2px solid #aee9fa;outline-offset:3px}.chat-send{padding:9px 20px;border-color:#735594;background:#47315e;color:#f8eaff}.chat-draft-meta{display:flex;justify-content:space-between;gap:12px;margin-top:10px;font-size:10px;color:#99a5bd}.chat-clear{border-color:transparent!important;background:transparent!important;color:#aab5cc;padding-inline:9px}.chat-notice{font-size:11px!important;min-height:18px;margin-top:8px!important;color:#d5c5ef!important}
.chat-tools{position:relative;border:0;padding:0}.chat-tools>summary{display:flex;align-items:center;min-height:42px;list-style:none;padding:8px 11px;letter-spacing:0;font-size:11px;border:1px solid #444d64;border-radius:6px;color:#d2c9e5}.chat-tools>summary::-webkit-details-marker{display:none}.chat-picker{position:absolute;z-index:15;left:0;bottom:calc(100% + 12px);width:330px;max-width:calc(100vw - 60px);background:#171c2c;border:1px solid #6e6086;border-radius:12px;box-shadow:0 14px 35px #0009;padding:13px}.chat-picker-switch{display:flex;gap:5px;margin-bottom:13px;border-bottom:1px solid #3c4157;padding-bottom:10px}.chat-picker-switch button{flex:1;border-color:transparent;background:transparent;color:#b6bfd2}.chat-picker-switch button[aria-pressed=true]{background:#3d2d55;color:#f1e8ff;border-color:#755795}.chat-emoji-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.chat-emoji-grid button{font-size:23px;background:transparent;border-color:transparent;padding:4px;min-width:0}.chat-emoji-grid button:hover{background:#35314c}.chat-sticker-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.chat-sticker-grid button{min-height:90px;border-color:#55416d;background:linear-gradient(140deg,#392949,#1b2137);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#e4d1fb;font-size:10px;letter-spacing:.07em}.chat-sticker-grid button>span{font-size:28px;color:#ceabf2}.chat-file-control{display:flex;align-items:center;justify-content:center;width:100%;border:1px dashed #74718d;border-radius:8px;color:#e5d9f6;cursor:pointer;padding:16px}.chat-file-control:focus-within{outline:2px solid #b1e4f5;outline-offset:3px}.chat-file-control input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.chat-picker p{font-size:11px;margin-top:10px}
.chat-attachment{display:flex;align-items:center;gap:14px;border-bottom:1px solid #343d51;padding:12px;min-width:0}.chat-attachment img,.chat-attachment video{width:auto;max-width:180px;max-height:120px;border-radius:6px;object-fit:contain;background:#080c14}.chat-attachment-info{display:flex;flex:1;align-items:start;flex-direction:column;gap:9px;min-width:0}.chat-attachment-info>span{display:block;overflow-wrap:anywhere;color:#acb7cd;font-size:10px}.chat-media-sticker{flex:0 0 120px;min-height:95px;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;border:2px solid #b39ad9;border-radius:20px 7px 20px 7px;background:linear-gradient(135deg,#4c2a63,#25244b);color:#edddff;transform:rotate(-3deg);box-shadow:3px 3px #634d85}.chat-media-sticker>span{font-size:34px;line-height:1.2}.chat-media-sticker strong{font-size:11px;letter-spacing:.07em}
.chat-directory{padding:36px;min-width:0}.chat-directory>p{max-width:460px;margin-top:12px}.chat-directory-empty{border:1px dashed #4c4260;border-radius:10px;margin-top:28px;padding:28px}.chat-directory-empty>span{display:block;color:#c6aadf;font-size:30px;margin-bottom:12px}.chat-directory-empty h3{margin-bottom:8px}.chat-drafts-section{margin-top:30px}.chat-drafts-section h3{color:#cfc0e2}.chat-drafts-section ul{list-style:none;padding:0;display:grid;gap:9px;margin-top:13px}.chat-drafts-section a{display:flex;gap:6px;flex-direction:column;padding:16px;border:1px solid #48455e;border-radius:7px;text-decoration:none;color:#dfd4ef;min-height:44px}.chat-drafts-section a span{font-size:11px;color:#9caac2}
.chat-rules{margin-top:16px;border:0;padding:0}.chat-rules>summary{min-height:44px;display:flex;align-items:center;padding:8px 0;font-size:11px;letter-spacing:0;color:#b9a8cf}.chat-rules>div{padding:14px 18px;border:1px solid #3c4056;border-radius:9px;max-width:850px}.chat-rules p+p{margin-top:10px}.chat-rules a{color:#cdb8ec;font-size:11px;display:inline-flex;min-height:44px;align-items:center}
.chat-camera-drawer{margin:14px 20px;border:1px solid #675582;border-radius:10px;padding:0;background:#0e111c}.chat-camera-drawer>summary{font-size:12px;letter-spacing:0;min-height:44px;padding:13px 16px;color:#e2d0fa}.chat-camera-drawer>p{padding:0 16px;font-size:11px}.chat-camera-close{margin:0 16px 12px}.chat-camera-mount .camera-page{padding:12px;max-width:none}.chat-camera-mount .camera-heading nav,.chat-camera-mount .camera-chat{display:none}.chat-camera-mount .camera-heading{margin-bottom:12px}.chat-camera-mount .camera-heading h1{font-size:22px}.chat-camera-mount .camera-shell{grid-template-columns:minmax(0,1fr)}.chat-camera-mount .camera-note{font-size:11px}.chat-camera-mount #cameraCanvas{max-height:50vh;object-fit:contain}.chat-camera-mount #cameraUseChat{border-color:#b18bdc;background:#49305f;color:#f3e8ff}
body[data-page=chat] .site-header>.entry-button{display:none}
@media(max-width:980px){.chat-page{padding:24px 18px 36px}.chat-shell{grid-template-columns:180px minmax(0,1fr)}.chat-room-header{flex-wrap:wrap;padding:18px}.chat-connection{margin-left:58px}.chat-room-header>div{flex:1}.chat-composer-wrap{padding:16px}.chat-sidebar{padding-inline:10px}.chat-heading>a{font-size:11px}}
@media(max-width:640px){.chat-page{padding:20px 12px 30px}.chat-heading{margin-bottom:18px}.chat-heading h1{font-size:29px}.chat-heading>div>p{font-size:11px;max-width:220px}.chat-heading>a{font-size:11px}.chat-shell{display:block;min-height:0;border-radius:10px}.chat-sidebar{padding:10px;border-right:0;border-bottom:1px solid var(--chat-line);gap:10px}.chat-sidebar-brand,.chat-sidebar-note{display:none}.chat-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.chat-nav a{justify-content:center;min-height:44px;padding:9px 4px;font-size:9px;gap:7px;letter-spacing:.01em}.chat-nav a>span{font-size:16px}.chat-room-select{padding:0;border:0}.chat-room-select label{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 6px}.chat-room-select select{width:180px;max-width:65%;min-height:40px;padding-block:7px}.chat-room-header{padding:16px;gap:11px}.chat-room-header h2{font-size:16px}.chat-room-header p{font-size:11px}.chat-room-symbol{flex-basis:37px;height:37px;font-size:21px}.chat-connection{margin-left:48px;font-size:9px;padding:5px 8px}.chat-empty{min-height:230px;padding:26px 18px}.chat-empty-art{transform:scale(.85);margin-bottom:12px}.chat-empty h3{font-size:20px}.chat-empty p{font-size:11px}.chat-room-media{font-size:9px;margin-top:14px}.chat-composer-wrap{padding:14px 12px 12px}.chat-delivery p{font-size:10px}.chat-composer textarea{padding:12px;min-height:85px;font-size:16px}.chat-composer-bar{flex-wrap:wrap;padding:0 7px 8px;gap:5px}.chat-composer-tools{gap:4px}.chat-page button{min-height:44px;font-size:10px;padding-inline:9px}.chat-tools>summary{padding-inline:9px;min-height:44px;font-size:10px}.chat-send{padding-inline:11px!important}.chat-clear{padding-inline:4px!important}.chat-draft-meta{font-size:9px}.chat-picker{width:300px;max-width:calc(100vw - 64px)}.chat-attachment{padding:10px;gap:10px}.chat-attachment img,.chat-attachment video{max-width:135px;max-height:95px}.chat-media-sticker{flex-basis:100px;min-height:85px}.chat-directory{padding:24px 18px;min-height:400px}.chat-camera-drawer{margin:10px}.chat-camera-mount .camera-page{padding:8px}.chat-camera-mount #cameraCanvas{max-height:45vh}.chat-rules{margin-top:10px}}
@media(forced-colors:active){.chat-shell,.chat-composer,.chat-nav a[aria-current],.chat-picker,.chat-media-sticker,.chat-room-symbol,.chat-connection{border:1px solid CanvasText}.chat-empty-art>span{border-color:CanvasText}}
.chat-page [hidden]{display:none!important}.chat-camera-mount .camera-layout{grid-template-columns:minmax(0,1fr)}.chat-camera-mount .camera-inspector{position:static;max-height:none;box-shadow:none;margin:12px 0}.chat-camera-mount .camera-page{padding-bottom:12px}

.chat-message-avatar{display:inline-grid;place-items:center;width:1.8rem;height:1.8rem;border-radius:50%;margin-inline-end:.5rem;background:#393052;color:#eee2ff;font-weight:700}
.chat-message-actions{margin-block-end:.25rem;font-size:.84rem}
.chat-message-actions summary{cursor:pointer;width:fit-content;max-width:100%;min-height:44px;align-content:center;color:var(--text,#eee2ff)}
.chat-message-actions form{display:flex;gap:.45rem;flex-wrap:wrap;margin-block:.3rem}
.chat-message-actions button,.chat-message-actions select{min-height:42px;max-width:100%}
.chat-message-byline{display:inline-flex;align-items:center;vertical-align:middle;flex-wrap:wrap;gap:.35rem .55rem;max-width:100%;margin-block-end:.25rem;font-size:.83rem}
.chat-message-byline time{color:#b3aabd;font-size:.75rem}
.chat-friends{grid-column:2/-1;width:100%;max-width:760px}
.chat-friends>section{margin-block-start:1.25rem;padding-block-start:.85rem;border-top:1px solid #51485f}
.chat-friends>section h3{margin-block:0 .5rem;font-size:1rem}
.chat-friends>button{margin-block-start:.65rem}
.social-finder,.social-invite{margin-block-start:.85rem}
.social-invite[hidden]{display:none}
.social-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;min-width:0}
.social-controls button,.social-controls select,.social-controls input,.chat-friends>button{min-height:44px;max-width:100%}
.social-finder input{flex:1 1 12rem;min-width:0}
.social-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem;padding-block:.65rem;border-bottom:1px solid #433950}
.social-row>span{flex:1 1 8rem;overflow-wrap:anywhere}
.social-status{min-height:1.25em;color:#d8cce8}
.social-controls .social-block{border-color:#9b6177;color:#ffd4e4}

.chat-gif-picker{display:flex;gap:.4rem;flex-wrap:wrap}
.chat-file-control[hidden]{display:none}
.chat-message-body{margin:0;white-space:pre-wrap;line-height:1.45}
.chat-message-body[data-font="serif"]{font-family:Georgia,serif}
.chat-message-body[data-font="mono"]{font-family:ui-monospace,monospace}
.chat-message-body[data-bold="true"]{font-weight:700}
.chat-message-body[data-italic="true"]{font-style:italic}
.chat-message-body[data-ink="violet"]{color:#ddc1ff}
.chat-message-body[data-ink="cyan"]{color:#98ecf4}
.chat-message-body[data-ink="gold"]{color:#ffdda2}
.chat-message-body[data-ink="rose"]{color:#ffbfd3}
.chat-message-body[data-ink="lime"]{color:#d8f4a0}
.chat-message-sticker{display:inline-block;width:max-content;max-width:100%;padding:.4rem .65rem;margin-block:.3rem;border:1px solid #755795;border-radius:8px;background:#332746;color:#f1e8ff;font-weight:700}
.chat-message-gif{display:block;margin-block:.4rem;border-radius:10px}
.chat-gif-description{display:none}
@media(prefers-reduced-motion:reduce){.chat-message-gif{display:none}.chat-gif-description{display:inline}}
