.ml-app {
  max-width: 1500px;
}

.ml-hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(250, 190, 58, 0.9), transparent 28%),
    linear-gradient(135deg, #005fbd 0%, #00a4e8 45%, #ec67b1 100%);
}

.ml-warning {
  margin: 16px 0;
  padding: 14px 16px;
  border: 2px solid #fabe3a;
  border-radius: 12px;
  background: #fff7d8;
  color: #182033;
  font-weight: 800;
}

.ml-controls {
  display: grid;
  grid-template-columns: repeat(7, minmax(125px, 1fr));
  gap: 12px;
  padding: 16px;
}

.ml-controls label {
  display: grid;
  gap: 6px;
  color: #073c7c;
  font-weight: 900;
}

.ml-controls input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cdebf5;
  border-radius: 9px;
  padding: 9px 10px;
  color: #172033;
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.ml-controls small {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.ml-metrics {
  margin-top: 16px;
}

.ml-rankings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ml-rankings h3 {
  margin: 0 0 8px;
  color: #073c7c;
  font-size: 18px;
}

.ml-mini-list {
  display: grid;
  gap: 10px;
}

.ml-mini-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8eef7;
  border-radius: 12px;
  background: #fbfdff;
}

.ml-mini-card img,
.ml-product {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.ml-mini-card strong,
.ml-name strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #172033;
  font-size: 13px;
  line-height: 1.15;
}

.ml-mini-card span,
.ml-name span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.ml-output-panel textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid #cdebf5;
  border-radius: 12px;
  padding: 14px;
  color: #172033;
  background: #fbfdff;
  font: 800 14px/1.5 "DM Sans", Arial, sans-serif;
}

.ml-table-wrap {
  overflow-x: auto;
}

.ml-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.ml-table th,
.ml-table td {
  padding: 10px;
  border-bottom: 1px solid #d8eef7;
  vertical-align: middle;
  text-align: left;
}

.ml-table th {
  color: #073c7c;
  background: #f2fbff;
  font-size: 12px;
  text-transform: uppercase;
}

.ml-name {
  display: grid;
  grid-template-columns: 56px minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
}

.ml-price-strong {
  color: #65158f;
  font-weight: 900;
  white-space: nowrap;
}

.ml-profit {
  color: #168e5b;
  font-weight: 900;
  white-space: nowrap;
}

.ml-risk {
  color: #b42318;
  font-weight: 900;
}

.ml-check {
  width: 22px;
  height: 22px;
  accent-color: #ec67b1;
}

@media (max-width: 1100px) {
  .ml-controls,
  .ml-rankings {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .ml-controls,
  .ml-rankings {
    grid-template-columns: 1fr;
  }
}
