/* Defines the visual system for the certificate platform. */

:root {
  color-scheme: light;
  --color-navy-950: #0b1430;
  --color-navy-900: #141f45;
  --color-navy-700: #3a4766;
  --color-navy-500: #5d6a86;
  --color-slate-300: #c9d2e3;
  --color-slate-200: #e1e6f0;
  --color-slate-100: #eef1f7;
  --color-slate-50: #f6f7fb;
  --color-white: #ffffff;
  --color-brand-700: #3730a3;
  --color-brand-600: #4338ca;
  --color-brand-500: #6366f1;
  --color-brand-100: #e0e7ff;
  --color-brand-50: #eef2ff;
  --color-teal-700: #0f766e;
  --color-teal-600: #0d9488;
  --color-teal-100: #ccfbf1;
  --color-green-700: #15803d;
  --color-green-100: #dcfce7;
  --color-red-700: #b42335;
  --color-red-100: #fde8ea;
  --color-amber-700: #92570a;
  --color-amber-100: #fef3c7;
  --gradient-brand: linear-gradient(135deg, #4338ca 0%, #3b5bdb 45%, #0f766e 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(13, 148, 136, 0.1));
  --shadow-sm: 0 1px 2px rgba(20, 31, 69, 0.05), 0 6px 20px rgba(20, 31, 69, 0.06);
  --shadow-md: 0 2px 6px rgba(20, 31, 69, 0.05), 0 22px 50px rgba(20, 31, 69, 0.1);
  --shadow-brand: 0 10px 24px rgba(67, 56, 202, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  line-height: 1.6;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  color: var(--color-navy-900);
  background:
    radial-gradient(60rem 30rem at 0% -10%, rgba(99, 102, 241, 0.13), transparent 70%),
    radial-gradient(50rem 28rem at 100% 0%, rgba(13, 148, 136, 0.1), transparent 70%),
    var(--color-slate-50);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body > main {
  flex: 1 0 auto;
}

a {
  color: var(--color-brand-600);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover {
  color: var(--color-brand-700);
}

::selection {
  color: var(--color-white);
  background: var(--color-brand-600);
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container,
.page-shell {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.page-shell {
  min-height: calc(100vh - 160px);
  padding-block: 72px 96px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(201, 210, 227, 0.6);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 4px 18px rgba(20, 31, 69, 0.04);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
}

.navbar {
  min-height: 70px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  color: var(--color-white);
  background: var(--color-navy-950);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
  color: var(--color-white);
}

#main-content {
  scroll-margin-top: 100px;
}

.nav-link[aria-current="page"] {
  color: var(--color-brand-700);
  background: var(--color-brand-50);
  box-shadow: inset 0 0 0 1px var(--color-brand-100);
}

.account-identity {
  margin: 0 0 6px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--color-navy-500);
  background: var(--color-slate-50);
  overflow-wrap: anywhere;
  font-size: 13px;
}

.account-identity::before {
  content: "Signed in as";
  display: block;
  margin-bottom: 2px;
  color: var(--color-navy-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-menu .action-menu-options {
  width: 260px;
}

.account-menu > summary::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #fff 0 4px, transparent 4.5px),
    radial-gradient(circle at 50% 100%, #fff 0 8px, transparent 8.5px),
    var(--gradient-brand);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  color: var(--color-navy-900);
}

.brand:hover {
  color: var(--color-navy-900);
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.brand > span {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.brand-logo {
  border-radius: 10px;
}

.brand small {
  margin-top: 2px;
  color: var(--color-navy-500);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.nav-actions,
.button-row,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-actions form,
.action-card form {
  margin: 0;
}

.nav-actions {
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--color-navy-700);
  font-size: 14px;
  font-weight: 650;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.nav-link:hover {
  color: var(--color-navy-950);
  background: var(--color-slate-100);
}

.nav-actions > .action-menu,
.nav-actions > .button {
  margin-left: 8px;
}

.user-label {
  max-width: 240px;
  overflow: hidden;
  color: var(--color-navy-500);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button {
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.005em;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    filter 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-brand-500);
  outline-offset: 2px;
}

.button:disabled,
.button:disabled:hover {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.button-primary {
  color: var(--color-white);
  background: var(--gradient-brand);
  box-shadow: var(--shadow-brand);
}

.button-primary:hover {
  color: var(--color-white);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(67, 56, 202, 0.34);
}

.button-secondary {
  border-color: var(--color-slate-200);
  color: var(--color-navy-700);
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(20, 31, 69, 0.05);
}

.button-secondary:hover {
  color: var(--color-brand-700);
  border-color: var(--color-brand-100);
  background: var(--color-brand-50);
  box-shadow: var(--shadow-sm);
}

.button-success {
  color: var(--color-white);
  background: var(--color-green-700);
}

.button-success:hover {
  color: var(--color-white);
  background: #125f3d;
}

.button-danger-ghost {
  border-color: #efc8cd;
  color: var(--color-red-700);
  background: var(--color-white);
}

.button-danger-ghost:hover {
  color: #862f38;
  background: var(--color-red-100);
}

.button-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

.button-block {
  width: 100%;
}

.button-muted {
  cursor: default;
  color: var(--color-navy-500);
  background: var(--color-slate-100);
}

.button-row {
  flex-wrap: wrap;
  margin-top: 32px;
}

.button-row-centered {
  justify-content: center;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 12px;
  border: 1px solid var(--color-brand-100);
  border-radius: 999px;
  color: var(--color-brand-700);
  background: var(--color-brand-50);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.page-heading-centered .eyebrow,
.result-card .eyebrow,
.hero-simple .eyebrow {
  margin-inline: auto;
}

.result-card > .eyebrow {
  display: flex;
  margin: 0 auto 20px;
  color: var(--color-brand-700);
  font-size: 12px;
  line-height: 1.6;
}

.table-action .button {
  white-space: nowrap;
}

.result-card > p.muted-text {
  font-size: 14px;
  line-height: 1.6;
}

.hero-simple h1,
.page-heading h1,
.auth-intro h1,
.result-card h1 {
  margin: 0;
  color: var(--color-navy-950);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-simple {
  max-width: 820px;
  margin: 4vh auto 0;
  text-align: center;
}

.hero-simple .hero-summary {
  margin-inline: auto;
}

.text-gradient {
  color: var(--color-brand-600);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-navy-500);
  font-size: 14px;
  font-weight: 600;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust li::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-teal-700);
  background: var(--color-teal-100);
  font-size: 12px;
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 72px 0 0;
}

.feature-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(201, 210, 227, 0.8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card h2 {
  margin: 18px 0 8px;
  color: var(--color-navy-950);
  font-size: 18px;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--color-navy-500);
  font-size: 15px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--color-white);
  background: var(--gradient-brand);
  box-shadow: var(--shadow-brand);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.workflow-guide {
  margin-top: 88px;
  padding: 48px;
  border: 1px solid rgba(201, 210, 227, 0.7);
  border-radius: 32px;
  background:
    radial-gradient(40rem 18rem at 100% 0%, rgba(13, 148, 136, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.7);
}

.home-cta {
  margin-top: 56px;
  padding: 48px 40px;
  border-radius: 32px;
  color: var(--color-white);
  background:
    radial-gradient(30rem 16rem at 90% 10%, rgba(255, 255, 255, 0.18), transparent 70%),
    var(--gradient-brand);
  box-shadow: 0 30px 60px rgba(67, 56, 202, 0.25);
  text-align: center;
}

.home-cta h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
}

.home-cta p {
  max-width: 560px;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.86);
}

.home-cta .button-row {
  margin-top: 26px;
}

.home-cta .button-secondary {
  border-color: transparent;
  color: var(--color-brand-700);
  background: var(--color-white);
}

.home-cta .button-secondary:hover {
  color: var(--color-brand-700);
  background: var(--color-brand-50);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading h2 {
  color: var(--color-navy-950);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow-steps li {
  position: relative;
  counter-increment: workflow;
  padding: 26px;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(20, 31, 69, 0.04);
}

.workflow-steps li::before {
  content: counter(workflow, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--color-brand-700);
  background: var(--gradient-soft);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.workflow-steps h3 {
  margin-bottom: 8px;
}

.workflow-steps p,
.section-heading p,
.trust-note {
  color: var(--color-navy-500);
}

.trust-note {
  margin-top: 24px;
  font-size: 13px;
}

.hero-summary,
.page-heading > p:last-child,
.auth-intro > p,
.result-card > p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--color-navy-500);
  font-size: 18px;
  line-height: 1.75;
}

.form-card,
.data-card,
.action-card,
.result-card {
  border: 1px solid rgba(201, 210, 227, 0.8);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.page-heading {
  margin-bottom: 36px;
}

.page-heading h1 {
  letter-spacing: -0.03em;
}

.page-heading h1,
.auth-intro h1,
.result-card h1 {
  font-size: clamp(34px, 5vw, 48px);
}

.page-heading-centered {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.page-heading-centered > p:last-child {
  margin-inline: auto;
}

.page-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.summary-chip {
  flex: none;
  padding: 10px 14px;
  border: 1px solid var(--color-brand-100);
  border-radius: 999px;
  color: var(--color-brand-700);
  background: var(--color-brand-50);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.page-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-menu {
  position: relative;
}

.file-transfer-heading,
.file-transfer-actions {
  flex-wrap: wrap;
}

.file-transfer-heading > div {
  min-width: 0;
  max-width: 100%;
}

.file-transfer-actions > .button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.file-import-example {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.action-menu > summary {
  list-style: none;
}

.action-menu > summary::-webkit-details-marker {
  display: none;
}

.action-menu-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-width: calc(100vw - 28px);
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--color-slate-200);
  border-radius: 14px;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  animation: menu-in 140ms ease-out;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

.action-menu[open] > summary {
  border-color: var(--color-brand-100);
  color: var(--color-brand-700);
  background: var(--color-brand-50);
}

.action-menu-options a,
.action-menu-options button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--color-navy-700);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.action-menu-options a:hover,
.action-menu-options button:hover {
  color: var(--color-brand-700);
  background: var(--color-brand-50);
}

.action-menu-options form {
  margin: 4px 0 0;
  padding-top: 4px;
  border-top: 1px solid var(--color-slate-100);
}

.action-menu-options .danger-action {
  color: var(--color-red-700);
}

.table-action-menu .action-menu-options {
  top: auto;
  bottom: calc(100% + 8px);
}

.form-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-card {
  position: relative;
  max-width: 480px;
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  padding-top: 44px;
}

.auth-card::before,
.result-card::before,
.form-card-wide::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--gradient-brand);
}

.form-card-wide,
.result-card {
  position: relative;
  overflow: hidden;
}

.form-card-wide {
  max-width: 850px;
  margin-inline: auto;
}

.card-heading {
  margin-bottom: 28px;
}

.card-heading h1,
.card-heading h2,
.action-card h2,
.empty-state h2 {
  margin: 0;
  color: var(--color-navy-950);
  font-size: 26px;
}

.action-card form + h2 {
  margin-top: 28px;
}

.card-heading > p:last-child,
.action-card > p {
  margin: 10px 0 0;
  color: var(--color-navy-500);
  line-height: 1.6;
}

.form-stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.form-stack > * {
  min-width: 0;
  max-width: 100%;
}

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

.form-field {
  min-width: 0;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-navy-700);
  font-size: 13px;
  font-weight: 750;
}

.form-field fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-field legend {
  padding: 0;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-sm);
  color: var(--color-navy-950);
  background: var(--color-slate-50);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8a96b0;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--color-navy-500);
  background: var(--color-white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-brand-500);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  outline: 0;
}

.form-field input[type="checkbox"],
.form-field input[type="radio"],
.choice-list input {
  accent-color: var(--color-brand-600);
}

.form-field input[type="file"] {
  padding: 9px;
  border-style: dashed;
  cursor: pointer;
}

.form-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--color-brand-700);
  background: var(--color-brand-50);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.field-help,
.field-error {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.field-help ul,
.error-summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.error-summary a {
  color: inherit;
  text-decoration: underline;
}

.message-info {
  color: var(--color-navy-700);
  background: var(--color-slate-100);
}

.field-help {
  color: var(--color-navy-500);
}

.field-error {
  color: var(--color-red-700);
  font-weight: 650;
}

.required-fields-note {
  margin: 0 0 18px;
  color: var(--color-navy-500);
  font-size: 13px;
}

.required-marker {
  color: var(--color-red-700);
  font-weight: 800;
}

.form-actions {
  justify-content: flex-end;
  padding-top: 8px;
}

.form-footnote {
  margin: 24px 0 0;
  color: var(--color-navy-500);
  font-size: 13px;
  text-align: center;
}

.message-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.message {
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--color-slate-200);
  border-left-width: 4px;
  border-radius: 12px;
  color: var(--color-navy-700);
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(20, 31, 69, 0.04);
  font-size: 14px;
  line-height: 1.5;
}

.message-info {
  border-color: var(--color-brand-100);
  border-left-color: var(--color-brand-500);
  color: var(--color-navy-700);
  background: var(--color-brand-50);
}

.message p {
  margin: 0;
}

.message-success {
  border-color: #b9e6c9;
  border-left-color: var(--color-green-700);
  color: var(--color-green-700);
  background: var(--color-green-100);
}

.message-error {
  border-color: #f3c4ca;
  border-left-color: var(--color-red-700);
  color: var(--color-red-700);
  background: var(--color-red-100);
}

.message-warning {
  border-color: #f2d58a;
  border-left-color: var(--color-amber-700);
  color: var(--color-amber-700);
  background: var(--color-amber-100);
}

.result-card {
  max-width: 700px;
  margin-inline: auto;
  padding: 52px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.result-card > p {
  margin-inline: auto;
}

.result-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
}

.result-icon-success {
  color: var(--color-green-700);
  background: var(--color-green-100);
}

.verification-result {
  padding: 32px 24px 28px;
  border: 1px solid transparent;
  border-radius: 20px;
  color: var(--color-navy-700);
  background: var(--color-slate-100);
  overflow-wrap: anywhere;
}

.verification-result::before {
  content: "?";
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--color-navy-500);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.7);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.verification-result.status-valid {
  border-color: #b9e6c9;
}

.verification-result.status-valid::before {
  content: "✓";
  background: var(--color-green-700);
}

.verification-result.status-expired {
  border-color: #f2d58a;
}

.verification-result.status-expired::before {
  content: "⏱";
  background: var(--color-amber-700);
  font-size: 30px;
}

.verification-result.status-revoked,
.verification-result.status-tampered {
  border-color: #f3c4ca;
}

.verification-result.status-revoked::before,
.verification-result.status-tampered::before {
  content: "✕";
  background: var(--color-red-700);
}

.verification-result.status-tampered::before {
  content: "!";
}

.verification-result h1 {
  color: inherit;
}

.verification-result p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.verification-details {
  margin-top: 24px;
  text-align: start;
}

.result-card .verification-bundle {
  padding-inline: 0;
  text-align: start;
}

.verification-instructions summary {
  min-height: 44px;
  padding-block: 12px;
  cursor: pointer;
  font-weight: 650;
}

.issuer-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 160px);
  max-height: 80px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.data-card {
  overflow: hidden;
  border-radius: 20px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-slate-100);
  text-align: left;
  vertical-align: middle;
}

th {
  border-bottom-color: var(--color-slate-200);
  color: var(--color-navy-500);
  background: linear-gradient(180deg, var(--color-slate-50), #f1f3f9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--color-navy-700);
  font-size: 14px;
  overflow-wrap: anywhere;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background-color 140ms ease;
}

tbody tr:hover {
  background: #f7f8ff;
}

td strong,
td small {
  display: block;
}

td strong {
  color: var(--color-navy-900);
}

td small {
  margin-top: 4px;
  color: var(--color-navy-500);
}

.table-action {
  text-align: right;
}

.text-link {
  font-weight: 750;
}

.status-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(20, 31, 69, 0.08);
  border-radius: 999px;
  color: var(--color-navy-700);
  background: var(--color-slate-100);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-draft {
  color: var(--color-brand-700);
  background: var(--color-brand-50);
}

.status-issued {
  color: var(--color-teal-700);
  background: var(--color-teal-100);
}

.status-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.status-verified,
.status-valid,
.status-active {
  color: var(--color-green-700);
  background: var(--color-green-100);
}

.status-pending,
.status-expired {
  color: var(--color-amber-700);
  background: var(--color-amber-100);
}

.status-rejected,
.status-suspended,
.status-revoked,
.status-tampered,
.status-failed,
.status-compromised {
  color: var(--color-red-700);
  background: var(--color-red-100);
}

.status-retired {
  color: var(--color-navy-700);
  background: var(--color-slate-100);
}

.breadcrumb {
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 7px 14px;
  border: 1px solid var(--color-slate-200);
  border-radius: 999px;
  color: var(--color-navy-500);
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.breadcrumb a::before {
  content: "←";
  margin-right: 6px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.detail-grid > div {
  min-width: 0;
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-slate-100);
}

.detail-grid > div:nth-child(odd) {
  border-right: 1px solid var(--color-slate-100);
}

.detail-grid dt {
  margin-bottom: 7px;
  color: var(--color-navy-500);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--color-navy-900);
  font-size: 14px;
  font-weight: 650;
}

.key-material-card {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-md);
}

.key-material-card h2 {
  margin: 0;
}

.key-material-card > p:not(.eyebrow) {
  color: var(--color-navy-500);
  line-height: 1.6;
}

.private-key-actions {
  margin-top: 16px;
}

.action-card {
  position: sticky;
  top: 96px;
  padding: 26px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, var(--color-brand-50), rgba(255, 255, 255, 0.96) 140px);
}

.action-card h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  margin-top: 32px;
}

.choice-list > ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice-list > div {
  display: grid;
  gap: 10px;
}

.choice-list label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  font-weight: 600;
}

