#license-expiry {
  --license-accent: #60438d;
  --license-soft: #f0e8fa;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  min-width: 0;
  color: #392e49;
  background: linear-gradient(105deg, #faf6ff 0%, #fff 72%);
  border: 1px solid #e5d9f0;
  border-radius: 12px;
}

#license-expiry[data-tone="soon"] {
  --license-accent: #874719;
  --license-soft: #fff0d9;
  background: linear-gradient(105deg, #fff8ed 0%, #fff 72%);
  border-color: #f0dec5;
}

#license-expiry[data-tone="inactive"] {
  --license-accent: #6c6078;
  --license-soft: #f1edf5;
  background: #fff;
}

#license-expiry .license-expiry-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--license-soft);
  color: var(--license-accent);
}

#license-expiry svg { width: 22px; height: 22px; }
#license-expiry h2 { margin: 0; color: #61536e; font-size: 13px; font-weight: 650; }
#license-expiry .license-expiry-duration {
  display: block;
  margin-top: 2px;
  font-size: clamp(20px, 3vw, 25px);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

#license-expiry time {
  display: block;
  margin-top: 4px;
  color: #685a76;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#license-expiry .license-expiry-actions { display: grid; justify-items: end; gap: 7px; }
#license-expiry .license-expiry-status {
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--license-soft);
  color: var(--license-accent);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

#license-expiry a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid #dfd2eb;
  border-radius: 8px;
  color: #60438d;
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

#license-expiry a:hover { background: #f6effb; }
#license-expiry [hidden] { display: none !important; }

@media (max-width: 520px) {
  #license-expiry { padding: 12px; gap: 9px; }
  #license-expiry .license-expiry-icon { width: 33px; height: 33px; border-radius: 9px; }
  #license-expiry svg { width: 19px; height: 19px; }
  #license-expiry time { font-size: 11px; }
}
