/* Customer license list, license page, and the activation stepper. */
.license-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.license-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  padding: var(--space-4) 0;
  border-bottom: var(--size-hairline) solid var(--color-border);
}
.license-row > div:first-child {
  min-width: 0;
  flex: 1 1 var(--size-col-2xl);
}
.license-row h2,
.license-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 104%;
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.license-row h2 a {
  text-decoration: none;
}
.license-row h2 a:hover {
  text-decoration: underline;
}
.license-row .ident {
  margin-left: var(--space-1);
  color: var(--color-text-tertiary);
  font-weight: 400;
}
.license-row p {
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.license-state {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.license-state::before {
  content: "";
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-full);
  background: var(--color-border-strong);
  flex: 0 0 auto;
}
.license-state[data-state="active"]::before {
  background: var(--color-success-600);
}
.license-state[data-state="unbound"]::before,
.license-state[data-state="released"]::before,
.license-state[data-state="offered"]::before,
.license-state[data-state="claim"]::before {
  background: var(--color-solar-500);
}
.license-state[data-state="attention"]::before,
.license-state[data-state="limit"]::before {
  background: var(--color-warning-600);
}
.license-state[data-state="inactive"]::before {
  background: var(--color-error-600);
}
.license-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.license-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}
.license-filter label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.license-filter select {
  width: auto;
}
/* Activation stepper: the three steps are real, ordered, and numbered. */
.activation-steps {
  display: grid;
  gap: 0;
}
.activation-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4) var(--space-5);
  padding: var(--space-8) 0;
  border-top: var(--size-hairline) solid var(--color-border);
}
.activation-step:first-child {
  border-top: 0;
  padding-top: var(--space-4);
}
.activation-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-10);
  height: var(--space-10);
  border-radius: var(--radius-full);
  background: var(--color-bg-action);
  color: var(--color-text-on-action);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.activation-step-body {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}
.activation-step h2 {
  margin: 0;
}
.activation-step p {
  margin: 0;
  max-width: var(--measure-lede);
  color: var(--color-text-secondary);
}
.activation-step .form-stack {
  margin-top: var(--space-2);
}
.activation-step .actions {
  margin-top: 0;
}
/* Connect choice: two radio cards; CSS shows the panel for the checked one. */
.connect-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: var(--measure-form);
}
.connect-option {
  position: relative;
  display: grid;
}
/* The radio covers its card invisibly, so clicks and assistive tech hit the
   real control while the label carries the visual. */
.connect-choice input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.connect-choice label {
  display: grid;
  gap: var(--space-1);
  min-height: var(--size-control);
  padding: var(--space-4);
  border: var(--size-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-bg-elevated);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 650;
  cursor: pointer;
}
.connect-choice label span {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-secondary);
}
.connect-choice input[type="radio"]:checked + label {
  border-color: var(--color-bg-action);
  box-shadow: inset 0 0 0 1px var(--color-bg-action);
}
.connect-choice input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}
.activation-connect:has(#connect_link:checked) [data-connect="file"],
.activation-connect:has(#connect_file:checked) [data-connect="link"] {
  display: none;
}
.connect-panel {
  margin-top: var(--space-4);
}
@media (max-width: 640px) {
  .connect-choice {
    grid-template-columns: 1fr;
  }
  .activation-step {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}
