.subject-entry { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:16px 0; padding:18px; background:#fff; border:1px solid #dce7f2; border-radius:16px; }
.subject-entry p { margin:4px 0 0; color:#516b86; }
.subject-entry button, .subject-card button { border:0; border-radius:11px; padding:10px 14px; background:#2563b8; color:#fff; font:inherit; cursor:pointer; }
.subject-entry button:focus-visible { outline:3px solid #edaa37; outline-offset:3px; }
#subjectRoot { max-width:760px; margin:0 auto; padding:22px 18px 100px; color:#153153; }
.subject-card { background:#fff; border:1px solid #dce7f2; border-radius:20px; padding:20px; box-shadow:0 8px 24px rgba(32,68,109,.06); }
.subject-preview-notice { padding:7px 10px; border-radius:8px; color:#385a7a; background:#e3eef9; font-size:12px; }
.subject-card summary { cursor:pointer; font-weight:700; padding:12px 0; }
.subject-kicker { margin:0 0 5px; color:#476d99; font-size:13px; font-weight:700; letter-spacing:.04em; }
.subject-card h2 { margin: 8px 0 14px; font-size: 24px; }
.subject-card h3 { margin: 14px 0 6px; }
.subject-card p { line-height: 1.55; }
.subject-card button:focus-visible { outline: 3px solid #edaa37; outline-offset: 3px; }
.subject-step { color: #138c81; font-size: 13px; font-weight: 700; }
.subject-item-progress { color: #405d7a; font-size: 14px; margin: 6px 0; }
.subject-flow-progress { display: flex; gap: 7px; margin: 12px 0; }
.subject-flow-progress span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #eaf0f5; color: #657b8e; font-size: 12px; font-weight: 700; }
.subject-flow-progress .done { color: #08735e; background: #d9f5e8; }
.subject-flow-progress .current { color: white; background: #138c81; }
.subject-combo { float: right; color: #08735e; font-weight: 700; }
.subject-concept { background: #e9f7f5; border-radius: 14px; padding: 14px; margin: 12px 0; }
.subject-concept p { margin: 4px 0; }
.subject-card .subject-audio { background: #2563b8; color: #fff; min-height: 44px; padding: 10px 14px; margin: 8px 0; }
.subject-guide { padding: 12px 14px; margin: 12px 0; border-radius: 12px; background: #f2f6fb; }
.subject-guide p { margin: 6px 0; }
.subject-audio-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.subject-card .subject-save-error { padding: 12px; color: #852b0a; background: #fff1e3; border: 1px solid #b45309; border-radius: 10px; }
.subject-choices button:disabled { color: #52657a; background: #edf1f5; cursor: not-allowed; }
.subject-prompt { font-size: 18px; font-weight: 700; }
.subject-choices { display: grid; gap: 8px; margin: 14px 0; }
.subject-choices button { text-align: left; background: #edf4fb; color: #193b60; min-height: 44px; }
.subject-card label { display: block; margin: 12px 0 6px; }
.subject-lesson-pilot select { display: block; width: 100%; margin-top: 4px; padding: 8px; border: 1px solid #9bb4cb; border-radius: 8px; background: #fff; color: #153153; font: inherit; }
.subject-card input, .subject-card textarea { display: block; width: 100%; box-sizing: border-box; border: 1px solid #9bb4cb; border-radius: 10px; padding: 12px; margin-bottom: 12px; font: inherit; }
.subject-reading { padding: 14px; background: #f2f6fb; border-radius: 12px; }
.subject-bilingual .subject-prompt { margin-bottom: 6px; }
.subject-translation { color: #305873; font-size: 15px; }
.subject-reading-line { padding: 8px 0; border-bottom: 1px solid #dce7f2; }
.subject-reading-line:last-child { border-bottom: 0; }
.subject-reading-line p { margin: 4px 0; }
.subject-choice-translation { display: block; color: #405d7a; font-size: 14px; margin-top: 4px; }
.subject-diagram { margin: 14px 0; text-align: center; }
.subject-diagram-viewport { overflow-x: auto; overscroll-behavior-x: contain; }
.subject-diagram-viewport:focus-visible { outline: 3px solid #edaa37; outline-offset: 3px; }
.subject-diagram img { display: block; max-width: 100%; width: 360px; height: auto; margin: auto; }
.subject-diagram .is-zoomed img { width: 640px; max-width: none; }
.subject-card .subject-diagram-toggle { background: #edf4fb; color: #193b60; margin: 0 8px 8px 0; }
.subject-diagram-help { color: #405d7a; font-size: 13px; }
.subject-diagram figcaption { color: #405d7a; font-size: 13px; }
.subject-feedback { padding: 15px; border-radius: 12px; background: #e4f7ee; margin: 14px 0; scroll-margin-top: 110px; }
.subject-feedback.incorrect { background: #fff1e3; }
.subject-written-draft { white-space: pre-wrap; overflow-wrap: anywhere; }
.subject-card .subject-back { display: block; margin-top: 20px; color: #405d7a; background: #edf4fb; }
.subject-list-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 8px; border-bottom: 1px solid #e4edf5; }
.subject-card details { margin-top: 15px; }
.subject-notice { color: #08735e; font-weight: 700; }
@media (max-width: 480px) { #subjectRoot { padding:14px 12px 90px; } #subjectRoot .subject-card { padding:15px; } .subject-entry { flex-wrap:wrap; } }

.subject-entry[hidden] { display:none; }
