:root {
  color-scheme: light;
  --blue: #1646ed;
  --ink: #172141;
  --muted: #53617d;
  --line: #ccd5e7;
  --paper: #f6f8fd;
  --yellow: #f8df65;
  font-family: "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1160px; margin: auto; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { font-weight: 800; font-size: 25px; letter-spacing: -.06em; text-decoration: none; }
.lab-badge { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--yellow); padding: 7px 10px; }
main { max-width: 1160px; margin: auto; padding: 58px 28px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 16px; }
h1, h2, p { margin-top: 0; }
h1 { font-family: "Arial Narrow", "Franklin Gothic Medium", sans-serif; font-size: clamp(38px, 6vw, 66px); line-height: 1.04; letter-spacing: -.045em; max-width: 780px; margin-bottom: 22px; }
.intro { max-width: 650px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.case-card { border: 1px solid var(--line); padding: 26px; background: white; text-decoration: none; display: block; }
.case-card:hover { border-color: var(--blue); }
.case-number { font-size: 12px; letter-spacing: .12em; color: var(--muted); display: block; margin-bottom: 18px; }
.case-card h2 { font-size: 23px; margin-bottom: 12px; }
.case-card p { color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: 60px; }
.workspace h1 { font-size: clamp(36px, 5vw, 58px); }
.back-link { display: inline-block; margin-bottom: 32px; font-size: 14px; }
.form-card { background: white; border: 1px solid var(--line); padding: 30px; min-width: 0; }
.form-heading { font-size: 22px; margin-bottom: 8px; }
.form-note, .step-label { color: var(--muted); line-height: 1.6; font-size: 14px; }
.step-label { font-weight: 650; margin-bottom: 22px; }
.field { margin-bottom: 20px; }
.field label, legend { display: block; font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #9ba9c3; background: white; color: var(--ink); padding: 11px 12px; border-radius: 3px; min-height: 46px; }
.field textarea { min-height: 110px; resize: vertical; }
fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
.choice input { width: 17px; height: 17px; accent-color: var(--blue); margin: 2px 0 0; flex: 0 0 auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
button { border: 1px solid var(--blue); background: var(--blue); color: white; padding: 12px 20px; min-height: 46px; border-radius: 3px; cursor: pointer; font-weight: 650; }
button:hover { background: #1039cb; }
button.secondary { background: white; color: var(--blue); }
button:disabled { cursor: default; opacity: .65; }
.receipt { margin-top: 24px; padding: 18px; border: 1px solid #5b987d; background: #f0fbf6; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; }
.error { margin-top: 24px; padding: 16px; border: 1px solid #c23939; background: #fff5f5; color: #8a2020; line-height: 1.6; }
.lab-frame { width: 100%; min-height: 1040px; border: 1px solid var(--line); background: white; }
.embedded main { padding: 26px; }
.embedded .form-card { border: 0; padding: 0; }
.site-footer { max-width: 1160px; margin: auto; padding: 24px 28px 36px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.65; }
@media (max-width: 760px) {
  main { padding: 34px 20px; }
  .header-inner { padding: 18px 20px; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 22px; }
  .site-footer { padding-left: 20px; padding-right: 20px; }
}