.choice-list input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-navy-700);
  font-size: 13px;
  font-weight: 750;
}

.secret-card {
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid #e3c16c;
  border-radius: var(--radius-md);
  color: var(--color-amber-700);
  background: var(--color-amber-100);
}

.secret-card h2,
.payload-section h2 {
  margin: 0;
  color: var(--color-navy-950);
}

.secret-card > p:not(.eyebrow),
.payload-section > p:not(.eyebrow) {
  line-height: 1.6;
}

.code-value {
  max-width: 100%;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-sm);
  color: var(--color-navy-950);
  background: var(--color-white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  resize: vertical;
}

.form-section,
.payload-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--color-slate-200);
}

.payload-section {
  padding: 28px;
}

.muted-text {
  color: var(--color-navy-500);
  font-size: 13px;
}

.action-card form {
  margin-top: 12px;
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
}

.empty-state > span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  color: var(--color-brand-600);
  background: var(--gradient-soft);
  font-size: 32px;
}

.empty-state p {
  margin: 10px 0 0;
  color: var(--color-navy-500);
}

.empty-state .button {
  margin-top: 20px;
}

.site-footer {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--color-navy-950);
}

.site-footer a {
  color: var(--color-white);
  font-weight: 650;
}

.site-footer a:hover {
  color: #c7d2fe;
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p:first-child {
  margin-bottom: 4px;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .detail-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    position: static;
  }

  .user-label {
    display: none;
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }
}

