@font-face {
  font-family: 'Public Sans';
  src: url('./fonts/public-sans.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('./fonts/barlow-condensed-semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
:root {
  font-family: 'Public Sans', sans-serif;
  color: #182e27;
  background: #f0f6f3;
  --accent: #174c3c;
  --line: #b6cbc1;
  --muted: #4a6458;
  --paper: #fff;
  --soft: #e1eee7;
  --ink: #182e27;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 12px 17px;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.42;
  cursor: default;
}
button.secondary {
  background: #fff;
  border-color: #b6cbc1;
  color: #182e27;
}
.text-button {
  border: 0;
  background: none;
  color: #182e27;
  padding: 7px 0;
  font-size: 12px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #426858;
  outline-offset: 4px;
}
.topbar {
  max-width: 1450px;
  margin: auto;
  min-height: 90px;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: #182e27;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -1px;
}
.logo {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 3px;
}
.logo i {
  background: var(--accent);
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.logo i:last-child {
  background: #b6cbc1;
}
.version {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: #182e27;
  margin-left: 10px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 28px;
}
.topbar > div > a {
  font-size: 12px;
  color: #182e27;
  text-decoration: none;
}
.privacy {
  font-size: 12px;
  color: #182e27;
  display: flex;
  gap: 7px;
  align-items: center;
}
.privacy > span {
  color: #426858;
  font-size: 16px;
}
main {
  max-width: 1450px;
  padding: 0 50px;
  margin: auto;
}
.hero {
  padding: 52px 0 30px;
}
.eyebrow {
  color: #182e27;
  font-size: 12px;
  letter-spacing: 1.8px;
  font-weight: 650;
  margin: 0 0 15px;
}
h1 {
  font-size: clamp(34px, 4.3vw, 55px);
  letter-spacing: -2.2px;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 19px;
  color: #182e27;
}
h1 > span {
  color: #426858;
}
.hero > p:last-child {
  color: #182e27;
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}
.intake {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 20px;
}
.dropzone {
  background: #fff;
  border: 1px dashed #b6cbc1;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 37px 28px;
  transition: background 0.15s;
}
.dropzone.dragging {
  background: #e1eee7;
  border-color: #174c3c;
}
.upload-icon {
  width: 58px;
  height: 62px;
  border: 1px solid #e1eee7;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #426858;
  font-size: 29px;
  background: #ffffff;
}
h2 {
  font-size: 15px;
  letter-spacing: -0.2px;
  font-weight: 600;
  margin: 0;
}
.dropzone p {
  color: #182e27;
  font-size: 12px;
  margin: 10px 0 17px;
}
.intake-actions {
  display: flex;
  gap: 23px;
  align-items: center;
  position: relative;
}
.file-input {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.intake-actions:focus-within .button {
  outline: 2px solid #426858;
  outline-offset: 4px;
}
.sample-card {
  background: #e1eee7;
  border: 1px solid #e1eee7;
  border-radius: 9px;
  padding: 26px;
}
.sample-tag {
  font-size: 12px;
  color: #182e27;
  letter-spacing: 1.4px;
}
.sample-card h2 {
  font-size: 16px;
  margin: 12px 0 8px;
}
.sample-card p {
  font-size: 12px;
  line-height: 1.8;
  color: #182e27;
  margin: 0 0 17px;
  max-width: 300px;
}
.sample-card button {
  background: transparent;
  font-size: 12px;
}
.below-intake {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 16px 0;
}
.below-intake label {
  font-size: 12px;
  color: #182e27;
  display: flex;
  align-items: center;
  gap: 11px;
}
select,
input[type='search'] {
  background: #fff;
  border: 1px solid #b6cbc1;
  border-radius: 5px;
  padding: 9px 10px;
  font-size: 12px;
  color: #182e27;
}
.below-intake p {
  font-size: 12px;
  color: #182e27;
}
.notice {
  font-size: 12px;
  line-height: 1.8;
  min-height: 20px;
  color: #182e27;
  margin: 15px 0 24px;
}
.notice.error {
  color: #174c3c;
}
.loaded-file {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.file-badge {
  border: 1px solid #b6cbc1;
  border-radius: 5px;
  color: #426858;
  padding: 10px 7px;
  font:
    9px ui-monospace,
    monospace;
}
.loaded-file strong {
  font-size: 12px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.loaded-file small {
  display: block;
  color: #182e27;
  font-size: 12px;
  margin-top: 5px;
}
.loaded-file button {
  margin-left: auto;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin: 8px 0 22px;
  overflow: hidden;
}
.metrics article {
  padding: 21px 23px;
  border-right: 1px solid var(--line);
}
.metrics article:last-child {
  border: 0;
}
.metrics article span {
  display: block;
  font-size: 12px;
  color: #182e27;
}
.metrics strong {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1px;
  display: block;
  margin-top: 10px;
}
.metrics article.good {
  background: #e1eee7;
}
.metrics article.good strong {
  color: #174c3c;
}
.metrics article.warn strong {
  color: #426858;
}
.work-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 21px;
}
.rules,
.preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.rules {
  padding: 20px;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step {
  font:
    10px ui-monospace,
    monospace;
  color: #182e27;
  border: 1px solid #e1eee7;
  border-radius: 50%;
  min-width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.panel-heading h2 {
  font-size: 12px;
}
.panel-heading p {
  font-size: 12px;
  color: #182e27;
  line-height: 1.6;
  margin: 5px 0 0;
}
.toggle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: #182e27;
  line-height: 1.7;
  margin: 20px 0;
}
.toggle input {
  accent-color: #174c3c;
  margin: 3px 0 0;
  width: 13px;
  height: 13px;
  flex: none;
}
.toggle small {
  display: block;
  color: #182e27;
  font-size: 12px;
  margin-top: 3px;
}
.field-label {
  display: block;
  font-size: 12px;
  color: #182e27;
  margin: 20px 0 9px;
}
.rules > select {
  width: 100%;
}
.hint {
  font-size: 12px;
  color: #182e27;
  line-height: 1.8;
  margin: 10px 0 15px;
}
.rule-caption,
.column-rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 35px;
  gap: 5px;
  align-items: center;
}
.rule-caption {
  font-size: 12px;
  color: #182e27;
  border-top: 1px solid #e1eee7;
  border-bottom: 1px solid #e1eee7;
  padding: 12px 0 9px;
}
.rule-caption span:not(:first-child) {
  text-align: center;
}
.column-rules {
  max-height: 270px;
  overflow: auto;
}
.column-rule {
  font:
    10px ui-monospace,
    monospace;
  padding: 10px 0;
  border-bottom: 1px solid #e1eee7;
  color: #182e27;
}
.column-rule > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.column-rule input {
  accent-color: #174c3c;
  justify-self: center;
  width: 12px;
  height: 12px;
}
.export-options {
  border-top: 1px solid #e1eee7;
  margin-top: 15px;
}
.export-options .toggle {
  margin-bottom: 8px;
}
.preview > .panel-heading {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 14px 17px;
  gap: 10px;
  background: #ffffff;
  border-bottom: 1px solid #e1eee7;
}
.table-toolbar input {
  width: 220px;
}
.table-wrap {
  overflow: auto;
  min-height: 330px;
  max-height: 600px;
}
table {
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  width: 100%;
  font-size: 12px;
}
th {
  padding: 13px;
  color: #182e27;
  font-weight: 500;
  background: #ffffff;
  font-size: 12px;
  border-bottom: 1px solid #e1eee7;
  position: sticky;
  top: 0;
}
td {
  padding: 13px;
  border-bottom: 1px solid #e1eee7;
  color: #182e27;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td:nth-child(2) {
  white-space: normal;
  min-width: 165px;
  max-width: 240px;
}
.review-row {
  background: #ffffff;
}
.record-button {
  background: none;
  border: 0;
  padding: 3px;
  color: #182e27;
  font:
    10px ui-monospace,
    monospace;
  text-decoration: underline;
  text-decoration-color: #b6cbc1;
  text-underline-offset: 3px;
}
.badge {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid #e1eee7;
}
.badge.ready {
  color: #174c3c;
  background: #e1eee7;
}
.badge.review {
  color: #174c3c;
  background: #e1eee7;
  border-color: #b6cbc1;
}
td small {
  display: block;
  max-width: 225px;
  font-size: 12px;
  line-height: 1.6;
  color: #174c3c;
  margin-top: 6px;
}
.empty-cell:after {
  content: 'â€”';
  color: #b6cbc1;
}
.pagination {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.pagination span {
  font:
    9px ui-monospace,
    monospace;
  color: #182e27;
}
.pagination > div {
  display: flex;
  gap: 9px;
}
.pagination button {
  font-size: 12px;
  padding: 7px 10px;
}
.preview-hint {
  font-size: 12px;
  color: #182e27;
  padding: 13px 18px;
  border-top: 1px solid #e1eee7;
  margin: 0;
  line-height: 1.8;
}
.empty {
  font-size: 12px;
  color: #182e27;
  text-align: center;
  padding: 60px 20px;
}
.export-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e1eee7;
  border: 1px solid #e1eee7;
  border-radius: 8px;
  padding: 23px;
  gap: 20px;
  margin-top: 23px;
}
.export-bar > .panel-heading {
  max-width: 500px;
}
.export-bar > .panel-heading p {
  font-size: 12px;
  color: #182e27;
}
.export-bar > div:last-child {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.export-bar button {
  font-size: 12px;
  white-space: nowrap;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin: 48px 0 37px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.principles article > span {
  font-size: 12px;
  letter-spacing: 1.4px;
  color: #182e27;
}
.principles h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 12px 0;
}
.principles p {
  font-size: 12px;
  line-height: 1.9;
  color: #182e27;
  max-width: 320px;
  margin: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #182e27;
}
footer a {
  color: #182e27;
  text-decoration: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
dialog {
  border: 1px solid #e1eee7;
  border-radius: 10px;
  padding: 25px;
  width: min(670px, calc(100% - 30px));
  color: #182e27;
  box-shadow: 0 20px 100px #182e2733;
}
dialog::backdrop {
  background: #182e2766;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-heading button {
  font-size: 20px;
}
dialog form {
  display: grid;
  gap: 15px;
}
dialog label {
  font-size: 12px;
}
dialog textarea {
  min-height: 230px;
  padding: 15px;
  border: 1px solid #b6cbc1;
  border-radius: 5px;
  font:
    12px/1.8 ui-monospace,
    monospace;
  resize: vertical;
}
dialog pre {
  font:
    11px/1.8 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 65vh;
  overflow: auto;
  background: #e1eee7;
  padding: 18px;
  border-radius: 5px;
}
@media (max-width: 1150px) {
  main {
    padding: 0 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .work-grid {
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 15px;
  }
  .rules {
    padding: 16px;
  }
  .export-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .intake {
    grid-template-columns: 1.6fr 1fr;
  }
  .dropzone {
    gap: 18px;
    padding: 28px 18px;
  }
  .upload-icon {
    display: none;
  }
  .principles {
    gap: 30px;
  }
}
@media (max-width: 800px) {
  .version {
    display: none;
  }
  .topbar {
    min-height: 78px;
  }
  .hero {
    padding-top: 36px;
  }
  .intake {
    grid-template-columns: 1fr;
  }
  .sample-card {
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 18px;
    align-items: center;
  }
  .sample-card .sample-tag {
    grid-column: 1;
  }
  .sample-card h2 {
    grid-column: 1;
    margin: 8px 0;
  }
  .sample-card p {
    grid-column: 1;
    margin: 0;
    max-width: 440px;
  }
  .sample-card button {
    grid-column: 2;
    grid-row: 1/4;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .rules {
    display: block;
  }
  .column-rules {
    max-height: 180px;
  }
  .rule-caption,
  .column-rule {
    grid-template-columns: minmax(0, 1fr) 90px 90px;
  }
  .export-options .toggle {
    margin-bottom: 0;
  }
  .export-options .hint {
    margin-left: 23px;
  }
  .principles {
    gap: 25px;
  }
  .table-wrap {
    min-height: 250px;
  }
}
@media (max-width: 550px) {
  main,
  .topbar {
    padding-left: 17px;
    padding-right: 17px;
  }
  .topbar > div {
    gap: 14px;
  }
  .privacy {
    font-size: 12px;
    max-width: 115px;
    line-height: 1.5;
  }
  .topbar > div > a {
    font-size: 12px;
  }
  .brand {
    font-size: 22px;
  }
  .hero {
    padding-top: 31px;
  }
  h1 {
    font-size: 37px;
    letter-spacing: -1.8px;
  }
  .hero > p:last-child {
    font-size: 12px;
  }
  .hero br:not(h1 br) {
    display: none;
  }
  .dropzone {
    justify-content: flex-start;
    padding: 25px 20px;
  }
  .dropzone h2 {
    font-size: 14px;
  }
  .sample-card {
    display: block;
  }
  .sample-card button {
    margin-top: 15px;
  }
  .below-intake {
    display: block;
  }
  .below-intake p {
    margin-top: 13px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics article {
    border-bottom: 1px solid var(--line);
    padding: 17px;
  }
  .metrics article:nth-child(2) {
    border-right: 0;
  }
  .metrics article:nth-child(3) {
    border-bottom: 0;
  }
  .metrics article:last-child {
    border-bottom: 0;
  }
  .metrics span {
    font-size: 12px;
  }
  .metrics strong {
    font-size: 27px;
  }
  .table-toolbar {
    padding: 12px;
    flex-wrap: wrap;
  }
  .table-toolbar input {
    width: 170px;
  }
  .table-toolbar select {
    width: 135px;
  }
  .pagination {
    padding: 12px;
    flex-wrap: wrap;
  }
  .export-bar {
    padding: 18px;
  }
  .export-bar > div:last-child {
    flex-direction: column;
    width: 100%;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 34px;
  }
  .principles p {
    max-width: 100%;
    font-size: 12px;
  }
  footer {
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
  }
  .loaded-file strong {
    font-size: 12px;
  }
  .loaded-file small {
    font-size: 12px;
  }
  .loaded-file button {
    font-size: 12px;
  }
  .intake-actions {
    gap: 20px;
  }
}

button,
.button,
input,
select,
textarea,
.card,
.panel,
.metrics,
.rules,
.preview,
.sample-card,
.dropzone,
.export-bar {
  border-radius: 2px;
}
h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}
.badge.ready {
  color: #15563c;
  background: #d9f3e4;
  border-color: #9ac9ad;
}
.badge.review {
  color: #794214;
  background: #fff0db;
  border-color: #d5b584;
}
.metrics article.good strong {
  color: #15563c;
}
.metrics article.warn strong {
  color: #794214;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #174c3c;
  border-bottom-color: #174c3c;
  min-height: 72px;
}
.topbar .brand,
.topbar .version,
.topbar .privacy,
.topbar .privacy > span,
.topbar > div > a {
  color: #f1fff6;
}
.topbar .logo i {
  background: #f1fff6;
}
.topbar .logo i:last-child {
  background: #9bd5b0;
}

/* The masthead and condensed headings distinguish the file workbench. */
.brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  letter-spacing: 0.2px;
}
.version {
  font-family: 'Public Sans', sans-serif;
  font-size: 10px;
}
h1 {
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.02;
}
.hero {
  padding-top: 40px;
}
.eyebrow {
  color: var(--accent);
  font-weight: 700;
}
.sample-card {
  border-left: 4px solid var(--accent);
}
.metrics strong {
  font-variant-numeric: tabular-nums;
}
.metrics article.good {
  background: #d9f3e4;
}
.metrics article.warn {
  background: #fff0db;
}
.review-row {
  background: #fffbf4;
}
th {
  background: #edf5f0;
  font-weight: 650;
}
.sample-card button {
  background: #fff;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #a45a14;
  outline-offset: 3px;
}
@media (max-width: 550px) {
  .brand {
    font-size: 28px;
  }
  h1 {
    font-size: 44px;
  }
  .topbar {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 10px;
  }
}
