/* Same warm-neutral visual language as the existing CRM. */
.mr-workspace{max-width:1280px;margin:auto}.mr-breadcrumb,.mr-title-row,.mr-heading,.mr-run-top,.mr-heading-actions,.mr-run-actions,.mr-tabs{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.mr-breadcrumb{font-size:13px;color:#767969;margin-bottom:28px}.mr-heading{justify-content:space-between;margin-bottom:26px}.mr-heading h1{font-size:38px;letter-spacing:-1.2px;margin:8px 0}.mr-heading p{color:#737668;margin:0}.mr-eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:700;color:#68795d}.mr-overview{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;margin-bottom:18px}.mr-overview article{border:1px solid #dfdfd4;border-radius:14px;background:#fffef8;padding:20px 24px}.mr-overview span{display:block;font-size:12px;color:#737767;margin-bottom:9px}.mr-overview b{font-size:25px;font-weight:650;letter-spacing:-.5px}.mr-notice{padding:14px 18px;background:#edf0e4;border:1px solid #dce3ce;border-radius:12px;line-height:1.6;font-size:13px}.mr-tabs{border-bottom:1px solid #dcdfd5;margin:28px 0 24px;padding-bottom:12px}.mr-tabs span{margin-left:auto;font-size:12px;color:#77806c}.mr-tabs button.active{background:#314b37;color:white;border-color:#314b37}.mr-title-row{justify-content:space-between;align-items:flex-start;margin-bottom:18px}.mr-title-row h2{font-size:21px;margin:3px 0 0}.mr-title-row a,.mr-run a{font-size:13px}.mr-section{margin-bottom:32px}.mr-route-grid,.mr-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mr-route,.mr-run,.mr-rule{padding:22px;border:1px solid #dddcd2;border-radius:16px;background:#fffefb;min-width:0}.mr-run-list{display:grid;gap:16px}.mr-run-top{justify-content:space-between}.mr-run h3,.mr-rule h3{margin:14px 0 7px;font-size:19px}.mr-run-meta{color:#74786d;font-size:12px;line-height:1.6}.mr-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.65;background:#f3f4ec;padding:16px;border-radius:10px;margin:14px 0;color:#31392d}.mr-state{display:inline-block;font-size:11px;font-weight:650;border-radius:30px;padding:7px 11px;white-space:nowrap;background:#eeeade;color:#756653}.mr-state.sent,.mr-state.delivered,.mr-state.read{background:#e3edda;color:#36543a}.mr-state.accepted,.mr-state.queued{background:#e3eaf0;color:#365668}.mr-state.failed,.mr-state.unknown{background:#fae8df;color:#974f36}.mr-state.cancelled{background:#edede8;color:#75766d}.mr-reason{color:#996135;font-size:12px;line-height:1.6}.mr-good{color:#466345;font-size:12px}.mr-run-actions{margin-top:16px;gap:10px}.mr-run-actions a:last-child{margin-left:auto}.mr-run small{display:block;color:#7d776b;line-height:1.6;margin-top:12px}.mr-empty{padding:36px 24px;border:1px dashed #d4d8c9;border-radius:16px;color:#6e7667;background:#f8f9f0}.mr-empty h3{color:#3d4b36;margin-top:0}.mr-footer{padding:20px 0 28px;font-size:12px;color:#787b70;line-height:1.7;border-top:1px solid #dedfd5}.mr-route label,.mr-form label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#454c3f}.mr-route select,.mr-form input,.mr-form select,.mr-form textarea{box-sizing:border-box;width:100%;min-width:0;font:inherit;border:1px solid #ccd1c2;border-radius:8px;background:white;padding:11px 12px}.mr-route .mr-check,.mr-form .mr-check{display:flex;flex-direction:row;align-items:flex-start;gap:10px;line-height:1.5;margin:16px 0}.mr-check input{width:17px;height:17px;flex-shrink:0;margin-top:2px;accent-color:#496641}.mr-form{display:grid;gap:16px}.mr-form .mr-check{margin:0}.mr-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mr-fields{display:flex;gap:6px;flex-wrap:wrap}.mr-fields small{width:100%;color:#777d6d}.mr-fields button{font-size:11px;padding:6px 9px;background:#f3f5ec}.mr-modal{position:fixed;z-index:1200;inset:0;background:#202b24a6;display:flex;align-items:center;justify-content:center;padding:20px}.mr-dialog{background:#fffef9;border-radius:18px;padding:28px;width:min(690px,100%);max-height:90vh;overflow:auto;box-shadow:0 20px 100px #15211a50}.mr-recipient{padding:14px 18px;border:1px solid #d4ddc9;border-radius:12px;background:#f4f7ee}.mr-recipient span{font-size:11px;color:#6c7b60;text-transform:uppercase;letter-spacing:1px}.mr-recipient h3{margin:8px 0}.mr-recipient p{font-size:13px;overflow-wrap:anywhere}.mr-history-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #e3e4da}.mr-history-row p{font-size:12px;color:#797e71;margin:6px 0 0}#mr-error,#mr-dialog-error,.mr-form-error{color:#a64f3a;font-size:13px;line-height:1.6;white-space:pre-wrap}.mr-workspace button:focus-visible,.mr-dialog button:focus-visible,.mr-dialog input:focus-visible,.mr-dialog textarea:focus-visible{outline:3px solid #91ad76;outline-offset:3px}.mr-preview{font-size:16px}#mr-order-history{margin-bottom:20px}
@media(max-width:720px){.mr-heading h1{font-size:29px}.mr-heading{gap:18px}.mr-overview{grid-template-columns:1fr 1fr;gap:9px}.mr-overview article:first-child{grid-column:1/-1}.mr-overview article{padding:16px}.mr-overview b{font-size:22px}.mr-route-grid,.mr-rule-grid,.mr-two{grid-template-columns:1fr}.mr-title-row h2{font-size:19px}.mr-run,.mr-route,.mr-rule{padding:17px}.mr-run-actions a:last-child{margin-left:0;width:100%;margin-top:6px}.mr-tabs span{width:100%;margin-left:0}.mr-dialog{padding:18px;max-height:94vh}.mr-modal{padding:10px}.mr-history-row{flex-wrap:wrap}.mr-breadcrumb{margin-bottom:20px}}

/* A reauthentication prompt must remain above the still-open rule/approval editor. */
.modal:has([data-v10-form="reauth"]){z-index:1400}
