/* ==========================================================================
   Biopsych Prereg Builder
   Design after Dieter Rams: less, but better.
   Neutral paper, hairline rules, one signal colour, tabular numerals,
   no shadows, no gradients, no decoration that does not carry information.
   ========================================================================== */

:root {
  --paper: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #efefec;
  --surface-3: #e6e6e2;
  --ink: #17181a;
  --ink-2: #4a4d52;
  --ink-3: #7c8087;
  --rule: #dcdcd8;
  --rule-strong: #b9bab5;
  --signal: #c2410c;
  --signal-ink: #ffffff;
  --signal-soft: #fbeee7;
  --ok: #2f6b3f;
  --ok-soft: #eaf2ec;
  --warn: #8a5a00;
  --warn-soft: #fbf3e2;
  --danger: #a32b2b;
  --danger-soft: #fbeaea;
  --radius: 2px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --step: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131416;
    --surface: #191b1e;
    --surface-2: #212427;
    --surface-3: #2a2e32;
    --ink: #eceef0;
    --ink-2: #b0b5bb;
    --ink-3: #868c93;
    --rule: #2c3034;
    --rule-strong: #3d4247;
    --signal: #ff7a45;
    --signal-ink: #1a0d06;
    --signal-soft: #2b1a12;
    --ok: #7fc79b;
    --ok-soft: #1a2a20;
    --warn: #e0b062;
    --warn-soft: #2a2418;
    --danger: #e58b8b;
    --danger-soft: #2c1c1c;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

h3 {
  font-size: 1rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

a:hover {
  border-bottom-width: 2px;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 1px;
}

code,
kbd,
samp {
  font-family: var(--mono);
  font-size: 0.88em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: min(1080px, 100% - 3rem);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(720px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0;
  white-space: nowrap;
}

.brand::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--signal);
  display: inline-block;
  transform: translateY(-1px);
}

.brand span {
  color: var(--ink-3);
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-2);
  font-size: 0.82rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 0.2rem 0;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule-strong);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--signal);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.eyebrow {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom-width: 1px;
  cursor: pointer;
  transition: background 0.1s linear, border-color 0.1s linear;
}

.btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--ink-3);
}

.btn:active:not(:disabled) {
  background: var(--surface-3);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--signal-ink);
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background: var(--signal);
  border-color: var(--signal);
  filter: brightness(1.1);
}

.btn-primary:active:not(:disabled) {
  filter: brightness(0.95);
}

.btn-sm {
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: transparent;
  color: var(--ink);
}

.btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
  font-weight: 600;
}

/* ---------- sections ---------- */

.section {
  padding: clamp(2rem, 4.5vw, 3rem) 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 68ch;
}

.section-head p {
  color: var(--ink-2);
  margin-bottom: 0;
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  background: var(--rule);
  border: 1px solid var(--rule);
}

.card {
  background: var(--surface);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}

