:root {
  color-scheme: light;
  --page: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #18212f;
  --muted: #667085;
  --line: #d9dee7;
  --accent: #146c63;
  --accent-dark: #0f514b;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --notice: #e8f7f1;
  --shadow: 0 18px 45px rgba(24, 33, 47, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.topbar-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.1;
}

h2 {
  font-size: 20px;
  line-height: 1.2;
}

.summary {
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 14px 16px;
}

.summary-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.summary-label {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.notice {
  background: var(--notice);
  border: 1px solid #b8e4d1;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.notice div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.danger-notice {
  background: var(--danger-soft);
  border-color: #f0b8b2;
  color: var(--danger);
}

.workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-panel,
.list-panel {
  padding: 22px;
}

.panel-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ghost-link {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  padding: 8px 10px;
  white-space: nowrap;
}

.certificate-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 108, 99, 0.14);
  outline: none;
}

button {
  font: inherit;
}

.primary-button {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 14px;
  width: 100%;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 11px;
}

.secondary-button:hover {
  border-color: #b9c2cf;
  background: var(--surface-soft);
}

.compact-button {
  font-size: 13px;
  min-height: 32px;
  padding: 6px 9px;
}

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

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

.code {
  background: #eef7f6;
  border: 1px solid #cde7e3;
  border-radius: 6px;
  color: var(--accent-dark);
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 7px;
}

.document-cell {
  max-width: 280px;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions a,
.danger-button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 32px;
  padding: 6px 9px;
}

.actions form {
  margin: 0;
}

.danger-button {
  background: var(--danger-soft);
  color: var(--danger);
  cursor: pointer;
}

.danger-button:hover {
  border-color: #f0b8b2;
}

.empty-state {
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  padding: 24px;
}

.empty-state strong {
  color: var(--text);
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  max-width: 430px;
  padding: 28px;
  width: 100%;
}

.login-copy {
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 0;
}

.verify-page {
  --bio-bg: #f7f1df;
  --bio-surface: rgba(255, 252, 246, 0.92);
  --bio-strong: #fffdf8;
  --bio-ink: #1d315c;
  --bio-muted: #60707b;
  --bio-line: rgba(29, 49, 92, 0.12);
  --bio-accent: #7e9e74;
  --bio-accent-strong: #5f8058;
  --bio-soft: rgba(126, 158, 116, 0.12);
  background:
    radial-gradient(circle at 0% 0%, rgba(220, 204, 155, 0.34), transparent 26%),
    radial-gradient(circle at 100% 8%, rgba(126, 158, 116, 0.18), transparent 24%),
    linear-gradient(180deg, #fcf7ea 0%, #f4ebd9 100%);
  color: var(--bio-ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  min-height: 100vh;
}

.verify-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: rgba(255, 251, 244, 0.82);
  box-shadow: 0 20px 60px rgba(29, 49, 92, 0.08);
}

.verify-topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 24px;
}

.verify-brand {
  align-items: center;
  display: inline-flex;
  gap: 14px;
}

.verify-logo {
  background: #fff9ed;
  border: 1px solid rgba(29, 49, 92, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(29, 49, 92, 0.08);
  height: 76px;
  object-fit: cover;
  width: 76px;
}

.verify-brand span {
  display: grid;
  gap: 4px;
}

.verify-brand strong,
.verify-hero h1,
.verify-result h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 600;
  letter-spacing: 0;
}

.verify-brand small,
.verify-lede,
.result-details dt {
  color: var(--bio-muted);
}

.verify-nav-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--bio-line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  min-height: 38px;
  padding: 0 14px;
}

.verify-main {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  padding: 34px 0 14px;
}

.verify-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.verify-eyebrow {
  color: var(--bio-accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.verify-hero h1 {
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.05;
  margin: 0;
}

.verify-lede {
  font-size: 17px;
  line-height: 1.75;
  margin: 18px 0 0;
  max-width: 58ch;
}

.verify-form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.verify-form label {
  color: var(--bio-ink);
  font-size: 13px;
  font-weight: 800;
}

.verify-search {
  background: var(--bio-strong);
  border: 1px solid var(--bio-line);
  border-radius: 999px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 6px;
}

.verify-search input {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 44px;
  padding: 0 16px;
}

.verify-search input:focus {
  border: 0;
  box-shadow: none;
}

.verify-search button {
  background: var(--bio-accent);
  border: 0;
  border-radius: 999px;
  color: #fffdf8;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 0 22px;
}

.verify-search button:hover {
  background: var(--bio-accent-strong);
}

.verify-result {
  align-self: stretch;
}

.result-card {
  background: var(--bio-surface);
  border: 1px solid var(--bio-line);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(29, 49, 92, 0.08);
  min-height: 100%;
  padding: 28px;
}

.result-card-ok {
  border-color: rgba(126, 158, 116, 0.36);
}

.result-card-warning {
  border-color: rgba(180, 35, 24, 0.25);
}

.verify-result h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
  margin: 0;
}

.result-details {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
}

.result-details div {
  border-top: 1px solid var(--bio-line);
  display: grid;
  gap: 10px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 14px 0;
}

.result-details dt {
  font-size: 13px;
  font-weight: 800;
}

.result-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-tools {
    justify-content: flex-start;
  }

  .summary {
    align-items: flex-start;
  }

  .verify-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 18px 0;
  }

  h1 {
    font-size: 28px;
  }

  .form-panel,
  .list-panel {
    padding: 16px;
  }

  .verify-shell {
    border-radius: 20px;
    padding: 16px;
    width: min(100% - 20px, 1120px);
  }

  .verify-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .verify-search {
    border-radius: 18px;
    grid-template-columns: 1fr;
  }

  .result-details div {
    grid-template-columns: 1fr;
  }
}
