@font-face {
  font-family: DM Sans;
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #202a22;
  --muted: #5d685e;
  --line: #dfe5da;
  --paper: #fff;
  --canvas: #f7f8f4;
  --green: #28533d;
  --soft: #edf4ea;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.47;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid #567a61;
  outline-offset: 3px;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  background: white;
  padding: 10px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 67px;
  border-bottom: 1px solid var(--line);
  padding: 12px max(24px, calc((100% - 1160px) / 2));
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  display: block;
}
.privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  color: var(--green);
  background: var(--soft);
  border-radius: 999px;
  padding: 7px 11px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #50845e;
  border-radius: 50%;
}
main,
footer {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  align-items: center;
  gap: clamp(24px, 6vw, 84px);
  padding: 46px 0 34px;
}
h1 {
  max-width: 650px;
  font-weight: 750;
  font-size: clamp(36px, 5.15vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.intro p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 430px;
  margin: 0;
}
.sample {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}
.sample figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 650;
}
.sample-file,
.sample tbody th {
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.sample-file {
  color: var(--muted);
  font-weight: 400;
}
.sample thead {
  background: transparent;
}
.sample th,
.sample td {
  padding: 7px 12px;
}
.sample th:not(:first-child),
.sample td {
  text-align: right;
}
.sample tbody th {
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}
.sample tbody tr:last-child th {
  border-bottom: 0;
}
.sample td:last-child {
  color: var(--green);
  font-weight: 750;
  background: var(--soft);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.steps {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.steps li {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.steps li span {
  font-variant-numeric: tabular-nums;
  margin-right: 5px;
  color: #687b69;
}
.steps li[aria-current] {
  background: #e7efe3;
  border-color: #dae6d6;
  color: var(--green);
}
.steps li.completed {
  color: var(--green);
}
.workspace {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 36px #25382808;
  padding: clamp(18px, 3vw, 33px);
}
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 7px;
}
h3 {
  font-size: 14px;
  margin-bottom: 5px;
}
.muted {
  color: var(--muted);
  line-height: 1.55;
}
.file-grid,
.mapping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.drop {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  border: 1px dashed #a9baaa;
  border-radius: 11px;
  background: #fafbf8;
  padding: 17px;
  position: relative;
  cursor: pointer;
  transition:
    background 0.14s,
    border-color 0.14s;
}
.drop:hover,
.drop.dragging,
.drop:focus-within {
  background: var(--soft);
  border-color: #528063;
}
.drop:focus-within {
  outline: 2px solid #528063;
  outline-offset: 2px;
}
.drop.chosen {
  border-style: solid;
  border-color: #789981;
  background: #f3f8f1;
}
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.drop span,
.drop small {
  overflow-wrap: anywhere;
}
.drop small {
  font-size: 11px;
  color: var(--muted);
}
.drop .file-icon {
  font-size: 10px;
  letter-spacing: 0.07em;
  font-weight: 750;
  color: var(--green);
  border-radius: 6px;
  background: #e6eee3;
  padding: 7px 9px;
  align-self: flex-start;
  margin-bottom: 3px;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.secondary-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  font-size: 13px;
}
.primary,
.secondary,
.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 12px;
  min-height: 36px;
  text-decoration: none;
}
.primary {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}
.primary:hover:not(:disabled) {
  background: #1d422f;
}
.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.secondary:hover:not(:disabled),
.quiet:hover:not(:disabled) {
  background: var(--soft);
}
.quiet {
  background: transparent;
  border: 1px solid transparent;
  color: var(--green);
  padding: 6px 9px;
  min-height: 30px;
}
.notice {
  border: 1px solid #cbdcc9;
  border-radius: 8px;
  background: var(--soft);
  padding: 10px 13px;
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
}
.notice.error {
  border-color: #e5b9ac;
  background: #fff4ef;
  color: #803927;
}
.mapping-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 17px;
}
.mapping-grid label {
  font-size: 13px;
  font-weight: 700;
  display: grid;
  gap: 6px;
}
select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 6px 8px;
  min-width: 0;
}
.table-scroll {
  overflow: auto;
  max-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f4ee;
}
th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tr.selected {
  background: #eef5ed;
}
td input {
  width: 100%;
  min-width: 55px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 5px;
  font-variant-numeric: tabular-nums;
}
td input:hover {
  border-color: var(--line);
  background: white;
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.filter {
  font-size: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter input {
  accent-color: var(--green);
}
.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 15px;
}
.rows,
.preview {
  min-width: 0;
}
.status {
  font-size: 11px;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  white-space: nowrap;
}
.status.ready {
  background: #e4efe3;
  color: #315b3c;
}
.status.blocked {
  background: #faecd6;
  color: #75460f;
}
.row-detail {
  margin-top: 8px;
  padding: 10px 11px;
  background: #f5f7f2;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.5;
}
.row-detail p {
  margin: 0 0 4px;
}
.row-detail select {
  max-width: 100%;
}
.preview {
  background: #e9ede6;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.preview-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f4f6f1;
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.preview-tools select:last-child {
  margin-left: auto;
}
.page-scroll {
  overflow: auto;
  max-height: 460px;
  padding: 10px;
}
.page-frame {
  position: relative;
  width: 100%;
  background: white;
  box-shadow: 0 3px 12px #202b2422;
}
.page-frame canvas {
  display: block;
  width: 100%;
  height: auto;
}
.mark {
  position: absolute;
  background: #f6d77c4d;
  border: 1px solid #9b660b;
  border-radius: 2px;
  pointer-events: none;
}
.success-mark {
  display: inline-grid;
  place-items: center;
  color: var(--green);
  background: var(--soft);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  font-size: 22px;
}
.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 23px 3px 12px;
}
.notes p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding: 14px 0 20px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 720px) {
  main,
  footer {
    width: calc(100% - 28px);
  }
  .topbar {
    padding-inline: 14px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 28px 0 22px;
  }
  .sample {
    max-width: 420px;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 2px;
  }
  .steps li {
    padding: 6px 5px;
  }
  .steps li span {
    margin-right: 2px;
  }
  .page-scroll {
    max-height: 370px;
  }
  .mapping-grid {
    grid-template-columns: 1fr;
  }
  .mapping-grid label {
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
  }
}
@media (max-width: 430px) {
  .privacy {
    font-size: 10px;
    padding: 6px 7px;
  }
  .file-grid,
  .notes {
    grid-template-columns: 1fr;
  }
  .drop {
    padding: 12px;
  }
  .review-head {
    flex-wrap: wrap;
  }
  .workspace {
    padding: 13px;
  }
  .steps li {
    font-size: 10px;
  }
  .steps li span {
    display: none;
  }
  th,
  td {
    padding-inline: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
body[data-step]:not([data-step="files"]) .intro {
  display: block;
  padding: 20px 0 14px;
}
body[data-step]:not([data-step="files"]) .intro h1 {
  font-size: 21px;
  letter-spacing: -0.03em;
  margin: 0;
}
body[data-step]:not([data-step="files"]) .intro p,
body[data-step]:not([data-step="files"]) .sample {
  display: none;
}
