@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/noto-serif-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-muted: #ededed;
  --text: #000000;
  --muted: #595959;
  --border: #cccccc;
  --brand: #000000;
  --brand-hover: #262626;
  --danger: #000000;
  --danger-hover: #262626;
  --success-bg: #e6e6e6;
  --success-text: #000000;
  --shadow: 0 10px 30px rgb(0 0 0 / 8%);
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

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

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  overflow-wrap: anywhere;
}

pre {
  margin: 16px 0 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid #333333;
  border-radius: 6px;
  color: #ffffff;
  background: #000000;
  font-size: 13px;
  line-height: 1.55;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.3;
}

h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
  padding: 8px 32px;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 96%);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.brand:hover {
  opacity: 0.72;
}

.desktop-nav,
.mobile-nav {
  display: flex;
  gap: 4px;
}

.desktop-nav {
  flex: 1 1 auto;
  justify-content: flex-start;
}

.desktop-nav a,
.mobile-nav a {
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--text);
  background: var(--surface-muted);
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: #ffffff;
  background: #000000;
}

.mobile-nav {
  display: none;
  overflow-x: auto;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.page-heading,
.section-heading,
.credential-heading,
.action-row,
.row-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-heading {
  justify-content: space-between;
  min-height: 40px;
  margin-bottom: 24px;
}

.section-heading,
.credential-heading {
  justify-content: space-between;
}

.section-heading {
  min-height: 38px;
  margin-bottom: 16px;
}

.section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.button:focus-visible,
.brand:focus-visible,
.desktop-nav a:focus-visible,
.mobile-nav a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(0 0 0 / 34%);
  outline-offset: 1px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-primary {
  color: #ffffff;
  background: var(--brand);
}

.button-primary:hover:not(:disabled) {
  background: var(--brand-hover);
}

.button-secondary {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.button-secondary:hover:not(:disabled),
.button-quiet:hover:not(:disabled) {
  background: var(--surface-muted);
}

.button-quiet {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

.button-danger {
  color: #ffffff;
  background: var(--danger);
}

.button-danger:hover:not(:disabled) {
  background: var(--danger-hover);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-grid article {
  display: grid;
  min-height: 122px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.stat-grid span,
.summary-band span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.stat-grid strong {
  align-self: end;
  font-size: 28px;
}

.stat-grid small {
  color: var(--muted);
}

.status-text-success {
  color: var(--success-text);
  font-size: 20px !important;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--border);
}

.summary-band div {
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 16px;
  background: var(--surface);
}

.summary-band strong {
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: #f7f7f7;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

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

td {
  font-size: 13px;
}

td small,
.entity-link small {
  color: var(--muted);
}

.entity-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.entity-link > span:last-child {
  display: grid;
}

.app-icon {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #bdbdbd;
  border-radius: 6px;
  color: #000000;
  background: #e6e6e6;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.badge-success {
  color: var(--success-text);
  background: var(--success-bg);
}

.badge-muted {
  color: #595959;
  background: #e6e6e6;
}

.detail-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.detail-strip p {
  margin-bottom: 0;
}

.action-row {
  flex-wrap: wrap;
  margin-top: 18px;
}

.action-row form,
.row-actions form,
.topbar form {
  margin: 0;
}

.topbar > form {
  margin-left: auto;
}

.passkey-control {
  display: inline-grid;
  align-items: start;
}

.passkey-control-autostart {
  display: none;
}

.passkey-control-autostart.passkey-control-fallback {
  display: inline-grid;
}

.control-status {
  max-width: 360px;
  min-height: 20px;
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.form-grid,
.form-stack,
.inline-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
}

.form-span {
  grid-column: 1 / -1;
}

.form-stack {
  margin-top: 20px;
}

.inline-form {
  grid-template-columns: minmax(180px, 360px) auto;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
}

.form-grid label small {
  color: var(--muted);
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  color: var(--text);
  background: var(--surface);
}

textarea {
  resize: vertical;
}

.key-values,
.credential-meta {
  margin: 0;
  border-top: 1px solid var(--border);
}

.key-values > div,
.credential-meta > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

dd {
  min-width: 0;
  margin: 0;
}

.requirements {
  max-width: 780px;
  margin-top: 24px;
}

.requirements ol {
  padding-left: 22px;
}

.credential-list {
  display: grid;
  gap: 12px;
}

.credential {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.credential .inline-form {
  margin: 18px 0;
}

.credential-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.credential-meta > div {
  grid-template-columns: 130px minmax(0, 1fr);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}

.empty-state {
  padding: 44px 20px;
  border: 1px dashed #bdbdbd;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}

.empty-state p {
  margin: 0;
}

.public-body {
  min-height: 100vh;
  background: var(--bg);
}

.public-body-centered {
  display: grid;
  place-items: center;
}

.public-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 96px;
  padding: 14px 32px;
}

.public-shell {
  width: min(700px, calc(100% - 32px));
  margin: 6vh auto 0;
}

.public-shell-narrow {
  width: min(520px, calc(100% - 32px));
}

.public-shell-wide {
  width: min(960px, calc(100% - 32px));
}

.public-shell-centered {
  width: 100%;
  margin: 0;
  padding: clamp(24px, 6vw, 64px);
}

.authentication-mark {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 24px;
}

.authentication-logo {
  display: block;
  width: min(320px, 72vw);
  height: auto;
  object-fit: contain;
}

.authentication-mark .passkey-control {
  justify-items: center;
}

.button.passkey-key-button {
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border-radius: 50%;
}

.passkey-key-icon {
  display: block;
  width: 24px;
  height: 24px;
  filter: invert(1);
  pointer-events: none;
}

.authentication-mark .passkey-control-autostart {
  display: inline-grid;
  width: min(360px, calc(100vw - 32px));
  min-height: 52px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

.authentication-mark .passkey-control-autostart.passkey-control-fallback {
  visibility: visible;
  pointer-events: auto;
  animation: passkey-fallback-in 220ms ease-out forwards;
}

@keyframes passkey-fallback-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.application-directory {
  padding-bottom: 48px;
}

.application-directory-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.application-directory-heading h1,
.application-directory-heading p {
  margin-bottom: 0;
}

.application-directory-brand {
  display: inline-flex;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  align-items: center;
  justify-content: center;
}

.application-directory-brand img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

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

.application-directory-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.application-directory-card:hover {
  border-color: var(--text);
  box-shadow: var(--shadow);
}

.application-directory-icon {
  width: 52px;
  height: 52px;
}

.application-directory-copy {
  display: grid;
  min-width: 0;
}

.application-directory-copy strong {
  font-size: 16px;
}

.application-directory-copy small,
.application-directory-copy > span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
}

.application-directory-copy small {
  white-space: nowrap;
}

.application-directory-copy > span {
  margin-top: 8px;
  font-size: 13px;
}

.application-directory-arrow {
  font-size: 22px;
}

.application-directory-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.auth-panel {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin-bottom: 12px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
}

.requesting-app {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 18px;
}

.requesting-app h1,
.requesting-app p {
  margin-bottom: 0;
}

.requesting-app p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .topbar {
    padding: 8px 20px;
  }

  .public-header {
    padding: 12px 20px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-band,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .credential-meta {
    grid-template-columns: 1fr;
  }

  .application-directory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  h1 {
    font-size: 24px;
  }

  .page-heading,
  .section-heading,
  .credential-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .form-span {
    grid-column: auto;
  }

  .detail-strip {
    grid-template-columns: auto 1fr;
  }

  .detail-strip > :last-child {
    grid-column: 1 / -1;
  }

  .key-values > div,
  .credential-meta > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .auth-panel {
    padding: 22px;
  }

  .public-shell {
    margin-top: 2vh;
  }

  .application-directory-heading {
    align-items: flex-start;
  }

  .application-directory-brand,
  .application-directory-brand img {
    width: 72px;
    height: 72px;
  }

  .action-row,
  .row-actions {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .desktop-nav a,
  .mobile-nav a {
    transition:
      background-color 120ms ease,
      border-color 120ms ease,
      color 120ms ease;
  }
}
