.license-form label,
.license-fieldset {
  display: grid;
  gap: 0.45rem;
  font-weight: 800;
}

.license-form input,
.license-form select,
.license-form textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--license-border);
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--license-text);
}

.license-form textarea {
  min-height: 90px;
  resize: vertical;
}

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

.license-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.license-stepper {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.license-stepper span {
  flex: 1;
  white-space: nowrap;
  text-align: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--license-muted);
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.license-stepper span.is-active {
  color: #fff;
  background: var(--license-primary);
}

.license-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.license-check {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.45rem !important;
  border: 1px solid var(--license-border);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.license-results {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

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

.license-result-card {
  background: #fff;
  border: 1px solid var(--license-border);
  border-radius: var(--license-radius);
  padding: 18px;
  box-shadow: 0 6px 16px rgba(15,23,42,.04);
}

.license-result-card span {
  display: block;
  color: var(--license-muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.license-result-card strong {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--license-primary-dark);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.license-check-list {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.license-check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.license-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--license-accent);
  font-weight: 900;
}

.license-timeline {
  display: grid;
  gap: 0.8rem;
}

.license-timeline__item {
  border-left: 4px solid var(--license-primary);
  background: var(--license-primary-soft);
  padding: 0.75rem 1rem;
  border-radius: 0 12px 12px 0;
}

.license-timeline__item strong,
.license-timeline__item span {
  display: block;
}

.license-side-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--license-primary-dark) !important;
}

.license-score-table {
  display: grid;
  gap: 10px;
}

.license-score-table__head,
.license-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 120px;
  gap: 12px;
  align-items: center;
}

.license-score-table__head {
  color: var(--license-muted);
  font-weight: 800;
  font-size: 0.85rem;
}

.license-score-row {
  border: 1px solid var(--license-border);
  border-radius: var(--license-radius-sm);
  padding: 12px;
}

.license-score-row small {
  display: block;
  color: var(--license-muted);
}

.license-meter-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
  margin: 0.75rem 0;
}

.license-meter {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.license-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--license-primary), var(--license-accent));
  border-radius: 999px;
}

.license-ranking {
  padding-left: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.license-ranking li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px auto;
  gap: 0.6rem;
  align-items: center;
}

.license-step-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.license-step-flow div {
  border: 1px solid var(--license-border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  text-align: center;
}

.license-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.license-table-wrap {
  overflow-x: auto;
}

.license-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.license-table th,
.license-table td {
  border-bottom: 1px solid var(--license-border);
  text-align: left;
  padding: 0.75rem;
}

.license-table th {
  color: var(--license-muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .license-form-grid,
  .license-result-grid,
  .license-score-table__head,
  .license-score-row,
  .license-meter-row,
  .license-step-flow {
    grid-template-columns: 1fr;
  }

  .license-score-table__head {
    display: none;
  }

  .license-result-card strong {
    font-size: 1.8rem;
  }
}


.license-help-text {
  color: var(--license-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.license-tracker-card-list {
  display: none;
  gap: 12px;
  margin-top: 14px;
}

.license-tracker-record-card {
  border: 1px solid var(--license-border);
  border-radius: var(--license-radius-sm);
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.license-tracker-record-card strong,
.license-tracker-record-card span {
  display: block;
}

.license-tracker-record-card span,
.license-tracker-record-card p,
.license-tracker-record-card__meta span {
  color: var(--license-muted);
}

.license-tracker-record-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--license-border);
  padding-top: 8px;
}

.license-tracker-record-card__meta strong {
  color: var(--license-primary-dark);
}

@media (max-width: 720px) {
  .license-tracker-table-wrap { display: none; }
  .license-tracker-card-list { display: grid; }
  .license-ranking li { grid-template-columns: 1fr; }
  .license-action-row .license-btn { width: 100%; }
}


.license-field-help {
  color: var(--license-muted);
  font-size: 0.82rem;
  font-weight: 600;
}



.license-threshold-note {
  grid-column: 2 / 4;
  color: var(--license-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.license-ranking li small {
  grid-column: 1 / -1;
  color: var(--license-muted);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .license-threshold-note { grid-column: auto; }
}


.license-tracker-current {
  display: grid;
  gap: 0.35rem;
  border-left: 4px solid var(--license-primary);
}

.license-tracker-current strong {
  color: var(--license-muted);
  font-size: 0.85rem;
}

.license-tracker-current span {
  color: var(--license-primary-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.license-tracker-current p {
  margin: 0;
}

.license-empty-cell {
  color: var(--license-muted);
  text-align: center !important;
  padding: 1.25rem !important;
}


/* Past exam tracker: area score integration */
.license-area-inputs {
  margin: 1rem 0;
}

.license-check--plain {
  border-radius: 12px;
  width: fit-content;
}

.license-score-row--tracker {
  grid-template-columns: minmax(180px, 1fr) 120px 120px;
}

.license-inline-diagnosis {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: var(--license-radius);
  padding: 1rem;
  margin: 1rem 0;
}

.license-result-grid--tracker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.license-tracker-current {
  display: grid;
  gap: .35rem;
}

.license-tracker-current span {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--license-primary-dark);
}

.license-tracker-record-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 900;
  color: var(--license-primary-dark);
}

.license-action-row--compact {
  margin-top: .65rem;
}

@media (max-width: 760px) {
  .license-score-row--tracker {
    grid-template-columns: 1fr;
  }
  .license-result-grid--tracker {
    grid-template-columns: 1fr;
  }
}


.license-inline-check {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem !important;
  font-weight: 800;
  cursor: pointer;
}

.license-inline-check input {
  width: auto;
  min-height: auto;
}

.license-tracker-area-toggle {
  margin-top: 1rem;
}

.license-tracker-area-panel {
  margin-top: 1rem;
  border: 1px solid var(--license-border);
  border-radius: var(--license-radius);
  background: #fff;
  padding: 1rem;
}

.license-tracker-area-group {
  display: grid;
  gap: 10px;
}

.license-action-row--compact {
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .6rem;
}

.license-result-grid .license-result-card small {
  display: block;
  margin-top: .2rem;
  color: var(--license-muted);
  font-size: .75rem;
}

@media (max-width: 720px) {
  .license-score-table__head,
  .license-score-row {
    grid-template-columns: 1fr;
  }

  .license-score-table__head {
    display: none;
  }

  .license-tracker-area-panel {
    padding: .85rem;
  }
}

/* v12: tracker / weakpoint integration */
.license-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--license-text);
}

.license-inline-check input {
  width: 1.1rem;
  height: 1.1rem;
}

.license-area-score-panel {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--license-border);
  border-radius: var(--license-radius);
  background: #f8fafc;
}

.license-area-score-panel h2 {
  margin-top: 0;
  font-size: 1rem;
}

.license-score-table--compact .license-score-row {
  grid-template-columns: minmax(0, 1fr) 8rem 8rem;
}

.license-next-review-card {
  border-left: 4px solid var(--license-primary);
}

.license-tracker-record-card .license-text-link,
.license-table .license-text-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .license-score-table--compact .license-score-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
