.LicensePage {
  padding: calc(20px + clamp(2.5rem, 5vw, 4rem)) clamp(1rem, 4vw, 4rem) calc(20px + clamp(2.5rem, 5vw, 4rem));
  background: #f6f8fb;
  color: #0f172a;
  margin-top: 0;
}

.LicenseHero {
  max-width: 960px;
  margin: 0 auto clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.LicenseActions {
  display: flex;
  gap: 0.5rem;
  align-self: flex-start;
}

.LicenseBackButton,
.LicenseHomeButton {
  border: 1px solid #cbd5f5;
  background: transparent;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.LicenseBackButton[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.LicenseHomeButton {
  background: #0f172a;
  color: #fff;
}

.LicenseEyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #64748b;
}

.LicenseTitle {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
}

.LicenseDescription {
  margin: 0;
  font-size: 1rem;
  color: #475569;
  max-width: 680px;
}

.LicenseError {
  color: #dc2626;
  font-size: 0.9rem;
}

.LicenseDiagnostics {
  max-width: 1100px;
  margin: 0 auto clamp(2rem, 6vw, 3rem);
  display: grid;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.LicenseDiagnosticsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(0.75rem, 3vw, 1.25rem);
}

.LicenseMetricCard {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.LicenseMetricLabel {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: #94a3b8;
}

.LicenseMetricValue {
  font-size: 1.7rem;
  font-weight: 600;
}

.LicenseMetricHint {
  font-size: 0.8rem;
  color: #94a3b8;
}

.LicenseSystemCard {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: #fff;
}

.LicenseStatus {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 1rem;
}

.LicenseStatusLed {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #94a3b8;
}

.LicenseStatusLed[data-mode=online] {
  background: #16a34a;
}

.LicenseStatusLocale {
  margin-left: auto;
  border: 1px solid #cbd5f5;
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.LicenseMetaGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.LicenseMetaCell {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.LicenseMetaLabel {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.LicenseMetaValue {
  margin: 0;
  font-size: 0.95rem;
}

.LicenseGallery {
  max-width: 1100px;
  margin: 0 auto clamp(2rem, 6vw, 4rem);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.LicenseGalleryHeader {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.LicenseGalleryHeader h2 {
  margin: 0;
  font-size: 1.35rem;
}
.LicenseGalleryHeader p {
  margin: 0.35rem 0 0;
  color: #475569;
}

.LicenseBadge {
  align-self: flex-start;
  border: 1px solid #cbd5f5;
  color: #0f172a;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.LicenseGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.LicenseCard {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.LicenseCardPreview {
  aspect-ratio: 4/3;
  background-color: #e2e8f0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.LicenseCardBody {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.LicenseCardHeading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.LicenseCardHeading h3 {
  margin: 0;
  font-size: 1rem;
}
.LicenseCardHeading time {
  font-size: 0.85rem;
  color: #475569;
}

.LicenseCardMeta {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}

.LicenseFileMeta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #0f172a;
}

.LicenseFileTag {
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  font-weight: 600;
  color: #475569;
}

.LicenseDownload {
  align-self: flex-start;
  text-decoration: none;
  border: 1px solid #cbd5f5;
  color: #0f172a;
  padding: 0.4rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.LicenseMuted {
  color: #94a3b8;
  font-size: 0.85rem;
}

.LicenseEmpty {
  border: 1px dashed #cbd5f5;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  color: #475569;
  background: #f8fafc;
}

.LicenseSkeletonRow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.LicenseSkeletonCard {
  height: 240px;
  border-radius: 12px;
  background: #e2e8f0;
}

@media (max-width: 768px) {
  .LicensePage {
    padding: 2rem 1rem;
  }
  .LicenseGalleryHeader {
    flex-direction: column;
  }
}