:root { --header-height: 6rem; }
.study-nav { display: flex; flex: none; }
.hero { align-items: start; }
.hero-heading .intro { margin-top: 1rem; }
.hero-controls .voice-picker { margin-top: 0; }
.eyebrow, .voice-label, .voice-button, .speed-picker label, .speed-reset { font-size: .875rem; }
.sq-pronunciation { display: inline-flex; align-items: center; gap: .75rem; max-width: 100%; vertical-align: middle; }
.sq-pronunciation .speak-button { flex: none; margin: 0; }
.hero-heading h1 [lang="sq"] { color: inherit; font-weight: inherit; }
.audio-section .audio-status, .audio-section .audio-status:empty { display: block; height: 1.6em; min-width: 0; margin: .35rem 0; overflow: hidden; color: var(--muted); font-size: .875rem; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.reading-unit + .reading-unit { margin-top: 2.5rem; }
.reading-section > summary h2 { display: inline; margin: 0; font-size: 1.15rem; font-weight: 650; }
.reading-content { padding: .75rem clamp(.85rem, 2.5vw, 1.5rem) 1.4rem; }
.reading-intro { margin: .5rem 0; color: var(--muted); font-size: .875rem; }
.reading-paragraph { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: .85rem; margin-top: 1.3rem; }
.reading-paragraph .speak-button { margin-top: .15rem; }
.reading-paragraph p { margin: 0; color: #e2e8f2; font-size: 1.1rem; line-height: 1.95; }
.translation-workspace { margin-top: 1.5rem; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--border); border-radius: .875rem; background: #101929; }
.translation-workspace h3 { margin: 0; font-size: 1.15rem; }
.translation-help { margin: .55rem 0 1rem; color: #c9d6e8; }
.translation-label { display: block; margin-bottom: .5rem; color: #dbeafe; font-weight: 600; }
.translation-input { display: block; width: 100%; min-height: 14rem; resize: vertical; padding: .9rem 1rem; border: 1px solid #405675; border-radius: .65rem; background: #0b1220; color: #f8fafc; font: inherit; line-height: 1.7; }
.translation-input::placeholder { color: #8e9eb7; }
.translation-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.submit-translation, .reset-translation { min-height: 44px; padding: .6rem 1rem; border: 1px solid #3b82d2; border-radius: .6rem; background: #0057b7; color: white; font: inherit; font-weight: 650; }
.submit-translation:hover { background: #146ac4; }
.reset-translation { border-color: var(--border); background: #17253b; color: #dbeafe; }
.translation-status { min-height: 1.6em; margin: .75rem 0 0; color: #a5e3ff; font-size: .875rem; }
.translation-feedback { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.translation-feedback h4 { margin: 0 0 .6rem; font-size: 1rem; }
.translation-feedback p { margin: .5rem 0 1rem; color: #d2ddec; line-height: 1.8; }
.feedback-note { color: var(--muted); font-size: .875rem; }
.comparison-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.comparison-panel { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: .65rem; background: #0b1220; }
.comparison-panel .comparison-text { margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.word-difference { padding: .05rem .1rem; border-radius: .15rem; background: #614a18; color: #fff1c4; }
.model-panel .word-difference { background: #163c50; color: #c2efff; }
.reading-content > .study-notes { margin-top: 1rem; border: 1px solid var(--border); border-radius: .875rem; background: #101929; }
.study-notes > summary { padding: .85rem 1rem; cursor: pointer; font-weight: 650; }
.study-notes > table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .9rem; }
.study-notes th, .study-notes td { padding: .65rem clamp(.4rem, 1.5vw, .85rem); border-top: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.study-notes th { color: #dbeafe; }
.study-notes td { color: #d2ddec; }
.study-notes th:first-child:nth-last-child(3) { width: 25%; }
.study-notes th:nth-child(2):nth-last-child(2) { width: 30%; }
@media (max-width: 900px) { .comparison-columns { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
 :root { --header-height: 6rem; }
 .study-nav { display: flex; flex: 1; min-width: 0; max-width: 24rem; }
 .study-link { flex: 1; padding: .65rem .5rem; white-space: nowrap; }
 .reading-paragraph { gap: .65rem; }
 .reading-paragraph p { font-size: 1rem; line-height: 1.9; }
 .translation-input { min-height: 16rem; padding: .75rem; }
}
