/* Reserve real content space; hiding page overflow does not fix collisions inside cards. */
@media(max-width:1000px){
 html body main .metric-card{position:relative!important;min-width:0!important}
 html body main .metric-card>div{min-width:0!important;width:100%!important}
 html body main .metric-card>div>span{display:block!important;padding-right:38px!important;min-height:32px!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.5!important;box-sizing:border-box!important}
 html body main .metric-card>svg{position:absolute!important;top:14px!important;right:13px!important;width:30px!important;height:30px!important;flex:none!important}
 html body main .metric-card :is(b,strong,small){max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
 html body main :is(.card-head,.r69-team-section-head,.r67-report-library-head,.r68c-section-head){flex-wrap:wrap!important;align-items:flex-start!important;gap:12px!important}
 html body main :is(.card-head,.r69-team-section-head,.r67-report-library-head,.r68c-section-head)>*{min-width:0!important;max-width:100%!important}
 html body main :is(.page-actions,.card-actions,.row-actions,.r69-card-actions,.r66-file-row-actions,.r64-work-card-top,.work-card footer){display:flex!important;flex-wrap:wrap!important;gap:9px!important;align-items:center!important}
 html body main :is(.r69-person-card,.r69-team-panel,.r67-client-report-card,.r68c-invoice-card,.work-card){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 html body main :is(.r69-person-card p,.r69-person-card small,.r69-person-card a,.r69-person-card strong,.r69-person-card b){white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important}
 html body main :is(.r67-client-report-meta,.r68c-invoice-card>header,.r68c-invoice-card>footer){flex-wrap:wrap!important;gap:9px!important}
 html body :is(.modal,.detail-drawer,.r69j-approval-modal){min-width:0!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;box-sizing:border-box!important}
 html body :is(.r69a-modal-head-copy,.r69j-approval-head-copy,.r66a-file-modal-title){min-width:0!important;flex:1 1 0!important;padding-right:8px!important}
 html body :is(.r69a-modal-close,.r69j-approval-close){flex:none!important;align-self:flex-start!important}
 html body :is(.modal,.detail-drawer,.r69j-approval-modal) :is(h2,h3,p,label,small){max-width:100%!important;overflow-wrap:anywhere!important}
 html body :is(.modal,.detail-drawer,.r69j-approval-modal) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 html body :is(.modal-footer,.r64b-request-footer,.r64c-meeting-request-footer,.r66a-file-modal-footer,.r67-client-report-footer,.r68c-modal-footer,.r69j-approval-footer,.drawer-actions){flex-wrap:wrap!important;gap:10px!important}
}
@media(max-width:600px){
 html body main :is(.segmented,.r67-report-tabs,.r68c-billing-tabs){display:flex!important;flex-wrap:wrap!important;gap:6px!important;max-width:100%!important;overflow:visible!important;white-space:normal!important;height:auto!important}
 html body main :is(.segmented,.r67-report-tabs,.r68c-billing-tabs)>button{flex:1 1 auto!important;min-width:0!important;white-space:normal!important;justify-content:center!important;gap:6px!important;line-height:1.5!important}
 html body main .table-toolbar>*{min-width:0!important;max-width:100%!important}
 html body main :is(.r67-client-report-metrics,.r67-report-detail-metrics){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 html body main :is(.r67-client-report-metrics,.r67-report-detail-metrics)>*{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
 html body main :is(.r67-client-report-metrics,.r67-report-detail-metrics) :is(span,small,b,strong){white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important}
 html body .modal :is(.r66a-file-fields,.account-profile-grid,.account-two-col,.r64c-meeting-fields,.r69j-approval-facts,.r67-report-story-grid){grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 html body .modal :is(.span-2,.r64c-full){grid-column:auto!important}
 html body :is(.r69j-approval-modal .r69j-approval-facts,.detail-drawer .detail-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html body :is(.r69j-approval-facts>*,.detail-grid>*){min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
 html body .r64b-stepper{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 html body .r64b-stepper>span{min-width:0!important;gap:7px!important;white-space:normal!important}
 html body :is(.r64b-request-footer,.r64c-meeting-request-footer,.r66a-file-modal-footer,.r67-client-report-footer,.r68c-modal-footer,.r69j-approval-footer)>.btn{flex:1 1 120px!important;min-width:0!important;max-width:100%!important;white-space:normal!important;justify-content:center!important}
 html body :is(.r64b-footer-spacer,.r64c-footer-spacer){display:none!important}
 html body :is(.account-inline-actions,.client-access-actions,.r64-comment-actions){display:flex!important;flex-wrap:wrap!important;gap:9px!important}
 html body .r69m-notification-copy{min-width:0!important;overflow-wrap:anywhere!important}
}
@media(max-width:380px){
 html body main .metric-card{padding:12px!important}
 html body main .metric-card>div>span{font-size:10.5px!important;padding-right:35px!important;min-height:34px!important}
 html body main .metric-card>svg{right:11px!important;top:12px!important;width:28px!important;height:28px!important}
 html body :is(.r69j-approval-modal .r69j-approval-facts,.detail-drawer .detail-grid){grid-template-columns:minmax(0,1fr)!important}
}
/* A bordered fact must have its own inset, including legacy first and last items. */
html body :is(.r69j-approval-facts,.detail-drawer .detail-grid,.r67-report-context){display:grid!important;gap:10px!important;align-items:stretch!important}
html body :is(.r69j-approval-facts,.detail-drawer .detail-grid,.r67-report-context)>div{min-width:0!important;box-sizing:border-box!important;padding:12px 14px!important;display:grid!important;align-content:start!important;gap:6px!important;border:1px solid var(--r46-edge,var(--client-r40-line,#343b47))!important;border-radius:10px!important;background:var(--surface,#191c22)!important}
html body :is(.r69j-approval-facts,.detail-drawer .detail-grid,.r67-report-context) :is(small,b,strong){margin:0!important;min-width:0!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body .r69j-approval-facts>div+div{border-left:1px solid var(--r46-edge,var(--client-r40-line,#343b47))!important}
@media(max-width:600px){html body :is(.r69j-approval-facts,.detail-drawer .detail-grid,.r67-report-context)>div{padding:11px 12px!important}}
