/* LessonCove identity and layout; controls remain Bootstrap/Tabler components. */
@font-face { font-family: Inter; src: url('/static/vendor/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { --maestro-ink: #173b4a; --maestro-blue: #086b70; --maestro-teal: #086b70; --maestro-paper: #f3f8f8; --maestro-line: #d5e3e5; --maestro-soft: #e4f1ef; --tblr-font-sans-serif: Inter, system-ui, sans-serif; --bs-body-font-family: Inter, system-ui, sans-serif; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--maestro-paper); font-family: Inter, system-ui, sans-serif; color: var(--maestro-ink); }
main { flex: 1; }
.auth-page { min-height: 100vh; }
.auth-page .container-tight { max-width: 30rem; }
.auth-page h1.h2 { font-size: 1.25rem; letter-spacing: 0; font-weight: 600; }
.auth-page .card { border-radius: 4px; box-shadow: 0 2px 4px rgba(24,36,51,.04); }
.auth-page .card-md > .card-body { padding: 2rem; }
.auth-page .hr-text { margin: 0; }
.auth-page .text-secondary a { text-decoration: underline; }
h1,h2,h3 { letter-spacing: -.025em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.2; font-weight: 700; }
p { line-height: 1.65; }
.text-secondary,.text-body-secondary,.form-text { color: #52627b !important; }
.alert-info { background: #e8f0fc; color: #155c59; border-color: #c4d5ef; }
.alert-success { background: #e6f3ec; color: #15543b; border-color: #bcdcca; }
.alert-danger { background: #fcecee; color: #941f32; border-color: #efc5ce; }
.btn-link { color: var(--maestro-blue); }
.btn-danger { --tblr-btn-bg: #b42336; --tblr-btn-border-color: #b42336; --tblr-btn-hover-bg: #931c2c; --tblr-btn-hover-border-color: #931c2c; --bs-btn-bg: #b42336; --bs-btn-border-color: #b42336; --bs-btn-hover-bg: #931c2c; }
.maestro-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; width: 20px; height: 20px; }
.app-header { background: #fff; border-bottom: 1px solid var(--maestro-line); }
.app-header .navbar { min-height: 80px; box-shadow: none; gap: 1.8rem; background: transparent; }
.navbar-brand { font-size: 1.5rem; font-weight: 750; letter-spacing: -.04em; gap: .6rem; display: inline-flex; align-items: center; }
.brand-mark { background: var(--maestro-blue); border-radius: 12px 12px 18px 4px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.brand-wordmark { display: inline-flex; align-items: baseline; gap: .16em; white-space: nowrap; letter-spacing: -.045em; }
.brand-lesson { color: var(--maestro-ink); font-weight: 760; }
.brand-cove { color: var(--maestro-teal); font-weight: 450; }
.app-footer .brand-wordmark { font-size: 1rem; }
.btn-primary { --tblr-btn-bg: #086b70; --tblr-btn-border-color: #086b70; --tblr-btn-hover-bg: #07565a; --tblr-btn-hover-border-color: #07565a; --tblr-btn-active-bg: #07565a; --bs-btn-bg: #086b70; --bs-btn-border-color: #086b70; --bs-btn-hover-bg: #07565a; --bs-btn-hover-border-color: #07565a; }
.btn-outline-primary { --tblr-btn-color: #086b70; --tblr-btn-border-color: #086b70; --tblr-btn-hover-bg: #086b70; --tblr-btn-hover-border-color: #086b70; --bs-btn-color: #086b70; --bs-btn-border-color: #086b70; --bs-btn-hover-bg: #086b70; }
a { color: #086b70; }
a:hover { color: #07565a; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #086b70; outline-offset: 3px; }
.brand-mark,.btn-primary .maestro-icon { color: #fff; }
.app-header .nav-link { gap: .45rem; padding: .7rem !important; font-weight: 500; white-space: nowrap; }
.app-header .nav-link.active { background: var(--maestro-soft); color: var(--maestro-blue); border-radius: 8px; }
.account-controls { max-width: 330px; }
.account-controls .form-select { width: 155px; text-overflow: ellipsis; }
.btn { gap: .5rem; min-height: 40px; font-weight: 600; }
.page-content { padding: 2.5rem 1.5rem 3rem; }
.learning-hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; border-radius: 24px 24px 64px 24px; overflow: hidden; background: #e5f2f0; border: 1px solid #c8e2dd; }
.hero-copy { padding: 3rem; }
.hero-copy h1 { font-size: clamp(2.3rem, 4vw, 3.7rem); max-width: 12ch; line-height: 1.08; margin: 1.3rem 0; }
.hero-copy p { font-size: 1.05rem; max-width: 39ch; color: #455978; margin-bottom: 1.6rem; }
.hero-note { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: #28558c; }
.hero-art { padding: 2rem 2rem 2rem 0; text-align: center; }
.hero-art img { width: 100%; height: auto; }
.art-note { color: #31537c; font-size: .9rem; font-weight: 500; }
.hero-details { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.7rem; color: #455978; font-size: .75rem; }
.hero-details span { display: inline-flex; align-items: center; gap: .4rem; }
.card { border: 1px solid var(--maestro-line); border-radius: 12px; box-shadow: none; }
.card-body { padding: 1.7rem; }
.card-header { min-height: auto; padding: 1.2rem 1.7rem; background: transparent; }
.card-title { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.course-art { height: 190px; background: #e3efef; display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; gap: 1rem; overflow: hidden; }
.course-art img { height: 180px; width: 60%; object-fit: contain; }
.art-caption { font-weight: 700; font-size: 1.35rem; line-height: 1.25; max-width: 9ch; color: #173b4a; }
.art-curiosity { background: #e0f2ee; }
.art-curiosity img { transform: rotate(-7deg); }
.art-curiosity .art-caption { color: #155c59; }
.course-level { background: #e0efec; color: #155c59; padding: .45rem .6rem; font-weight: 600; }
.course-progress { display: block; width: 100%; height: 7px; margin-top: .5rem; border: 0; border-radius: 9px; overflow: hidden; background: #e9eef6; accent-color: var(--maestro-blue); }
.course-progress::-webkit-progress-bar { background: #e9eef6; }
.course-progress::-webkit-progress-value { background: var(--maestro-blue); border-radius: 9px; }
.section-symbol,.profile-avatar,.resume-symbol { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--maestro-soft); width: 44px; height: 44px; margin-bottom: 1rem; }
.profile-avatar { width: 52px; height: 52px; margin: 0; }
.resume-symbol { width: 80px; height: 80px; margin: 0; background: #fff; }
.resume-symbol .maestro-icon { width: 36px; height: 36px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.page-heading p { color: #52627b; margin-bottom: 0; max-width: 65ch; }
.welcome-panel { display: flex; align-items: center; gap: 2rem; background: #e8f2f0; border: 1px solid #d6e8e4; border-radius: 14px; padding: 1.8rem 2.5rem; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; max-width: 1000px; margin: 1rem auto; }
.auth-story h2 { font-size: 2.5rem; line-height: 1.15; max-width: 13ch; }
.auth-story p { color: #52627b; max-width: 35ch; }
.auth-story>img { width: 100%; height: auto; margin: .4rem 0; }
.auth-story li { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; color: #455978; }
.auth-panel { width: 100%; }
.auth-panel .card-body { padding: 2rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font-weight: 500; }
.player-frame { border-radius: 12px; overflow: hidden; background: #14243a; line-height: 0; }
video { aspect-ratio: 16 / 9; }
.syllabus-panel { margin-top: .2rem; }
.syllabus-panel .card-body { max-height: min(70vh, 48rem); overflow-y: auto; overscroll-behavior: contain; }
.lesson-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; }
.progress-indicator { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--tblr-secondary, #68788d); }
.progress-ring-fill { stroke-linecap: butt; }
.progress-ring-fill,.progress-check { display: none; }
.progress-indicator[data-state="in-progress"] { color: var(--maestro-blue); }
.progress-indicator[data-state="in-progress"] .progress-ring-track { stroke: var(--maestro-line); }
.progress-indicator[data-state="in-progress"] .progress-ring-fill { display: block; }
.progress-indicator[data-state="completed"] { color: var(--tblr-success, #23834b); }
.progress-indicator[data-state="completed"] .progress-play { display: none; }
.progress-indicator[data-state="completed"] .progress-check { display: block; }
.lesson-title { min-width: 0; overflow-wrap: anywhere; }
.lesson-duration { flex-shrink: 0; white-space: nowrap; font-size: .85rem; font-variant-numeric: tabular-nums; color: #52627b; }
.course-progress-panel[hidden] { display: none; }
.course-progress-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1.25rem; }
.module-progress-bar { display: block; width: 100%; height: 20px; border-radius: 3px; overflow: hidden; }
.module-progress-video { opacity: .2; }
.module-progress-video[data-completed="true"] { opacity: 1; }
.module-progress-numbers { display: block; width: 100%; height: 14px; margin-top: .5rem; fill: #52627b; font-size: .65rem; }
.module-progress-details { margin-top: .75rem; font-size: .8rem; color: #52627b; }
.module-progress-details summary { cursor: pointer; width: fit-content; }
.module-progress-details summary:focus-visible { outline: 2px solid var(--maestro-blue); outline-offset: 4px; }
@media (max-width: 575px) { .module-progress-numbers { display: none; } .module-progress-bar { height: 16px; } }
.list-group-item.active { background: var(--maestro-soft); color: var(--maestro-ink); border-color: var(--maestro-line); }
.list-group-item { padding: .8rem; border-radius: 6px !important; }
.lesson-script { overflow-wrap: anywhere; max-width: 70ch; }
.lesson-script h1 { font-size: 1.5rem; }
.lesson-script h2 { font-size: 1.25rem; }
.lesson-script p:last-child { margin-bottom: 0; }
.privacy-note { display: flex; gap: .7rem; align-items: center; border-top: 1px solid var(--maestro-line); padding-top: 1.5rem; color: #52627b; }
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state>.maestro-icon { width: 40px; height: 40px; margin-bottom: 1rem; }
.app-footer { border-top: 1px solid var(--maestro-line); display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; padding-top: 1.5rem; padding-bottom: 1.5rem; color: #52627b; font-size: .8rem; }
.measure { max-width: 44rem; }
[hidden] { display: none !important; }
@media (max-width: 1199px) and (min-width: 992px) { .app-header .navbar { gap: .6rem; } .app-header .nav-link { font-size: .8rem; padding: .55rem !important; } .account-controls .form-select { width: 120px; } }
@media (max-width: 991px) { .app-header .navbar { padding: 1rem .75rem; } .navbar-collapse { padding: 1rem 0; } .navbar-nav { margin-bottom: 1rem; gap: .3rem; } .account-controls { max-width: 100%; } .learning-hero { grid-template-columns: 1fr 1fr; } .hero-copy { padding: 2rem; } .hero-art { padding: 1rem; } .hero-details { display: none; } .auth-layout { gap: 2rem; } .auth-story h2 { font-size: 2rem; } }
@media (max-width: 767px) { .page-content { padding-top: 1.5rem; } .learning-hero { grid-template-columns: 1fr; } .hero-copy { padding: 1.8rem; } .hero-copy h1 { max-width: 15ch; } .hero-art { padding: 0 2rem 1.5rem; } .hero-art img { max-width: 290px; } .hero-details { display: flex; } .auth-layout { display: flex; flex-direction: column-reverse; gap: 2rem; } .auth-story { padding: 1rem; } .auth-story>img { max-width: 280px; } .auth-story h2 { max-width: none; } .auth-panel .card-body { padding: 1.5rem; } .page-heading { align-items: flex-start; flex-direction: column; } .welcome-panel { gap: 1rem; padding: 1.5rem; } .welcome-panel>img { width: 100px; height: auto; } .course-art { padding: 1rem; } .card-body { padding: 1.3rem; } .card-header { padding: 1rem 1.3rem; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.page-content:has(.lesson-layout) { max-width: 1680px; }
.lesson-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
.lesson-layout > * { min-width: 0; }
.lesson-main h1 { font-size: clamp(1.5rem, 2.2vw, 2.25rem); }
.lesson-outline, .lesson-tutor { position: sticky; top: 1rem; }
.lesson-outline .card-body { padding: .75rem; }
.lesson-outline .syllabus a { padding: .6rem; }
.lesson-tutor .card-header { gap: .5rem; }
.lesson-tutor .badge { background: #e0efec !important; color: #155c59 !important; }
.tutor-answer { padding: 1rem; border-radius: .6rem; background: #edf6f3; border: 1px solid #d5e3e5; overflow-wrap: anywhere; }
#tutor-text { white-space: pre-wrap; line-height: 1.6; }
.playback-preferences summary { cursor: pointer; }
@media (max-width: 1199px) {
  .lesson-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .lesson-tutor { grid-column: 2; position: static; }
  .lesson-outline { grid-row: 1 / span 2; }
}
@media (max-width: 767px) {
  .lesson-layout { display: flex; flex-direction: column; }
  .lesson-layout > * { width: 100%; position: static; }
  .lesson-main { order: 0; }
  .lesson-tutor { order: 1; }
  .lesson-outline { order: 2; }
}