.card h3 {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.card p {
  color: var(--ink-2);
  font-size: 0.86rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.card > .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 1px;
  background: var(--surface-2);
  color: var(--ink-3);
  border: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag-accent {
  background: var(--signal-soft);
  color: var(--signal);
  border-color: transparent;
  font-weight: 600;
}

/* ---------- builder layout ---------- */

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0 4rem;
}

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

.steps {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 0;
  border-right: 1px solid var(--rule);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  flex: 1 1 auto;
  justify-content: center;
  transition: background 0.1s linear;
}

.step-btn:last-child {
  border-right: 0;
}

.step-btn:hover {
  background: var(--surface-2);
}

.step-btn[aria-current="step"] {
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
}

.step-btn .num {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.step-btn[aria-current="step"] .num {
  opacity: 1;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 1.25rem;
}

.panel + .panel {
  margin-top: 1rem;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.panel-head h2 {
  font-size: 1rem;
}

/* ---------- modality picker ---------- */

.modality-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: var(--rule);
  border: 1px solid var(--rule);
}

.modality-option {
  position: relative;
  display: block;
  padding: 1rem;
  cursor: pointer;
  background: var(--surface);
  transition: background 0.1s linear;
}

.modality-option:hover {
  background: var(--surface-2);
}

.modality-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modality-option:has(input:checked) {
  background: var(--signal-soft);
  box-shadow: inset 3px 0 0 var(--signal);
}

.modality-option:has(input:focus-visible) {
  outline: 2px solid var(--signal);
  outline-offset: -2px;
}

.modality-option strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.modality-option span {
  font-size: 0.76rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ---------- form ---------- */

.field {
  margin-bottom: 1.1rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.req {
  color: var(--signal);
  margin-left: 0.2rem;
  font-weight: 700;
}

.unit {
  color: var(--ink-3);
  font-weight: 400;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="date"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  transition: border-color 0.1s linear;
}

.field textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.5;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--signal);
  outline: 2px solid var(--signal-soft);
  outline-offset: 0;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.help {
  font-size: 0.74rem;
  color: var(--ink-3);
  margin: 0.25rem 0 0;
  line-height: 1.45;
}

.error {
  font-size: 0.74rem;
  color: var(--danger);
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
}

.checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 400;
  font-size: 0.82rem;
  margin: 0;
}

.list-rows {
  display: grid;
  gap: 0.35rem;
}

.list-row {
  display: flex;
  gap: 0.35rem;
}

.list-row input {
  flex: 1;
}

/* ---------- accordion ---------- */

.accordion {
  border: 1px solid var(--rule);
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
}

.acc-item + .acc-item {
  border-top: 1px solid var(--rule);
}

.acc-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.1s linear;
}

.acc-head:hover {
  background: var(--surface-2);
}

.acc-head[aria-expanded="true"] {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--signal);
}

.acc-head .chev {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 0.6rem;
  transition: transform 0.12s linear;
}

.acc-head[aria-expanded="true"] .chev {
  transform: rotate(90deg);
  color: var(--signal);
}

.acc-body {
  padding: 0.9rem 0.9rem 1.1rem;
  border-top: 1px solid var(--rule);
}

.acc-body[hidden] {
  display: none;
}

.progress {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.bar {
  width: 48px;
  height: 3px;
  border-radius: 0;
  background: var(--surface-3);
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  background: var(--signal);
  width: 0;
  transition: width 0.15s linear;
}

/* ---------- sidebar ---------- */

.sidebar {
  position: sticky;
  top: 72px;
  display: grid;
  gap: 1rem;
}

@media (max-width: 980px) {
  .sidebar {
    position: static;
  }
}

.meter {
  display: grid;
  gap: 0.6rem;
}

.meter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  font-size: 0.76rem;
}

.meter-row .label {
  color: var(--ink-2);
}

.meter-row .value {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.meter-row .bar {
  grid-column: 1 / -1;
  width: 100%;
  height: 3px;
}

.meter-row .bar > i.warn {
  background: var(--warn);
}

.meter-row .bar > i.danger {
  background: var(--danger);
}

.meter-row .countdown {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  min-height: 1.1em;
  font-family: var(--mono);
}

.meter-row .countdown.waiting {
  color: var(--warn);
  font-weight: 600;
}

.meter-row .countdown.ready {
  color: var(--ok);
  font-weight: 600;
}

/* ---------- preview ---------- */

.preview {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.9rem;
  max-height: 460px;
  overflow: auto;
  margin: 0;
  color: var(--ink-2);
}

/* ---------- notices ---------- */

.notice {
  border-radius: 0;
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rule-strong);
  background: var(--surface-2);
  color: var(--ink-2);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.notice strong {
  color: var(--ink);
}

.notice-warn {
  background: var(--warn-soft);
  border-color: transparent;
  border-left-color: var(--warn);
  color: var(--warn);
}

.notice-warn strong {
  color: inherit;
}

.notice-danger {
  background: var(--danger-soft);
  border-color: transparent;
  border-left-color: var(--danger);
  color: var(--danger);
}

.notice-ok {
  background: var(--ok-soft);
  border-color: transparent;
  border-left-color: var(--ok);
  color: var(--ok);
}

.notice p:last-child {
  margin-bottom: 0;
}

/* ---------- library ---------- */

.library-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0 4rem;
}

