:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #23312e;
  background: #f1f3ee;
  font-synthesis: none;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header {
  background: #fff;
  border-bottom: 1px solid #dce1d8;
  padding: 24px max(28px, calc((100vw - 1280px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
  color: #163f33;
  white-space: nowrap;
}
.brand span {
  color: #a9bf54;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 5px;
  margin-top: 4px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 48px 28px 24px;
}
.intro {
  margin-bottom: 36px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #607063;
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -1.8px;
  margin: 0 0 16px;
}
h2 {
  font-size: 22px;
  font-weight: 550;
  margin: 0 0 14px;
}
p {
  line-height: 1.6;
  color: #607068;
  margin: 8px 0 22px;
}
.card {
  background: #fff;
  border: 1px solid #dce1d8;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 4px 8px #173a2403;
}
.narrow {
  max-width: 500px;
  margin: 0 auto 70px;
}
.step {
  font-size: 12px;
  color: #72836a;
  padding-bottom: 24px;
}
.progress {
  display: flex;
  gap: 36px;
  font-size: 12px;
  color: #576855;
  border-top: 1px solid #d4ddce;
  padding: 20px 0 28px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.badge {
  font-size: 11px;
  letter-spacing: 1px;
  background: #eef3e1;
  border: 1px solid #d5dfb2;
  border-radius: 30px;
  padding: 7px 12px;
  color: #466226;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  margin: 12px 0;
}
input:not([type='checkbox']),
textarea,
select {
  font: inherit;
  color: #23312e;
  background: #fafbf8;
  border: 1px solid #ccd5c8;
  border-radius: 8px;
  max-width: 100%;
  padding: 12px;
  display: block;
  width: 100%;
  margin-top: 7px;
}
select {
  padding: 9px;
  min-width: 114px;
}
textarea {
  resize: vertical;
  min-height: 224px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible,
#drop:focus-visible {
  outline: 3px solid #c5d99d;
  outline-offset: 3px;
}
#drop {
  border: 1px dashed #9aaf8c;
  background: #f8faf3;
  min-height: 185px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  padding: 20px;
}
#drop.drag {
  background: #e6edda;
}
#drop input {
  width: auto;
  font-size: 11px;
  background: none;
  border: 0;
  max-width: 100%;
}
#drop span {
  font-size: 11px;
  font-weight: 400;
  color: #607068;
}
.upload-icon {
  font-size: 30px !important;
  color: #3b6040 !important;
}
.muted {
  font-size: 12px;
  color: #69766c;
  font-weight: 400;
}
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}
button,
.download {
  border: 1px solid #cdd5c8;
  background: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #274b3b;
  text-decoration: none;
}
.primary {
  background: #234e3c;
  color: #fff;
  border-color: #234e3c;
  padding: 14px 22px;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}
.guide {
  background: #e9efdd;
}
.guide li {
  font-size: 13px;
  line-height: 1.7;
  padding-bottom: 12px;
  color: #526049;
}
ol {
  padding-inline-start: 20px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #7a867b;
  font-size: 11px;
  padding: 14px 0;
}
.table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #e0e5da;
  border-radius: 8px;
  margin: 16px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: start;
  white-space: nowrap;
}
th {
  text-align: start;
  color: #65745f;
  background: #f7f9f3;
  position: sticky;
  top: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td,
th {
  padding: 12px;
  border-bottom: 1px solid #e5e9e0;
}
td {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.warning,
#message {
  border: 1px solid #dfc98d;
  border-radius: 9px;
  background: #fcf5e2;
  color: #755214;
  padding: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 13px;
}
.success {
  border-color: #a6c6a4 !important;
  background: #edf6ea !important;
  color: #2d5630 !important;
}
.flagcheck {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}
input[type='checkbox'] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #234e3c;
}
.receipt-id {
  overflow-wrap: anywhere;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.8;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.empty {
  padding: 25px 0;
  color: #83917f;
  font-size: 13px;
}
bdi {
  unicode-bidi: isolate;
}
#filename {
  overflow-wrap: anywhere;
}
[dir='rtl'] .eyebrow {
  letter-spacing: 0;
}
[dir='rtl'] h1 {
  letter-spacing: 0;
}
input[type='url'],
input[type='email'],
#code {
  direction: ltr;
}
@media (max-width: 760px) {
  header {
    padding: 18px;
  }
  .brand {
    font-size: 19px;
  }
  .brand small {
    font-size: 8px;
  }
  main {
    padding: 30px 16px 16px;
  }
  .intro {
    margin-bottom: 26px;
  }
  .card {
    padding: 21px 17px;
    border-radius: 12px;
  }
  .sources,
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .progress {
    gap: 18px;
    font-size: 11px;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions button {
    padding: 8px;
    font-size: 10px;
  }
  select {
    padding: 8px;
    min-width: 100px;
    font-size: 12px;
  }
  .section-heading {
    align-items: flex-start;
  }
  footer {
    flex-direction: column;
  }
  .actions {
    gap: 12px;
  }
  h2 {
    font-size: 20px;
  }
  textarea {
    min-height: 180px;
  }
  .table-wrap {
    max-height: 340px;
  }
  h1 {
    letter-spacing: -1px;
  }
}
.card,
.sources > *,
.bottom-grid > * {
  min-width: 0;
}
.receipt-id {
  white-space: pre-wrap;
  word-break: break-word;
}
.section-heading > * {
  min-width: 0;
}
#preview td {
  white-space: normal;
  min-width: 100px;
  max-width: none;
  overflow-wrap: anywhere;
}
#preview td:first-child {
  min-width: 48px;
}

