:root {
  --ink: #152b28;
  --muted: #5e716b;
  --accent: #17654f;
  --deep: #113f37;
  --pale: #eaf3ee;
  --paper: #f6f8f6;
  --surface: #fff;
  --line: #dbe4df;
  --danger: #9b3429;
  --radius: 12px;
  --shadow: 0 12px 32px #113f3709;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #319e7b;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
h2 {
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
p {
  line-height: 1.65;
}
small {
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}
.container {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  background: var(--surface);
  padding: 1rem;
  z-index: 50;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 4px;
}
.brand-mark {
  background: var(--deep);
  color: #fff;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 15px;
  letter-spacing: -0.08em;
  flex-shrink: 0;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-link.active {
  color: var(--accent);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 0.86rem;
  min-height: 46px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.button:hover {
  background: var(--deep);
  border-color: var(--deep);
  text-decoration: none;
}
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.button.secondary:hover {
  background: var(--pale);
}
.button.small {
  padding: 10px 16px;
  min-height: 44px;
}
.button.danger {
  background: var(--surface);
  color: var(--danger);
  border-color: #e1c6c1;
}
.button.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.hero {
  padding: 64px 0 52px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  max-width: 650px;
  margin-bottom: 24px;
}
.hero h1 span {
  color: var(--accent);
}
.hero-intro {
  max-width: 500px;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 22px;
}
.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  margin-bottom: 22px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 100%;
}
.hero-card {
  background: var(--deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.hero-card .eyebrow {
  color: #acd2bd;
}
.hero-card h2 {
  font-size: 1.8rem;
  margin: 28px 0 24px;
  max-width: 240px;
}
.hero-card p {
  color: #c3d8cd;
  font-size: 0.86rem;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.service-list li {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #ffffff26;
  font-size: 0.86rem;
}
.service-list li span {
  color: #acd2bd;
}
.hero-card-note {
  display: flex;
  gap: 10px;
  font-size: 0.72rem;
  padding-top: 4px;
  color: #c3d8cd;
}
.step-number {
  font-size: 0.68rem;
  color: #acd2bd;
}
.search-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 1.25rem;
  margin: 0;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.tab {
  background: transparent;
  border: 0;
  padding: 10px 14px;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.8rem;
  border-radius: 6px;
  font-weight: 600;
}
.tab.active {
  background: var(--pale);
  color: var(--accent);
}
.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.search-help {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 12px 0 0;
}
.search-help strong {
  color: var(--ink);
  font-weight: 600;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  margin: 0;
}
.field > label {
  font-size: 0.8rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #bccbc2;
  border-radius: 7px;
  background: var(--surface);
  padding: 12px 14px;
  color: var(--ink);
  min-height: 46px;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
.field input[readonly],
.field textarea[readonly] {
  background: var(--paper);
}
.field small {
  font-size: 0.73rem;
  color: var(--muted);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.span-2 {
  grid-column: 1/-1;
}
.required-note {
  font-size: 0.73rem;
  color: var(--muted);
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.6;
}
.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}
.form-error {
  background: #fff2ed;
  border: 1px solid #eed5cb;
  color: #853025;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
}
.notice {
  background: var(--pale);
  border: 1px solid #cce0d2;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.83rem;
  line-height: 1.65;
}
.notice p:last-child {
  margin-bottom: 0;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.results-section {
  padding: 32px 0 64px;
}
.results-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.results-header h2 {
  font-size: 1rem;
  margin: 0;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}
.sort-control select {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 44px;
  background: var(--surface);
  padding: 8px 12px;
  color: var(--ink);
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.result-card h3 {
  margin-bottom: 12px;
}
.result-card p {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 0;
  white-space: pre-wrap;
}
.empty-state {
  text-align: center;
  padding: 40px 24px;
  border: 1px dashed #c8d7ce;
  border-radius: var(--radius);
  background: #ffffff60;
}
.empty-state h3 {
  margin: 16px 0 8px;
}
.empty-state p {
  max-width: 430px;
  margin: 0 auto 20px;
  font-size: 0.86rem;
  color: var(--muted);
}
.empty-mark {
  font-size: 22px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--pale);
  color: var(--accent);
  margin: auto;
  font-weight: 700;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 0.8rem;
}
.bottom-note {
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  max-width: 750px;
}
.page-heading {
  padding: 44px 0 28px;
}
.page-heading h1 {
  font-size: 2.4rem;
  margin: 0 0 14px;
}
.page-heading p {
  max-width: 630px;
  color: var(--muted);
  margin: 0;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  padding-bottom: 64px;
}
.form-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-section + .form-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.form-section h2 {
  font-size: 1.15rem;
  margin: 0 0 20px;
}
.form-section h2 span {
  font-size: 0.7rem;
  margin-right: 10px;
  color: var(--accent);
  font-weight: 400;
}
.form-submit {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}
.side-note {
  padding: 24px;
  background: var(--pale);
  border: 1px solid #d5e4da;
  border-radius: var(--radius);
  align-self: start;
}
.side-note h2 {
  font-size: 1rem;
}
.side-note p,
.side-note li {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.7;
}
.side-note ol {
  padding-left: 20px;
}
.side-note li + li {
  margin-top: 14px;
}
.side-note .button {
  width: 100%;
}
.success-card {
  margin: 0 auto 64px;
  padding: 40px;
  max-width: 700px;
  border: 1px solid #bcd7c6;
  background: var(--surface);
  border-radius: var(--radius);
}
.receipt {
  font-family: monospace;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  padding: 14px;
  background: var(--paper);
  border-radius: 6px;
}
.login-wrap {
  max-width: 440px;
  margin: 56px auto 80px;
}
.login-wrap h1 {
  font-size: 2rem;
}
.login-wrap form {
  display: grid;
  gap: 20px;
}
.login-wrap p {
  font-size: 0.86rem;
  color: var(--muted);
}
.password-row {
  display: flex;
  gap: 8px;
  align-items: end;
}
.password-row .field {
  flex: 1;
}
.icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.3rem;
  color: var(--ink);
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.panel-heading h1 {
  font-size: 2.1rem;
}
.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.metric {
  padding: 20px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric strong {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.metric span {
  font-size: 0.75rem;
  color: var(--muted);
}
.panel-content {
  padding-bottom: 64px;
}
.panel-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.panel-toolbar input {
  flex: 1;
  min-width: 180px;
}
.panel-toolbar select {
  min-width: 150px;
}
.panel-toolbar input,
.panel-toolbar select {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  min-height: 44px;
}
.report-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.report-row h3 {
  margin: 10px 0;
}
.report-row p {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.report-meta {
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 5px;
  background: #edf1ef;
  color: #496057;
}
.badge.approved {
  background: #e1f2e8;
  color: #1a6547;
}
.badge.pending {
  background: #fcf0d9;
  color: #795900;
}
.badge.rejected {
  background: #f8e6e2;
  color: #88362d;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.7rem;
  background: #f1f5f2;
}
td {
  line-height: 1.6;
}
td small {
  display: block;
  color: var(--muted);
}
.history-detail {
  max-width: 400px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
dialog {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: min(740px, calc(100% - 32px));
  max-height: 90dvh;
  color: var(--ink);
  background: var(--surface);
}
dialog::backdrop {
  background: #10241f80;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 1.35rem;
  margin: 8px 0 0;
}
#dialog-body > form {
  display: grid;
  gap: 20px;
}
.private-details {
  background: var(--paper);
  padding: 16px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.private-details dt {
  font-size: 0.7rem;
  color: var(--muted);
}
.private-details dd {
  margin: 4px 0 0;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}
.evidence-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.verification-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.verification-box legend {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 5px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(550px, calc(100% - 32px));
  background: var(--deep);
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  z-index: 100;
}
.prose {
  max-width: 760px;
  margin: auto;
  padding-bottom: 64px;
}
.prose h2 {
  font-size: 1.25rem;
  margin-top: 32px;
}
.prose p,
.prose li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}
.page-loading {
  padding: 64px;
  text-align: center;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  max-width: 1200px;
  margin: auto;
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
}
.footer-inner p {
  margin: 0;
}
.footer-inner a {
  color: var(--muted);
}
.footer-brand {
  font-weight: 700;
  color: var(--ink) !important;
}
@media (max-width: 900px) {
  .hero {
    gap: 32px;
    grid-template-columns: 1.2fr 1fr;
  }
  .hero-card {
    padding: 24px;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .side-note {
    order: 2;
  }
  .header-inner {
    padding: 16px 24px;
  }
  nav {
    gap: 16px;
  }
  .metric {
    padding: 16px;
  }
  .footer-inner {
    gap: 18px;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .hero-card {
    display: none;
  }
  .container {
    width: calc(100% - 32px);
  }
  .header-inner {
    padding: 14px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 0.92rem;
  }
  .brand small {
    font-size: 0.6rem;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 0 28px;
    gap: 28px;
  }
  .hero h1 {
    margin-bottom: 18px;
  }
  .hero-intro {
    font-size: 0.92rem;
  }
  .hero-card {
    padding: 24px;
  }
  .hero-card h2 {
    font-size: 1.3rem;
    max-width: 100%;
    margin: 16px 0;
  }
  .service-list {
    margin-bottom: 16px;
  }
  .hero-card .eyebrow {
    margin-bottom: 0;
  }
  .service-list li {
    padding: 10px 0;
  }
  .search-panel {
    padding: 20px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .tabs {
    gap: 2px;
  }
  .tab {
    padding: 10px 12px;
  }
  .search-row {
    grid-template-columns: 1fr;
  }
  .search-row > .button {
    width: 100%;
  }
  .results-header {
    flex-wrap: wrap;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
  .results-section {
    padding-bottom: 40px;
  }
  .result-card {
    padding: 20px;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .span-2 {
    grid-column: auto;
  }
  .form-card {
    padding: 20px;
  }
  .page-heading {
    padding: 32px 0 24px;
  }
  .page-heading h1 {
    font-size: 2rem;
  }
  .success-card {
    padding: 24px;
  }
  .login-wrap {
    margin: 32px auto 48px;
    width: calc(100% - 32px);
  }
  .panel-heading {
    flex-direction: column;
  }
  .panel-actions {
    margin-bottom: 8px;
  }
  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .report-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }
  .report-row .actions {
    justify-content: start;
  }
  .private-details {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    padding: 24px 16px;
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  dialog {
    padding: 20px;
  }
  .prose {
    width: calc(100% - 32px);
  }
  .page-loading {
    padding: 40px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
