:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #172238;
  background: #f5f6f8;
  font-synthesis: none;
  --navy: #111b2e;
  --muted: #717b8b;
  --border: #e6e9ef;
  --yellow: #22d3ee;
  --orange: #22d3ee;
  --green: #238566;
  --red: #c34e4e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 10px;
  line-height: 1.2;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.35px;
  margin-bottom: 8px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dbe0e8;
  border-radius: 7px;
  background: #fff;
  color: #172238;
  min-height: 44px;
  padding: 11px 13px;
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: #9aa2ae;
  font-size: 13px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px #22d3ee33;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #0891b2;
  outline-offset: 3px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0 8px;
}
textarea {
  resize: vertical;
  line-height: 1.65;
  font-family: Consolas, monospace;
  font-size: 12px;
}
.primary,
.secondary,
.text-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 7px;
  padding: 10px 17px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.primary {
  border: 1px solid #06b6d4;
  background: var(--yellow);
  color: #082f49;
}
.primary:hover {
  background: #67e8f9;
}
.secondary {
  border: 1px solid var(--border);
  background: #fff;
  color: #435067;
}
.secondary:hover {
  background: #f7f8fa;
}
.text-button {
  border: 0;
  background: transparent;
  color: #0e7490;
  padding: 7px;
  min-height: 36px;
}
.full {
  width: 100%;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 300;
  white-space: nowrap;
}
.brand b {
  font-weight: 800;
}
.brand-symbol {
  width: 56px;
  height: 38px;
  flex-shrink: 0;
  background: url("/assets/brand-symbol.svg") center / contain no-repeat;
}
.brand-light {
  color: #fff;
}
.section-kicker,
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #0e7490;
  margin-bottom: 10px;
}
.muted,
.field-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.field-help {
  display: block;
  font-size: 11px;
  margin: 7px 0 0;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 2px 3px #17223802;
}
.card-heading,
.section-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.card-heading p {
  margin-bottom: 0;
}
.card-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.span-2 {
  grid-column: span 2;
}
.status {
  font-size: 12px;
  color: #41715f;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.status:empty {
  display: none;
}
.status[data-state="error"] {
  color: #b14444;
}
.status[data-state="loading"] {
  color: #68788e;
}
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 18px;
  border: 1px solid #dce3fa;
  border-radius: 7px;
  background: #f0f3ff;
  color: #485c9e;
  margin-bottom: 24px;
  font-size: 12px;
}
.notice p {
  margin: 0;
}
.notice > span {
  font-size: 18px;
  line-height: 1.1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 10px;
  white-space: nowrap;
  font-weight: 600;
}
.badge.active {
  background: #eaf7f0;
  color: #25815e;
}
.badge.expired,
.badge.revoked {
  background: #fceeee;
  color: #b45555;
}
.badge.pending {
  background: #ecfeff;
  color: #155e75;
}
.badge.unlicensed {
  background: #f1f3f7;
  color: #6e7788;
}
.badge.neutral {
  background: #f1f3f7;
  color: #6e7788;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.green {
  background: #37a97e;
}
.red {
  background: #d07575;
}
.yellow {
  background: #06b6d4;
}
.empty-state {
  padding: 42px 24px;
  text-align: center;
  color: #798392;
  font-size: 13px;
  border: 1px dashed #dce1e9;
  border-radius: 8px;
  background: #fafbfc;
  line-height: 1.8;
}
.empty-state strong {
  display: block;
  color: #40506b;
  font-size: 15px;
  margin-bottom: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.advanced summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #5e6d82;
}
.advanced[open] summary {
  margin-bottom: 18px;
}
.back-link {
  display: inline-block;
  font-size: 12px;
  text-decoration: none;
  color: #7b8593;
  margin-top: 24px;
}
.back-link:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  h1 {
    font-size: 25px;
  }
  .card {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .span-2 {
    grid-column: auto;
  }
  .card-heading {
    gap: 14px;
    flex-wrap: wrap;
  }
  .card-actions .primary {
    width: 100%;
  }
}
