.inner-page { width: min(calc(100% - 44px), 1010px); margin: 0 auto; padding: 42px 0 64px; }
.inner-page h1 { font-size: clamp(2rem,4.4vw,3.1rem); line-height: 1.24; letter-spacing: -.065em; }
.inner-page h2 { font-size: clamp(1.35rem,3vw,1.75rem); letter-spacing: -.045em; line-height: 1.35; }
.inner-page h3 { font-size: 1.14rem; line-height: 1.5; letter-spacing: -.025em; }
.section-mark { font-size: .87rem; font-weight: 690; letter-spacing: .015em; color: var(--accent-text); margin-bottom: 9px; }
.intro { font-size: 1.03rem; color: var(--muted); margin-top: 9px; }
.quiz-page { max-width: 624px; }
.quiz-content { width: 100%; }
.quiz-content h1 { font-size: clamp(1.7rem,4vw,2.35rem); }
.quiz-count { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--mint); font-weight: 700; font-size: .94rem; }
.quiz-count span:first-child { font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; margin: 11px 0 28px; overflow: hidden; background: #dcebe1; border-radius: 6px; }
.progress-track i { display: block; height: 100%; background: var(--mint); border-radius: inherit; }
.source-slip,.scenario { padding: 18px 20px; margin: 21px 0; background: #eefbf3; border: 1px solid #cfe9d8; border-radius: 14px; }
.source-slip h3,.scenario strong { display: flex; gap: 8px; align-items: center; color: var(--accent-text); font-size: .9rem; font-weight: 700; }
.source-slip h3 small { margin-left: auto; color: var(--muted); font-size: .8rem; font-weight: 500; }
.source-slip dl { display: grid; gap: 5px; margin-top: 10px; }
.source-slip dl > div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 8px; align-items: baseline; }
.source-slip dt { color: var(--muted); font-size: .9rem; }
.source-slip dd,.scenario p { font-weight: 590; }
.scenario p { margin-top: 5px; }
#mission-form { margin-top: 22px; }
.response-field > label { display: block; margin-bottom: 8px; font-weight: 700; }
.response-field textarea,.search-field input,.location-filter select { background: #ffffff; color: var(--text); border: 1px solid #a9c1b1; border-radius: 10px; }
.response-field textarea { display: block; width: 100%; min-height: 102px; line-height: 1.6; resize: vertical; padding: .86rem 1rem; }
.response-field textarea::placeholder,.search-field input::placeholder { color: #aaa5bd; opacity: 1; }
.field-foot { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
#prompt-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.field-foot { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.choice-list { border: 0; padding: 0; margin: 18px 0; min-width: 0; display: grid; gap: 10px; }
.answer-choice { width: 100%; min-height: 55px; text-align: left; display: flex; align-items: center; gap: .65rem; padding: 13px 17px; color: var(--text); border: 1px solid #bfd5c7; border-radius: 14px; background: var(--panel); line-height: 1.5; }
.answer-choice:hover,.answer-choice[aria-pressed="true"],.answer-choice:has(input:checked) { border-color: var(--mint); background: #eaf9ef; }
.unsure { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); min-height: 42px; font-size: .94rem; }
.unsure input,.answer-choice input { accent-color: var(--mint); width: 16px; height: 16px; }
.form-err { color: #a13b3b; margin-top: 10px; }
.form-err:empty { display: none; }
.quiz-actions,.result-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 21px; }
.quiz-actions { justify-content: space-between; }
.quiz-actions .secondary { color: #395545; }
.quiz-actions button:only-child { margin-right: auto; }
.results-page { max-width: 908px; }
.score-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0 31px; padding: clamp(20px,3.9vw,34px); background: #e7f8ed; border: 1px solid #bddfcb; border-radius: 19px; }
.score-panel > div:first-child > span { color: #336748; font-size: .9rem; }
.score-panel h2 { font-size: clamp(1.7rem,3.6vw,2.5rem); margin: 5px 0 8px; }
.score-panel p { color: #3b5b49; }
.score-numeral { color: var(--mint); display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.score-numeral b { font-size: clamp(2.8rem,6vw,4.7rem); letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.score-numeral span { color: #50695b; }
.heading-row,.shelf-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 13px; }
.heading-row > span,.shelf-list-heading > span { font-size: .89rem; color: var(--muted); }
.result-section + .result-section { margin-top: 32px; }
.axis-grid { border-block: 1px solid var(--line); }
.axis-detail + .axis-detail { border-top: 1px solid var(--line); }
details > summary { cursor: pointer; }
.axis-detail summary,.method summary,.item-holdings summary { display: flex; align-items: center; gap: 6px; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.axis-detail summary::after,.item-holdings summary::after,.method summary::after { content: ""; width: 7px; height: 7px; flex: none; margin: -3px 1px 0 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
details[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.axis-detail summary { min-height: 56px; padding: 10px 3px; }
.axis-detail summary span { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; }
.axis-detail summary .icon,.axis-detail summary b { color: var(--mint); }
.axis-detail summary b { margin-left: auto; font-size: .94rem; font-variant-numeric: tabular-nums; }
.axis-body { padding: 4px 3px 18px; line-height: 1.62; }
.axis-body .score-note { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.axis-body ul { list-style: none; padding: 0; margin: 12px 0 0; }
.axis-body li { display: flex; align-items: start; gap: 9px; margin-top: 10px; }
.feedback-mark { flex: none; font-size: .78rem; color: #914d1b; padding: 2px 6px; background: #fff1e1; border-radius: 4px; }
.feedback-mark.found { color: var(--mint); background: #e3f6ea; }
.axis-body li p { color: var(--muted); font-size: .95rem; }
.sample-prompt,.read-practice { background: #eff8f1; padding: 12px 15px; border-radius: 10px; }
.sample-prompt { margin-top: 14px; }
.sample-prompt b,.read-practice b { display: block; color: var(--accent-text); font-size: .9rem; }
.sample-prompt p { margin: 3px 0 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sample-prompt p:last-child { margin-bottom: 0; }
.method,.catalog-note { color: var(--muted); font-size: .91rem; line-height: 1.6; }
.method { margin-top: 6px; }
.method summary { width: fit-content; min-height: 42px; font-weight: 620; }
.method p { padding-bottom: 8px; }
.results-books,.shelf-books { display: grid; gap: 12px; }
.results-books { grid-template-columns: 1fr; }
.shelf-books { grid-template-columns: repeat(3,minmax(0,1fr)); }
.record-card { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; border: 1px solid #d9e7dd; padding: 18px 19px 12px; background: var(--panel); border-radius: 16px; }
.record-card h3 { font-size: 1.14rem; line-height: 1.47; }
.record-card.recommended { padding: 20px 23px 12px; }
.record-top { display: grid; grid-template-columns: minmax(72px, 33%) minmax(0, 1fr); gap: 15px; align-items: start; margin-bottom: 16px; }
.record-identity { min-width: 0; }
.record-cover { position: relative; width: 100%; max-width: 138px; aspect-ratio: 156/216; display: grid; place-items: center; border-radius: 5px; background: #f1f6f2; border: 1px solid #e2ebe5; overflow: hidden; }
.record-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cover-placeholder { display: grid; justify-items: center; gap: 6px; color: #5e7768; font-size: .83rem; }
.cover-placeholder .icon { width: 27px; height: 27px; }
.record-cover.has-image .cover-placeholder { display: none; }
.record-top .imprint { margin-bottom: 0; }
.recommended .record-top { grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 20px; }
.recommended .record-top h3 { font-size: clamp(1.18rem, 3vw, 1.46rem); }
.availability { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.loan-status { font-size: .94rem; color: #54695b; font-weight: 650; }
.loan-status[data-kind="available"] { color: #076636; }
.loan-status[data-kind="verified"] { color: #54452f; }
.loan-time { color: #566e5f; font-size: .84rem; margin-top: 2px; min-height: 0; }
.loan-time:empty, .copy-status:empty { display: none; }
.loan-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; }
.loan-check, .loan-link { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: .91rem; line-height: 1.35; }
.loan-check { padding: 6px 12px; margin: 2px 0; border-radius: 9px; color: #086638; background: #edf9f0; font-weight: 670; }
.loan-check:hover:not(:disabled) { background: #daf1e1; }
.loan-link { white-space: normal; color: #355f47; text-underline-offset: .18em; }
.copy-status { font-size: .89rem; font-weight: 650; color: #345943; }
.record-tag { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--mint); font-weight: 690; font-size: .88rem; }
.record-tag .icon { width: 16px; height: 16px; }
.imprint { margin: 5px 0 14px; color: var(--muted); font-size: .89rem; }
.book-reason { color: #334d3e; margin-bottom: 12px; }
.read-practice { margin-bottom: 16px; }
.read-practice p { margin-top: 3px; line-height: 1.6; }
.shelf-data { display: grid; gap: 3px; border-top: 1px solid var(--line); margin-top: auto; padding-top: 11px; }
.shelf-data > div { display: grid; grid-template-columns: 4.05rem minmax(0,1fr); gap: 8px; align-items: baseline; }
.shelf-data span,.copies span { color: var(--muted); font-size: .87rem; }
.shelf-data strong,.shelf-data b { font-size: .96rem; line-height: 1.5; }
.item-holdings summary { min-height: 38px; width: fit-content; font-size: .86rem; font-weight: 620; color: var(--accent-text); }
.copies > div { display: grid; gap: 2px; padding: 7px 0; border-top: 1px dashed var(--line); }
.catalog-note { margin-top: 12px; font-size: .87rem; }
.shelf-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px 20px; flex-wrap: wrap; }
.shelf-stat { font-size: .98rem; color: var(--accent-text); display: inline-flex; align-items: baseline; gap: 3px; }
.shelf-stat b { font-size: 1.38rem; }
.shelf-stat span { margin-inline: 4px; }
.shelf-filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(185px,.36fr); gap: 12px; margin: 23px 0 22px; }
.shelf-filters label { display: block; margin-bottom: 5px; color: #415849; font-size: .89rem; font-weight: 630; }
.search-field > div,.location-filter { position: relative; }
.search-field .icon { position: absolute; left: 12px; top: 14px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search-field input,.location-filter select { width: 100%; min-height: 45px; line-height: 1.45; font-size: 1rem; }
.search-field input { padding: 8px 10px 8px 37px; }
.location-filter select { appearance: none; padding: 8px 33px 8px 13px; }
.location-filter::after { content: ""; position: absolute; bottom: 20px; right: 15px; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.shelf-list-heading p { font-weight: 700; }
.no-hits { text-align: center; padding: 28px 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.no-hits p { margin: 7px 0 14px; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.pager .secondary { min-height: 41px; padding: 7px 17px; }
.pager b { font-size: .95rem; color: var(--muted); }
@media (max-width: 920px) { .shelf-books { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) {
  .inner-page { width: calc(100% - 36px); padding: 27px 0 40px; }
  .shelf-books,.shelf-filters { grid-template-columns: 1fr; }
  .score-panel { align-items: flex-start; gap: 12px; padding: 18px; }
  .score-numeral { flex-direction: column; align-items: end; gap: 3px; }
  .score-numeral span { font-size: .86rem; }
  .record-card.recommended { padding: 17px 16px 11px; }
  .scenario,.source-slip { padding: 14px 16px; margin: 16px 0; }
  .shelf-filters { gap: 8px; }
  .quiz-actions button { font-size: .96rem; }
  .progress-track { margin-bottom: 20px; }
}
@media print {
  .site-header,.quiz-actions,.result-actions,.pager,.shelf-filters { display: none; }
  .inner-page { width: 100%; margin: 0; padding: 0; }
  .record-card,.score-panel { break-inside: avoid; }
}
