:root{--bg-1:#08131a;--bg-2:#0f222b;--panel:rgba(10,27,35,0.84);--panel-strong:rgba(11,33,43,0.96);--line:rgba(130,167,178,0.16);--text:#ecf7f3;--muted:#9bb4b7;--accent:#2ec4b6;--accent-2:#ffd166;--bubble:rgba(23,54,66,0.94);--bubble-aman:linear-gradient(135deg,rgba(36,92,115,0.95),rgba(18,59,77,0.92));--bubble-anshu:linear-gradient(135deg,rgba(120,64,44,0.96),rgba(81,45,35,0.92));--danger:#ff7b7b;--shadow:0 28px 80px rgba(0,0,0,0.3)}*{box-sizing:border-box}body,html{margin:0;min-height:100%}body{font-family:Segoe UI,Helvetica Neue,Arial,sans-serif;color:var(--text);background:radial-gradient(circle at top left,rgba(46,196,182,.2),transparent 20%),radial-gradient(circle at bottom right,rgba(255,209,102,.16),transparent 20%),linear-gradient(180deg,var(--bg-2) 0,var(--bg-1) 100%)}button,input,textarea{font:inherit;color:inherit}button{border:0}img{display:block;max-width:100%}.gate-shell,.public-chat-shell{min-height:100vh;padding:24px}.gate-shell{display:grid;place-items:center}.gate-card,.public-chat-frame{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:var(--shadow)}.gate-card{width:min(620px,100%);padding:36px;border-radius:30px;text-align:center;background:rgba(8,27,34,.88);border:1px solid var(--line)}.gate-badge,.room-badge{display:grid;place-items:center;color:#062126;background:linear-gradient(135deg,var(--accent),#1f8f81);box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}.gate-badge{width:72px;height:72px;margin:0 auto 18px;border-radius:22px}.room-badge{width:56px;height:56px;border-radius:18px}.gate-badge svg,.ghost-button svg,.logout-button svg,.room-badge svg,.submit-button svg,.upload-button svg{width:22px;height:22px;fill:currentColor}.empty-state h2,.gate-card h1,.panel-card h2,.room-copy h1{margin:0}.bubble-meta span,.empty-state p,.eyebrow,.gate-copy,.panel-card p,.public-bubble p,.room-copy p,.room-stats span,.system-note,.user-option span{margin:0;color:var(--muted)}.eyebrow{font-size:.74rem;letter-spacing:.18em;text-transform:uppercase}.gate-copy{margin-top:12px;line-height:1.6}.composer-card,.edit-card,.gate-form{display:grid;grid-gap:12px;gap:12px}.gate-form{margin-top:24px}.user-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.user-option{padding:16px;text-align:left;border-radius:18px;cursor:pointer;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);transition:transform .2s ease,border-color .2s ease,background .2s ease}.user-option strong{display:block;margin-bottom:6px;color:var(--text)}.user-option.is-active{border-color:rgba(46,196,182,.65);background:rgba(46,196,182,.12)}.public-chat-frame{width:min(1280px,100%);height:calc(100vh - 48px);margin:0 auto;display:grid;grid-template-rows:auto 1fr;background:var(--panel);border:1px solid var(--line);border-radius:28px;overflow:hidden}.public-chat-header{padding:22px 26px;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,rgba(19,48,58,.94),rgba(10,27,35,.92))}.public-chat-header,.room-copy{display:flex;align-items:center}.room-copy{gap:16px}.room-subtitle{margin-top:6px;max-width:620px;line-height:1.5}.room-stats{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;align-items:center}.logout-button,.room-stats span{padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.06)}.user-chip{color:#f7fffd!important;border:1px solid rgba(46,196,182,.28)}.logout-button{display:inline-flex;align-items:center;gap:8px;cursor:pointer}.public-chat-body{min-height:0;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(340px,.7fr);overflow:hidden}.message-panel{min-height:0;height:100%;padding:24px;overflow:hidden;background:linear-gradient(rgba(7,23,30,.65),rgba(7,23,30,.65)),radial-gradient(circle at top center,rgba(255,209,102,.08),transparent 30%)}.message-list{height:100%;overflow:auto;display:flex;flex-direction:column;gap:8px;padding-right:8px}.empty-state,.session-card,.system-note{align-self:center;text-align:center;padding:18px 20px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}.empty-state{max-width:420px}.empty-state p,.session-card p{margin-top:8px;line-height:1.6}.session-card{text-align:left}.session-card h2{margin-top:10px}.public-bubble{max-width:min(92%,720px);padding:14px;border-radius:20px;background:var(--bubble);border-top-left-radius:6px;box-shadow:0 18px 32px rgba(0,0,0,.2);transition:transform .25s ease,box-shadow .25s ease,outline-color .25s ease}.bubble-aman{background:var(--bubble-aman)}.bubble-anshu{background:var(--bubble-anshu)}.is-own-bubble{align-self:flex-end;border-top-left-radius:20px;border-top-right-radius:6px}.bubble-meta,.edit-actions,.edit-tools{display:flex;align-items:center}.bubble-meta{justify-content:space-between;gap:12px;margin-bottom:8px}.bubble-meta strong{color:#ffffff;font-size:.95rem}.public-bubble p{color:var(--text);line-height:1.55;white-space:pre-wrap}.bubble-image{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:16px;border:1px solid rgba(255,255,255,.08)}.bubble-attachment-grid{margin-top:12px;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:20px;gap:20px}.image-button,.video-button{padding:0;width:100%;display:inline-flex;background:transparent;border-radius:16px;cursor:pointer}.video-player{position:relative;width:100%;display:block;overflow:hidden;border-radius:16px;background:rgba(0,0,0,.25)}.video-player-preview{width:100%}.bubble-video{width:100%;height:auto;aspect-ratio:1/1;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.25);object-fit:cover}.video-play-toggle{position:absolute;left:50%;top:50%;width:44px;height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;transform:translate(-50%,-50%);border-radius:999px;background:rgba(0,0,0,.58);color:#f5fffd;cursor:pointer}.video-play-toggle svg{width:18px;height:18px;fill:currentColor}.edit-actions,.edit-tools{flex-wrap:wrap;gap:10px;margin-top:14px}.message-icon-actions{display:flex;align-items:center;gap:6px}.room-header-icon-button{width:44px;height:44px;padding:0;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.room-header-icon-button svg{width:18px;height:18px;fill:currentColor}.bubble-time-row{display:flex;justify-content:flex-end}.reply-chip{margin-bottom:10px;width:100%;padding:8px 10px;border:0;border-left:3px solid rgba(255,209,102,.9);border-radius:12px;background:rgba(255,255,255,.08);text-align:left;cursor:pointer}.reply-chip strong,.reply-composer strong{display:block;font-size:.82rem;color:#fff8df}.reply-chip span,.reply-composer p{margin:4px 0 0;color:rgba(236,247,243,.86);line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reply-chip:hover{background:rgba(255,255,255,.12)}.reply-chip:focus-visible{outline:2px solid rgba(255,209,102,.65);outline-offset:2px}.is-reply-target-highlighted{box-shadow:0 0 0 2px rgba(255,209,102,.8),0 18px 32px rgba(0,0,0,.2);transform:scale(1.01)}.bubble-time{font-size:.78rem;color:rgba(236,247,243,.82);white-space:nowrap}.icon-action-button{width:24px;height:24px;padding:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.06);color:var(--muted);cursor:pointer;transition:transform .2s ease,opacity .2s ease,background .2s ease,color .2s ease}.icon-action-button svg{width:12px;height:12px;fill:currentColor}.icon-action-button:hover,.user-option:hover{transform:translateY(-1px);background:rgba(255,255,255,.1);color:var(--text)}.icon-action-button:disabled{opacity:.65;cursor:wait}.danger-icon-button{color:#ffc3c3;background:rgba(255,123,123,.12)}.composer-panel{min-height:0;height:100%;padding:24px;display:grid;align-content:start;grid-gap:18px;gap:18px;overflow:hidden;border-left:1px solid var(--line);background:var(--panel-strong)}.panel-card{padding:20px;border-radius:22px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}.panel-card h2{margin-top:10px;font-size:1.15rem}.panel-card p{margin-top:10px;line-height:1.6}.reply-composer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%;max-width:100%;overflow:hidden;padding:10px 12px;border-radius:14px;border-left:3px solid var(--accent-2);background:rgba(255,255,255,.06)}.reply-composer>div{min-width:0;flex:1 1;max-width:calc(100% - 36px);overflow:hidden}.reply-composer p{font-size:.9rem;width:100%;max-width:100%;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:normal;overflow-wrap:normal}.field-label{font-size:.88rem;color:#dff3ef}.text-area,.text-field{width:100%;border:1px solid rgba(255,255,255,.08);outline:none;border-radius:14px;padding:14px 16px;background:rgba(7,23,30,.82)}.text-area{resize:vertical;min-height:132px}.compact-area{min-height:110px}.composer-top-row,.name-row{display:grid;grid-gap:12px;gap:12px}.composer-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between}.composer-toolbar-actions{display:flex;align-items:center;gap:10px;justify-content:flex-end}.text-area::placeholder,.text-field::placeholder{color:#7b9698}.ghost-button,.submit-button,.upload-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 18px;border-radius:14px;cursor:pointer;transition:transform .2s ease,opacity .2s ease,background .2s ease}.upload-button{color:#082126;background:var(--accent-2)}.submit-button{background:var(--accent);color:#062126}.ghost-button{background:rgba(255,255,255,.06);color:var(--text)}.small-button{min-height:42px}.composer-icon-button{width:48px;min-width:48px;height:48px;padding:0;border-radius:14px}.ghost-button:hover,.logout-button:hover,.submit-button:hover,.upload-button:hover{transform:translateY(-1px)}.ghost-button:disabled,.submit-button:disabled{opacity:.65;cursor:wait}.hidden-input{display:none}.preview-card{border-radius:18px;overflow:hidden;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}.preview-card img{width:100%;max-height:240px;object-fit:cover}.preview-thumb{width:100px!important;height:100px;object-fit:cover}.preview-video{border-radius:14px}.composer-inline-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:20px;gap:20px}.composer-inline-thumb{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.08)}.composer-inline-video{background:rgba(0,0,0,.25)}.lightbox-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:rgba(4,10,15,.82);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.confirm-modal-backdrop{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:24px;background:rgba(4,10,15,.68);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.confirm-modal-card{width:min(460px,100%);padding:26px;border-radius:24px;background:rgba(8,27,34,.98);border:1px solid rgba(255,255,255,.08);box-shadow:var(--shadow)}.confirm-modal-card h2{margin:0;color:#ffffff}.confirm-modal-card p{margin:12px 0 0;color:var(--muted);line-height:1.6}.confirm-modal-actions{display:flex;justify-content:center;gap:12px;margin-top:24px}.confirm-modal-button{min-width:110px}.lightbox-card{position:relative;max-width:min(92vw,1100px);max-height:90vh;padding:18px;border-radius:24px;background:rgba(8,27,34,.96);border:1px solid rgba(255,255,255,.08);box-shadow:var(--shadow)}.lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding-right:52px}.lightbox-counter{color:#dff3ef;font-size:.92rem}.lightbox-nav{display:flex;align-items:center;gap:10px}.lightbox-arrow{width:42px;height:42px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;cursor:pointer;color:#f5fffd;background:rgba(255,255,255,.08)}.lightbox-arrow:hover{background:rgba(255,255,255,.14)}.lightbox-arrow:disabled{opacity:.35;cursor:not-allowed}.lightbox-arrow svg{width:22px;height:22px;fill:currentColor}.lightbox-image{width:auto;height:auto;max-width:min(88vw,1000px)}.lightbox-image,.lightbox-video{display:block;max-height:calc(90vh - 36px);border-radius:18px}.lightbox-video{width:min(88vw,1000px);background:rgba(0,0,0,.35)}.lightbox-close{position:absolute;top:10px;right:10px;width:40px;height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;cursor:pointer;color:#f5fffd;background:rgba(0,0,0,.46)}.lightbox-close svg{width:18px;height:18px;fill:currentColor}.edit-card{margin-top:8px}.error-text{margin:0;color:#ffb3b3;font-size:.9rem}@media (max-width:980px){.public-chat-body{grid-template-columns:1fr}.composer-panel{border-left:0;border-top:1px solid var(--line)}}@media (max-width:720px){html{font-size:80%}.gate-shell{padding:10px}.public-chat-shell{padding:0}.user-picker{grid-template-columns:1fr}.gate-card,.public-chat-frame{height:calc(100vh - 24px)}.gate-card{height:auto;padding:18px}.panel-card{padding:10px}.session-card{display:none}.composer-card{gap:8px;width:100%}.composer-panel,.message-panel,.public-chat-header{padding:10px}.public-chat-body{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;min-height:0}.message-panel{min-height:0;overflow:hidden}.composer-panel{min-height:0;height:auto;max-height:42vh;overflow:auto;align-content:start}.public-chat-header{align-items:center;flex-direction:row;justify-content:space-between}.room-stats{justify-content:flex-end}.public-bubble{max-width:100%;padding:10px}.bubble-attachment-grid,.composer-inline-preview{gap:10px}.bubble-image,.composer-inline-thumb,.preview-thumb{width:100%!important;height:auto;aspect-ratio:1/1}.bubble-video,.composer-inline-video,.preview-video{width:100%;max-width:100%;aspect-ratio:1/1;max-height:none;object-fit:cover}.room-copy{min-width:0}.room-copy div{display:none}.room-badge{width:44px;height:44px;border-radius:14px}.logout-button,.room-stats span{padding:8px 12px}.logout-button span,.name-row,.user-chip{display:none}.composer-top-row{grid-template-columns:auto;align-items:center;gap:8px}.composer-card>.field-label,.name-row .field-label{display:none}.name-row .text-field{min-width:0}.composer-toolbar{gap:8px;justify-content:space-between}.composer-toolbar-actions{gap:8px}.composer-inline-thumb{width:50px;height:50px;border-radius:12px}.text-area{min-height:84px}.reply-composer{padding:8px 10px;gap:8px}.reply-composer p,.reply-composer strong{font-size:.85rem}.lightbox-card{width:100%}.lightbox-toolbar{padding-right:48px}.lightbox-image,.lightbox-video{width:100%;height:auto}.lightbox-video{max-width:100%}.composer-icon-button{width:42px;min-width:42px;height:42px}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}