/* The licensing service's forms and lists, drawn from the design system's
   tokens and rules: cards on white inside a rule border, mono for record
   labels and ids, chips bordered in their own text colour, pills for buttons. */

.panel-card { background: var(--white); border: 1px solid var(--rule); padding: var(--card-pad-sm); margin-top: var(--figure-gap); }
.panel-card + .panel-card { margin-top: var(--row-gap); }
.panel-card h3 { margin-bottom: 4px; }
.panel-card .meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--mute); margin: 0 0 14px; }

.fields { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.grow { flex: 1 1 240px; }
.field label { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.field input, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius-xs); padding: 9px 12px; max-width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field input[type="number"] { width: 7em; }
.field textarea { min-height: 4.5em; resize: vertical; }
.field.code input { font-family: var(--font-mono); font-size: 22px; letter-spacing: .3em; width: 9em; }

.chip-status {
  display: inline-block; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .06em; border: 1px solid currentColor; border-radius: var(--radius-pill); padding: 2px 10px;
}
.chip-status.active, .chip-status.approved { color: var(--verified); }
.chip-status.pending, .chip-status.suspended { color: var(--accent); }
.chip-status.expired, .chip-status.revoked, .chip-status.declined { color: var(--mute); }

.alert { border: 1px solid currentColor; padding: 12px 16px; margin-top: var(--lede-gap); }
.alert.ok { color: var(--verified); }
.alert.bad { color: var(--accent-dark); }

.qr { background: var(--white); border: 1px solid var(--rule); padding: 12px; display: inline-block; margin-top: var(--figure-gap); }
.qr img { display: block; width: 200px; height: 200px; }
.secret { font-family: var(--font-mono); font-size: 14px; word-break: break-all; color: var(--ink); }

.history { list-style: none; padding: 0; margin: var(--figure-gap) 0 0; }
.history li { border-top: 1px dashed var(--rule); padding: 10px 0; display: grid; grid-template-columns: 11em 1fr; gap: 4px 18px; }
.history time { font-family: var(--font-mono); font-size: 12.5px; color: var(--mute); }
.history .what { color: var(--body); }
@media (max-width: 600px) { .history li { grid-template-columns: 1fr; } }

button.btn:disabled { opacity: .6; cursor: progress; }
.panel-card .actions { margin-top: 16px; }
.panel-card .note, .panel-card + .note { margin-top: 12px; }
.panel-card ol, .panel-card ul { list-style: decimal; padding-left: 1.4em; margin: 10px 0 0; }
.panel-card ul { list-style: none; padding-left: 0; }
.panel-card ul li::before { content: "— "; color: var(--accent); }
.panel-card li + li { margin-top: 6px; }
