:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: #f6faf7;
  --paper: #ffffff;
  --paper-2: #eef6f2;
  --ink: #10213a;
  --muted: #607184;
  --line: #d6e2dc;
  --navy: #10284a;
  --green: #5d8d64;
  --gold: #caa04a;
  --coral: #d66d55;
  --sky: #dcebf2;
  --shadow: 0 16px 42px rgb(16 40 74 / 0.1);
  --focus: 0 0 0 3px rgb(93 141 100 / 0.24);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgb(93 141 100 / 0.12), transparent 36%),
    linear-gradient(180deg, #f6faf7 0%, #edf5f0 100%);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  width: min(1440px, calc(100vw - 32px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: min(360px, 62vw);
  height: auto;
  display: block;
}

.top-nav,
.site-footer nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a,
.site-footer a,
.primary-button,
.secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
  font-weight: 850;
}

.top-nav a.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.primary-button {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.secondary-button {
  background: var(--paper-2);
}

.primary-button:hover,
.secondary-button:hover,
.top-nav a:hover,
.site-footer a:hover {
  border-color: var(--gold);
}

.page-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 12px 0 28px;
}

.intro {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 940px;
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 1.28rem;
  letter-spacing: 0;
}

.intro p:last-child,
.step-heading p,
.method-panel p,
.site-footer span,
.action-line p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.ad-row,
.entry-panel,
.wait-panel,
.report-panel,
.method-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: var(--shadow);
}

.ad-row {
  min-height: 92px;
  margin-bottom: 14px;
  padding: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-unit {
  width: 100%;
  min-height: 70px;
  display: block;
  border: 1px dashed #cbd9d1;
  border-radius: 8px;
  background: linear-gradient(90deg, #f5f8f6, #edf5f0);
}

.ad-unit.large {
  min-height: 220px;
}

.entry-panel,
.wait-panel,
.report-panel,
.method-panel {
  padding: 20px;
}

.step-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.step-heading:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.step-heading span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--sky);
  color: var(--navy);
  font-weight: 950;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.rates-grid,
.meal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: #fbfefd;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  border-color: var(--green);
  box-shadow: var(--focus);
  outline: none;
}

.action-line,
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.form-actions {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.error-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgb(214 109 85 / 0.55);
  border-radius: 8px;
  background: rgb(214 109 85 / 0.12);
  color: #843726;
  font-weight: 800;
}

.error-box p {
  margin: 0;
}

.wait-panel {
  margin-top: 14px;
  text-align: center;
}

.wait-panel h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.wait-panel strong {
  color: var(--coral);
}

.report-panel {
  margin-top: 14px;
}

.report-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.total-card {
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgb(202 160 74 / 0.65);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(202 160 74 / 0.18), transparent 46%),
    var(--paper-2);
}

.total-card span,
.report-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.total-card strong {
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
}

.total-card small {
  color: var(--green);
  font-weight: 850;
}

.result-list {
  display: grid;
  margin: 16px 0;
}

.result-list div {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.result-list dt {
  color: var(--muted);
  font-weight: 850;
}

.result-list dd {
  margin: 0;
  color: var(--navy);
  font-weight: 950;
}

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

.report-grid div,
.method-grid div {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
}

.report-grid strong,
.method-grid strong {
  color: var(--navy);
}

.notice {
  margin-top: 14px;
  margin-bottom: 0;
  padding: 12px;
  border: 1px solid rgb(214 109 85 / 0.42);
  border-radius: 8px;
  background: rgb(214 109 85 / 0.1);
  color: #743423;
  line-height: 1.45;
}

.method-panel {
  display: grid;
  gap: 14px;
}

.site-footer {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--navy);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1060px) {
  .field-grid,
  .rates-grid,
  .meal-grid,
  .report-grid,
  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .top-nav,
  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 0;
    padding: 14px 0;
  }

  .brand img {
    width: 100%;
  }

  .top-nav a,
  .site-footer a,
  .primary-button,
  .secondary-button {
    flex: 1;
  }

  .field-grid,
  .rates-grid,
  .meal-grid,
  .report-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .step-heading {
    grid-template-columns: 1fr;
  }

  .report-header,
  .action-line,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
