@font-face {
  font-family: Plex;
  src: url('/assets/fonts/ibm-plex-sans-latin-var.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: PlexMono;
  src: url('/assets/fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: PlexMono;
  src: url('/assets/fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
:root {
  --paper: #f4f4f1;
  --surface: #fff;
  --ink: #14171c;
  --muted: #505966;
  --rule: #c8cbd0;
  --slate: #1e3f66;
  --soft: #e6edf5;
  --good: #245c43;
  --warn: #75470d;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 Plex,
    system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0 auto;
  width: min(calc(100% - 3rem), 73rem);
}
main {
  flex: 1;
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.masthead,
footer,
footer nav,
.toolbar,
.actions,
.sheet-account,
.section-title,
.file-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem 1.1rem;
  flex-wrap: wrap;
}
.masthead,
footer {
  min-height: 72px;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
footer {
  border-top: 1px solid var(--rule);
  border-bottom: 0;
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
footer a,
.masthead a {
  color: inherit;
  text-decoration: none;
}
footer a:hover,
.masthead a:hover {
  text-decoration: underline;
}
a,
.link {
  color: var(--slate);
  text-underline-offset: 0.2em;
}
h1,
h2,
h3,
p {
  margin: 0 0 1rem;
}
h1,
h2,
h3 {
  line-height: 1.12;
}
h1 {
  max-width: 23ch;
  font-size: clamp(2.15rem, 4.5vw, 3.65rem);
  font-weight: 500;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.032em;
}
h3 {
  font-size: 1.06rem;
  font-weight: 600;
}
p {
  max-width: 63ch;
}
button,
.choose {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--slate);
  border-radius: 5px;
  background: var(--slate);
  color: white;
  font:
    500 0.96rem/1.3 Plex,
    system-ui,
    sans-serif;
  cursor: pointer;
}
button:hover,
.choose:hover {
  background: #152f4d;
}
.secondary {
  background: var(--surface);
  color: var(--slate);
  border-color: var(--rule);
}
.secondary:hover {
  background: var(--soft);
}
.link {
  display: inline-flex;
  background: transparent;
  border: 0;
  padding: 0.3rem 0;
  text-decoration: underline;
  font: inherit;
}
.link:hover {
  background: transparent;
}
button:disabled {
  opacity: 0.58;
  cursor: default;
}
:focus-visible,
.choose:focus-within {
  outline: 3px solid #2e6091;
  outline-offset: 3px;
}
input,
select {
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #999fa7;
  border-radius: 4px;
  padding: 0.45rem 0.6rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
label {
  display: grid;
  gap: 0.28rem;
  color: var(--muted);
  font-size: 0.89rem;
  font-weight: 500;
}
input[type='checkbox'] {
  min-height: 0;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--slate);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.29fr) minmax(18rem, 0.89fr);
  gap: clamp(2rem, 5vw, 5.25rem);
  align-items: center;
}
.lead {
  max-width: 55ch;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.55;
}
.drop {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 0.55rem 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1.5px dashed #8495a6;
  border-radius: 7px;
  background: #fafbfc;
}
.drop strong {
  max-width: 29ch;
  font-weight: 500;
  font-size: 1.04rem;
}
.drop small {
  grid-column: 2/-1;
  color: var(--muted);
}
.drop.drag {
  background: var(--soft);
  border-color: var(--slate);
}
.drop-symbol {
  color: var(--slate);
  font:
    400 1.65rem PlexMono,
    monospace;
  text-align: center;
  border-bottom: 2px solid currentColor;
  align-self: center;
}
.choose {
  position: relative;
  overflow: hidden;
  font-size: 0.94rem;
}
.choose input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.local,
.muted,
.sheet-note {
  color: var(--muted);
  font-size: 0.9rem;
}
.local {
  margin: 0.6rem 0 0;
}
.specimen {
  margin: 0;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 4px 5px 0 #e2e4e4;
  overflow: hidden;
}
.sheet-head {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.95rem 1.3rem;
  border-bottom: 1px solid var(--rule);
  background: var(--soft);
  color: var(--slate);
}
.sheet-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.paper-icon {
  width: 17px;
  height: 21px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: repeating-linear-gradient(
      to bottom,
      transparent 0 4px,
      currentColor 4px 5px
    )
    center / 9px 12px no-repeat;
}
.sheet-body {
  padding: 1.15rem 1.3rem;
}
.sheet-account {
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.25rem;
  font-size: 0.95rem;
}
.ok {
  color: var(--good);
}
.warn {
  color: var(--warn);
}
.sheet-account .ok,
.balance-label {
  font-size: 0.82rem;
  font-weight: 500;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: white;
}
th,
td {
  font-size: 0.9rem;
  border-bottom: 1px solid #dedfe2;
  padding: 0.62rem 0.55rem;
  vertical-align: middle;
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
}
.specimen th,
.specimen td {
  padding: 0.5rem 0.12rem;
}
.specimen th:last-child,
.num {
  text-align: right;
}
.num,
.figure,
.price-num,
.specimen td:first-child {
  font-family: PlexMono, ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}
.sheet-note {
  padding: 0.65rem 0;
  margin: 0;
}
.proof-checks {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--good);
}
.proof-checks strong {
  color: var(--muted);
  font-weight: 500;
}
.band {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
}
.hero,
.review-head {
  margin-bottom: 2.5rem;
}
.how,
.faq {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2.5fr;
  gap: 1.25rem;
}
.steps {
  margin: 0;
  padding-left: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
}
.steps li {
  padding-left: 0.14rem;
}
.steps li::marker {
  color: var(--slate);
  font-weight: 600;
}
details > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 0.62rem 0;
  font-weight: 500;
}
.faq details,
.guides {
  border-bottom: 1px solid var(--rule);
}
.guides nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.35rem;
}
.guides a {
  padding: 0.5rem 0;
}
.footnotes {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footnotes p {
  margin: 0;
}
.prose,
.price-page {
  max-width: 47rem;
  margin: auto;
}
.prose h2 {
  margin-top: 1.8rem;
}
.plan,
dialog {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: clamp(1.3rem, 4vw, 2.25rem);
}
.plan {
  margin: 1.5rem 0 1rem;
  border-top: 4px solid var(--slate);
}
.price-num {
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1.1;
}
.price-num small {
  font:
    400 1.15rem Plex,
    sans-serif;
  color: var(--muted);
}
dialog {
  max-width: min(30rem, calc(100vw - 2rem));
  max-height: 90svh;
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(20, 23, 28, 0.4);
}
dialog .actions {
  margin: 0.7rem 0;
}
dialog label {
  margin-bottom: 0.8rem;
}
.notice,
.alert {
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
  border-inline-start: 3px solid var(--slate);
  background: var(--soft);
  overflow-wrap: anywhere;
}
.alert {
  border-color: #94621c;
  background: #f7eedc;
}
.review-head,
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.review-head {
  margin-bottom: 0.8rem;
}
.review-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  border-block: 1px solid var(--rule);
  padding: 1rem 0;
}
.stats div {
  display: grid;
}
.stats dt {
  color: var(--muted);
  font-size: 0.85rem;
}
.stats dd {
  margin: 0;
  font-size: 1.18rem;
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  gap: 1.5rem;
  align-items: start;
}
.ledger,
.output-panel {
  min-width: 0;
}
.output-panel {
  padding: 1.2rem;
  background: white;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--slate);
  border-radius: 5px;
}
.output-panel label,
.output-panel h3 {
  margin-bottom: 0.6rem;
}
.output-panel h3 {
  margin-top: 1.15rem;
}
.output-panel .actions {
  display: grid;
  align-items: stretch;
  gap: 0.5rem;
}
.checklist {
  padding: 0;
  list-style: none;
}
.checklist li {
  margin: 0.35rem 0;
  padding-inline-start: 1.3rem;
  position: relative;
  font-size: 0.88rem;
}
.checklist li > b {
  position: absolute;
  inset-inline-start: 0;
}
.table-scroll {
  overflow: auto;
  max-height: 26rem;
  scrollbar-gutter: stable;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: white;
}
.table-scroll thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf0f2;
}
.table-scroll th,
.table-scroll td {
  white-space: nowrap;
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 42px;
  padding: 0.4rem 0.6rem;
}
.table-scroll tr.problem {
  background: #fff3d9;
}
.table-scroll tr.excluded {
  color: var(--muted);
  background: #f3f4f4;
}
.file-nav {
  align-items: end;
  margin: 0.8rem 0;
}
.file-nav select {
  max-width: 26ch;
}
.repair,
.catchup,
.duplicate-list {
  border-top: 1px solid var(--rule);
  margin-top: 0.75rem;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12.5rem, 100%), 1fr));
  gap: 0.65rem 0.85rem;
  padding: 0.5rem 0 1rem;
}
.check-label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.catchup {
  padding: 0.9rem 0 1rem;
}
.catchup input {
  max-width: 15rem;
}
.bounded {
  max-height: 14rem;
  overflow: auto;
}
.download-tips {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
}
.download-tips ol {
  padding-left: 1.3rem;
  font-size: 0.9rem;
}
.download-tips a,
.part-link {
  display: block;
  min-height: 44px;
  padding: 0.5rem 0;
  overflow-wrap: anywhere;
}
@media (max-width: 55rem) {
  .hero {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 1.6rem;
  }
  .drop {
    grid-template-columns: 1fr auto;
  }
  .drop-symbol {
    display: none;
  }
  .drop small {
    grid-column: 1/-1;
  }
  .how,
  .faq {
    grid-template-columns: 1fr 2fr;
  }
  .work-grid {
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 1rem;
  }
}
@media (max-width: 44rem) {
  body {
    width: calc(100% - 2rem);
  }
  .hero,
  .work-grid,
  .how,
  .faq {
    grid-template-columns: 1fr;
  }
  .hero {
    align-items: start;
  }
  .sheet-body {
    padding: 1rem;
  }
  .how,
  .faq {
    gap: 0;
  }
  .stats {
    gap: 0.7rem 1.1rem;
  }
  .output-panel {
    margin-top: 1rem;
  }
  .review-head {
    flex-wrap: wrap;
  }
  .drop {
    padding: 0.9rem;
  }
  .steps {
    display: grid;
    gap: 0.35rem;
  }
  .price-num {
    font-size: 2.2rem;
  }
  footer {
    gap: 0.2rem;
  }
  footer nav {
    gap: 0.1rem 0.85rem;
  }
}
