.customer-handoff-shell{grid-template-columns:170px minmax(280px,340px) minmax(380px,1fr);background:#fff;min-height:520px;color:#173b50}
.customer-handoff-shell button,.customer-handoff-shell input,.customer-handoff-shell select,.customer-handoff-shell textarea{font:inherit}
.customer-handoff-shell .inbox-messages{display:flex;flex-direction:column;min-width:0;min-height:0}
.customer-handoff-shell .inbox-message-list{flex:1;min-height:0;overflow:auto}
.customer-handoff-shell .inbox-message{width:100%;text-align:left;min-height:96px}
.customer-handoff-shell .inbox-message time{font-size:11px;max-width:125px;white-space:normal;line-height:1.5}
.customer-handoff-shell .inbox-message-copy{min-width:0;overflow-wrap:anywhere}
.handoff-folder-tabs{display:flex;gap:8px;padding:10px 14px;border-bottom:1px solid #dce8ef}
.handoff-folder-tabs button{border:1px solid #d5e5ed;background:#fff;color:#345a6e;border-radius:5px;padding:7px 12px;cursor:pointer}
.handoff-folder-tabs button.active{background:#e7f6f5;border-color:#119c99;color:#087e7b}
.handoff-folder-tabs span{margin-left:5px;font-variant-numeric:tabular-nums}
.handoff-mail-header{display:flex;justify-content:space-between;gap:12px;padding:16px!important}
.handoff-mail-header h3{font-size:17px;margin:0 0 5px}
.handoff-mail-header p{font-size:12px;color:#667f8d;margin:0}
.handoff-mail-pagination{display:flex;align-items:center;gap:8px;padding:12px;border-top:1px solid #dce8ef;font-size:12px}
.handoff-mail-pagination>span{margin-right:auto}
.handoff-reading-pane{overflow:auto;background:#fff;min-width:0}
.handoff-letter{padding:24px 28px;max-width:1100px;margin:0 auto}
.handoff-letter>header{display:flex;align-items:flex-start;gap:14px;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid #e2ecf1}
.handoff-letter h3{margin:8px 0 0;font-size:21px;line-height:1.45;overflow-wrap:anywhere}
.handoff-kicker{font-size:12px;color:#158d8a;font-weight:600}
.handoff-state{font-size:12px;white-space:nowrap;background:#fff5de;color:#956b0b;padding:6px 9px;border-radius:5px}
.handoff-state.done{background:#e8f6ef;color:#27835c}
.handoff-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;padding:20px 0;margin:0}
.handoff-facts dt{color:#6b8392;font-size:12px;margin-bottom:6px}
.handoff-facts dd{margin:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.handoff-note{font-size:13px;line-height:1.7;background:#f0f8f8;border-left:3px solid #149b98;padding:12px 14px;margin:3px 0 22px}
.handoff-letter form{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}
.handoff-letter label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600}
.handoff-letter select,.handoff-letter textarea{box-sizing:border-box;width:100%;max-width:680px;padding:9px 11px;border:1px solid #cadae4;border-radius:5px;background:#fff;color:#173b50;font-weight:400;line-height:1.55}
.handoff-letter textarea{resize:vertical;min-height:80px}
.handoff-letter :focus-visible,.handoff-folder-tabs :focus-visible{outline:2px solid #169e99;outline-offset:3px}
.handoff-submit-row{display:flex;align-items:center;gap:12px}
.handoff-submit-row>span{font-size:12px;color:#688191}
.handoff-submit-row .primary-btn{width:auto;min-width:104px;background:#109b98;color:#fff;border:1px solid #109b98;border-radius:5px;padding:9px 18px}
.customer-handoff-shell button:disabled{opacity:.5;cursor:default}
.handoff-error{color:#a53d3d;font-size:13px;line-height:1.65;padding:10px 12px;margin:10px 0;background:#fff5f4;border:1px solid #f0d8d4;border-radius:4px}
.handoff-history{border-top:1px solid #dce8ef;padding-top:18px}
.handoff-history h4{font-size:14px;margin:0 0 14px}
.handoff-history>p{font-size:13px;color:#708692}
.handoff-history ol{list-style:none;padding:0;margin:0}
.handoff-history li{display:flex;gap:18px;padding:12px 0;border-bottom:1px solid #eef3f6;font-size:12px}
.handoff-history time{flex:0 0 145px;color:#718592;line-height:1.6}
.handoff-history strong{font-size:13px}
.handoff-history p{margin:5px 0 0;line-height:1.6;color:#577587}
@media(max-width:1120px){.customer-handoff-shell{grid-template-columns:145px 270px minmax(280px,1fr)}.handoff-letter{padding:20px}.handoff-facts{grid-template-columns:1fr}.handoff-history li{display:block}.handoff-history time{display:block;margin-bottom:6px}}
@media(max-width:760px){.customer-handoff-shell{display:block;height:auto!important}.customer-handoff-shell .inbox-folders{display:flex;gap:8px;padding:10px}.customer-handoff-shell .inbox-folders-title{display:none}.customer-handoff-shell .inbox-message-list{max-height:280px}.handoff-reading-pane{border-top:1px solid #dce8ef}.handoff-letter{padding:20px 16px}.handoff-letter h3{font-size:18px}}

/* Keep the same folder navigation in ordinary and handoff inboxes. */
.inbox-shell .inbox-folders>button{grid-template-columns:16px max-content minmax(0,1fr);column-gap:3px;padding-inline:4px}
.inbox-shell .inbox-folders>button .inbox-folder-label{white-space:nowrap}
.inbox-shell .inbox-folders>button>strong{justify-self:end;min-width:0;max-width:100%;box-sizing:border-box;padding:2px 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.inbox-shell .inbox-folders>button{min-width:145px}}
