/* MY TUNER v632 — Unified workshop dialogs, based on the native map-editor palette.
   Presentation only: no changes to ECU, binary transfer, interpolation, strategy or compare logic.
   Keep functional modal containers and IDs intact. */
:root{
 --mt632-bg:#09121d;
 --mt632-panel:#0e1a27;
 --mt632-surface:#121f2d;
 --mt632-inset:#0b1622;
 --mt632-border:#3b4558;
 --mt632-border-accent:#964051;
 --mt632-brand:#d42c4e;
 --mt632-brand-glow:#f14d69;
 --mt632-text:#eef4f9;
 --mt632-muted:#9faebd;
 --mt632-hover:#1b2b3c;
}
html :is(#mrsCalibrationTransferV589,#mrsStrategyV591,#mrsMapVersionCompareV559,#mrsInterpolationModal,#mrsDirectInterpolationModal):not([hidden]){
 background:rgba(2,7,13,.83)!important;
 backdrop-filter:blur(6px)!important;-webkit-backdrop-filter:blur(6px)!important;
 color:var(--mt632-text)!important;
}
html #mrsCalibrationTransferV589 .mct589-window,
html #mrsStrategyV591 .mstr591-shell,
html #mrsMapVersionCompareV559 .mvc559-shell,
html #mrsInterpolationModal .mrs-interp-card,
html #mrsDirectInterpolationModal .mrs-direct-interp-card{
 background:linear-gradient(152deg,#0f1b2a 0%,#0a1420 68%,#0d1724 100%)!important;
 color:var(--mt632-text)!important;
 border:1px solid var(--mt632-border-accent)!important;
 border-radius:10px!important;
 box-shadow:0 26px 74px rgba(0,0,0,.7),inset 0 1px rgba(255,255,255,.045)!important;
 box-sizing:border-box!important;
}
html #mrsCalibrationTransferV589 .mct589-window,
html #mrsStrategyV591 .mstr591-shell{
 width:min(1150px,calc(100vw - 48px))!important;max-width:1150px!important;
 max-height:calc(100dvh - 46px)!important;
 display:flex!important;flex-direction:column!important;min-width:0!important;
 overflow:hidden!important;
}
html #mrsCalibrationTransferV589 .mct589-head,
html #mrsStrategyV591 .mstr591-shell>header,
html #mrsMapVersionCompareV559 .mvc559-heading,
html #mrsInterpolationModal .mrs-interp-head,
html #mrsDirectInterpolationModal .mrs-direct-interp-head{
 display:flex!important;align-items:center!important;justify-content:space-between!important;gap:15px!important;
 padding:16px 20px!important;margin:0!important;min-height:83px!important;
 box-sizing:border-box!important;
 border:0!important;border-bottom:1px solid #753142!important;
 border-radius:0!important;
 background:linear-gradient(100deg,#341520 0%,#1b1928 52%,#101d2b 100%)!important;
 box-shadow:inset 0 3px 0 rgba(231,54,85,.64)!important;
}
html #mrsMapVersionCompareV559 .mvc559-heading{min-height:68px!important;padding:11px 17px!important;flex-wrap:nowrap!important}
html #mrsMapVersionCompareV559 .mvc559-heading>div,
html #mrsCalibrationTransferV589 .mct589-head>div,
html #mrsStrategyV591 .mstr591-shell>header>div,
html #mrsInterpolationModal .mrs-interp-brand,
html #mrsDirectInterpolationModal .mrs-direct-brand{min-width:0!important;flex:1 1 auto!important}
html #mrsCalibrationTransferV589 .mct589-head small,
html #mrsStrategyV591 .mstr591-shell>header small,
html #mrsMapVersionCompareV559 .mvc559-heading small,
html #mrsInterpolationModal .mrs-interp-brand small,
html #mrsDirectInterpolationModal .mrs-direct-brand small{
 display:block!important;font:850 9px/1.2 "Segoe UI",Arial,sans-serif!important;
 letter-spacing:.12em!important;color:#f66a81!important;text-transform:uppercase!important;
}
html #mrsCalibrationTransferV589 .mct589-head h2,
html #mrsStrategyV591 .mstr591-shell>header h2,
html #mrsMapVersionCompareV559 .mvc559-heading h2,
html #mrsInterpolationModal .mrs-interp-head h3,
html #mrsDirectInterpolationModal .mrs-direct-interp-head h3{
 margin:5px 0 4px!important;color:#fbfdff!important;
 font:800 20px/1.18 "Segoe UI",Arial,sans-serif!important;
 letter-spacing:-.015em!important;text-transform:none!important;
}
html #mrsCalibrationTransferV589 .mct589-head p,
html #mrsStrategyV591 .mstr591-shell>header p,
html #mrsMapVersionCompareV559 .mvc559-heading p,
html #mrsInterpolationModal .mrs-interp-brand p,
html #mrsDirectInterpolationModal .mrs-direct-brand p{
 margin:0!important;color:#aebdcb!important;font:500 11px/1.4 "Segoe UI",Arial,sans-serif!important;
}
html #mrsCalibrationTransferV589 #mct589Close,
html #mrsStrategyV591 [data-ms-close],
html #mrsMapVersionCompareV559 #mvc559Close,
html #mrsInterpolationModal #mrsInterpClose,
html #mrsDirectInterpolationModal #mrsDirectInterpClose{
 flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:auto!important;min-width:34px!important;height:34px!important;min-height:34px!important;
 padding:0 12px!important;margin:0!important;border:1px solid #684458!important;
 border-radius:7px!important;background:#211b29!important;color:#e7f0f7!important;
 font:750 11px "Segoe UI",Arial,sans-serif!important;box-shadow:none!important;cursor:pointer!important;
}
html #mrsInterpolationModal #mrsInterpClose,
html #mrsDirectInterpolationModal #mrsDirectInterpClose{
 width:34px!important;min-width:34px!important;padding:0!important;font-size:20px!important;
}
html :is(#mrsCalibrationTransferV589,#mrsStrategyV591,#mrsMapVersionCompareV559,#mrsInterpolationModal,#mrsDirectInterpolationModal)
 :is(button,input,select,textarea){font-family:"Segoe UI",Arial,sans-serif!important;box-sizing:border-box!important}
html :is(#mrsCalibrationTransferV589,#mrsStrategyV591,#mrsMapVersionCompareV559,#mrsInterpolationModal,#mrsDirectInterpolationModal)
 button{
 border:1px solid #624454!important;border-radius:6px!important;
 color:#e8f0f7!important;background:linear-gradient(180deg,#221e2b,#191d29)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
 font-weight:750!important;cursor:pointer!important;
 transition:background .13s ease,border-color .13s ease!important;
}
html :is(#mrsCalibrationTransferV589,#mrsStrategyV591,#mrsMapVersionCompareV559,#mrsInterpolationModal,#mrsDirectInterpolationModal)
 button:hover:not(:disabled){border-color:#c45b70!important;background:linear-gradient(180deg,#342333,#251e2d)!important}
html :is(#mrsCalibrationTransferV589,#mrsStrategyV591,#mrsMapVersionCompareV559,#mrsInterpolationModal,#mrsDirectInterpolationModal)
 button:focus-visible{outline:2px solid #f1657d!important;outline-offset:2px!important}
html :is(#mrsCalibrationTransferV589,#mrsStrategyV591,#mrsMapVersionCompareV559,#mrsInterpolationModal,#mrsDirectInterpolationModal)
 button:disabled{opacity:.45!important;cursor:not-allowed!important}
html :is(#mrsCalibrationTransferV589,#mrsStrategyV591,#mrsMapVersionCompareV559,#mrsInterpolationModal,#mrsDirectInterpolationModal)
 :is(input[type="text"],input[type="number"],input[type="file"],select,textarea){
 min-width:0!important;max-width:100%!important;border-radius:6px!important;
 border:1px solid #4b5b6c!important;background:#0b1624!important;color:#eef5f9!important;
 box-shadow:inset 0 1px 2px rgba(0,0,0,.16)!important;
}
html :is(#mrsCalibrationTransferV589,#mrsStrategyV591,#mrsMapVersionCompareV559,#mrsInterpolationModal,#mrsDirectInterpolationModal)
 :is(input,select,textarea):focus-visible{outline:1px solid #da4b65!important;outline-offset:1px!important;border-color:#da4b65!important}
html :is(#mrsCalibrationTransferV589,#mrsStrategyV591,#mrsMapVersionCompareV559,#mrsInterpolationModal,#mrsDirectInterpolationModal)
 :is(input[type="checkbox"],input[type="radio"]){accent-color:#df3656!important}
html #mrsCalibrationTransferV589 .mct589-content,
html #mrsStrategyV591 .mstr591-shell>main{background:transparent!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:18px 20px!important}
html #mrsCalibrationTransferV589 .mct589-files,
html #mrsStrategyV591 .mstr591-files,
html #mrsStrategyV591 .mstr591-apply-controls{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;
 align-items:stretch!important;min-width:0!important;
}
html #mrsCalibrationTransferV589 .mct589-files>label,
html #mrsStrategyV591 .mstr591-files>label,
html #mrsStrategyV591 .mstr591-apply-controls>label{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 gap:8px!important;min-width:0!important;max-width:100%!important;
 padding:14px!important;border:1px solid #384357!important;border-radius:9px!important;
 background:linear-gradient(140deg,#101e2c,#0b1623)!important;
 color:#dce7f0!important;font:750 11px/1.3 "Segoe UI",Arial,sans-serif!important;
}
html #mrsCalibrationTransferV589 .mct589-files>label::first-letter,
html #mrsStrategyV591 .mstr591-files>label::first-letter{color:#ed5370!important}
html #mrsCalibrationTransferV589 .mct589-files input[type="file"],
html #mrsStrategyV591 .mstr591-files input[type="file"],
html #mrsStrategyV591 .mstr591-apply-controls input[type="file"]{
 margin-top:auto!important;width:100%!important;height:37px!important;min-height:37px!important;
 font-size:10px!important;padding:7px 5px!important;background:#0a1320!important;border-color:#384456!important;
}
html #mrsCalibrationTransferV589 .mct589-files input::file-selector-button,
html #mrsStrategyV591 .mstr591-files input::file-selector-button,
html #mrsStrategyV591 .mstr591-apply-controls input::file-selector-button{
 background:#27202d!important;color:#f9e8ee!important;border:1px solid #744457!important;border-radius:5px!important;
 padding:3px 8px!important;margin-right:7px!important;cursor:pointer!important;
}
html #mrsCalibrationTransferV589 .mrs-project-bin-picker-v631,
html #mrsStrategyV591 .mrs-project-bin-picker-v631{margin:0!important;gap:6px!important;min-height:0!important}
html #mrsCalibrationTransferV589 .mrs-project-bin-caption-v631,
html #mrsStrategyV591 .mrs-project-bin-caption-v631{font-size:10px!important;color:#f27b90!important}
html #mrsCalibrationTransferV589 .mrs-project-bin-select-v631,
html #mrsStrategyV591 .mrs-project-bin-select-v631{
 height:36px!important;min-height:36px!important;border:1px solid #604054!important;
 background:#111723!important;font-size:10px!important;color:#f6e9ee!important;
}
html #mrsCalibrationTransferV589 .mrs-project-bin-badge-v631,
html #mrsStrategyV591 .mrs-project-bin-badge-v631{font-size:10px!important;color:#97a6b8!important;line-height:1.4!important}
html #mrsCalibrationTransferV589 .mct589-intro,
html #mrsStrategyV591 .mstr591-warning{
 padding:11px 13px!important;margin:14px 0!important;border:1px solid #4d3b48!important;
 border-left:3px solid #b7445f!important;border-radius:6px!important;
 background:#171a26!important;color:#b5b7c8!important;font-size:11px!important;line-height:1.5!important;
}
html #mrsStrategyV591 .mstr591-shell>nav{
 display:flex!important;align-items:center!important;gap:6px!important;
 padding:9px 20px!important;border-bottom:1px solid #383647!important;background:#0f1925!important;
}
html #mrsStrategyV591 .mstr591-shell>nav>button{
 min-height:35px!important;border:1px solid #574357!important;border-radius:6px!important;
 background:#191d29!important;color:#c4cad5!important;
}
html #mrsStrategyV591 .mstr591-shell>nav>button.active{
 background:linear-gradient(120deg,#90263f,#502034)!important;border-color:#e74d6b!important;color:#fff!important;
}
html #mrsCalibrationTransferV589 .mct589-command,
html #mrsStrategyV591 .mstr591-action{
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;
 margin:12px 0!important;padding:12px 13px!important;
 border:1px solid #343f51!important;border-radius:8px!important;
 background:#101b2a!important;
}
html #mrsCalibrationTransferV589 #mct589Scan,
html #mrsCalibrationTransferV589 #mct589Apply,
html #mrsStrategyV591 [data-ms-action="scan"],
html #mrsStrategyV591 [data-ms-action="run"],
html #mrsStrategyV591 [data-ms-action="save"],
html #mrsMapVersionCompareV559 .mvc578-toolbar [data-mvc578-action="apply"],
html #mrsMapVersionCompareV559 .mvc578-toolbar [data-mvc578-view].active,
html #mrsInterpolationModal #mrsInterpApply,
html #mrsDirectInterpolationModal #mrsDirectInterpApply{
 background:linear-gradient(115deg,#b12646,#7e223c)!important;color:#fff!important;
 border:1px solid #e65b75!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.09)!important;
}
html #mrsCalibrationTransferV589 #mct589Scan:hover,
html #mrsStrategyV591 [data-ms-action="scan"]:hover,
html #mrsInterpolationModal #mrsInterpApply:hover,
html #mrsDirectInterpolationModal #mrsDirectInterpApply:hover{
 background:linear-gradient(115deg,#cc3454,#962944)!important;
}
html #mrsCalibrationTransferV589 .mct589-selection-head,
html #mrsStrategyV591 #mstr591Candidates,
html #mrsCalibrationTransferV589 #mct589Select,
html #mrsCalibrationTransferV589 #mct589Results{
 background:transparent!important;border-color:#3b4658!important;
}
html #mrsCalibrationTransferV589 .mct589-candidates,
html #mrsStrategyV591 #mstr591List,
html #mrsStrategyV591 #mstr591Detail,
html #mrsStrategyV591 #mstr591Report{
 background:#0b1724!important;border:1px solid #374356!important;border-radius:8px!important;
}
html #mrsCalibrationTransferV589 .mct589-item{border-color:#26374a!important}
html #mrsCalibrationTransferV589 .mct589-item input,
html #mrsStrategyV591 .mstr591-item input{accent-color:#e24360!important}
html #mrsCalibrationTransferV589 .mct589-confirm{
 background:#121d2a!important;border:1px solid #5b4352!important;border-radius:8px!important;padding:12px!important;
}
html #mrsMapVersionCompareV559 .mvc559-shell{
 border:1px solid #a34358!important;background:linear-gradient(152deg,#0f1b2a 0%,#0a1420 68%,#0d1724 100%)!important;
 gap:7px!important;padding:8px!important;
}
html #mrsMapVersionCompareV559 .mvc559-mapnav,
html #mrsMapVersionCompareV559 .mvc559-controls{
 background:#0d1a28!important;border:1px solid #3b4657!important;border-radius:7px!important;
 padding:8px 11px!important;
}
html #mrsMapVersionCompareV559 .mvc559-card{
 background:#0b1623!important;border:1px solid #3b4555!important;border-radius:8px!important;overflow:hidden!important;
}
html #mrsMapVersionCompareV559 .mvc559-card h3{
 background:linear-gradient(100deg,#301824,#1a1b29)!important;color:#f7f2f6!important;
 border-bottom:1px solid #713648!important;
}
html #mrsMapVersionCompareV559 .mvc578-toolbar{
 background:#101b2a!important;border-color:#3d4455!important;
}
html #mrsMapVersionCompareV559 .mvc578-toolbar button,
html #mrsMapVersionCompareV559 .mvc578-toolbar select,
html #mrsMapVersionCompareV559 .mvc578-toolbar input{
 background:#201c29!important;border:1px solid #674356!important;color:#f0f2f7!important;
}
html #mrsMapVersionCompareV559 #mvc559Stats{color:#f1788f!important}
html #mrsMapVersionCompareV559 .mvc559-scroller{background:#091320!important}
html #mrsMapVersionCompareV559 .mvc559-scroller table th{background:#1c2b3b!important}
html #mrsInterpolationModal .mrs-interp-card,
html #mrsDirectInterpolationModal .mrs-direct-interp-card{
 width:min(620px,calc(100vw - 36px))!important;
 overflow:auto!important;max-height:calc(100dvh - 36px)!important;
}
html #mrsInterpolationModal .mrs-interp-head,
html #mrsDirectInterpolationModal .mrs-direct-interp-head{min-height:86px!important;padding:14px 18px!important}
html #mrsInterpolationModal .mrs-interp-body,
html #mrsDirectInterpolationModal .mrs-direct-interp-body{padding:16px 18px 13px!important}
html #mrsInterpolationModal .mrs-interp-section-title,
html #mrsDirectInterpolationModal .mrs-direct-section-title{
 color:#edf3fa!important;font-size:12px!important;letter-spacing:.02em!important;
}
html #mrsInterpolationModal .mrs-interp-section-title span,
html #mrsDirectInterpolationModal .mrs-direct-section-title span{
 border-color:#934357!important;background:#3a1d2d!important;color:#ffa0af!important;
}
html #mrsInterpolationModal .mrs-matrix-grid,
html #mrsDirectInterpolationModal .mrs-direct-matrix{
 background:#0d1b29!important;border:1px solid #3b4658!important;border-radius:8px!important;
 padding:13px!important;gap:10px!important;
}
html #mrsInterpolationModal .mrs-matrix-grid input,
html #mrsDirectInterpolationModal .mrs-direct-matrix input{
 height:37px!important;color:#f6f0f3!important;background:#0b1623!important;
 border:1px solid #4d5163!important;border-radius:6px!important;
}
html #mrsInterpolationModal .mrs-matrix-grid label.center input,
html #mrsDirectInterpolationModal .mrs-direct-matrix label.center input{border-color:#7f4158!important;background:#1b1b2a!important}
html #mrsInterpolationModal .mrs-interp-options,
html #mrsDirectInterpolationModal .mrs-direct-options{gap:10px!important;margin-top:12px!important}
html #mrsInterpolationModal .mrs-radio-group,
html #mrsDirectInterpolationModal .mrs-direct-options>div{
 background:#0f1b29!important;border:1px solid #394356!important;border-radius:8px!important;
}
html #mrsInterpolationModal .mrs-radio,
html #mrsDirectInterpolationModal .mrs-direct-options label{
 background:#121e2b!important;border:1px solid #344052!important;border-radius:7px!important;
 padding:7px 10px!important;color:#e2edf5!important;
}
html #mrsInterpolationModal .mrs-radio:has(input:checked),
html #mrsDirectInterpolationModal .mrs-direct-options label:has(input:checked){
 border-color:#be445f!important;background:#2b202e!important;
}
html #mrsInterpolationModal .mrs-radio input,
html #mrsDirectInterpolationModal .mrs-direct-options input[type="radio"]{border-color:#da4564!important}
html #mrsInterpolationModal .mrs-radio input:checked::after{background:#ec526d!important}
html #mrsDirectInterpolationModal .mrs-direct-options input[type="radio"]:checked{
 border-color:#df4d69!important;background:#2c182b!important;
}
html #mrsInterpolationModal .mrs-interp-actions,
html #mrsDirectInterpolationModal .mrs-direct-actions{
 padding:12px 18px 16px!important;background:#0d1927!important;border-top:1px solid #4f3446!important;
}
html #mrsInterpolationModal .mrs-interp-actions button,
html #mrsDirectInterpolationModal .mrs-direct-actions button{
 min-width:116px!important;min-height:38px!important;height:38px!important;
 border-radius:7px!important;letter-spacing:0!important;font-size:11px!important;
}
html #mrsInterpolationModal .mrs-interp-head small,
html #mrsDirectInterpolationModal .mrs-direct-brand small{color:#f4778b!important}
html #mrsInterpolationModal .mrs-interp-head p,
html #mrsDirectInterpolationModal .mrs-direct-brand p{color:#b1b9c6!important}
@media(max-width:900px){
 html #mrsCalibrationTransferV589 .mct589-files,
 html #mrsStrategyV591 .mstr591-files{
 grid-template-columns:repeat(2,minmax(0,1fr))!important
 }
}
@media(max-width:700px){
 html #mrsCalibrationTransferV589 .mct589-window,
 html #mrsStrategyV591 .mstr591-shell{width:calc(100vw - 14px)!important;max-height:96dvh!important}
 html #mrsCalibrationTransferV589 .mct589-files,
 html #mrsStrategyV591 .mstr591-files,
 html #mrsStrategyV591 .mstr591-apply-controls{grid-template-columns:1fr!important}
 html #mrsCalibrationTransferV589 .mct589-head,
 html #mrsStrategyV591 .mstr591-shell>header,
 html #mrsMapVersionCompareV559 .mvc559-heading{padding:11px!important}
 html #mrsInterpolationModal .mrs-interp-options,
 html #mrsDirectInterpolationModal .mrs-direct-options{grid-template-columns:1fr!important}
}
