.reference-shortcuts{margin:24px 0;padding:19px 22px;border:1px solid var(--line);border-radius:18px;background:var(--card)}.reference-shortcuts h2{font-size:17px;margin:0 0 9px}.reference-shortcuts p{font-size:13px;color:var(--muted);line-height:1.7}.reference-shortcuts .actions{flex-direction:row;flex-wrap:wrap}.reference-shortcuts button{flex:1;min-width:120px}
.reference-tabs{display:flex;gap:8px;margin:20px 0}.reference-tabs button{flex:1;min-height:48px;border:1px solid var(--line);border-radius:13px;background:var(--card);color:var(--ink);font-weight:700}.reference-tabs button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}.reference-tools{padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--card);margin-bottom:24px}.reference-tools label{font-size:13px;font-weight:700;display:block;margin-bottom:9px}.reference-tools .search{margin-bottom:5px}.reference-tools .chips{margin-bottom:0}.reference-count{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 16px}.reference-group{margin:25px 0}.reference-group h2{font-size:18px;margin:0 0 12px}.reference-group h2 small{font-size:12px;color:var(--muted);font-weight:400;margin-left:8px}.reference-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.reference-pick{min-width:0;min-height:78px;padding:15px 13px;text-align:left;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--green);line-height:1.5}.reference-pick:hover{background:#eaf1e8;border-color:#8aa18c}.reference-pick b{display:block;font-size:16px;overflow-wrap:anywhere}.reference-pick small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.reference-empty{padding:24px;border:1px dashed var(--line);border-radius:16px;text-align:center;line-height:1.8}.reference-empty p{color:var(--muted);font-size:14px}.reference-word{display:inline;border:0;border-radius:3px;padding:0 2px;background:#e9f0e2;color:inherit;font-size:inherit;font-family:inherit;font-weight:inherit;line-height:inherit;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:#466c55;text-underline-offset:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone;white-space:normal}.reference-word:hover{background:#dbe8d4}.reference-help{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0 0}.reference-pocket{padding:14px 16px;margin:16px 0;border:1px solid var(--line);border-radius:14px;background:var(--card)}.reference-pocket b{font-size:13px}.reference-pocket .chips{margin:10px 0 0}.reference-pocket button{min-height:44px;padding:9px 13px;font-size:13px;background:#edf2e8;color:var(--green);border:1px solid #d2decf;border-radius:11px}
.reference-modal{width:min(94vw,650px);padding:30px;scrollbar-gutter:stable}.reference-modal .modal-title{padding-right:23px;line-height:1.5;font-size:26px;margin-top:12px}.reference-modal .modal-text{font-size:16px;line-height:1.95;white-space:pre-line;overflow-wrap:anywhere}.reference-detail-lead{padding:16px;background:#eef2e7;border-radius:14px;margin:18px 0}.reference-detail-lead strong{font-size:14px;color:var(--green)}.reference-detail-lead p{font-size:16px;line-height:1.9;margin:9px 0 0}.reference-section{margin:22px 0}.reference-section h3{font-size:16px;margin:0 0 9px}.reference-more{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0;padding:5px 0}.reference-more summary{min-height:48px;padding:14px 0;color:var(--green);font-size:15px;font-weight:700;cursor:pointer}.reference-more summary:focus-visible{outline:3px solid #cd8850;outline-offset:3px}.reference-modal .reference-back{min-height:44px}.reference-modal .actions button{white-space:normal;line-height:1.6}.reference-modal .q-source{line-height:1.7}.reference-title:focus{outline:none}
.reference-shortcuts{display:flex;align-items:center;justify-content:space-between;gap:18px}.reference-shortcuts h2{margin:0 0 7px}.reference-shortcuts p{margin:0}.reference-shortcuts>button{min-height:48px;white-space:normal;line-height:1.6;flex-shrink:0}
.comic-caption .story-paragraph{font-size:17px;line-height:2;margin:16px 0;word-break:keep-all;overflow-wrap:anywhere}.story-history{margin:18px 0;padding:0 18px;border:1px solid var(--line);border-radius:14px;background:var(--card)}.story-history summary{min-height:48px;cursor:pointer;font-weight:700;font-size:14px;padding:15px 0;color:var(--green)}.story-history>p{font-size:13px;line-height:1.8;color:var(--muted)}.story-history .note{margin:14px 0;font-size:14px;line-height:1.9}.story-sources{display:grid;gap:9px;font-size:13px;line-height:1.7;padding:0 0 18px}.story-sources a{min-height:32px;overflow-wrap:anywhere}
@media(max-width:520px){.reference-shortcuts{align-items:stretch;flex-direction:column;gap:14px}.reference-shortcuts>button{width:100%}.narration-heading{align-items:flex-start;flex-wrap:wrap}.narration-heading .subtle{font-size:12px}}
@media(max-width:760px){.reference-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:520px){.reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-tools{padding:17px}.reference-pick{padding:14px 11px}.reference-pick b{font-size:15px}.reference-modal{padding:24px 19px}.reference-modal .modal-title{font-size:23px}.reference-shortcuts{padding:18px}.reference-tabs button{font-size:14px}.reference-tools .chip{padding:9px 11px}}
.learning-levels{grid-template-columns:repeat(4,minmax(0,1fr))}.intro-route{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0;padding:20px;border:1px solid #c9d8cc;background:#edf4ed;border-radius:18px}.intro-route h2{font-size:18px;margin:10px 0}.intro-route p{margin:0;font-size:14px;line-height:1.8;color:var(--muted)}.intro-route>button{flex-shrink:0;min-height:46px}.intro-overview p{line-height:1.9}.intro-lessons{display:grid;gap:12px;margin:20px 0}.intro-lesson{margin:0;padding:20px}.intro-lesson>summary{cursor:pointer;display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-height:48px;list-style:none}.intro-lesson>summary::-webkit-details-marker{display:none}.intro-lesson>summary::after{content:'＋';font-weight:700;margin-left:auto}.intro-lesson[open]>summary::after{content:'−'}.intro-lesson summary h2{font-size:18px;margin:0}.intro-lesson summary .subtle{font-size:12px}.intro-lesson p{font-size:16px;line-height:1.95}.intro-lesson .actions{margin-bottom:0}.intro-words{display:flex;flex-wrap:wrap;gap:7px}.narration-voice-options{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.narration-voice-options summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:700}.narration-voice-options label{display:grid;gap:8px;font-size:13px}.narration-voice-options select{max-width:100%;width:100%;min-height:46px;padding:10px;border-radius:10px;border:1px solid var(--line);background:var(--paper);color:var(--ink)}.narration-voice-options .actions{margin-bottom:4px}
@media(max-width:760px){.learning-levels{grid-template-columns:repeat(2,minmax(0,1fr))}.intro-route{align-items:stretch;flex-direction:column;gap:14px}.intro-route>button{width:100%}.intro-lesson summary h2{flex-basis:100%;order:2;font-size:17px}.intro-lesson summary .subtle{order:1}.intro-lesson summary::after{order:1}.intro-lesson{padding:17px}.narration-options>label{flex-wrap:wrap;max-width:100%}}
