:root {
  --ink: #171a1d;
  --muted: #697178;
  --line: #dfe3e5;
  --paper: #f5f6f4;
  --surface: #ffffff;
  --night: #111416;
  --night-2: #1b1f22;
  --night-3: #272c30;
  --teal: #17b897;
  --teal-dark: #087862;
  --teal-pale: #dff7f0;
  --amber: #d89220;
  --red: #c94f4f;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(15, 23, 27, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; z-index: 1000; left: 1rem; top: -5rem; padding: .7rem 1rem;
  background: var(--surface); color: var(--ink); border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #087862; outline-offset: 3px; }
.participant-body :focus-visible, .test-body :focus-visible, .login-body :focus-visible { outline-color: #55d7bd; }

.participant-body { background: var(--night); color: #f4f7f6; }
.public-header {
  width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-size: 15px; letter-spacing: -.01em; }
.brand strong { color: var(--teal); font-weight: 700; }
.brand-mark { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 34px; height: 24px; border: 1px solid #515b60; border-radius: 5px; overflow: hidden; }
.brand-mark i:first-child { background: #d5dad8; }
.brand-mark i:last-child { background: var(--teal); }
.brand-mark::after { content: ""; position: absolute; width: 1px; inset: 0 auto 0 50%; background: #111416; }

.public-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.landing-shell { padding: clamp(70px, 10vh, 130px) 0 64px; }
.landing-shell > h1, .briefing-shell > h1, .centered-message h1 {
  font-size: clamp(42px, 7vw, 82px); max-width: 850px; margin: 12px 0 24px;
  line-height: .98; letter-spacing: -.055em; font-weight: 650;
}
.eyebrow { color: var(--teal); text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 800; }
.lead { max-width: 760px; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.5; color: #aeb7b9; margin: 0 0 60px; }
.campaign-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.campaign-card { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 28px; background: var(--night-2); border: 1px solid #30363a; border-radius: var(--radius); }
.campaign-card h2 { font-size: 25px; margin: 16px 0 9px; letter-spacing: -.025em; }
.campaign-card p { color: #aab2b4; line-height: 1.55; margin: 0 0 15px; }
.campaign-card small { color: #7e898d; }
.status-dot { color: #b9c2c3; font-size: 12px; }
.status-dot i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--teal); box-shadow: 0 0 0 4px rgba(23,184,151,.12); }
.button { min-height: 44px; padding: 11px 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid transparent; text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--teal); color: #071713; }
.button.primary:hover { background: #25cba8; }
.button.secondary { border-color: #aeb5b8; background: transparent; color: inherit; }
.button.danger { background: #fff1f0; color: #9c2d2d; border-color: #ecc8c5; }
.button.large { min-height: 55px; padding-inline: 28px; font-size: 16px; }
.campaign-card .button { align-self: flex-start; }
.trust-strip { display: flex; gap: 44px; margin-top: 58px; padding-top: 22px; border-top: 1px solid #30363a; color: #8e989b; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.trust-strip b { color: var(--teal); margin-right: 8px; }
.empty-state { padding: 48px; text-align: center; border: 1px dashed #4a5458; border-radius: var(--radius); color: #aeb7b9; }
.empty-state h2 { color: #fff; }

.briefing-shell { max-width: 980px; padding: 55px 0 80px; }
.briefing-shell > h1 { font-size: clamp(40px, 6vw, 68px); }
.back-link { display: inline-block; margin-bottom: 40px; color: #8b9699; text-decoration: none; font-size: 13px; }
.back-link:hover { color: var(--teal); }
.briefing-grid { display: grid; grid-template-columns: 1fr 280px; gap: 65px; padding: 36px 0; border-top: 1px solid #32383c; border-bottom: 1px solid #32383c; }
.briefing-grid h2 { margin: 0 0 28px; font-size: 19px; }
.steps { list-style: none; counter-reset: item; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { position: relative; padding-left: 44px; display: grid; gap: 4px; counter-increment: item; }
.steps li::before { content: "0" counter(item); position: absolute; left: 0; top: 1px; color: var(--teal); font: 700 11px/1 ui-monospace, monospace; }
.steps span { color: #9fa9ac; line-height: 1.45; }
.test-facts { padding-left: 34px; border-left: 1px solid #32383c; }
.test-facts dl { margin: 0; display: grid; gap: 22px; }
.test-facts dl div { display: flex; justify-content: space-between; gap: 16px; }
.test-facts dt { color: #8d989b; }
.test-facts dd { margin: 0; font-weight: 700; }
.notice { padding: 17px 19px; border-radius: 10px; border: 1px solid; line-height: 1.45; }
.notice p { margin: 5px 0 0; }
.notice.quiet { margin: 30px 0; color: #abb4b6; background: #191d20; border-color: #30373a; font-size: 13px; }
.notice.warning { background: #fff8e9; border-color: #efd69e; color: #725114; }
.notice.error { background: #fff0ef; border-color: #efc4c1; color: #8c2929; }
.centered-message { max-width: 760px; min-height: 75vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.centered-message p { color: #aeb7b9; font-size: 18px; line-height: 1.55; max-width: 650px; margin: 0 0 32px; }
.success-message { align-items: center; text-align: center; margin: 0 auto; }
.success-message h1 { font-size: clamp(38px, 6vw, 68px); }
.completion-mark { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 28px; border-radius: 50%; background: var(--teal); color: #071713; font-size: 30px; font-weight: 800; }

/* Test participant */
.test-body { background: #121416; color: #f6f7f7; overflow-x: hidden; }
.test-header { display: grid; grid-template-columns: 1fr auto; gap: 12px 30px; align-items: end; padding: 16px clamp(16px, 3vw, 42px) 0; border-bottom: 1px solid #34383b; }
.test-brand { color: #8f989b; font-size: 12px; letter-spacing: .06em; }
.progress-copy { display: flex; gap: 25px; font-size: 12px; }
.progress-copy span:first-child { color: #8f989b; }
.progress-track { grid-column: 1 / -1; width: 100%; height: 2px; border: 0; appearance: none; background: #303438; overflow: hidden; }
.progress-track::-webkit-progress-bar { background: #303438; }
.progress-track::-webkit-progress-value { background: var(--teal); transition: width .25s ease; }
.progress-track::-moz-progress-bar { background: var(--teal); transition: width .25s ease; }
.test-main { width: 100%; padding: 0 clamp(12px, 2vw, 30px) 26px; }
.test-app { max-width: 1800px; margin: 0 auto; }
.question-line { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding: 20px 2px 14px; }
.question-line h1 { margin: 5px 0 0; font-size: clamp(20px, 2.4vw, 31px); letter-spacing: -.025em; }
.load-status { margin: 0; color: #899397; font-size: 12px; }
.view-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.view-toolbar button { min-height: 34px; padding: 6px 10px; border: 1px solid #4a5155; border-radius: 6px; background: #222629; color: #aeb7b9; font-size: 11px; cursor: pointer; }
.view-toolbar button[aria-pressed="true"] { border-color: var(--teal); background: #17352f; color: #e9fffa; }
.view-toolbar .load-status { flex-basis: 100%; text-align: right; }
.comparison-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 22px); }
.image-panel { min-width: 0; margin: 0; }
.image-panel figcaption { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: #b7bec0; font-size: 12px; }
.image-panel figcaption span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #52595d; border-radius: 5px; color: #fff; font-weight: 800; }
.canvas-shell { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 190px; background: #202326; border: 1px solid #3a3f43; border-radius: 7px; }
.canvas-shell canvas { display: block; width: 100%; height: auto; max-height: calc(100vh - 275px); object-fit: contain; background: #777; user-select: none; -webkit-user-select: none; }
.comparison-stage.view-actual .canvas-shell { display: block; max-height: calc(100vh - 275px); overflow: auto; }
.comparison-stage.view-actual .canvas-shell canvas { width: auto; max-width: none; max-height: none; }
.canvas-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: #202326; color: #778186; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.canvas-cover i { width: 24px; height: 24px; border: 2px solid #4a5256; border-top-color: var(--teal); border-radius: 50%; animation: spin .75s linear infinite; }
.comparison-stage:not(.is-loading) .canvas-cover { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.answer-panel { display: grid; grid-template-columns: 1fr 1fr minmax(190px, .55fr); gap: 10px; margin-top: 14px; }
.answer-button { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #4a5155; border-radius: 8px; background: #222629; color: #f1f4f3; font-weight: 700; cursor: pointer; }
.answer-button:hover:not(:disabled) { background: #2b3233; border-color: var(--teal); }
.answer-button:disabled { opacity: .45; cursor: wait; }
.answer-button kbd { min-width: 26px; padding: 5px; border-radius: 4px; background: #394044; color: #bfc7c8; font: 700 11px ui-monospace, monospace; }
.answer-button.subtle { color: #bdc4c5; font-weight: 600; }
.confidence-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; margin-top: 14px; padding: 17px 20px; border: 1px solid #3f4649; border-radius: 8px; background: #1d2124; }
.confidence-panel h2 { font-size: 16px; margin: 0 0 3px; }
.confidence-panel p { font-size: 12px; color: #8c9699; margin: 0; }
.confidence-scale { display: flex; gap: 7px; }
.confidence-scale button { width: 65px; min-height: 52px; border: 1px solid #4b5357; border-radius: 7px; background: #282d31; color: #fff; cursor: pointer; }
.confidence-scale button:hover { border-color: var(--teal); background: #303738; }
.confidence-scale b { display: block; font-size: 17px; }
.confidence-scale span { display: block; min-height: 12px; font-size: 8px; color: #889295; text-transform: uppercase; }
.test-app > .notice.error { margin-top: 16px; }
.small-screen-warning { display: none; }

/* Admin */
.admin-body { background: var(--paper); color: var(--ink); }
.admin-header { height: 68px; padding: 0 max(24px, calc((100vw - 1380px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.brand.compact .brand-mark { border-color: #98a2a4; }
.admin-header nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.admin-header nav a, .admin-header nav button { border: 0; padding: 0; background: none; color: #5e686d; text-decoration: none; cursor: pointer; }
.admin-header nav a:hover, .admin-header nav button:hover { color: var(--ink); }
.admin-header form { margin: 0; }
.admin-main { width: min(1380px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 90px; }
.flash-stack { display: grid; gap: 8px; margin-bottom: 24px; }
.flash { padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.flash.success { background: #e9f8f3; border-color: #bde8da; color: #126b58; }
.flash.warning { background: #fff7e8; border-color: #ecd49e; color: #765414; }
.flash.error { background: #fff0ef; border-color: #efc4c1; color: #8c2929; }
.admin-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; margin-bottom: 34px; }
.admin-page-head h1 { margin: 7px 0 7px; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; line-height: 1; }
.admin-page-head p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.45; }
.compact-head { align-items: flex-start; }
.campaign-head { align-items: center; }
.campaign-title-line { display: flex; align-items: center; gap: 14px; }
.campaign-title-line h1 { margin-right: 3px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.head-actions form { margin: 0; }
.public-url { display: inline-block; margin-top: 10px; color: var(--teal-dark); font-size: 13px; text-decoration: none; }
.status-badge { display: inline-block; padding: 5px 8px; border-radius: 5px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status-badge.active { background: #def5ee; color: #08725c; }
.status-badge.draft { background: #e9ecee; color: #5c666b; }
.status-badge.closed { background: #f4e9e8; color: #9b4841; }
.admin-section { margin-top: 22px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 3px 18px rgba(20,30,34,.025); scroll-margin-top: 20px; }
.admin-section.muted-section { background: #eef1ef; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.025em; }
.section-heading p, .section-heading small, .section-heading > span { color: var(--muted); margin: 5px 0 0; }
.section-nav { position: sticky; top: 8px; z-index: 5; width: fit-content; display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.95); box-shadow: 0 7px 25px rgba(20,30,34,.08); }
.section-nav a { padding: 8px 13px; border-radius: 6px; color: #5c666b; text-decoration: none; font-size: 12px; }
.section-nav a:hover { background: #eef2f0; color: var(--ink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: #7c858a; font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
td { padding: 15px 12px; border-bottom: 1px solid #e9eced; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td small { display: block; max-width: 360px; margin-top: 4px; color: #7b858a; line-height: 1.4; }
.text-link, .text-button { color: var(--teal-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-button { border: 0; background: none; cursor: pointer; }
.empty-cell { padding: 35px; text-align: center; color: var(--muted); }
.row-disabled { opacity: .6; }
.inline-warning { display: inline-block; margin-top: 7px; padding: 3px 6px; border-radius: 4px; background: #fff2d7; color: #805d1d; font-size: 10px; }
.format-pair { display: flex; align-items: center; gap: 7px; }
.format-pair i { padding: 4px 6px; border: 1px solid #cfd5d7; border-radius: 4px; font-style: normal; font: 700 10px ui-monospace, monospace; }
.format-pair b { color: #9aa2a5; }
.audit-list { display: grid; }
.audit-list > div { display: grid; grid-template-columns: 210px 1fr 160px; gap: 15px; padding: 10px 0; border-bottom: 1px solid #dce0de; font-size: 12px; }
.audit-list time, .audit-list span { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }
.metric { min-height: 128px; padding: 20px; display: flex; flex-direction: column; background: #fff; }
.metric > span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.metric strong { margin: auto 0 5px; font-size: 31px; letter-spacing: -.035em; }
.metric small { color: #788186; }
.stats-note { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0; padding: 16px 18px; border-left: 3px solid var(--teal); background: #f2f7f5; color: #536066; font-size: 12px; line-height: 1.5; }
.stats-note p { margin: 0; }
.stats-table { margin-top: 12px; }
.method-grid { display: grid; grid-template-columns: 250px 1fr; gap: 60px; }
.method-grid h2 { margin: 7px 0; }
.method-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.method-list p { margin: 0; color: #526066; font-size: 12px; line-height: 1.55; }
.method-list b { display: block; margin-bottom: 4px; color: var(--ink); }
.admin-quiet { color: #536066 !important; background: #f2f7f5 !important; border-color: #cbded7 !important; }
.role-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.role-preview-grid figure { margin: 0; min-width: 0; }
.role-preview-grid figcaption { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.role-preview-grid figcaption > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 6px; background: var(--ink); color: white; font-weight: 800; }
.role-preview-grid figcaption div { display: grid; gap: 2px; }
.role-preview-grid figcaption small { color: var(--muted); }
.role-image-shell { min-height: 260px; display: grid; place-items: center; overflow: auto; border: 1px solid #ccd2d4; border-radius: 9px; background: #777; }
.role-image-shell img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.preview-footnote { color: var(--muted); font-size: 12px; text-align: center; }

.admin-form { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.form-section { display: grid; grid-template-columns: 280px 1fr; gap: 60px; padding: 32px; border-bottom: 1px solid var(--line); }
.form-section h2 { margin: 0 0 7px; }
.form-section > div:first-child p { color: var(--muted); line-height: 1.45; }
.form-fields, .form-stack { display: grid; gap: 18px; }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #cbd1d3; border-radius: 7px; padding: 11px 12px; background: #fff; color: var(--ink); }
textarea { resize: vertical; line-height: 1.45; }
input:disabled, textarea:disabled { background: #eff1f1; color: #7d8589; }
.input-prefix { display: grid; grid-template-columns: auto 1fr; align-items: center; overflow: hidden; border: 1px solid #cbd1d3; border-radius: 7px; }
.input-prefix i { padding: 11px; background: #eef1f1; color: #6c757a; font-style: normal; }
.input-prefix input { border: 0; border-radius: 0; }
.check-row { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal-dark); }
.check-row span { display: grid; gap: 4px; }
.check-row small { color: var(--muted); font-weight: 400; }
.form-actions { padding: 22px 32px; display: flex; align-items: center; gap: 16px; }
.form-actions small { color: var(--muted); }
.upload-section .notice { margin-bottom: 20px; }
.pair-form { display: grid; gap: 22px; }
.pair-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-drop { position: relative; min-height: 160px; padding: 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; border: 1px dashed #aeb7ba; border-radius: 10px; background: #f7f9f8; text-align: center; cursor: pointer; }
.file-drop:hover { border-color: var(--teal-dark); background: #f2faf7; }
.file-drop small { color: var(--muted); font-weight: 400; }
.file-drop input { width: auto; max-width: 100%; margin-top: 10px; border: 0; padding: 0; background: transparent; }
.side-label { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 6px; background: var(--ink); color: white; }

.login-body { display: grid; min-height: 100vh; place-items: center; padding: 25px; background: #101315; color: #f4f7f6; }
.login-main { width: min(470px, 100%); }
.login-card { display: grid; gap: 28px; padding: 35px; border: 1px solid #343a3e; border-radius: 14px; background: #1a1e21; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.login-brand { margin-bottom: 8px; }
.login-card h1 { margin: 7px 0; font-size: 31px; letter-spacing: -.035em; }
.login-card p { color: #919b9e; margin: 0; }
.login-card label { color: #b9c1c3; }
.login-card input { background: #24292c; border-color: #454d51; color: #fff; }

@media (max-width: 960px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; gap: 20px; }
  .method-list { grid-template-columns: 1fr; gap: 12px; }
  .form-section { grid-template-columns: 1fr; gap: 18px; }
  .answer-panel { grid-template-columns: 1fr 1fr; }
  .answer-button.subtle { grid-column: 1 / -1; }
  .confidence-panel { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .public-header, .public-main { width: min(100% - 28px, 1180px); }
  .landing-shell { padding-top: 45px; }
  .landing-shell > h1 { font-size: 44px; }
  .campaign-list { grid-template-columns: 1fr; }
  .trust-strip { flex-direction: column; gap: 14px; }
  .briefing-grid { grid-template-columns: 1fr; gap: 30px; }
  .test-facts { border-left: 0; border-top: 1px solid #32383c; padding: 25px 0 0; }
  .admin-header { padding: 0 16px; }
  .admin-header nav a { display: none; }
  .admin-main { width: min(100% - 24px, 1380px); padding-top: 28px; }
  .admin-page-head { align-items: flex-start; flex-direction: column; }
  .campaign-head .head-actions { width: 100%; }
  .campaign-head .head-actions .button { flex: 1; }
  .section-nav { max-width: 100%; overflow-x: auto; }
  .metric-grid { grid-template-columns: 1fr; }
  .stats-note, .pair-meta, .upload-grid { grid-template-columns: 1fr; }
  .role-preview-grid { grid-template-columns: 1fr; }
  .admin-section { padding: 18px; }
  .audit-list > div { grid-template-columns: 1fr; gap: 3px; }
  .form-section { padding: 22px; }
  .form-actions { padding: 18px 22px; }
}

@media (max-width: 760px) and (orientation: portrait) {
  .test-header, .test-app { display: none; }
  .test-main { min-height: 100vh; display: grid; place-items: center; }
  .small-screen-warning { display: flex; max-width: 330px; flex-direction: column; align-items: center; gap: 8px; padding: 25px; border: 1px solid #3d4548; border-radius: 12px; background: #1b1f22; text-align: center; }
  .small-screen-warning span { color: #939da0; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
