@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f6f6f4;
  --surface: #ffffff;
  --ink: #101214;
  --text: #2b2f34;
  --muted: #626871;
  --faint: #6b717a;
  --rule: #deded9;
  --rule-strong: #b8b9b3;
  --on-ink: #ffffff;
  --accent: #1d3fc0;
  --accent-strong: #16309a;
  --accent-on: #ffffff;
  --accent-wash: rgba(29, 63, 192, .07);
  --focus: var(--accent);
  --shadow: 0 1px 0 rgba(16, 18, 20, .03), 0 28px 60px -48px rgba(16, 18, 20, .45);
  --font: "Geist", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1012;
    --surface: #15181b;
    --ink: #f3f3f0;
    --text: #c7cbcf;
    --muted: #9aa0a6;
    --faint: #8b9198;
    --rule: #262a2e;
    --rule-strong: #3b4045;
    --on-ink: #0e1012;
    --accent: #8fa6ff;
    --accent-strong: #a9baff;
    --accent-on: #0e1012;
    --accent-wash: rgba(143, 166, 255, .10);
    --focus: var(--accent);
    --shadow: none;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg { max-width: 100%; }

a { color: inherit; }

::selection {
  background: var(--accent);
  color: var(--accent-on);
}

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-on);
  text-decoration: none;
  font-size: 12px;
}
.skip:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* header */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 5px;
  background: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.site-nav a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }

/* home */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: var(--gutter);
  align-items: end;
  padding-block: clamp(56px, 9vw, 124px) clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}

.display {
  margin: 16px 0 0;
  max-width: 15ch;
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.045em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-aside {
  justify-self: end;
  max-width: 40ch;
  padding-bottom: 6px;
}
.hero-aside > p {
  margin: 0;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.55;
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 26px;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span + span::before {
  content: "/";
  margin: 0 12px;
  color: var(--rule-strong);
}

/* index */

.index { padding-block: clamp(40px, 6vw, 72px); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head span,
.section-head a {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.section-head a:hover { color: var(--accent); }

.index-list { border-bottom: 1px solid var(--rule); }

.index-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.15fr) minmax(0, 1fr) 24px;
  gap: clamp(14px, 2vw, 28px);
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  transition: background .16s ease;
}
.index-row:hover { background: var(--accent-wash); }
.index-num {
  padding-top: 8px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.index-title {
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}
.index-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.index-arrow {
  justify-self: end;
  padding-top: 6px;
  font-size: 17px;
  line-height: 1;
  color: var(--accent);
  transition: transform .18s ease, color .18s ease;
}
.index-row:hover .index-title {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.index-row:hover .index-arrow {
  transform: translateX(4px);
  color: var(--accent-strong);
}

/* approach */

.approach {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gutter);
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--rule);
}
.approach-head h2 {
  margin: 12px 0 0;
  max-width: 10ch;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink);
}

.how-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.how-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.how-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.how-num {
  padding-top: 5px;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.how-list h3 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
}
.how-list p {
  margin: 0;
  max-width: 54ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* page */

.page-head { padding-block: clamp(40px, 6vw, 80px) 0; }

.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: var(--gutter);
  align-items: end;
}
.page-title h1 {
  margin: 16px 0 0;
  max-width: 18ch;
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
  text-wrap: balance;
}
.page-lead {
  justify-self: end;
  max-width: 46ch;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--text);
}

.page-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(28px, 4vw, 44px) 0 0;
  border-top: 1px solid var(--rule);
}
.page-meta > div {
  min-width: 0;
  padding: 13px 20px 13px 0;
  border-right: 1px solid var(--rule);
}
.page-meta > div + div { padding-left: 20px; }
.page-meta > div:last-child {
  padding-right: 0;
  border-right: 0;
}
.page-meta dt {
  margin: 0 0 3px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.page-meta dd {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* tool surface */

.workbench {
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.workbench-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.workbench-head span:first-child::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  margin-bottom: 1px;
  background: var(--accent);
}
.tool { padding: clamp(18px, 3vw, 30px); }

.wc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.wc-label {
  display: block;
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.wc-textarea {
  display: block;
  width: 100%;
  min-height: 330px;
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--accent);
  font: 400 17px/1.7 var(--font);
  resize: vertical;
}
.wc-textarea::placeholder {
  color: var(--faint);
  opacity: 1;
}
.wc-textarea:hover { border-bottom-color: var(--muted); }
.wc-textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}

.wc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.wc-status {
  min-height: 1em;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 500 12px/1 var(--font);
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on);
}

.wc-stats {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}
.wc-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.wc-stat dt {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.wc-stat dd {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}

.wc-more {
  margin-top: 20px;
  border-top: 1px solid var(--rule);
}
.wc-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink);
}
.wc-more summary::-webkit-details-marker { display: none; }
.wc-more summary::after {
  content: "+";
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
}
.wc-more[open] summary::after { content: "−"; }

