/* Academy's learner-facing frame. Vinci's drawings and lesson content stay in
   their own modules; this sheet only arranges the journey around them. */
.first-steps{
 --fs-paper:#fdfcf9;--fs-cream:#f8f6f1;--fs-card:#fff;--fs-warm:#fbf7ee;
 --fs-ink:#24201b;--fs-ink-2:#514a42;--fs-quiet:#6b6259;--fs-label:#6c563a;
 --fs-line:#e6e5e0;--fs-dash:#c9c6bd;--fs-gold:#f0ac43;--fs-gold-edge:#d99329;
 --fs-gold-ink:#322313;--fs-gold-soft:#fdf0d6;
 font-size:16px;
}
body:has(.first-steps){background:#fdfcf9}
.steps-nav{height:68px;padding:0 36px;background:#fdfcf9f2;border-bottom:1px solid #e6e5e0;backdrop-filter:blur(16px)}
.steps-brand{font-size:17px;font-weight:650;letter-spacing:-.035em}
.steps-brand span{font-weight:450}
.steps-course{font-size:14px;font-weight:500;text-decoration:none;border:1px solid var(--fs-line);border-radius:999px;padding:0 18px;background:#fff}
.steps-course:hover{border-color:#cfa96e;background:#fff8e9}
.steps-lesson-name{font-size:14px}
.steps-progress a,.steps-progress span[aria-disabled]{height:48px;font-size:13px}
.steps-progress i{width:32px;height:32px;font-size:12px}
/* The always-visible JavaScript gutter must be readable alongside its code. */
.steps-written .ed-code-line>i{color:var(--fs-quiet)}

/* The path is always available, but begins as a small disclosure. */
.steps-body{grid-template-columns:150px minmax(0,1fr);column-gap:52px;max-width:1360px;padding:36px 40px 110px}
.steps-body:has(.steps-outline[open]){grid-template-columns:228px minmax(0,1fr);column-gap:40px}
.steps-outline{top:88px;max-height:calc(100dvh - 104px);padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.steps-outline-toggle{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:0 8px;min-height:56px;padding:0 0 8px;border-bottom:1px solid var(--fs-line);list-style:none;cursor:pointer;color:#494d48}
.steps-outline-toggle::-webkit-details-marker{display:none}
.steps-outline-toggle>span:first-child{font-size:13px;font-weight:550}
.steps-outline-toggle small{font-size:11px;font-weight:400;color:#6c706a;white-space:nowrap}
.steps-outline-chevron{margin-left:auto;font-size:15px;line-height:1;transform:rotate(-90deg);transition:transform .2s ease}
.steps-outline[open] .steps-outline-chevron{transform:none}
.steps-outline-current{grid-column:1/-1;margin:1px 0 0;font-size:12px;line-height:1.4;color:#6c706a}
.steps-outline[open] .steps-outline-current{display:none}
.steps-outline nav{max-height:calc(100dvh - 170px);margin-top:12px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.steps-outline-lesson{margin-bottom:2px}
.steps-outline-lesson:has(ol)::before{left:12px;top:40px}
.steps-outline-title{min-height:44px;gap:8px;font-size:13px;line-height:1.3;font-weight:450}
.steps-outline-title b{width:25px;height:25px;border-width:1px;font:500 11px/1 var(--fs-mono)}
.steps-outline-title[aria-current],.steps-outline-lesson[data-state="current"] .steps-outline-title{color:#3b2d19}
.steps-outline-lesson[data-state="current"] .steps-outline-title b{box-shadow:none;background:#f7ecd3}
.steps-outline-topic{min-height:38px;padding-left:33px;font-size:12px}
.steps-outline-topic i{left:6px;width:15px;height:15px;margin-top:-7.5px;font-size:9px}
.steps-outline-topic[aria-current]{background:#f8f3e8}
.steps-outline-after{margin-left:33px}

/* One idea, then one clear thing to try. */
.steps-head{margin-bottom:20px}
.steps-eyebrow{font:550 11px/1.4 var(--fs-ui);letter-spacing:.085em}
.first-steps h1{font-size:clamp(33px,3vw,42px);line-height:1.13;letter-spacing:-.035em;font-weight:400;max-width:24ch}
.steps-learn{max-width:58ch;margin-top:14px;font-size:17px;line-height:1.55}
.steps-learn-mobile,.steps-more-idea{display:none}
.steps-stage[data-stage="try"]{padding:8px 0 8px 18px;border:0;border-left:2px solid #d7ac60;border-radius:0;background:transparent}
.steps-task-label{display:block;margin-bottom:5px;color:#705a35;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase}
.steps-task{font-size:17px;line-height:1.5;font-weight:450}
.steps-hint{margin-top:5px}
.steps-hint summary{min-height:44px;font-size:14px}
.steps-hint p{margin:3px 0 8px;font-size:15px}

/* Two views of one program: written code stays to the left and has its own
   cooler surface; the Vinci drawing rests on warm paper. */
.steps-workspace{margin-top:20px}
.steps-world{grid-template-columns:minmax(300px,5fr) minmax(0,7fr);gap:16px}
.steps-written,.steps-vinci{box-sizing:border-box;border:1px solid var(--fs-line);border-radius:18px;padding:18px;min-height:220px}
.steps-written{background:#f7f3ec;border-color:#e4e1db}
.steps-vinci{background:#fff}
.steps-caption{margin:0 0 14px;font:550 12px/1.3 var(--fs-ui);letter-spacing:.025em;text-transform:none;color:var(--fs-ink)}
.steps-written>.steps-caption::before,.steps-vinci>.steps-caption::before{display:none}
.steps-written>.steps-caption::before{content:'JS';background:#e4e0d9;color:#4a3f33}
.steps-vinci>.steps-caption::before{content:'V';background:#f8e9ca;color:#715017}
.steps-written #written-host{margin-top:0}
.first-steps .ed-code-panel{background:#fff;border-color:#dfdcd6;box-shadow:none}
.first-steps .ed-code-panel[data-compact] .ed-code-title{font-size:12px;color:#544d45}
.first-steps .ed-code-panel[data-mode="live"] .ed-editor,.first-steps .ed-code-view{font-size:16px;color:#263b38}
/* ACA-09: every line shows in full; long lines wrap instead of scrolling out of sight. */
.first-steps .ed-code-panel[data-mode="live"] .ed-editor{white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden}
.first-steps .ed-code-panel .ed-code-view{max-height:none;overflow:visible}
.first-steps .ed-code-panel[data-compact] .ed-code-view{height:auto;max-height:none;overflow:visible}
.first-steps .ed-code-panel[data-compact] .ed-code-line>i{flex:0 0 42px;min-width:42px;white-space:nowrap;overflow-wrap:normal}
.first-steps .ed-code-panel .ed-source-hint{font-size:13px;color:#615950}
.steps-vinci[data-live="false"] #vinci-host{background:#fff}
.steps-run{font-size:15px}
.steps-written .steps-run{padding-top:12px;border-top:1px solid #e3dfd9}
.steps-feedback,.steps-answer{font-size:15px;line-height:1.55;border-radius:14px}
.steps-next,.steps-continue,#steps-run-button{min-height:50px;font-size:15px;font-weight:550}
.steps-next:disabled{opacity:.75}
#steps-check{margin-top:36px;padding-top:30px}
#steps-check legend{font-size:20px}
#steps-check label{min-height:54px;margin-top:5px;padding:12px 14px;border:1px solid #e8ded0;background:#fffefa;font-size:16px}
#steps-check label:hover:not(:has(input:disabled)){border-color:#dbb069}
.steps-restart{min-height:44px;font-size:14px}
.steps-build-steps{margin:0;padding-left:24px;font-size:17px;line-height:1.5}
.steps-build-steps li{padding-left:4px;margin:0 0 7px}
.steps-build-task .steps-jump{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:52px;margin:11px 0 5px;padding:0 24px;border:1px solid var(--fs-gold-edge);border-radius:999px;background:var(--fs-gold);color:var(--fs-gold-ink);font:700 16px/1 var(--fs-ui);text-decoration:none;cursor:pointer}
.steps-build-task .steps-hint{margin:0}
.steps-build-task .steps-hint summary{display:flex;align-items:center;min-height:44px;color:#705322;font-size:14px;font-weight:650;cursor:pointer}
.steps-lancy-external{padding:26px;border:1px solid var(--fs-line);border-radius:20px;background:#fffefa}
.steps-lancy-external strong{font-size:19px;letter-spacing:-.025em}
.steps-lancy-external p{max-width:48ch;margin:8px 0 0;color:var(--fs-ink-2);font-size:16px;line-height:1.5}

/* Build notes belong to Academy progress and remain easy to copy into Lancy. */
.steps-app-notes{margin:18px 0;padding:18px;border:1px solid var(--fs-line);border-radius:18px;background:#fffdf8}
.steps-app-notes h2{margin:0 0 6px;color:var(--fs-ink);font:650 20px/1.25 var(--fs-ui)}
.steps-app-notes-head p{max-width:70ch;margin:0 0 16px;color:var(--fs-ink-2);font-size:15px;line-height:1.5}
.steps-app-notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.steps-app-note{display:flex;flex-direction:column;min-width:0;align-items:flex-start}
.steps-app-note label{margin-bottom:8px;color:var(--fs-ink);font:650 14px/1.3 var(--fs-ui)}
.steps-app-note textarea{box-sizing:border-box;display:block;width:100%;min-height:128px;padding:12px;border:1px solid var(--fs-line);border-radius:10px;resize:vertical;background:#fff;color:var(--fs-ink);font:400 16px/1.5 var(--fs-ui)}
.steps-app-note textarea:focus-visible,.steps-copy-note:focus-visible,.steps-lancy-modal-close:focus-visible{outline:3px solid var(--fs-gold-edge);outline-offset:2px}
.steps-copy-note,.steps-lancy-modal-close{min-height:44px;margin-top:10px;padding:0 16px;border:1px solid var(--fs-line);border-radius:999px;background:#fff;color:#59492d;font:600 14px/1.2 var(--fs-ui);cursor:pointer}
.steps-copy-note:hover,.steps-lancy-modal-close:hover{border-color:var(--fs-gold-edge);background:#fff9ed}
#steps-notes-status{min-height:20px;margin:12px 0 0;color:var(--fs-ink-2);font-size:13px;line-height:1.5}

/* The app lesson gives Lancy the full teaching column. The chat's composer
   stays inside a tall, scrollable frame; Expand offers the whole viewport. */
.first-steps[data-concept="lancy-app"] .steps-body{max-width:1600px}
.first-steps[data-concept="lancy-app"] .steps-lesson{max-width:none}
.steps-lancy-toolbar{display:flex;align-items:center;gap:10px;min-height:46px;margin-bottom:8px;flex-wrap:wrap}
.steps-lancy-toolbar .steps-caption{margin:0 auto 0 0}
.steps-lancy-expand,.steps-lancy-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:1px solid var(--fs-line);border-radius:999px;background:#fff;color:#59492d;font:550 13px/1.2 var(--fs-ui);text-decoration:none;cursor:pointer}
.steps-lancy-expand[hidden]{display:none}
.steps-lancy-expand:hover,.steps-lancy-link:hover{border-color:var(--fs-gold-edge);background:#fff9ed}
.steps-open-app-line small{display:block;margin-top:2px;color:var(--fs-quiet);font-size:13px;line-height:1.5}
.steps-lancy-frame{height:max(740px,calc(100dvh - 150px));min-height:0}
html[data-academy-lancy-expanded="true"]{overflow:hidden}
.steps-lancy[data-expanded="true"]{position:fixed;inset:10px;z-index:10000;display:flex;flex-direction:column;min-width:0;margin:0;padding:12px;border:1px solid var(--fs-line);border-radius:18px;background:var(--fs-paper);box-shadow:0 20px 80px #1b1b1b55}
.steps-lancy[data-expanded="true"] #lancy-host{display:flex;flex:1;min-height:0}
.steps-lancy[data-expanded="true"] .steps-lancy-frame{flex:1;height:100%;min-height:0}
.steps-lancy[data-expanded="true"] .steps-lancy-expand{border-color:var(--fs-gold-edge);background:#fff0d5;color:#392915;font-weight:700}
.steps-lancy-modal-footer[hidden]{display:none}
.steps-lancy-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-height:48px;color:var(--fs-ink-2);font-size:13px}
.steps-lancy-modal-close{margin:0;background:#fff0d5}
@media(max-width:767px){
 .steps-app-notes{padding:14px}
 .steps-app-notes-grid{grid-template-columns:1fr;gap:18px}
 .steps-lancy-toolbar{gap:8px}
 .steps-lancy-toolbar .steps-caption{flex-basis:100%}
 .steps-lancy-expand,.steps-lancy-link{font-size:12px;padding:0 12px}
 .steps-lancy-frame{height:max(680px,calc(100dvh - 100px));min-height:0}
 .steps-lancy[data-expanded="true"]{inset:0;padding:8px;border:0;border-radius:0}
 .steps-lancy[data-expanded="true"] .steps-lancy-toolbar .steps-caption{flex-basis:auto}
 .steps-lancy-modal-footer span{display:none}
}

/* Warm paper and real lesson drawings carry the landing's sense of discovery. */
body:has(.course-page){background:#fbf8f1}
.course-page{--fs-line:#e7dfd0;--fs-quiet:#6e6558;background:linear-gradient(180deg,#fbf8f1,#fffdf8 1100px,#fbf8f1)}
.course-page .steps-nav{background:#fbf8f1ed;border-color:#eae2d5}
.course-page .steps-outline-toggle,.course-page .steps-outline-current{color:#675e51}
.course-body .course-map{width:100%;min-width:0;max-width:800px;margin:0;padding:0 0 30px}
.course-intro{display:block;grid-template-columns:none;gap:0;margin:0;padding:4px 0 12px;border:0;border-radius:0;background:transparent;box-shadow:none}
.course-intro .steps-eyebrow{margin-bottom:15px;color:#65675f;font-weight:500}
.course-map h1{max-width:24ch!important;font-size:clamp(32px,3.1vw,36px)!important;line-height:1.22!important;letter-spacing:-.02em!important;font-weight:300;margin-bottom:15px!important;color:#49473f}
.course-lead{max-width:57ch;margin:0 0 16px;font-size:15px;line-height:1.65;color:#635c51}
.course-start{display:inline-flex;align-items:center;gap:18px;min-height:44px;padding:0 20px;border:1px solid #dfbf83;border-radius:999px;background:linear-gradient(180deg,#fbebc7,#f5dfae);box-shadow:inset 0 1px 0 #fff8e6,0 5px 15px #b78a2810;color:#654718!important;font-size:14px;font-weight:500;text-decoration:none!important;transition:background .2s,box-shadow .2s,transform .2s}
.course-start:hover{color:#4d3618!important;background:linear-gradient(180deg,#fcebc0,#f1d296);box-shadow:inset 0 1px 0 #fff8e6,0 7px 18px #b78a2820;transform:translateY(-1px)}
.course-path-head{margin:14px 0 10px}
.course-path-head h2{margin:0;font-size:19px;line-height:1.2;letter-spacing:-.025em;font-weight:400;color:#514c43}
.course-lessons{margin:0 -12px;padding:0 0 16px}
.course-lessons::before{display:none}
.course-lessons>li{display:grid;grid-template-columns:30px minmax(0,1fr) 168px;gap:4px 14px;align-items:start;min-height:0;margin:0;padding:16px 12px;border-top:1px solid #e1d8c8}
.course-lessons>li[data-illustrated]{min-height:0;align-items:start}
.course-node{position:static;z-index:auto;grid-column:1;grid-row:1;width:30px;height:30px;box-sizing:border-box;justify-self:start;align-self:start;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#79705e;font:500 12px/1 var(--fs-mono);box-shadow:none}
.course-lesson,.course-lessons>li:nth-child(even) .course-lesson{grid-column:2/4;grid-row:1;display:block;min-height:0;margin:0;padding:3px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none;transition:color .2s}
.course-lessons>li[data-illustrated] .course-lesson{grid-column:2}
a.course-lesson:hover{transform:none;border:0;background:transparent;box-shadow:none;color:#76541d}
a.course-lesson:hover .course-title{text-decoration:underline;text-decoration-color:#d9bf8d;text-underline-offset:5px}
.course-text{gap:3px;padding:0}
.course-title{font-size:18px;font-weight:400;line-height:1.3;letter-spacing:-.01em;color:#49463e}
.course-blurb{max-width:51ch;font-size:14px;line-height:1.55;color:#625b50}
.course-meta{margin-top:4px;font-size:12px;line-height:1.45;color:#746957}
.course-status{grid-column:auto;justify-self:auto;margin-top:2px;padding:0;background:transparent;color:#6b7069;font:500 12px/1.3 var(--fs-ui);letter-spacing:0;text-transform:none}
.course-lessons>li[data-next]{margin:0 0 8px;padding:14px 12px;border-top-color:transparent;border-radius:12px;background:radial-gradient(ellipse at 85% 50%,#ffedbd65 0,transparent 65%),#fffdf6b3;box-shadow:inset 0 0 0 1px #e5d4b585}
.course-lessons>li[data-next] .course-node{background:#fcf2dc;border:1px solid #e5c17d;color:#705121;box-shadow:0 3px 8px #b18a2810}
.course-lessons>li[data-next] .course-status{background:transparent;color:#705121}
.course-lessons>li[data-next][data-state="open"] .course-status{display:none}
.course-lessons>li[data-state="done"] .course-node{background:#f0ede8;border:0;color:#985f0b}
.course-lessons>li[data-state="locked"] .course-title{color:#49463e}
.course-lessons>li[data-state="locked"] .course-status{display:none}
.course-lessons>li[data-last] .course-lesson{margin:0;padding:0;border:0;background:transparent}
.course-preview,.course-lessons>li:nth-child(even) .course-preview{grid-column:2/4;grid-row:2;margin:0;padding:0;font-size:13px}
.course-lessons>li[data-illustrated] .course-preview{grid-column:2}
.course-preview summary{min-height:32px;font-size:13px;font-weight:500;text-decoration:none;color:#735523}
.course-preview>div{margin-top:8px;padding:12px 15px 7px;border-left:2px solid #e7d2ae;background:#fffaf1;border-radius:0 12px 12px 0}
.course-preview-unlock{color:#70572e;font-weight:600}
.course-study{grid-column:3;grid-row:1;align-self:center;min-width:0;margin:0;display:flex;flex-direction:column;align-items:center}
.course-lessons>li:has(.course-preview) .course-study{grid-row:1/3}
.course-study-stage{display:grid;place-items:center;width:100%;min-height:64px;background:radial-gradient(ellipse at 50% 52%,#fae7ba5c,transparent 69%)}
.course-study-drawing>div{display:flex;flex-direction:column;align-items:center;transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.course-study:hover .course-study-drawing>div{transform:translateY(-3px)}
.course-study-code{box-sizing:border-box;width:100%;margin:0;padding:13px 10px;border:0;border-radius:10px;background:#fffcf4c9;color:#655038;font:12px/1.65 var(--fs-mono);white-space:pre-wrap;overflow-wrap:anywhere;animation:course-study-in .22s ease-out}
.course-study-drawing{animation:course-study-in .3s ease-out}
.course-study-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:100px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:#775b2e;font:400 12px/1.3 var(--fs-ui);cursor:pointer;text-decoration:underline;text-decoration-color:#ddcaaa;text-underline-offset:4px}
.course-study-toggle:hover{color:#49351d;background:#f6ead166}
@keyframes course-study-in{from{opacity:.4;translate:0 3px}to{opacity:1;translate:0 0}}
.course-fresh{margin-top:30px;padding-top:20px;border-top:1px solid var(--fs-line)}

@media(min-width:1024px) and (max-width:1199px){
 .steps-body{grid-template-columns:136px minmax(0,1fr);column-gap:32px;padding:32px 28px 100px}
 .steps-body:has(.steps-outline[open]){grid-template-columns:205px minmax(0,1fr);column-gap:26px}
}

@media(max-width:1023px){
 .steps-body{display:block;padding:26px 28px 80px}
 .steps-outline{display:none}
 .steps-lesson{max-width:1000px;margin:auto}
 .steps-nav:has(.steps-progress){height:auto;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"brand name course" "progress progress progress";row-gap:4px;padding-top:8px;padding-bottom:6px}
 .steps-nav:has(.steps-progress) .steps-brand{grid-area:brand}
 .steps-nav:has(.steps-progress) .steps-lesson-name{grid-area:name;justify-self:end}
 .steps-nav:has(.steps-progress) .steps-course{grid-area:course}
 .steps-nav:has(.steps-progress) .steps-progress{grid-area:progress;min-width:0;overflow-x:auto;scrollbar-width:none}
}
@media(max-width:767px){
 .steps-nav{height:auto;padding:10px 16px 7px;gap:0 10px}
 .steps-brand{font-size:15px}
 .steps-lesson-name{font-size:12px}
 .steps-course{height:44px;min-width:54px;padding:0 10px;font-size:12px}
 .steps-progress{margin-top:4px}
 .steps-progress a,.steps-progress span[aria-disabled]{height:46px}
 .steps-body{padding:24px 16px 72px}
 .first-steps h1{font-size:32px}
 .steps-eyebrow{font-size:11px}
 .steps-head{margin-bottom:15px}
 .steps-head .steps-eyebrow{margin-bottom:7px}
 .steps-learn-full{display:none}
 .steps-learn-mobile{display:block;max-width:38ch;margin:11px 0 0;color:var(--fs-ink-2);font-size:16px;line-height:1.47}
 .steps-more-idea{display:block;margin:10px 0 0;padding:0 2px;border:0;border-bottom:1px solid var(--fs-line);border-radius:0;background:transparent;color:var(--fs-ink-2)}
 .steps-more-idea summary{display:flex;align-items:center;min-height:44px;color:#6f5127;font-size:14px;font-weight:500;cursor:pointer}
 .steps-more-idea summary::after{content:'⌄';margin-left:auto;font-size:18px}
 .steps-more-idea[open] summary::after{content:'⌃'}
 .steps-more-idea p{margin:0 0 16px;font-size:15px;line-height:1.55}
 .steps-stage[data-stage="try"]{padding:8px 0 8px 14px;border-radius:0}
 .steps-task{font-size:17px}
 .steps-hint summary{min-height:44px}
 .first-steps[data-concept="lancy-app"] .steps-learn-full{display:block;margin-top:11px;font-size:16px;line-height:1.47}
 .first-steps[data-concept="lancy-app"] .steps-learn-mobile,.first-steps[data-concept="lancy-app"] .steps-more-idea{display:none}
 .steps-build-task .steps-jump{width:100%;box-sizing:border-box;margin:14px 0 6px}
 .steps-world{grid-template-columns:minmax(0,1fr);gap:10px}
 .steps-written{display:contents}
 .steps-written>.steps-caption{order:1;margin:0 0 0 4px}
 .steps-written>#written-host{order:2;width:100%;min-width:0;margin:0;padding:12px;border:1px solid #e4e1db;border-radius:18px;background:#f7f3ec}
 .steps-vinci{order:3;width:calc(100% + 24px);max-width:none;margin:8px -12px 0;padding:9px;min-height:0;border-radius:16px}
 /* The full-size Change editor sits on the right half of its ball. Place its
    host inside the phone card while the editor is open. */
 .first-steps[data-concept="mutation"] .steps-vinci{padding-left:0;padding-right:24px}
 .first-steps[data-concept="mutation"] .steps-vinci[data-editing="true"] #vinci-host{margin-left:-7px}
 .steps-vinci>.steps-caption{margin-bottom:8px}
 .steps-written>.steps-run{order:4;margin-top:12px;padding:0;border:0}
 .steps-written>.steps-result{order:5}
 .first-steps[data-concept="object"] .steps-vinci{width:calc(100% + 24px);margin-left:-12px;margin-right:-12px}
 .first-steps[data-concept="object"] .steps-vinci{zoom:1}
 .first-steps[data-concept="object"] .steps-vinci .steps-caption{margin-left:0}
 .course-body{padding:22px 16px 70px}
 .course-intro{padding:4px 0 10px;border-radius:0}
 .course-map h1{font-size:29px!important;line-height:1.22!important;margin-bottom:13px!important}
 .course-lead{font-size:15px;line-height:1.55;margin-bottom:10px}
 .course-path-head{margin:14px 0 8px}
 .course-path-head h2{font-size:19px}
 .course-lessons{margin:0 -8px}
 .course-lessons>li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:5px 10px;min-height:0;margin:0;padding:13px 8px}
 .course-lessons>li[data-illustrated]{min-height:0}
 .course-lessons>li[data-next]{margin:0 0 8px;padding:13px 8px;border-radius:12px}
 .course-node{position:static;width:26px;height:26px}
 .course-lesson,.course-lessons>li:nth-child(even) .course-lesson{grid-column:2;min-height:0;padding:0;border-radius:0}
 .course-title{font-size:18px}
 .course-blurb{font-size:14px;line-height:1.5}
 .course-meta{font-size:12px}
 .course-status{grid-column:auto;padding:0;font-size:12px}
 .course-preview,.course-lessons>li:nth-child(even) .course-preview{grid-column:2;margin:0}
 .course-lessons>li[data-illustrated] .course-preview{grid-row:3}
 .course-preview summary{min-height:44px}
 .course-study,.course-lessons>li:has(.course-preview) .course-study{grid-column:2;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) 104px;align-items:center;width:100%;margin-top:0}
 .course-study-stage{min-height:64px}
 .course-study-toggle{min-width:0;padding:0 4px}
 .course-study-code{padding:10px 0;font-size:11px}
}
@media(max-width:380px){
 .course-body{padding-left:12px;padding-right:12px}
 .course-intro{padding-left:0;padding-right:0}
}
@media(prefers-reduced-motion:reduce){.course-lesson,.steps-outline-chevron,.course-start,.course-study-drawing>div{transition:none}.course-study-drawing,.course-study-code{animation:none}.course-study:hover .course-study-drawing>div,.course-start:hover{transform:none}}

/* ACA-11: a drawing that is not of the code on screen says so, and looks it. */
.steps-vinci[data-stale="true"] #vinci-host{opacity:.5;transition:opacity .2s}
.steps-vinci[data-stale="true"]>.steps-caption{color:#8a5a12}

/* ACA-10: the existing launcher stays in the lesson's tab order, while its
   visible bubble is easy to find from anywhere in a code step. The teacher
   panel is a separate, higher layer and keeps its own close control. */
.steps-ask{position:fixed;z-index:50;right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));display:inline-flex;align-items:center;justify-content:center;gap:9px;box-sizing:border-box;min-height:54px;max-width:calc(100vw - 32px);margin:0;padding:0 18px;border:1px solid #d99329;border-radius:999px;background:#f0ac43;color:#322313;box-shadow:0 8px 26px #422d1029;font-family:inherit;font-size:15px;font-weight:650;line-height:1.25;white-space:nowrap;cursor:pointer}
.steps-ask::before{content:'';flex:none;width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23322313' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 5h12a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3H9l-6 3V8a3 3 0 0 1 3-3Z'/%3E%3Cpath d='M8 10h8M8 13h5'/%3E%3C/svg%3E") center/20px 20px no-repeat}
.steps-ask:hover{border-color:#bf7a1f;background:#f6ba5b}
.steps-ask[aria-expanded="true"]{border-color:#d99329;background:#fdf0d6}
.steps-ask[hidden]{display:none}
.first-steps:has(.steps-ask:not([hidden])) .steps-body{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
.academy-teacher{position:fixed;z-index:60;top:84px;right:16px;bottom:16px;width:min(400px,calc(100vw - 32px));display:flex;flex-direction:column;background:#fff;border:1px solid #e6e5e0;border-radius:16px;box-shadow:0 18px 48px #24201b29;overflow:hidden}
.academy-teacher[hidden]{display:none}
.academy-teacher-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 6px 4px 16px;border-bottom:1px solid #e6e5e0;background:#fbf7ee}
.academy-teacher-name{margin:0;color:#6c563a;font-size:12px;font-weight:650;letter-spacing:.08em;text-transform:uppercase}
.academy-teacher-close{min-height:44px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:#24201b;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.academy-teacher-close:hover{background:#f3ead8}
.academy-teacher-note{margin:0;padding:8px 16px;background:#fff4e0;color:#5b3d0f;font-size:14px;line-height:1.4}
.academy-teacher-again{min-height:44px;margin-left:6px;padding:0 14px;border:1px solid #d99329;border-radius:999px;background:#f0ac43;color:#322313;font-family:inherit;font-weight:650;cursor:pointer}
.academy-teacher-body{display:flex;flex:1;min-height:0}
.academy-teacher-frame{flex:1;width:100%;height:100%;border:0;background:#fff}
@media(max-width:767px){
 /* A fixed button plus end padding leaves intermediate controls underneath
    it. The original lesson now scrolls above a reserved phone footer. */
 html:has(.first-steps[data-academy-teacher-launcher="true"]){height:100%;overflow:hidden}
 body:has(.first-steps[data-academy-teacher-launcher="true"]){height:100dvh;min-height:0;overflow:hidden!important}
 .first-steps[data-academy-teacher-launcher="true"]{--fs-teacher-footer:calc(78px + env(safe-area-inset-bottom,0px));box-sizing:border-box;min-height:0;height:calc(100dvh - var(--fs-teacher-footer));max-height:calc(100dvh - var(--fs-teacher-footer));overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-top:84px;scroll-padding-bottom:16px}
 body:has(.first-steps[data-academy-teacher-launcher="true"])::after{content:"";position:fixed;z-index:49;left:0;right:0;bottom:0;height:calc(78px + env(safe-area-inset-bottom,0px));box-sizing:border-box;border-top:1px solid #e6e5e0;background:#fdfcf9;pointer-events:none}
 .first-steps[data-academy-teacher-launcher="true"] .steps-ask{bottom:calc(12px + env(safe-area-inset-bottom,0px));min-height:54px}
 .academy-teacher{top:auto;left:0;right:0;bottom:0;width:auto;height:min(78vh,640px);border-bottom:0;border-radius:16px 16px 0 0}
}
.academy-teacher-seen{margin:0;padding:8px 16px;border-bottom:1px solid #e6e5e0;background:#fbf7ee;color:#514a42;font-size:13px;line-height:1.4}
.academy-teacher-seen[hidden],.academy-teacher-note[hidden]{display:none}
/* ACA-11: Vinci's own reason, under the caption of a drawing that is behind the code. */
.steps-stale-reason{margin:2px 0 6px;color:#6b4a14;font-size:13px;line-height:1.4}
.steps-stale-reason[hidden]{display:none}
.steps-unrun{margin:2px 0 6px;color:#6b4a14;font-size:13px;line-height:1.4}
.steps-unrun[hidden]{display:none}