/* The same quiet green, white surfaces and rounded controls as the holder portal. */
:root { color: #10291d; background: #f5f8f6; font-size: 16px; }
header { padding-block: 20px; padding-inline: max(24px, calc((100vw - 1100px) / 2)); }
.brand { display: flex; flex-shrink: 0; }
.brand img { display: block; width: 180px; height: auto; max-width: 100%; }
main { max-width: 1100px; padding-top: 46px; }
.intro { margin-bottom: 24px; }
h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 650; letter-spacing: -.04em; }
h2 { font-size: 23px; font-weight: 650; }
.eyebrow { color: #167348; font-size: 12px; letter-spacing: .1em; }
p { color: #52695c; }
.card { border-color: #dce7df; padding: 32px; border-radius: 20px; box-shadow: 0 8px 32px #10291d04; }
.progress { gap: 12px; padding: 0; margin-bottom: 28px; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.progress span { display: flex; align-items: center; padding: 15px 18px; border-radius: 12px; background: #eaf0ec; font-size: 14px; line-height: 1.5; color: #52695c; }
.progress [aria-current] { background: #123e29; color: #fff; font-weight: 600; }
.narrow { max-width: 480px; margin-bottom: 40px; }
.section-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #08783f; background: #e8f4ec; margin-bottom: 20px; font-size: 25px; }
label { font-size: 14px; }
input:not([type='checkbox']), textarea, select { background: #fff; border-color: #c6d6cb; min-height: 46px; }
.primary { background: #08783f; border-color: #08783f; padding: 15px 26px; font-size: 15px; min-height: 50px; }
.primary:hover:not(:disabled) { background: #065e32; }
#signinButton { width: 100%; margin-top: 12px; }
button, .download { min-height: 44px; font-size: 14px; }
button:disabled { opacity: .55; }
.sources { gap: 28px; }
#drop { min-height: 238px; border: 2px dashed #9fc5ad; background: #f5faf7; padding: 28px 16px; gap: 12px; }
#drop strong { font-size: 16px; }
#drop span { font-size: 13px; }
#drop .upload-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #e3f2e9; color: #08783f !important; }
#drop input { font-size: 12px; min-height: 30px; padding: 0; }
#drop.drag { background: #e3f2e9; border-color: #08783f; }
textarea { min-height: 200px; font-family: inherit; font-size: 14px; }
.template-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #52695c; }
.template-links .download { border: 0; background: none; border-radius: 0; padding: 10px 0; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.sheet-source { max-width: 520px; margin-top: 14px; }
.sheet-source input { font-size: 13px; }
.badge { background: #edf7f0; border-color: #c6dfcf; color: #12633a; white-space: nowrap; }
.summary { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin: 24px 0; }
.summary > div { padding: 18px 20px; border: 1px solid #dce7df; border-radius: 12px; background: #f7faf8; }
.summary dt { font-size: 13px; color: #52695c; }
.summary dd { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 20px; margin: 8px 0 0; overflow-wrap: anywhere; }
th { font-size: 12px; text-transform: none; letter-spacing: 0; background: #f2f7f4; }
table { font-size: 14px; }
#preview td { min-width: 90px; }
#preview td:last-child { min-width: 200px; }
.warning, #message { font-size: 14px; }
.success { border-color: #b7d8c4 !important; background: #f0f8f3 !important; }
#receipt h2 { color: #12633a; }
.muted { font-size: 13px; }
footer { color: #52695c; font-size: 12px; padding-block: 18px; }
@media(max-width:760px) {
  header { padding: 14px 16px; gap: 8px; }
  .brand img { width: 126px; }
  .header-actions { gap: 8px; }
  .header-actions button { font-size: 11px; padding-inline: 8px; }
  .header-actions select { min-width: 92px; }
  main { padding: 28px 16px 16px; }
  .progress { gap: 6px; margin-bottom: 20px; }
  .progress span { padding: 12px 9px; font-size: 12px; }
  .card { padding: 24px 18px; border-radius: 16px; margin-bottom: 18px; }
  .summary { grid-template-columns: 1fr; gap: 8px; }
  .summary > div { padding: 14px; }
  .summary dd { font-size: 18px; }
  .actions .primary { width: 100%; }
  #drop { min-height: 220px; }
  .section-heading { flex-wrap: wrap; }
  .sources { gap: 6px; }
  #receipt .primary { width: 100%; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; } }
#drop #file { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
#preview td.value-cell, td.value-cell { white-space: nowrap; min-width: 110px; overflow-wrap: normal; font-variant-numeric: tabular-nums; }
