/* All message channels share the same glass frame and compact controls. */
.channel-workspace{margin:0;width:100%;max-width:none;min-height:430px;height:calc(100dvh - 192px);border-radius:16px;overflow:hidden;animation:none}.channel-source-label{color:var(--muted);font-size:10px}.channel-workspace .im-sidebar>header{padding-bottom:13px}.channel-workspace .im-list-search{display:flex;margin:0 17px 14px;align-items:center;gap:10px;border:1px solid var(--im-line);border-radius:10px;background:#84b4bd05;padding:0 11px}.channel-workspace .im-list-search input{background:none;border:0;box-shadow:none;outline:0;width:100%;min-width:0;font-size:12px;padding:11px 0;color:var(--text)}.channel-workspace .im-list-search svg{width:17px;height:17px;color:var(--muted)}.channel-workspace .im-list-tabs{display:flex;align-items:center;gap:20px;padding:0 20px;border-bottom:1px solid var(--im-line)}.channel-workspace .im-list-tabs button{padding:10px 0 12px;border:0;border-bottom:2px solid transparent;box-shadow:none;border-radius:0;background:none;color:var(--muted);font-size:12px}.channel-workspace .im-list-tabs button[aria-pressed=true]{color:var(--im-gold);border-bottom-color:var(--im-gold)}.channel-workspace .im-conversation{display:flex;text-decoration:none;color:var(--text);width:100%;align-items:center;min-height:84px;gap:11px;text-align:left}.channel-workspace .im-conversation.is-active{border-color:#6db6bc66;background:linear-gradient(115deg,#39bbb91c,#08333d14);box-shadow:inset 3px 0 #efcf7e}.channel-workspace .im-conversation-copy{min-width:0;flex:1}.channel-workspace .im-conversation-copy strong{font-size:13px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:1.6}.channel-workspace .im-conversation-copy small{font-size:11px;color:var(--muted);display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:1.6}.channel-workspace .im-role{font-size:9px;color:var(--muted);line-height:1.5;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.im-conversation-meta{display:flex;align-items:flex-end;flex-direction:column;gap:10px;align-self:stretch;padding:5px 0}.im-conversation-meta time{font-size:9px;color:var(--muted)}.im-conversation-meta b{min-width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(120deg,#f6d38a,#e6b760);font-size:10px;color:#173238;padding:0 4px}.channel-avatar img{width:100%;height:100%;object-fit:cover}.channel-workspace .im-chat-identity{min-width:0;flex:1}.channel-workspace .im-chat-identity>span{min-width:0}.channel-workspace .im-chat-identity strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-workspace .im-chat-identity small{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.7;max-width:70ch}.channel-workspace .im-chat-tabs{display:flex;align-items:center;gap:25px;padding:0 22px;border-bottom:1px solid var(--im-line)}.channel-workspace .im-chat-tabs button{border:0;box-shadow:none;background:none;color:var(--muted);font-size:12px;padding:10px 0 12px;border-radius:0;border-bottom:2px solid transparent}.channel-workspace .im-chat-tabs button[aria-pressed=true]{color:var(--im-gold);border-bottom-color:var(--im-gold)}.channel-stream{display:block;overflow:auto;min-height:0;flex:1;scrollbar-width:thin;overscroll-behavior:contain}.channel-workspace #channel-messages{display:flex;flex-direction:column;gap:16px}.channel-workspace .im-day{text-align:center;align-self:center;font-size:10px;border:1px solid var(--im-line);border-radius:15px;padding:5px 13px;color:var(--muted);background:#4698a208;margin:3px 0 4px}.channel-workspace .channel-system{align-self:center;max-width:85%}.channel-workspace .channel-system>.im-author-avatar{display:none}.channel-workspace .channel-system .im-bubble{background:#6898a107;border-color:var(--im-line)}.channel-workspace .channel-system .im-message-text{font-size:11px;color:var(--muted)}.channel-workspace .im-message-content{min-width:0}.channel-workspace .im-message{max-width:84%}.channel-workspace .im-message .im-bubble{min-width:90px}.channel-workspace .avito-file{display:flex;flex-direction:column;align-items:flex-start;margin-top:8px;gap:6px;font-size:11px;border:1px solid var(--im-line);border-radius:9px;padding:9px;overflow-wrap:anywhere}.channel-workspace .avito-file a{color:var(--im-cyan)}.channel-workspace .avito-file img{display:block;max-width:100%;max-height:240px;border-radius:7px}.channel-workspace .avito-file audio{width:260px;max-width:100%;height:34px}.channel-file-item{width:min(100%,500px)}.channel-workspace .im-composer{position:relative}.channel-workspace .im-compose-row{width:100%;border-radius:12px;overflow:hidden;align-items:stretch;min-height:46px}.channel-workspace .im-compose-row textarea{font-size:13px;min-height:46px;max-height:130px;padding:13px 12px;line-height:1.5;margin:0;border:0;background:transparent;outline:0;box-shadow:none;resize:vertical;flex:1;min-width:0}.channel-workspace .im-send{width:48px;min-width:48px;min-height:46px;border:0;border-radius:0 10px 10px 0;display:grid;place-items:center;background:linear-gradient(120deg,#f5d58b,#ebc171);color:#173137;margin:0;box-shadow:inset 1px 0 #fff4;padding:11px}.channel-workspace .im-compose-row .im-tool{height:auto;align-self:stretch;margin:0;min-height:46px;background:none;border:0;box-shadow:none;color:var(--muted);border-radius:0}.channel-workspace .im-compose-error{color:var(--danger,#e38d88);font-size:11px;margin:8px 0 0}.channel-workspace .im-compose-error:empty{display:none}.channel-more{margin:5px 20px 15px;align-self:center;font-size:11px!important;min-height:28px}.channel-more[hidden]{display:none}.channel-list-error{font-size:10px;color:var(--danger,#e38d88);margin:0 18px}.channel-list-error:empty{display:none}.channel-emoji{position:absolute;right:20px;bottom:78px;display:flex;flex-wrap:wrap;gap:4px;max-width:260px;z-index:5;border:1px solid var(--im-line);border-radius:12px;padding:9px;background:var(--panel);box-shadow:0 8px 35px #00151d55}.channel-emoji[hidden]{display:none}.channel-emoji button{border:0;background:none;box-shadow:none;padding:7px;font-size:19px;border-radius:7px}.channel-emoji button:hover{background:var(--soft)}
/* Preserve MAX upload, delivery, binding, and retry controls inside the shared frame. */
.max-layout.channel-workspace{grid-template-columns:clamp(280px,26%,370px) minmax(0,1fr);padding:0;gap:0;max-height:none;background:var(--im-glass);border:1px solid var(--im-line);box-shadow:inset 0 1px #ffffff08;backdrop-filter:blur(25px)}.channel-workspace .max-sidebar{border:0;border-right:1px solid var(--im-line);border-radius:0;padding:0;overflow:hidden;background:none}.channel-workspace .max-main{border:0;border-radius:0;padding:0;background:none;overflow:hidden}.channel-workspace .max-dialog{margin:0 0 5px;border-radius:11px;border:1px solid transparent;padding:12px 10px;background:none}.channel-workspace .max-dialog.selected{border-color:#6db6bc66;background:linear-gradient(115deg,#39bbb91c,#08333d14)}.channel-workspace .max-dialog>b{font-size:10px;background:linear-gradient(120deg,#f6d38a,#e6b760);color:#173238;min-width:18px;padding:3px 5px}.channel-workspace .max-dialog-copy{min-width:0}.channel-workspace .max-header{margin:0;border-bottom:1px solid var(--im-line);background:none;min-height:84px;flex-wrap:nowrap}.channel-workspace .max-header>div{min-width:0;flex:1}.channel-workspace .max-header h2{font-size:17px;margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-workspace .max-header small{font-size:10px;color:var(--muted)}.channel-workspace .max-header>a:not(.im-back){font-size:10px;border:0;box-shadow:none;background:none;color:var(--im-cyan);padding:5px}.channel-workspace .max-empty{flex:1;background:none;padding:25px;font-size:12px;color:var(--muted)}.channel-workspace .max-empty h2{font-size:19px;color:var(--text)}.channel-workspace .max-empty svg{width:42px;height:42px}.channel-workspace .max-stream{padding:24px;display:block;min-height:0;flex:1;overflow:auto}.channel-workspace #max-messages{display:flex;flex-direction:column;gap:16px}.channel-workspace .max-message{margin:0;display:flex;max-width:84%;width:auto;align-self:flex-start;padding:0;gap:0}.channel-workspace .max-message.outgoing{align-self:flex-end}.channel-workspace .max-message .max-bubble{width:auto;margin:0;padding:12px 15px 9px;border:1px solid var(--im-line);border-radius:12px 12px 12px 3px;background:linear-gradient(125deg,#86bbc40b,#06343c0b);box-shadow:inset 0 1px #ffffff06;min-width:110px}.channel-workspace .max-message.outgoing .max-bubble{border-color:#2e8c8e60;border-radius:12px 12px 3px 12px;background:linear-gradient(130deg,#149f951a,#07545d16)}.channel-workspace .max-body{font-size:13px;line-height:1.6}.channel-workspace .max-bubble footer{font-size:9px;margin-top:8px;display:flex;align-items:center;justify-content:flex-end;gap:8px;line-height:1.5;color:var(--muted)}.channel-workspace .max-compose{padding:12px 16px 16px;margin:0;position:relative;border:0;border-top:1px solid var(--im-line);background:linear-gradient(130deg,#8dc6d207,#00242e0d)}.channel-workspace .max-compose-row{padding:0;gap:0}.channel-workspace .max-compose-row label{display:grid;place-items:center;width:39px;min-width:39px;padding:9px;cursor:pointer}.channel-workspace .max-compose-row .im-send{width:48px;min-width:48px}.channel-workspace .max-compose>small{font-size:9px;margin-top:6px;color:var(--muted)}.channel-workspace .max-binding{margin:0;border:0;border-bottom:1px solid var(--im-line);padding:10px 20px;font-size:10px;background:#3a8c9910}.channel-workspace .max-binding summary{font-size:10px;color:var(--muted)}.channel-workspace .max-binding form{display:flex;gap:8px;margin:10px 0}.channel-workspace .max-binding input{font-size:11px}.channel-workspace .max-binding button{font-size:11px}.channel-workspace .max-error{margin:0;padding:0 20px;font-size:11px}.channel-workspace .max-error:empty{display:none}.channel-workspace .max-file{border:1px solid var(--im-line);background:#4ea1ac0b;border-radius:9px;font-size:11px}.channel-workspace .max-file small{font-size:9px}.channel-workspace .max-file svg{width:18px;height:18px}
@media(min-width:2200px){.channel-workspace,.max-layout.channel-workspace{grid-template-columns:370px minmax(0,1fr)}}
@media(max-width:1150px){.channel-workspace,.max-layout.channel-workspace{grid-template-columns:285px minmax(0,1fr)}}
@media(max-width:760px){.channel-workspace,.max-layout.channel-workspace{grid-template-columns:1fr;height:calc(100dvh - 155px);min-height:380px}.channel-workspace:not(.has-chat)>.im-chat{display:none}.channel-workspace.has-chat>.im-sidebar{display:none}.channel-workspace .im-chat-header{padding:12px;min-height:72px}.channel-workspace .im-chat-identity strong{font-size:14px}.channel-workspace .im-chat-identity small{max-width:36ch;font-size:9px}.channel-workspace .im-stream{padding:16px 12px}.channel-workspace .im-message,.channel-workspace .max-message{max-width:96%}.channel-workspace .im-bubble,.channel-workspace .max-bubble{padding:10px 12px}.channel-workspace .im-message-text,.channel-workspace .max-body{font-size:12px}.channel-workspace .max-header>div{max-width:48vw}.channel-workspace .max-header>a:not(.im-back){max-width:90px;white-space:normal;line-height:1.6}}
#main .comm-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}#main .comm-tabs::-webkit-scrollbar{display:none}#main .comm-tabs>a{flex:none;white-space:nowrap}
#main .im-workspace{height:var(--message-workspace-height,calc(100dvh - 192px));min-height:0;max-height:none}

/* Compact inbox headers and the in-chat vacancy view. */
[data-channel-host=avito]>.im-sidebar>.im-list-search{margin-top:16px;margin-bottom:9px;min-height:36px}
[data-channel-host=avito]>.im-sidebar>.im-list-search input{padding:8px 0;min-height:34px}
[data-channel-host=avito] .im-conversation{min-height:72px}
[data-im-host]>.im-sidebar>header{padding:14px 17px 9px;gap:7px}
[data-im-host]>.im-sidebar>header>.im-chat-search{flex:1;margin:0;min-width:0;min-height:36px;padding:5px 10px}
[data-im-host]>.im-sidebar>header>.im-chat-search input{min-height:24px;padding:0;font-size:12px}
.channel-workspace .im-composer[hidden],.channel-workspace .im-readonly[hidden]{display:none}
.channel-vacancy{width:100%;max-width:none;min-width:0;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.channel-vacancy>header{display:flex;gap:13px;align-items:center;margin-bottom:18px}
.channel-vacancy>header>svg{width:28px;height:28px;flex:none;color:var(--im-gold)}
.channel-vacancy header small{font-size:10px;color:var(--muted)}
.channel-vacancy h3{font-size:19px;line-height:1.5;margin:3px 0 0}
.channel-vacancy-pay{display:block;color:var(--im-gold);font-size:20px;margin-bottom:9px}
.channel-vacancy-address{font-size:12px;color:var(--muted);line-height:1.6}
.channel-vacancy dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:20px 0}
.channel-vacancy dl>div{padding:10px 12px;border:1px solid var(--im-line);border-radius:10px;background:#6ca6b006}
.channel-vacancy dt{font-size:10px;color:var(--muted);margin-bottom:5px}.channel-vacancy dd{margin:0;font-size:12px}
.channel-vacancy-description{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;border-top:1px solid var(--im-line);padding-top:18px;margin-top:18px}
@media(max-width:760px){.channel-vacancy{padding:0}.channel-vacancy h3{font-size:16px}}

/* Candidate information stays inside the conversation's glass frame. */
.channel-candidate-info{width:100%;min-width:0;overflow-wrap:anywhere;padding:0 2px 20px}
.channel-candidate-info>header{display:flex;align-items:center;gap:14px;margin:0 0 24px}
.channel-candidate-info>header small,.channel-candidate-contacts small{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}
.channel-candidate-info h3{font-size:19px;margin:0;line-height:1.5}
.channel-candidate-info h4{font-size:13px;color:var(--text);margin:24px 0 12px}
.channel-candidate-contacts,.channel-candidate-info dl{display:grid;gap:12px;margin:0}.channel-candidate-contacts{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),360px))}.channel-candidate-info dl{grid-template-columns:repeat(3,minmax(0,1fr))}
.channel-candidate-contacts>div,.channel-candidate-info dl>div{padding:13px 15px;border:1px solid var(--im-line);border-radius:12px;background:linear-gradient(125deg,#76b6c00c,#1c7f8606);box-shadow:inset 0 1px #ffffff08}
.channel-candidate-contacts a,.channel-candidate-resume{color:var(--im-cyan);font-size:13px;text-decoration:none}
.channel-candidate-contacts a:hover,.channel-candidate-resume:hover{text-decoration:underline}
.channel-candidate-info dt{color:var(--muted);font-size:11px;margin-bottom:7px}
.channel-candidate-info dd{margin:0;font-size:13px;line-height:1.7;white-space:pre-wrap}
.channel-candidate-info .im-empty{padding:8px 0;margin:0;text-align:left;font-size:12px;color:var(--muted)}
.channel-candidate-resume{display:inline-block;margin-top:18px}
.channel-candidate-error{font-size:12px;color:var(--danger,#e38d88)}
@media(max-width:760px){.channel-workspace .im-chat-tabs{gap:20px;padding:0 14px}.channel-candidate-info h3{font-size:16px}}

@media(max-width:1200px){.channel-candidate-info dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.channel-candidate-info dl{grid-template-columns:minmax(0,1fr)}}

/* Direct status choices and one audio call action in the Avito chat header. */
[data-channel-host=avito] .channel-chat{container:avito-chat / inline-size}
[data-channel-host=avito] .channel-chat-header{display:grid;grid-template-columns:minmax(185px,320px) minmax(0,1fr) 40px;align-items:center;gap:20px;min-height:104px;padding:16px 20px}
[data-channel-host=avito] .channel-chat-header>.im-back{display:none}
[data-channel-host=avito] .channel-chat-header .im-chat-identity{min-width:0;max-width:none;gap:12px}
[data-channel-host=avito] .channel-chat-header .im-chat-identity>span{min-width:0}
[data-channel-host=avito] .channel-chat-header .im-chat-identity strong{font-size:16px}
[data-channel-host=avito] .channel-chat-header .im-chat-identity small{white-space:normal;overflow-wrap:anywhere;max-width:40ch;line-height:1.5;font-size:10px}
.channel-status-host{min-width:0;width:100%;margin:0;padding:0}
.channel-candidate-status{position:relative;min-width:0;padding-bottom:12px}
.channel-status-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:4px;align-items:start}
.channel-status-step{--status-color:#91a5ad;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;min-width:0;min-height:58px;padding:4px 2px;margin:0;border:0;border-radius:8px;background:none;color:var(--muted);box-shadow:none;cursor:pointer}
.channel-status-step[data-status-tone=new]{--status-color:#3cdbb2}.channel-status-step[data-status-tone=process]{--status-color:#5ab8f3}.channel-status-step[data-status-tone=thinking]{--status-color:#b29bf0}.channel-status-step[data-status-tone=callback]{--status-color:#edc66e}.channel-status-step[data-status-tone=unanswered]{--status-color:#f0a16b}.channel-status-step[data-status-tone=working]{--status-color:#88cd7a}.channel-status-step[data-status-tone=paused]{--status-color:#9fadb9}.channel-status-step[data-status-tone=declined]{--status-color:#eb858d}.channel-status-step[data-status-tone=contacted]{--status-color:#5ac8d5}.channel-status-step[data-status-tone=interview]{--status-color:#cf97d6}
.channel-status-light{display:block;flex:none;width:23px;height:23px;box-sizing:border-box;border:2px solid color-mix(in srgb,var(--status-color) 42%,var(--border));border-radius:50%;background:color-mix(in srgb,var(--status-color) 5%,transparent);box-shadow:inset 0 0 5px color-mix(in srgb,var(--status-color) 10%,transparent);transition:background .16s,box-shadow .16s,border-color .16s}
.channel-status-title{font-size:10px;font-weight:500;line-height:1.4;text-align:center;overflow-wrap:anywhere}
.channel-status-step[aria-pressed=true]{color:var(--text)}
.channel-status-step[aria-pressed=true] .channel-status-title{font-weight:650}
.channel-status-step[aria-pressed=true] .channel-status-light{border-color:color-mix(in srgb,var(--status-color) 70%,white);background:var(--status-color);box-shadow:0 0 6px color-mix(in srgb,var(--status-color) 70%,transparent),0 0 18px color-mix(in srgb,var(--status-color) 34%,transparent),inset 0 1px 3px #ffffff73}
.channel-status-step:hover:not(:disabled){background:color-mix(in srgb,var(--status-color) 7%,transparent);color:var(--text)}
.channel-status-step:focus-visible{outline:2px solid var(--status-color);outline-offset:2px}
.channel-status-step:disabled{cursor:default;opacity:1}
.channel-candidate-status>small{position:absolute;bottom:-2px;right:0;display:block;font-size:9px;line-height:1.4;color:var(--muted)}
.channel-candidate-status>small.is-error{position:static;padding-top:5px;color:var(--danger,#e38d88)}
.channel-call-host{justify-self:end;align-self:center}
.channel-chat-header .channel-candidate-call{display:grid;place-items:center;width:40px;height:40px;padding:9px;border:1px solid var(--im-line);border-radius:11px;background:linear-gradient(145deg,#65c8c014,#2d777b06);color:var(--text);box-shadow:inset 0 1px #ffffff0c}
.channel-chat-header .channel-candidate-call svg{width:20px;height:20px}
.channel-chat-header .channel-candidate-call:hover:not(:disabled){border-color:var(--accent);color:var(--accent-ink,var(--accent))}
.channel-chat-header .channel-candidate-call:disabled{opacity:.4;cursor:default}
@container avito-chat (max-width:1050px){[data-channel-host=avito] .channel-chat-header{grid-template-columns:minmax(0,1fr) 40px;gap:12px;min-height:0}.channel-status-host{grid-column:1/-1;grid-row:2}.channel-call-host{grid-column:2;grid-row:1}.channel-status-options{grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:6px}}
@media(max-width:760px){[data-channel-host=avito] .channel-chat-header{grid-template-columns:32px minmax(0,1fr) 40px;padding:12px;gap:10px}[data-channel-host=avito] .channel-chat-header>.im-back{display:inline-grid;grid-column:1;grid-row:1}[data-channel-host=avito] .channel-chat-header .im-chat-identity{grid-column:2;grid-row:1}[data-channel-host=avito] .channel-call-host{grid-column:3;grid-row:1}.channel-status-options{grid-template-columns:repeat(auto-fit,minmax(64px,1fr))}.channel-status-title{font-size:9px}.channel-status-light{width:20px;height:20px}}
@container avito-chat (max-width:600px){.channel-status-options{grid-template-columns:repeat(5,minmax(0,1fr))}}
@container avito-chat (max-width:420px){.channel-status-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
