.testing-shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.testing-layout { min-height: 690px; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(390px,.92fr); border-bottom: 1px solid var(--line); }
.testing-layout > *, .application-form > *, .application-form label { min-width: 0; }
.story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(70px,8vw,120px) clamp(38px,7vw,100px); color: #f8f4eb; background: #202b3f; }
.story::after { position: absolute; width: 620px; height: 620px; right: -300px; top: -320px; border: 1px solid rgba(145,213,194,.18); border-radius: 50%; box-shadow: inset 0 0 0 90px rgba(145,213,194,.025), inset 0 0 0 185px rgba(145,213,194,.02); content: ""; }
.story-copy, .steps { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 22px; color: #91d5c2; font-size: 10px; font-weight: 900; letter-spacing: .2em; }
h1 { max-width: 700px; margin: 0; font: 700 clamp(48px,6vw,82px)/.93 var(--display); letter-spacing: -.055em; }
.lead { max-width: 590px; margin: 28px 0 0; color: #c4cad0; font-size: 16px; line-height: 1.7; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 56px; }
.step { padding-top: 15px; border-top: 1px solid rgba(255,255,255,.15); color: #c4cad0; font-size: 11px; }
.step b { display: block; margin-bottom: 8px; color: #91d5c2; font: 800 11px "Courier New",monospace; }
.panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(54px,7vw,95px) 0 clamp(54px,7vw,95px) clamp(45px,7vw,95px); }
.badge { width: fit-content; padding-bottom: 7px; border-bottom: 2px solid var(--teal); color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.badge.closed, .badge.rejected { border-color: var(--coral); color: #a24735; }
.badge.pending { border-color: var(--yellow); color: #86620f; }
.status-badge { margin-top: 24px; }
.panel h2 { margin: 24px 0 0; font: 700 clamp(34px,4vw,49px)/1.04 var(--display); letter-spacing: -.045em; }
.panel-copy { margin: 17px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.error { margin: 0 0 20px; padding: 12px 0; border-block: 1px solid rgba(217,109,77,.35); color: #9d432f; font-size: 12px; }
.application-form { display: grid; gap: 18px; }
.application-form label > span { display: block; margin-bottom: 8px; color: #57545c; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.application-form input[type="email"], .application-form input[name="code"] { width: 100%; min-width: 0; max-width: 100%; height: 55px; padding: 0 15px; border: 1px solid var(--line); border-radius: 4px; outline: 0; color: var(--ink); background: rgba(255,255,255,.45); }
.application-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(92,86,206,.09); }
.application-form input[name="code"] { font-size: 24px; letter-spacing: .3em; text-align: center; }
.hint, .privacy { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: #57545c; font-size: 11px; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); }
.application-form button, .play-button, .refresh-button { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 21px; border: 0; border-radius: 18px 28px 18px 28px; font-weight: 850; text-decoration: none; }
.application-form button, .play-button { color: #fffdf8; background: linear-gradient(110deg,#4f4bbd,#6a63dd); box-shadow: 0 18px 38px rgba(75,69,177,.22); cursor: pointer; }
.refresh-button { margin-top: 12px; justify-content: center; border: 1px solid var(--line); color: var(--ink); background: transparent; }
.privacy { margin-top: 21px; text-align: center; }
.privacy a { color: var(--teal); font-weight: 850; }
.status-mark { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-size: 29px; }
.status-mark.pending { color: #86620f; background: #f5dfaa; }
.status-mark.rejected, .status-mark.invalid { color: #9d432f; background: #f2c9bc; }
.private-note { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.testing-guide { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
.testing-guide .story { padding: 60px clamp(24px,4vw,56px); }
.testing-guide h1 { font-size: clamp(42px,5vw,66px); overflow-wrap: anywhere; }
.testing-guide .panel { padding: 48px 0 48px clamp(24px,4vw,56px); }
.testing-guide .panel h2 { margin-top: 0; font-size: clamp(28px,3vw,38px); }
.guide-account { margin: 20px 0 28px; padding-left: 16px; border-left: 3px solid var(--teal); color: var(--muted); font-size: 14px; line-height: 1.6; }
.guide-steps { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.guide-steps li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 14px; }
.guide-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: rgba(34,125,112,.1); font-weight: 850; }
.guide-steps h3 { margin: 3px 0 8px; font-size: 18px; line-height: 1.35; }
.guide-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.guide-link { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--teal); border-radius: 8px; color: var(--teal); font-size: 13px; font-weight: 800; text-decoration: none; }
.guide-link:hover { background: rgba(34,125,112,.08); }
.guide-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.guide-link span { flex-shrink: 0; }

@media (max-width: 900px) {
  .testing-shell { width: 100%; }
  .testing-layout { grid-template-columns: 1fr; }
  .testing-guide .story { min-height: 0; padding-block: 42px; }
  .testing-guide .panel { padding: 36px 0; }
  .story { min-height: 520px; margin: 0; padding-inline: max(32px,calc((100vw - 680px) / 2)); }
  .panel { width: min(100% - 36px,680px); margin-inline: auto; padding-inline: 0; }
}

@media (max-width: 560px) {
  .story { min-height: 500px; padding: 62px 18px; }
  h1 { font-size: clamp(40px,13vw,46px); }
  .lead { font-size: 14px; }
  .steps { gap: 10px; margin-top: 40px; }
  .step { font-size: 9px; }
  .panel { width: calc(100% - 24px); padding-block: 58px; }
}
