body .lounge-shell{max-width:850px;margin:auto;background:#fff;border:1px solid #e0cfd9;border-radius:24px;overflow:hidden;color:#503b4b}
.lounge-header{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:24px;background:linear-gradient(125deg,#f2e5ed,#e7e3f3)}
.lounge-kicker{font-size:10px;letter-spacing:.14em;font-weight:750;color:#84657d}.lounge-header h1{font:600 29px/1.2 Georgia,serif;margin:9px 0}.lounge-header p{font-size:13px;line-height:1.6;margin:0}
.lounge-shell button{border:1px solid #ccb7c7;border-radius:12px;background:#f9f2f7;color:#65485f;padding:10px 12px;min-height:44px;font-size:12px;font-weight:650;cursor:pointer}.lounge-shell button:disabled{opacity:.5;cursor:default}
.lounge-header button{white-space:nowrap}.lounge-welcome{display:flex;align-items:center;gap:12px;padding:14px 22px;background:#fbf7fa;border-bottom:1px solid #efe6ed}.lounge-welcome>span{font-size:28px;color:#b5759d}.lounge-welcome p{font-size:12px;line-height:1.7;margin:0;color:#80667a}
.lounge-chatbar{display:flex;align-items:center;justify-content:space-between;padding:12px 20px}.lounge-chatbar strong{font-size:13px}.lounge-chatbar button{padding:7px 12px;min-height:36px}
.lounge-messages{height:clamp(240px,45dvh,520px);overflow:auto;padding:6px 18px 18px;overscroll-behavior:contain;scrollbar-width:thin}.lounge-empty{text-align:center;padding:50px 20px}.lounge-empty h2{font:600 24px Georgia}.lounge-empty p{font-size:13px;line-height:1.7;color:#826d7d;max-width:340px;margin:auto}
.lounge-message{border:1px solid #eee5ec;border-radius:17px;padding:12px;margin:8px 0;background:#fbf8fb}.lounge-message.mine{background:#f3e9f1;border-color:#e5cfdf}.lounge-message-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.lounge-message-top strong{font-size:12px}.lounge-message time{font-size:10px;color:#8b7485;margin-left:auto}.lounge-message-top button{font-size:10px;min-height:30px;padding:4px 8px}.lounge-avatar{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#e6d5e4;color:#73546e;font-size:10px;font-weight:750}.lounge-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65;margin:10px 0 0}
.lounge-status{font-size:11px;line-height:1.6;min-height:18px;margin:0;padding:0 20px 10px;color:#876d7e}.lounge-composer{padding:16px 20px;background:#fcf9fb;border-top:1px solid #eee5eb}.lounge-composer label{display:block;font-size:11px;font-weight:750;margin-bottom:7px}.lounge-composer textarea{width:100%;min-height:76px;max-height:180px;resize:vertical;border-radius:14px;border:1px solid #d8c2d1;padding:12px;background:white;color:#503b4b;font:14px/1.6 system-ui}.lounge-compose-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.lounge-emojis{display:flex;gap:3px}.lounge-emojis button{min-width:32px;padding:5px;border:0;background:none;font-size:19px}.lounge-composer #loungeSend{background:#815875;color:white;border-color:#815875;min-width:76px}.lounge-composer small{display:block;font-size:10px;color:#967e8d;line-height:1.6;margin-top:8px}
body #view-spaces .lounge-entry{background:linear-gradient(145deg,#f4e5ed,#e8d6e5)!important}.lounge-home-invite{display:flex;align-items:center;gap:13px;width:100%;text-align:left;border:1px solid #dfcbd7;border-radius:18px;padding:16px 18px;margin:16px 0;background:linear-gradient(120deg,#f6edf2,#ece8f5);color:#62445b;cursor:pointer}.lounge-home-invite>span:first-child{font-size:28px}.lounge-home-invite strong{font-size:14px}.lounge-home-invite small{display:block;margin-top:5px;font-size:12px}
body .lounge-shell :is(h1,h2,p,strong,label,small,time){-webkit-text-fill-color:currentColor!important}body.dark-mode .lounge-shell :is(h1,h2,p,strong,label,small){color:#62475c!important}body.dark-mode .lounge-shell textarea{color:#503b4b!important;-webkit-text-fill-color:#503b4b!important;background:white!important}.lounge-shell :is(button,textarea):focus-visible{outline:3px solid #b38daa;outline-offset:2px}
.terminal-brand-mark{width:32px;height:32px;object-fit:cover;object-position:left;border-radius:10px}.terminal-page .terminal-brand{grid-template-columns:32px minmax(0,1fr)}
@media(max-width:600px){.lounge-header{padding:18px;flex-direction:column}.lounge-header h1{font-size:26px}.lounge-header button{align-self:flex-end;min-height:36px;margin-top:-4px}.lounge-messages{height:42dvh;padding:4px 12px 12px}.lounge-composer{padding:14px}.lounge-welcome{padding:12px 16px}.lounge-emojis button{min-width:29px;font-size:18px}.lounge-message-top{gap:6px}}
/* Teams-style compose controls in the Circle palette. */
.lounge-rich-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:6px 0 9px}.lounge-rich-tools button{font-size:11px;padding:7px 9px;min-height:38px;background:#f3edf5;border-color:#ded0e0}.lounge-rich-tools button[aria-expanded=true]{background:#e0d0e4;border-color:#b799c1}
.lounge-format-panel{padding:12px;margin:0 0 10px;background:#fff;border:1px solid #decddd;border-radius:13px}.lounge-format-panel[hidden],.lounge-sticker-tray[hidden]{display:none!important}.lounge-format-buttons{display:flex;gap:5px;flex-wrap:wrap}.lounge-format-buttons button{min-height:36px;padding:6px 10px;border-radius:7px;background:#faf7fb}.lounge-font-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.lounge-font-controls label{font-size:10px;display:grid;gap:4px;flex:1;min-width:70px}.lounge-font-controls select{max-width:100%;min-height:36px;border:1px solid #d7c5d5;border-radius:7px;background:white;color:#65485f;padding:6px;font-size:12px}
.lounge-preview-caption{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#9b7f94;border-top:1px solid #eee2eb;margin-top:12px;padding-top:10px}.lounge-text{font:14px/1.65 system-ui;overflow-wrap:anywhere;min-width:0}.lounge-text p{font:inherit;margin:5px 0;white-space:pre-wrap;color:inherit!important;-webkit-text-fill-color:inherit!important}.lounge-text :is(strong,em,u,li,blockquote){color:inherit!important;-webkit-text-fill-color:inherit!important}.lounge-text code{background:#eae3ef;border-radius:4px;padding:2px 5px;font-size:.9em}.lounge-text blockquote{border-left:3px solid #b995ad;margin:8px 0;padding:4px 10px;background:#f3eaf2}.lounge-text ul,.lounge-text ol{padding-left:24px;margin:5px 0}
.lounge-sticker-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:10px;border:1px solid #d8c1d3;border-radius:13px;background:#f5edf5;margin-bottom:9px}.lounge-sticker-tray>button{padding:5px;border:0;min-width:0;background:transparent}.lounge-sticker-card{display:flex;flex-direction:column;align-items:center;gap:7px;padding:15px 9px;border-radius:16px;background:linear-gradient(135deg,#f4daeb,#e2dbef);color:#785571;text-align:center;max-width:210px;margin:7px 0}.lounge-sticker-card>span{font-size:36px}.lounge-sticker-card>strong{font:600 15px/1.3 Georgia!important;color:#785571!important;white-space:normal}.lounge-sticker-tray .lounge-sticker-card{margin:0;padding:10px 5px;min-height:108px}.lounge-sticker-tray .lounge-sticker-card>strong{font-size:12px!important}
#loungeAttachments{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.lounge-attachment-chip{display:flex;gap:8px;align-items:center;background:#ebe4ef;border:1px solid #d3bfd7;border-radius:10px;padding:5px 8px;font-size:11px;min-width:0;max-width:100%}.lounge-attachment-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lounge-attachment-chip button{min-height:32px;padding:3px 8px;font-size:18px}
.lounge-media{margin-top:9px;max-width:min(360px,100%);font-size:12px;color:#8c7083}.lounge-media img{display:block;max-width:100%;max-height:300px;object-fit:contain;border-radius:12px;background:#f1eaf1}.lounge-media.sticker img{max-width:180px;max-height:180px;background:transparent}.lounge-shell .lounge-composer{box-shadow:0 -6px 18px #5a345a05}.lounge-compose-bottom{border-top:1px solid #eee4ec;padding-top:7px}.lounge-message.mine{margin-left:32px}.lounge-message:not(.mine){margin-right:18px}
@media(max-width:600px){.lounge-rich-tools{gap:4px}.lounge-rich-tools button{font-size:10px;padding:7px}.lounge-sticker-tray{grid-template-columns:repeat(2,minmax(0,1fr))}.lounge-message.mine{margin-left:18px}.lounge-message:not(.mine){margin-right:10px}}
body .lounge-shell .lounge-text :is(strong,em,u,li,blockquote){color:inherit!important;-webkit-text-fill-color:inherit!important}
/* Open conversation rows: the room itself is the surface, not a stack of bubbles. */
body .lounge-shell{background:var(--circle-paper,#f8f8fb);border:0;border-radius:0;box-shadow:none;max-width:940px}
.lounge-header{background:transparent;border-bottom:1px solid #dccfdc;padding:22px 6px}.lounge-welcome{background:transparent;padding:12px 6px;border-bottom:1px solid #e9e0e8}.lounge-chatbar{padding:14px 6px}
body .lounge-message,body .lounge-message.mine,body .lounge-message:not(.mine){position:relative;background:transparent!important;border:0!important;border-radius:0;margin:0;padding:12px 8px 12px 52px;box-shadow:none;min-height:64px}
.lounge-message+.lounge-message{border-top:1px solid #ece5ed!important}.lounge-message-top{gap:8px;min-height:20px}.lounge-message-top .lounge-avatar{position:absolute;left:3px;top:13px;width:36px;height:36px;font-size:11px;background:#e8dbe7;overflow:hidden}.lounge-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#e8dbe7}
.lounge-message .lounge-text{margin-top:3px}.lounge-message time{margin-left:2px;font-size:10px;opacity:.8}.lounge-message-top button{margin-left:auto;background:transparent;border:0;color:#947b8e}.lounge-messages{padding:4px 2px 18px;height:clamp(280px,49dvh,620px);background:transparent}
.lounge-composer{background:transparent!important;border:1px solid #d8c7d7;border-radius:16px;box-shadow:0 5px 18px #57364708!important;margin:6px 2px 16px;padding:12px 14px}.lounge-composer textarea{background:transparent!important;border:0;padding:7px 0;box-shadow:none;min-height:74px}.lounge-rich-tools{border-bottom:1px solid #e4d8e2;padding-bottom:9px}.lounge-rich-tools button{background:transparent;border:0;color:#74546c}.lounge-compose-bottom{border-top:1px solid #e4d8e2}
body.dark-mode .lounge-shell{background:#211c28;color:#f1e6ef}body.dark-mode .lounge-shell :is(h1,h2,p,strong,label,small){color:#e7d8e5!important}.lounge-message-top strong{font-weight:650}
@media(max-width:600px){.lounge-header{padding:16px 3px;flex-direction:row}.lounge-header h1{font-size:23px}.lounge-header p{font-size:12px}.lounge-header button{margin:0;align-self:flex-start}.lounge-messages{height:47dvh}.lounge-message-top{row-gap:4px}.lounge-message-top time{font-size:9px}.lounge-composer{padding:9px 11px}}
.lounge-expression-picker{background:var(--circle-card,#fff);border:1px solid #dbcada;border-radius:13px;padding:10px;margin-bottom:10px}.lounge-expression-picker[hidden]{display:none!important}.lounge-expression-tabs{display:flex;gap:5px;margin-bottom:9px}.lounge-expression-tabs button{flex:1;min-height:36px;padding:6px}.lounge-expression-tabs button:last-child{flex:0 0 32px;font-size:20px;padding:0}.lounge-expression-picker input[type=search]{width:calc(100% - 76px);min-height:38px;padding:7px 10px;border:1px solid #d5bfd2;border-radius:9px;background:#fff;color:#503b4b;font-size:14px}.lounge-expression-picker #loungeExpressionFind{width:70px;min-height:38px;padding:7px;font-size:11px}.lounge-expression-picker>p{font-size:11px!important;line-height:1.6}.lounge-expression-grid{max-height:290px;overflow:auto;overscroll-behavior:contain;gap:7px;display:grid;align-items:start}.emoji-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.emoji-grid button{font-size:26px!important;background:none!important;border:0!important;padding:4px!important;min-height:38px!important;min-width:0}.media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.media-grid>div{min-width:0}.media-grid button{padding:0;background:transparent;border:0;width:100%}.media-grid img{width:100%;height:105px;object-fit:contain;border-radius:8px}.lounge-giphy-credit{display:block;font-size:9px!important;line-height:1.5;color:#8b6b82!important;overflow-wrap:anywhere}.lounge-emoji-categories{display:flex;gap:4px;flex-wrap:wrap;margin:9px 0}.lounge-emoji-categories button{min-height:29px;padding:5px 7px;font-size:10px}.lounge-library-message img{max-width:100%;max-height:260px;object-fit:contain;border-radius:6px}.lounge-library-message.sticker img{max-width:180px;max-height:180px}.lounge-library-message{font-size:12px;color:#8b6b82;margin:7px 0}.lounge-expression-picker .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:600px){.emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Compact conversation composer; controls open above the typing row. */
body .lounge-shell .lounge-composer{position:relative;display:grid!important;grid-template-columns:40px minmax(0,1fr) 64px;gap:6px;align-items:end;padding:9px!important;margin:0!important;border-radius:15px!important;min-height:0!important;background:var(--circle-paper,#f8f8fb)!important}
body .lounge-composer>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body .lounge-shell #loungeInput{grid-column:2;grid-row:1;width:100%!important;box-sizing:border-box;min-height:44px!important;height:44px;max-height:100px!important;padding:10px!important;margin:0!important;border:0!important;border-radius:8px!important;outline:0!important;resize:vertical;font-size:16px;background:transparent!important;line-height:1.4!important}
body .lounge-shell #loungeToolsToggle{grid-column:1;grid-row:1;min-width:38px;min-height:44px;font-size:24px;padding:0;border:0;background:transparent}
body .lounge-compose-bottom{grid-column:3;grid-row:1;padding:0!important;margin:0!important;border:0!important}
body .lounge-shell #loungeSend{min-width:60px;padding:8px;min-height:44px}
body .lounge-composer>small{grid-column:1/-1;margin:0!important;font-size:10px!important;line-height:1.35!important;padding:0 4px}
body .lounge-shell .lounge-rich-tools,body .lounge-shell .lounge-format-panel,body .lounge-shell .lounge-expression-picker{position:absolute;bottom:calc(100% + 6px);left:0;right:0;z-index:40;max-height:min(340px,42dvh);overflow:auto;margin:0!important;padding:10px!important;border:1px solid #d8c7d7;border-radius:14px;background:#fbf8fc;box-shadow:0 8px 24px #34223a24;box-sizing:border-box}
body .lounge-rich-tools[hidden]{display:none!important}.lounge-rich-tools{gap:5px}.lounge-rich-tools button{flex:1 1 auto;min-height:40px!important}
body .lounge-shell [data-style][aria-pressed=true]{background:#dfc9e2;box-shadow:inset 0 0 0 1px #98779d}
body .lounge-shell .lounge-color-swatches{display:flex;gap:9px;padding:12px 0 4px;flex-wrap:wrap}
body .lounge-shell .lounge-color-swatches button{width:36px;height:36px;min-height:36px;border-radius:50%;border:3px solid #fff;padding:0;box-shadow:0 0 0 1px #c6adc3}
body .lounge-color-swatches button[aria-pressed=true]{outline:3px solid #a183a6;outline-offset:2px}
body .lounge-font-controls label:last-child{display:none!important}body #loungeAttachments:empty{display:none!important}body #loungeAttachments{grid-column:1/-1;grid-row:2;max-height:90px;overflow:auto}
body .lounge-shell{display:flex;flex-direction:column;height:calc(100dvh - 210px);min-height:390px;max-height:850px;overflow:visible!important;position:relative}
body .lounge-header{padding:10px 4px!important;flex-shrink:0}.lounge-header h1{font-size:22px!important;margin:4px 0!important}.lounge-header p,.lounge-welcome{display:none!important}.lounge-chatbar{padding:6px 4px!important;flex-shrink:0}
body .lounge-messages{flex:1 1 auto;height:auto!important;min-height:140px;overflow:auto;background-color:var(--lounge-room-color,transparent);background-image:var(--lounge-room-image,none);background-size:cover;background-position:center;border-radius:10px}
body .lounge-status{flex-shrink:0;padding:4px!important;font-size:10px!important;min-height:14px!important}body .lounge-shell .lounge-message p{font-size:inherit!important}
body .lounge-expression-grid{max-height:175px}.lounge-expression-picker .lounge-emoji-categories{flex-wrap:nowrap;overflow-x:auto}.lounge-emoji-categories button{flex-shrink:0}
@media(max-width:600px){body .lounge-shell{height:calc(100dvh - 180px);min-height:360px}.lounge-header .lounge-kicker{font-size:8px}.lounge-header h1{font-size:20px!important}.lounge-header button{font-size:10px!important;padding:6px!important;min-height:34px!important}.lounge-message-top .lounge-avatar{width:30px;height:30px}body .lounge-message{padding-left:42px!important}body .lounge-messages{padding-bottom:12px!important}}
body.dark-mode .lounge-shell .lounge-format-panel,body.dark-mode .lounge-shell .lounge-rich-tools,body.dark-mode .lounge-shell .lounge-expression-picker{background:#302637;color:#f5eaf5}
body.lounge-open #mentorFab64{display:none!important}
#loungeRoomSettings{font-size:11px;flex-shrink:0;margin:0 0 6px;max-height:140px;overflow:auto}#loungeRoomSettings[hidden]{display:none!important}#loungeRoomSettings[open]{padding:8px;border:1px solid #ddcad8;border-radius:12px}#loungeRoomSettings label{display:inline-flex;align-items:center;gap:6px;margin:6px}#loungeRoomSettings input[type=color]{width:40px;height:32px}#loungeRoomSettings input[type=file]{font-size:11px;max-width:220px}
@media(max-width:600px){body #view-spaces #discoverIntroCard .body-copy{font-size:25px!important;line-height:1.18!important}body.lounge-open #mentorToggle64,body.lounge-open .mentor-fab64{display:none!important}}
/* Dedicated lounge viewport: the only scroll surface is the conversation. */
html.lounge-open,body.lounge-open{overflow:hidden!important;overscroll-behavior:none!important;height:100%!important}
body.lounge-open .bottom-nav,body.lounge-open #aiMentorDock{display:none!important}
body #view-lounge{display:none}
body.lounge-open #view-lounge.active{display:flex!important;position:fixed!important;top:var(--lounge-visible-top,0px)!important;left:0!important;width:var(--lounge-visible-width,100vw)!important;height:var(--lounge-visible-height,100dvh)!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;z-index:10000;box-sizing:border-box;overflow:hidden!important;background:#f8f8fb;color:#503b4b;isolation:isolate}
body.lounge-open #view-lounge .lounge-shell{width:100%!important;max-width:1000px!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0 auto!important;padding:0 12px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box;background:#f8f8fb!important}
body.lounge-open #view-lounge .lounge-header{flex:0 0 auto;min-height:54px;padding:8px 4px!important;align-items:center;box-sizing:border-box}
body.lounge-open #view-lounge .lounge-header h1{font-size:20px!important;line-height:1.2!important}.lounge-header .lounge-kicker{font-size:8px!important}
body.lounge-open #view-lounge .lounge-messages{flex:1 1 0!important;height:auto!important;min-height:0!important;margin:0!important;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;padding:8px!important;box-sizing:border-box}
body.lounge-open #view-lounge .lounge-composer{display:flex!important;flex-direction:column!important;flex:0 0 auto!important;position:relative!important;min-height:0!important;height:auto!important;max-height:none!important;padding:8px 8px max(8px,env(safe-area-inset-bottom))!important;margin:0 0 4px!important;gap:5px!important;overflow:visible!important;box-sizing:border-box;border:1px solid #d8c7d7!important;background:#faf7fc!important;color:#503b4b!important;border-radius:14px!important}
body.lounge-open #view-lounge .lounge-input-row{display:flex!important;flex-direction:row!important;align-items:flex-end!important;gap:5px!important;width:100%!important;min-width:0!important;box-sizing:border-box}
body.lounge-open #view-lounge #loungeToolsToggle{position:static!important;flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;box-sizing:border-box;font-size:25px!important;line-height:1!important;transform:none!important}
body.lounge-open #view-lounge #loungeInput{position:static!important;display:block!important;flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;height:44px;min-height:44px!important;max-height:96px!important;padding:10px 4px!important;border:0!important;outline:0!important;box-sizing:border-box;resize:none!important;margin:0!important;line-height:1.4!important;background:transparent!important;box-shadow:none!important;transform:none!important}
body.lounge-open #view-lounge .lounge-compose-bottom{position:static!important;display:flex!important;flex:0 0 62px!important;min-width:62px!important;width:62px!important;max-width:62px!important;margin:0!important;padding:0!important;align-self:flex-end!important;transform:none!important}
body.lounge-open #view-lounge #loungeSend{position:static!important;display:block!important;width:62px!important;min-width:62px!important;max-width:62px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;font-size:13px!important;box-sizing:border-box;line-height:1!important;transform:none!important}
body.lounge-open #view-lounge .lounge-composer>small{display:block!important;position:static!important;flex:none!important;margin:0!important;padding:0 3px!important;color:#806a7b!important;-webkit-text-fill-color:#806a7b!important;line-height:1.3!important;font-size:10px!important}
body.lounge-open #view-lounge #loungeAttachments{flex:none!important;max-height:80px!important;overflow:auto!important;width:100%!important;box-sizing:border-box;margin:0!important}
body.lounge-open #view-lounge .lounge-rich-tools,body.lounge-open #view-lounge .lounge-format-panel,body.lounge-open #view-lounge .lounge-expression-picker{left:0!important;right:0!important;bottom:calc(100% + 5px)!important;max-width:100%!important;max-height:min(300px,45dvh)!important;box-sizing:border-box;z-index:2!important;overflow:auto!important}
body.lounge-open #view-lounge .lounge-chatbar{flex:none!important;padding:4px!important}.lounge-status{overflow-wrap:anywhere}
body.lounge-open #view-lounge #loungeRoomSettings{max-height:100px;flex-shrink:0}
body.dark-mode.lounge-open #view-lounge,body.dark-mode.lounge-open #view-lounge .lounge-shell{background:#211c28!important;color:#f4eaf3}
body.dark-mode.lounge-open #view-lounge .lounge-composer{background:#f8f3fa!important}
body.lounge-open #view-lounge .lounge-composer>small{width:100%!important;align-self:stretch!important;text-align:center!important;box-sizing:border-box;white-space:normal!important}
body.lounge-open #view-lounge .lounge-conversation{position:relative;display:flex;flex:1 1 0;min-height:0;overflow:hidden;border-radius:10px}
body.lounge-open #view-lounge .lounge-conversation .lounge-messages{width:100%;min-width:0}
body.lounge-open #view-lounge #loungeLatest{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;width:auto;min-width:0;max-width:calc(100% - 28px);min-height:34px;padding:6px 12px;border-radius:11px;border:1px solid #ccb3cc;background:#faf5fcf0;color:#654965;box-shadow:0 2px 8px #3620391c;font:600 11px/1.2 system-ui;z-index:1;backdrop-filter:blur(8px)}
body.lounge-open #view-lounge #loungeLatest[hidden]{display:none!important}
/* Same slim typing row before and after focus. */
body.lounge-open #view-lounge .lounge-composer{padding:5px 6px max(5px,env(safe-area-inset-bottom))!important;gap:2px!important;border-radius:12px!important;margin-bottom:2px!important}
body.lounge-open #view-lounge #loungeInput{height:40px;min-height:40px!important;max-height:88px!important;padding:8px 4px!important}
body.lounge-open #view-lounge #loungeToolsToggle,body.lounge-open #view-lounge #loungeSend{height:40px!important;min-height:40px!important}
body.lounge-open #view-lounge .lounge-composer>small{font-size:9px!important;line-height:1.2!important;padding:0 2px!important}
body #view-lounge .lounge-photo-open{display:block;padding:0!important;margin:0;border:0!important;background:transparent!important;box-shadow:none!important;min-height:0!important;max-width:100%;width:auto;cursor:zoom-in;border-radius:12px;overflow:hidden}
#loungePhotoViewer{padding:0!important;border:0!important;max-width:none!important;max-height:none!important;inset:0!important;margin:0!important;width:100vw!important;height:100dvh!important;box-sizing:border-box;background:#15121bec!important;color:#fff!important;overflow:hidden!important}
#loungePhotoViewer[open]{display:flex!important;flex-direction:column}#loungePhotoViewer::backdrop{background:#15121bf0}
#loungePhotoViewer header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));font:13px system-ui;flex:none;min-width:0}#loungePhotoTitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#loungePhotoViewer button{border:1px solid #8b758e;border-radius:10px;background:#352b3c;color:#fff;min-width:40px;min-height:40px;padding:8px 12px;font:16px system-ui;cursor:pointer}#loungePhotoClose{font-size:25px!important}
#loungePhotoStage{flex:1 1 0;min-height:0;min-width:0;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none}
#loungePhotoStage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform-origin:center;flex-shrink:0;user-select:none;-webkit-user-drag:none;will-change:transform}
#loungePhotoViewer footer{flex:none;padding:10px 16px max(10px,env(safe-area-inset-bottom));text-align:center}#loungePhotoViewer footer>div{display:flex;gap:10px;align-items:center;justify-content:center}#loungePhotoZoom{min-width:48px;font:13px system-ui}#loungePhotoStatus{font:12px/1.4 system-ui;color:#d8c7df!important;-webkit-text-fill-color:#d8c7df!important;margin:10px 0 0}

/* Presence stays outside the scrolling conversation and never covers the composer. */
body.lounge-open #view-lounge .lounge-typing{flex:0 0 20px;height:20px;min-height:20px;padding:2px 9px;color:#665369;font:400 12px/16px system-ui;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.lounge-open #view-lounge .lounge-avatar{overflow:visible!important}
body.lounge-open #view-lounge .lounge-avatar img{border-radius:50%}
body.lounge-open #view-lounge .lounge-avatar.is-online::after{content:'';position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;background:#21864a;border:2px solid #fff;border-radius:50%;z-index:2;box-shadow:0 1px 3px #0002}
[data-theme="dark"] #view-lounge .lounge-typing{color:#d1bcd6}

body #view-lounge .lounge-support-tag{display:table;margin:7px 0 2px;padding:4px 9px;border:1px solid #d6bfd1;border-radius:20px;background:#f5eaf2;color:#67415d;font:500 11px/1.4 system-ui;max-width:100%;box-sizing:border-box}
body #view-lounge .lounge-support-picker{display:flex!important;flex-direction:column;gap:4px;font:500 12px system-ui;padding:6px;min-width:180px}
body #view-lounge .lounge-support-picker select{min-height:40px;max-width:100%;font:400 16px system-ui;background:#fffafd;color:#503b4b;border:1px solid #ccb3c6;border-radius:9px;padding:6px}
body #view-lounge .lounge-support-preview{display:flex;align-items:center;align-self:flex-start;gap:8px;background:#f0e3ee;border:1px solid #d6bfd1;border-radius:16px;padding:2px 7px;font:500 11px system-ui;color:#67415d}
body #view-lounge .lounge-support-preview[hidden]{display:none!important}
body #view-lounge .lounge-support-preview button{padding:0!important;min-width:28px!important;min-height:28px!important;border:0!important;background:transparent!important;color:#67415d!important;font-size:19px!important}
body.dark-mode #view-lounge .lounge-typing{color:#d1bcd6}

body #view-lounge .lounge-chatbar{position:relative;overflow:visible!important;z-index:5;flex-wrap:nowrap!important}
body #view-lounge #loungeOptions{position:relative;margin-left:auto;flex:0 0 auto;max-width:65%}
body #view-lounge #loungeOptions>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;border:1px solid #ccb5c6;border-radius:12px;padding:8px 11px;min-height:40px;box-sizing:border-box;font:500 13px/1.3 system-ui;color:#67415d;background:#faf5f9;white-space:nowrap}
body #view-lounge #loungeOptions>summary::-webkit-details-marker{display:none}
body #view-lounge #loungeOptions>summary::after{content:'⌄';font-size:16px}
body #view-lounge #loungeOptions[open]>summary::after{content:'⌃'}
body #view-lounge #loungeOptions>summary:focus-visible{outline:2px solid #87516f;outline-offset:3px}
body #view-lounge .lounge-options-panel{position:absolute;right:0;top:calc(100% + 6px);width:min(280px,calc(100vw - 40px));display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:10px;box-sizing:border-box;border:1px solid #ccb5c6;border-radius:14px;background:#fff9fc;box-shadow:0 8px 24px #39203926;z-index:10}
body #view-lounge #loungeOptions:not([open])>.lounge-options-panel{display:none!important}
body #view-lounge .lounge-options-panel button{width:100%;min-width:0!important;min-height:44px!important;margin:0!important;padding:8px!important;font:500 12px/1.3 system-ui!important;white-space:normal}
body.dark-mode #view-lounge #loungeOptions>summary,body.dark-mode #view-lounge .lounge-options-panel{background:#302536;color:#f4eaf3;border-color:#705770}
