.customer-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,260px);gap:16px;margin-bottom:24px}.customer-filters label{min-width:0}.customer-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:18px}.customer-card{display:flex;align-items:flex-start;flex-direction:column;text-align:left;gap:10px;min-width:0;width:100%;padding:22px!important;margin:0!important}.customer-card>*{max-width:100%;overflow-wrap:anywhere}.customer-card strong{font-size:18px}.communication-table{border:1px solid var(--line);border-radius:14px;margin:22px 0;overflow:hidden}.communication-row{display:grid;grid-template-columns:minmax(180px,2fr) minmax(140px,1.3fr) minmax(130px,1fr) 110px 96px;align-items:center;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line)}.communication-row:last-child{border-bottom:0}.communication-row>div{display:flex;justify-content:flex-end}.communication-labels{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:var(--bg)}.communication-row>*{min-width:0;overflow-wrap:anywhere}.communication-message{padding:20px 0;border-bottom:1px solid var(--line)}.communication-message:first-child{padding-top:0}.communication-message>div:first-child{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.communication-message details{margin:18px 0}.communication-message summary{text-align:left;cursor:pointer}.communication-message p{overflow-wrap:anywhere}.communication-actions{flex-wrap:wrap;gap:12px}.communication-message .toolbar{gap:12px;margin-top:18px}.customer-card small{color:var(--muted)}
@media(max-width:900px){.communication-labels{display:none}.communication-row{grid-template-columns:minmax(0,1fr) auto;gap:12px}.communication-row>strong{grid-column:1/-1}.communication-row>span:nth-child(3){grid-column:1}.communication-row>div{grid-column:2;grid-row:2/4}.customer-filters{grid-template-columns:minmax(0,1fr)}}

.customer-filters>label,.customer-filters input[type=search],.customer-filters select{display:block;width:100%;max-width:none;min-width:0}.customer-filters>label{margin:0}

.customer-card{color:var(--ink);-webkit-text-fill-color:currentColor}.customer-card strong{color:var(--ink)}.customer-card small{color:var(--muted)}

/* Explain draft preparation separately from explicit sending. */
body.ge-app #app .communication-actions{justify-content:flex-start;gap:12px;}
body.ge-app #app .communication-actions>button{margin:0;}
.communication-explanation{max-width:780px;margin:20px 0;}
.communication-explanation h2{font-size:18px;margin:0 0 8px;}
.communication-explanation p{font-size:14px;line-height:1.6;margin:0 0 10px;color:var(--muted);}
.communication-explanation strong{color:var(--ink);font-weight:600;}
.communication-explanation .communication-draft-count{color:var(--ink);margin-top:12px;}
.communication-rule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,390px),1fr));gap:16px;margin:0 0 20px;align-items:start;}
.communication-rule-card{min-width:0;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--white);}
.communication-rule-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.communication-rule-card h3{font-size:16px;line-height:1.4;margin:0;min-width:0;overflow-wrap:anywhere;}
.communication-rule-card .badge{flex:none;width:auto;max-width:100%;}
.communication-rule-card dl{display:grid;gap:14px;margin:20px 0 16px;}
.communication-rule-card dt{font-size:12px;color:var(--muted);margin-bottom:4px;}
.communication-rule-card dd{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere;}
.communication-rule-state{font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 16px;}
body.ge-app #app .communication-rule-card>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px;margin:0;}
body.ge-app #app .communication-rule-card>footer>button{min-height:44px;margin:0;}
body.ge-app #app .communication-rule-card>footer>.text-button{padding:8px 12px;background:transparent;border:0;box-shadow:none;}
@media(max-width:600px){.communication-rule-card{padding:16px;}.communication-rule-card>header{flex-wrap:wrap;}.communication-rule-card dl{margin-top:16px;}}
