.learning-shell { width: min(100% - 3rem, 1160px); }
.site-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2.5rem; }
.site-nav a { color: #214f45; text-decoration: none; font-size: .88rem; font-weight: 650; padding: .65rem .85rem; border: 1px solid transparent; border-radius: 8px; }
.site-nav a:hover { background: #e6ece3; }
.site-nav a[aria-current="page"] { background: #1d6657; color: white; }
.learning-shell h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.learning-shell .intro { max-width: 46rem; }
.learning-shell a { overflow-wrap: anywhere; }
.learning-shell p { line-height: 1.65; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.metric { background: #e7ece2; border: 1px solid #d6dfcf; border-radius: 12px; padding: 1rem 1.2rem; }
.metric strong { display: block; font-size: 1.8rem; letter-spacing: -.05em; }
.metric span { color: #466054; font-size: .82rem; }
.learning-shell progress { width: 100%; height: .65rem; accent-color: #1d6657; }
.course-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.lesson-nav { padding: 1rem; }
.lesson-nav h2 { margin: .5rem .65rem 1rem; font-size: 1rem; }
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.lesson-list button { display: block; width: 100%; border: 1px solid transparent; background: transparent; color: #28453d; text-align: left; padding: .75rem; line-height: 1.5; font-size: .85rem; }
.lesson-list button:hover { background: #eef3e9; }
.lesson-list button[aria-current="step"] { background: #e7f1e9; border-color: #8aaa95; }
.lesson-list small { display: block; font-size: .73rem; color: #52615d; font-weight: 400; margin-top: .25rem; }
.lesson-content { min-width: 0; }
.lesson-content .card { margin-top: 0; }
.lesson-content h2 { font-size: 1.6rem; line-height: 1.3; margin: .65rem 0; }
.lesson-content h3 { font-size: 1.05rem; margin: 1.7rem 0 .75rem; }
.lesson-kicker { color: #376e62; text-transform: uppercase; font-weight: 800; font-size: .7rem; letter-spacing: .1em; }
.lesson-meta { padding: .7rem 1rem; border-radius: 8px; background: #f0f3ed; font-size: .83rem; line-height: 1.6; }
.reading-link { display: inline-block; color: #175c4d; margin: .25rem 0 .9rem; font-weight: 700; }
.learning-shell fieldset { margin: 1.3rem 0; padding: 1rem; border: 1px solid #cbd8ca; border-radius: 8px; min-width: 0; }
.learning-shell legend { padding: 0 .35rem; font-size: .94rem; font-weight: 700; line-height: 1.6; }
.choice { display: flex; gap: .65rem; align-items: start; font-weight: 400; padding: .6rem .25rem; line-height: 1.5; cursor: pointer; }
.choice input { margin: .2rem 0 0; flex-shrink: 0; accent-color: #1d6657; }
.check-line { display: flex; gap: .65rem; align-items: start; line-height: 1.6; font-size: .9rem; font-weight: 500; margin: 1.2rem 0; }
.learning-shell details { border: 1px solid #d9e1d3; border-radius: 8px; padding: .8rem 1rem; margin: .8rem 0; }
.learning-shell summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
.learning-shell details p { margin-bottom: .2rem; white-space: pre-wrap; }
.practice-card { border-left: 4px solid #87a77d; padding: .1rem 1.2rem; }
.feedback { border-radius: 8px; padding: .8rem 1rem; margin: .8rem 0; font-size: .9rem; line-height: 1.6; }
.feedback-pass { background: #e5f1e8; color: #185337; }
.feedback-miss { background: #fff2dd; color: #754213; }
.lesson-pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin: 1.2rem 0 0; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.notice { color: #52615d; font-size: .85rem; line-height: 1.7; }
.error-banner { border-left: 4px solid #a12a18; padding: .85rem 1rem; background: #fff0eb; color: #792014; line-height: 1.6; overflow-wrap: anywhere; }
.status-line { color: #52615d; font-size: .86rem; min-height: 1.4rem; }
.workspace-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 1.4rem; align-items: start; }
.learning-shell select, .learning-shell input[type="search"], .learning-shell textarea { width: 100%; border: 1px solid #94a69e; border-radius: 8px; padding: .75rem; color: #172b2c; background: white; font: inherit; min-width: 0; }
.learning-shell select:disabled, .learning-shell textarea:disabled { opacity: .6; }
.field { display: grid; gap: .45rem; margin-bottom: 1rem; min-width: 0; }
.field input[type="text"] { width: 100%; }
.field small { color: #52615d; font-size: .78rem; line-height: 1.6; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.filter-grid .wide { grid-column: 1 / -1; }
.filter-grid label { font-size: .8rem; }
.workspace-tasks { list-style: none; padding: 0; margin: 0; }
.workspace-tasks > li { border-top: 1px solid #dfe5d9; padding: 1rem 0; }
.task-heading { display: flex; align-items: start; gap: .75rem; }
.task-heading label { display: flex; gap: .7rem; flex: 1; min-width: 0; align-items: start; line-height: 1.6; }
.task-heading label span { overflow-wrap: anywhere; }
.task-heading button { flex-shrink: 0; }
.task-metadata { margin: .55rem 0 0 1.9rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-block; background: #edf1e8; color: #355a4b; font-size: .73rem; padding: .2rem .5rem; border-radius: 5px; overflow-wrap: anywhere; }
.chip.project-chip { background: #e0ebe7; font-weight: 650; }
.empty-message { text-align: center; color: #52615d; padding: 1.5rem .5rem; }
.report-wrap { max-width: 100%; overflow-x: auto; }
.report-table { border-collapse: collapse; width: 100%; font-size: .84rem; }
.report-table th, .report-table td { text-align: left; border-bottom: 1px solid #dfe5d9; padding: .8rem .6rem; }
.report-table th:first-child, .report-table td:first-child { overflow-wrap: anywhere; min-width: 8rem; }
.report-table caption { text-align: left; color: #52615d; font-size: .8rem; padding-bottom: .9rem; line-height: 1.6; }
.edit-panel { border-color: #87a77d; box-shadow: 0 0 0 2px #d9e8d7; }
.muted { color: #52615d; }
.skip-link { position: absolute; left: 1rem; top: -5rem; background: white; padding: .8rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
@media (max-width: 850px) { .course-layout, .workspace-layout { grid-template-columns: 1fr; } .lesson-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lesson-nav { margin-bottom: 0; } .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .learning-shell { width: min(100% - 1.5rem, 1160px); } .site-nav { gap: .2rem; margin-bottom: 2rem; } .site-nav a { padding: .6rem .65rem; font-size: .8rem; } .metrics { gap: .5rem; } .metric { padding: .8rem .65rem; } .metric strong { font-size: 1.45rem; } .metric span { font-size: .7rem; } .lesson-list { grid-template-columns: 1fr; } .task-heading { flex-wrap: wrap; } .task-heading label { flex-basis: 70%; } .report-table th, .report-table td { padding: .7rem .4rem; } .learning-shell .section-heading { flex-wrap: wrap; } .learning-shell .section-heading h2 { max-width: none; } }
