body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.keytest { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.test-intro { max-width: 49rem; margin-bottom: clamp(1.8rem, 4vw, 3.5rem); }
.test-intro h1 { font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -.06em; }
.test-intro p { margin-top: 1rem; color: var(--body); font-size: clamp(1.04rem, 1.6vw, 1.25rem); }
.test-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.test-panel { display: flex; flex-direction: column; align-items: stretch; padding: clamp(1.4rem, 3vw, 2.5rem); border: 1px solid var(--rule); border-radius: .55rem; background: #fff; }
.test-protocol { color: var(--rust); font-size: .9rem; font-weight: 700; }
.test-panel h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); line-height: 1.12; letter-spacing: -.045em; margin: .55rem 0 1rem; }
.test-panel > p:not(.test-protocol, .test-status) { color: var(--body); }
.test-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; margin-top: 1.4rem; }
.secondary { background: #fff; border-color: var(--ink); color: var(--ink); }
.secondary:hover { background: #edf0ee; }
.test-panel button:disabled { opacity: .5; cursor: default; }
.test-status { font-weight: 650; }
.test-status:not(:empty) { margin-top: 1rem; border-left: 3px solid currentColor; padding-left: .8rem; }
.test-status[data-tone="ok"] { color: #216846; }
.test-status[data-tone="error"] { color: #9e341e; }
.panel-note { border-top: 1px solid var(--rule); margin-top: auto; padding-top: 1rem; font-size: .94rem; }
.test-status { margin-bottom: 1.5rem; }
.sample-panel { color: #fff; background: var(--navy); border-color: var(--navy); }
.sample-panel .test-protocol { color: var(--orange); }
.sample-panel > p:not(.test-protocol, .test-status), .sample-panel .panel-note { color: #d4dce5; }
.sample-panel label { font-size: .94rem; font-weight: 650; margin: 1.2rem 0 .4rem; }
.sample-panel input { width: 100%; padding: .7rem .85rem; color: white; border: 1px solid #7a889b; border-radius: .3rem; background: #1c2a40; font-family: ui-monospace, monospace; }
.sample-panel .button { background: #f1a471; color: #192235; }
.sample-panel .button:hover { background: #ffbb8e; }
.text-button { color: inherit; padding: .55rem .2rem; border: 0; background: none; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.sample-panel .panel-note { border-color: #506079; }
.sample-panel .panel-note a { display: inline-block; margin-top: .45rem; color: white; text-underline-offset: .2em; }
.sample-panel .test-status[data-tone="ok"] { color: #9ae4b6; }
.sample-panel .test-status[data-tone="error"] { color: #ffb69e; }
@media (max-width: 52rem) {
  .test-grid { grid-template-columns: 1fr; }
}
