/* This layout is confined to the applicant communication page. */
.communication-page{--mail-line:#e0e5dc;border:1px solid var(--mail-line);border-radius:7px;background:#fff;overflow:hidden;box-shadow:0 2px 8px #25331a05}
.communication-page .communication-toolbar{display:flex;gap:16px;align-items:center;padding:12px 18px;background:#fafbf8;border-bottom:1px solid var(--mail-line)}
.communication-page .communication-toolbar .search-box{max-width:640px;flex:1;min-width:0;background:#fff}
.communication-page .communication-toolbar input{width:100%;min-width:0}
.communication-page .communication-workspace{display:grid;grid-template-columns:160px minmax(240px,.85fr) minmax(350px,1.5fr);gap:0;align-items:stretch;height:calc(100vh - 280px);min-height:520px;max-height:1000px}
.communication-page .communication-folders{padding:18px 10px;background:#f6f8f3;min-width:0;border-right:1px solid var(--mail-line)}
.communication-page .communication-folders>.btn{width:100%;gap:5px;padding:11px 7px;justify-content:center}
.communication-page .communication-folder-label{font-size:10px;letter-spacing:.08em;color:#52647e;margin:28px 10px 12px}
.communication-page .communication-folder{display:flex;align-items:center;gap:8px;width:100%;padding:12px 9px;margin:3px 0;border:0;border-left:3px solid transparent;background:transparent;text-align:left;font:inherit;font-size:13px;cursor:pointer;color:#555;border-radius:3px}
.communication-page .communication-folder .icon{width:17px;height:17px;flex-shrink:0}
.communication-page .communication-folder small{margin-left:auto;font-size:11px}
.communication-page .communication-folder:hover{background:#edf2e7}
.communication-page .communication-folder[aria-pressed="true"]{border-left-color:#83b448;background:#e6efd9;color:#3e5f27;font-weight:700}
.communication-page .communication-folder-hint{font-size:12px;line-height:1.6;color:#52647e;margin:30px 12px}
.communication-page .communication-selector{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--mail-line);border-radius:0}
.communication-page .communication-selector-heading{padding:18px 18px 14px;flex-shrink:0}
.communication-page .communication-selector-heading h2{font-size:21px;margin:0 0 5px;font-weight:700}
.communication-page .communication-selector-heading small{color:#52647e;font-size:12px}
.communication-page .communication-list{max-height:none;overflow-y:auto;flex:1;min-height:0}
.communication-page .communication-application{display:flex;align-items:flex-start;gap:10px;padding:18px 13px;overflow:hidden;border-bottom-color:var(--mail-line)}
.communication-page .communication-application>.avatar{flex-shrink:0;width:32px;height:32px;font-size:11px;margin-top:2px}
.communication-page .communication-item-text{display:grid;gap:5px;min-width:0;flex:1}
.communication-page .communication-item-top{display:flex;align-items:baseline;gap:8px;min-width:0}
.communication-page .communication-item-top strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.communication-page .communication-item-top time{font-size:11px;color:#52647e;margin-left:auto;white-space:nowrap}
.communication-page .communication-subject{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.communication-page .communication-preview{font-size:12px;color:#52647e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.communication-page .communication-item-text>small{font-size:11px;line-height:1.5}
.communication-page .communication-item-footer{display:flex;align-items:center;gap:8px;font-size:10px;color:#52647e}
.communication-page .communication-item-footer .icon{margin-left:auto;width:13px;height:13px}
.communication-page .communication-failed{color:#a45e36}
.communication-page .communication-thread{overflow-y:auto;min-height:0;background:white;border:0;border-radius:0}
.communication-page .communication-person{padding:14px 20px;background:#f5f8f0;gap:12px;flex-wrap:wrap}
.communication-page .communication-person>div{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.communication-page .communication-person>div>.icon{color:#52647e;flex-shrink:0}
.communication-page .communication-person strong{font-size:13px;display:block;overflow-wrap:anywhere}
.communication-page .communication-person small{font-size:12px;display:block;margin-top:3px}
.communication-page .communication-person .btn{font-size:11px;padding:8px 10px;min-height:32px}
.communication-page .communication-mail{padding:0 22px 24px}
.communication-page .communication-reading-subject{font-size:23px;line-height:1.35;margin:25px 0 16px;font-weight:700;overflow-wrap:anywhere}
.communication-page .communication-reading-tools{padding-bottom:18px;border-bottom:1px solid var(--mail-line);margin:0 0 20px;gap:7px}
.communication-page .communication-reading-tools .btn{border:0;padding:7px 9px;min-height:32px;font-size:12px;background:transparent}
.communication-page .communication-reading-tools .btn:hover{background:#f0f5e8}
.communication-page .communication-message{border-bottom:1px solid var(--mail-line);margin:0 0 12px}
.communication-page .communication-message>summary{display:flex;gap:14px;align-items:center;padding:18px 20px;list-style:none;cursor:pointer}
.communication-page .communication-message>summary::-webkit-details-marker{display:none}
.communication-page .communication-message>summary>span:nth-child(2){display:grid;gap:3px;flex:1;min-width:0}
.communication-page .communication-message>summary strong{font-size:13px;overflow-wrap:anywhere}
.communication-page .communication-message>summary>span:nth-child(2)>span{color:#52647e;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.communication-page .communication-message>summary time{font-size:11px;color:#52647e;white-space:nowrap}
.communication-page .communication-message>summary>.icon{width:14px;flex-shrink:0}
.communication-page .communication-message[open]>summary>.icon{transform:rotate(180deg)}
.communication-page .communication-message>.correspondence-message{padding:8px 20px 24px}
@media(max-width:700px){.communication-page .communication-message>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 12px;padding:16px}.communication-page .communication-message>summary>.avatar{grid-row:1/3}.communication-page .communication-message>summary>time{grid-column:2;grid-row:2}.communication-page .communication-message>summary>.icon{grid-column:3;grid-row:1/3}.communication-page .communication-message>.correspondence-message{padding:8px 16px 20px}}
.communication-page .communication-direction{display:grid;place-items:center;width:34px;height:34px;background:#edf3e6;color:#52647e;border-radius:50%;flex-shrink:0}
.communication-page .communication-direction .icon{width:17px;height:17px}
.communication-page .correspondence-message{padding:10px 0 20px;margin:0;border:0;border-radius:0;background:white}
.communication-page .correspondence-message h4{display:none}
.communication-page .correspondence-message header{font-size:12px;color:#52647e;margin-bottom:22px;gap:6px}
.communication-page .correspondence-message header strong{font-weight:400;overflow-wrap:anywhere}
.communication-page .correspondence-message pre{font-size:14px;line-height:1.8;max-height:none;overflow:visible;margin:16px 0 26px;color:#4b5146}
.communication-page .mail-attachments{list-style:none;padding:0;display:flex;gap:8px;flex-wrap:wrap}
.communication-page .mail-attachments li{background:#f8faf5;border:1px solid var(--mail-line);padding:10px 12px;border-radius:4px;font-size:12px;max-width:100%}
.communication-page .mail-attachments a{color:#526d36;text-decoration:none}
.communication-page .mail-compose{padding:0;background:#fff;border:1px solid var(--mail-line);margin:22px 0 0;overflow:hidden}
.communication-page .mail-compose>summary{padding:14px 16px;font-size:14px;background:#f8faf5}
.communication-page .mail-compose .form{padding:16px;margin:0;gap:14px}
.communication-page .mail-compose .form>p:first-child{margin:0;font-size:12px;color:#52647e;overflow-wrap:anywhere}
.communication-page .mail-compose .form>label{font-size:12px;gap:6px}
.communication-page .mail-compose .form>label input,.communication-page .mail-compose .form>label select{font-size:13px;padding:9px 10px}
.communication-page .mail-compose .form>p:not(:first-child){font-size:11px;color:#52647e;line-height:1.5;margin:0}
.communication-page .mail-compose .modal-actions{padding:0;margin:0;justify-content:flex-start;gap:8px;flex-wrap:wrap}
.communication-page .mail-compose .modal-actions .btn{font-size:12px;padding:10px 13px}
.communication-page .communication-signature{border-top:1px solid var(--mail-line);padding-top:12px;color:#52647e;font-size:12px;line-height:1.6;grid-row:auto}
.communication-page .communication-signature p{margin:6px 0}
.communication-page .communication-signature small{font-size:10px}
.communication-page .communication-signature .rich-content{font-size:12px}
.communication-page .communication-empty{padding:24px 0;color:#52647e;font-size:14px;line-height:1.6}
.communication-page .communication-empty h3{font-size:18px;color:#526d36}
.communication-page :is(.communication-folder,summary):focus-visible{outline:2px solid #6c963d;outline-offset:-2px}
.communication-page>.mail-category-confirm{margin:12px}
@media(min-width:1700px){.communication-page .communication-workspace{grid-template-columns:180px minmax(310px,.85fr) minmax(450px,1.6fr)}}
@media(max-width:1100px){.communication-page .communication-workspace{grid-template-columns:minmax(220px,.8fr) minmax(310px,1.3fr);height:calc(100vh - 310px)}.communication-page .communication-folders{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px;border-right:0;border-bottom:1px solid var(--mail-line)}.communication-page .communication-folders>.btn{width:auto}.communication-page .communication-folders nav{display:flex;flex-wrap:wrap;gap:4px}.communication-page .communication-folder{width:auto;padding:9px 8px;margin:0;font-size:12px}.communication-page .communication-folder-label,.communication-page .communication-folder-hint{display:none}.communication-page .communication-workspace{grid-template-rows:auto minmax(0,1fr)}.communication-page .communication-mail{padding:0 16px 20px}.communication-page .communication-item-top{flex-wrap:wrap}.communication-page .communication-reading-subject{font-size:21px}}
@media(max-width:760px){.communication-page .communication-workspace{display:flex;flex-direction:column;height:auto;max-height:none;min-height:0}.communication-page .communication-selector{border-right:0;border-bottom:1px solid var(--mail-line)}.communication-page .communication-list{max-height:310px;flex:auto}.communication-page .communication-thread{overflow:visible}.communication-page .communication-toolbar{padding:10px;gap:8px;flex-wrap:wrap}.communication-page .communication-toolbar .search-box{min-width:190px}.communication-page .communication-toolbar>.btn{font-size:11px;padding:9px}.communication-page .communication-person{padding:12px 16px}.communication-page .communication-folders nav{gap:0}.communication-page .communication-folder{font-size:11px}.communication-page .communication-folder .icon{display:none}}

/* Match the approved mail proposal while leaving the backend shell intact. */
.main-shell>main:has(.communication-page){padding:18px 24px 0}
.main-shell>main:has(.communication-page)>.page-heading{padding-bottom:12px;margin-bottom:14px;border:0}
.main-shell>main:has(.communication-page)>.page-heading .eyebrow{display:none}
.main-shell>main:has(.communication-page)>.page-heading h1{font-size:26px;margin:0 0 5px}
.main-shell>main:has(.communication-page)>.page-heading p{margin:0;font-size:12px}
.communication-page{--mail-line:#e2e6e9;color:#2e3745;font-weight:400;border-radius:4px;box-shadow:none}
.communication-page .communication-toolbar{background:#f6f8fa;padding:11px 16px}
.communication-page .communication-toolbar .search-box{max-width:780px;border-radius:4px}
.communication-page .communication-workspace{grid-template-columns:190px minmax(270px,.9fr) minmax(320px,1.5fr);height:calc(100dvh - 245px);min-height:410px;max-height:none}
.communication-page .communication-folders{background:#f7f9fb;padding:18px 9px}
.communication-page .communication-folders>.btn{font-size:14px;min-height:42px;border-radius:4px;font-weight:700}
.communication-page .communication-folder-label{margin:24px 10px 12px;color:#52647e}
.communication-page .communication-folder{font-size:13px;gap:8px;padding:12px 7px;color:#384250;border-radius:3px;white-space:nowrap}
.communication-page .communication-folder small{border-radius:12px;background:#e8eddc;padding:2px 6px;color:#52647e;line-height:1.2;min-width:20px;text-align:center}
.communication-page .communication-folder[aria-pressed="true"]{color:#314520;background:#eaf1df}
.communication-page .communication-folder-hint{color:#52647e;margin:28px 11px}
.communication-page .communication-selector-heading{padding:20px 18px 16px;background:#fff}
.communication-page .communication-selector-heading h2{font-size:23px;color:#27313f}
.communication-page .communication-selector-heading small{color:#52647e}
.communication-page .communication-application{gap:12px;padding:20px 15px;color:#2e3745}
.communication-page .communication-application.active{background:#edf3e5;border-left-color:#80ad49}
.communication-page .communication-application>.avatar{width:39px;height:39px;font-size:13px}
.communication-page .communication-item-text{gap:6px}
.communication-page .communication-item-top strong{font-size:15px;font-weight:700}
.communication-page .communication-item-top time{color:#52647e;font-size:11px}
.communication-page .communication-subject{font-size:14px;color:#37404d}
.communication-page .communication-preview{font-size:13px;color:#52647e}
.communication-page .communication-item-text>small{font-size:12px;color:#52647e}
.communication-page .communication-item-footer>span:first-child{display:none}
.communication-page .communication-mail{padding:0 24px 24px}
.communication-page .communication-reading-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;position:sticky;top:0;z-index:2;background:#fff;padding:13px 0;margin:0;border-bottom:1px solid var(--mail-line)}
.communication-page .communication-reading-tools .btn{font-size:13px;color:#414c59;gap:7px}
.communication-page .communication-reading-subject{font-size:23px;line-height:1.4;color:#27313f;margin:22px 0 18px}
.communication-page .communication-person{padding:13px;background:#f2f7eb;border:0;border-radius:4px;margin-bottom:20px}
.communication-page .communication-person strong{color:#3c5030;font-size:13px}
.communication-page .communication-person small{color:#52647e;font-size:12px}
.communication-page .communication-person .btn{background:#fff;font-size:11px}
.communication-page .communication-message>summary{gap:14px;padding:18px 20px}
.communication-page .communication-message>summary strong{font-size:14px;color:#37404d}
.communication-page .communication-message>summary>span:nth-child(2)>span{font-size:12px;color:#52647e}
.communication-page .communication-message>summary time{color:#52647e}
.communication-page .communication-direction{width:40px;height:40px;background:#e9f1f4;color:#52647e}
.communication-page .correspondence-message{padding:8px 0 18px}
.communication-page .correspondence-message header{margin:0 0 15px;color:#52647e}
.communication-page .correspondence-message pre{font-size:15px;line-height:1.65;color:#414c59;margin:12px 0 22px}
.communication-page .mail-attachments li{background:#fff;font-size:13px;padding:12px 15px;border-radius:5px}
.communication-page .mail-compose{border-radius:5px;margin-top:18px}
.communication-page .mail-compose>summary{background:#f9fafb;color:#475360;font-size:13px}
.communication-page .mail-compose .form{padding:14px 16px;gap:12px}
.communication-page .communication-compose-options{border:0;padding:0;margin:0;background:transparent;font-size:12px;color:#52647e}
.communication-page .communication-compose-options>summary{cursor:pointer;font-weight:400}
.communication-page .communication-compose-options>label{display:grid;gap:5px;margin-top:12px;color:#5b6572}
.communication-page .mail-compose .rich-canvas{min-height:110px;font-size:14px;color:#414c59}
.communication-page .mail-compose .form>p:not(:first-child):not(.form-error){display:none}
.communication-page .communication-signature{border:0;padding:0;color:#52647e}
.communication-page .communication-signature>small{display:none}
.communication-page .mail-compose .modal-actions{border-top:1px solid var(--mail-line);padding-top:12px}
.communication-page .communication-unassigned-badge{display:inline-flex;align-items:center;justify-self:start;line-height:1.4;background:#fff0dc;color:#9c6d2d;border-radius:4px;padding:3px 7px;font-size:11px}
.communication-page .communication-unassigned-reading{padding-top:0}
.communication-page .communication-unassigned-sender{display:flex;gap:12px;align-items:center;margin:20px 0}
.communication-page .communication-unassigned-sender>span{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere;font-size:14px}
.communication-page .communication-unassigned-sender small{font-size:12px;color:#52647e}
.communication-page .communication-assignment{border:1px solid var(--mail-line);border-radius:5px;background:#fafbf8;padding:18px;margin-top:22px}
.communication-page .communication-assignment h3{font-size:16px;color:#435b31;margin:0 0 7px}
.communication-page .communication-assignment>p{font-size:13px;color:#52647e;margin:0 0 18px}
.communication-page .communication-assignment .form{margin:0;padding:0}
.communication-page .communication-assignment label{font-size:13px}
.communication-page .communication-assignment select{max-width:100%;min-width:0;font-size:13px}
.communication-page .communication-assignment-actions{display:flex;gap:8px;flex-wrap:wrap}
.communication-page .communication-assignment-actions .btn{font-size:12px}
.communication-page .communication-empty{padding:25px}
@media(min-width:1700px){.communication-page .communication-workspace{grid-template-columns:200px minmax(340px,.85fr) minmax(450px,1.65fr)}}
@media(max-width:1150px){.communication-page .communication-workspace{grid-template-columns:260px minmax(300px,1fr);grid-template-rows:auto minmax(0,1fr)}.communication-page .communication-folders{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:10px;border-bottom:1px solid var(--mail-line);border-right:0}.communication-page .communication-folders>.btn{width:auto;flex-shrink:0}.communication-page .communication-folders nav{display:flex;overflow-x:auto;gap:3px}.communication-page .communication-folder{width:auto;padding:10px 8px;font-size:12px}.communication-page .communication-folder-label,.communication-page .communication-folder-hint{display:none}.communication-page .communication-mail{padding:0 18px 22px}}
@media(max-width:760px){.main-shell>main:has(.communication-page){padding:18px 12px 0}.communication-page .communication-workspace{display:flex;height:auto;min-height:0}.communication-page .communication-folders{align-items:start;flex-direction:column;gap:7px}.communication-page .communication-folders nav{max-width:100%;flex-wrap:nowrap}.communication-page .communication-folder .icon{display:block}.communication-page .communication-folder{white-space:nowrap}.communication-page .communication-list{max-height:290px}.communication-page .communication-mail{padding:0 14px 20px}.communication-page .communication-reading-subject{font-size:21px}.communication-page .communication-item-top{flex-wrap:nowrap}.communication-page .communication-person{margin-bottom:12px}.communication-page .communication-thread{overflow:visible}}
@media(max-width:700px){.communication-page .communication-message>summary{padding:16px}}
.communication-page .communication-message{container-type:inline-size}@container(max-width:480px){.communication-page .communication-message>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 12px;padding:16px}.communication-page .communication-message>summary>.avatar{grid-row:1/3}.communication-page .communication-message>summary>time{grid-column:2;grid-row:2}.communication-page .communication-message>summary>.icon{grid-column:3;grid-row:1/3}}
.mail-template-actions-note:empty{display:none}.mail-template-actions-note:not(:empty){padding:16px;margin:12px 0;background:#edf5e8;border:1px solid #c9dbb8;border-radius:5px;line-height:1.5}.mail-template-actions-note .checkbox-label{margin-top:12px}

.communication-page .communication-compose-fields{display:grid;gap:14px;width:100%;min-width:0;margin:0 0 16px;padding:0 0 16px;border-bottom:1px solid var(--mail-line,#dce4ee)}.communication-page .communication-compose-fields>label{display:grid;gap:6px;margin:0;text-align:left}.communication-page .communication-compose-fields :is(input,select){width:100%;min-width:0}
