*{box-sizing:border-box}body{margin:0;background:#f4faff;color:#183e5c;font:16px system-ui,-apple-system,sans-serif}button,input,textarea{font:inherit}button{cursor:pointer;border:0;background:#2475a8;color:white;border-radius:12px;padding:13px 19px}button:disabled{opacity:.5}.secondary{background:transparent;color:#355f7b;border:1px solid #c9e2f3}.small{padding:7px 10px;font-size:13px}.hidden{display:none!important}.brand{font-size:25px;font-weight:750;letter-spacing:-1px}.welcome{max-width:490px;margin:6vh auto;padding:24px}.welcome h1{font-size:46px;line-height:1.1;letter-spacing:-2px}.welcome p{color:#53728a;line-height:1.6}.welcome form{background:white;padding:28px;border-radius:22px;margin:28px 0;box-shadow:0 12px 40px #287cb812}label{display:block;font-size:14px}input{display:block;width:100%;border:1px solid #c9e2f3;border-radius:9px;padding:12px;margin:7px 0 18px}#login button{width:100%;margin:5px 0}small{color:#53728a;font-size:12px}main{display:flex;height:100dvh;max-width:1500px;margin:auto;background:#ffffff}aside{width:310px;background:#e8f5ff;border-right:1px solid #cce5f5;padding:30px 20px;display:flex;flex-direction:column;flex-shrink:0}.sidehead{font-size:11px;letter-spacing:1.5px;color:#53728a;margin:35px 0 15px}.sidehead button{letter-spacing:0}nav button,.person{display:block;width:100%;text-align:left;padding:17px 14px;margin-bottom:7px;border-radius:14px;background:transparent;color:#244e6b}.selected{background:#c9eaff!important}.person{display:flex;gap:10px;align-items:center}.avatar{border-radius:50%;background:#fce1ee;padding:11px;font-weight:650}.person .secondary{margin-left:auto}footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;padding-top:24px;font-size:14px}.chat{flex:1;min-width:0;display:flex;flex-direction:column}header{padding:21px 30px;border-bottom:1px solid #d9ebf6;display:flex;gap:15px;align-items:center;background:#fff}h2{margin:0 0 7px;font-size:20px}.lock{margin-left:auto;font-size:12px;color:#53728a}#back{display:none}#messages{flex:1;overflow:auto;padding:30px;display:flex;flex-direction:column;gap:15px;background:radial-gradient(ellipse at top,#eaf6ff,transparent)}.bubble{background:white;border:1px solid #d5e8f5;border-radius:17px 17px 17px 4px;padding:12px 16px;max-width:75%;align-self:flex-start;box-shadow:0 3px 8px #287cb808}.bubble.mine{background:#fce1ee;align-self:flex-end;border-radius:17px 17px 4px 17px}.bubble p{margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.bubble strong{font-size:12px;color:#3c6580}.bubble time{display:block;text-align:right;font-size:10px;color:#596d83}.bubble img{max-width:100%;max-height:320px;border-radius:9px;margin-top:8px}.empty{text-align:center;color:#53728a;margin:auto;font-size:17px}#compose{display:flex;align-items:center;gap:12px;margin:15px 25px 7px;background:white;border:1px solid #c9e2f3;border-radius:18px;padding:10px}textarea{resize:none;border:0;outline:none;background:transparent}#text{flex:1;min-width:0;padding:8px;max-height:120px}#send{border-radius:13px;font-size:23px;padding:6px 17px}.attach{cursor:pointer;padding:5px 12px;font-size:28px;color:#2475a8}.note{text-align:center;padding:4px 10px 15px;font-size:10px}#attachment{padding:0 30px;color:#355f7b;font-size:13px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#205b82;color:white;padding:15px 24px;border-radius:12px;z-index:20;width:max-content;max-width:90%}dialog{border:0;border-radius:20px;padding:30px;max-width:450px;width:90%}dialog::backdrop{background:#183e5c70}dialog p{line-height:1.5;color:#53728a}#inviteLink{width:100%;height:100px;border:1px solid #c9e2f3;padding:10px;margin-bottom:15px}@media(max-width:700px){aside{width:100%;display:none}main.menu aside{display:flex}main.menu .chat{display:none}#back{display:block}header{padding:15px}.lock{display:none}#messages{padding:18px 12px}.bubble{max-width:88%}#compose{margin:10px}.welcome{margin:1vh auto}.welcome h1{font-size:39px}}

/* Blue foundations, pink accents, white surfaces. */
:root{color-scheme:light;accent-color:#2475a8}button:hover{filter:brightness(.96)}button:focus-visible,input:focus-visible,textarea:focus-visible,.attach:focus-within{outline:3px solid #d65a99;outline-offset:3px}.brand{color:#2475a8}.welcome h1{color:#205b82}.bubble.mine{border-color:#f0c1d9}#invite{background:#fce1ee;color:#7e315a}.avatar{color:#7e315a}#text::placeholder,input::placeholder{color:#607d94}

.brand{display:flex;align-items:center;gap:10px}.brand-logo{width:44px;height:44px;object-fit:contain;flex-shrink:0}
/* Familiar messenger layout in the Пролайн Chat palette. */
main{max-width:none;background:#fff}aside{width:350px;padding:0;background:#fff;overflow:hidden}.sidebar-top{height:78px;display:flex;align-items:center;justify-content:space-between;padding:16px 22px;background:#e8f5ff;flex-shrink:0}.sidebar-top .brand{font-size:21px;letter-spacing:-.7px}.sidebar-top .brand-logo{width:39px;height:39px}.icon-button{display:inline-grid;place-items:center;background:transparent;color:#2475a8;font-size:29px;padding:0;width:38px;height:38px;border-radius:50%;flex-shrink:0}.icon-button:hover{background:#cfeaff}.chats-heading{font-size:27px;letter-spacing:-.6px;margin:22px 24px 14px}.searchbox{display:flex;align-items:center;gap:10px;margin:0 18px;background:#f0f6fa;border-radius:11px;padding:0 13px;color:#53728a;min-height:42px}.searchbox>span{font-size:25px}.searchbox input{background:transparent;border:0;padding:10px 0;margin:0;font-size:13px;min-width:0;border-radius:4px}.chat-filters{display:flex;gap:7px;padding:14px 18px;flex-shrink:0}.filter{padding:7px 13px;border-radius:18px;font-size:12px;color:#53728a;background:#f0f5f8}.filter.active{background:#ceeaff;color:#205b82}.invite-filter{margin-left:auto}#invite{background:#fce1ee;color:#7e315a}.sidebar-scroll{flex:1;min-height:0;overflow:auto}nav .chat-row{display:flex;align-items:center;width:100%;gap:13px;border-radius:0;padding:13px 20px;margin:0;background:white;text-align:left;color:#183e5c;min-height:79px}.chat-row:hover{background:#f4faff}.chat-row.selected{background:#e8f5ff!important;box-shadow:inset 3px 0 #66b9ef}.chat-list-avatar,.chat-avatar,.contact-avatar,.profile-avatar{display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:#e2eff9;color:#2a6d98;font-size:16px;font-weight:650;width:47px;height:47px}.proline-avatar{background:#fce1ee;color:#a34f7a;font-size:25px}.chat-row-copy{display:flex;flex-direction:column;gap:7px;flex:1;min-width:0}.chat-row-line{display:flex;align-items:center;gap:10px}.chat-row-name{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.chat-row-time{font-size:10px;color:#638197;white-space:nowrap}.chat-row-preview{font-size:12px;color:#638197;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}.no-results{font-size:13px;color:#638197;padding:10px 25px}#contacts{margin:16px 0 0;border-top:1px solid #edf3f7;padding-top:8px}#contacts summary{padding:13px 23px;cursor:pointer;font-size:12px;color:#53728a}#people .person{display:flex;padding:0 18px;margin:0;gap:4px;border-radius:0}.contact-button{display:flex;align-items:center;gap:11px;flex:1;min-width:0;background:transparent;color:#244e6b;padding:9px 3px;font-size:13px;text-align:left}.contact-avatar{height:34px;width:34px;font-size:12px;background:#fce1ee;color:#7e315a}.disable-contact{background:transparent;color:#718a9d;font-size:19px;padding:6px 8px}.disable-contact:hover{background:#fce1ee;color:#7e315a}aside footer{gap:10px;background:#f6faff;padding:12px 18px;border-top:1px solid #e0edf5;flex-shrink:0;margin-top:0}#me{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:13px}.profile-avatar{height:32px;width:32px;font-size:12px}#logout{border:0;font-size:12px}.chat{background:#f0f8ff}header{height:78px;padding:15px 28px;flex-shrink:0;background:#fff}.chat-avatar{width:43px;height:43px;background:#d8eeff;font-size:22px}.header-copy{min-width:0}#roomTitle{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 4px}#status{font-size:11px}.lock{font-size:11px;color:#638197}#messages{gap:5px;padding:24px max(24px,6%);background-color:#f0f8ff;background-image:radial-gradient(#b9d9ee55 .8px,transparent .8px);background-size:22px 22px}.day-divider{align-self:center;font-size:11px;color:#53728a;background:#fff;border:1px solid #deedf6;border-radius:8px;padding:6px 12px;margin:13px 0 17px;box-shadow:0 1px 3px #183e5c06}.bubble{padding:8px 11px 5px;max-width:72%;min-width:80px;border-radius:0 9px 9px 9px;border:0;box-shadow:0 1px 2px #1f4f6d17;margin-bottom:5px;position:relative}.bubble.mine{border:0;border-radius:9px 0 9px 9px;background:#fce1ee}.bubble p{font-size:14px;line-height:1.5;margin:3px 0 1px}.bubble time{font-size:10px;margin:2px 0 0;padding-left:25px;color:#638197}.bubble.mine time{color:#92647d}.bubble strong{color:#2475a8;font-size:11px}.empty{background:#ffffffbc;border:1px solid #e2edf5;padding:24px 30px;border-radius:16px;font-size:15px}#compose{border:0;box-shadow:0 1px 5px #1f4f6d0d;margin:12px 22px 5px;border-radius:26px;padding:7px 9px;gap:3px;flex-shrink:0}#text{font-size:14px;line-height:1.5;padding:8px 9px;min-height:37px}.attach{font-size:27px;padding:0 9px;border-radius:50%}#send{width:40px;height:40px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;font-size:18px;padding:0 0 0 2px;background:#2475a8}.note{font-size:9px;padding-bottom:max(9px,env(safe-area-inset-bottom));color:#638197}#attachment:not(:empty){padding:10px 27px 0;background:#f0f8ff}.chat header #back{display:none}
@media(min-width:1400px){aside{width:390px}#messages{padding-left:9%;padding-right:9%}}@media(max-width:900px) and (min-width:701px){aside{width:300px}.sidebar-top{padding:16px}.sidebar-top .brand{font-size:19px}.lock{display:none}.bubble{max-width:88%}#messages{padding:20px}}@media(max-width:700px){aside{width:100%}.sidebar-top{height:72px}.chat header #back{display:inline-grid}.chat header{height:72px;padding:12px;gap:9px}.chat-avatar{height:37px;width:37px;font-size:17px}#messages{padding:12px 16px}.bubble{max-width:88%}#compose{margin:9px 10px 4px}.chats-heading{margin-top:18px}.chat-row-time{font-size:11px}.chat-row-name{font-size:15px}.note{font-size:9px}.chat-filters{padding-bottom:12px}}
/* Spacious composer: text first, attachments and tools inside one surface. */
.composer-area{padding:12px 24px 0;flex-shrink:0;background:linear-gradient(transparent,#f0f8ff 18%)}#compose{display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%;max-width:860px;margin:0 auto;padding:15px 16px 10px;border:1px solid #d3e5f3;border-radius:24px;background:#fff;box-shadow:0 4px 20px #205b820a;transition:border-color .15s,box-shadow .15s}#compose:focus-within{border-color:#88c5ed;box-shadow:0 0 0 3px #66b9ef18,0 4px 20px #205b820a}#compose.drag-over{border:2px dashed #d65a99;background:#fff5fa;padding:14px 15px 9px}#text{display:block;flex:none;width:100%;min-height:62px;max-height:220px;resize:none;padding:3px 3px 12px;font-size:15px;line-height:1.55;color:#183e5c;overflow-y:hidden}#text:focus-visible{outline:none}#text::placeholder{color:#7a94a7}.compose-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:3px}.compose-tools{display:flex;align-items:center;gap:10px;min-width:0}.add-file{display:grid;place-items:center;border:1px solid #dceaf4;border-radius:50%;width:36px;height:36px;padding:0;background:#f6faff;color:#2475a8;font-size:26px;flex-shrink:0}.add-file:hover{background:#e8f5ff}#composeHint{font-size:11px;color:#6a879d;line-height:1.4}#send{width:38px;height:38px;padding:0;font-size:25px;font-weight:600;background:#2475a8;color:#fff;border-radius:50%;transition:background .15s}#send:disabled{opacity:1;background:#e8f1f7;color:#9cb2c2;cursor:default;filter:none}.compose-footnote{display:flex;justify-content:space-between;gap:10px;max-width:860px;margin:8px auto 0;padding:0 6px;font-size:10px;line-height:1.4;color:#6a879d}#charCount{white-space:nowrap}.note{font-size:9px;padding:6px 12px 10px}.composer-area #attachment{padding:0;background:transparent}.composer-area #attachment:not(:empty){padding:0 0 13px;background:transparent}.attachment-card{position:relative;display:flex;align-items:center;gap:11px;width:min(340px,100%);padding:8px 37px 8px 8px;border:1px solid #f0cee0;border-radius:14px;background:#fff5fa}.attachment-thumb{width:55px;height:55px;border-radius:9px;object-fit:cover;flex-shrink:0}.attachment-info{display:flex;flex-direction:column;gap:5px;min-width:0}.attachment-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#513c50}.attachment-size{font-size:10px;color:#8b7183}.remove-attachment{position:absolute;right:8px;top:8px;display:grid;place-items:center;padding:0;width:23px;height:23px;background:white;border:1px solid #edd9e4;border-radius:50%;color:#8f5b79;font-size:17px;line-height:1}.remove-attachment:hover{background:#fce1ee}@media(max-width:700px){.composer-area{padding:9px 10px 0}#compose{margin:0;padding:12px 12px 8px;border-radius:21px}#text{min-height:55px;font-size:16px;max-height:180px}.compose-tools{gap:8px}#composeHint{font-size:10px}.compose-footnote{font-size:9px;margin-top:5px}.note{padding-bottom:max(8px,env(safe-area-inset-bottom))}}@media(max-width:420px){#composeHint{max-width:160px}.compose-footnote{font-size:8px}}

/* Hide the native file picker even when global input styles set display:block. */
[hidden],input#file{display:none!important}
.composer-area{padding-left:22px;padding-right:22px}
#compose{display:grid;grid-template-columns:38px minmax(0,1fr) 40px;gap:0 12px;align-items:end;max-width:none;width:100%;padding:12px 14px;border-radius:23px}
#compose .compose-toolbar,#compose .compose-tools{display:contents}
#compose #attachment{grid-column:1/-1;grid-row:1;padding:0}
#compose #attachment:not(:empty){padding:0 0 12px}
#compose #addFile{grid-column:1;grid-row:2;margin-bottom:3px}
#compose #text{grid-column:2;grid-row:2;width:100%;min-width:0;min-height:64px;max-height:220px;margin:0;padding:6px 0;font-size:16px;box-sizing:border-box}
#compose #send{grid-column:3;grid-row:2;margin-bottom:2px}
.compose-footnote{max-width:none}
@media(max-width:700px){.composer-area{padding-left:10px;padding-right:10px}#compose{grid-template-columns:34px minmax(0,1fr) 38px;gap:0 8px;padding:10px;border-radius:20px}#compose #text{min-height:58px;font-size:16px}#compose #addFile{width:34px;height:34px}}
.avatar-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.chat-list-avatar,.contact-avatar,.profile-avatar,.chat-avatar{overflow:hidden}.profile-button{display:flex;align-items:center;gap:10px;flex:1;min-width:0;background:transparent;color:#244e6b;padding:3px;text-align:left}.profile-button:hover{background:#e8f5ff}.profile-button #me{font-size:13px}#profileDialog{width:min(430px,92vw);text-align:center}.profile-dialog-heading{display:flex;justify-content:space-between;align-items:center;text-align:left}.profile-preview{width:124px;height:124px;border-radius:50%;background:#e1f1fc;color:#2475a8;display:grid;place-items:center;font-size:36px;font-weight:600;margin:20px auto 14px;overflow:hidden;border:4px solid white;box-shadow:0 0 0 1px #cce5f5}#profileName{font-size:18px;margin:10px 0}.profile-description{font-size:13px;line-height:1.6}.profile-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:22px 0 16px}.profile-actions button{font-size:13px;padding:11px 15px}#avatarRemove{border-color:#f0cee0;color:#92577a}#avatarStatus{display:block;min-height:32px;line-height:1.5}

button.chat-avatar{padding:0;border:0}button.chat-avatar:disabled{opacity:1;cursor:default;filter:none}button.chat-avatar:not(:disabled){cursor:pointer}button.chat-avatar:not(:disabled):hover{box-shadow:0 0 0 3px #f3c7de}
.video-call-button{margin-left:auto;background:#e8f5ff;color:#2475a8;padding:9px 13px;font-size:12px;white-space:nowrap}.video-call-button+.lock{margin-left:8px}#callDialog{width:min(850px,96vw);max-width:850px;background:#112b40;color:#fff;padding:22px;border-radius:24px}#callDialog::backdrop{background:#112b40c9}.call-heading{text-align:center}.call-heading h2{font-size:23px}.call-heading p{color:#c7e5fc;font-size:13px}.call-stage{position:relative;background:#0a1d2c;border-radius:17px;overflow:hidden;min-height:260px;aspect-ratio:16/10}#callRemote{width:100%;height:100%;object-fit:contain;position:absolute}#callLocal{position:absolute;right:14px;bottom:14px;width:23%;height:30%;object-fit:cover;border-radius:12px;border:2px solid #fff9;transform:scaleX(-1);background:#183e5c}.call-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;padding:20px 0 5px}.call-actions button{font-size:13px}#callEnd{background:#b7406b}#callNetwork{text-align:center;color:#acc5d7!important;font-size:11px!important;margin:13px 0 0}@media(max-width:700px){.video-call-button{font-size:11px;padding:8px}.video-call-button+.lock{display:none}#callDialog{padding:15px}.call-stage{min-height:300px}.call-actions{gap:6px}.call-actions button{font-size:11px;padding:11px}}
#securityDialog{width:min(460px,94vw);max-height:90dvh;overflow:auto}#securityDialog h3{font-size:15px;margin:24px 0 12px}.security-info{font-size:12px!important;background:#eef7fd;border-radius:10px;padding:12px;line-height:1.6!important}#securityDialog label{font-size:12px}#securityDialog input{font-size:14px;margin-bottom:12px}#securityDialog button:not(.icon-button){font-size:12px}#securityDialog details{margin-top:20px;font-size:12px;line-height:1.7}#securityEvents{padding-left:17px;color:#53728a}#securityStatus{font-size:12px;color:#2475a8}#sessionCount,#invitesCount{font-size:13px;margin-top:22px}#securityOpen{font-size:11px;padding:6px}aside footer{gap:6px}
.message-meta{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-height:15px;margin-top:2px}.message-meta time{padding:0;margin:0}.receipt-tick{font-size:12px;line-height:1;color:#7c8f9e;letter-spacing:-3px;padding-right:3px;font-weight:600;white-space:nowrap}.receipt-tick.read{color:#168bd2}.receipt-tick.sent{letter-spacing:0;padding-right:0}
.composer-area{position:relative}#compose{grid-template-columns:36px 36px minmax(0,1fr) 40px}#compose #emojiButton{grid-column:2;grid-row:2;margin-bottom:3px}#compose #text{grid-column:3}#compose #send{grid-column:4}.emoji-toggle{display:grid;place-items:center;width:36px;height:36px;padding:0;background:#fff5fa;border:1px solid #efd8e6;border-radius:50%;color:#ac5e86;font-size:25px;line-height:1}.emoji-toggle[aria-expanded=true]{background:#fce1ee}.emoji-panel{position:absolute;z-index:30;bottom:calc(100% + 5px);left:24px;width:min(365px,calc(100% - 48px));max-height:min(420px,55dvh);display:flex;flex-direction:column;padding:13px;border:1px solid #d3e5f3;border-radius:18px;background:#fff;box-shadow:0 10px 40px #205b8226}.emoji-heading{display:flex;align-items:center;justify-content:space-between;color:#244e6b;font-size:14px}.emoji-heading button{padding:0;background:transparent;color:#638197;width:26px;height:26px;font-size:22px}.emoji-panel #emojiSearch{width:100%;padding:10px 11px;font-size:13px;margin:10px 0 8px;background:#f5faff;border:1px solid #e0ecf5;border-radius:9px}.emoji-categories{display:flex;gap:5px;padding-bottom:9px;flex-shrink:0}.emoji-category{background:#f3f8fc;padding:6px 10px;font-size:19px;border-radius:9px}.emoji-category.active{background:#fce1ee}.emoji-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;overflow:auto;min-height:0;max-height:260px;padding:2px}.emoji-choice{display:grid;place-items:center;min-width:0;height:37px;padding:0;background:transparent;border-radius:8px;font-proline:'Apple Color Emoji','Segoe UI Emoji',sans-serif;font-size:25px}.emoji-choice:hover,.emoji-choice:focus-visible{background:#e8f5ff}.emoji-section-label{grid-column:1/-1;font-size:10px;color:#7a94a8;margin:6px 0;padding-left:3px}.emoji-panel p{font-size:12px;color:#638197;text-align:center;margin:14px 0}@media(max-width:700px){#compose{grid-template-columns:30px 30px minmax(0,1fr) 38px;column-gap:6px}#compose #emojiButton{width:30px;height:34px;font-size:24px}#compose #addFile{width:30px}.emoji-panel{left:10px;width:min(365px,calc(100% - 20px));max-height:48dvh}.emoji-choice{font-size:24px}.emoji-panel #emojiSearch{font-size:16px}}
.emoji-choice.sticker-choice{height:46px}.sticker-choice img{width:40px;height:40px;object-fit:contain}.name-edit-row{display:flex;align-items:center;gap:8px;margin:8px 0}.name-edit-row input{margin:0;min-width:0;font-size:14px;padding:10px;flex:1}.name-edit-row button{font-size:11px;padding:11px;white-space:nowrap}#nameEditor{text-align:left;background:#f4faff;border-radius:12px;padding:12px;margin:16px 0}#nameEditor label{font-size:12px}

.chat-row-bottom{display:flex;align-items:center;gap:8px;min-width:0}.chat-row-bottom .chat-row-preview{flex:1;min-width:0}.unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:12px;background:#2475a8;color:#fff;font-size:11px;font-weight:700;line-height:1;flex-shrink:0}.has-unread .chat-row-name{font-weight:750}.has-unread .chat-row-time{color:#2475a8;font-weight:600}.has-unread .chat-row-preview{color:#355f7b}
#forgotPassword{width:100%;margin:0 0 15px;font-size:13px}.recovery-member{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #e1edf5}.recovery-member>span{flex:1;min-width:0}.recovery-member strong,.recovery-member small{display:block;overflow-wrap:anywhere}.recovery-member strong{font-size:13px}.recovery-member button{font-size:11px!important}#prolineRecovery>p{font-size:12px;line-height:1.5}#recoveryLink{width:100%;height:85px;border:1px solid #c9e2f3;border-radius:9px;padding:8px;margin:15px 0;font-size:12px}#resetDialog p{font-size:13px;line-height:1.6}#resetDialog label{margin:12px 0}#resetDialog button{font-size:13px}#resetStatus{color:#2475a8}

main.recovery-page{display:block;width:min(460px,calc(100% - 32px));height:auto;margin:7vh auto;padding:25px;border-radius:20px;box-shadow:0 8px 35px #205b8212;background:#fff}.recovery-page h1{font-size:28px;letter-spacing:-.6px}.recovery-page p{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.recovery-page a{display:block;color:#2475a8;margin-top:20px;font-weight:600}.recovery-page small{display:block;line-height:1.6;margin-top:20px}.recovery-page button{width:100%}.recovery-page label{margin:16px 0}.recovery-page input{font-size:16px}
.avatar-wrap{position:relative;display:inline-flex;flex-shrink:0;overflow:visible}.avatar-unread{position:absolute;right:-5px;bottom:-4px;display:grid;place-items:center;min-width:18px;height:18px;border:2px solid white;padding:0 4px;background:#d65a99;color:white;border-radius:12px;font-size:9px;line-height:1;font-weight:700}.notification-toggle{padding:4px;width:30px;height:30px;font-size:16px;background:transparent;border-radius:50%;flex-shrink:0}#messageNotifications{position:fixed;right:20px;top:20px;z-index:45;width:min(350px,calc(100vw - 28px));display:flex;flex-direction:column;gap:8px;pointer-events:none}.new-message-popup{display:flex;align-items:flex-start;pointer-events:auto;border:1px solid #d3e5f3;border-radius:15px;box-shadow:0 8px 30px #205b8226;background:white;overflow:hidden}.new-message-open{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;padding:15px;text-align:left;background:white;color:#244e6b}.new-message-open strong{font-size:14px}.new-message-open span{font-size:12px;color:#638197}.new-message-close{background:transparent;color:#638197;font-size:20px;padding:10px}.new-message-open:hover{background:#f4faff}.profile-avatar .avatar-photo{width:32px;height:32px}@media(max-width:700px){#messageNotifications{top:max(12px,env(safe-area-inset-top));right:14px}.notification-toggle{width:28px}}

.download-attachment{display:block;margin:8px 0;color:#176a9d;font-size:13px;overflow-wrap:anywhere}.bubble video{max-width:100%;max-height:360px;border-radius:12px}.file-name{overflow-wrap:anywhere}

.message-attachment{margin-top:6px;position:relative;min-width:0}.media-attachment{overflow:hidden;border-radius:10px}.media-attachment>img,.media-attachment>video{display:block;margin:0;width:100%;max-height:360px;object-fit:contain}.attachment-download{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:1.5px solid #8da9bb;border-radius:50%;color:#38667f;text-decoration:none;font-size:29px;line-height:1;background:transparent;touch-action:manipulation}.attachment-download:hover{background:#d8ebf7}.attachment-download:focus-visible{outline:3px solid #2475a8;outline-offset:3px}.media-attachment>.attachment-download{position:absolute;right:10px;top:10px;color:white;background:#143c55b8;border-color:#ffffffb3;box-shadow:0 1px 5px #0003}.media-attachment>.attachment-download:hover{background:#143c55ed}.document-attachment{display:flex;align-items:center;gap:12px;padding:13px;background:#e6f1f8;border-radius:10px;min-width:230px;max-width:340px}.mine .document-attachment{background:#f4d8e6}.document-symbol{display:grid;place-items:center;width:40px;height:48px;border-radius:5px;background:#fff;color:#47718c;font-size:10px;font-weight:700;flex-shrink:0;border:1px solid #c3d8e5}.document-details{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.document-title{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-subtitle{font-size:11px;color:#638197}@media(max-width:450px){.document-attachment{min-width:0;width:100%;max-width:280px;gap:9px;padding:10px}.document-details{min-width:60px}.document-symbol{width:33px}.document-attachment .attachment-download{width:44px;height:44px}}

.attachment-download{width:40px;height:40px;border:1px solid #a4bdcc;background:#ffffff80;transition:background .15s,transform .15s}.attachment-download:active{transform:scale(.94)}.download-arrow{position:relative;display:block;width:18px;height:20px;border-bottom:1.7px solid currentColor;border-radius:1px;box-sizing:border-box}.download-arrow::before{content:"";position:absolute;left:8px;top:1px;width:1.7px;height:12px;background:currentColor;border-radius:1px}.download-arrow::after{content:"";position:absolute;left:4px;top:6px;width:8px;height:8px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(45deg);box-sizing:border-box}.media-attachment>.attachment-download{background:#183e5cb3;border:1px solid #ffffff80;box-shadow:0 2px 6px #0002}@media(pointer:coarse){.attachment-download{width:44px;height:44px}}

/* Compact visible download control, with the original touch target. */
.attachment-download{transform:scale(.5);transform-origin:center;margin:-10px;position:relative}.attachment-download:active{transform:scale(.47)}.attachment-download::before{content:"";position:absolute;inset:-20px;border-radius:50%}.media-attachment>.attachment-download{right:10px;top:10px;margin:0}.document-attachment .attachment-download{width:40px;height:40px}@media(pointer:coarse){.attachment-download,.document-attachment .attachment-download{width:44px;height:44px;margin:-11px}.media-attachment>.attachment-download{margin:0}.attachment-download::before{inset:-22px}}

/* Private group creation */
.group-people{max-height:38vh;overflow-y:auto;border:1px solid #d6e4ef;border-radius:12px;padding:6px;margin:12px 0}
.group-person{display:flex;align-items:center;gap:10px;padding:10px;cursor:pointer;border-radius:9px}
.group-person:hover{background:#eef7ff}
.group-person input[type=checkbox]{width:20px;height:20px;margin:0;flex:none;accent-color:#237fb1}
.group-person span:last-child{overflow-wrap:anywhere}
.group-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
#groupCreateError{color:#ad2245;min-height:1.4em}
#groupMembersList{max-height:45vh;overflow-y:auto;padding-left:24px}
#groupMembersList li{padding:6px 0;overflow-wrap:anywhere}
@media(max-width:700px){.chat header .lock{display:none}#groupMembersOpen{margin-left:auto;flex-shrink:0}#groupCreateDialog{max-width:calc(100vw - 24px)}}

#groupCreateDialog,#groupMembersDialog{max-height:90dvh;overflow-y:auto}
