.head-actions{display:flex;align-items:center;gap:8px}
.rail-top{display:flex;align-items:center;justify-content:space-between;gap:4px;padding-right:18px}
.rail-top .brand{min-width:0;padding-right:8px;white-space:nowrap}
.language-switch{display:grid;gap:3px;flex-shrink:0;color:#89877d;font-size:10px;font-weight:700}
.language-switch select{max-width:110px;border:1px solid #deddd4;border-radius:8px;padding:6px 7px;background:#fff;color:#34443a;font-size:11px;cursor:pointer}
.language-switch select:focus-visible{outline:2px solid #789267;outline-offset:2px}
.subtle-button{border:1px solid #e5e9e1;background:#fff;color:#5e705d;border-radius:9px;padding:8px 11px;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}
.subtle-button:hover{background:#f5f8f2}
.subtle-button.danger{color:#a56256;border-color:#f0e4df}
.subtle-button.danger:hover{background:#fff6f3}
.invite-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.invite-actions .copy-button{text-decoration:none;text-align:center}
.invite-actions .email-invite{display:inline-flex;align-items:center;background:#fff;color:#34443a;border:1px solid #a5b99d}
.invite-actions .email-invite:hover{background:#edf4e9}
@media(max-width:760px){.notice{flex-wrap:wrap}.invite-actions{width:100%;justify-content:flex-start}}
.erase-dialog{width:min(410px,calc(100vw - 36px));border:1px solid #eee7e0;border-radius:20px;padding:0;box-shadow:0 22px 80px #24221f30;color:#272926}
.erase-dialog::backdrop{background:#22292275;backdrop-filter:blur(3px)}
.erase-dialog form{padding:28px}
.erase-dialog .dialog-icon{font-size:28px;color:#809a73;margin-bottom:10px}
.erase-dialog h2{font:600 22px Outfit,sans-serif;margin:0 0 8px;letter-spacing:-.03em}
.erase-dialog p{font-size:13px;line-height:1.65;color:#797a73;margin:0 0 25px}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px}
.erase-button{background:#a95d52;color:#fff;border:0;border-radius:9px;padding:9px 13px;font-size:11px;font-weight:700;cursor:pointer}
.erase-button:hover{background:#914b41}
.name-dialog{width:min(410px,calc(100vw - 36px));border:1px solid #e5e9e1;border-radius:20px;padding:0;box-shadow:0 22px 80px #24221f30;color:#272926}
.name-dialog::backdrop{background:#22292275;backdrop-filter:blur(3px)}
.name-dialog form{padding:28px}
.name-dialog .dialog-icon{font-size:28px;color:#809a73;margin-bottom:10px}
.name-dialog h2{font:600 24px Outfit,sans-serif;margin:0 0 8px;letter-spacing:-.03em}
.name-dialog p{font-size:13px;line-height:1.65;color:#797a73;margin:0 0 22px}
.name-dialog label{display:block;font-size:12px;font-weight:700;color:#515c4f;margin-bottom:8px}
.name-dialog input{width:100%;border:1px solid #d9e2d5;border-radius:10px;padding:12px 13px;outline:0;font-size:14px;color:#273228;margin-bottom:22px}
.name-dialog input:focus{border-color:#769b6d;box-shadow:0 0 0 3px #dcebd5}
.continue-button{background:#34443a;color:#fff;border:0;border-radius:9px;padding:9px 14px;font-size:11px;font-weight:700;cursor:pointer}
.continue-button:hover{background:#49624e}
.call-start{width:34px;height:34px;border:1px solid #dce8d5;border-radius:10px;background:#f7faf5;color:#4f7550;font-size:17px;cursor:pointer}
.call-start:hover{background:#eaf4e5}
.call-panel{display:flex;align-items:center;gap:20px;margin:16px 38px 0;padding:15px;border:1px solid #dce8d5;border-radius:16px;background:#f8fbf6;min-height:130px}
.call-stage{position:relative;width:150px;height:106px;flex-shrink:0;border-radius:12px;overflow:hidden;background:#34443a;display:grid;place-items:center}
.call-stage video{width:100%;height:100%;object-fit:cover}
.call-stage audio{position:absolute;width:calc(100% - 12px);bottom:5px;height:32px}
.call-avatar{font-size:35px;color:#cfe9c3}
.call-stage .call-self{position:absolute;right:5px;bottom:5px;width:46px;height:55px;border:2px solid white;border-radius:7px;background:#25342b}
.call-details{min-width:0;flex:1}
.call-details strong{font:600 15px Outfit,sans-serif}
.call-details p{margin:5px 0 12px;color:#6f796c;font-size:12px}
.call-controls{display:flex;flex-wrap:wrap;gap:7px}
.call-accept,.call-reject{border:0;border-radius:9px;padding:8px 12px;color:white;font-size:11px;font-weight:700;cursor:pointer}
.call-accept{background:#417a51}.call-reject{background:#ac655a}
@media(max-width:760px){.rail-top{padding-right:18px}.rail-top .brand{padding-right:4px;font-size:17px;gap:7px}.rail-top .brand-icon{width:30px;height:30px;font-size:22px}.language-switch{font-size:9px}.language-switch select{max-width:98px;padding:5px;font-size:10px}.chat-head{gap:8px}.head-title{min-width:0;gap:7px}.head-title>div:last-child{min-width:0}.head-title strong,.head-title small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.head-title strong{font-size:14px}.head-title small{font-size:10px}.person-icon{width:31px;height:31px;flex-shrink:0}.head-actions{gap:4px}.subtle-button{padding:6px;font-size:10px}}
@media(max-width:760px){.call-start{width:28px;height:28px;font-size:14px}.call-panel{margin:10px 15px 0;padding:10px;gap:10px;min-height:94px}.call-stage{width:90px;height:72px}.call-details strong{font-size:12px}.call-details p{font-size:10px;margin:3px 0 6px}.call-controls{gap:4px}.call-controls button{font-size:10px;padding:5px 7px}}
.composer .file-button{width:36px;height:36px;flex:0 0 auto;background:transparent;color:#61775f;font-size:20px;border-radius:9px}
.composer .file-button:hover:not(:disabled){background:#edf4e9}
.composer .file-button:disabled{background:transparent;color:#bbc2b9}
.archive-item{position:relative;padding-right:43px}
.unread-badge{position:absolute;top:8px;right:8px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:99px;background:#34443a;color:#fff;font-size:11px;font-weight:700}
.composer .file-button.recording{background:#a53f35;color:#fff;animation:record-pulse 1.4s infinite}
@keyframes record-pulse{50%{box-shadow:0 0 0 6px #a53f352a}}
.voice-card{display:flex;align-items:center;gap:9px;min-width:160px}
.voice-card span{font-size:13px;font-weight:600}
.voice-card audio{max-width:220px;width:100%;height:32px}
.voice-play{border:0;border-radius:50%;width:33px;height:33px;background:#34443a;color:#fff;cursor:pointer}
.file-card{display:flex;align-items:center;gap:11px;min-width:180px;max-width:320px}
.file-card-icon{font-size:22px;flex:0 0 auto}
.file-card-info{min-width:0;flex:1}
.file-card-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.file-card-info small{display:block;color:#6b7668;font-size:11px;margin-top:2px}
.file-download{border:1px solid #a5b99d;background:white;color:#334c37;border-radius:8px;padding:6px 9px;font-size:11px;font-weight:700;cursor:pointer}
.file-download:disabled{opacity:.5;cursor:default}
.image-card{width:min(280px,65vw);max-width:100%;display:grid;gap:7px}
.image-card img{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:10px;background:#e8e9e3}
.image-card img:not([src]){display:none}
.image-open{min-height:110px;border:1px dashed #a5b99d;border-radius:10px;background:#f8faf6;color:#334c37;font-size:12px;font-weight:700;cursor:pointer}
.image-open:disabled{opacity:.6;cursor:default}
.image-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.image-footer span{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.image-footer .file-download{text-decoration:none;white-space:nowrap}
.support-link{display:inline-block;margin:12px 0 4px;color:#5e705d;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.support-link:hover{color:#34443a}
@media(max-width:760px){.chat-head{min-height:74px;height:auto;padding-top:7px;padding-bottom:7px}.head-actions{max-width:62%;flex-wrap:wrap;justify-content:flex-end}.head-actions .subtle-button{font-size:9px;padding:5px 6px}}
.pin-dialog{width:min(410px,calc(100vw - 36px));border:1px solid #e5e9e1;border-radius:20px;padding:0;box-shadow:0 22px 80px #24221f30;color:#272926}
.pin-dialog::backdrop{background:#222922a3;backdrop-filter:blur(5px)}
.pin-dialog form{padding:28px}
.pin-dialog .dialog-icon{font-size:28px;color:#809a73;margin-bottom:10px}
.pin-dialog h2{font:600 24px Outfit,sans-serif;margin:0 0 8px;letter-spacing:-.03em}
.pin-dialog p{font-size:13px;line-height:1.55;color:#797a73;margin:0 0 18px}
.pin-dialog label{display:block;font-size:12px;font-weight:700;color:#515c4f;margin-bottom:8px}
.pin-dialog input{width:100%;border:1px solid #d9e2d5;border-radius:10px;padding:12px 13px;outline:0;font-size:16px;letter-spacing:.2em;color:#273228;margin-bottom:16px}
.pin-dialog input:focus{border-color:#769b6d;box-shadow:0 0 0 3px #dcebd5}
.pin-dialog .pin-error{min-height:18px;color:#a56256;margin:0 0 12px}
