:root{--rml-navy:#10213f;--rml-gold:#a17d37;--rml-gold-light:#c9a45b;--rml-text:#485466;--rml-muted:#6f7a8a;--rml-bg:#f5f7fa;--rml-card:#fff;--rml-border:#dce2ea;--rml-danger:#9b2c2c;--rml-warning:#8a5b09;--rml-success:#22653b;--rml-radius:16px;--rml-shadow:0 10px 28px rgba(16,33,63,.08)}
.mdsr-rml{max-width:980px;margin:0 auto;padding:24px 16px 72px;color:var(--rml-text);font-family:inherit;line-height:1.75;background:#fff}
.mdsr-rml *{box-sizing:border-box}.mdsr-rml button,.mdsr-rml input,.mdsr-rml select,.mdsr-rml textarea{font:inherit}.mdsr-rml button{cursor:pointer}.mdsr-rml__hero{text-align:center;padding:30px 10px 22px}.mdsr-rml__eyebrow{font-weight:800;color:var(--rml-gold);letter-spacing:.08em}.mdsr-rml__beta{display:inline-block;margin-left:6px;padding:2px 8px;border:1px solid var(--rml-gold);border-radius:999px;font-size:.72rem;vertical-align:middle}.mdsr-rml__hero h1{margin:12px 0 14px;color:var(--rml-navy);font-size:clamp(1.7rem,5.4vw,2.65rem);line-height:1.32;letter-spacing:.01em}.mdsr-rml__lead{margin:0 auto;max-width:700px;font-weight:700;font-size:1.06rem;color:var(--rml-navy)}.mdsr-rml__meta{margin-top:14px;font-size:.78rem;color:var(--rml-muted)}.mdsr-rml__br-sp{display:inline}
.mdsr-rml__progress{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(7px);padding:10px 0 12px;margin-bottom:12px}.mdsr-rml__progress-bar{height:7px;background:#e8ecf1;border-radius:99px;overflow:hidden}.mdsr-rml__progress-bar span{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--rml-gold),var(--rml-gold-light));transition:width .22s ease}.mdsr-rml__progress-text{text-align:right;font-size:.78rem;color:var(--rml-muted);margin-top:4px}
.mdsr-rml__step{display:none}.mdsr-rml__step.is-active{display:block;animation:rmlFade .18s ease}@keyframes rmlFade{from{opacity:.25;transform:translateY(4px)}to{opacity:1;transform:none}}.mdsr-rml__panel{background:var(--rml-card);border:1px solid var(--rml-border);border-radius:var(--rml-radius);box-shadow:var(--rml-shadow);padding:22px 18px}.mdsr-rml__panel h2{margin:0 0 16px;color:var(--rml-navy);font-size:1.45rem;line-height:1.4}.mdsr-rml__panel h3{color:var(--rml-navy)}.mdsr-rml__intro{margin-top:-4px;color:var(--rml-muted)}
.mdsr-rml fieldset{border:0;padding:0;margin:0 0 22px;min-width:0}.mdsr-rml legend,.mdsr-rml__field>label{display:block;margin-bottom:8px;color:var(--rml-navy);font-weight:800;font-size:1rem}.mdsr-rml__req{color:#a33939;font-size:.75em}.mdsr-rml__field{margin-bottom:20px}.mdsr-rml input[type=text],.mdsr-rml input[type=email],.mdsr-rml input[type=tel],.mdsr-rml input[type=number],.mdsr-rml input[type=date],.mdsr-rml input[type=time],.mdsr-rml select,.mdsr-rml textarea{width:100%;min-height:54px;border:1px solid #cbd3de;border-radius:10px;background:#fff;padding:12px 13px;color:#273446;font-size:16px;outline:none;transition:border-color .15s,box-shadow .15s}.mdsr-rml textarea{min-height:112px;resize:vertical}.mdsr-rml input:focus,.mdsr-rml select:focus,.mdsr-rml textarea:focus{border-color:var(--rml-gold);box-shadow:0 0 0 3px rgba(161,125,55,.13)}.mdsr-rml input.is-handwrite{background:#f0f2f5;color:#8a929e}.mdsr-rml__help,.mdsr-rml__small{font-size:.86rem;color:var(--rml-muted);margin:7px 0 0}.mdsr-rml__small{margin:15px 0}
.mdsr-rml__choices,.mdsr-rml__checkgrid{display:grid;gap:10px}.mdsr-rml__choices label,.mdsr-rml__checkgrid label,.mdsr-rml__handwrite,.mdsr-rml__confirm{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--rml-border);border-radius:11px;padding:13px 14px;min-height:52px;background:#fff;color:#344154;cursor:pointer}.mdsr-rml__choices input,.mdsr-rml__checkgrid input,.mdsr-rml__handwrite input,.mdsr-rml__confirm input{width:20px;height:20px;flex:0 0 20px;margin:2px 0 0;accent-color:var(--rml-navy)}.mdsr-rml__choices label.is-checked,.mdsr-rml__checkgrid label.is-checked,.mdsr-rml__confirm.is-checked{border-color:var(--rml-gold);background:#fffaf0}.mdsr-rml__conditional[hidden]{display:none!important}.mdsr-rml__conditional.is-visible{display:block}.mdsr-rml__grid2,.mdsr-rml__grid3{display:grid;gap:14px}.mdsr-rml__pref-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px}.mdsr-rml__pref-button{min-height:48px;border:1px solid var(--rml-border);border-radius:10px;background:#fff;color:var(--rml-navy);font-weight:750}.mdsr-rml__pref-button.is-selected{border-color:var(--rml-gold);background:#fff8e9;box-shadow:inset 0 0 0 1px var(--rml-gold)}
.mdsr-rml__privacy{border:1px solid #cad8ea;border-left:4px solid var(--rml-navy);background:#f7faff;border-radius:12px;padding:14px 15px}.mdsr-rml__privacy>strong,.mdsr-rml__privacy>span{display:block}.mdsr-rml__privacy>strong{color:var(--rml-navy)}.mdsr-rml details summary{cursor:pointer;font-weight:750;color:var(--rml-navy);padding:8px 0}.mdsr-rml__notice{border:1px solid #d8dee7;background:#f7f9fc;border-radius:11px;padding:13px 14px;margin:12px 0}.mdsr-rml__notice--success{border-color:#bddbc7;background:#f1faf4;color:var(--rml-success)}.mdsr-rml__notice--warning{border-color:#ead7ae;background:#fffaf0;color:var(--rml-warning)}.mdsr-rml__notice--error{border-color:#e2bcbc;background:#fff5f5;color:var(--rml-danger)}
.mdsr-rml__nav,.mdsr-rml__actions{display:flex;gap:10px;justify-content:space-between;margin-top:18px}.mdsr-rml__primary,.mdsr-rml__secondary,.mdsr-rml__back,.mdsr-rml__delete{border-radius:11px;min-height:52px;padding:12px 20px;font-weight:800}.mdsr-rml__primary{border:1px solid var(--rml-navy);background:var(--rml-navy);color:#fff}.mdsr-rml__secondary,.mdsr-rml__back{border:1px solid var(--rml-border);background:#fff;color:var(--rml-navy)}.mdsr-rml__delete{display:block;margin:24px auto 0;border:0;background:transparent;color:#7b5660;text-decoration:underline;font-weight:600}.mdsr-rml__primary:hover{filter:brightness(1.08)}.mdsr-rml__secondary:hover,.mdsr-rml__back:hover{background:#f7f9fc}
.mdsr-rml__handwrite-row{border-bottom:1px dashed var(--rml-border);padding:0 0 14px;margin-bottom:18px}.mdsr-rml__handwrite{padding:9px 12px;min-height:44px;background:#fafbfc}.mdsr-rml__review-grid{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:18px}.mdsr-rml__review-grid>div{border:1px solid var(--rml-border);border-radius:10px;padding:11px 12px;background:#fafbfc}.mdsr-rml__review-grid span{display:block;font-size:.78rem;color:var(--rml-muted)}.mdsr-rml__review-grid strong{display:block;color:var(--rml-navy);margin-top:2px}.mdsr-rml__risk{border:1px solid var(--rml-border);border-left:5px solid #8290a3;border-radius:12px;padding:14px;margin:12px 0;background:#fff}.mdsr-rml__risk h3{margin:4px 0 6px;font-size:1.02rem}.mdsr-rml__risk p{margin:5px 0}.mdsr-rml__risk-level{font-size:.74rem;font-weight:900}.mdsr-rml__risk--yellow{border-left-color:#c39a35}.mdsr-rml__risk--orange{border-left-color:#c06b22}.mdsr-rml__risk--red{border-left-color:#a83333;background:#fffafa}.mdsr-rml__risk-action{font-size:.9rem}.mdsr-rml__confirm{margin:18px 0;background:#fafbfc}.mdsr-rml__doc-version{display:inline-block;background:var(--rml-navy);color:#fff;border-radius:999px;padding:5px 11px;font-weight:800;font-size:.82rem}.mdsr-rml__history{margin-top:24px}.mdsr-rml__history-item{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;border:1px solid var(--rml-border);background:#fff;border-radius:10px;padding:11px 12px;text-align:left;margin-bottom:8px}.mdsr-rml__history-item span{color:var(--rml-muted);font-size:.85rem}.mdsr-rml__history-item small{color:var(--rml-gold);font-weight:800}.mdsr-rml__final-details{border-top:1px solid var(--rml-border);margin-top:22px;padding-top:8px}.mdsr-rml__subform{padding:8px 0 4px}.mdsr-rml__form-result{margin-top:8px;font-weight:800;color:var(--rml-navy)}.mdsr-rml__future{margin-top:28px;padding:18px;border-radius:14px;background:#f8f6f1;border:1px solid #e8ddc6}.mdsr-rml__toast{position:fixed;left:16px;right:16px;bottom:18px;z-index:9999;max-width:700px;margin:auto;background:var(--rml-navy);color:#fff;border-radius:12px;padding:13px 15px;box-shadow:0 14px 38px rgba(0,0,0,.2)}.mdsr-rml__toast--error{background:#842929}.mdsr-rml__toast--success{background:#285f3b}.mdsr-rml__toast--info{background:#304a70}.mdsr-rml-print{display:none}
@media(min-width:600px){.mdsr-rml{padding-left:22px;padding-right:22px}.mdsr-rml__panel{padding:30px}.mdsr-rml__choices{grid-template-columns:repeat(2,minmax(0,1fr))}.mdsr-rml__checkgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.mdsr-rml__pref-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mdsr-rml__grid2{grid-template-columns:repeat(2,minmax(0,1fr))}.mdsr-rml__grid3{grid-template-columns:repeat(3,minmax(0,1fr))}.mdsr-rml__review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mdsr-rml__br-sp{display:none}.mdsr-rml__toast{left:50%;right:auto;transform:translateX(-50%);width:min(700px,calc(100% - 32px))}}
@media(min-width:900px){.mdsr-rml__pref-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.mdsr-rml__hero{padding-top:42px}}
@media(prefers-reduced-motion:reduce){.mdsr-rml *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* beta.6 SWELL boundary + QA hardening */
.mdsr-rml [hidden]{display:none!important}
.mdsr-rml #rml-nav[hidden]{display:none!important}
.mdsr-rml .mdsr-rml__panel>h2{background:var(--rml-navy)!important;color:#fff!important;padding:12px 16px!important;border-radius:10px!important;border:0!important;box-shadow:none!important}
.mdsr-rml .mdsr-rml__conditional.is-visible{margin:0 0 20px 14px;padding:14px 14px 4px 18px;border-left:3px solid var(--rml-gold);background:#fbfaf7;border-radius:0 10px 10px 0}
.mdsr-rml .mdsr-rml__conditional.is-visible:before{content:"┗ 関連する確認";display:block;margin:0 0 10px;color:var(--rml-gold);font-size:.78rem;font-weight:900;letter-spacing:.02em}
.mdsr-rml input[data-money]{font-size:1.1rem;font-weight:800;letter-spacing:.02em}
.mdsr-rml__copy-same{display:flex;align-items:center;gap:8px;margin-top:8px;font-weight:750;color:var(--rml-navy)}
.mdsr-rml__copy-same input{width:20px;height:20px;accent-color:var(--rml-navy)}
.mdsr-rml__warn-label{display:inline-block;margin-right:5px;color:var(--rml-danger);font-weight:900}
.mdsr-rml__print-help,.mdsr-rml__consult-boundary,.mdsr-rml__delete-wrap{margin:16px 0;padding:14px 16px;border:1px solid var(--rml-border);border-radius:12px;background:#f7f9fc}
.mdsr-rml__print-help p,.mdsr-rml__consult-boundary p,.mdsr-rml__delete-wrap p{margin:4px 0}
.mdsr-rml__form-result--success{display:flex;flex-direction:column;gap:4px;margin-top:14px;padding:14px 16px;border:1px solid #bddbc7;border-radius:11px;background:#f1faf4;color:var(--rml-success)}
.mdsr-rml__form-result--success strong{font-size:1.08rem}
.mdsr-rml button:disabled{cursor:not-allowed;opacity:.62}
.mdsr-rml__history-item{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start}
.mdsr-rml__history-item>div{display:flex;flex-direction:column;gap:2px}.mdsr-rml__history-item details{grid-column:1/-1}.mdsr-rml__history-item ul{margin:6px 0 0;padding-left:1.4em}.mdsr-rml__current{display:inline-block!important;color:#fff!important;background:var(--rml-success);border-radius:999px;padding:1px 7px;font-size:.72rem!important;margin-left:4px}.mdsr-rml__restore{min-height:40px;padding:7px 12px}
.mdsr-rml__modal{position:fixed;inset:0;z-index:10050;background:rgba(15,27,48,.54);display:grid;place-items:center;padding:18px}.mdsr-rml__modal[hidden]{display:none!important}.mdsr-rml__modal-card{width:min(600px,100%);max-height:86vh;overflow:auto;background:#fff;border-radius:16px;padding:22px;box-shadow:0 22px 70px rgba(0,0,0,.28)}.mdsr-rml__modal-card h2{margin:0 0 12px!important;background:transparent!important;color:var(--rml-navy)!important;padding:0!important}.mdsr-rml__modal-card p{margin:8px 0}.mdsr-rml__delete-wrap{text-align:center}.mdsr-rml__delete-wrap .mdsr-rml__delete{margin:10px auto 0}

/* beta.6: company leave pay treatment */
#mdsr-rml-app .mdsr-rml__leave-list{display:grid;gap:10px;margin:12px 0 16px}
#mdsr-rml-app .mdsr-rml__leave-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:12px;padding:10px 12px;border:1px solid #dfe5eb;border-radius:10px;background:#fff}
#mdsr-rml-app .mdsr-rml__leave-row label{display:flex;gap:8px;align-items:center;margin:0}
@media(max-width:600px){#mdsr-rml-app .mdsr-rml__leave-row{grid-template-columns:1fr}#mdsr-rml-app .mdsr-rml__leave-row select{width:100%}}

#mdsr-rml-app .mdsr-rml__inline-error{margin:6px 0 0;color:#b42318;font-weight:700;font-size:.93rem}


/* beta.7 UX / validation / re-edit navigation */
.mdsr-rml__complete-kicker{display:inline-block;margin:0 8px 10px 0;padding:5px 10px;border-radius:999px;background:#eef7f1;color:var(--rml-success);font-weight:900}
.mdsr-rml__validation-error{margin:8px 0 0!important;color:#a82323!important;font-weight:900!important}.mdsr-rml .is-invalid{border-color:#b42318!important;background:#fff6f6!important;border-radius:10px;padding:10px}.mdsr-rml input.is-invalid,.mdsr-rml select.is-invalid,.mdsr-rml textarea.is-invalid{border-color:#b42318!important;background:#fffafa!important}
.mdsr-rml__inline-note{margin:7px 0 0;font-size:.9rem}.mdsr-rml__inline-note--warn{color:#8a4b08;font-weight:800}
.mdsr-rml__leave-row select:disabled{opacity:.42;background:#f1f3f5}.mdsr-rml__leave-row.is-selected{border-color:#b9a06b;background:#fffdf7}
#rml-holiday-options label.is-saturday-checked{border-color:#497ab8;background:#f1f6ff}#rml-holiday-options label.is-sunday-checked,#rml-holiday-options label.is-holiday-checked{border-color:#b65a5a;background:#fff3f3}
.mdsr-rml__risk--yellow{background:#fffaf0;border-color:#d9bf7a}.mdsr-rml__risk--orange{background:#fff4e8;border-color:#d79a65}.mdsr-rml__risk--red{background:#fff0f0;border-color:#cf7777}.mdsr-rml__risk-level{display:inline-block;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.82)}.rml-risk-edit{margin-top:8px}
.mdsr-rml__reedit-nav{position:sticky;top:8px;z-index:30;margin:10px auto 18px;max-width:1000px;background:#fff;border:1px solid var(--rml-border);box-shadow:0 6px 20px rgba(15,33,63,.08);border-radius:12px;padding:10px}.mdsr-rml__reedit-current{font-weight:900;color:var(--rml-navy);margin-bottom:8px}.mdsr-rml__reedit-desktop{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px}.mdsr-rml__reedit-desktop button,.mdsr-rml__reedit-mobile button{border:1px solid #dfe5eb;background:#fff;border-radius:8px;padding:7px 4px;color:var(--rml-navy);cursor:pointer}.mdsr-rml__reedit-desktop button b,.mdsr-rml__reedit-mobile button b{color:var(--rml-gold);display:block}.mdsr-rml__reedit-desktop button span,.mdsr-rml__reedit-mobile button span{font-size:.76rem;font-weight:800}.mdsr-rml__reedit-desktop button.is-current,.mdsr-rml__reedit-mobile button.is-current{background:#eef3fb;border-color:#879bb7}.mdsr-rml__reedit-mobile{display:none}.mdsr-rml__history-code{font-size:.72rem!important;color:#7c8798!important}.mdsr-rml__history-actions{display:flex;gap:6px;flex-wrap:wrap}.mdsr-rml__history-actions .mdsr-rml__secondary{font-size:.82rem;padding:7px 10px;min-height:38px}
@media(max-width:760px){.mdsr-rml__reedit-desktop{display:none}.mdsr-rml__reedit-mobile{display:block}.mdsr-rml__reedit-mobile summary{cursor:pointer;font-weight:900;color:var(--rml-navy);padding:8px 4px}.mdsr-rml__reedit-mobile>div{display:grid;grid-template-columns:1fr;gap:6px;padding-top:8px}.mdsr-rml__reedit-mobile button{display:grid;grid-template-columns:34px 1fr;align-items:center;text-align:left;padding:10px 12px}.mdsr-rml__reedit-mobile button b{display:inline}.mdsr-rml__reedit-mobile button span{font-size:.9rem}.mdsr-rml__history-item{grid-template-columns:1fr}.mdsr-rml__history-actions{grid-column:1/-1}}

/* beta.11 final-output and history contracts */
.mdsr-rml__output-package .mdsr-rml__choices label span{display:block}.mdsr-rml__output-package .mdsr-rml__choices small{display:block;margin-top:7px;color:var(--rml-muted);font-weight:600;line-height:1.65}.mdsr-rml__history-item{grid-template-columns:minmax(0,1fr) 230px;align-items:stretch}.mdsr-rml__history-item>div:first-child{min-width:0}.mdsr-rml__history-item details{margin-top:8px}.mdsr-rml__history-actions{width:230px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}.mdsr-rml__history-actions button{width:100%}.mdsr-rml__destructive,.mdsr-rml__history-delete{background:#a83333!important;border:1px solid #a83333!important;color:#fff!important}.mdsr-rml__destructive:hover,.mdsr-rml__history-delete:hover{background:#842929!important}.mdsr-rml__modal .mdsr-rml__destructive{min-height:44px;border-radius:8px;padding:10px 18px;font-weight:800;cursor:pointer}
@media(max-width:760px){.mdsr-rml__history-item{grid-template-columns:1fr}.mdsr-rml__history-actions{grid-column:1;width:100%}.mdsr-rml__history-actions button{width:100%}.mdsr-rml__output-package .mdsr-rml__choices{grid-template-columns:1fr}}


/* beta.8: resilient help, version, validation and deletion UI */
.mdsr-rml__help-wrap{position:relative;display:inline-flex;vertical-align:middle;margin-left:5px}
.mdsr-rml__help-trigger{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:999px;border:1px solid #a17d37;background:#fffaf0;color:#7e5f24;font-weight:900;line-height:1;cursor:pointer;padding:0;font-size:14px}
.mdsr-rml__help-trigger:focus-visible{outline:3px solid rgba(161,125,55,.28);outline-offset:2px}
.mdsr-rml__help-popover{position:absolute;z-index:80;left:0;top:calc(100% + 7px);width:min(320px,78vw);padding:11px 12px;border:1px solid #d8c9a7;border-radius:10px;background:#fffdf7;color:#344154;font-size:.86rem;line-height:1.55;font-weight:500;box-shadow:0 10px 30px rgba(16,33,63,.14)}
.mdsr-rml__help-popover[hidden]{display:none!important}
.mdsr-rml__risk--red .rml-risk-edit{border-color:#9f2f2f!important;background:#9f2f2f!important;color:#fff!important;font-weight:900!important}
.mdsr-rml__history-delete{border:1px solid #c77b7b;background:#fff6f6;color:#8c2929;border-radius:9px;min-height:38px;padding:7px 10px;font-size:.82rem;font-weight:800;cursor:pointer}
.mdsr-rml__history-parent-deleted{color:#9a4b4b!important;font-weight:800}
.mdsr-rml__diff-groups{display:grid;gap:12px;margin:12px 0}.mdsr-rml__diff-group{border:1px solid #dfe5eb;border-radius:10px;padding:10px 12px;background:#fafbfc}.mdsr-rml__diff-group h3{font-size:.95rem!important;margin:0 0 6px!important}.mdsr-rml__diff-group ul{margin:0;padding-left:1.4em}.mdsr-rml__diff-group li{margin:4px 0}
.mdsr-rml__form-result--error{margin-top:10px;padding:11px 12px;border:1px solid #e2bcbc;border-radius:10px;background:#fff5f5;color:#842929;font-weight:800}
.mdsr-rml__form-result--info{margin-top:10px;padding:11px 12px;border:1px solid #cbd8e8;border-radius:10px;background:#f5f8fc;color:#304a70;font-weight:800}
.mdsr-rml__subform .is-invalid{border-color:#b42318!important;background:#fff6f6!important}
@media(max-width:600px){.mdsr-rml__help-popover{position:fixed;left:16px;right:16px;top:auto;bottom:20px;width:auto;max-width:none;z-index:10060}}

/* beta.12 revision shortcut and paid consultation CTA */
.mdsr-rml__review-shortcut{margin-left:auto;margin-right:auto}.mdsr-rml__price-cta-wrap{margin:12px 0 20px}.mdsr-rml__price-cta{display:block;text-align:center;text-decoration:none}
@media(max-width:600px){.mdsr-rml__nav{flex-wrap:wrap}.mdsr-rml__review-shortcut{order:-1;width:100%}.mdsr-rml__price-cta{width:100%}}

/* beta.9 corrective UX: IME-safe validation, leave state, risk targets, step status */
#mdsr-rml-app .mdsr-rml__leave-pay{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
#mdsr-rml-app .mdsr-rml__leave-pay select{min-width:0;width:100%}
#mdsr-rml-app .mdsr-rml__leave-required{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:999px;background:#fff0f0;color:#9f2f2f;border:1px solid #cf7777;font-weight:900;font-size:.76rem;padding:3px 7px;margin:0 0 5px}
#mdsr-rml-app .mdsr-rml__leave-required[hidden]{display:none!important}
#mdsr-rml-app .mdsr-rml__leave-row.is-requires-selection{border-color:#cf7777;background:#fff8f8}
#mdsr-rml-app .is-risk-target{outline:3px solid rgba(161,125,55,.55)!important;outline-offset:4px!important;box-shadow:0 0 0 7px rgba(161,125,55,.13)!important;transition:box-shadow .2s ease,outline .2s ease}
#mdsr-rml-app .mdsr-rml__risk-meta{font-size:.9rem;background:#f8fafc;border-radius:8px;padding:7px 9px}
#mdsr-rml-app .mdsr-rml__risk--normal{background:#f3f8f5;border-color:#9fbea9}
#mdsr-rml-app .mdsr-rml__reedit-desktop button small,#mdsr-rml-app .mdsr-rml__reedit-mobile button small{display:block;font-size:.62rem;line-height:1.15;margin-top:3px;font-weight:900}
#mdsr-rml-app .mdsr-rml__reedit-desktop button.is-status-red,#mdsr-rml-app .mdsr-rml__reedit-mobile button.is-status-red{border-color:#b42318;background:#fff1f1}
#mdsr-rml-app .mdsr-rml__reedit-desktop button.is-status-red small,#mdsr-rml-app .mdsr-rml__reedit-mobile button.is-status-red small{color:#9f2f2f}
#mdsr-rml-app .mdsr-rml__reedit-desktop button.is-status-yellow,#mdsr-rml-app .mdsr-rml__reedit-mobile button.is-status-yellow{border-color:#c7a24c;background:#fff9eb}
#mdsr-rml-app .mdsr-rml__reedit-desktop button.is-status-yellow small,#mdsr-rml-app .mdsr-rml__reedit-mobile button.is-status-yellow small{color:#85640f}
#mdsr-rml-app .mdsr-rml__reedit-desktop button.is-status-normal small,#mdsr-rml-app .mdsr-rml__reedit-mobile button.is-status-normal small{color:#2f6a45}
#mdsr-rml-app .mdsr-rml__reedit-desktop button.is-status-pending small,#mdsr-rml-app .mdsr-rml__reedit-mobile button.is-status-pending small{color:#7c8798}
#mdsr-rml-app .mdsr-rml__reedit-desktop button:disabled,#mdsr-rml-app .mdsr-rml__reedit-mobile button:disabled{cursor:default;opacity:.72}
@media(max-width:600px){#mdsr-rml-app .mdsr-rml__leave-pay{width:100%;justify-content:flex-start;flex-wrap:wrap}#mdsr-rml-app .mdsr-rml__leave-required{margin:0}#mdsr-rml-app .mdsr-rml__leave-pay select{flex:1 1 180px}}

/* Inline correction guidance and compact leave choices. */
.mdsr-rml .rml-field-risk{outline:2px solid #b18b36;outline-offset:4px;border-radius:8px}
.mdsr-rml .rml-field-risk--red{outline-color:#b93232;background:#fff7f7}
.mdsr-rml .rml-inline-risk{padding:12px;margin-top:12px;background:#fff8e7;color:#493b17;font-size:.95rem;line-height:1.65}
.mdsr-rml .rml-field-risk--red>.rml-inline-risk{background:#fff0f0;color:#842828}
.mdsr-rml .rml-inline-risk p{margin:6px 0}
.mdsr-rml #rml-live-risk-summary{margin-top:12px;line-height:1.6}
.mdsr-rml .mdsr-rml__leave-pay{flex-shrink:0;flex-wrap:wrap;gap:8px}
.mdsr-rml .mdsr-rml__leave-pay select{width:7.5em!important;min-width:7.5em!important;padding-right:2em!important}
@media(max-width:480px){.mdsr-rml .mdsr-rml__leave-row{flex-wrap:wrap;gap:8px}.mdsr-rml .mdsr-rml__leave-pay{margin-left:auto}}
/* beta.17: iPhone Safari layout fixes found with Ito-san on 2026-11-29 */
@media(max-width:760px){#mdsr-rml-app .mdsr-rml__reedit-nav{position:static;box-shadow:none}}
#mdsr-rml-app .mdsr-rml__field{margin-bottom:20px!important}
#mdsr-rml-app fieldset{margin-bottom:22px!important}
#mdsr-rml-app .mdsr-rml__grid2,#mdsr-rml-app .mdsr-rml__grid3{margin-bottom:6px!important}
#mdsr-rml-app .mdsr-rml__nb{display:inline-block;white-space:nowrap}
#mdsr-rml-app .mdsr-rml__help-wrap{margin-left:4px;vertical-align:-2px}
#mdsr-rml-app .mdsr-rml__help-trigger{width:20px;height:20px;font-size:12px}
#mdsr-rml-app .mdsr-rml__leave-row input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;accent-color:var(--rml-navy)}
#mdsr-rml-app .mdsr-rml__reedit-mobile button{grid-template-columns:34px 1fr auto;column-gap:8px}
#mdsr-rml-app .mdsr-rml__reedit-mobile button small{white-space:nowrap;margin-top:0}
#mdsr-rml-app fieldset.mdsr-rml__conditional>legend{float:left;width:100%;padding:0}
#mdsr-rml-app fieldset.mdsr-rml__conditional>legend+*{clear:both}
#mdsr-rml-app input[type=date],#mdsr-rml-app input[type=time]{-webkit-appearance:none;appearance:none;display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
#mdsr-rml-app input[type=date]::-webkit-date-and-time-value,#mdsr-rml-app input[type=time]::-webkit-date-and-time-value{text-align:left}
#mdsr-rml-app .mdsr-rml__handwrite{gap:0;align-items:center}
#mdsr-rml-app .mdsr-rml__handwrite input{margin:0 10px 0 0}
#mdsr-rml-app .mdsr-rml__handwrite span{font-weight:600}
#mdsr-rml-app .mdsr-rml__field>label.mdsr-rml__handwrite{display:flex;margin:10px 0 0;font-size:1rem;font-weight:400;color:#344154}
@media(max-width:600px){#mdsr-rml-app .mdsr-rml__actions{flex-direction:column}#mdsr-rml-app .mdsr-rml__actions>button{width:100%}}

/* beta.18: narrower side and top spaces on phones (Ito-san 2026-11-29) */
@media(max-width:600px){#mdsr-rml-app.mdsr-rml{padding-left:0;padding-right:0;padding-top:0}#mdsr-rml-app .mdsr-rml__panel{padding-left:14px;padding-right:14px}#mdsr-rml-app .mdsr-rml__hero{padding:6px 4px 18px}}
#mdsr-rml-app .mdsr-rml__resume{margin-top:18px}#mdsr-rml-app .mdsr-rml__resume .mdsr-rml__help{margin-top:8px}
#mdsr-rml-app .mdsr-rml__nb .mdsr-rml__help-popover{white-space:normal}
/* beta.19: the save button sits right under the one-line iPhone note */
#mdsr-rml-app .mdsr-rml__save-block{margin-top:18px}#mdsr-rml-app .mdsr-rml__save-note{margin:0 0 8px;font-size:.9rem;line-height:1.6;color:var(--rml-muted)}@media(max-width:600px){#mdsr-rml-app .mdsr-rml__save-block>button{width:100%}}
/* beta.20: only the page containing this shortcode; site logo is untouched. */
body.rml-tool-page .c-pageTitle,
body.rml-tool-page .entry-header > .entry-title,
body.rml-tool-page .page-header > .page-title,
body.rml-tool-page .wp-block-post-title { display:none; }
#mdsr-rml-app .mdsr-rml__hero { padding-top:12px;padding-bottom:12px;margin-bottom:12px; }
#mdsr-rml-app .mdsr-rml__hero h1 { font-size:clamp(20px,3vw,30px);line-height:1.4;margin:8px 0; }
#mdsr-rml-app .rml-title-chunk { display:inline-block;white-space:nowrap; }
#mdsr-rml-app .mdsr-rml__lead { margin:6px 0; }
#rml-compact-title { display:none; }
#mdsr-rml-app.is-started .mdsr-rml__hero > :not(#rml-compact-title) { display:none; }
#mdsr-rml-app.is-started .mdsr-rml__hero { padding:8px 0;margin-bottom:8px; }
#mdsr-rml-app.is-started #rml-compact-title { display:block;font-weight:700;font-size:clamp(13px,3.4vw,18px);white-space:nowrap; }
@media(max-width:600px){
 #mdsr-rml-app .mdsr-rml__hero h1 {font-size:20px;}
 #mdsr-rml-app .rml-title-chunk {display:block;}
 #mdsr-rml-app .mdsr-rml__hero .mdsr-rml__lead {font-size:14px;line-height:1.5;}
 #mdsr-rml-app .mdsr-rml__hero .mdsr-rml__meta {font-size:11px;line-height:1.5;}
}
