/* All rules are scoped to composer/camera surfaces. */
.composer-wrap{position:relative;z-index:4}.composer-wrap svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}#attach,#emoji-button,#record-button{display:grid;place-items:center;flex-shrink:0;width:40px;height:44px;padding:6px;color:#8194a2;border-radius:50%}#emoji-button:hover,#attach:hover,#record-button:hover{color:#3390ec;background:#eef6fd}#message{min-height:44px;max-height:120px;width:0}.send{align-self:flex-end}.composer-popup{position:absolute;bottom:calc(100% + 8px);z-index:12;border:1px solid #e5edf3;border-radius:16px;background:#fff;box-shadow:0 10px 45px #213e6330;animation:composer-in .15s ease-out;transform-origin:bottom left}.attachment-menu{left:20px;width:210px;padding:7px}.attachment-choice{width:100%;display:flex;align-items:center;gap:14px;text-align:left;padding:13px;border-radius:10px;font-size:14px}.attachment-choice svg{color:#3390ec}.composer-shade{display:none}.emoji-panel{right:65px;width:360px;max-width:calc(100vw - 28px);overflow:hidden;transform-origin:bottom right}.emoji-tabs{display:flex;gap:2px;padding:10px 8px;border-bottom:1px solid #edf2f6;overflow-x:auto}.emoji-tabs button{font-size:12px;padding:8px 10px;white-space:nowrap;flex-shrink:0}.emoji-tabs .active{color:#2586de;background:#eaf4ff}.emoji-grid{display:grid;grid-template-columns:repeat(7,1fr);padding:10px;max-height:272px;overflow:auto;gap:3px}.emoji-item{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:25px;line-height:1.3;padding:7px 2px}.emoji-empty{grid-column:1/-1;padding:16px;font-size:13px;color:#758898}.attachment-tray{border:1px solid #dbe7f0;background:#f8fbff;border-radius:15px;margin:0 0 10px;padding:10px;max-height:255px;overflow-y:auto}.tray-header,.tray-actions{display:flex;align-items:center;justify-content:space-between;font-size:12px}.tray-header button{font-size:12px;padding:6px}.tray-actions{justify-content:flex-end;margin-top:5px}.tray-actions button{font-size:13px}.pending-file{display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px solid #e6edf4;font-size:12px}.pending-file>img,.pending-file>video{width:46px;height:46px;object-fit:cover;border-radius:8px;flex-shrink:0}.pending-file>svg{margin:10px;color:#6c97bb}.pending-info{flex:1;min-width:0}.pending-info strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}.pending-info small{display:block;margin-top:2px}.upload-status{display:block;font-size:11px;margin-top:3px;color:#6a8095;overflow-wrap:anywhere}.pending-info progress{display:block;width:100%;height:5px;margin-top:5px;accent-color:#3390ec}.remove-file{font-size:23px;padding:5px 10px;color:#8698a5}.retry-file{color:#287fd0;font-size:12px;padding:5px}#chat{position:relative}.drop-overlay{position:absolute;inset:76px 12px 90px;z-index:10;display:grid;place-items:center;background:#e9f4fff2;border:2px dashed #3390ec;border-radius:20px;color:#2879c1;font-size:16px;pointer-events:none}.voice-panel{padding:13px 15px;margin-bottom:10px;background:#edf6ff;border-radius:14px}.voice-status{font-size:13px;color:#426d93}.voice-panel.is-recording .voice-status{color:#d95060}.voice-panel audio{max-width:100%;width:100%;height:40px;margin-top:10px}.voice-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:8px}.voice-actions button{font-size:13px}.holding{background:#dbebfa!important;color:#1f86de!important;transform:scale(1.1)}.cancel-hold{color:#df4f5a!important;background:#ffe8eb!important}#record-button{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.camera-page{position:fixed;inset:0;z-index:80;background:#080b10;color:white;display:flex;flex-direction:column;overflow:hidden;animation:camera-in .18s ease-out;overscroll-behavior:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.camera-open{overflow:hidden;overscroll-behavior:none}.camera-header{position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;height:calc(64px + env(safe-area-inset-top));padding:calc(8px + env(safe-area-inset-top)) 16px 8px;background:#0b1017e6;color:white;border:0;flex-shrink:0}.camera-header strong{font-size:15px;font-weight:500}.camera-page svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.camera-header button{color:white;padding:10px;border-radius:50%}.camera-header button:hover{background:#ffffff18}.camera-live,.camera-result{position:absolute;inset:64px 0 165px;width:100%;height:calc(100% - 229px);object-fit:contain;background:#080b10}.camera-live.front-camera{transform:scaleX(-1)}.camera-status{position:absolute;left:15px;right:15px;top:calc(76px + env(safe-area-inset-top));text-align:center;font-size:14px;color:white;text-shadow:0 2px 4px #000;pointer-events:none}.camera-bottom{position:absolute;bottom:0;left:0;right:0;min-height:165px;padding:10px 18px calc(20px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#080b10 30%);display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:16px}.camera-hint{font-size:12px;color:#d9e2ee;text-align:center;line-height:1.6;margin:0}.shutter{width:76px;height:76px;background:#ffffff40;border:4px solid #ffffffcc;border-radius:50%;padding:6px;display:grid;place-items:center;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:transform .12s,background .12s;flex-shrink:0}.shutter>span{display:block;background:white;width:100%;height:100%;border-radius:50%;transition:all .15s}.shutter:hover{background:#ffffff60}.shutter.is-recording{transform:scale(1.12);border-color:#ff7a79}.shutter.is-recording>span{background:#f65e65;width:28px;height:28px;border-radius:7px}.camera-actions{display:flex;gap:16px;justify-content:center;width:min(390px,100%)}.camera-actions button{padding:13px 20px;border-radius:24px;background:#ffffff1b;color:white;flex:1}.camera-actions .primary{background:#3390ec}.camera-actions button:disabled{opacity:.35}.camera-result{touch-action:manipulation;user-select:auto}.camera-result[controls]{z-index:1}.camera-page button:focus-visible{outline-color:#91ceff}.camera-page.hidden{display:none}
@keyframes composer-in{from{opacity:0;transform:translateY(5px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes camera-in{from{opacity:.5;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.touch-composer #send-form{gap:3px}.touch-composer #attach,.touch-composer #emoji-button{width:34px;height:44px;padding:5px}.touch-composer #record-button{width:44px;height:44px;background:#3390ec;color:white;margin-left:4px}.touch-composer #record-button:hover{background:#2581d4}.touch-composer #message{border-radius:19px;padding:10px 12px}.touch-composer #send-form .send{width:44px;height:44px;margin-left:4px}.touch-composer .attachment-menu{position:fixed;left:10px;right:10px;bottom:calc(76px + env(safe-area-inset-bottom));width:auto;padding:15px;display:flex;justify-content:space-around;gap:8px;border-radius:20px;z-index:22}.touch-composer .attachment-choice{display:flex;flex-direction:column;gap:9px;justify-content:center;flex:1;width:auto;padding:15px 8px}.touch-composer .attachment-choice svg{width:30px;height:30px}.touch-composer .composer-shade:not(.hidden){display:block;position:fixed;inset:0;z-index:21;border-radius:0;background:#14263830;padding:0}.touch-composer .emoji-panel{right:10px;bottom:calc(100% + 5px);width:360px}.touch-composer .emoji-grid{max-height:225px}.touch-composer .attachment-tray{max-height:210px}.touch-composer .pending-info strong{max-width:100%}
@media(prefers-reduced-motion:reduce){.composer-popup,.camera-page{animation:none}.shutter,.shutter>span{transition:none}}
