:root {
  --navy: #102d3d;
  --navy-soft: #183b4d;
  --orange: #ff6138;
  --orange-dark: #df4d27;
  --orange-soft: #fff3ee;
  --page: #eef3f5;
  --panel: #ffffff;
  --side: #f5f8f9;
  --ink: #102332;
  --muted: #607789;
  --faint: #8ba0ad;
  --line: #d5e0e5;
  --green: #287e68;
  --red: #a85043;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font: 14px/1.5 "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.topbar { height: 76px; padding: 0 max(26px, calc((100vw - 1270px) / 2 + 26px)); display: flex; align-items: center; justify-content: space-between; gap: 28px; color: white; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 13px; color: white; text-decoration: none; }
.brand-logo { width: 88px; height: 44px; display: grid; place-items: center; }
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.brand b { display: block; font-size: 15px; font-weight: 650; }
.brand small { display: block; margin-top: 2px; color: #bfd0d9; font-size: 9px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.admin-mode { padding: 8px 13px; border: 1px solid #3d5a69; border-radius: 999px; color: #e1ebef; white-space: nowrap; font-size: 10px; }
.account { display: flex; align-items: center; gap: 7px; color: #c6d6de; font-size: 10px; }
.account button { padding: 6px 9px; border: 0; border-radius: 7px; color: white; background: rgba(255,255,255,.08); font-size: 10px; }

.nav-wrap { max-width: 1270px; margin: 0 auto; padding: 28px 26px 0; }
.tabs { width: max-content; max-width: 100%; padding: 5px; display: flex; gap: 3px; border-radius: 13px; background: #dce5e9; }
.tab { padding: 10px 18px; border: 0; border-radius: 9px; color: #415c6c; background: transparent; font-size: 12px; }
.tab.is-active { color: var(--navy); background: white; box-shadow: 0 2px 8px rgba(30,59,73,.08); }

main { max-width: 1270px; margin: 0 auto; padding: 20px 26px 65px; }
.view { display: none; }
.view.is-active { display: block; }
.panel { border: 1px solid var(--line); border-radius: 17px; background: var(--panel); }
.eyebrow { display: block; color: var(--orange-dark); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }

.catalog-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); overflow: hidden; }
.hero-copy { grid-column: 1 / -1; padding: 34px 36px 31px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, #fff 55%, #fff7f3); }
.hero-copy h1 { margin: 11px 0 13px; font-size: 32px; line-height: 1.12; letter-spacing: -.025em; font-weight: 650; }
.hero-copy > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; }
.hero-points { margin-top: 25px; display: flex; gap: 12px; }
.hero-points > span { min-width: 190px; padding: 11px 13px; display: grid; grid-template-columns: 29px 1fr; column-gap: 9px; align-items: center; border: 1px solid #e6ded9; border-radius: 10px; background: rgba(255,255,255,.65); }
.hero-points i { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--orange); font-size: 9px; font-style: normal; }
.hero-points b { font-size: 10px; font-weight: 650; }
.hero-points small { color: var(--muted); font-size: 9px; }
.catalog-side { padding: 25px 17px; border-right: 1px solid var(--line); background: var(--side); }
.side-title { display: block; padding: 0 11px 12px; color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.side-item { margin-bottom: 6px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; border-radius: 10px; color: #617784; }
.side-item.is-active { color: var(--navy); background: white; box-shadow: 0 4px 13px rgba(36,61,73,.07); }
.side-item i { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #718692; background: #e3e9ec; font-size: 9px; font-style: normal; }
.side-item.is-active i { color: white; background: var(--orange); }
.side-item b, .side-item small { display: block; }
.side-item b { font-size: 11px; font-weight: 650; }
.side-item small { color: var(--faint); font-size: 9px; }
.test-picker { padding: 28px 34px 34px; border: 0; border-radius: 0; box-shadow: none; }
.panel-heading { padding-bottom: 17px; display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 6px 0 0; font-size: 21px; font-weight: 650; }
.count-badge { min-width: 31px; height: 25px; padding: 0 9px; display: grid; place-items: center; border-radius: 999px; color: #6e8390; background: #edf2f4; font-size: 10px; }
.test-list { margin-top: 19px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.test-card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: white; overflow: hidden; transition: .18s; }
.test-card:hover { border-color: #f39a82; box-shadow: 0 8px 22px rgba(35,63,77,.08); transform: translateY(-1px); }
.test-open { width: 100%; min-height: 145px; padding: 19px; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; border: 0; background: transparent; text-align: left; }
.test-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; color: var(--orange-dark); background: var(--orange-soft); font-size: 10px; font-weight: 750; }
.test-open > span:nth-child(2) { padding-top: 3px; }
.test-open b, .test-open small { display: block; }
.test-open b { padding-right: 20px; font-size: 13px; font-weight: 650; }
.test-open small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.test-arrow { align-self: end; color: var(--orange-dark); font-size: 17px; }
.delete-test { position: absolute; top: 9px; right: 9px; z-index: 2; width: 25px; height: 25px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #a46b60; background: transparent; font-size: 16px; opacity: .6; }
.delete-test:hover { color: var(--red); background: #fae9e5; opacity: 1; }
.skeleton { min-height: 100px; border-radius: 12px; background: linear-gradient(100deg,#edf1f2 20%,#f8fafa 40%,#edf1f2 60%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.runner, .results { overflow: hidden; }
.runner-head { padding: 15px 27px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); background: var(--side); }
.text-button { border: 0; color: #496a7a; background: transparent; text-align: left; font-size: 11px; }
.mode-switch { padding: 4px; display: flex; gap: 3px; border-radius: 9px; background: #dfe7ea; }
.mode-switch button { padding: 7px 11px; border: 0; border-radius: 7px; color: #577080; background: transparent; font-size: 10px; }
.mode-switch button.is-active { color: var(--navy); background: white; box-shadow: 0 2px 6px rgba(30,59,73,.08); }
.progress-copy { justify-self: end; color: var(--muted); font-size: 10px; }
.progress-track { height: 4px; background: #dce4e8; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--orange); transition: width .25s ease; }
.runner-title { padding: 31px 36px 27px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg,#fff 58%,#fff7f3); }
.runner-title h1 { margin: 9px 0 8px; font-size: 28px; font-weight: 650; }
.runner-title > div:first-child > p { margin-bottom: 0; color: var(--muted); }
.answer-hint { margin-top: 13px !important; padding: 10px 12px; border-left: 3px solid #b6c7cf; background: #f4f7f8; font-size: 10px; }
.question-total { min-width: 88px; height: 74px; display: grid; place-content: center; text-align: center; border: 1px solid #ecd8d1; border-radius: 12px; background: rgba(255,255,255,.72); }
.question-total b { color: var(--orange-dark); font-size: 24px; font-weight: 650; }
.question-total span { color: var(--muted); font-size: 9px; }
#answer-form { padding: 27px 34px 34px; }
.question-list { display: grid; gap: 13px; }
.question-card { padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.question-label { display: grid; grid-template-columns: 31px 1fr; gap: 12px; align-items: start; }
.question-label i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--orange); font-size: 9px; font-style: normal; }
.question-label b { padding-top: 4px; font-size: 13px; line-height: 1.5; font-weight: 650; }
.question-card textarea { width: calc(100% - 43px); min-height: 115px; margin: 14px 0 0 43px; padding: 13px 14px; resize: vertical; outline: 0; border: 1px solid #cad7dd; border-radius: 9px; background: white; }
.question-card textarea:focus { border-color: #e9876e; box-shadow: 0 0 0 3px rgba(255,97,56,.08); }
.submit-row { margin-top: 19px; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.primary-button, .secondary-button { min-height: 39px; padding: 9px 15px; border-radius: 8px; font-size: 11px; font-weight: 650; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; color: white; background: var(--orange); }
.primary-button:hover { background: var(--orange-dark); }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .45; }
.secondary-button { border: 0; color: #405e6d; background: #edf2f4; }
.submit-spacer { flex: 1; }
.instant-result { margin: 15px 0 0 43px; padding: 13px 15px; border-left: 3px solid var(--green); border-radius: 0 9px 9px 0; color: #285c4f; background: #edf8f4; }
.instant-result.mid { border-left-color: #ca8b26; color: #785719; background: #fff8e9; }
.instant-result.low { border-left-color: var(--red); color: #854239; background: #fff0ed; }
.instant-result strong { display: block; margin-bottom: 4px; font-size: 12px; }
.instant-result p { margin: 0; font-size: 11px; }

.results { padding: 27px 34px 34px; }
.results > .text-button { margin-bottom: 16px; }
.result-hero { padding: 23px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; border-radius: 13px; background: linear-gradient(110deg,#fff 60%,#fff7f3); }
.score-ring { width: 78px; height: 78px; display: grid; place-content: center; text-align: center; border-radius: 12px; color: white; background: var(--orange); }
.score-ring strong { font-size: 27px; line-height: 1; }
.score-ring span { font-size: 9px; }
.result-hero h1 { margin: 7px 0 4px; font-size: 24px; font-weight: 650; }
.result-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.result-list { margin-top: 14px; display: grid; gap: 10px; }
.result-card { padding: 17px; display: grid; grid-template-columns: 42px 1fr; gap: 13px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.result-score { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--green); font-weight: 700; }
.result-score.mid { background: #b68b3f; }
.result-score.low { background: var(--red); }
.result-card h3 { margin: 2px 0 8px; font-size: 12px; font-weight: 650; }
.result-answer { padding: 10px 11px; border-radius: 8px; background: #f4f7f8; }
.result-answer b, .result-comment b { display: block; margin-bottom: 3px; color: var(--orange-dark); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.result-answer p, .result-comment p { margin: 0; font-size: 11px; }
.result-comment { margin-top: 10px; color: var(--muted); }

.section-workspace { overflow: hidden; }
.history-heading, .create-heading { padding: 33px 36px 29px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg,#fff 58%,#fff7f3); }
.history-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.history-heading > div, .create-heading { max-width: none; }
.history-heading h1, .create-heading h1 { margin: 9px 0 8px; font-size: 28px; line-height: 1.1; font-weight: 650; letter-spacing: -.02em; }
.history-heading h1 br, .create-heading h1 br { display: none; }
.history-heading h1 em, .create-heading h1 em { font-style: normal; }
.history-heading p, .create-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; }
.history-summary { margin: 22px 34px 0; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; background: var(--side); }
.history-summary span { color: var(--muted); font-size: 10px; }
.history-summary b { color: var(--orange-dark); font-size: 20px; font-weight: 650; }
.history-list { padding: 14px 34px 34px; display: grid; gap: 11px; }
.history-card { padding: 18px 19px; border-radius: 12px; }
.history-card > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.history-date { color: var(--orange-dark); font-size: 9px; font-weight: 650; }
.history-card h2 { margin: 5px 0 4px; font-size: 14px; font-weight: 650; }
.history-card header p { margin: 0; color: var(--muted); font-size: 10px; }
.history-card-actions { display: flex; align-items: center; gap: 9px; }
.history-score { width: 53px; height: 53px; display: grid; place-content: center; text-align: center; border-radius: 10px; color: var(--orange-dark); background: var(--orange-soft); }
.history-score b { font-size: 17px; }
.history-score span { font-size: 8px; }
.delete-history { padding: 7px 9px; border: 1px solid #ead6d1; border-radius: 7px; color: var(--red); background: white; font-size: 9px; }
.history-card details { margin-top: 13px; border-top: 1px solid var(--line); }
.history-card summary { padding-top: 12px; color: #496a7a; font-size: 10px; font-weight: 650; }
.history-answers { margin-top: 12px; display: grid; gap: 9px; }
.history-answer { padding: 15px; border-radius: 10px; background: var(--side); }
.history-answer-head { display: grid; grid-template-columns: 26px 1fr auto; gap: 9px; align-items: start; }
.history-answer-head > span { color: var(--orange-dark); font-size: 9px; }
.history-answer-head b { font-size: 11px; line-height: 1.45; }
.history-answer-head i { padding: 3px 6px; border-radius: 6px; color: var(--orange-dark); background: var(--orange-soft); font-size: 9px; font-style: normal; }
.answer-copy, .reference-copy, .comment-copy { margin: 10px 0 0 35px; }
.answer-copy, .reference-copy { padding: 9px 10px; border-radius: 8px; background: white; }
.reference-copy { border-left: 3px solid #b9cbd2; }
.answer-copy strong, .reference-copy strong, .comment-copy strong { display: block; margin-bottom: 3px; color: var(--orange-dark); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.answer-copy p, .reference-copy p, .comment-copy p { margin: 0; font-size: 10px; line-height: 1.55; }
.comment-copy p { color: var(--muted); }
.empty-history { padding: 38px; text-align: center; }

.builder-grid { padding: 27px 34px 34px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
.source-panel, .how-panel { padding: 21px; border-radius: 12px; box-shadow: none; }
.field-row { display: flex; gap: 13px; }
.field.grow { flex: 1; }
.count-field { width: 105px; }
.field { display: block; }
.field > span { display: block; margin: 0 0 6px 1px; color: var(--ink); font-size: 10px; font-weight: 650; }
.field input, .field textarea { width: 100%; padding: 11px 12px; outline: 0; border: 1px solid #cad7dd; border-radius: 8px; background: white; }
.field input:focus, .field textarea:focus { border-color: #e9876e; box-shadow: 0 0 0 3px rgba(255,97,56,.08); }
.source-kind { min-width: 0; margin: 19px 0 0; padding: 0; border: 0; }
.source-kind legend { margin: 0 0 7px 1px; color: var(--ink); font-size: 10px; font-weight: 650; }
.source-kind-switch { width: fit-content; max-width: 100%; padding: 4px; display: flex; gap: 3px; border-radius: 10px; background: #e7eef1; }
.source-kind-switch button { min-width: 92px; padding: 8px 12px; border: 0; border-radius: 7px; color: #557080; background: transparent; font-size: 10px; font-weight: 650; }
.source-kind-switch button.is-active { color: var(--navy); background: white; box-shadow: 0 2px 7px rgba(30,59,73,.09); }
.source-input { display: none; margin-top: 15px; }
.source-input.is-active { display: block; }
.source-field { margin-top: 0; }
.source-field textarea { min-height: 260px; resize: vertical; line-height: 1.55; }
.source-help { margin: 7px 2px 0; color: var(--muted); font-size: 9px; }
.source-actions { margin-top: 14px; display: flex; align-items: center; gap: 14px; }
.source-actions > span { flex: 1; color: var(--muted); font-size: 10px; }
.file-button { color: #496a7a; font-size: 10px; font-weight: 650; cursor: pointer; }
.file-button input { display: none; }
.file-button.compact { margin-top: 9px; display: inline-block; }
.upload-zone { min-height: 150px; padding: 24px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 1px dashed #9fb4bf; border-radius: 11px; color: #486777; background: #f7fafb; cursor: pointer; transition: .18s; }
.upload-zone:hover, .upload-zone.has-file { border-color: var(--orange); background: var(--orange-soft); }
.upload-zone input { display: none; }
.upload-zone i { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: white; background: var(--orange); font-size: 12px; font-style: normal; font-weight: 750; }
.upload-zone b, .upload-zone small { display: block; }
.upload-zone b { font-size: 12px; }
.upload-zone small { max-width: 360px; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.how-panel { background: var(--side); }
.how-panel ol { margin: 16px 0 0; padding-left: 20px; }
.how-panel li { margin: 12px 0; color: var(--muted); font-size: 10px; }
.how-panel li b, .how-panel li span { display: block; }
.how-panel li b { color: var(--ink); font-size: 11px; }
.privacy-note { margin-top: 18px; padding: 12px; display: flex; gap: 9px; border-left: 3px solid var(--orange); background: #fff9f6; }
.privacy-note p { margin: 0; color: var(--muted); font-size: 9px; }
.privacy-note b { display: block; color: var(--ink); }
.generated { margin: 0 34px 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.generated-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.generated-head h2 { margin: 6px 0 0; font-size: 18px; }
.generated-list { margin-top: 14px; display: grid; gap: 10px; }
.generated-card { padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--side); }
.generated-card header { margin-bottom: 12px; display: flex; justify-content: space-between; }
.generated-card header b { font-size: 11px; }
.remove-question { border: 0; color: var(--red); background: transparent; font-size: 9px; }
.generated-card .field + .field { margin-top: 11px; }
.generated-card textarea { min-height: 82px; resize: vertical; }
.generated-card .reference textarea { min-height: 105px; }
.generated-footer { margin-top: 15px; padding-top: 16px; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); }
.saved-test-callout { margin: 0 34px 34px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: #f1b29f; background: linear-gradient(110deg,#fff 55%,#fff3ee); }
.saved-test-callout h2 { margin: 6px 0 5px; font-size: 20px; }
.saved-test-callout p { margin: 0; color: var(--muted); font-size: 11px; }
.saved-test-callout .primary-button { min-width: 170px; }

.overlay, .auth-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(16,45,61,.66); backdrop-filter: blur(7px); }
.loader, .login-card { border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 25px 70px rgba(12,35,47,.24); }
.loader { min-width: 320px; padding: 22px; display: flex; align-items: center; gap: 14px; }
.loader > span { width: 31px; height: 31px; border: 3px solid #e4eaed; border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader b, .loader small { display: block; }
.loader small { color: var(--muted); }
.login-card { width: min(420px, 100%); padding: 28px; }
.login-logo { width: 118px; height: 48px; display: grid; place-items: center; }
.login-logo img { width: 100%; height: 100%; object-fit: contain; }
.login-card .eyebrow { margin-top: 21px; }
.login-card h2 { margin: 8px 0 7px; font-size: 23px; }
.login-card > p { color: var(--muted); font-size: 11px; }
.login-card .field { margin-top: 12px; }
.login-card .primary-button { width: 100%; margin-top: 14px; }
.login-card > small { display: block; margin-top: 13px; color: var(--faint); font-size: 9px; }
.login-error { min-height: 17px; margin: 8px 0 0; color: var(--red) !important; }
.guest-button { width: 100%; margin-top: 8px; padding: 9px 12px; border: 0; color: #4b6878; background: transparent; font-size: 10px; }
.guest-button:hover { text-decoration: underline; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 60; max-width: 390px; padding: 12px 15px; border-radius: 9px; color: white; background: var(--navy); box-shadow: 0 12px 30px rgba(12,35,47,.2); font-size: 11px; }
.toast.error { background: var(--red); }

@media (max-width: 850px) {
  .topbar { padding-left: 18px; padding-right: 18px; }
  .brand small { display: none; }
  .nav-wrap, main { padding-left: 17px; padding-right: 17px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-side { padding: 14px 17px; display: flex; gap: 5px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-title { display: none; }
  .side-item { min-width: max-content; margin: 0; }
  .test-picker { padding: 24px 20px 28px; }
  .test-list { grid-template-columns: 1fr; }
  .builder-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar { height: 68px; gap: 10px; }
  .brand { gap: 8px; }
  .brand-logo { width: 67px; height: 38px; }
  .brand b { font-size: 12px; }
  .admin-mode { padding: 6px 8px; font-size: 8px; }
  .account b { display: none; }
  .nav-wrap { padding-top: 18px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 9px 5px; font-size: 10px; }
  main { padding-top: 18px; }
  .hero-copy { padding: 27px 20px; }
  .hero-copy h1 { font-size: 25px; }
  .hero-points { display: none; }
  .panel-heading { align-items: start; flex-direction: column; gap: 8px; }
  .test-open { min-height: 132px; grid-template-columns: 38px 1fr; }
  .test-arrow { grid-column: 2; justify-self: end; }
  .runner-head { padding: 12px 15px; grid-template-columns: 1fr auto; }
  .mode-switch { grid-column: 1 / -1; grid-row: 2; }
  .mode-switch button { flex: 1; }
  .progress-copy { grid-column: 2; grid-row: 1; }
  .runner-title { padding: 24px 20px; align-items: start; }
  .runner-title h1 { font-size: 23px; }
  .question-total { min-width: 60px; width: 60px; height: 60px; }
  #answer-form { padding: 20px; }
  .question-card { padding: 15px; }
  .question-label { grid-template-columns: 28px 1fr; }
  .question-card textarea { width: 100%; margin-left: 0; }
  .instant-result { margin-left: 0; }
  .submit-row { align-items: stretch; flex-direction: column-reverse; }
  .submit-spacer { display: none; }
  .submit-row button { width: 100%; }
  .results { padding: 20px; }
  .result-hero { grid-template-columns: 62px 1fr; }
  .result-hero .secondary-button { grid-column: 1 / -1; }
  .score-ring { width: 60px; height: 60px; }
  .result-card { grid-template-columns: 36px 1fr; }
  .result-score { width: 35px; height: 35px; }
  .history-heading, .create-heading { padding: 26px 20px; }
  .history-heading { align-items: start; flex-direction: column; }
  .history-heading h1, .create-heading h1 { font-size: 24px; }
  .history-summary { margin: 18px 20px 0; }
  .history-list { padding: 12px 20px 24px; }
  .history-card > header { align-items: start; }
  .history-card-actions { align-items: flex-end; flex-direction: column; }
  .history-answer-head { grid-template-columns: 24px 1fr; }
  .history-answer-head i { grid-column: 2; width: fit-content; }
  .answer-copy, .reference-copy, .comment-copy { margin-left: 0; }
  .builder-grid { padding: 20px; }
  .field-row { flex-direction: column; }
  .count-field { width: 100%; }
  .source-actions { align-items: stretch; flex-direction: column; }
  .source-actions > span { flex: none; }
  .source-kind-switch { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .source-kind-switch button { min-width: 0; }
  .upload-zone { min-height: 135px; padding: 20px 16px; align-items: flex-start; }
  .generated { margin: 0 20px 24px; }
  .generated-head { align-items: stretch; flex-direction: column; }
  .generated-footer .primary-button { width: 100%; }
  .saved-test-callout { margin: 0 20px 24px; align-items: stretch; flex-direction: column; }
  .saved-test-callout .primary-button { width: 100%; }
}
.seo-about {
  margin-top: 24px;
  padding: clamp(28px, 5vw, 54px);
}

.seo-about h2 {
  max-width: 820px;
  margin: 12px 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.seo-about > p {
  max-width: 900px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.seo-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.seo-about-grid span {
  display: grid;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--side);
}

.seo-about-grid b { font-size: 16px; }
.seo-about-grid small { color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 720px) {
  .seo-about-grid { grid-template-columns: 1fr; }
}
