:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #17202a; background: #f4f7f8; }
* { box-sizing: border-box; }
body { margin: 0; }
.page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.header, .section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.eyebrow { color: #0f766e; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
h1 { margin: 8px 0; font-size: clamp(28px, 4vw, 42px); }
h2 { margin: 0 0 8px; font-size: 18px; }
.muted { color: #64748b; font-size: 13px; line-height: 1.5; }
.card { margin-top: 22px; padding: 24px; border: 1px solid #dbe4e8; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, .04); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
label { display: grid; gap: 7px; color: #334155; font-size: 13px; font-weight: 600; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 9px; color: #17202a; background: #fff; font: inherit; }
.wide { grid-column: 1 / -1; }
button { border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; font: 600 13px inherit; }
.primary { color: #fff; background: #0f766e; }
.secondary { color: #0f766e; border: 1px solid #99f6e4; background: #f0fdfa; }
.badge, .status-pill { display: inline-block; padding: 5px 9px; border-radius: 999px; color: #92400e; background: #fef3c7; font-size: 11px; white-space: nowrap; }
.badge.ok { color: #166534; background: #dcfce7; }
.code-result { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 14px; border: 1px solid #99f6e4; border-radius: 10px; color: #115e59; background: #f0fdfa; }
.code-result strong { font: 700 18px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.code-result small { flex-basis: 100%; color: #64748b; }
.code-result button { padding: 6px 10px; color: #0f766e; background: #fff; }
.status { min-height: 20px; color: #64748b; font-size: 12px; }
.status.error { color: #b91c1c; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 12px 10px; border-top: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
th { color: #64748b; font-size: 11px; font-weight: 600; }
td small { color: #94a3b8; }
.status-available { color: #1d4ed8; background: #dbeafe; }
.status-activated { color: #166534; background: #dcfce7; }
.status-revoked, .status-expired { color: #991b1b; background: #fee2e2; }
.actions { display: flex; gap: 8px; white-space: nowrap; }
.text-action, .text-danger { padding: 2px; background: transparent; font-size: 12px; }
.text-action { color: #0f766e; }
.text-danger { color: #b91c1c; }
@media (max-width: 640px) { .page { padding-top: 28px; } .header, .section-heading { flex-direction: column; } .form-grid { grid-template-columns: 1fr; } .wide { grid-column: auto; } }