@media (max-width: 900px) {
  .library-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.toc {
  position: sticky;
  top: 72px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--surface);
  padding: 0.9rem;
  max-height: calc(100vh - 96px);
  overflow: auto;
}

@media (max-width: 900px) {
  .toc {
    position: static;
    max-height: none;
  }
}

.toc h2 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.toc ul {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0;
}

.toc li a {
  display: block;
  padding: 0.22rem 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 0;
  border-left: 2px solid transparent;
}

.toc li a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.toc li a.is-active {
  background: var(--signal-soft);
  color: var(--signal);
  border-left-color: var(--signal);
  font-weight: 600;
}

.toc li a.lvl3 {
  padding-left: 1.1rem;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.doc {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.doc h1 {
  font-size: 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.1rem;
}

.doc h2 {
  font-size: 1.05rem;
  margin-top: 1.9rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule);
}

.doc h3 {
  font-size: 0.92rem;
  margin-top: 1.4rem;
  color: var(--ink-2);
}

.doc ul,
.doc ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.doc li {
  margin-bottom: 0.25rem;
}

.doc code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface-2);
  padding: 0.1em 0.3em;
  border-radius: 1px;
}

.doc pre {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.8rem;
  overflow: auto;
  font-size: 0.78rem;
}

.doc pre code {
  background: none;
  padding: 0;
}

.doc blockquote {
  margin: 0 0 1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--rule-strong);
  color: var(--ink-2);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.doc th,
.doc td {
  border: 1px solid var(--rule);
  padding: 0.35rem 0.5rem;
  text-align: left;
}

.doc th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.75rem 0;
}

/* ---------- design principles ---------- */

.principles {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--rule);
  border: 1px solid var(--rule);
  counter-reset: principle;
}

@media (max-width: 640px) {
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }
}

.principle {
  background: var(--surface);
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0 0.6rem;
  align-items: start;
}

.principle::before {
  counter-increment: principle;
  content: counter(principle, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--signal);
  font-weight: 600;
  padding-top: 0.15rem;
}

.principle h3 {
  grid-column: 2;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.principle p {
  grid-column: 2;
  font-size: 0.78rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2.5rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  background: var(--surface);
}

.site-footer .wrap {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--ink-2);
  border-bottom-color: var(--rule-strong);
}

/* ---------- utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 0.78rem;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.row-end {
  justify-content: flex-end;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 1.5rem;
}

.bar-lg {
  width: 100%;
  height: 6px;
}

.doc-title {
  margin-bottom: 0.15rem;
}

.doc-source {
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* ---------- field header row ---------- */

.field-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.field-top label {
  margin-bottom: 0;
}

.verify {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ink-3);
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.verify input {
  appearance: none;
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 1px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  flex: none;
}

.verify input:hover {
  border-color: var(--ink-3);
}

.verify input:checked {
  background: var(--warn);
  border-color: var(--warn);
}

.verify input:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 3px;
  height: 6px;
  border: solid var(--surface);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* ---------- print ---------- */

@media print {
  .site-header,
  .site-footer,
  .steps,
  .sidebar,
  #panel-modality,
  #panel-sections,
  #panel-export,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  .builder {
    display: block;
    padding: 0;
  }

  .panel {
    border: 0;
    padding: 0;
  }

  .preview {
    max-height: none;
    overflow: visible;
    border: 0;
    background: #fff;
    font-size: 9pt;
    white-space: pre-wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
