:root {
  color-scheme: dark;
  font-family: 'Segoe UI', sans-serif;
  color: #eef4f7;
  background: #101923;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --surface: #17232e;
  --surface-raised: #1c2a36;
  --border: #2a3946;
  --muted: #91a1ac;
  --accent: #61d5b2;
  --accent-dark: #143b36;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0, rgb(41 86 83 / 14%), transparent 48%),
    #101923;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 20px;
}

.auth-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgb(23 35 46 / 94%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 28%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #11221e;
  font-size: 19px;
  font-weight: 800;
}

.brand-light {
  color: var(--accent);
}

.auth-heading {
  margin: 43px 0 29px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

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

h1,
h2,
h3 {
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: -0.7px;
}

h1 {
  margin-bottom: 9px;
  font-size: clamp(29px, 5vw, 36px);
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.auth-heading .muted,
.section-heading .muted {
  margin-bottom: 0;
  font-size: 14px;
}

.form-stack {
  display: grid;
  gap: 10px;
}

.form-stack label,
.detail-label {
  color: #c8d2d9;
  font-size: 13px;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: #111c25;
  color: #eef4f7;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input::placeholder {
  color: #71818d;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(97 213 178 / 12%);
}

.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  transition: filter 140ms ease, background 140ms ease;
}

.button:hover:not(:disabled) {
  filter: brightness(1.08);
}

.button-primary {
  background: var(--accent);
  color: #12231f;
}

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

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

.button-full {
  width: 100%;
  margin-top: 8px;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.security-note span {
  color: var(--accent);
}

.message {
  min-height: 0;
  margin: 3px 0;
  color: #ff9a9a;
  font-size: 13px;
}

.message:empty {
  display: none;
}

.topbar {
  display: flex;
  height: 73px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1040px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgb(16 25 35 / 86%);
}

.main-content {
  width: min(100% - 40px, 860px);
  margin: 58px auto 80px;
}

.page-intro {
  margin-bottom: 30px;
}

.page-intro h1 {
  margin-bottom: 7px;
}

.page-intro .muted {
  margin-bottom: 0;
}

.search-panel,
.result-card {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.search-panel {
  padding: 23px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-dark);
  color: var(--accent);
  font-size: 28px;
}

.section-heading h2 {
  margin: 0 0 3px;
  font-size: 16px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form input {
  min-width: 0;
  flex: 1;
  font-family: ui-monospace, Consolas, monospace;
}

.results-section {
  margin-top: 35px;
}

.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.results-heading h2 {
  margin: 0;
  font-size: 20px;
}

.results-heading .eyebrow {
  margin-bottom: 6px;
}

.count-badge,
.status-badge {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #c7d4da;
  font-size: 12px;
  white-space: nowrap;
}

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

.result-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-card-header h3 {
  margin: 0;
  font-size: 15px;
}

.status-badge {
  border-color: rgb(97 213 178 / 22%);
  background: rgb(97 213 178 / 8%);
  color: var(--accent);
}

.code-value {
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #111c25;
  color: #c9f3e7;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
}

.detail-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.detail-value {
  overflow-wrap: anywhere;
  color: #c2cdd4;
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.pagination .muted {
  margin: 0;
  font-size: 13px;
}

.data-note {
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.data-note code {
  color: #c9f3e7;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .auth-card {
    padding: 29px 23px;
  }

  .topbar {
    height: 65px;
    padding: 0 20px;
  }

  .main-content {
    width: min(100% - 32px, 860px);
    margin-top: 38px;
  }

  .search-panel {
    padding: 18px;
  }

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

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

  .pagination {
    gap: 9px;
  }

  .pagination .button {
    padding: 0 10px;
    font-size: 12px;
  }
}
