.comm-connections{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin:-8px 0 24px;color:var(--muted);font-size:14px}.comm-connections>span{display:inline-flex;gap:7px;align-items:center}.comm-connections .icon{width:17px;height:17px}.comm-connection-note{margin-left:auto}.comm-filters{display:flex;align-items:flex-start;gap:12px;margin:0 0 20px;position:relative}.comm-filters label{margin:0}.comm-search{position:relative;flex:1;min-width:180px}.comm-search>.icon{position:absolute;left:13px;top:13px;color:var(--muted)}.comm-search input{padding-left:42px;margin:0;width:100%}.comm-filters select{margin:0}.comm-filter-details{position:relative}.comm-filter-details>summary{display:flex;align-items:center;gap:8px;list-style:none;min-height:44px;padding:9px 14px;box-sizing:border-box;background:white;border:1px solid var(--line);border-radius:8px;cursor:pointer;font-weight:550}.comm-filter-details>summary::-webkit-details-marker{display:none}.comm-filter-details[open]>summary{background:var(--mint)}.comm-filter-fields{position:absolute;right:0;top:54px;width:min(520px,calc(100vw - 50px));display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px;background:white;border:1px solid var(--line);border-radius:12px;z-index:700;box-shadow:0 12px 28px #20362c1c}.comm-filter-fields label{min-width:0}.comm-filter-fields select,.comm-filter-fields input{width:100%;margin:6px 0 0}.comm-filter-fields button{align-self:end}.communication-workspace{display:grid;grid-template-columns:170px minmax(260px,.9fr) minmax(300px,1.15fr);align-items:start;background:white;border:1px solid var(--line);border-radius:12px;min-height:480px}.comm-folders{padding:16px 10px}.comm-folders>button{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px;border:0;background:transparent;text-align:left;font-size:14px;margin:2px 0;padding:11px 12px;min-height:44px;font-weight:500}.comm-folders>button:hover{background:var(--paper)}.comm-folders>button.active{background:var(--mint);color:var(--forest);font-weight:600}.comm-folders .count{font-size:13px}.comm-folders #comm-bulk{border-top:1px solid var(--line);border-radius:0;margin-top:24px;padding-top:20px;justify-content:flex-start;color:var(--muted)}.comm-results{min-width:0;border-left:1px solid var(--line);border-right:1px solid var(--line);align-self:stretch}.comm-list-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid var(--line);gap:10px;font-size:14px}.comm-list-heading>span{color:var(--muted)}.comm-row{display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:17px 20px;min-width:0;font-weight:400;box-sizing:border-box}.comm-row:hover{background:var(--paper)}.comm-row.is-selected{background:var(--mint)}.comm-row-top,.comm-row-bottom{display:flex;justify-content:space-between;gap:12px;width:100%;min-width:0}.comm-row-top strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:15px}.comm-row-top>span,.comm-row-bottom{font-size:12px;color:var(--muted)}.comm-row-subject{font-size:14px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.comm-row-preview{font-size:14px;color:var(--muted);max-width:100%;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}.comm-row-bottom{margin-top:7px;flex-wrap:wrap}.comm-results>.pagination{padding:16px;gap:8px;flex-wrap:wrap;font-size:13px}.comm-results>.pagination button{padding:8px 10px;font-size:13px}.comm-list-empty{padding:36px 24px;color:var(--muted)}.comm-list-empty h3{margin:0 0 10px;color:var(--ink)}.comm-list-empty p{margin:0}.comm-detail{min-width:0;padding:26px}.comm-message-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:13px}.comm-message-meta time{width:100%;margin:4px 0 0}.comm-message h2{font-size:23px;line-height:1.3;margin:24px 0 12px;overflow-wrap:anywhere}.comm-direction{color:var(--muted);font-size:14px;margin:0 0 18px}.comm-context{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:20px 0 24px}.comm-context .text-button{display:inline-flex;align-items:center;gap:8px;text-align:left;overflow-wrap:anywhere}.comm-message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;max-width:70ch}.comm-message-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}.comm-message-actions>button{display:inline-flex;align-items:center;gap:7px}.comm-placeholder{padding:90px 8px;text-align:center;color:var(--muted)}.comm-placeholder>.icon{height:32px;width:32px;margin:0 0 15px}.comm-placeholder h2{font-size:20px;color:var(--ink);margin:0 0 12px}.comm-placeholder p{max-width:28ch;margin:0 auto;font-size:14px}.comm-mobile-back{display:none}.comm-compose-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:30px;align-items:start}.comm-compose{padding:28px;background:white;border:1px solid var(--line);border-radius:12px}.comm-compose .form-grid{gap:16px}.comm-compose textarea{min-height:220px;resize:vertical}.comm-address{margin:0 0 24px;color:var(--muted);overflow-wrap:anywhere}.comm-ready{display:flex;gap:10px;align-items:center;margin:20px 0}.comm-ready input{width:18px;height:18px;margin:0;flex:none}.comm-compose-preview{padding:24px 6px}.comm-compose-preview h2{font-size:18px;margin:0 0 22px}.comm-compose-preview>p{color:var(--muted);font-size:14px;margin-top:28px}.comm-compose-preview .comm-message-body{padding:20px 0;border-top:1px solid var(--line);margin-top:18px}.comm-compose-preview #comm-preview>p{font-size:14px;color:var(--muted)}
@media(max-width:1250px){.communication-workspace{grid-template-columns:minmax(260px,1fr) minmax(300px,1.15fr)}.comm-folders{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px;padding:10px;border-bottom:1px solid var(--line)}.comm-folders>button{width:auto;padding:8px 12px;gap:10px}.comm-folders #comm-bulk{border-top:0;border-left:1px solid var(--line);margin:0 0 0 auto;padding:8px 12px}.comm-results{border-left:0}.comm-connection-note{margin-left:0}}
@media(max-width:1000px){.comm-compose-layout{grid-template-columns:1fr}.comm-compose-preview{padding:0}.comm-filters{flex-wrap:wrap}.comm-search{flex-basis:100%}.comm-filter-details{margin-left:auto}.comm-filter-fields{top:50px}.comm-detail{padding:20px}.comm-row{padding:16px}.communication-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:760px){.comm-connections{gap:10px 16px;font-size:13px;margin-bottom:20px}.comm-connection-note{width:100%}.communication-workspace{display:block;min-height:320px}.comm-folders{display:flex;gap:2px;padding:8px}.comm-folders>button{font-size:13px;padding:8px 9px}.comm-folders #comm-bulk{margin-left:0;border-left:0;padding:8px 9px}.comm-folders #comm-bulk .icon{width:16px}.comm-results{border:0}.comm-detail{display:none}.communication-workspace.has-selection .comm-results{display:none}.communication-workspace.has-selection .comm-detail{display:block}.comm-mobile-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:26px;min-height:44px}.comm-mobile-back .icon{transform:rotate(180deg)}.comm-filter-fields{position:static;grid-template-columns:1fr;width:auto;box-shadow:none;margin-top:10px}.comm-filter-details[open]{width:100%}.comm-filter-details[open]>summary{width:max-content;margin-left:auto}.comm-compose{padding:20px}.comm-compose .form-grid{grid-template-columns:1fr}.comm-message h2{font-size:22px}.comm-message-actions{margin-top:26px}}

/* Stable folders and a clearly unsent composer at every width. */
.comm-folders>button{min-width:0;overflow-wrap:anywhere}
.comm-folders>button>span:first-child{min-width:0}
.comm-folders .count{flex:none;font-variant-numeric:tabular-nums}
.comm-results>.pagination button,.comm-context .text-button{min-height:44px}
.comm-send-state{margin:0;flex-basis:100%;color:var(--muted);font-size:14px}
.comm-ready{min-height:44px;cursor:pointer}
.comm-compose textarea{min-height:180px}
.comm-compose .actions{align-items:center;gap:12px}
.comm-folders button:focus-visible,.comm-row:focus-visible,.comm-filter-details>summary:focus-visible{outline:2px solid var(--forest);outline-offset:-3px}
.comm-message h2:focus-visible{outline:2px solid var(--forest);outline-offset:5px}
@media(max-width:1250px){.comm-folders{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.comm-folders>button{width:100%;padding:10px 8px;justify-content:space-between;margin:0}.comm-folders #comm-bulk{margin:0;padding:10px 8px}}
@media(max-width:760px){.comm-folders{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:8px}.comm-folders>button{font-size:14px;padding:10px 8px;gap:6px}.comm-folders #comm-bulk{border:0;padding:10px 8px;font-size:14px;justify-content:flex-start}.comm-connections{margin-bottom:16px}.comm-compose{padding:20px 16px}.comm-compose textarea{min-height:160px}.comm-message h2{margin-top:20px}.comm-compose-preview{border-top:1px solid var(--line);padding-top:20px}}

/* 17 October workspace refinement. Native search/filter/composer and single-pane phone flow retained. */
@media screen{
 #content:has(>.comm-connections)>.page-heading{align-items:center;gap:12px;margin-bottom:14px}
 #content:has(>.comm-connections)>.page-heading h1{font-size:var(--type-page,1.375rem);line-height:1.25;margin:0}
 #content:has(>.comm-connections)>.page-heading .actions{gap:8px}
 #content .comm-connections{gap:8px 16px;margin:0 0 16px;font-size:12px;line-height:1.5;color:var(--muted)}
 #content .comm-connections>span{gap:6px;max-width:100%;overflow-wrap:anywhere}
 #content .comm-connections .icon{width:15px;height:15px;flex:none}
 #content .comm-connection-note{margin-left:auto}
 #content .comm-filters{display:grid;grid-template-columns:minmax(240px,440px) minmax(144px,180px) max-content;align-items:start;gap:8px;margin-bottom:18px}
 #content .comm-filters label{min-width:0;margin:0}
 #content .comm-search{min-width:0;width:100%;flex:none}
 #content .comm-search>.icon{left:10px;top:50%;transform:translateY(-50%);width:16px;height:16px;pointer-events:none}
 #content .comm-search input{padding-left:34px;margin:0;min-width:0}
 #content .comm-filters>label>select{min-width:0;width:100%;margin:0}
 #content .comm-filter-details{margin:0;min-width:0}
 #content .comm-filter-details>summary{gap:6px;padding:6px 10px;border-radius:var(--control-radius,6px);font-size:14px;line-height:1.4;min-width:0;background:var(--field-surface,#f6f8f5);border-color:var(--control-border,var(--line));font-weight:600}
 #content .comm-filter-details[open]>summary{background:var(--mint);border-color:var(--forest);color:var(--forest)}
 #content .comm-filter-fields{top:calc(100% + 8px);padding:16px;gap:12px 16px;border-radius:12px;max-width:calc(100vw - 32px)}
 #content .comm-filter-fields label{font-size:12px;line-height:1.4}
 #content .comm-filter-fields :is(input,select){min-width:0;max-width:100%}
 #content .communication-workspace{grid-template-columns:148px minmax(280px,.95fr) minmax(320px,1.2fr);border-radius:8px;min-height:420px;box-shadow:none}
 #content .comm-folders{padding:10px 8px;background:var(--field-surface,#f6f8f5);border-radius:8px 0 0 8px;align-self:stretch}
 #content .comm-folders>button{margin:2px 0;padding:8px 10px;gap:8px;font-size:13px;line-height:1.4;border-radius:var(--control-radius,6px)}
 #content .comm-folders .count{font-size:12px;color:var(--muted)}
 #content .comm-folders>button.active{background:var(--mint);color:var(--forest)}
 #content .comm-folders>button.active .count{color:var(--forest)}
 #content .comm-folders #comm-bulk{margin-top:14px;padding:12px 10px;border-radius:0;gap:6px;font-size:13px;line-height:1.45}
 #content .comm-list-heading{padding:12px 16px;font-size:13px;line-height:1.45;min-height:44px;background:var(--field-surface,#f6f8f5)}
 #content .comm-row{padding:12px 16px;gap:4px;min-height:96px;box-shadow:none;background:var(--white,#fff);border-radius:0;font-size:14px;line-height:1.45}
 #content .comm-row:hover{background:var(--paper)}
 #content .comm-row.is-selected{background:var(--mint)}
 #content .comm-row-top{align-items:baseline;gap:8px;flex-wrap:wrap}
 #content .comm-row-top strong{font-size:14px;line-height:1.45;flex:1 1 120px;min-width:0;font-weight:650}
 #content .comm-row-top>span{font-size:12px;line-height:1.45;flex:none}
 #content .comm-row-subject{font-size:13px;line-height:1.45}
 #content .comm-row-preview{font-size:13px;line-height:1.5;-webkit-line-clamp:2}
 #content .comm-row-bottom{font-size:12px;line-height:1.4;gap:4px 8px;margin-top:4px}
 #content .comm-results>.pagination{padding:12px;gap:8px;font-size:12px;line-height:1.4;border-top:0}
 #content .comm-results>.pagination .actions{gap:6px}
 #content .comm-results>.pagination button{font-size:13px;padding:5px 9px}
 #content .comm-detail{padding:20px;min-width:0}
 #content .comm-message-meta{font-size:12px;line-height:1.5;gap:6px 8px}
 #content .comm-message-meta time{margin-top:2px;overflow-wrap:anywhere}
 #content .comm-message h2{font-size:18px;line-height:1.35;font-weight:650;letter-spacing:-.015em;margin:18px 0 10px}
 #content .comm-direction{font-size:13px;margin-bottom:14px}
 #content .comm-context{gap:4px;margin:14px 0 18px}
 #content .comm-context .text-button{font-size:13px;line-height:1.45;gap:6px;min-height:32px;max-width:100%;min-width:0}
 #content .comm-context .icon{flex:none;width:16px;height:16px}
 #content .comm-message-body{font-size:14px;line-height:1.6;max-width:70ch}
 #content .comm-message-actions{gap:8px;margin-top:22px;padding-top:16px}
 #content .comm-message-actions>button{gap:6px;font-size:13px;line-height:1.4;padding:6px 10px}
 #content .comm-placeholder{padding:36px 0;text-align:left;color:var(--muted)}
 #content .comm-placeholder>.icon{width:24px;height:24px;margin-bottom:12px}
 #content .comm-placeholder h2{font-size:16px;line-height:1.4;margin-bottom:8px;font-weight:650}
 #content .comm-placeholder p{font-size:14px;line-height:1.55;max-width:34ch;margin:0}
 #content .comm-list-empty{padding:28px 16px;font-size:14px;line-height:1.55}
 #content .comm-list-empty h3{font-size:14px;line-height:1.45;margin-bottom:8px;font-weight:650}
 #content .comm-list-empty p{font-size:13px;line-height:1.55;max-width:36ch}
 #content .comm-compose-layout{gap:24px;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr)}
 #content .comm-compose{padding:20px;border-radius:8px;box-shadow:none}
 #content .comm-compose .form-grid{gap:14px 16px}
 #content .comm-compose label{font-size:13px;line-height:1.45}
 #content .comm-compose textarea{min-height:180px}
 #content .comm-address{font-size:13px;line-height:1.5;margin-bottom:18px}
 #content .comm-compose .actions{gap:8px}
 #content .comm-ready{gap:8px;margin-block:16px;font-size:14px;line-height:1.45}
 #content .comm-send-state{font-size:13px;line-height:1.5}
 #content .comm-compose-preview{padding:16px 0}
 #content .comm-compose-preview h2{font-size:16px;line-height:1.4;margin-bottom:16px}
 #content .comm-compose-preview>p{font-size:13px;line-height:1.55;margin-top:18px;max-width:65ch}
 #content .comm-compose-preview .comm-message-body{padding:16px 0;margin-top:14px}
 #content :is(.comm-filters,.comm-folders,.comm-results,.comm-message,.comm-compose) :is(button,summary):focus-visible{outline:2px solid var(--focus,var(--forest));outline-offset:-3px}
 #content .comm-compose :is(button,input,select,textarea):focus-visible{outline:2px solid var(--focus,var(--forest));outline-offset:2px}
}
@media screen and (min-width:701px) and (pointer:fine){
 #content:has(>.comm-connections)>.page-heading button,
 #app #content .comm-filters :is(input,select,button,summary),
 #content :is(.comm-message-actions,.comm-results>.pagination,.comm-compose .actions) button{min-height:32px;padding-block:5px;font-size:14px;line-height:1.4}
 #content .comm-search input{height:32px}
 #content .comm-folders>button{min-height:36px}
 #app #content .comm-compose :is(input:not([type=checkbox]),select){min-height:36px;font-size:14px;line-height:1.4;padding-block:6px}
}
@media screen and (max-width:1250px){
 #content .communication-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr)}
 #content .comm-folders{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:8px;border-radius:8px 8px 0 0}
 #content .comm-folders>button{width:100%;margin:0;padding:7px 8px;font-size:13px}
 #content .comm-folders #comm-bulk{margin:0;border-top:0;border-left:1px solid var(--line);padding:7px 8px;font-size:13px}
 #content .comm-results{border-left:0}
 #content .comm-connection-note{margin-left:0}
}
@media screen and (max-width:1000px){
 #content .comm-filters{grid-template-columns:minmax(0,1fr) minmax(140px,170px) max-content}
 #content .comm-search{flex-basis:auto}
 #content .comm-compose-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 #content .comm-compose-preview{border-top:1px solid var(--line);padding-top:18px}
 #content .comm-detail{padding:16px}
}
@media screen and (max-width:700px),screen and (pointer:coarse){
 #content:has(>.comm-connections)>.page-heading button,
 #app #content .comm-filters :is(input,select,button,summary),
 #content :is(.comm-folders,.comm-message-actions,.comm-results>.pagination,.comm-compose .actions) button{min-height:44px;padding-block:9px}
 #app #content .comm-filters :is(input,select),
 #app #content .comm-compose :is(input:not([type=checkbox]),select,textarea){font-size:16px;line-height:1.4;min-height:44px}
 #content .comm-search input{height:44px}
 #content .comm-context .text-button{min-height:44px}
}
@media screen and (max-width:760px){
 #content .communication-workspace{display:block;min-height:300px}
 #content .comm-folders{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:8px}
 #content .comm-folders>button{font-size:13px;line-height:1.45;padding:9px 10px}
 #content .comm-folders #comm-bulk{border:0;padding:9px 10px;font-size:13px}
 #content .comm-results{border:0}
 #content .comm-detail{display:none;padding:16px}
 #content .communication-workspace.has-selection .comm-results{display:none}
 #content .communication-workspace.has-selection .comm-detail{display:block}
 #content .comm-mobile-back{margin-bottom:16px;min-height:44px}
 #content .comm-filter-fields{position:static;width:100%;max-width:none;box-shadow:none;margin-top:10px;grid-template-columns:minmax(0,1fr);padding:14px}
 #content .comm-filter-details[open]{width:100%;grid-column:1/-1}
 #content .comm-filter-details[open]>summary{margin-left:0;width:max-content;max-width:100%}
}
@media screen and (max-width:600px){
 #content:has(>.comm-connections)>.page-heading{flex-wrap:wrap;align-items:flex-start;gap:10px}
 #content:has(>.comm-connections)>.page-heading h1{font-size:20px}
 #content:has(>.comm-connections)>.page-heading .actions{width:100%;display:flex;gap:8px;justify-content:flex-start}
 #content:has(>.comm-connections)>.page-heading .actions button{font-size:14px;padding:9px 10px;white-space:normal}
 #content .comm-connections{gap:6px 12px;margin-bottom:14px;font-size:12px}
 #content .comm-connection-note{width:100%}
 #content .comm-filters{grid-template-columns:minmax(0,1fr) max-content;gap:8px;margin-bottom:14px}
 #content .comm-search{grid-column:1/-1}
 #content .comm-compose{padding:16px}
 #content .comm-compose .form-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 #content .comm-compose textarea{min-height:160px}
 #content .comm-row{padding:12px 14px;min-height:104px}
 #content .comm-list-heading{padding:12px 14px}
 #content .comm-message-actions{gap:8px}
 #content .comm-message-actions>button{flex:1 1 140px;justify-content:center;padding-inline:10px}
 #content .comm-message-body{font-size:14px;line-height:1.6}
 #content .comm-placeholder{padding:24px 0}
}


/* Keep folder labels whole at laptop and tablet widths. */
@media screen{
 #content .comm-folders>button,
 #content .comm-folders>button>span:first-child{overflow-wrap:normal;word-break:normal}
}
@media screen and (min-width:1251px){
 #content .communication-workspace{grid-template-columns:176px minmax(280px,.95fr) minmax(320px,1.2fr)}
}
@media screen and (min-width:761px) and (max-width:1100px){
 #content .comm-folders{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media screen and (min-width:761px) and (max-width:1250px){
 #content .communication-workspace{grid-template-rows:max-content minmax(0,1fr)}
}
