:root {
  color-scheme: light;
  font-family: "Avenir Next", "Avenir", "Helvetica Neue", sans-serif;
  --ink: #101421;
  --muted: #5a6475;
  --sand: #f5f7fb;
  --clay: #eef1f7;
  --navy: #0f1a2b;
  --navy-soft: #14233a;
  --accent: #f5b53b;
  --accent-dark: #e3a62f;
  --card: #ffffff;
  --shadow: 0 18px 36px rgba(9, 14, 24, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
}

body.locked .layout {
  filter: blur(4px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

body.locked .hero {
  filter: blur(4px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.hero {
  padding: 24px 24px 48px;
  background: linear-gradient(120deg, #0d1727 0%, #131f33 48%, #0f1a2b 100%);
  color: #f8fbff;
}

.nav {
  max-width: 1100px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}



.nav__badge {
  background: #0a1322;
  color: #f5b53b;
  font-weight: 700;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav__title {
  font-weight: 700;
}

.nav__sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.nav__links {
  display: flex;
  gap: 18px;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
}

.hero__actions a.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.hero__actions a {
  text-decoration: none !important;
}

.hero__actions a:visited,
.hero__actions a:hover,
.hero__actions a:active {
  text-decoration: none;
}

.nav__actions {
  display: flex;
  gap: 10px;
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero__copy {
  max-width: 560px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(245, 181, 59, 0.9);
  margin: 0 0 8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.hero__subtext {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero__panel {
  justify-self: end;
}

.panel {
  background: #ffffff;
  color: var(--ink);
  padding: 20px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid #e6ebf5;
}

.panel__title {
  font-weight: 700;
  margin-bottom: 8px;
}

.panel p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel__input {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f4f6fb;
  border-radius: 999px;
  padding: 6px;
  border: 1px solid #e2e7f2;
}

.panel__input input {
  border: none;
  background: transparent;
  padding: 8px 10px;
  width: 100%;
}

.panel__list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.panel__list div {
  border: 1px solid #edf0f6;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfcff;
}

.panel__list strong {
  display: block;
  font-size: 0.85rem;
}

.panel__list span {
  color: var(--muted);
  font-size: 0.8rem;
}

.layout {
  max-width: 1200px;
  margin: 24px auto 64px;
  padding: 0 24px;
  display: grid;
  gap: 24px;
}

.hidden {
  display: none;
}

.stack {
  display: grid;
  gap: 12px;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.checkbox input {
  width: auto;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid #e5ebf5;
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.card__header h2 {
  margin: 0;
}

.admin-list-header {
  margin-top: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--muted);
  gap: 6px;
}

input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7ddea;
  background: #ffffff;
  font-size: 0.95rem;
}

textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7ddea;
  background: #ffffff;
  font-size: 0.95rem;
  resize: vertical;
}

button {
  background: var(--navy);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}

button:hover {
  opacity: 0.9;
}

button.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid #cbd6e7;
}

.pill {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.pill.accent {
  background: var(--accent);
  color: #1a1a1a;
}

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

button.pill.accent {
  background: var(--accent);
  color: #1a1a1a;
}

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

.pill.dark {
  background: var(--navy);
}

.nav__actions .pill,
.hero__actions .pill {
  background: var(--accent);
  color: #1a1a1a;
  border: none;
}

.nav__actions .pill:hover,
.hero__actions .pill:hover {
  background: var(--accent-dark);
}

.nav__actions .pill.ghost,
.hero__actions .pill.ghost {
  background: var(--accent);
  color: #1a1a1a;
  border: none;
}

.linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--navy);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.linkish:hover {
  color: #21334f;
}

.grid__actions {
  display: flex;
  align-items: flex-end;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #e3e9f3;
  background: #ffffff;
}

#resultsTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

#resultsTable th,
#resultsTable td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f6;
  text-align: left;
  font-size: 0.9rem;
}

#resultsTable tbody tr {
  cursor: pointer;
}

#resultsTable tbody tr:hover {
  background: #f4f7fb;
}

#resultsTable tbody tr.selected {
  background: #e9f0fb;
}

.details {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--clay);
}

.details-inline {
  padding: 16px;
  border-radius: 14px;
  background: var(--clay);
  border: 1px solid #e0e7f2;
}

.details-inline__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.details-row td {
  padding: 0;
  border-bottom: none;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.details-grid strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.details h3 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.reports-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.scroll {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
}

.report-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px dashed #dfe6f2;
  font-size: 0.9rem;
}

.upload {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
}

.modal.hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 20, 0.7);
}

.modal__content {
  position: relative;
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  width: min(420px, 92vw);
  box-shadow: var(--shadow);
  z-index: 1;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.auth-guard {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(9, 14, 24, 0.75);
  z-index: 9;
}

.auth-guard.hidden {
  display: none;
}

.auth-guard__card {
  background: #ffffff;
  padding: 28px;
  border-radius: 18px;
  width: min(360px, 90vw);
  text-align: center;
  box-shadow: var(--shadow);
}

.auth-guard__card h2 {
  margin-top: 0;
}


@media (max-width: 720px) {
  .card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  #resultsTable {
    min-width: 520px;
  }

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

  .nav__links {
    flex-wrap: wrap;
  }
}
