/* Portal dialog materials. Compact dimensions and existing workflow controls are preserved. */
html body{--r46-panel:var(--surface,#191c22);--r46-edge:color-mix(in srgb,var(--r46-panel) 70%,#8491a4 30%);--r46-inset:color-mix(in srgb,var(--r46-panel) 90%,#000 10%)}
html body :is(.modal,.r69j-approval-modal,.overlay-backdrop>section,.overlay-backdrop>div[class$="-modal"],.notification-popover,.profile-popover){border:1px solid var(--r46-edge)!important;border-radius:16px!important;background:linear-gradient(135deg,#ffffff09,transparent 55%),var(--r46-panel)!important;box-shadow:0 26px 80px #0008,0 4px 12px #0004,inset 0 1px 0 #ffffff14!important;isolation:isolate;max-width:calc(100vw - 24px)!important;color:var(--text,#f4f5f7)}
html body :is(.modal>header,.r67-report-modal-heading,.r69j-approval-head,.r69a-modal-head,.r64b-request-header,.notification-head,.modal-head,.r66a-file-modal-head,.r69q-share-head){background:linear-gradient(110deg,#ff6b2726,transparent 70%),linear-gradient(180deg,#ffffff09,#00000008),var(--r46-panel)!important;border-bottom:1px solid var(--r46-edge)!important;border-radius:15px 15px 0 0!important;padding:16px 18px!important;gap:12px!important;box-shadow:inset 0 1px 0 #ffffff0c!important}
html body :is(.modal>footer,.r68c-modal-footer,.r67-client-report-footer,.r69j-approval-footer,.r64b-request-footer,.r64c-meeting-request-footer,.r64-request-footer,.modal-footer,.r66a-file-modal-footer,.r42-journey-footer){display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;padding:14px 18px!important;border-top:1px solid var(--r46-edge)!important;background:linear-gradient(100deg,#ff784b0b,transparent 70%),var(--r46-inset)!important;border-radius:0 0 15px 15px!important;box-shadow:inset 0 1px 0 #ffffff06!important}
html body :is(.r69j-approval-modal,.modal,.overlay-backdrop>section) :is(h2,.r69a-modal-title){font-size:17px!important;line-height:1.4!important;letter-spacing:-.02em!important;font-weight:780!important;margin:0!important}
html body :is(.r69j-approval-modal,.modal,.overlay-backdrop>section) :is(h3,h4){font-size:12.5px!important;line-height:1.5!important;font-weight:750!important}
html body :is(.r69j-approval-modal,.modal,.overlay-backdrop>section) :is(p,li){font-size:12px!important;line-height:1.75!important;overflow-wrap:anywhere}
html body :is(.r68c-modal-scroll,.r67-report-modal-body,.r69j-approval-body,.r64b-stage-scroll,.r64c-meeting-request-scroll,.modal-body,.r66a-file-modal-scroll){padding:16px!important;gap:14px!important}
html body :is(.r68c-invoice-hero,.r68c-invoice-copy,.r68c-invoice-methods,.r67-client-report-section,.r69j-approval-section,.r64b-stage,.r64c-meeting-section,.r66a-file-section,.r64c-request-section,.r69-form-section,.r68c-form-section,.account-section,.r41-journey-detail>section){border:1px solid var(--r46-edge)!important;border-radius:12px!important;background:linear-gradient(135deg,#ffffff07,transparent 65%),var(--r46-panel)!important;box-shadow:0 7px 17px #00000024,inset 0 1px 0 #ffffff0b!important;padding:14px!important;margin-bottom:12px!important;min-width:0}
html body :is(.r67-report-detail-metrics>div,.r67-report-story-grid>article,.r69j-approval-facts>div,.r64b-service-card,.r64c-format-card,.r64c-related-option,.r64c-client-attendee,.r64b-request-card,.r68c-invoice-card,.r67-client-report-metrics>div,.r67-progress-stats>div){border:1px solid var(--r46-edge)!important;border-radius:11px!important;background:linear-gradient(145deg,#ffffff0a,transparent 65%),var(--r46-panel)!important;box-shadow:0 5px 12px #00000020,inset 0 1px 0 #ffffff0a!important;min-width:0}
html body :is(.r64b-service-card,.r64c-format-card,.r64c-related-option,.r64c-client-attendee,.r64b-request-card).active{border-color:#ff895c99!important;box-shadow:0 0 0 1px #ff784b33,inset 0 1px 0 #ffffff0b!important;background:linear-gradient(125deg,#ff784b19,transparent 70%),var(--r46-panel)!important}
html body .r64b-stepper{display:flex!important;gap:8px!important;flex-wrap:wrap!important;padding:10px!important;border:1px solid var(--r46-edge)!important;border-radius:11px!important;background:var(--r46-inset)!important}
html body .r64b-stepper>span{display:inline-flex!important;align-items:center!important;gap:7px!important;padding:7px 10px!important;border:1px solid var(--r46-edge)!important;border-radius:8px!important;background:var(--r46-panel)!important;font-size:10.5px!important;line-height:1.4!important}
html body .r64b-stepper>.active{color:#ff986b!important;border-color:#ff784b77!important;background:linear-gradient(120deg,#ff784b20,transparent),var(--r46-panel)!important}
html body :is(.r64b-stage-head,.r64c-meeting-section-head){display:flex!important;gap:12px!important;align-items:flex-start!important;margin-bottom:14px!important}
html body :is(.r64b-stage-head,.r64c-meeting-section-head)>span{display:grid!important;place-items:center!important;flex:none!important;min-width:30px!important;height:30px!important;padding:0!important;border:1px solid #ff784b66!important;border-radius:9px!important;background:#ff784b16!important;color:#ff986b!important;font-size:13px!important;font-weight:750!important;box-shadow:inset 0 1px 0 #ffffff0b!important}
html body .r69m-notification-list{display:grid!important;gap:9px!important;padding:12px!important;max-height:min(60dvh,480px)!important;overflow:auto!important;background:var(--r46-inset)!important;border-radius:0 0 15px 15px!important}
html body .r69m-notification-row{display:grid!important;gap:11px!important;align-items:start!important;border:1px solid var(--r46-edge)!important;border-radius:11px!important;padding:13px!important;background:linear-gradient(135deg,#ffffff08,transparent),var(--r46-panel)!important;box-shadow:0 5px 12px #00000020,inset 0 1px 0 #ffffff09!important;text-align:left!important}
html body .r69m-notification-row.unread{border-left:3px solid #ff784b!important}
html body .r69m-notification-copy{display:grid!important;gap:5px!important;min-width:0!important}
html body .r69m-notification-copy :is(strong,b){font-size:12px!important;line-height:1.5!important}
html body .r69m-notification-copy :is(small,span){font-size:10.5px!important;line-height:1.6!important}
html body :is(.modal,.r69j-approval-modal,.overlay-backdrop>section) :is(.form-actions,.modal-actions,.r69-card-actions){display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:9px!important}
html body :is(.modal,.r69j-approval-modal,.overlay-backdrop>section) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){border:1px solid var(--r46-edge)!important;background-color:var(--surface-2,#20242b)!important;border-radius:9px!important;font-size:12px!important;box-shadow:inset 0 2px 4px #00000012!important}
html body :is(.modal,.r69j-approval-modal,.overlay-backdrop>section) select{padding-right:34px!important;background-position:right 12px center!important}
html body :is(.r69j-approval-modal,.overlay-backdrop>section) button{font-size:11.5px!important;line-height:1.4!important}
@media(max-width:600px){html body :is(.modal>header,.r67-report-modal-heading,.r69j-approval-head,.r69a-modal-head,.r64b-request-header,.notification-head,.modal-head){padding:14px!important}html body :is(.r68c-modal-scroll,.r67-report-modal-body,.r69j-approval-body,.modal-body,.r64b-stage-scroll){padding:12px!important}html body :is(.modal>footer,.r68c-modal-footer,.r67-client-report-footer,.r69j-approval-footer,.r64b-request-footer,.r64c-meeting-request-footer,.modal-footer){padding:12px!important;gap:9px!important}html body :is(.modal>footer,.r68c-modal-footer,.r67-client-report-footer,.r69j-approval-footer,.modal-footer)>.btn{flex:1 1 120px!important;justify-content:center!important}html body .r64b-stepper{gap:5px!important;padding:7px!important}html body .r64b-stepper>span{padding:6px!important;font-size:9px!important}html body .notification-popover{position:fixed!important;top:64px!important;left:12px!important;right:12px!important;width:auto!important;max-width:none!important}html body .r69m-notification-row{padding:11px!important}}
html body .overlay-backdrop>.detail-drawer{border:1px solid var(--r46-edge)!important;border-radius:16px!important;background:linear-gradient(135deg,#ffffff09,transparent 55%),var(--r46-panel)!important;box-shadow:0 26px 80px #0008,inset 0 1px 0 #ffffff14!important;max-width:calc(100vw - 24px)!important}
html body .detail-drawer>header{padding:17px 18px!important;background:linear-gradient(110deg,#ff6b2726,transparent 70%),var(--r46-panel)!important;border-bottom:1px solid var(--r46-edge)!important;border-radius:15px 15px 0 0!important;gap:12px!important}
html body .detail-drawer h2{font-size:17px!important;line-height:1.4!important;letter-spacing:-.02em!important}
html body .detail-drawer :is(.drawer-section,.r64-work-stage){border:1px solid var(--r46-edge)!important;border-radius:12px!important;padding:14px!important;background:linear-gradient(135deg,#ffffff07,transparent 65%),var(--r46-panel)!important;box-shadow:0 7px 17px #00000024,inset 0 1px 0 #ffffff0b!important;margin-bottom:13px!important}
html body .detail-drawer .detail-grid{margin-bottom:13px!important;gap:10px!important;padding:12px!important;border:1px solid var(--r46-edge)!important;border-radius:10px!important;background:var(--r46-inset)!important}
html body .detail-drawer :is(.drawer-actions,.comment-form,.r64-comment-actions){gap:10px!important}
html body .detail-drawer .drawer-actions{display:flex!important;flex-wrap:wrap!important}
html body .detail-drawer .comment-form{padding:13px!important;border:1px solid var(--r46-edge)!important;border-radius:11px!important;background:var(--r46-inset)!important}
html body :is(.r69l-request-status-block,.r64-request-progress,.r64-answer-grid,.r64-reference-list,.r64-request-delivery,.r68c-payment-method-card){border:1px solid var(--r46-edge)!important;border-radius:11px!important;background:linear-gradient(135deg,#ffffff07,transparent 65%),var(--r46-panel)!important;box-shadow:0 6px 15px #00000020,inset 0 1px 0 #ffffff09!important;padding:13px!important;margin-bottom:12px!important;min-width:0}
html body .detail-drawer .drawer-section h3{font-size:13px!important;margin:0 0 8px!important;line-height:1.5!important}
html body .detail-drawer :is(p,li){font-size:12px!important;line-height:1.7!important}
html body .account-center-modal :is(.account-panel,.account-summary,.account-request-list>article,.client-access-person){border:1px solid var(--r46-edge)!important;border-radius:12px!important;background:linear-gradient(135deg,#ffffff08,transparent 65%),var(--r46-panel)!important;box-shadow:0 7px 17px #00000024,inset 0 1px 0 #ffffff0b!important;padding:14px!important;min-width:0}
html body .account-center-modal .account-panel-head{padding-bottom:12px!important;margin-bottom:13px!important;border-bottom:1px solid var(--r46-edge)!important;gap:11px!important}
html body .account-center-modal :is(.account-inline-actions,.client-access-actions,.account-profile-grid,.account-two-col){gap:12px!important}
html body .account-center-modal :is(.security-account-row,.account-readonly){border:1px solid var(--r46-edge)!important;border-radius:9px!important;background:var(--r46-inset)!important;padding:11px!important;gap:10px!important}
html body .account-center-modal :is(.account-request-list,.client-access-list){display:grid!important;gap:10px!important}
