.communications{font-size:12px}.communications h2{font-size:18px;margin:0}.communications h3{font-size:14px}.comm-logo{background:#231f20;border-radius:5px;padding:4px;width:58px;max-height:42px;object-fit:contain}.communications fieldset{border:0;padding:0;margin:0;min-width:0}.communications label{display:block;font-size:12px}.communications input:not([type=checkbox]),.communications textarea,.communications select{display:block;width:100%;box-sizing:border-box;font:inherit;min-height:34px;margin:4px 0 8px;padding:7px 8px;border:1px solid #ccc;border-radius:6px;background:#fff;color:#231f20}.communications textarea{resize:vertical;line-height:1.5}.comm-search-row{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:8px 0}.comm-search-row>label{flex:1;min-width:150px}.comm-search-row input,.comm-search-row select{margin-bottom:0!important}.comm-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.comm-filter-grid[hidden]{display:none}.comm-recipient-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 12px;margin:10px 0}.comm-person{display:flex!important;align-items:start;gap:7px;padding:7px 0;border-bottom:1px solid #e7e7e2;min-width:0}.comm-person input{margin:3px 0 0;accent-color:#ce007f;flex:none}.comm-person span{min-width:0}.comm-person strong,.comm-person small{display:block;overflow-wrap:anywhere}.comm-person small{font-size:11px;color:#666;margin-top:3px}.comm-warning{padding:10px;border-left:3px solid #b9982d;background:#fffcf3}.comm-review{border-top:3px solid #ce007f;margin-top:12px}.comm-review>button{margin-top:12px}.comm-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:12px 0}.comm-history{display:grid;gap:5px}.comm-history>button{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:10px;padding:10px;background:white;color:#231f20;border:1px solid #ddd;border-radius:6px;width:100%;font:inherit}.comm-history strong,.comm-history small{display:block}.comm-history small{color:#666;margin-top:4px}.comm-receipts>div{display:grid;grid-template-columns:1fr auto 180px;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #eee}.comm-badge{display:inline-block;font-size:11px;font-weight:700;color:#a32935;background:#fff0f2;border:1px solid #f2cbd0;padding:4px 7px;border-radius:5px;white-space:nowrap}.comm-badge.is-read{color:#226b3d;background:#eef7f0;border-color:#bdd9c4}.comm-inbox-button{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:5px;border:1px solid #888;background:transparent;color:inherit;border-radius:5px}.comm-inbox-button svg{width:19px;height:19px}.comm-inbox-button b{position:absolute;top:-6px;right:-6px;border-radius:20px;background:#ce007f;color:white;padding:2px 4px;font-size:10px;line-height:1.2}.comm-dialog{box-sizing:border-box;border:1px solid #ccc;border-radius:8px;padding:0;width:min(800px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:85vh;color:#231f20;background:#fff;box-shadow:0 12px 50px #0004;font:13px/1.5 Arial,sans-serif}.comm-dialog::backdrop{background:#231f2080}.comm-dialog-heading,.comm-dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;border-bottom:1px solid #ddd;background:white;position:sticky;top:0;z-index:1}.comm-dialog-heading h2{font-size:18px;margin:0}.comm-dialog-heading button{font-size:24px;min-width:34px;line-height:1}.comm-dialog-actions{position:sticky;bottom:0;top:auto;border-top:1px solid #ddd;border-bottom:0;justify-content:flex-start;flex-wrap:wrap}.comm-dialog-body{padding:12px}.comm-dialog [role=alert],.comm-dialog [role=status]{margin:10px 12px;color:#a32935}.comm-dialog button{min-height:34px;border-radius:5px;cursor:pointer}.comm-dialog h3{font-size:15px}.comm-before-after{display:grid;grid-template-columns:1fr 1fr;gap:10px}.comm-before-after>div{padding:8px;background:#f5f5f2;border:1px solid #ddd;border-radius:6px;min-width:0}.comm-before-after h4{margin:0 0 6px}.comm-change-line{padding:7px 0;border-bottom:1px solid #ddd;overflow-wrap:anywhere}.comm-change-line>strong,.comm-change-line>span,.comm-change-line>small{display:block}.comm-change-line p{white-space:pre-wrap}.comm-dialog button:focus-visible,.communications button:focus-visible{outline:3px solid #ce007f;outline-offset:2px}.comm-version-instructions{font-size:15px;line-height:1.6}.comm-version-status{min-height:1.5em}
@media(max-width:1023px){.comm-recipient-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.comm-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.comm-inbox-button{min-width:30px;height:30px}}
@media(max-width:650px){.communications{font-size:13px}.communications input:not([type=checkbox]),.communications textarea,.communications select{font-size:16px;min-height:40px}.comm-recipient-grid{grid-template-columns:1fr}.comm-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.comm-receipts>div{grid-template-columns:1fr auto}.comm-receipts time{grid-column:1/-1;font-size:12px}.comm-dialog{max-height:88dvh;width:calc(100vw - 16px);max-width:calc(100vw - 16px)}.comm-dialog-actions button{min-height:40px;flex:1}.comm-dialog-actions .task-primary{flex-basis:100%}.comm-before-after{grid-template-columns:1fr}.comm-history>button{align-items:start;flex-wrap:wrap}.comm-dialog-heading h2{font-size:16px}.comm-logo{width:48px}.comm-inbox-button{min-width:28px;width:28px;height:28px;padding:3px}}
/* Shared operational controls, including dialogs rendered outside #app. */
.comm-icon{width:17px;height:17px;flex:none;vertical-align:middle}
.communications button,.comm-personal button,.comm-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 10px;border:1px solid var(--epic-border,#e1d9de);border-radius:var(--epic-radius,7px);background:var(--epic-surface,#fff);color:var(--epic-ink,#231f20);font:inherit;font-size:12px;font-weight:600;line-height:1.35;cursor:pointer}
.communications button:disabled,.comm-personal button:disabled,.comm-dialog button:disabled{opacity:.55;cursor:wait}
.communications button.task-primary,.comm-personal button.task-primary,.comm-dialog button.task-primary{background:var(--epic-pink,#ce007f)!important;border-color:var(--epic-pink,#ce007f)!important;color:#fff!important}
.communications button:hover:not(:disabled),.comm-personal button:hover:not(:disabled),.comm-dialog button:hover:not(:disabled){border-color:var(--epic-pink,#ce007f)}
.communications .panel,.comm-personal .panel{padding:12px;margin:8px 0;border:1px solid var(--epic-border,#e1d9de);border-radius:7px;background:var(--epic-surface,#fff)}
.communications>.sheet-toolbar{margin-bottom:10px;align-items:center}.communications>.sheet-toolbar p{color:var(--epic-muted,#756b70);margin:5px 0}
#app .communications>.media-tabs,#app .my-epic-tabs{position:static;display:flex;flex-wrap:wrap;gap:4px;margin:8px 0 0;padding:0 0 8px;border:0;border-bottom:1px solid var(--epic-border,#e1d9de);background:transparent;box-shadow:none}
#app .communications>.media-tabs button,#app .my-epic-tabs button{display:inline-flex;align-items:center;gap:6px;min-height:34px;margin:0;padding:7px 10px;border:1px solid var(--epic-border,#e1d9de);border-radius:6px;background:#fff;color:var(--epic-ink,#231f20);font-size:12px;line-height:1.3;white-space:nowrap}
#app .communications>.media-tabs button[aria-pressed=true],#app .my-epic-tabs button[aria-pressed=true]{color:#fff!important;background:var(--epic-pink,#ce007f)!important;border-color:var(--epic-pink,#ce007f)!important;box-shadow:none}
.comm-tab-count{border-radius:20px;background:var(--epic-pink,#ce007f);color:white;min-width:17px;padding:1px 4px;font-size:10px}.comm-tab-count[hidden]{display:none}button[aria-pressed=true] .comm-tab-count{background:#fff;color:var(--epic-pink,#ce007f)}
.communications h3,.comm-personal h2{display:flex;align-items:center;gap:6px;font-size:14px;margin:0 0 10px}.communications h3>.comm-icon,.comm-personal h2>.comm-icon{color:var(--epic-pink,#ce007f)}
.comm-filter-summary{display:flex;align-items:center;gap:6px;margin:9px 0 0;color:var(--epic-muted,#756b70);font-size:12px}.comm-filter-summary strong{color:var(--epic-pink,#ce007f);font-size:15px}
.communications .comm-search-row{margin:0}.communications .comm-filter-grid{padding-top:10px}.communications .comm-audience-filters{background:var(--epic-bg,#f5f5f2)}
.comm-compose-actions{display:flex;justify-content:flex-end;margin-top:8px}.comm-editor label{font-weight:600}.comm-editor h3{margin-bottom:12px}
.comm-search-row label>.comm-icon{width:14px;height:14px;margin-right:5px;color:var(--epic-pink,#ce007f)}
.comm-personal{font:12px/1.5 Arial,sans-serif}.comm-personal>.comm-search-row{margin:8px 0;padding:12px;background:var(--epic-bg,#f5f5f2);border:1px solid var(--epic-border,#e1d9de);border-radius:7px}.comm-personal label{font-size:12px}.comm-personal input,.comm-personal select{display:block;width:100%;min-height:34px;margin:4px 0 0;padding:7px 8px;box-sizing:border-box;border:1px solid var(--epic-border,#e1d9de);border-radius:6px;background:#fff;color:var(--epic-ink,#231f20);font:inherit}
.comm-private-note,.comm-history-total{font-size:12px;color:var(--epic-muted,#756b70);margin:6px 0 12px}.comm-unread-summary{font-size:12px;white-space:nowrap}.comm-unread-summary b{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 5px;border-radius:20px;background:var(--epic-pink,#ce007f);color:#fff;box-sizing:border-box}
.comm-dialog .comm-history>button,.comm-personal .comm-history>button{justify-content:flex-start;min-height:60px;text-align:left;padding:10px;gap:10px}.comm-history-copy{flex:1;min-width:0}.comm-history-copy strong{overflow-wrap:anywhere}.comm-history-symbol{display:flex;color:var(--epic-pink,#ce007f);background:var(--epic-pink-soft,#fbe8f3);border-radius:6px;padding:7px;align-self:flex-start}.comm-history>button .comm-badge{margin-left:auto;flex:none}.comm-badge{display:inline-flex;align-items:center;gap:4px}.comm-badge .comm-icon{width:13px;height:13px}
.comm-dialog{font-family:Arial,sans-serif;max-width:calc(100vw - 24px)}.comm-dialog-heading{background:var(--epic-charcoal,#231f20);color:#fff;border-bottom:3px solid var(--epic-pink,#ce007f);gap:10px}.comm-dialog-heading h2{flex:1;overflow-wrap:anywhere}.comm-dialog-heading button{background:transparent;color:#fff;border-color:#77616e;padding:7px;width:34px;flex:none}.comm-dialog-title-icon{display:flex;color:#ffb4df}.comm-dialog-actions{background:var(--epic-bg,#f5f5f2);padding:12px}.comm-dialog-actions button{font-weight:700}.comm-read-hint{padding:10px;border-left:3px solid var(--epic-pink,#ce007f);background:var(--epic-pink-soft,#fbe8f3);font-size:12px}.comm-empty{margin:12px 0;padding:14px;background:var(--epic-bg,#f5f5f2);border-radius:6px}
.comm-sent-dialog{width:min(420px,calc(100vw - 24px))}.comm-sent-body{text-align:center;padding:24px 16px 18px}.comm-sent-body h2{font-size:20px;margin:12px 0 8px}.comm-sent-body p{margin:0}.comm-sent-mark{display:inline-flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:50%;background:var(--epic-pink-soft,#fbe8f3);color:var(--epic-pink,#ce007f)}.comm-sent-mark .comm-icon{width:28px;height:28px}.comm-sent-dialog .comm-dialog-actions{justify-content:center}.comm-sent-dialog .task-primary{min-width:110px}
.comm-badge-help{margin-top:12px;border-top:1px solid var(--epic-border,#e1d9de);padding-top:10px;font-size:12px}.comm-badge-help summary{cursor:pointer;color:var(--epic-muted,#756b70)}.comm-badge-help summary>.comm-icon{width:14px;height:14px;margin-right:5px}
.comm-personal button:focus-visible,.comm-personal input:focus-visible,.comm-personal select:focus-visible{outline:3px solid var(--epic-pink,#ce007f);outline-offset:2px}
@media(max-width:650px){.communications button,.comm-personal button,.comm-dialog button,#app .my-epic-tabs button,#app .communications>.media-tabs button{min-height:40px}.comm-personal input,.comm-personal select{font-size:16px;min-height:40px}.comm-personal .comm-search-row>label{min-width:0;flex-basis:calc(50% - 8px)}.comm-personal .comm-search-row>label:first-child{flex-basis:100%}.comm-personal .sheet-toolbar{flex-wrap:wrap;gap:6px}.comm-history-copy{flex-basis:calc(100% - 52px)}.comm-dialog .comm-history>button,.comm-personal .comm-history>button{gap:8px;flex-wrap:wrap}.comm-history>button .comm-badge{margin-left:40px}.comm-compose-actions button{width:100%}.comm-dialog-actions button{font-size:12px}.comm-dialog-heading{padding:10px}.communications .panel,.comm-personal .panel{padding:10px}.comm-personal>.comm-search-row{padding:10px}}

.communications .comm-history-filters{margin:8px 0;padding:10px;border:1px solid var(--epic-border,#e1d9de);border-radius:7px;background:var(--epic-bg,#f5f5f2)}
.communications .comm-history>button{justify-content:space-between;text-align:left}.communications .comm-history>button>div{flex:1;min-width:0}

/* Previous and current assignment values retain distinct, accessible status colours. */
/* Colour only the actual removed/added values, never the unchanged context. */
.comm-before-after>.comm-change-before,.comm-before-after>.comm-change-after{background:#fff;border-color:#ddd;color:#231f20}
.comm-change-single{grid-template-columns:1fr}
.comm-diff-removed{color:#a32935;background:#fff1f2}
.comm-diff-added{color:#226b3d;background:#edf7f0}
.comm-change-line.comm-diff-removed,.comm-change-line.comm-diff-added{padding:8px;border-radius:4px}
.comm-change-line>strong>span{display:inline}
