.spmad-publication,
.spmad-promote {
  width: 100%;
  max-width: 980px;
  min-width: 0;
  margin: 20px auto 96px;
  padding: 0 16px;
  box-sizing: border-box;
}

.spmad-publication *,
.spmad-promote * {
  box-sizing: border-box;
}

.spmad-publication-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #123240, #1d837c 68%, #22b6a2);
  color: #fff;
  box-shadow: 0 18px 42px rgba(18, 50, 64, .18);
}

.spmad-publication-hero > * {
  min-width: 0;
}

.spmad-publication-hero h1 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1.08;
}

.spmad-publication-hero p {
  margin: 0;
  color: #eafaf7;
  line-height: 1.45;
}

.spmad-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #eafffb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.spmad-meter {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .13);
}

.spmad-meter strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.spmad-meter span {
  display: block;
  margin-top: 6px;
  color: #e9fbf8;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.spmad-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 16px 0;
}

.spmad-status-card,
.spmad-panel,
.spmad-card {
  min-width: 0;
  border: 1px solid #dce7ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 36, 48, .06);
}

.spmad-status-card {
  padding: 14px;
}

.spmad-status-card span {
  display: block;
  color: #657383;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.spmad-status-card strong {
  display: block;
  margin-top: 4px;
  color: #172430;
  font-size: 20px;
}

.spmad-panel,
.spmad-card {
  padding: 18px;
  margin-top: 16px;
}

.spmad-panel h2,
.spmad-card h1 {
  margin: 0 0 8px;
  color: #172430;
  font-size: 22px;
}

.spmad-panel p {
  margin: 0;
  color: #566779;
}

.spmad-plan-grid,
.spmad-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 16px 0 0;
}

.spmad-publication-plan,
.spmad-plan {
  position: relative;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce7ec;
  border-radius: 8px;
  background: #fbfdfd;
}

.spmad-publication-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
}

.spmad-publication-plan input {
  position: absolute;
  opacity: 0;
}

.spmad-publication-plan:has(input:checked) {
  border-color: #00a693;
  box-shadow: 0 0 0 3px rgba(0, 166, 147, .12);
}

.spmad-plan-type {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f8f4;
  color: #08796c;
  font-size: 12px;
  font-weight: 900;
}

.spmad-publication-plan.professional .spmad-plan-type {
  background: #fff1c6;
  color: #7a5600;
}

.spmad-publication-plan strong,
.spmad-plan strong {
  display: block;
  margin-bottom: 8px;
  color: #172430;
  font-size: 20px;
  line-height: 1.12;
}

.spmad-publication-plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #526374;
}

.spmad-publication-plan li {
  margin: 5px 0;
}

.spmad-price {
  margin-top: auto;
  color: #007f73;
  font-size: 22px;
  font-weight: 900;
}

.spmad-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.spmad-actions select {
  max-width: 260px;
}

.spmad-alert,
.spmad-ok,
.spmad-current {
  margin: 12px 0;
  padding: 11px 13px;
  border-radius: 8px;
}

.spmad-alert {
  border-left: 4px solid #d33;
  background: #fff1f1;
  color: #842020;
}

.spmad-ok {
  border-left: 4px solid #00a693;
  background: #eefaf7;
  color: #095f55;
}

.spmad-current {
  border-left: 4px solid #ffbf00;
  background: #fff8db;
  color: #5f4a00;
}

.spmad-plain-btn,
.spmad-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.spmad-plain-btn {
  border: 1px solid #c9d7df;
  background: #fff;
  color: #172430;
}

.spmad-primary {
  border: 0;
  background: #17a8c4;
  color: #fff;
}

.spmad-note {
  margin-top: 12px;
  padding: 13px;
  border-radius: 8px;
  background: #f3f8fa;
  color: #526374;
  font-size: 14px;
}

.spmad-gateways {
  margin: 16px 0;
}

.spmad-gateways select {
  width: 100%;
  max-width: 320px;
}

@media (max-width: 760px) {
  .spmad-publication,
  .spmad-promote {
    width: 100%;
    max-width: 100%;
    margin: 10px auto 92px;
    padding: 0;
  }

  .spmad-publication-hero {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 10px;
    padding: 16px;
    border-radius: 8px;
  }

  .spmad-publication-hero h1 {
    margin-bottom: 0;
    font-size: 23px;
  }

  .spmad-publication-hero p {
    display: none;
  }

  .spmad-kicker {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .spmad-meter {
    padding: 12px 10px;
    border-radius: 8px;
  }

  .spmad-meter strong {
    font-size: 30px;
  }

  .spmad-meter span {
    font-size: 10px;
    line-height: 1.25;
  }

  .spmad-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0;
  }

  .spmad-status-card {
    padding: 10px;
  }

  .spmad-status-card span {
    font-size: 10px;
  }

  .spmad-status-card strong {
    font-size: 18px;
  }

  .spmad-panel,
  .spmad-card {
    margin-top: 10px;
    padding: 14px;
  }

  .spmad-panel h2,
  .spmad-card h1 {
    font-size: 20px;
  }

  .spmad-plan-grid,
  .spmad-plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .spmad-publication-plan {
    min-height: 0;
  }

  .spmad-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .spmad-actions select,
  .spmad-actions button,
  .spmad-actions a,
  .spmad-gateways select {
    width: 100%;
    max-width: 100%;
  }
}
