/* test book · response-structure prototypes */
.prototype-question-text { max-width: 920px; white-space: pre-wrap; }
.prototype-choice-list { max-width: 960px; grid-template-columns: 1fr; }
.prototype-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prototype-submit { width: min(100%, 520px); justify-self: start; }
.inline-answer-input { display: inline-block; width: clamp(118px, 20vw, 220px); min-height: 1.75em; margin: .08em .16em; padding: .1em .35em .02em; border: 0; border-bottom: 3px solid rgba(31, 107, 84, .48); border-radius: .25em .25em 0 0; outline: none; color: var(--forest); background: rgba(232, 244, 237, .72); font: inherit; font-size: .82em; font-weight: 900; line-height: 1.3; vertical-align: baseline; }
.inline-answer-input::placeholder { color: rgba(31, 107, 84, .45); font-size: .72em; }
.inline-answer-input:focus { border-bottom-color: var(--forest); background: var(--mint); box-shadow: 0 4px 0 rgba(31, 107, 84, .11); }
.inline-answer-input.field-correct { border-bottom-color: var(--success); background: var(--success-soft); }
.inline-answer-input.field-wrong { border-bottom-color: var(--danger); background: var(--danger-soft); }
.inline-answer-long { width: min(100%, 760px); min-height: 5.8em; display: block; margin: .6em 0 .2em; padding: .65em .75em; resize: vertical; border: 0; border-bottom: 3px solid rgba(31, 107, 84, .48); border-radius: 15px 15px 0 0; line-height: 1.55; }
.prototype-ox-row { width: min(100%, 680px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prototype-correction-step { width: min(100%, 680px); display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(31, 107, 84, .22); border-radius: 18px; background: rgba(232, 244, 237, .68); }
.prototype-correction-step.hidden { display: none; }
.prototype-correction-prompt { margin: 0; color: var(--ink); font-size: clamp(1rem, 2.4vw, 1.28rem); font-weight: 850; line-height: 1.75; white-space: pre-wrap; }
.prototype-correction-step .prototype-submit { width: 100%; }
.prototype-statement-block { display: grid; gap: 9px; }
.prototype-statement { min-height: 52px; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fbfcf8; font-size: .94rem; font-weight: 760; line-height: 1.5; text-align: left; }
button.prototype-statement { width: 100%; cursor: pointer; }
.prototype-statement.selected { border-color: rgba(31, 107, 84, .5); background: var(--mint); }
.statement-check { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: transparent; background: #eef2ed; }
.prototype-statement.selected .statement-check { color: white; background: var(--forest); }
.prototype-live-count { width: min(100%, 360px); display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 15px; color: var(--forest); background: var(--mint); font-size: .86rem; font-weight: 900; }
.prototype-live-count strong { font-size: 1.12rem; }
.prototype-table { width: 100%; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.prototype-table th, .prototype-table td { padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.prototype-table th { color: var(--forest); background: var(--mint); font-size: .82rem; }
.prototype-table tr:last-child td { border-bottom: 0; }
.prototype-table th:last-child, .prototype-table td:last-child { border-right: 0; }
.table-answer-input { width: 100%; min-width: 100px; margin: 0; font-size: 1rem; }
.prototype-media { max-width: 960px; grid-template-columns: 1fr; }
.prototype-sarcomere, .prototype-graph { position: relative; min-height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, #fff, #f4f8f2); }
.sarcomere-title, .graph-title { position: absolute; top: 14px; left: 17px; z-index: 4; padding: 6px 10px; border-radius: 999px; color: var(--forest); background: rgba(232, 244, 237, .94); font-size: .72rem; font-weight: 900; }
.z-line { position: absolute; top: 85px; bottom: 60px; width: 6px; border-radius: 6px; background: #264d44; }
.z-line.left { left: 12%; }
.z-line.right { right: 12%; }
.thin-filament { position: absolute; top: 145px; width: 29%; height: 5px; background: #62a88d; }
.thin-filament.left { left: 12%; }
.thin-filament.right { right: 12%; }
.thick-filament { position: absolute; top: 138px; left: 34%; width: 32%; height: 18px; border-radius: 12px; background: #f0a55d; }
.h-zone { position: absolute; top: 126px; left: 46%; width: 8%; height: 42px; border: 2px dashed #b36f38; border-radius: 8px; }
.visual-label { position: absolute; z-index: 3; display: grid; gap: 4px; padding: 6px; border-radius: 12px; background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(28, 55, 46, .12); }
.visual-label span { color: var(--forest); font-size: .72rem; font-weight: 950; }
.visual-label input { width: 120px; min-height: 38px; padding: 0 10px; border: 0; border-bottom: 2px solid var(--forest); color: var(--ink); background: var(--mint); font: inherit; font-weight: 850; }
.visual-label.label-a { left: 5%; bottom: 14px; }
.visual-label.label-b { left: 40%; bottom: 14px; }
.visual-label.label-c { right: 5%; bottom: 14px; }
.prototype-graph { min-height: 290px; padding: 44px 18px 8px; }
.prototype-graph svg { width: 100%; height: 240px; overflow: visible; }
.prototype-graph line { stroke: #5d6d67; stroke-width: 3; }
.prototype-graph path { fill: none; stroke: var(--forest); stroke-width: 8; stroke-linecap: round; }
.prototype-graph text { fill: #65736e; font-size: 16px; font-weight: 800; }
.prototype-matrix { display: grid; gap: 9px; }
.prototype-matrix-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(150px, 1.2fr); align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcf8; }
.prototype-matrix-row strong { line-height: 1.4; }
.prototype-matrix-row select { min-height: 46px; padding: 0 12px; border: 1px solid rgba(31, 107, 84, .25); border-radius: 13px; color: var(--forest); background: white; font: inherit; font-weight: 850; }
.prototype-ordering { display: grid; gap: 8px; }
.prototype-order-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcf8; }
.order-number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--forest); background: var(--mint); font-weight: 950; }
.order-controls { display: flex; gap: 6px; }
.order-controls button { width: 40px; height: 40px; border: 0; border-radius: 12px; color: var(--forest); background: var(--mint); font-size: 1rem; font-weight: 950; cursor: pointer; }
.prototype-multipart { display: grid; gap: 10px; }
.prototype-part-row { padding: 14px 16px; border: 1px solid var(--line); border-radius: 17px; background: #fbfcf8; }
.prototype-part-row p { margin: 0 0 10px; line-height: 1.5; }
.prototype-part-row .inline-answer-input { width: min(100%, 300px); font-size: 1rem; }
.prototype-segmented { display: flex; flex-wrap: wrap; gap: 7px; }
.prototype-segmented button { min-height: 42px; padding: 0 15px; border: 1px solid rgba(31, 107, 84, .24); border-radius: 12px; color: var(--forest); background: white; font-weight: 900; }
.prototype-segmented button.selected { color: white; border-color: var(--forest); background: var(--forest); }
.practice-mode-hint { width: min(100%, 900px); padding: 12px 15px; border: 1px solid rgba(31, 107, 84, .16); border-radius: 14px; background: rgba(232, 244, 237, .58); }
.practice-answer-form { width: min(100%, 900px); }
.practice-answer-textarea { width: 100%; min-height: 96px; padding: 14px 16px; resize: vertical; border: 1px solid rgba(31, 107, 84, .28); border-radius: 16px; outline: none; color: var(--ink); background: white; font: inherit; font-size: 1rem; font-weight: 750; line-height: 1.55; }
.practice-answer-textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(31, 107, 84, .1); }
.practice-count-row { width: min(100%, 680px); }
.practice-count-row button { flex: 1 1 70px; min-height: 52px; cursor: pointer; }
.practice-ox-correction { width: min(100%, 680px); padding: 14px; border: 1px solid rgba(31, 107, 84, .18); border-radius: 16px; background: rgba(232, 244, 237, .48); }
.practice-ox-correction.hidden { display: none; }
.source-inline-input { min-width: 116px; }
.inline-blank-submit, .practice-complete-button { width: min(100%, 520px); justify-self: start; }

@media (max-width: 620px) {
  .prototype-option-grid { grid-template-columns: 1fr; }
  .prototype-question-text { font-size: clamp(1.08rem, 4.6vw, 1.3rem); }
  .inline-answer-input { width: min(54vw, 190px); min-height: 2.05em; }
  .inline-answer-long { width: 100%; min-height: 6.5em; }
  .prototype-table { display: block; overflow-x: auto; font-size: .82rem; }
  .prototype-table th, .prototype-table td { min-width: 112px; padding: 10px; }
  .prototype-sarcomere { min-height: 360px; }
  .visual-label input { width: 98px; }
  .visual-label.label-a { left: 3%; bottom: 76px; }
  .visual-label.label-b { left: 34%; bottom: 14px; }
  .visual-label.label-c { right: 3%; bottom: 76px; }
  .prototype-matrix-row { grid-template-columns: 1fr; gap: 7px; }
  .prototype-order-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .order-controls button { width: 36px; height: 36px; }
}
