/* Quiet staff surfaces, clear actions. Main navigation is intentionally untouched. */
.crm-staff .btn {min-height:44px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.crm-staff .btn.sec {box-shadow:none;background:#f5f8fc;color:#264763;border:1px solid #d4dfe9}
.crm-staff .btn:focus-visible,.crm-staff summary:focus-visible,.crm-staff a:focus-visible {outline:3px solid #2376b7;outline-offset:3px}
.crm-staff .card[class*="tone-"] {background:#fff;border-color:#dce5ec;box-shadow:0 2px 7px #203c5010}
.crm-staff .btns {gap:10px}
.crm-staff .in {line-height:1.45}
.crm-staff .next {gap:20px;align-items:center;padding:20px;border-radius:16px}
.crm-staff .next .what {line-height:1.4}
.crm-staff .next button {min-height:44px;flex-shrink:0;max-width:45%;white-space:normal}
.crm-staff .ptabs {align-items:flex-start;gap:8px;overflow:visible;flex-wrap:wrap}
.project-tools {flex:1 0 180px;min-width:0;border:1px solid #d4dfe9;border-radius:10px;background:#fff}
.project-tools summary,.estimate-tools summary {cursor:pointer;padding:12px;font-weight:650;color:#264763;min-height:44px;box-sizing:border-box}
.project-tools>div,.estimate-tools>div {display:flex;flex-wrap:wrap;gap:8px;padding:8px 12px 12px}
.estimate-workflow {border-left:4px solid #2679b8!important}
.estimate-primary,.estimate-secondary {display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px}
.estimate-primary>.btn {flex:1 1 160px}
.estimate-tools {border:1px solid #d4dfe9;border-radius:10px;flex:1 1 190px}
.estimate-tools[open] {flex-basis:100%}
.estimate-workflow [hidden],.inbox-conversation[hidden] {display:none!important}
.inbox-toolbar,.conversation-title {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.conversation-title h2 {margin:0}
.inbox-filters {display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.inbox-filters .in {flex:1 1 220px;min-width:0}
.inbox-unread {display:flex;align-items:center;gap:8px;margin:0;min-height:44px}
.inbox-conversation {color:inherit;text-decoration:none;align-items:flex-start;gap:12px;padding:16px 12px;border-bottom:1px solid #e4ebf0}
.inbox-conversation:hover {background:#f4f8fc}
.inbox-conversation.has-unread {border-left:3px solid #2376b7;background:#f1f8ff}
.inbox-conversation .main {min-width:0}
.inbox-conversation .s {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.inbox-conversation .t,.message-address {overflow-wrap:anywhere}
.inbox-conversation .r {flex:0 0 75px;line-height:1.5}
.conversation-actions {display:flex;align-items:center;gap:12px;border-top:1px solid #dce5ec;padding-top:14px}
.message-composer {clear:both}
.message-composer .composer-recipient {margin:16px 0 10px;overflow-wrap:anywhere}
.composer-recipient strong {display:block}
.message-composer .f {margin-top:18px}
.message-composer textarea {min-height:160px;resize:vertical}
.composer-result {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;min-height:1.5em}
.composer-actions {display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.message-composer .extra-recipients {margin-top:12px}
.home-stage-jumps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.home-stage-jumps .btn {display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left}
.home-stage-jumps strong {font-size:20px}
.home-project-groups {display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.home-project-group {padding:0!important;overflow:hidden;scroll-margin-top:85px}
.home-project-group>summary {display:flex;align-items:center;gap:12px;padding:20px;cursor:pointer;list-style:none;border-top:4px solid var(--group-color)}
.home-project-group>summary::-webkit-details-marker {display:none}
.home-project-group>summary:after {content:'＋';color:var(--group-color);font-size:20px}
.home-project-group[open]>summary:after {content:'−'}
.home-project-group>summary>span {flex:1;min-width:0}
.home-project-group>summary strong {font-size:21px;color:#173950}
.home-project-group>summary small {display:block;color:#526779;font-size:13px;margin-top:6px;line-height:1.4}
.home-group-count {color:var(--group-color);font-size:24px;font-variant-numeric:tabular-nums}
.group-leads {--group-color:#88610c}.group-progress {--group-color:#137588}.group-payment {--group-color:#416ca6}.group-completed {--group-color:#397d50}
.home-group-content {padding:0 18px 16px}
.home-group-content .lead-group {margin-top:0;padding-top:14px;border-top:1px solid #dce5ec}
.home-group-content .lead-group h3 {font-size:15px;color:#264763;letter-spacing:0;text-transform:none}
@media(max-width:600px){
 .crm-staff .next {padding:16px;align-items:stretch;flex-direction:column;gap:12px}
 .crm-staff .next button {max-width:none;width:100%}
 .estimate-primary>.btn {flex-basis:100%}
 .composer-actions>.btn {flex:1}
 .inbox-conversation {padding:14px 8px;gap:8px}
 .inbox-conversation .r {flex-basis:64px;font-size:12px}
 .project-tools {flex-basis:100%}
 .home-stage-jumps {grid-template-columns:minmax(0,1fr)}
 .home-project-group>summary {padding:16px}
 .home-group-content {padding:0 12px 12px}
}

/* Customer-wide files remain readable on narrow phones. */
.customer-file-gallery{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:16px}
.customer-file-gallery .project-file-tile{padding:12px;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere}
.customer-file-gallery .btns>*{flex:1}
