:root {
  color-scheme: light;
  --ink: #142421;
  --muted: #5b6c68;
  --line: #d8e2df;
  --paper: #fbfdfc;
  --soft: #edf5f2;
  --deep: #164b44;
  --deep-2: #0d3833;
  --gold: #bb842c;
  --rose: #9d4f55;
  --blue: #416c8f;
  --shadow: 0 18px 50px rgba(18, 36, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 253, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  min-height: 40px;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}

nav a:hover,
nav a:focus-visible {
  color: var(--deep);
  background: var(--soft);
}

.hero {
  display: grid;
  min-height: 72vh;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 72px) 28px;
  background:
    linear-gradient(115deg, rgba(9, 50, 45, 0.94), rgba(22, 75, 68, 0.72)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: white;
}

.admin-hero {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
  color: white;
  background:
    linear-gradient(110deg, rgba(9, 50, 45, 0.96), rgba(65, 108, 143, 0.74)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.admin-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  align-self: center;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.trust-strip {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1080px;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
}

.trust-strip div {
  padding: 18px;
  background: rgba(11, 43, 39, 0.72);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 760px);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
  max-width: 1230px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 4vw, 40px);
}

.privacy-panel,
.report-form,
.hr-section article,
.process article,
.report-card,
.user-form,
.user-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.privacy-panel {
  position: sticky;
  top: 86px;
  padding: 24px;
}

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

.privacy-panel h2,
.report-form h2,
.process h2,
.hr-section h2 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.privacy-panel p,
.process p,
.report-card p,
.small-print,
.note {
  color: var(--muted);
  line-height: 1.55;
}

.choice-grid {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.choice,
.filter,
.secondary-button,
.submit-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.choice {
  display: block;
  width: 100%;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
}

.choice.active {
  border-color: var(--deep);
  background: var(--soft);
  box-shadow: inset 4px 0 0 var(--deep);
}

.choice-title {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
}

.choice span:last-child {
  color: var(--muted);
}

.assurance {
  padding: 14px;
  color: var(--deep-2);
  background: var(--soft);
  border-radius: 8px;
  line-height: 1.45;
}

.report-form {
  padding: clamp(20px, 4vw, 34px);
}

.form-head,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.step-pill,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: white;
  background: var(--deep);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-weight: 750;
}

fieldset {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 6px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--deep);
  box-shadow: 0 0 0 3px rgba(22, 75, 68, 0.16);
}

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

.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-weight: 650;
}

.radio-row input {
  width: 18px;
  min-height: 18px;
}

.hidden {
  display: none;
}

.note,
.review-box {
  padding: 14px;
  border-radius: 8px;
}

.note {
  margin-bottom: 14px;
  background: #fff7e8;
  border: 1px solid #ead2a5;
}

.review-box {
  display: grid;
  gap: 5px;
  margin: 22px 0;
  background: #eef5fb;
  border: 1px solid #c7d9e6;
  line-height: 1.5;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  color: white;
  background: var(--deep);
  border-color: var(--deep);
  font-weight: 900;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--deep-2);
}

.small-print {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.process,
.hr-section {
  max-width: 1230px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 4vw, 40px);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process article {
  padding: 22px;
}

.process article span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: white;
  background: var(--deep);
  border-radius: 999px;
  font-weight: 900;
}

.secondary-button,
.filter {
  min-height: 42px;
  padding: 9px 12px;
  color: var(--deep);
  background: white;
  font-weight: 800;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.filter.active {
  color: white;
  background: var(--deep);
  border-color: var(--deep);
}

.report-list {
  display: grid;
  gap: 14px;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: white;
}

.report-card {
  padding: 20px;
}

.user-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(140px, 180px) auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0;
  padding: 18px;
}

.user-form.hidden {
  display: none;
}

.user-form label {
  margin: 0;
}

.user-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.user-card h3,
.user-card p {
  margin-bottom: 4px;
}

.report-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag {
  padding: 5px 8px;
  color: var(--deep-2);
  background: var(--soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.tag.warn {
  color: #6f3c00;
  background: #fff1d6;
}

.tag.alert {
  color: white;
  background: var(--rose);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.report-actions button {
  min-height: 38px;
  padding: 8px 10px;
  color: var(--deep);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  color: white;
  background: var(--deep);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(140%);
  transition: transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
}

.access-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--soft);
}

.access-panel {
  width: min(520px, 100%);
  padding: 34px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.access-panel img {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
}

.access-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

@media (max-width: 820px) {
  .topbar,
  .form-head,
  .section-heading,
  .report-top {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 78vh;
  }

  .trust-strip,
  .workspace,
  .process-grid,
  .two-col,
  .user-form,
  .user-card {
    grid-template-columns: 1fr;
  }

  .privacy-panel {
    position: static;
  }
}

@media (max-width: 520px) {
  nav a {
    padding-inline: 8px;
    font-size: 0.92rem;
  }

  .hero h1 {
    font-size: 2.45rem;
  }
}
