#work-dialog.communications-dialog{width:min(1420px,calc(100vw - 36px));max-width:1420px;height:min(930px,calc(100dvh - 34px));max-height:calc(100dvh - 34px);display:flex;flex-direction:column;padding:0;overflow:hidden;border:1px solid #d1c5b4;border-radius:21px;background:#f5efe3;color:#182a39;box-shadow:0 26px 72px #17212b8c}
#work-dialog.communications-dialog:not([open]){display:none}
#work-dialog.communications-dialog::backdrop{background:#13212b88;backdrop-filter:blur(6px)}
#work-dialog.communications-dialog>.dialog-head{flex:none;min-height:0;padding:21px 30px 0;background:#f5efe3}
#work-dialog.communications-dialog>.dialog-head h2{margin:0;font-size:1.6rem;color:#15283c}
#work-dialog.communications-dialog>.dialog-head .close{top:16px;right:19px;z-index:5;border:1px solid #d9cdbb;border-radius:11px;background:#fffaf1;color:#263542;width:39px;height:39px}
#work-dialog.communications-dialog #work-content{display:flex;flex:1;min-height:0;padding:0;overflow:hidden}
.comm-shell{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;padding:0 20px 18px}
.comm-intro{flex:none;margin:0 10px 16px;color:#5c6570;font-size:.87rem}
.comm-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:none;margin:0 0 8px;border:1px solid #e1d8c9;border-radius:10px;background:#fffaf3;overflow:auto hidden;scrollbar-width:thin}
.comm-tabs button{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;padding:13px 8px;border:0;border-right:1px solid #ece5d9;border-radius:0;background:transparent;color:#263549;font-size:.9rem;font-weight:600;white-space:nowrap}
.comm-tabs button:last-child{border-right:0}.comm-tabs button.active{background:#e5f0e9;color:#0d5f42;box-shadow:inset 0 -3px #168160}.comm-tabs button b{min-width:22px;padding:3px 6px;border-radius:20px;background:#087956;color:white;font-size:.74rem}
.comm-grid{display:grid;grid-template-columns:minmax(215px,27%) minmax(280px,37%) minmax(290px,36%);flex:1;min-height:0;border:1px solid #e0d7ca;border-radius:10px;background:#fffaf3;overflow:hidden}
.comm-sidebar,.comm-list,.comm-detail{min-width:0;min-height:0;overflow-y:auto;scrollbar-width:thin}.comm-sidebar{padding:12px;background:#faf5ea;border-right:1px solid #e4dacb}.comm-list{display:flex;flex-direction:column;border-right:1px solid #e4dacb}.comm-detail{background:#fffcf7}
.comm-new{width:100%;margin:0 0 13px;padding:11px 12px!important;background:#087954!important;color:white!important;border-radius:8px;font-weight:700}
.comm-folder-list{display:grid;gap:2px}.comm-folder-list button,.comm-organizations button{width:100%;text-align:left;border:0;border-radius:7px;background:transparent;color:#334456;padding:8px 11px;font-size:.84rem}.comm-folder-list button.active,.comm-organizations button.active{background:#e2eee6;color:#066342;border-left:3px solid #087956;font-weight:700}
.comm-organizations{margin:15px 4px;border-top:1px solid #e4dacb;padding-top:12px}.comm-organizations summary{cursor:pointer;font-size:.85rem;font-weight:700;color:#20354a;margin-bottom:5px}.comm-organizations button{padding-left:16px}.comm-retention{margin:20px 4px 3px;border-top:1px solid #e4dacb;padding:12px 5px;color:#53616c;font-size:.78rem}.comm-retention strong{color:#173749}.comm-retention p{line-height:1.45;margin:6px 0}
.comm-organization-group{margin:8px 0 0 8px;padding-left:8px;border-left:1px solid #ddcfbb}.comm-organization-group summary{font-size:.8rem}.comm-organization-group button{padding:7px 8px}.comm-organization-group small{color:#7b817d}.comm-group-row{display:flex;align-items:center;justify-content:space-between;gap:5px;padding-left:8px;font-size:.8rem}.comm-group-row button{width:auto;flex:none;border:1px solid #cfddcf;background:#eef6ee;padding:5px 8px}.comm-recipient-group{border-bottom:1px solid #eee5da;padding:3px 0}.comm-recipient-group summary{padding:5px 7px;color:#28523c;font-size:.78rem;cursor:pointer;font-weight:700}.comm-recipient-group label{margin-left:8px}
.comm-list-toolbar{display:flex;gap:7px;flex:none;padding:10px;border-bottom:1px solid #e4dacb}.comm-list-toolbar input{min-width:0;flex:1}.comm-list-toolbar input,.comm-list-toolbar select{border:1px solid #d5caba;border-radius:8px;background:#fffefa;padding:9px;font-size:.8rem;color:#253746}.comm-list-toolbar select{max-width:135px}
.comm-list-rows{flex:1;min-height:0;overflow:auto;padding:5px}.comm-row{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;padding:11px;border:1px solid #e8dfd2;border-radius:9px;margin:0 0 6px;background:#fffaf2;color:#2b3b4e}.comm-row.active{background:#e3f0e8;border-color:#a4cebb}.comm-row.unread{border-left:4px solid #087956}.comm-row-top{display:flex;justify-content:space-between;gap:8px}.comm-row-top strong{font-size:.88rem}.comm-row small,.comm-row>span:not(.comm-row-top){font-size:.74rem;color:#62707d;line-height:1.45}.comm-row-top small{flex:none}
.comm-detail-scroll{padding:15px;min-height:100%;overflow:auto}.comm-detail-scroll h3{margin:2px 0 11px;font-size:1.02rem}.comm-detail-scroll h4{margin:14px 0 7px}.comm-detail-scroll>p{line-height:1.5}.comm-meta{font-size:.79rem;color:#52616e}.comm-note{padding:10px;border-radius:8px;background:#e8f2ec;color:#1e6046;font-size:.76rem;line-height:1.4}
.comm-message{padding:12px;border:1px solid #e4dacc;border-radius:9px;background:#fffaf4;margin:0 0 7px}.comm-message strong{display:inline-block;margin-right:8px}.comm-message small{color:#6d7780;font-size:.72rem}.comm-message p{white-space:pre-wrap;line-height:1.5}.comm-attachment{display:block;margin:5px 0;padding:9px;border:1px solid #e4dacc;border-radius:8px;color:#165c73;text-decoration:none}.comm-actions{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.comm-actions button{border:1px solid #c9bca8;border-radius:8px;background:#fffaf3;color:#273b4f;padding:8px 10px;font-size:.8rem}.comm-actions button.primary{background:#087956;color:#fff;border-color:#087956}
.comm-detail-scroll form{display:grid;gap:10px}.comm-detail-scroll form label{display:grid;gap:4px;font-size:.79rem;font-weight:600}.comm-detail-scroll form input,.comm-detail-scroll form select,.comm-detail-scroll form textarea{max-width:100%;min-width:0;padding:9px;border:1px solid #cfc2af;border-radius:8px;background:#fffefa;color:#263746;font:inherit}.comm-recipient-list{max-height:180px;overflow:auto;border:1px solid #e4dacc;border-radius:8px;padding:4px}.comm-recipient-list label{display:flex!important;align-items:center;gap:7px;padding:6px}.comm-recipient-list label[hidden]{display:none!important}.comm-recipient-list input{width:auto!important}.comm-empty{padding:26px;color:#67737c;text-align:center}.comm-detail-empty{padding-top:80px}.comm-error{margin:4px 0;color:#9b2834;font-size:.8rem}.comm-mobile-back{display:none!important}
@media(max-width:1030px){.comm-grid{grid-template-columns:180px minmax(260px,1fr) minmax(300px,1.15fr)}.comm-tabs button{gap:5px;font-size:.79rem}.comm-row-top{display:block}}
@media(max-width:760px){#work-dialog.communications-dialog{width:calc(100vw - 10px);height:calc(100dvh - 10px);max-height:calc(100dvh - 10px);border-radius:12px}#work-dialog.communications-dialog>.dialog-head{padding:12px 45px 0 13px}#work-dialog.communications-dialog>.dialog-head h2{font-size:1.15rem}#work-dialog.communications-dialog>.dialog-head .close{top:8px;right:8px}.comm-shell{padding:0 7px 7px}.comm-intro{margin:2px 4px 8px;font-size:.7rem}.comm-tabs{display:flex;overflow-x:auto}.comm-tabs button{flex:none;padding:9px 12px}.comm-grid{display:block;position:relative}.comm-sidebar,.comm-list,.comm-detail{height:100%}.comm-shell[data-mobile="folders"] .comm-list,.comm-shell[data-mobile="folders"] .comm-detail,.comm-shell[data-mobile="list"] .comm-sidebar,.comm-shell[data-mobile="list"] .comm-detail,.comm-shell[data-mobile="detail"] .comm-sidebar,.comm-shell[data-mobile="detail"] .comm-list{display:none}.comm-mobile-back{display:block!important;margin:0 0 8px;border:0;background:none;color:#13694d;padding:7px}.comm-list-toolbar{position:sticky;top:0;background:#fffcf7;z-index:2}.comm-detail-scroll{padding:12px}.comm-list-rows{overflow:visible}}
.comm-trash-folder{display:flex;position:relative;align-items:center;gap:2px}.comm-trash-folder>[data-folder]{flex:1}.comm-trash-folder>b,.comm-trash-folder button b{float:right;border-radius:12px;background:#e8ddd0;padding:1px 6px;font-size:.72rem}.comm-trash-folder>[data-trash-menu]{width:33px;flex:none;text-align:center;font-size:1.2rem;padding:4px}.comm-trash-menu{position:absolute;z-index:10;left:10px;top:100%;min-width:180px;padding:4px;border:1px solid #cdbc9f;border-radius:9px;background:#fffdf8;box-shadow:0 9px 23px #0003}.comm-trash-menu button{display:block;width:100%;padding:9px;text-align:left;border:0;background:transparent;color:#263549;cursor:pointer}.comm-trash-menu button:hover{background:#e7efe7}.comm-trash-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 11px;border-bottom:1px solid #e4dacb}.comm-trash-toolbar button{border:1px solid #c26763;border-radius:7px;background:#fff9f7;color:#a33831;padding:7px 10px}.comm-row.retained{border:2px solid #73864e}.comm-row.retained.active{border-color:#586f32}.comm-lifecycle{padding:8px 10px;border-left:3px solid #8b9b60;border-radius:5px;background:#f7f7ee;color:#46533c;font-size:.78rem}.comm-detail-scroll.comm-retained{box-shadow:inset 0 0 0 2px #879b68}.comm-actions button.danger{border-color:#c36e67;color:#a33831}
.comm-retention-settings{margin:5px 4px 14px;padding:8px;border:1px solid #d9cbb7;border-radius:8px;background:#fffaf2;color:#334456;font-size:.78rem}.comm-retention-settings>summary{cursor:pointer;font-weight:700}.comm-retention-settings>p{line-height:1.4}.comm-retention-settings form{border-top:1px solid #e4d7c5;padding:9px 0}.comm-retention-settings form strong{display:block}.comm-retention-settings label{display:block;margin:6px 0;color:#334456}.comm-retention-settings input,.comm-retention-settings select,.comm-retention-settings textarea{width:100%;min-width:0;padding:6px;border:1px solid #d2c2ab;border-radius:5px;background:#fff;color:#263549;font-size:.78rem}.comm-retention-settings .comm-retention-check{display:flex;align-items:center;gap:6px}.comm-retention-settings .comm-retention-check input{width:auto}.comm-retention-settings button{padding:6px 9px;border:1px solid #b9b6a0;border-radius:6px;background:#f4f2e8;color:#25435b}

/* Three-column message center: stronger hierarchy without changing its actions. */
.comm-tabs button>span[aria-hidden]{font-size:1.25rem;line-height:1;color:#27425b}
.comm-tabs button.active>span[aria-hidden]{color:#087956}
.comm-folder-list button[data-folder]:not([data-folder="trash"])::before{content:"✉";display:inline-block;width:1.7em;color:#41617a}
.comm-folder-list button[data-folder="drafts"]::before{content:"✎"}
.comm-folder-list button[data-folder="sent"]::before{content:"➤"}
.comm-folder-list button[data-folder="starred"]::before{content:"☆"}
.comm-folder-list button[data-folder="archived"]::before{content:"▣"}
.comm-folder-list button[data-folder="inbox"]::before{content:"▣"}
.comm-folder-list button[data-folder="open"]::before{content:"☑"}
.comm-folder-list button[data-folder="trash"]::before{content:"♲";margin-right:.45em;color:#855951}
.comm-row{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:10px;padding:12px 10px;line-height:1.35}
.comm-row-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e3e8e9;color:#24455b;font-size:.72rem;font-weight:750;letter-spacing:.02em}
.comm-row-main{display:grid;min-width:0;gap:3px}
.comm-row-sender{display:flex;align-items:baseline;justify-content:space-between;gap:6px;font-size:.81rem}
.comm-row-sender strong,.comm-row-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.comm-row-sender time{flex:none;color:#7a8186;font-size:.68rem;font-weight:400}
.comm-row-title{font-size:.84rem;color:#1f3446}
.comm-row small.comm-row-subtitle,.comm-row small.comm-row-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#60717a;font-size:.74rem}
.comm-row-unread-dot{position:absolute;left:4px;top:27px;width:6px;height:6px;border-radius:50%;background:#168e62}
.comm-row-official.unread{background:#edf7f1;border-color:#b8d8ca}
.comm-row-official .comm-row-avatar{background:#d7eadf;color:#08674c}
.comm-row-chat .comm-row-avatar{background:#e2e9fa;color:#365492}
.comm-row-task .comm-row-avatar{background:#f6e9d0;color:#83572c}
.comm-row-proposal .comm-row-avatar{background:#eee2f8;color:#65458e}
.comm-row-system .comm-row-avatar{background:#e8e4de;color:#5f6065}
.comm-row.active{box-shadow:inset 3px 0 #108267}
.comm-row.retained{border-width:2px}
@media(max-width:760px){.comm-row-sender{flex-wrap:wrap}.comm-row-sender time{font-size:.64rem}}

.comm-read-status svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.comm-row .comm-read-status[data-read-state="unread"]{background:color-mix(in srgb,var(--accent,#087956) 18%,var(--surface,#fffaf3));color:var(--accent,#087956)}.comm-row .comm-read-status[data-read-state="read"]{background:var(--soft,#e8e4de);color:var(--muted,#60717a)}
