.licenses-main {
  padding-top: 26px;
}

.licenses-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.licenses-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.licenses-kicker {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.licenses-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.licenses-head p {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

.licenses-status {
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5eaf2;
  color: #506075;
  font-weight: 600;
}

.licenses-status.is-error {
  background: #fff1f1;
  border-color: #f1c3c3;
  color: #a52020;
}

.licenses-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.licenses-summary-card {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 40, 0.05);
}

.licenses-summary-card span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.licenses-summary-card strong {
  display: block;
  margin-top: 10px;
  color: #172033;
  font-size: 1.8rem;
  line-height: 1;
}

.licenses-summary-card small {
  display: block;
  margin-top: 10px;
  color: #6a778b;
  line-height: 1.5;
}

.licenses-list {
  display: grid;
  gap: 18px;
}

.license-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 40, 0.05);
}

.license-card-media {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #eef2f7;
}

.license-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.license-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.license-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.license-card-head h2 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.25;
  color: #172033;
}

.license-card-head p {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.55;
}

.license-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3844c2;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.license-status-badge[data-status="approved"],
.license-status-badge[data-status="paid"] {
  background: #eaf8ef;
  color: #166534;
}

.license-status-badge[data-status="negotiating"] {
  background: #fff7ed;
  color: #b45309;
}

.license-status-badge[data-status="rejected"],
.license-status-badge[data-status="cancelled"] {
  background: #fff1f1;
  color: #b42318;
}

.license-card-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.license-inline-link {
  color: #3844c2;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.license-detail-grid,
.license-fee-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.license-detail-card,
.license-fee-card,
.license-note-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e6ebf2;
  background: #fbfcfe;
}

.license-detail-card span,
.license-fee-card span,
.license-note-card span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.license-detail-card strong,
.license-fee-card strong,
.license-note-card strong {
  display: block;
  margin-top: 8px;
  color: #172033;
  font-size: 0.98rem;
  line-height: 1.45;
}

.license-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.license-note-card p {
  margin: 8px 0 0;
  color: #66758a;
  line-height: 1.6;
  white-space: pre-wrap;
}

.license-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f6f8ff 0%, #fff8f3 100%);
  border: 1px solid #e5e9f4;
}

.license-pay-copy strong {
  display: block;
  color: #172033;
}

.license-pay-copy p {
  margin: 6px 0 0;
  color: #66758a;
  line-height: 1.55;
}

.licenses-empty {
  padding: 46px 20px;
  border: 1px dashed #d7dde7;
  border-radius: 22px;
  background: #ffffff;
  text-align: center;
}

.licenses-empty h2 {
  margin: 0;
  font-size: 1.3rem;
}

.licenses-empty p {
  margin: 10px 0 0;
  color: #66758a;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .licenses-summary-grid,
  .license-detail-grid,
  .license-fee-grid,
  .license-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .license-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .licenses-main {
    padding-top: 18px;
  }

  .licenses-summary-grid,
  .license-detail-grid,
  .license-fee-grid,
  .license-note-grid {
    grid-template-columns: 1fr;
  }

  .license-card-head {
    flex-direction: column;
  }
}