.wc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.wc-table th {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--faint);
}
.wc-table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
}
.wc-table th:last-child,
.wc-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.wc-table tr:last-child td { border-bottom: 0; }

.wc-note {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* long-form */

.prose { margin-top: clamp(48px, 7vw, 96px); }

.prose-section {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: var(--gutter);
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--rule);
}
.prose-index {
  padding-top: 8px;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.prose-body h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--ink);
}
.prose-body p {
  margin: 0 0 14px;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.prose-body p:last-child { margin-bottom: 0; }

.prose-body ul {
  margin: 0;
  padding: 0;
  max-width: 64ch;
  list-style: none;
}
.prose-body li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-top: 1px solid var(--rule);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
}
.prose-body li:first-child {
  padding-top: 0;
  border-top: 0;
}
.prose-body li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--rule-strong);
}
.prose-body li:first-child::before { top: 8px; }

.faq {
  max-width: 70ch;
  border-top: 1px solid var(--rule);
}
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  list-style: none;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--muted);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0 0 16px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.sources,
.related-links {
  margin: 0;
  padding: 0;
  max-width: 70ch;
  list-style: none;
}
.sources li,
.related-links li { border-top: 1px solid var(--rule); }
.sources li:first-child,
.related-links li:first-child { border-top: 0; }
.sources a,
.related-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.sources a::after {
  content: "↗";
  font-size: 13px;
  color: var(--accent);
}
.related-links a::after {
  content: "→";
  font-size: 13px;
  color: var(--accent);
}
.sources a:hover,
.related-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.prose-body .sources li,
.prose-body .related-links li {
  padding: 0;
  font-size: 14px;
  line-height: inherit;
}
.prose-body .sources li::before,
.prose-body .related-links li::before { content: none; }

.more-tools { margin-top: clamp(56px, 8vw, 104px); }

/* footer */

.site-foot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: var(--gutter);
  margin-top: clamp(64px, 10vw, 140px);
  padding-block: 36px 56px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}
.foot-brand .brand { font-size: 19px; letter-spacing: -.02em; }
.foot-brand p {
  margin: 10px 0 0;
  max-width: 28ch;
  line-height: 1.55;
}
.foot-nav,
.foot-note {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.foot-nav h2,
.foot-note h2 {
  margin: 0 0 3px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.foot-nav a {
  color: var(--muted);
  text-decoration: none;
}
.foot-nav a:hover { color: var(--accent); }
.foot-note p {
  margin: 0;
  max-width: 32ch;
  line-height: 1.55;
}
.colophon {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--faint);
}

/* 404 */

.notfound {
  padding-block: clamp(64px, 12vw, 160px) clamp(64px, 10vw, 120px);
}
.notfound .display {
  max-width: 12ch;
  font-size: clamp(42px, 6vw, 80px);
}
.notfound-lead {
  margin: 24px 0 28px;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}
.notfound .btn { min-width: 160px; }

/* motion */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .55s cubic-bezier(.22, .61, .36, 1) both; }
  .rise-2 { animation-delay: .08s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
}

/* responsive */

@media (max-width: 980px) {
  .hero,
  .page-head-grid,
  .approach { grid-template-columns: minmax(0, 1fr); }

  .hero-aside,
  .page-lead {
    justify-self: start;
    max-width: 52ch;
  }
  .hero-aside { margin-top: 28px; }
  .approach-head h2 { max-width: 16ch; }
  .approach .how-list { margin-top: 24px; }

  .site-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-note { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .wc-grid { grid-template-columns: minmax(0, 1fr); }
  .wc-stats { margin-top: 28px; }

  .prose-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .prose-index { padding-top: 0; }

  .index-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px 16px;
    padding: 18px 0;
  }
  .index-desc { grid-column: 2; }
  .index-arrow { display: none; }

  .page-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .page-meta > div:nth-child(2) { border-right: 0; }
  .page-meta > div:nth-child(3) {
    grid-column: 1 / -1;
    padding-left: 0;
    border-top: 1px solid var(--rule);
  }

  .hero { padding-top: 48px; }
  .display { font-size: clamp(38px, 9vw, 56px); }
}

@media (max-width: 520px) {
  .site-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  .site-nav { gap: 8px 18px; }

  .wc-actions .btn { flex: 1 1 auto; }
  .wc-status { flex-basis: 100%; }

  .page-meta { grid-template-columns: minmax(0, 1fr); }
  .page-meta > div {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }
  .page-meta > div + div {
    padding-left: 0;
    border-top: 1px solid var(--rule);
  }
  .page-meta > div:nth-child(3) { grid-column: auto; }

  .site-foot { grid-template-columns: minmax(0, 1fr); }
  .foot-note { grid-column: auto; }
}
/* shared tool kit */

