.emt-retrofit{--ink:#163349;--line:#d9e4ea;--blue:#1760a7;max-width:1200px;margin:auto;color:var(--ink)}
.emt-retrofit *{box-sizing:border-box}.emt-retrofit h1{font-size:clamp(1.6rem,3vw,2.3rem);line-height:1.25}.emt-retrofit h2{font-size:clamp(1.25rem,2vw,1.5rem)}.emt-retrofit h3{font-size:1.15rem}
.emt-retrofit__hero,.emt-retrofit__help,.emt-retrofit__footer{margin:15px 0 23px}.emt-retrofit__warning{background:#fff6ed;border-left:4px solid #bd612b;padding:15px;border-radius:8px}
.emt-retrofit__grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:20px;align-items:start}
.emt-retrofit__form,.emt-retrofit__result{min-width:0;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}
.emt-retrofit fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}.emt-retrofit legend{font-weight:750;font-size:1.2rem;margin-bottom:12px}
.emt-retrofit__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.emt-retrofit label{min-width:0;display:flex;flex-direction:column;gap:6px;line-height:1.35;font-weight:600;font-size:.92rem}
.emt-retrofit input:not([type=checkbox]):not([type=file]),.emt-retrofit select,.emt-retrofit textarea{width:100%;max-width:100%;min-width:0;min-height:44px;padding:9px;border:1px solid #9eb8c9;border-radius:8px;background:#fff;color:#163349;font:inherit;font-weight:400}
.emt-retrofit textarea{min-height:78px;resize:vertical}.emt-retrofit input:disabled{background:#eff3f6!important;color:#607486!important}
.emt-retrofit :is(input,select,textarea,button,a):focus-visible{outline:3px solid #167dd0;outline-offset:2px}
.emt-retrofit__hint{font-size:.9rem;color:#526b7a}.emt-retrofit__rows{display:flex;flex-direction:column;gap:12px;margin:12px 0}
.emt-retrofit__item{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border:1px solid var(--line);border-radius:12px;padding:13px;background:#f6fafc}
.emt-retrofit__item label:nth-child(2){grid-column:span 2}.emt-retrofit__item label{font-size:.86rem}.emt-retrofit__remove{grid-column:1/-1;justify-self:start}
.emt-retrofit__risks{display:grid;gap:10px;margin:12px 0 16px}.emt-retrofit__risks label{flex-direction:row;gap:10px;font-weight:500;align-items:start}
.emt-retrofit__risks input{width:19px;height:19px;flex:none;margin-top:3px;accent-color:var(--blue)}
.emt-retrofit button,.emt-retrofit__import{min-height:44px;padding:10px 13px;border:1px solid var(--blue);border-radius:8px;background:var(--blue);color:white;font:inherit;font-weight:650;font-size:.9rem;cursor:pointer}
.emt-retrofit button:disabled{opacity:.5;cursor:not-allowed}.emt-retrofit button:hover:not(:disabled){background:#124a83}
.emt-retrofit .emt-retrofit__secondary,.emt-retrofit .emt-retrofit__remove,.emt-retrofit .emt-retrofit__import{background:white;color:var(--blue)}
.emt-retrofit__actions,.emt-retrofit__exports{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}
.emt-retrofit__feedback{min-height:1.4em;font-size:.92rem}.emt-retrofit__stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.emt-retrofit__stats>div{padding:12px;background:#f5f9fc;border:1px solid var(--line);border-radius:9px}
.emt-retrofit__stats strong{display:block;font-size:1.55rem;font-variant-numeric:tabular-nums}.emt-retrofit__stats small{display:block;color:#4f6875}
.emt-retrofit__verdict{background:#eef6fa;padding:12px;border-left:3px solid #2387ac;border-radius:7px;margin:12px 0}
.emt-retrofit__danger{background:#fff0ed;border-left:4px solid #b92918;padding:10px;font-weight:700}
.emt-retrofit [data-bom]{max-width:100%;overflow-x:auto}.emt-retrofit table{width:100%;min-width:360px;border-collapse:collapse;font-size:.84rem}
.emt-retrofit table th,.emt-retrofit table td{text-align:left;vertical-align:top;padding:8px 6px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.emt-retrofit__result ul{padding-left:22px}.emt-retrofit__result li{margin:7px 0}
.emt-retrofit__import{position:relative;overflow:hidden;display:inline-flex;align-items:center;text-align:center;justify-content:center}
.emt-retrofit__import input{position:absolute;opacity:0;width:1px;height:1px;bottom:0;left:0}
.emt-retrofit__help,.emt-retrofit__footer{padding:18px;border:1px solid var(--line);border-radius:12px;background:#f7fafc}
.emt-retrofit :is(input,select,textarea,button){scroll-margin-top:120px}
@media(max-width:900px){.emt-retrofit__grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:530px){.emt-retrofit__fields{grid-template-columns:1fr}.emt-retrofit__form,.emt-retrofit__result{padding:13px}.emt-retrofit__item{grid-template-columns:repeat(2,minmax(0,1fr))}.emt-retrofit__item label:nth-child(2){grid-column:1/-1}.emt-retrofit__exports>*{flex:1 1 44%}}
@media(max-width:360px){.emt-retrofit__item{grid-template-columns:1fr}.emt-retrofit__exports>*{flex-basis:100%}}
