:root {
  --bg: #f4f6f8; --panel: #fff; --ink: #18232f; --muted: #5b6b79; --line: #e1e7ec; --nav: #152637; --nav2: #1c3449;
  --teal: #167d78; --teal-soft: #e5f3f1; --amber: #8a5a10; --amber-soft: #fff4df; --blue: #2a78d6; --blue-soft: #eaf1fb;
  --orange: #eb6834; --aqua: #1baf7a; --red: #b03a3a; --red-soft: #fdeeee; --shadow: 0 8px 28px rgba(26,43,58,.06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex: 0 0 236px; background: var(--nav); color: #dce5ed; padding: 22px 15px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 20px; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: #d9eeeb; display: grid; place-items: center; color: var(--teal); font-weight: 900; font-size: 18px; flex: none; }
.brand-name { font-weight: 750; font-size: 17px; color: #fff; }
.brand-sub { font-size: 10.5px; color: #a9bac8; letter-spacing: .9px; text-transform: uppercase; }
.nav-label { color: #92a7b8; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; padding: 12px 10px 6px; }
.nav-btn { border: 0; width: 100%; color: #c6d3dd; background: transparent; text-align: left; padding: 9px 11px; border-radius: 9px; display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 2px 0; }
.nav-btn:hover { background: var(--nav2); color: #fff; }
.nav-btn.active { background: #24465b; color: #fff; box-shadow: inset 3px 0 #69b9b0; }
.nav-icon { width: 18px; text-align: center; }
.side-note { margin-top: auto; border: 1px solid #355064; background: #1b3448; border-radius: 12px; padding: 12px; color: #bccbd7; font-size: 12px; line-height: 1.5; }
.side-note strong { display: block; color: #eff6fa; margin-bottom: 3px; }
.main { flex: 1; min-width: 0; }
.topbar { min-height: 58px; padding: 10px 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border-bottom: 1px solid var(--line); }
.crumb { color: var(--muted); font-size: 13px; }
.top-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { border: 1px solid #d4e8e5; color: var(--teal); background: var(--teal-soft); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.tag.warn { border-color: #f0dfbd; color: var(--amber); background: var(--amber-soft); }
.content { padding: 26px 30px 44px; max-width: 1400px; margin: auto; }
.page { display: none; } .page.active { display: block; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
h1 { font-size: 26px; letter-spacing: -.5px; margin: 0 0 6px; font-weight: 760; line-height: 1.2; }
h2 { font-size: 16px; margin: 0; font-weight: 720; }
h3 { font-size: 14px; margin: 0; font-weight: 700; }
p { margin: 0; }
.subtitle { color: var(--muted); max-width: 760px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { border: 1px solid #cfd8df; background: #fff; color: #2d3e4d; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 650; }
.btn:hover { border-color: #9fb2bf; background: #fbfcfd; }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: #116c67; }
.btn.soft { background: var(--teal-soft); color: var(--teal); border-color: #cfe7e3; }
.btn.on { background: #24465b; border-color: #24465b; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); min-width: 0; }
.stat-card { padding: 14px 16px; }
.stat-label { color: var(--muted); font-size: 12.5px; }
.stat-value { margin-top: 4px; font-size: 22px; font-weight: 760; letter-spacing: -.4px; line-height: 1.25; }
.stat-value small { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.stat-foot { margin-top: 3px; color: var(--muted); font-size: 12px; }
.two { grid-template-columns: minmax(0, 1.5fr) minmax(290px, .9fr); align-items: start; }
.halves { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.card-head { padding: 15px 18px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid #edf0f3; }
.card-body { padding: 16px 18px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: #6c7c89; margin-bottom: 3px; }
.steps { display: grid; gap: 12px; }
.step { display: flex; gap: 11px; align-items: flex-start; }
.step-num { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #edf2f5; color: #47606f; display: grid; place-items: center; font-size: 12px; font-weight: 750; }
.step.done .step-num { background: var(--teal); color: #fff; }
.step-title { font-weight: 700; font-size: 13.5px; }
.step-desc { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.field label { display: block; font-size: 12.5px; color: #47586a; font-weight: 650; margin-bottom: 4px; }
.field input, .field select { width: 100%; border: 1px solid #cfd8df; border-radius: 8px; padding: 8px 9px; background: #fff; }
.unit { color: #6c7c89; font-weight: 500; }
.hint { color: var(--muted); font-size: 12px; margin-top: 7px; line-height: 1.45; }
.invalid { border-color: var(--red) !important; background: var(--red-soft) !important; }
.section { margin-top: 16px; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--amber-soft); color: #6a4a14; border: 1px solid #f0dfbd; border-radius: 10px; padding: 10px 13px; font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.notice.info { background: var(--blue-soft); border-color: #d6e4f7; color: #2d4d73; }
.notice.ok { background: var(--teal-soft); border-color: #cfe7e3; color: #115f5b; }
.notice.bad { background: var(--red-soft); border-color: #f3caca; color: #8c2c2c; }
.notice:last-child { margin-bottom: 0; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 12px; color: #55677a; font-weight: 700; padding: 9px 10px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 6px 10px; border-bottom: 1px solid #edf0f3; font-size: 13px; color: #34475a; }
td input, td select { width: 100%; min-width: 70px; border: 1px solid #d9e0e6; border-radius: 6px; padding: 6px 7px; font-size: 13px; background: #fff; }
td select { min-width: 104px; }
.row-delete { border: 0; color: #6c7c89; background: transparent; font-size: 17px; line-height: 1; padding: 2px 6px; border-radius: 5px; }
.row-delete:hover { color: var(--red); background: var(--red-soft); }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 12.5px; }
.chart-box { padding: 12px 14px 8px; }
.chart-box canvas { display: block; width: 100%; height: 300px; touch-action: pan-y; }
.chart-tip { display: none; position: absolute; pointer-events: none; background: #18232f; color: #fff; padding: 7px 10px; border-radius: 7px; font-size: 12px; z-index: 5; max-width: 270px; }
.tip-head { font-weight: 700; margin-bottom: 2px; }
.tip-row { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.tip-row i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 15px; font-size: 12.5px; color: var(--muted); padding: 2px 4px 8px; }
.legend i { display: inline-block; width: 16px; height: 3px; margin-right: 5px; vertical-align: middle; border-radius: 2px; }
.legend i.pt { width: 9px; height: 9px; border-radius: 50%; }
.legend i.pt.hollow { background: #fff !important; border: 2px solid; border-radius: 2px; }
.seg { display: inline-flex; border: 1px solid #cfd8df; border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 6px 11px; font-size: 13px; font-weight: 600; color: #34475a; }
.seg button + button { border-left: 1px solid #cfd8df; }
.seg button.on { background: #24465b; color: #fff; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.result { border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; }
.result .k { color: var(--muted); font-size: 12.5px; }
.result .v { font-size: 22px; font-weight: 750; line-height: 1.25; margin-top: 2px; }
.result .v small { font-size: 13px; color: var(--muted); font-weight: 600; }
.result .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 700; background: #edf2f5; color: #47606f; white-space: nowrap; }
.pill.ok { background: var(--teal-soft); color: var(--teal); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.footer-note { color: var(--muted); font-size: 12px; text-align: center; padding: 22px 0 0; }
.file-input { display: none; }
ul.tight { margin: 0; padding-left: 18px; } ul.tight li { margin-bottom: 5px; font-size: 13px; color: #34475a; }

/* 3D */
.stage { position: relative; background: #dfe5ea; border-radius: 13px 13px 0 0; overflow: hidden; }
.stage.hero { height: min(58vh, 520px); min-height: 320px; }
.stage canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
.stage-readout { position: absolute; left: 12px; top: 12px; background: rgba(21,38,55,.82); color: #fff; padding: 8px 12px; border-radius: 9px; font-size: 13px; pointer-events: none; }
.stage-readout b { font-size: 19px; }
.stage-hint { position: absolute; right: 12px; bottom: 10px; color: #33475a; background: rgba(255,255,255,.75); padding: 3px 8px; border-radius: 6px; font-size: 12px; pointer-events: none; }
.stage-fallback { padding: 40px 20px; text-align: center; color: var(--muted); }
.lab-controls { padding: 14px 18px 16px; display: grid; gap: 12px; }
.ctrl-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.slider { flex: 1 1 260px; min-width: 200px; }
.slider label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 650; color: #47586a; }
.slider input { width: 100%; accent-color: var(--teal); margin: 4px 0 0; }
.swatches { display: flex; gap: 6px; align-items: center; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #aab7c1; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--teal); }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: #34475a; }
.check input { accent-color: var(--teal); width: 16px; height: 16px; }

/* Flashcards */
.deck-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dots button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #cfd8df; background: #fff; font-size: 12px; font-weight: 700; color: #47606f; padding: 0; }
.dots button.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.dots button.seen { background: var(--teal-soft); border-color: #cfe7e3; color: var(--teal); }
.flash { perspective: 1800px; }
.flash-inner { display: grid; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.4,.1,.2,1); }
.flash.flipped .flash-inner { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.face.back { transform: rotateY(180deg); padding: 22px 26px; }
.face-head { padding: 15px 20px 10px; }
.face-head h2 { font-size: 20px; letter-spacing: -.2px; line-height: 1.25; }
.scene { position: relative; background: #101d2a; height: clamp(270px, 44vh, 430px); width: 100%; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.face-foot { padding: 11px 20px 15px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.face-caption { flex: 1 1 340px; color: #34475a; }
.scene-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.scene-ctl input[type=range] { accent-color: var(--teal); width: 150px; }
.scene-ctl label { font-size: 12.5px; font-weight: 650; color: #47586a; display: flex; align-items: center; gap: 7px; }
.back h2 { font-size: 20px; margin-bottom: 10px; }
.back .logic { color: #2d3e4d; line-height: 1.6; }
.back .logic p { margin-bottom: 9px; }
.lesson-progress { margin-bottom: 12px; }
.lesson { padding: 0; overflow: hidden; max-width: 1080px; scroll-margin-top: 12px; }
.lesson-head { padding: 16px 22px 12px; }
.lesson-head h2 { font-size: 21px; letter-spacing: -.2px; line-height: 1.25; }
.scene-bar { padding: 10px 22px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fafcfd; }
.scene-bar .face-caption { font-size: 13.5px; }
.scene-ctl .seg button { padding: 6px 11px; }
.lesson-body { padding: 18px 22px 6px; max-width: 760px; color: #2d3e4d; font-size: 15.5px; line-height: 1.65; }
.lesson-body .logic p { margin-bottom: 11px; }
.lesson-body b { color: var(--ink); }
.lesson-link { margin: 4px 0 14px; padding: 9px 13px; background: var(--blue-soft); border-radius: 8px; font-size: 14px; color: #24476b; }
.lesson-link:empty { display: none; }
.lesson-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.lesson-nav .btn:disabled { opacity: .45; cursor: default; }
.formula { background: #f2f6f8; border-left: 4px solid var(--teal); padding: 9px 14px; border-radius: 0 8px 8px 0; font: 15px/1.6 'Cambria Math', Cambria, Georgia, serif; margin: 6px 0 12px; overflow-x: auto; }
.back-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }

/* Modal and toast */
.modal-back { position: fixed; inset: 0; background: rgba(15,25,35,.45); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-back.open { display: flex; }
.modal { background: #fff; border-radius: 13px; padding: 20px 22px; max-width: 440px; width: 100%; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.modal h2 { margin-bottom: 7px; }
.modal .actions { margin-top: 15px; justify-content: flex-end; }
.toast { position: fixed; right: 18px; bottom: 18px; background: #18232f; color: #fff; padding: 10px 14px; border-radius: 9px; font-size: 13px; max-width: 380px; z-index: 60; display: none; }
.toast.show { display: block; }

@media (max-width: 1080px) {
  .sidebar { width: 200px; flex-basis: 200px; }
  .content { padding: 20px; }
  .two, .halves { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .app { display: block; }
  .sidebar { width: 100%; height: auto; position: static; padding: 11px 12px; }
  .brand { padding: 0 3px 8px; }
  .nav-label, .side-note { display: none; }
  .nav-list { display: flex; overflow-x: auto; gap: 4px; }
  .nav-group { display: contents; }
  .nav-btn { width: auto; white-space: nowrap; padding: 8px 10px; flex: none; }
  .topbar { padding: 8px 16px; }
  .content { padding: 16px 14px 30px; }
  .result-grid, .stats { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 22px; }
  .card-head, .card-body { padding-left: 14px; padding-right: 14px; }
  .scene { height: 300px; }
  .face.back { padding: 16px; }
  .face-head h2, .back h2 { font-size: 18px; }
}

/* 3D lab fills the screen */
#page-lab.active { margin: -26px -30px -44px; }
.lab-shell { display: grid; grid-template-columns: minmax(0, 1fr) 318px; height: calc(100vh - 58px); min-height: 480px; background: #fff; }
.lab-shell:fullscreen { height: 100vh; }
.stage.lab { height: 100%; min-height: 0; border-radius: 0; }
.lab-side { overflow-y: auto; padding: 16px; border-left: 1px solid var(--line); display: grid; gap: 13px; align-content: start; }
.lab-side .slider { flex: none; min-width: 0; }
.lab-checks { display: grid; gap: 8px; }
.lab-results { display: grid; gap: 8px; }
.lab-results .result { padding: 9px 12px; }
.lab-results .v { font-size: 19px; }
.seg-wide { display: flex; } .seg-wide button { flex: 1; padding: 6px 2px; }
.stage-tools { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; z-index: 3; }
.tool { width: 38px; height: 38px; border: 1px solid #cfd8df; border-radius: 9px; background: rgba(255,255,255,.93); font-size: 18px; line-height: 1; color: #24323f; padding: 0; }
.tool:hover { background: #fff; border-color: #8ea0ad; }
.stage.embed { height: 340px; border-radius: 0 0 13px 13px; }
.stage.embed canvas, .stage.hero canvas { pointer-events: none; touch-action: auto; }
.form-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.modal-wide { max-width: 640px; }

/* Photos */
.ph-frame { position: relative; height: 340px; background: #101d2a; border-radius: 0 0 13px 13px; overflow: hidden; }
.ph-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease; opacity: 0; }
.ph-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #a9bac8; text-align: center; padding: 20px; }
.ph-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; display: block; background: #e8edf0; }
.ph-name { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Quiz */
.quiz { padding: 22px 26px; max-width: 840px; }
.quiz h2 { font-size: 20px; line-height: 1.3; margin: 3px 0 13px; }
.quiz-opt { display: block; width: 100%; text-align: left; border: 1px solid #cfd8df; background: #fff; border-radius: 9px; padding: 10px 13px; margin-bottom: 8px; font-size: 14px; }
.quiz-opt:hover:enabled { border-color: var(--teal); background: var(--teal-soft); }
.quiz-opt.right { border-color: var(--teal); background: var(--teal-soft); color: #0e5e5a; font-weight: 650; }
.quiz-opt.wrong { border-color: var(--red); background: var(--red-soft); color: #8c2c2c; }
.quiz-opt:disabled { cursor: default; }
.dots button.quiz-dot { width: auto; padding: 0 11px; border-radius: 15px; }

/* Game */
.g-track { position: relative; height: 92px; margin: 18px 12px 4px; }
.g-line { position: absolute; left: 0; right: 0; top: 48px; height: 6px; border-radius: 3px; background: #dfe6eb; }
.g-mark { position: absolute; top: 34px; width: 0; transition: left 1.1s cubic-bezier(.3,.9,.3,1), opacity .4s; }
.g-mark i { position: absolute; left: -8px; top: 6px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.g-mark span { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.g-mark.up span { top: -22px; } .g-mark.down span { top: 28px; }
.g-mark.down2 span { top: 44px; }
.g-big { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
@media (max-width: 1080px) {
  #page-lab.active { margin: -20px -20px -44px; }
  .lab-shell { grid-template-columns: minmax(0, 1fr); height: auto; }
  .stage.lab { height: 62vh; min-height: 340px; }
  .lab-side { border-left: 0; overflow: visible; }
  .form-3 { grid-template-columns: minmax(0, 1fr); }
  .result-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #page-lab.active { margin: -16px -14px -30px; }
  .form-2 { grid-template-columns: minmax(0, 1fr); }
  .ph-frame, .stage.embed { height: 250px; }
  .stage-hint { display: none; }
  .quiz { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .flash-inner { transition: none; } }
@media print {
  .sidebar, .topbar, .actions, .btn, .deck-nav { display: none !important; }
  .page { display: block; break-after: page; }
  #page-lab, #page-learn, #page-game, #page-photos { display: none; }
  body { background: #fff; }
}

/* Public site */
.brand-logo { width: 36px; height: 36px; border-radius: 10px; flex: none; display: block; }
.side-bottom { margin-top: auto; padding-top: 14px; display: grid; gap: 8px; }
.side-note { margin-top: 0; }
.side-email { display: block; color: #eff6fa; overflow-wrap: anywhere; margin-bottom: 3px; }
.side-host { background: transparent; border-color: #355064; color: #dce5ed; }
.side-host:hover { background: var(--nav2); border-color: #4c6a80; }
.main { display: flex; flex-direction: column; }
.content { width: 100%; flex: 1 0 auto; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding: 14px 30px; background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.foot-links { display: flex; gap: 16px; }
.link { border: 0; background: none; padding: 2px 0; color: var(--teal); font-weight: 650; font-size: inherit; }
.link:hover { text-decoration: underline; }
a { color: var(--teal); }
.prose p { margin-bottom: 9px; font-size: 14px; color: #2d3e4d; }
.prose p:last-child { margin-bottom: 0; }
.prose .muted { font-size: 12.5px; }
.result-hero { margin-bottom: 16px; border-color: #cfe7e3; }
.noscript { padding: 30px; max-width: 720px; margin: auto; }
/* Published values read as text, not as empty-looking disabled boxes */
body[data-mode="viewer"] .field input:disabled, body[data-mode="viewer"] .field select:disabled { border-color: transparent; background: transparent; padding-left: 0; color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1; font-weight: 650; appearance: none; -webkit-appearance: none; }
body[data-mode="viewer"] .field input[type=number]::-webkit-inner-spin-button { display: none; }
@media (max-width: 720px) { .site-footer { padding: 12px 14px; } .side-bottom { display: none; } }
@media (max-width: 720px) { .lesson-head, .scene-bar, .lesson-body, .lesson-nav { padding-left: 14px; padding-right: 14px; } .lesson-head h2 { font-size: 18px; } .lesson-body { font-size: 15px; } }
@media print { .site-footer { display: none !important; } }