.field { margin: 0 0 16px; }
.field:last-child { margin-bottom: 0; }
.field > label,
.field-label {
  display: block;
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input[type="text"],
.field input[type="number"],
.field input[type="date"],
.field input[type="email"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  caret-color: var(--accent);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; padding-right: 18px; cursor: pointer; }
.field select:hover,
.field input:hover,
.field textarea:hover { border-bottom-color: var(--muted); }
.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.hint {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--faint);
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.tool-status {
  min-height: 1em;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}
.tool-foot {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.result-head strong { font-weight: 500; color: var(--ink); letter-spacing: .02em; text-transform: none; font-size: 13px; }
.score-line { display: flex; align-items: baseline; gap: 10px; padding: 14px 0 6px; }
.score-line b { font-size: 42px; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.score-line span { font-size: 12px; color: var(--muted); }

.kv { list-style: none; margin: 0; padding: 0; }
.kv li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.4;
}
.kv li > span:first-child { color: var(--muted); }
.kv li > span:last-child { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

.flags { list-style: none; margin: 10px 0 0; padding: 0; }
.flags li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.flags li::before {
  position: absolute;
  left: 0;
  top: 7px;
  content: "—";
  color: var(--faint);
}
.flags li.ok::before { content: "ok"; font-size: 10px; letter-spacing: .06em; color: var(--muted); top: 11px; }
.flags li.bad::before { content: "!"; color: var(--ink); font-weight: 600; top: 7px; }

.bar {
  height: 2px;
  margin: 10px 0 0;
  background: var(--rule);
  overflow: hidden;
}
.bar > i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .18s ease; }

.chk-groups { display: grid; gap: 26px; }
.chk-group h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chk-group h3 span { letter-spacing: .02em; text-transform: none; color: var(--faint); }
.chk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}
.chk-item input {
  flex: none;
  width: 14px;
  height: 14px;
  margin: 3px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.chk-item input:checked + span { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }

.gen-list { list-style: none; margin: 0; padding: 0; }
.gen-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.gen-item:last-child { border-bottom: 0; }
.gen-name { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.gen-item button {
  flex: none;
  border: 0;
  background: none;
  padding: 2px 0;
  font: 400 11px/1 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gen-item button:hover { color: var(--accent); }

.drop {
  display: block;
  width: 100%;
  padding: 30px 18px;
  border: 1px dashed var(--rule-strong);
  background: transparent;
  text-align: center;
  color: var(--muted);
  font: 400 13px/1.6 var(--font);
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.drop:hover,
.drop.over { border-color: var(--ink); color: var(--ink); }
.drop input { display: none; }
.drop b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 500; color: var(--ink); }
.img-frame { margin-top: 16px; }
.img-frame img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); }
.img-frame figcaption { margin-top: 6px; font-size: 11.5px; color: var(--faint); overflow-wrap: anywhere; }

.ps-rows { width: 100%; border-collapse: collapse; font-size: 13px; }
.ps-rows th {
  padding: 0 4px 6px 0;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--faint);
}
.ps-rows td { padding: 2px 4px 2px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.ps-rows input {
  width: 100%;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: 400 14px/1.4 var(--font);
}
.ps-rows input:focus { outline: none; border-bottom-color: var(--accent); }
.ps-rows td.num { width: 74px; }
.row-del {
  border: 0;
  background: none;
  padding: 0 2px;
  font: 400 16px/1 var(--font);
  color: var(--faint);
  cursor: pointer;
}
.row-del:hover { color: var(--ink); }
.add-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--rule-strong);
  background: transparent;
  font: 500 12px/1 var(--font);
  letter-spacing: .04em;
  color: var(--muted);
  cursor: pointer;
}
.add-row:hover { border-color: var(--ink); color: var(--ink); }

.ps-preview {
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}
.ps-preview h3 { margin: 0 0 2px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.ps-preview .ps-top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.ps-preview .ps-top p { margin: 2px 0 0; white-space: pre-line; }
.ps-preview .ps-meta { margin: 0; text-align: right; font-size: 12px; color: var(--muted); }
.ps-preview table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.ps-preview th {
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--faint);
}
.ps-preview td { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.ps-preview th:last-child,
.ps-preview td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ps-preview .ps-total td { border-bottom: 0; font-weight: 500; color: var(--ink); }
.ps-preview .ps-thanks { margin: 20px 0 0; font-size: 12.5px; }
.cl-out {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 400 14.5px/1.75 var(--font);
  color: var(--text);
}

@media (max-width: 720px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .ps-preview { padding: 18px; }
  .ps-preview .ps-top { flex-direction: column; gap: 10px; }
  .ps-preview .ps-meta { text-align: left; }
}

@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; }
  .site-head,
  .site-foot,
  .skip,
  .page-head,
  .prose,
  .more-tools,
  .workbench-head,
  .tool-foot,
  .tool-actions,
  .ps-form,
  .ps-controls { display: none !important; }
  .workbench { border: 0; margin: 0; padding: 0; }
  .tool { padding: 0; }
  .ps-preview { margin: 0; padding: 0; border: 0; background: #fff; }
  .chk-item { break-inside: avoid; }
}
