:root{
  --smg-red:#e21d2f;
  --smg-blue:#0b63ce;
  --smg-dark:#111827;
  --smg-muted:#667085;
  --smg-bg:#f5f7fb;
  --smg-card:#ffffff;
  --smg-border:#e6eaf2;
  --smg-shadow:0 18px 55px rgba(16,24,40,.10);
}

.smg-remap{
  max-width:1180px;
  margin:0 auto;
  padding:42px 18px;
  font-family:inherit;
  color:var(--smg-dark);
}

.smg-remap *{box-sizing:border-box}

.smg-remap__hero{
  display:grid;
  grid-template-columns:1fr 280px;
  gap:24px;
  align-items:center;
  padding:42px;
  border-radius:30px;
  background:
    radial-gradient(circle at 20% 10%, rgba(226,29,47,.14), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(11,99,206,.16), transparent 32%),
    linear-gradient(135deg,#ffffff 0%,#f6f9ff 100%);
  box-shadow:var(--smg-shadow);
  border:1px solid var(--smg-border);
  overflow:hidden;
}

.smg-remap__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--smg-red);
  background:rgba(226,29,47,.08);
  border:1px solid rgba(226,29,47,.16);
  padding:8px 13px;
  border-radius:999px;
  font-weight:800;
  font-size:13px;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.smg-remap h2{
  margin:18px 0 12px;
  font-size:clamp(30px,4vw,52px);
  line-height:1.03;
  letter-spacing:-.04em;
}

.smg-remap p{
  margin:0;
  color:var(--smg-muted);
  font-size:17px;
  line-height:1.65;
  max-width:720px;
}

.smg-remap__hero-card{
  min-height:190px;
  border-radius:26px;
  background:linear-gradient(145deg,var(--smg-dark),#172033);
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  position:relative;
  overflow:hidden;
  box-shadow:0 20px 45px rgba(17,24,39,.22);
}

.smg-remap__hero-card:before{
  content:"";
  position:absolute;
  inset:auto -55px -70px auto;
  width:180px;
  height:180px;
  background:linear-gradient(135deg,var(--smg-red),var(--smg-blue));
  filter:blur(4px);
  border-radius:50%;
  opacity:.9;
}

.smg-remap__hero-card strong{
  font-size:36px;
  letter-spacing:-.04em;
  z-index:1;
}

.smg-remap__hero-card em,
.smg-remap__hero-chip{
  z-index:1;
  color:#dce7ff;
  font-style:normal;
  font-weight:800;
}

.smg-remap__hero-chip{
  display:inline-flex;
  margin-bottom:12px;
  padding:7px 12px;
  border-radius:999px;
  color:#fff;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
}

.smg-remap__panel{
  margin-top:24px;
  padding:28px;
  background:var(--smg-card);
  border:1px solid var(--smg-border);
  border-radius:28px;
  box-shadow:var(--smg-shadow);
}

.smg-remap__topbar{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-bottom:18px;
}

.smg-remap__topbar strong{
  display:block;
  font-size:20px;
  letter-spacing:-.02em;
}

.smg-remap__topbar span{
  display:block;
  margin-top:4px;
  color:var(--smg-muted);
  font-size:14px;
}

.smg-remap__counter{
  flex:0 0 auto;
  border-radius:999px;
  padding:10px 13px;
  background:rgba(11,99,206,.08);
  color:var(--smg-blue);
  font-weight:900;
  font-size:13px;
}

.smg-remap__search{margin-bottom:16px}

.smg-remap__search label span,
.smg-remap label span{
  display:block;
  margin-bottom:8px;
  color:#344054;
  font-size:14px;
  font-weight:800;
}

.smg-remap input,
.smg-remap select{
  width:100%;
  border:1px solid var(--smg-border);
  border-radius:16px;
  padding:15px 14px;
  background:#fff;
  color:var(--smg-dark);
  font-size:15px;
  font-weight:700;
  outline:none;
  transition:.18s ease;
}

.smg-remap input:focus,
.smg-remap select:focus{
  border-color:rgba(11,99,206,.45);
  box-shadow:0 0 0 4px rgba(11,99,206,.10);
}

.smg-remap select:disabled{
  background:#f3f5f9;
  color:#98a2b3;
}

.smg-remap__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.smg-remap__result{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.smg-remap__result--empty{display:block}

.smg-remap__placeholder{
  padding:24px;
  border-radius:20px;
  background:var(--smg-bg);
  color:var(--smg-muted);
  font-weight:700;
  text-align:center;
}

.smg-remap__stat{
  position:relative;
  padding:22px;
  min-height:154px;
  border-radius:22px;
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);
  border:1px solid var(--smg-border);
  overflow:hidden;
}

.smg-remap__stat:after{
  content:"";
  position:absolute;
  width:84px;
  height:84px;
  right:-28px;
  bottom:-28px;
  border-radius:50%;
  background:rgba(11,99,206,.10);
}

.smg-remap__stat--stage:after{background:rgba(226,29,47,.12)}
.smg-remap__stat--ecu:after{background:linear-gradient(135deg,rgba(11,99,206,.13),rgba(226,29,47,.11))}

.smg-remap__stat small{
  display:block;
  color:var(--smg-muted);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.smg-remap__stat strong{
  display:block;
  margin-top:12px;
  font-size:30px;
  line-height:1.1;
  letter-spacing:-.03em;
}

.smg-remap__gain{
  display:inline-flex;
  margin-top:12px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(226,29,47,.09);
  color:var(--smg-red);
  font-weight:900;
  font-size:13px;
}

.smg-remap__list{
  margin-top:20px;
  display:grid;
  gap:12px;
  max-height:520px;
  overflow:auto;
  padding-right:4px;
}

.smg-remap__item{
  display:grid;
  grid-template-columns:1.3fr .9fr .9fr .9fr;
  gap:12px;
  align-items:center;
  padding:16px;
  border:1px solid var(--smg-border);
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#fbfcff);
  cursor:pointer;
  transition:.18s ease;
}

.smg-remap__item:hover{
  border-color:rgba(226,29,47,.30);
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(16,24,40,.08);
}

.smg-remap__item-title{
  font-weight:900;
  color:var(--smg-dark);
}

.smg-remap__item-sub,
.smg-remap__item span{
  color:var(--smg-muted);
  font-size:13px;
  font-weight:700;
}

.smg-remap__badge{
  justify-self:start;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(11,99,206,.08);
  color:var(--smg-blue)!important;
  font-weight:900!important;
}

.smg-remap__note{
  margin-top:18px;
  padding:18px 20px;
  border-radius:20px;
  background:#fff;
  border:1px solid var(--smg-border);
  color:var(--smg-muted);
  line-height:1.6;
}

.smg-remap__note strong{color:var(--smg-dark)}

@media(max-width:900px){
  .smg-remap__hero{grid-template-columns:1fr;padding:28px}
  .smg-remap__grid{grid-template-columns:1fr 1fr}
  .smg-remap__result{grid-template-columns:1fr}
  .smg-remap__item{grid-template-columns:1fr 1fr}
}

@media(max-width:560px){
  .smg-remap{padding:28px 12px}
  .smg-remap__hero,.smg-remap__panel{border-radius:22px}
  .smg-remap__grid{grid-template-columns:1fr}
  .smg-remap__topbar{display:block}
  .smg-remap__counter{display:inline-flex;margin-top:12px}
  .smg-remap__item{grid-template-columns:1fr}
}
