/* ESP32 Workshop interface. Simulation geometry stays in the original bundle. */
:root {
  --bg: #f6f3ef; --bg-deep: #ece7e1; --card: #fff; --card-soft: #fff; --panel: #fff;
  --line: #e6e1da; --line-strong: #cfc8be; --line-soft: #efebe6;
  --navy: #1b1b1d; --navy-2: #2a2a2d; --ink: #4f4b47; --muted: #67625d; --faint: #87827b;
  --accent: #e06f00; --accent-deep: #b85800; --accent-soft: #fff1e2; --green: #e06f00; --track: #ece7e1;
  --shadow: 0 8px 28px -18px #1b1b1d30;
  --sans: "Barlow", "Nirmala UI", "Segoe UI", Tahoma, sans-serif;
  --cond: "Barlow", "Nirmala UI", "Segoe UI", Tahoma, sans-serif;
  --workshop-sidebar-width: 216px;
  --workshop-content-left: 250px;
}
body { color: var(--ink); }
button, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, [role="button"]:focus-visible { outline: 3px solid #444449; outline-offset: 4px; }
.artboard { background: var(--bg); }
.scenery, .side-desert, .status-cactus, .app-foot { display: none; }

/* ─── Twin dock cards (brand + status) ───────────────────────── */
/* Shared pill shell */
.brand, .status {
  box-sizing: border-box;
  height: 64px;
  padding: 10px 14px;
  gap: 12px;
  background: #ffffffd8;
  border: 1px solid #e9e7e5;
  border-radius: 18px;
  box-shadow: 0 10px 28px -14px #1b1b1d1f, 0 2px 4px #1b1b1d08;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: inline-flex;
  align-items: center;
}
.brand { top: 20px; left: 20px; }

/* Shared icon badge — 40 px squircle with the teal gradient */
.dock-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.dock-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Shared text block — big value on top, small meta underneath */
.dock-text { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.dock-value { margin: 0; color: #262628; font: 700 17px/1.1 var(--sans); letter-spacing: -.015em; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.dock-value span.highlight, .dock-value > span:first-child { color: inherit; }
.dock-meta { margin: 0; color: #8f8880; font: 600 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.dock-meta i { color: #ff9a2e; margin: 0 .35em; font-style: normal; font-weight: 700; }

/* Brand-specific accents */
.brand .dock-value { font-size: 18px; font-weight: 700; }
.brand .dock-value span { color: #e06f00; font-weight: 700; }
.brand-bars rect { animation: brand-bar-glow 2.4s ease-in-out infinite; }
.brand-bars rect:nth-child(2) { animation-delay: .25s; }
.brand-bars rect:nth-child(3) { animation-delay: .5s; }
.brand-orb { animation: brand-orb-pulse 1.8s ease-in-out infinite; transform-origin: 30px 13px; transform-box: fill-box; }
.brand-orb-halo { animation: brand-orb-halo 1.8s ease-in-out infinite; transform-origin: 30px 13px; transform-box: fill-box; }
@keyframes brand-bar-glow { 0%,100% { opacity: 1; } 50% { opacity: .78; } }
@keyframes brand-orb-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes brand-orb-halo { 0%,100% { opacity: .25; transform: scale(1); } 50% { opacity: .55; transform: scale(1.4); } }
.sidebar { left: 16px; top: 112px; bottom: auto; width: var(--workshop-sidebar-width); padding: 0 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 22px #1b1b1d05; overflow: visible; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 19px 8px 17px; color: #67625d; font-size: 13px; line-height: 20px; font-weight: 600; }
.sidebar-chip { padding: 3px 6px; border: 1px solid #e5e2de; border-radius: 5px; background: #f8f7f6; color: #6a645e; font: 500 11px var(--mono); }
.side-nav { display: flex; flex-direction: column; gap: 5px; padding: 0; }
.side-nav li, .side-nav li:nth-child(n) { position: relative; inset: auto; width: 100%; }
.side-nav li:nth-child(4) { width: 100%; margin-top: 9px; padding-top: 14px; border-top: 1px solid #f2f1ef; }
.side-nav a { flex-direction: row; justify-content: flex-start; min-height: 49px; height: auto; padding: 12px; border: 0; border-radius: 9px; gap: 12px; }
.side-nav a svg { flex: 0 0 21px; width: 21px; height: 21px; stroke: #706b65; stroke-width: 1.8px; }
.side-nav svg .fill, .side-nav svg.fill { fill: #706b65; }
.side-label { display: block; flex: 1; width: auto; min-width: 0; white-space: normal; overflow-wrap: break-word; text-align: start; font-size: 15px; line-height: 23px; font-weight: 500; color: #57575c; }
.side-nav a:hover { background: #f7f5f3; box-shadow: none; }
.side-nav li.is-active a { border: 0; background: #343438; box-shadow: none; }
.side-nav li.is-active a::before { display: none; }
.side-nav li.is-active .side-label { color: #fff; font-weight: 500; }
.side-nav li.is-active svg { stroke: #ffd2a6; }
.side-nav li.is-active svg.fill, .side-nav li.is-active svg .fill { fill: #ffd2a6; }
:is(.side-nav li.is-on a, .side-nav:not(:has(li.is-on)) li.is-active a) { border: 0; background: #343438; box-shadow: none; }
:is(.side-nav li.is-on .side-label, .side-nav:not(:has(li.is-on)) li.is-active .side-label) { color: #fff; font-weight: 500; }
:is(.side-nav li.is-on svg, .side-nav:not(:has(li.is-on)) li.is-active svg) { stroke: #ffd2a6; }
:is(.side-nav li.is-on svg.fill, .side-nav li.is-on svg .fill, .side-nav:not(:has(li.is-on)) li.is-active svg.fill, .side-nav:not(:has(li.is-on)) li.is-active svg .fill) { fill: #ffd2a6; }
.side-nav:has(li.is-on) li.is-active:not(.is-on) a { background: transparent; }
.side-nav:has(li.is-on) li.is-active:not(.is-on) .side-label { color: #57575c; }
.side-nav:has(li.is-on) li.is-active:not(.is-on) svg { stroke: #706b65; }
.side-nav:has(li.is-on) li.is-active:not(.is-on) svg.fill, .side-nav:has(li.is-on) li.is-active:not(.is-on) svg .fill { fill: #706b65; }

/* Status pill — same dock anatomy as the brand, with a divider + clock half */
.status { top: 20px; right: 20px; padding: 10px 14px; }
.progress-card { display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; min-width: 0; width: auto; }
.progress-bars rect { animation: progress-bar-rise 2.4s ease-in-out infinite; transform-origin: center bottom; transform-box: fill-box; }
.progress-bars rect:nth-child(2) { animation-delay: .2s; }
.progress-bars rect:nth-child(3) { animation-delay: .4s; }
.progress-spark { animation: progress-spark-float 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes progress-bar-rise { 0%,100% { opacity: 1; transform: scaleY(1); } 50% { opacity: .78; transform: scaleY(.88); } }
@keyframes progress-spark-float { 0%,100% { transform: translateY(0) scale(1); opacity: 1; } 50% { transform: translateY(-2px) scale(1.25); opacity: .7; } }
.progress-card .dock-value { font-family: var(--mono); font-size: 15px; letter-spacing: .02em; }
.progress-card .dock-value #progress-count { color: #e06f00; font-weight: 700; }
.progress-track { position: relative; display: inline-block; width: 90px; height: 5px; border-radius: 99px; background: #edecea; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #e06f00 0%, #ff9a2e 100%); box-shadow: 0 0 10px #e06f00aa; transform-origin: 0 50%; }
/* Vertical divider between progress and clock */
.dock-divider { width: 1px; height: 32px; margin: 0 4px; background: linear-gradient(180deg, transparent, #ddd6cc 20%, #ddd6cc 80%, transparent); flex: none; }
.clock, .status-cactus, .dock-divider { display: none !important; }

/* 3D workspace */
.stage { inset: 112px 522px 174px var(--workshop-content-left); background: #fbfaf8; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.workshop-stage-heading { position: absolute; top: 20px; left: 24px; z-index: 4; pointer-events: none; display: flex; flex-direction: column; gap: 4px; }
.workshop-stage-heading strong { font-size: 16px; font-weight: 600; color: var(--navy); }
.workshop-stage-heading span { color: var(--muted); font-size: 14px; }
.workshop-stage-badge { position: absolute; right: 22px; top: 20px; z-index: 4; border: 1px solid var(--line); background: #ffffffde; border-radius: 8px; padding: 6px 10px; color: var(--muted); font-size: 13px; font-weight: 600; pointer-events: none; }
.viewbar { left: 50%; bottom: 16px; padding: 6px; gap: 3px; border: 1px solid var(--line); border-radius: 16px; background: #fffffff2; box-shadow: 0 8px 24px #30303410; }
.viewbar button { width: 38px; height: 38px; border-radius: 10px; }
.viewbar button:hover { background: var(--accent-soft); }
.view-hint { background: #343437; color: #f5f2ef; padding: 6px 12px; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.callout { border: 1px solid var(--line); border-radius: 16px; background: #ffffffed; box-shadow: 0 5px 22px #3232350a; }
.callout:hover { border-color: #ada8a3; }
.tag { border: 1px solid var(--line); color: var(--navy); background: #ffffffed; text-transform: none; letter-spacing: .01em; }
.schematic-card { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 18px #3232350a; }
.sch-head h2 { color: var(--muted); text-transform: none; letter-spacing: 0; }
.inspector { border-color: var(--line); border-radius: 18px; box-shadow: 0 12px 30px #3030341a; }

/* Lesson guide */
.info-card { display: flex; flex-direction: column; height: 406px; border: 1px solid #e6e1da; border-radius: 16px; background: #fff; box-shadow: 0 6px 24px #1b1b1d06; overflow: hidden; contain: paint; }
.lesson-guide-header { flex: none; padding: 20px 22px 13px; }
.lesson-guide-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: #67625d; font-size: 13px; line-height: 20px; font-weight: 500; }
#lesson-guide-number { color: #777069; font: 400 12px var(--mono); white-space: nowrap; }
.lesson-guide-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
#lesson-guide-title { min-width: 0; color: #2f2f31; font-size: 23px; line-height: 30px; letter-spacing: -.025em; font-weight: 600; overflow-wrap: break-word; }
.info-card .expand { position: static; display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid #e9e4de; border-radius: 8px; background: #fff; }
.info-card .expand svg { width: 16px; height: 16px; }
.info-card .expand:hover { background: #f8f6f4; border-color: #c8c5c2; }
.tabs { flex: none; height: auto; min-height: 45px; padding: 0 20px; align-items: stretch; gap: 18px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #efece9; }
.tabs button { flex: 0 0 auto; height: auto; min-height: 44px; padding: 9px 0 12px; color: #67625d; font-size: 14px; line-height: 21px; font-weight: 500; text-transform: none; letter-spacing: 0; border-radius: 0; white-space: nowrap; }
.tabs button.is-active { color: #b85800; background: transparent; font-weight: 600; }
.tabs button::after { display: block; height: 2px; border-radius: 0; bottom: 0; background: #505055; }
.tabs button.is-active::after { left: 0; right: 0; opacity: 1; }
.info-body { position: relative; flex: 1; min-height: 0; margin: 0; inset: auto; border: 0; background: none; padding: 18px 16px 18px 22px; border-radius: 0; overflow: hidden; }
.info-content { height: 100%; padding: 0 6px 0 0; scrollbar-color: #dcd8d3 transparent; scrollbar-width: thin; scrollbar-gutter: stable; overflow-y: auto; overscroll-behavior: contain; }
.info-card[data-guide-tab="overview"] .info-content > h2 { display: none; }
.info-body h2 { font-size: 21px; line-height: 29px; font-weight: 600; letter-spacing: -.02em; text-transform: none; }
.lede { max-width: none; font-size: 16px; line-height: 25px; color: #6e6861; margin-top: 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.features li { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-width: 0; min-height: 0; padding: 12px 10px; border: 1px solid #ece7e1; border-radius: 10px; background: #faf8f5; gap: 10px; color: #525258; font-size: 14px; line-height: 21px; }
.feature-icon { flex: none; width: 23px; height: 23px; border: 0; background: transparent; border-radius: 0; }
.feature-icon svg { width: 23px; height: 23px; stroke: #58585d; stroke-width: 1.7px; }
.pin-table { width: 100%; table-layout: fixed; color: var(--ink); font-size: 15px; line-height: 24px; }
.pin-table th, .pin-table td { overflow-wrap: anywhere; text-align: start; }
.pin-table th:first-child, .pin-table td:first-child { width: 27%; white-space: normal; }
.pin-table th:nth-child(2), .pin-table td:nth-child(2) { width: 29%; }
.pin-table code { white-space: normal; overflow-wrap: anywhere; }
.pinout-list { display: grid; gap: 12px; margin-top: 18px; padding: 0; list-style: none; }
.pinout-card { min-width: 0; padding: 14px; border: 1px solid #eae7e3; border-inline-start: 3px solid var(--wire-color, #a6a09b); border-radius: 11px; background: #fbfaf8; }
.pinout-card-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); align-items: start; gap: 14px; }
.pinout-badge { display: inline-flex; align-items: center; gap: 8px; justify-self: start; max-width: 100%; min-height: 35px; padding: 7px 9px; border: 1px solid #e8e4df; border-radius: 7px; background: #fff; }
.pinout-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--wire-color, #a6a09b); }
.pinout-badge code { min-width: 0; padding: 0; border: 0; background: transparent; color: #414146; font: 500 13px/21px var(--mono); white-space: normal; overflow-wrap: break-word; direction: ltr; unicode-bidi: isolate; }
.pinout-destination { min-width: 0; padding-top: 1px; }
.pinout-caption { display: block; margin-bottom: 3px; color: #67625d; font-size: 12px; line-height: 18px; }
.pinout-destination strong { display: block; color: #2a2a2d; font-size: 15px; line-height: 23px; font-weight: 600; overflow-wrap: anywhere; }
.pinout-note { margin-top: 12px; padding-top: 10px; border-top: 1px solid #ece7e1; color: #5f5b57; font-size: 15px; line-height: 24px; overflow-wrap: anywhere; }
.lesson-controls { min-width: 0; margin: 20px 0 0; padding: 14px; border: 1px solid #e5e2df; border-radius: 10px; background: #faf9f8; }
.lesson-controls legend { padding: 0 5px; color: #454549; font-size: 15px; font-weight: 600; }
.lesson-controls > p { margin-bottom: 12px; color: #67625d; font-size: 14px; line-height: 22px; }
.lab-field { display: block; padding: 10px 0; border-top: 1px solid #eceae7; }
.lab-field > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #4d4d51; font-size: 14px; line-height: 23px; }
.lab-field b { font-weight: 500; }
.lab-field output { flex: none; color: #b85800; font: 500 13px var(--mono); }
.lab-field input[type=range] { display: block; width: 100%; margin: 10px 0 0; accent-color: #e06f00; }
.lab-field.is-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lab-field input[type=checkbox] { width: 19px; height: 19px; accent-color: #e06f00; }
.lesson-challenge { margin-top: 18px; padding: 14px; border: 1px solid #e9e4de; border-radius: 10px; background: #fbfaf9; }
.lesson-challenge h3 { color: #2a2a2d; font-size: 16px; line-height: 24px; }
.lesson-challenge p { margin-top: 5px; color: #5f5b57; font-size: 15px; line-height: 24px; }
.lesson-challenge > span { display: inline-block; margin-top: 10px; color: #67625d; font-size: 13px; line-height: 20px; font-weight: 600; }
.lesson-challenge.is-complete { border-color: #cdcac7; background: #f7f4f1; }
.lesson-challenge.is-complete > span { color: #e06f00; }
.network-panel { margin-top: 18px; padding: 14px; border: 1px solid #e9e5e0; border-radius: 10px; background: #fbfaf8; }
.network-panel h3 { color: #2a2a2d; font-size: 16px; line-height: 24px; }
.network-panel > p { margin: 3px 0 12px; color: #67625d; font-size: 13px; line-height: 21px; }
.network-panel dl { display: grid; gap: 7px; }
.network-panel dl > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; line-height: 22px; }
.network-panel dt { color: #67625d; }
.network-panel dd { margin: 0; color: #b85800; text-align: end; overflow-wrap: anywhere; }
.network-panel h4 { margin-top: 12px; color: #67625d; font-size: 13px; font-weight: 500; }
.network-panel pre { margin: 6px 0; padding: 10px; border: 1px solid #e9e4de; border-radius: 6px; background: #fff; color: #414145; white-space: pre-wrap; overflow-wrap: anywhere; direction: ltr; text-align: left; unicode-bidi: plaintext; font: 12px/21px var(--mono); }
.network-panel ol { display: grid; gap: 5px; margin-top: 10px; color: #5f5b57; font-size: 12px; line-height: 20px; }
.network-panel li { unicode-bidi: plaintext; }
.info-content, .fly-text, .callout { overflow-wrap: anywhere; }
.info-content { min-width: 0; }
.spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec-grid > div { min-width: 0; }
.spec-grid dt { font-size: 14px; line-height: 22px; letter-spacing: 0; text-transform: none; }
.spec-grid dd { overflow-wrap: anywhere; line-height: 24px; }
.steps li { line-height: 25px; }
.callout h3 { text-transform: none; letter-spacing: 0; line-height: 27px; }
.callout p { line-height: 24px; }
.pin-table th { color: var(--muted); font-size: 13px; letter-spacing: .03em; }
.pin-table td { border-top: 1px solid var(--line-soft); }
.info-card.is-expanded { height: 655px; background: var(--card); }

/* Code editor */
.code-card {
  --line: #38383c; --line-soft: #2f2f33; --navy: #efebe6; --navy-2: #cfc8be;
  --kw: #ffba7e; --fn: #eac391; --num: #ffd1a8; --str: #a6dcb1; --gutter: #8a857f;
  --faint: #a39e97; --accent: #ffb366; --accent-deep: #ffd2a6;
  top: 534px; height: 233px; background: #fff; border: 1px solid #e6e1da; border-radius: 16px;
  padding: 0; box-shadow: 0 6px 24px #1b1b1d06; overflow: hidden;
}
.code-card header { height: auto; min-height: 64px; gap: 12px; padding: 12px 14px; }
.code-file-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.code-file-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 36px; border: 1px solid #e6e3e0; border-radius: 8px; background: #f5f4f2; }
.code-file-icon svg { width: 20px; height: 20px; fill: none; stroke: #55555b; stroke-width: 1.5px; stroke-linejoin: round; stroke-linecap: round; }
.code-file-text { min-width: 0; }
.code-file-text p { color: #67625d; font-size: 12px; line-height: 18px; }
.code-card header h2 { max-width: 200px; color: #404043; font: 500 14px/21px var(--mono); text-transform: none; letter-spacing: -.015em; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.code-actions { flex: none; gap: 6px; }
.code-card .btn-ghost { width: 32px; height: 34px; background: #fff; border: 1px solid #e9e6e2; border-radius: 8px; }
.code-card .btn-ghost:hover { background: #f6f5f3; border-color: #c9c6c3; }
.code-card .btn-ghost svg { width: 17px; height: 17px; stroke: #79726b; }
.code-card .btn-expand svg .fill { fill: #79726b; }
.code-card .btn-ghost.is-done svg { stroke: #e06f00; }
.btn-run { display: inline-flex; justify-content: center; align-items: center; gap: 7px; width: auto; min-width: 74px; height: 34px; padding: 0 12px; background: #e06f00; color: #fff; box-shadow: none; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-run svg { flex: none; width: 16px; height: 16px; }
.btn-run svg, .btn-run svg .fill { fill: #fff; }
.btn-run:hover { background: #313134; }
.btn-run.is-busy { background: #fff0cb; color: #765600; }
.btn-run.is-busy svg, .btn-run.is-busy svg .fill { fill: #765600; }
.code-card[data-state=running] .btn-run { background: #fdecea; color: #a13c33; box-shadow: none; }
.code-card[data-state=running] .btn-run svg, .code-card[data-state=running] .btn-run svg .fill { fill: #a13c33; }
.code-card.is-expanded { height: 655px; background: #fff; }
.code-wrap { margin: 0 12px; border-radius: 10px; background: #262629; }
.code-wrap .code { border: 0; border-radius: 10px; background: linear-gradient(90deg, #232325 41px, #3a3a3d 41px, #3a3a3d 42px, transparent 42px), #29292c; color: #e4dfd9; font-size: 13.5px; line-height: 22px; font-weight: 400; padding-top: 12px; }
.code-editor-footer { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 14px; min-height: 28px; padding: 5px 15px 6px; color: #67625d; font-size: 12px; line-height: 17px; }
.code-language { color: #6c6660; font-weight: 500; }
.code-language span { margin: 0 4px; color: #a59f99; }
.code .str { color: var(--str); }
.code .cm { color: var(--faint); }
.code .param { color: #f1d098; background: #eac39118; box-shadow: inset 0 -1px #eac39180; }
.code .param:hover, .code .param.is-marked { background: #eac3912b; }
.code .param.is-marked { box-shadow: inset 0 0 0 1px #eac391a0; }
.code .line.is-running { background: #ffb36615; }
.console { background: #1e1e1f; color: #c3c0bc; border-top: 1px solid #434348; }
.console-head { border-color: #38383b; }
.console-title { color: #cac6c3; }
.console-status { color: #b8b4b0; }
.console-lines div:last-child { color: #e1d8cc; }

/* Searchable lesson shelf */
.lessons { left: var(--workshop-content-left); right: 18px; bottom: 20px; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px 18px 12px; box-shadow: var(--shadow); }
.workshop-lessons-heading { display: flex; align-items: center; gap: 16px; margin: 0 0 9px; min-height: 34px; }
.workshop-lessons-heading h2 { margin: 0; font-size: 18px; font-weight: 600; text-transform: none; letter-spacing: -.01em; }
.workshop-search { margin-left: auto; }
.workshop-search input { width: 220px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8f7f6; color: var(--navy); font: 400 14px var(--sans); }
.workshop-search input::placeholder { color: #807871; }
.workshop-search input:focus { background: #fff; border-color: var(--accent); }
.workshop-progress { color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.workshop-search-status { position: static; margin: 0; color: var(--accent-deep); font-size: 13px; line-height: 20px; }
.workshop-search-status:empty { display: none; }
.lesson-list { gap: 12px; min-height: 88px; margin: -8px 38px; padding: 8px 4px; }
.lesson { height: 72px; padding: 0 26px 0 8px; border: 1px solid var(--line); border-radius: 13px; background: #faf8f5; box-shadow: none; }
.lesson:hover { border-color: var(--line); background: #f7f5f3; transform: none; box-shadow: none; }
.lesson.is-active { border: 1px solid var(--accent); background: #f5f2ef; box-shadow: inset 0 0 0 1px var(--accent); }
.lesson-title { color: #4b4b4f; text-align: left; text-transform: none; font-size: 16px; line-height: 21px; letter-spacing: 0; font-weight: 500; }
.lesson-thumb { height: 64px; margin-right: 10px; }
.lesson-done { width: 16px; height: 16px; top: 8px; right: 7px; border: 1px solid #d5d2d0; background: var(--card); }
.lesson.is-done .lesson-done, .lesson.is-done.is-active .lesson-done { width: 18px; height: 18px; top: 7px; right: 6px; box-shadow: none; background: var(--accent); border: 1px solid var(--accent); }
.lesson-done svg { width: 11px; height: 11px; }
.lesson-step { width: 32px; height: 32px; bottom: 32px; border-radius: 10px; border: 1px solid var(--line); box-shadow: none; }
.lesson-step.prev { left: 16px; }
.lesson-step.next { right: 16px; }

/* Menus and native-script language labels */
.flyout { left: calc(28px + var(--workshop-sidebar-width)); padding: 18px 14px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fffffffa; box-shadow: 0 18px 48px -16px #2f2f3140; }
html:not(.compact) .flyout { top: max(112px, var(--top, 112px)); }
.flyout header { padding-bottom: 14px; margin-bottom: 8px; }
.flyout header h2 { font-size: 20px; font-weight: 600; text-transform: none; letter-spacing: -.02em; }
.fly-list button, .fly-list label { padding: 10px 8px; border-radius: 12px; }
.fly-list button:hover, .fly-list label:hover { background: #f6f5f3; }
.fly-list button.is-current { background: var(--accent-soft); }
.fly-num { border: 1px solid var(--line); background: #fff; border-radius: 9px; font-size: 14px; }
.fly-text b { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.fly-text small { font-size: 14px; line-height: 20px; color: var(--muted); }
.fly-list [lang="ar"] { direction: rtl; unicode-bidi: isolate; }
.flyout[data-kind=language] { width: 480px; }
.lang-list { gap: 8px 12px; }
.fly-mini { border-radius: 9px; }
.loader { background: #f6f3ef; }
.loader:before { background-image: radial-gradient(#c7c3c0 1px, transparent 1px); background-size: 24px 24px; }
.loader-title { text-transform: none; letter-spacing: -.03em; }
.loader-fill { background: var(--accent); }
.loader-step { letter-spacing: .02em; color: var(--muted); }

/* Compact mode is selected by the existing viewport and camera code. */
html.compact .artboard { background: var(--bg); padding: 20px 18px calc(140px + env(safe-area-inset-bottom)); gap: 18px; }
html.compact .brand { gap: 12px; }
html.compact .brand-logo { width: 48px; height: 48px; padding: 10px; border-radius: 15px; }
html.compact .brand-text h1 { font-size: 25px; line-height: 30px; }
html.compact .brand-text p { font-size: 14px; line-height: 20px; letter-spacing: 0; }
html.compact .brand-text p { max-width: 480px; }
html.compact .status { border: 1px solid var(--line); border-radius: 16px; height: 62px; }
html.compact .progress-card { width: 190px; gap: 10px; padding: 0 12px; }
html.compact .progress-label { font-size: 14px; }
html.compact .clock { font-size: 13px; padding: 0 12px; }
html.compact .stage { background: #fbfaf8; border: 1px solid var(--line); border-radius: 22px; height: clamp(360px, 58vh, 660px); }
html.compact .workshop-stage-heading { top: 18px; left: 18px; }
html.compact .workshop-stage-heading strong { font-size: 15px; }
html.compact .workshop-stage-heading span { font-size: 13px; }
html.compact .workshop-stage-badge { top: 18px; right: 16px; font-size: 12px; }
html.compact .viewbar { bottom: 12px; }
html.compact .viewbar button { width: 36px; height: 36px; }
html.compact .lessons { padding: 14px 12px; border-radius: 20px; }
html.compact .workshop-lessons-heading { gap: 8px 12px; flex-wrap: wrap; margin: 0 0 12px; }
html.compact .workshop-lessons-heading h2 { font-size: 18px; margin: 0; }
html.compact .workshop-search input { width: 180px; height: 36px; font-size: 16px; }
html.compact .workshop-progress { font-size: 13px; }
html.compact .lesson-list { min-height: 92px; margin: -8px 30px; }
html.compact .lesson { height: 76px; padding: 0 24px 0 7px; }
html.compact .lesson-title { font-size: 15px; line-height: 21px; }
html.compact .lesson-step { width: 30px; height: 34px; bottom: 35px; }
html.compact .lesson-step.prev { left: 10px; }
html.compact .lesson-step.next { right: 10px; }
html.compact .info-card, html.compact .code-card { border-radius: 16px; }
html.compact .lesson-guide-header { padding: 19px 20px 12px; }
html.compact .tabs { gap: 20px; padding: 0 20px; }
html.compact .tabs button { font-size: 14px; padding: 10px 0 12px; flex: 0 0 auto; }
html.compact .info-body { flex: none; padding: 18px 20px 20px; margin: 0; overflow: visible; }
html.compact .info-content { height: auto; overflow: visible; padding: 0; }
html.compact .info-body h2 { font-size: 21px; line-height: 29px; }
html.compact .lede { font-size: 16px; line-height: 25px; }
html.compact .features li { font-size: 14px; line-height: 23px; gap: 10px; }
html.compact .feature-icon, html.compact .feature-icon svg { width: 23px; height: 23px; }
html.compact .pin-table { font-size: 14px; line-height: 21px; }
html.compact .code-card { padding: 0; }
html.compact .code-card header { padding: 12px 14px; }
html.compact .code-wrap .code { font-size: 13.5px; line-height: 22px; max-height: 450px; }
html.compact .sidebar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); top: auto; width: auto; height: auto; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #fffffffa; box-shadow: 0 8px 32px #1b1b1d1a; overflow: visible; }
html.compact .sidebar-heading { display: none; }
html.compact .side-nav { height: auto; padding: 6px; gap: 4px; flex-direction: row; align-items: stretch; justify-content: flex-start; max-width: none; overflow-x: auto; scrollbar-width: none; }
html.compact .side-nav li, html.compact .side-nav li:nth-child(4) { flex: 0 0 auto; width: auto; margin: 0; padding: 0; border: 0; }
html.compact .side-nav a { flex-direction: row; width: auto; height: 48px; min-height: 48px; padding: 10px 13px; gap: 8px; border-radius: 10px; }
html.compact .side-nav a svg { flex: 0 0 20px; width: 20px; height: 20px; }
html.compact .side-label { width: auto; font-size: 14px; line-height: 22px; white-space: nowrap; }
html:lang(ml) .side-label { line-height: 1.65; }
html.compact .flyout { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); border-radius: 16px; padding: 18px 14px 14px; max-width: 560px; }
html.compact .flyout[data-kind=language] { width: auto; }
@media (max-width: 600px) {
  html.compact .artboard { padding: 18px 12px calc(100px + env(safe-area-inset-bottom)); gap: 14px; }
  html.compact .brand-text h1 { font-size: 25px; }
  html.compact .status { height: 60px; }
  html.compact .progress-card { flex: 1; width: auto; }
  html.compact .workshop-progress, html.compact .workshop-search-status { width: 100%; order: 3; }
  html.compact .workshop-search input { width: 170px; }
  html.compact .lang-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  html.compact .workshop-stage-badge { display: none; }
  html.compact .code-file-icon { display: none; }
  html.compact .code-card header { gap: 8px; padding: 12px; flex-wrap: wrap; }
  html.compact .code-file-heading { flex: 1 1 110px; }
  html.compact .code-card header h2 { font-size: 13px; }
  html.compact .features { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid #ece7e1; border-radius: 10px; overflow: hidden; }
  html.compact .features li { flex-direction: row; align-items: center; border: 0; border-radius: 0; border-bottom: 1px solid #ece7e1; padding: 12px; gap: 12px; font-size: 15px; }
  html.compact .features li:last-child { border-bottom: 0; }
  html.compact .side-nav { justify-content: space-between; overflow: visible; }
  html.compact .side-nav li { flex: 1; }
  html.compact .side-nav a { justify-content: center; width: 100%; padding: 10px 4px; }
  html.compact .side-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  html.compact .side-nav a:is(:hover, :focus-visible) .side-label { clip: auto; overflow: visible; top: -44px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 180px; height: auto; margin: 0; padding: 6px 10px; border: 1px solid #e6e1da; border-radius: 7px; background: #fff; color: #404044; font-size: 13px; white-space: normal; box-shadow: 0 4px 12px #1b1b1d12; }
  html.compact .side-nav li:first-child a:is(:hover, :focus-visible) .side-label { left: 0; transform: none; }
  html.compact .side-nav li:last-child a:is(:hover, :focus-visible) .side-label { left: auto; right: 0; transform: none; }
}
@media (max-width: 380px) {
  html.compact .brand-text h1 { font-size: 22px; }
  html.compact .brand-text p { font-size: 13px; }
  html.compact .workshop-search input { width: 150px; }
  html.compact .tabs { gap: 17px; padding: 0 16px; }
}
@media (orientation: landscape) and (max-height: 600px) {
  html.compact .artboard { padding: 12px 12px 16px 88px; gap: 14px; }
  html.compact .stage { height: calc(100dvh - 24px); top: 12px; }
  html.compact .sidebar { left: 8px; top: 12px; bottom: 12px; right: auto; width: 66px; height: auto; }
  html.compact .side-nav { flex-direction: column; height: 100%; padding: 8px 5px; gap: 5px; }
  html.compact .side-nav li { flex: 0; width: 100%; }
  html.compact .side-nav a { height: 46px; }
  html.compact .side-nav a { min-height: 46px; padding: 8px 2px; }
  html.compact .side-nav a { width: 100%; justify-content: center; }
  html.compact .side-label { display: none; }
  html.compact .flyout { left: 86px; right: auto; top: 12px; bottom: auto; max-height: calc(100dvh - 24px); width: min(400px, calc(100vw - 100px)); }
  html.compact .flyout[data-kind=language] { width: min(480px, calc(100vw - 100px)); }
  html.compact .status { height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Keep wheel, touch, and keyboard scrolling without visible scrollbar tracks. */
html, body, body * { scrollbar-width: none !important; }
html::-webkit-scrollbar, body::-webkit-scrollbar, body *::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Workshop startup panel */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  overflow: auto; padding: 18px; color: #1b1b1d; background-color: #f0f0e9;
  background-image: radial-gradient(#c9ccc1 1px, transparent 1px);
  background-size: 16px 16px; transition: opacity .3s;
}
.loader::before { content: none; }
.loader.is-done { opacity: 0; pointer-events: none; }
.loader-inner { width: min(100%, 550px); padding: 0; display: block; text-align: start; background: #fffef8; border: 1px solid #b7beb8; border-radius: 10px; overflow: hidden; box-shadow: 0 15px 40px #1b1b1d15; }
.loader-face { position: relative; padding: clamp(22px,5vw,40px); background: #1b1b1d; color: #fffef8; border-bottom: 4px solid #ef9d45; }
.loader-brand { font: 600 16px/1.4 var(--sans); }
.loader-brand span { color: #ffc37c; }
.loader-headline { margin: 28px 82px 0 0; font: 600 clamp(32px,5vw,54px)/1 var(--sans); letter-spacing: -.045em; }
.loader-module { position: absolute; right: clamp(18px,5vw,40px); bottom: 32px; display: grid; place-items: center; width: 56px; height: 66px; border: 2px solid #ffc37c; border-radius: 6px; color: #ffc37c; font: 600 27px var(--mono); transform: rotate(9deg); }
.loader-module::before { content: ""; position: absolute; inset: 5px -7px; border-inline: 4px dotted #ffc37c; }
.loader-progress { padding: 22px clamp(22px,5vw,40px) 28px; }
.loader-step { display: block; margin: 0 0 12px; color: #48484c; font: 500 13px/1.5 var(--mono); text-transform: none; letter-spacing: 0; }
.loader-track { display: block; width: 100%; height: 6px; margin: 0; border: 0; background: #e4e3e1; border-radius: 2px; overflow: hidden; }
.loader-fill { display: block; height: 100%; width: 100%; background: #e16900; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.loader.is-failed .loader-step { color: #963d28; }
@media (prefers-reduced-motion: reduce) {
  .loader, .loader-fill { transition: none; }
}

/* Author block — minimal, matches sidebar typography */
.sidebar { display: flex; flex-direction: column; }
.sidebar .side-nav { flex: 1 0 auto; }
.side-author { margin: 8px 2px 14px; padding: 16px 12px 4px; border-top: 1px solid #efedeb; display: flex; flex-direction: column; gap: 10px; }
.side-author-kicker { margin: 0; font: 600 10px/1 var(--sans); color: #8f8880; letter-spacing: .18em; text-transform: uppercase; }
.side-author-name { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 0; color: #262628; text-decoration: none; font: 600 13.5px/1.25 var(--sans); letter-spacing: -.01em; transition: color .15s ease; }
.side-author-name span { color: #e06f00; font-weight: 700; font-size: 14px; transition: transform .2s ease; }
.side-author-name:hover { color: #e06f00; }
.side-author-name:hover span { transform: translateX(3px); }
.side-author-row { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.side-author-row a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: transparent; color: #706b65; text-decoration: none; transition: background .15s ease, color .15s ease; }
.side-author-row a svg { width: 15px; height: 15px; }
.side-author-row a:hover { background: #fff1e2; color: #e06f00; }

html.compact .app-foot { display: block; padding: 0; }
html.compact .side-author { align-items: flex-start; padding: 16px; margin: 0; border-color: var(--line); }
html.compact .side-author-row a { width: 44px; height: 44px; }

.side-desert { display: none; }


/* One instrument panel for identity, current lesson and course progress. */
html .brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  height: 76px;
  inset: 16px 20px auto;
  padding: 12px 24px;
  border: 1px solid #38383c;
  border-radius: 14px;
  color: #f8f6f4;
  background: radial-gradient(circle, #ffffff16 1px, transparent 1.2px) right / 14px 14px, #242426;
  box-shadow: 0 5px 16px #21212417;
}
.workshop-wordmark { display: flex; gap: 12px; align-items: center; white-space: nowrap; font: 600 19px/1.2 var(--sans); }
.chip-mark { display: grid; place-items: center; width: 34px; height: 34px; margin: 3px; position: relative; border: 2px solid #ff9a2e; border-radius: 5px; color: #ffd2a6; font: 600 16px var(--mono); }
.chip-mark::before, .chip-mark::after { content: ""; position: absolute; inset: -5px 5px; border-block: 3px dotted #ff9a2e; }
.chip-mark::after { transform: rotate(90deg); }
.masthead-current { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 3px 8px; padding-inline-start: 24px; border-inline-start: 1px solid #4a4a4f; }
.masthead-kicker, .masthead-number, .brand .dock-meta { color: #c9c3bb; font: 500 11px/1.3 var(--mono); letter-spacing: .03em; }
.masthead-number { color: #ffc78a; }
#masthead-lesson-title { grid-column: span 2; font: 600 23px/1.15 var(--sans); overflow-wrap: anywhere; }
html .brand .status { grid-area: auto; overflow: visible; border-radius: 0; position: static; display: block; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.brand .progress-card { display: block; width: auto; padding: 0; }
.brand .dock-text { flex-direction: column-reverse; gap: 5px; }
.brand .dock-value #progress-count { color: #faf8f5; font-size: 15px; }
.brand .progress-track { width: 74px; height: 5px; background: #535359; }
.brand .progress-fill { background: #ffbe85; box-shadow: none; }

html.compact .brand { inset: auto; grid-area: brand; width: 100%; height: auto; padding: 15px; gap: 14px; }
html.compact .brand .progress-card { width: auto; padding: 0; }
html.compact .artboard { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; grid-template-areas: "brand" "stage" "lessons" "info" "code" "schematic" "foot"; }
html.compact .stage { position: relative; top: auto; height: clamp(285px,54svh,570px); min-width: 0; }
html.compact .viewbar button, html.compact .tabs button { min-height: 44px; }
html.compact .viewbar button { width: 44px; }
html.compact .lesson-step { width: 44px; height: 44px; }
html.compact .lesson-list { margin-inline: 44px; }

html.compact .workshop-search input { height: 44px; max-width: 100%; }
@media (min-width: 760px) {
  html.compact .artboard { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: "brand brand" "stage stage" "lessons lessons" "info code" "schematic schematic" "foot foot"; align-items: start; }
}
@media (max-width: 759px) {
  html.compact .brand { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
  .workshop-wordmark { font-size: 17px; gap: 9px; }
  html.compact .masthead-current { grid-column: span 2; grid-row: 2; padding: 10px 0 0; border: 0; border-top: 1px solid #55555b; }
  html.compact .brand .progress-track { width: 36px; }
  html.compact .brand .dock-value { gap: 5px; }
  html.compact .artboard { padding-inline: max(10px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-right)); }
}
@media (orientation: landscape) and (max-height: 600px) {
  html.compact .artboard { padding-inline-start: calc(84px + env(safe-area-inset-left)); }
  html.compact .stage { height: 75svh; }
}
/* Workshop surfaces and controls */
:root {
  --bg: #f6f3ef;
  --card: #fffef8;
  --line: #ddd6cc;
  --navy: #1b1b1d;
  --accent: #e06f00;
  --accent-deep: #56565b;
  --accent-soft: #f7f4f1;
  --workshop-sidebar-width: 164px;
  --workshop-content-left: 198px;
}
body, .artboard, html.compact .artboard { background-color: var(--bg); }
html .brand {
  background: #1b1b1d;
  border: 0;
  border-bottom: 4px solid #ef9d45;
  border-radius: 8px;
  box-shadow: none;
}
.workshop-wordmark { letter-spacing: -.035em; font-size: 21px; }
.chip-mark { color: #1b1b1d; border-color: #ffbc70; background: #ffbc70; }
.chip-mark::before, .chip-mark::after { border-color: #ffbc70; }
.masthead-kicker, .brand .dock-meta { color: #d1cecc; }
.masthead-number { color: #ffcb90; }
.brand .progress-track { background: #6b655f; }
.brand .progress-fill { background: #ffb769; }
html:not(.compact) .sidebar {
  background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0;
}
.sidebar-heading, .lesson-guide-caption, .workshop-stage-heading strong, .code-file-text p {
  font: 600 11px/1.5 var(--mono); letter-spacing: .075em; text-transform: uppercase;
}
.sidebar-chip, .workshop-stage-badge { display: none; }
.side-nav a { border-radius: 6px; }
.side-nav :is(li.is-on,li.is-active) a,
.side-nav:not(:has(li.is-on)) li.is-active a { background: #404043; }
.side-author { padding-inline: 8px; }
.side-author-name { flex-wrap: wrap; }
html .stage, html.compact .stage {
  background: #f9f8ef;
  border: 1px solid #bcc4bd;
  border-radius: 9px;
  box-shadow: none;
}
.workshop-stage-heading { padding: 8px 11px; border-inline-start: 3px solid #e38b35; background: #fffef7ed; }
.workshop-stage-heading strong { color: #39393d; }
.workshop-stage-heading span { display: none; }
.viewbar, .schematic-card, .callout, .inspector, .flyout { border-radius: 8px; }
html .info-card, html .lessons, html.compact .lessons, html.compact .info-card {
  border: 1px solid var(--line); border-radius: 9px; background: var(--card); box-shadow: none;
}
.lesson-guide-header { background: #f6f3f0; border-top: 4px solid #54545a; }
.lesson-guide-caption { color: #67625c; }
#lesson-guide-number { color: #69645e; }
#lesson-guide-title { font-size: 29px; line-height: 1.13; color: #1b1b1d; }
.tabs button.is-active { color: #cb5f00; }
.tabs button::after { background: #ff7801; }
.features li { border: 0; border-top: 2px solid #c8cfc5; border-radius: 0; background: #f4f4eb; }
.feature-icon svg { stroke: #57575c; }
html .code-card, html.compact .code-card { background: #303033; border-color: #38383b; border-radius: 9px; }
.code-file-text p, .code-editor-footer, .code-language { color: #c9c6c2; }
.code-card header h2 { color: #f9f8f6; }
.code-file-icon, .code-card .btn-ghost { background: #414146; border-color: #69635d; }
.code-file-icon svg, .code-card .btn-ghost svg { stroke: #ece7e1; }
.code-card .btn-ghost:hover { background: #58585e; }
.code-card .btn-expand svg .fill { fill: #ece7e1; }
.code-card[data-state=idle] .btn-run { background: #ffc37c; color: #343438; }
.code-card[data-state=idle] .btn-run svg, .code-card[data-state=idle] .btn-run .fill { fill: #343438; }
.code-wrap .code { background: #212124; border-radius: 5px; }
.workshop-lessons-heading h2 { font-weight: 700; font-size: 22px; letter-spacing: -.035em; }
.workshop-search input { border-radius: 6px; background: #fff; }
.lesson { background: #f7f7f0; border-radius: 6px; }
.lesson:hover { background: #f7f4f1; border-color: #a9a39d; }
.lesson.is-active { background: #f6f2ee; border-color: #f47200; box-shadow: inset 3px 0 #de6800; }
.lesson.is-active .lesson-title { color: #444448; }
.flyout { background: #fffef8; border-top: 3px solid #54545a; }
html.compact .sidebar { background: #fffef9; border-radius: 10px; }
@media (max-width: 759px) {
  .workshop-wordmark { font-size: 17px; }
  html.compact .masthead-current { border-color: #6c6660; }
  html.compact .info-body { padding-inline: 15px; }
  html.compact .code-card .btn-run, html.compact .code-card .btn-ghost { min-height: 44px; }
  html.compact .code-card .btn-ghost { width: 44px; }
}
html.compact .artboard { width: 100% !important; max-width: 100%; box-sizing: border-box; }
html.compact :is(.info-card, .code-card, .lessons) { min-width: 0; }
.first-tap, .next-lesson { display: none; }
@media (max-width: 759px), (pointer: coarse) and (max-height: 600px) {
  .stage:not(.no-webgl) .first-tap:not([hidden]) { display: block; position: absolute; top: 54px; left: 18px; z-index: 4; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; margin: 0; padding: 4px 8px; background: #fffef8ed; color: #39393d; font-size: 14px; }
  .next-lesson:not([hidden]) { display: block; margin: 0 16px 16px; padding: 12px 16px; min-height: 44px; border-radius: 6px; color: #fff; background: #404043; font: 600 16px/1.4 var(--sans); text-align: start; }
}