@media (max-width: 700px) {
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-guide,
  .home-cta {
    margin-top: 48px;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }
  .responsive-table {
    overflow: visible;
  }

  .responsive-table table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .responsive-table tbody {
    display: grid;
    gap: 14px;
    padding: 14px;
  }

  .responsive-table tr {
    overflow: hidden;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-sm);
    background: var(--color-white);
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px 14px;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: var(--color-navy-500);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .responsive-table td > small {
    grid-column: 2;
  }

  .responsive-table td:last-child {
    border-bottom: 0;
  }

  .responsive-table .table-action {
    display: block;
  }

  .responsive-table .table-action::before {
    display: none;
  }

  .responsive-table .table-action .button,
  .responsive-table .table-action .text-link {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  #main-content {
    scroll-margin-top: 16px;
  }
  .container,
  .page-shell {
    width: min(100% - 28px, var(--container));
  }

  .page-shell {
    padding-block: 48px 64px;
  }

  .navbar {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 10px;
  }

  .brand small,
  .user-label {
    display: none;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-actions .account-menu > summary {
    width: 100%;
    min-height: 44px;
  }

  .nav-actions > .account-menu:last-child {
    grid-column: 1 / -1;
  }

  .nav-actions .account-menu .action-menu-options {
    right: 0;
    left: auto;
  }

  .nav-actions > a,
  .nav-actions > form {
    flex: 1 1 0;
    min-width: 0;
  }

  .nav-actions .nav-link,
  .nav-actions > .button,
  .nav-actions form .button {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    text-align: center;
  }

  .nav-actions > .button,
  .nav-actions form .button {
    color: var(--color-white);
    border-color: transparent;
    background: var(--gradient-brand);
  }

  .nav-actions > .action-menu,
  .nav-actions > .button {
    margin-left: 0;
  }

  .nav-actions .nav-link[aria-current="page"] {
    border-color: var(--color-brand-100);
    color: var(--color-brand-700);
    background: var(--color-brand-50);
  }

  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid > div:nth-child(odd) {
    border-right: 0;
  }

  .form-card,
  .result-card {
    padding: 26px 22px;
  }

  .action-card,
  .key-material-card,
  .payload-section,
  .secret-card {
    padding: 22px;
  }

  .detail-grid > div {
    padding: 17px;
  }

  .page-heading-row,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
  }

  .button-row {
    align-items: stretch;
  }

  .button-row .button {
    flex: 1 1 160px;
  }

  .hero-simple {
    margin-top: 3vh;
  }

  .hero-summary,
  .page-heading > p:last-child,
  .auth-intro > p,
  .result-card > p {
    font-size: 16px;
    line-height: 1.65;
  }

  th,
  td {
    padding: 15px;
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 14px;
  }

  .page-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-chip {
    text-align: center;
  }

  .action-menu > summary,
  .action-menu-options {
    width: 100%;
  }

  .action-menu-options {
    right: auto;
    left: 0;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
    flex-basis: auto;
  }

  .responsive-table td {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .responsive-table td > small {
    grid-column: 1;
  }
}

.populate-banner {
  padding: 10px 20px;
  background: var(--color-amber-100);
  color: var(--color-amber-700);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.populate-banner a {
  color: var(--color-amber-700);
  text-decoration: underline;
}

.cheat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 0;
  padding: 12px;
  border: 1px dashed var(--color-amber-700);
  border-radius: var(--radius-sm);
  background: var(--color-amber-100);
}

.cheat-bar-label {
  margin: 0;
  color: var(--color-amber-700);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cheat-bar select {
  min-height: 38px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  flex: 1 1 100%;
  padding: 6px 10px;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.pdf-preview {
  margin-top: 24px;
}

.verification-assets {
  margin-top: 24px;
  padding: 24px;
}

.verification-assets h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.verification-assets > p,
.certificate-qr-panel p {
  color: var(--color-navy-500);
  line-height: 1.5;
}

.verification-assets-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  margin-top: 20px;
}

.verification-assets-grid label {
  display: block;
  font-weight: 750;
}

.verification-link-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.verification-link-controls input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  color: var(--color-navy-900);
  background: var(--color-slate-50);
  font-size: 14px;
}

.certificate-qr-panel {
  text-align: center;
}

.certificate-qr-panel img {
  display: block;
  width: min(180px, 100%);
  height: auto;
  margin-inline: auto;
}

@media (max-width: 760px) {
  .verification-assets-grid {
    grid-template-columns: 1fr;
  }

  .verification-link-controls {
    align-items: stretch;
    flex-direction: column;
  }
}

.pdf-preview-header {
  padding: 20px 24px 8px;
}

.pdf-preview-header h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.pdf-preview-header p {
  margin: 0;
  color: var(--color-navy-500);
}

.pdf-preview-frame {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 20px;
  border: 0;
  border-top: 1px solid var(--color-slate-100);
  background: #edf2f7;
}

.pdf-certificate {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 420px;
  aspect-ratio: 297 / 210;
  flex-direction: column;
  align-items: center;
  padding: 36px 48px 32px;
  overflow: hidden;
  border: 8px solid #fff;
  outline: 4px solid #102a43;
  outline-offset: -12px;
  color: #102a43;
  background: #fff;
  box-shadow: inset 0 0 0 2px #087f8c;
  text-align: center;
}

.pdf-certificate p,
.pdf-certificate h3 {
  margin: 0;
}

.pdf-certificate-eyebrow {
  color: #087f8c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pdf-certificate-issuer {
  margin-top: 10px !important;
  font-size: 17px;
  font-weight: 700;
}

.pdf-certificate-title {
  margin-top: 22px !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
}

.pdf-certificate-label {
  margin-top: 18px !important;
  color: #334e68;
  font-size: 16px;
  font-style: italic;
}

.pdf-certificate-recipient {
  margin-top: 6px !important;
  color: #087f8c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.1;
}

.pdf-certificate-program {
  margin-top: 6px !important;
  font-size: 18px;
}

.pdf-certificate-dates {
  margin-top: 18px !important;
  color: #334e68;
  font-size: 14px;
}

.pdf-certificate-footer {
  display: grid;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #bcccdc;
  grid-template-columns: 1fr 96px;
  gap: 20px;
  align-items: center;
  text-align: left;
}

.pdf-certificate-id,
.pdf-certificate-instruction {
  color: #627d98;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.pdf-certificate-instruction {
  margin-top: 6px !important;
}

.pdf-certificate-qr {
  display: block;
  width: 96px;
  height: 96px;
}

@media (max-width: 760px) {
  .pdf-certificate {
    min-height: 520px;
    aspect-ratio: auto;
    padding: 28px 22px 22px;
  }

  .pdf-certificate-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
.mfa-qr {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
}

.mfa-secret,
.mfa-codes code {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
