@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dmsans-400.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/dmsans-500.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/dmsans-600.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/dmsans-700.ttf") format("truetype"); }
:root {
  color-scheme: light;
  --body: #f8f7f3; --level-1: #f8f7f3; --level-2: #f0f1ea; --level-3: #fcfbf8;
  --paper: #fffefa; --ink: #283b31; --text: #29362f; --secondary: #6d7368; --tertiary: #797e71;
  --divider: #dddfd5; --divider-soft: #e9eae2;
  --orange: #bc5834; --orange-dark: #964324; --orange-soft: #f5e8df;
  --blue: #426a7c; --blue-soft: #e6eef0; --green: #54705b; --green-soft: #e5ebdf;
  --amber: #936d31; --amber-soft: #f7eedb; --red: #ab4640; --red-soft: #f8e8e5;
  --mint: #c3d2bb; --sky: #c1d8e0; --leaf: #c6d4bc;
  --shadow: 0 8px 28px #293b310a; --shadow-deep: 0 24px 65px #293b3110;
  --body-font: "DM Sans", "Inter", Arial, sans-serif;
  --mono-font: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --display-font: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--text); background: var(--body); font: 15px/1.55 var(--body-font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button, input, a, textarea, select, [tabindex] { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--orange); }
[hidden], .hidden { display: none !important; }
.mono { font-family: var(--mono-font); font-variant-numeric: tabular-nums; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 20px; background: var(--ink); color: white; border-radius: 7px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.appbar { height: 86px; padding: 0 max(5vw, calc((100vw - 1260px) / 2)); display: flex; align-items: center; gap: 34px; border-bottom: 1px solid var(--divider); background: #f8f7f3f2; position: sticky; top: 0; z-index: 30; backdrop-filter: blur(16px); }
.product { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.product-mark { width: 34px; height: 34px; }
.product-name { font-size: 25px; font-weight: 750; letter-spacing: -1.2px; }
.brand-dot { color: var(--orange); }
.top-nav { display: flex; gap: 28px; align-items: center; margin-left: auto; }
.top-nav a { font-size: 12px; font-weight: 500; text-decoration: none; position: relative; }
.top-nav a:hover, .top-nav a.active { color: var(--orange); }
.top-nav a.active::after { content: ""; position: absolute; bottom: -10px; left: 0; width: 17px; height: 2px; background: var(--orange); }
.appbar-actions { display: flex; align-items: center; gap: 13px; }
.connection { display: none; align-items: center; gap: 6px; color: var(--secondary); font-size: 10px; }
.connection.offline { display: inline-flex; }
.connection i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.connection.offline i { background: var(--red); }
#refresh { width: 28px; height: 28px; min-height: 28px; background: transparent; border: 0; color: var(--secondary); }
.button, .icon-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid var(--divider); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none; transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
.button { padding: 10px 17px; }
.button.primary { background: var(--ink); border-color: var(--ink); color: #fffef7; }
.button:hover, .icon-button:hover { border-color: var(--orange); background: var(--orange-soft); }
.button.primary:hover { background: #405447; border-color: #405447; box-shadow: 0 4px 10px #293b3115; }
.button:active, .icon-button:active { transform: translateY(1px); }
.button.large { min-height: 48px; padding: 13px 21px; font-size: 13px; }
.button[disabled], .icon-button[disabled], a.button[aria-disabled="true"] { pointer-events: none; opacity: .45; }
.icon-button { width: 36px; padding: 0; font-size: 20px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 12px 3px; color: var(--ink); border: none; background: none; font-size: 12px; font-weight: 600; }
.text-button:hover { color: var(--orange); }
.site-shell { position: relative; }
.hero-kicker, .section-index, .section-kicker { font: 500 10px/1.6 var(--mono-font); letter-spacing: 1.25px; text-transform: uppercase; color: var(--secondary); }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: 1.1px; }
.hero-kicker i { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; flex: none; }
.section-intro h2 em, .pipeline-cta h3 em, .operation-heading h2 em { font-family: var(--display-font); font-weight: 400; color: var(--orange); letter-spacing: -3px; }
.title-spark { display: inline-block; color: #b57b49; font-size: 57px; font-weight: 400; margin-left: 26px; transform: translateY(-7px) rotate(-10deg); vertical-align: middle; }
.experiment-card { border: 1px solid #d9ded1; border-radius: 13px; background: #f5f6ef; overflow: hidden; box-shadow: var(--shadow-deep); }
.experiment-topline { display: flex; justify-content: space-between; align-items: center; padding: 19px 24px 0; gap: 14px; font: 9px var(--mono-font); color: #6c7864; letter-spacing: .65px; }
.live-dot { display: inline-block; vertical-align: middle; width: 6px; height: 6px; border-radius: 50%; background: #748c67; margin-right: 6px; }
.mini-label { color: #8c9482; font-size: 8px; white-space: nowrap; }
.experiment-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 28px 27px 0; }
.experiment-heading h2 { margin: 0; font: 400 30px/1.13 var(--display-font); letter-spacing: -.8px; }
.experiment-icon { font: 34px var(--display-font); width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid #d9dfcd; border-radius: 50%; color: #788768; }
.experiment-description { margin: 11px 27px 0; font-size: 11px; color: #77816d; }
.lever-drawing { width: 100%; height: auto; display: block; margin: 6px 0 0; }
#lever-beam { transition: transform .25s ease-out; }
.experiment-controls { padding: 0 25px 20px; }
.range-heading { display: flex; justify-content: space-between; align-items: center; font-size: 10px; margin-bottom: 4px; }
.range-heading output { font: 500 11px var(--mono-font); padding: 3px 7px; background: #e8ecdf; border-radius: 4px; }
#lever-distance { accent-color: var(--ink); width: 100%; cursor: ew-resize; height: 22px; margin: 0; }
.range-scale { display: flex; justify-content: space-between; font: 8px var(--mono-font); color: #858c7e; margin-top: -1px; }
.balance-feedback { display: flex; align-items: center; gap: 9px; padding: 10px 0 0; border-top: 1px solid #e0e3d7; margin-top: 13px; font-size: 10px; color: #6d7963; }
.balance-feedback.balanced { color: #365e3b; }
.balance-symbol { font-size: 16px; }
.reset-experiment { margin-left: auto; border: none; background: #e8ecdf; height: 29px; width: 29px; border-radius: 50%; font-size: 19px; flex: none; }
.reset-experiment:hover { background: #dbe3d1; }
.hand-arrow { font-size: 26px; transform: rotate(14deg); }
.capability-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px max(5vw, calc((100vw - 1260px) / 2)); border-block: 1px solid var(--divider); background: #f1f2eb; }
.capability-band > span { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; white-space: nowrap; color: #5b6658; }
.capability-band .band-label { font: 8px/1.6 var(--mono-font); max-width: 95px; white-space: normal; letter-spacing: 1.1px; color: #909584; }
.cap-icon { width: 31px; height: 31px; border: 1px solid #d5dccb; border-radius: 8px; font: 21px/1 var(--display-font); font-style: normal; display: grid; place-items: center; }
.motion-icon { color: #858c6a; }.math-icon { color: #a47858; }.art-icon { color: #6a8c94; }.practice-icon { color: #71835c; }
.pipeline-section, .operation-section { padding: 91px max(5vw, calc((100vw - 1260px) / 2)); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.section-intro h2, .operation-heading h2 { font-size: 53px; line-height: 1.1; letter-spacing: -2.2px; font-weight: 400; margin: 17px 0 0; }
.section-intro h2 em, .operation-heading h2 em { letter-spacing: -1.8px; }
.section-aside { font-size: 12px; line-height: 1.95; color: var(--secondary); margin: 0 5px 4px; }
.learning-features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; gap: 40px; }
.learning-features article + article { border-left: 1px solid var(--divider); padding-left: 35px; }
.feature-number { font: 8px var(--mono-font); color: #a47c58; letter-spacing: .8px; }
.learning-features h3 { font-size: 16px; font-weight: 500; letter-spacing: -.3px; margin: 13px 0 8px; }
.learning-features p { font-size: 11px; line-height: 1.8; color: var(--secondary); margin: 0; max-width: 280px; }
.pipeline-section { background: #f1f2eb; border-top: 1px solid var(--divider); }
.subtle-instruction { display: inline-block; margin-top: 8px; color: #8c947e; font-size: 10px; }
.pipeline-visual { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 37px; }
.pipeline-card { position: relative; display: flex; flex-direction: column; text-align: left; border: 1px solid #d9ddcf; padding: 19px 17px; border-radius: 9px; background: #f8f9f3; min-width: 0; transition: background .2s, border-color .2s, transform .2s; }
.pipeline-card:hover { background: #fffefa; border-color: #9ba78b; transform: translateY(-3px); }
.pipeline-card.active { background: #344937; border-color: #344937; color: #fcfff4; }
.pipeline-number { font: 17px var(--display-font); color: #8a957a; }
.pipeline-card.active .pipeline-number { color: #bdcba9; }
.pipeline-tool { font: 7px var(--mono-font); color: #939b87; letter-spacing: .35px; margin: 23px 0 9px; }
.pipeline-card.active .pipeline-tool { color: #afc09f; }
.pipeline-card strong { font-size: 13px; font-weight: 500; }
.pipeline-card-copy { color: #7f8973; font-size: 9px; margin-top: 5px; }
.pipeline-card.active .pipeline-card-copy { color: #c4ceb8; }
.pipeline-arrow { position: absolute; top: 18px; right: 16px; font-size: 15px; color: #9aa78b; }
.pipeline-detail { min-height: 343px; display: grid; grid-template-columns: 1fr 1.03fr; align-items: center; gap: 65px; margin-top: 22px; padding: 34px 40px; border: 1px solid #dadfd0; background: #f8f9f3; border-radius: 10px; }
.pipeline-detail-copy h3 { font-weight: 400; font-size: 27px; letter-spacing: -.75px; line-height: 1.2; margin: 14px 0; max-width: 360px; }
.pipeline-detail-copy > p { font-size: 11px; color: var(--secondary); line-height: 1.85; max-width: 395px; margin: 0; }
.pipeline-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 19px; }
.pipeline-tags span { font-size: 8px; color: #778367; border: 1px solid #dce1d2; border-radius: 4px; padding: 4px 7px; }
.artifact-preview { border: 1px solid #dbe0d1; border-radius: 8px; background: #fffef9; box-shadow: 0 5px 17px #31402805; overflow: hidden; min-width: 0; }
.artifact-top { display: flex; align-items: center; gap: 6px; font: 8px var(--mono-font); letter-spacing: .5px; color: #6e7b63; border-bottom: 1px solid #e4e7db; padding: 12px 16px; }
.artifact-top > span:last-child { font-family: var(--body-font); font-size: 8px; color: #929985; letter-spacing: 0; margin-left: auto; }
.artifact-dot { width: 5px; height: 5px; border-radius: 50%; background: #859976; }
.blueprint-preview { padding: 16px 20px; }
.artifact-label { font: 7px var(--mono-font); color: #a28f70; letter-spacing: .8px; }
.blueprint-preview h4 { font: 21px/1.25 var(--display-font); margin: 7px 0 14px; }
.blueprint-row { display: flex; align-items: center; gap: 10px; border-top: 1px solid #eaede3; padding: 7px 0; font-size: 9px; }
.blueprint-row > span { font: 8px var(--mono-font); color: #929f85; }
.blueprint-row strong { font-weight: 500; }
.blueprint-row i { margin-left: auto; color: #86917a; font-size: 8px; font-style: normal; }
.artifact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px; }
.artifact-tile { padding: 12px; min-height: 88px; border: 1px solid #e5e8dc; border-radius: 5px; font-size: 10px; }
.artifact-tile i { display: block; font: 25px var(--display-font); color: #b2825b; font-style: normal; margin-bottom: 8px; }
.artifact-tile span { display: block; font-size: 8px; color: #87917a; margin-top: 3px; }
.review-list { padding: 10px 20px; }
.review-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e6e9dd; font-size: 10px; }
.review-line:last-child { border-bottom: 0; }.review-line i { font-size: 8px; font-style: normal; color: #828e75; }.review-line.warning i { color: #b07947; }
.artifact-caption { font-size: 8px; color: #8a947e; padding: 0 20px 13px; }
.bundle-art { padding: 25px 20px; text-align: center; }
.bundle-screen { background: #e9eddf; border-radius: 6px; padding: 28px; font: italic 26px var(--display-font); color: #6e805d; }
.bundle-timeline { display: flex; gap: 5px; margin-top: 10px; }
.bundle-timeline i { display: block; flex: 2; height: 6px; border-radius: 2px; background: #b2c0a1; }.bundle-timeline i:nth-child(3) { background: #d4a780; flex: 1; }
.repair-note { display: flex; align-items: center; gap: 15px; margin-top: 24px; padding: 14px 5px; }
.repair-icon { display: grid; place-items: center; font-size: 28px; color: #8e9c7d; width: 40px; flex: none; }
.repair-note strong { font-size: 11px; font-weight: 500; }
.repair-note p { font-size: 10px; color: #869079; margin: 3px 0 0; }
.repair-route { margin-left: auto; font: 8px var(--mono-font); white-space: nowrap; color: #8b977e; letter-spacing: .5px; }
.repair-route i { font-style: normal; margin: 0 8px; color: #b08b62; }
.pipeline-cta { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 65px; padding: 42px 0 0; border-top: 1px solid #d8decb; }
.pipeline-cta h3 { font-weight: 400; font-size: 39px; letter-spacing: -1.4px; line-height: 1.2; margin: 13px 0; }.pipeline-cta h3 em { letter-spacing: -1.3px; }
.pipeline-cta p { font-size: 11px; color: #7c8770; margin: 0; }
.site-footer { padding: 31px max(5vw, calc((100vw - 1260px) / 2)); display: flex; align-items: center; gap: 22px; border-top: 1px solid var(--divider); }
.site-footer .product-name { font-size: 20px; }
.site-footer > span { font-size: 10px; color: #949b8c; }
.site-footer .footer-engine { margin-left: auto; font: 8px var(--mono-font); letter-spacing: .7px; }
.site-footer > a:last-child { font-size: 9px; text-decoration: none; color: #738167; }

/* Existing production Studio controls. */
.operation-section { min-height: 70vh; padding: 80px max(5vw, calc((100vw - 1260px) / 2)); background: var(--paper); }
.operation-heading { position: relative; z-index: 2; max-width: 760px; }
.operation-art { position: absolute; top: 73px; right: 5vw; width: 240px; height: 260px; border-bottom: 1px solid var(--divider); }
.character-six { right: 0; bottom: -6px; width: 195px; transform: rotate(4deg); }
.workspace { position: relative; z-index: 2; display: grid; grid-template-columns: 235px minmax(0, 1fr); max-width: 1380px; margin: 64px auto 0; border: 1px solid var(--divider); background: var(--level-2); box-shadow: var(--shadow-deep); }
.project-rail { min-width: 0; display: flex; flex-direction: column; background: var(--level-1); border-right: 1px solid var(--divider); }
.rail-head { padding: 14px 12px 10px; }
.search-field { height: 35px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid var(--divider); border-radius: 3px; background: var(--paper); color: var(--tertiary); }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-soft); }
.rail-label { display: flex; align-items: center; justify-content: space-between; padding: 7px 14px; color: var(--tertiary); font: 600 10px var(--mono-font); letter-spacing: .04em; text-transform: uppercase; }
.rail-label strong { min-width: 20px; padding: 1px 5px; border: 1px solid var(--divider); border-radius: 10px; background: var(--paper); color: var(--ink); text-align: center; }
.run-list { flex: 1; min-height: 265px; padding: 0 7px 10px; overflow: auto; }
.run-item { width: 100%; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 9px 8px; border: 1px solid transparent; border-radius: 3px; background: transparent; text-align: left; }
.run-item:hover { background: var(--paper); }
.run-item.active { border-color: var(--divider); background: var(--paper); box-shadow: 0 3px 12px rgba(36, 72, 59, .08); }
.run-health { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--tertiary); }
.run-health.ready { background: var(--green); }
.run-health.running, .run-health.in_progress { background: var(--blue); }
.run-health.interrupted, .run-health.attention, .run-health.needs_review, .run-health.unreviewed_bundle { background: var(--orange); }
.run-copy { min-width: 0; }
.run-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.run-copy small { display: block; margin-top: 2px; overflow: hidden; color: var(--tertiary); font: 500 9px var(--mono-font); text-overflow: ellipsis; white-space: nowrap; }
.run-ratio { color: var(--tertiary); font: 600 9px var(--mono-font); }
.capability-dock { padding: 11px 12px 14px; border-top: 1px solid var(--divider); }
.capability-dock p { margin: 0 0 8px; color: var(--tertiary); font: 600 9px var(--mono-font); text-transform: uppercase; }
.capability-mini { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-cap { padding: 2px 5px; border: 1px solid var(--divider); border-radius: 8px; background: var(--paper); color: var(--tertiary); font-size: 9px; }
.mini-cap.on { border-color: var(--mint); background: var(--green-soft); color: var(--green); }
.main-panel { min-width: 0; background: var(--level-2); }
.view { display: none; }
.view.active { display: block; }
.project-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 105px; padding: 19px 23px; border-bottom: 1px solid var(--divider); background: var(--paper); }
.project-heading { min-width: 0; }
.eyebrow-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 20px; color: var(--tertiary); font-size: 10px; }
.project-heading h3 { margin: 5px 0 1px; font-size: 21px; line-height: 1.2; }
.project-heading p { margin: 0; overflow: hidden; color: var(--secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.project-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.status-pill, .tool-pill { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 10px; font: 600 9px var(--mono-font); white-space: nowrap; }
.status-pill.ready, .status-pill.complete, .tool-pill.interactive { background: var(--green-soft); color: var(--green); }
.status-pill.running, .status-pill.in_progress, .tool-pill.remotion { background: var(--blue-soft); color: var(--blue); }
.status-pill.interrupted { background: var(--red-soft); color: var(--red); }
.status-pill.attention, .status-pill.needs_review, .status-pill.unreviewed_bundle, .tool-pill.manim { background: var(--orange-soft); color: var(--orange-dark); }
.tool-pill.image { background: var(--pink); color: #8A526C; }
.pipeline-strip { padding: 15px 23px 17px; border-bottom: 1px solid var(--divider); background: var(--level-3); }
.pipeline-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pipeline-title > div { display: flex; align-items: baseline; gap: 9px; }
.pipeline-title strong { font-size: 12px; }
.pipeline-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.pipeline-step { min-width: 0; padding-top: 7px; border-top: 3px solid var(--divider); }
.pipeline-step.done { border-color: var(--green); }
.pipeline-step.current { border-color: var(--blue); }
.pipeline-step.problem { border-color: var(--orange); }
.pipeline-step span { display: block; overflow: hidden; color: var(--tertiary); font: 500 9px var(--mono-font); text-overflow: ellipsis; white-space: nowrap; }
.pipeline-step strong { display: block; margin-top: 2px; font-size: 11px; }
.pipeline-step.done strong { color: var(--green); }
.pipeline-step.current strong { color: var(--blue); }
.pipeline-step.problem strong { color: var(--orange-dark); }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--divider); background: var(--paper); }
.metric-strip > div { min-width: 0; padding: 13px 16px; border-right: 1px solid var(--divider); }
.metric-strip > div:last-child { border-right: 0; }
.metric-strip span { display: block; color: var(--tertiary); font-size: 10px; font-weight: 600; }
.metric-strip strong { display: block; margin-top: 3px; font-size: 19px; line-height: 1.1; }
.metric-strip small { display: block; margin-top: 3px; overflow: hidden; color: var(--tertiary); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; align-items: end; gap: 21px; height: 45px; padding: 0 23px; border-bottom: 1px solid var(--divider); background: var(--paper); }
.tab { height: 45px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--tertiary); font-size: 12px; font-weight: 700; }
.tab:hover, .tab.active { color: var(--ink); }
.tab.active { border-bottom-color: var(--orange); }
.tab span { display: inline-flex; min-width: 15px; justify-content: center; margin-left: 4px; padding: 1px 4px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-dark); font: 600 9px var(--mono-font); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.canvas-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); min-height: 420px; }
.preview-pane, .scenes-pane, .health-pane, .log-pane { min-width: 0; padding: 19px 21px 22px; }
.preview-pane { border-right: 1px solid var(--divider); }
.scenes-pane, .health-pane { background: var(--level-3); }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 35px; margin-bottom: 12px; flex-wrap: wrap; }
.pane-head h4, .form-header h4 { margin: 3px 0 0; font-size: 14px; line-height: 1.2; }
.preview-actions { display: flex; align-items: center; gap: 6px; }
.preview-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--divider); border-radius: 8px; background: var(--ink); box-shadow: var(--shadow); }
.preview-stage > * { max-width: 100%; max-height: 100%; }
.preview-stage video, .preview-stage img, .preview-stage iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; background: var(--ink); }
.preview-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; color: var(--tertiary); }
.preview-empty span { font-size: 27px; }
.preview-empty p { margin: 6px 0 0; font-size: 11px; }
.preview-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-top: 9px; }
.preview-frame { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--divider); border-radius: 4px; background: var(--level-3); color: var(--tertiary); text-decoration: none; }
.preview-frame:hover { border-color: var(--orange); }
.preview-frame img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
.preview-frame span { display: block; padding: 4px 5px; overflow: hidden; font: 600 8px var(--mono-font); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.preview-audio { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; min-height: 27px; padding: 0 8px; border: 1px solid var(--divider); border-radius: 4px; background: var(--level-3); color: var(--tertiary); font-size: 10px; text-decoration: none; }
.preview-audio:hover { border-color: var(--orange); color: var(--ink); }
.preview-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 13px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.preview-meta > div { min-width: 0; padding: 9px 10px; border-right: 1px solid var(--divider); }
.preview-meta > div:first-child { padding-left: 0; }
.preview-meta > div:last-child { border-right: 0; }
.preview-meta span { display: block; color: var(--tertiary); font: 600 9px var(--mono-font); text-transform: uppercase; }
.preview-meta strong { display: block; margin-top: 3px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.issue-callout { margin-top: 12px; padding: 9px 11px; border-left: 3px solid var(--orange); background: var(--orange-soft); color: var(--orange-dark); font-size: 11px; }
.issue-callout strong { display: block; margin-bottom: 3px; }
.issue-callout ul { margin: 0; padding-left: 15px; }
.segmented { display: inline-flex; overflow: hidden; border: 1px solid var(--divider); border-radius: 3px; }
.segmented button { min-height: 27px; padding: 0 8px; border: 0; border-right: 1px solid var(--divider); background: var(--paper); color: var(--tertiary); font-size: 10px; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--ink); color: #fff; }
.tool-coverage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: 11px; }
.tool-stat { min-width: 0; padding: 7px; border: 1px solid var(--divider); border-radius: 3px; background: var(--paper); }
.tool-stat i { display: block; width: 14px; height: 3px; margin-bottom: 6px; background: var(--tertiary); }
.tool-stat.remotion i { background: var(--blue); }
.tool-stat.manim i { background: var(--orange); }
.tool-stat.image i { background: var(--pink); }
.tool-stat.interactive i { background: var(--green); }
.tool-stat strong { display: block; font-size: 14px; line-height: 1; }
.tool-stat span { display: block; margin-top: 4px; overflow: hidden; color: var(--tertiary); font: 600 8px var(--mono-font); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.scene-list { display: flex; flex-direction: column; gap: 4px; max-height: 408px; overflow: auto; }
.scene-row { width: 100%; min-height: 54px; display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px; border: 1px solid transparent; border-radius: 3px; background: transparent; text-align: left; }
.scene-row:hover, .scene-row.active { border-color: var(--divider); background: var(--paper); }
.scene-row.active { box-shadow: 0 3px 11px rgba(36, 72, 59, .07); }
.scene-number { color: var(--tertiary); font: 600 9px var(--mono-font); }
.scene-copy { min-width: 0; }
.scene-copy strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.scene-copy small { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 3px; overflow: hidden; color: var(--tertiary); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.scene-copy small i { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--tertiary); }
.scene-copy small i.passed { background: var(--green); }
.scene-copy small i.needs_review { background: var(--orange); }
.scene-copy small i.prepared, .scene-copy small i.planned { background: var(--blue); }
.scene-score { color: var(--tertiary); font: 600 9px var(--mono-font); white-space: nowrap; }
.empty-list { padding: 24px 8px; color: var(--tertiary); font-size: 11px; text-align: center; }
.request-form { max-width: 950px; margin: 0 auto; padding: 23px 26px 32px; }
.form-header { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.request-form label > span, .request-form legend { display: block; margin-bottom: 5px; color: var(--tertiary); font-size: 10px; font-weight: 700; }
.request-form input:not([type="checkbox"]):not([type="radio"]), .request-form select, .request-form textarea { width: 100%; border: 1px solid var(--divider); border-radius: 3px; outline: 0; background: var(--paper); }
.request-form input:not([type="checkbox"]):not([type="radio"]), .request-form select { height: 35px; padding: 0 9px; }
.request-form textarea { min-height: 68px; padding: 8px 9px; resize: vertical; line-height: 1.45; }
.request-form input:focus, .request-form textarea:focus, .request-form select:focus { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-soft); }
.renderer-section { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--divider); }
.section-heading-inline { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.section-heading-inline h5 { margin: 3px 0 0; font-size: 14px; }
.muted-copy { color: var(--tertiary); font-size: 10px; }
.renderer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.renderer-option { position: relative; min-height: 83px; display: grid; grid-template-columns: 29px minmax(0, 1fr) 15px; gap: 8px; align-items: start; padding: 11px; border: 1px solid var(--divider); border-radius: 3px; background: var(--paper); cursor: pointer; }
.renderer-option:hover, .renderer-option:has(input:checked) { border-color: var(--orange); }
.renderer-option:has(input:checked) { background: var(--orange-soft); }
.renderer-option input { position: absolute; opacity: 0; pointer-events: none; }
.renderer-symbol { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 3px; background: var(--blue-soft); color: var(--blue); font: 700 12px var(--mono-font); }
.renderer-option[data-renderer="manim"] .renderer-symbol { background: var(--orange-soft); color: var(--orange-dark); }
.renderer-option[data-renderer="image"] .renderer-symbol { background: var(--pink); color: #8A526C; }
.renderer-option[data-renderer="interactive"] .renderer-symbol { background: var(--green-soft); color: var(--green); }
.renderer-option strong { display: block; font-size: 11px; }
.renderer-option small { display: block; margin-top: 3px; color: var(--tertiary); font-size: 9px; line-height: 1.35; }
.renderer-option > i { width: 14px; height: 14px; border: 1px solid var(--divider); border-radius: 2px; background: var(--paper); }
.renderer-option:has(input:checked) > i { border-color: var(--orange); background: var(--orange); box-shadow: inset 0 0 0 3px var(--paper); }
.renderer-option.locked { cursor: default; }
.production-grid { display: grid; grid-template-columns: 1.3fr 1.3fr repeat(4, minmax(80px, .7fr)); gap: 10px; align-items: end; margin-top: 18px; }
.production-grid fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.theme-options { display: flex; height: 35px; overflow: hidden; border: 1px solid var(--divider); border-radius: 3px; }
.theme-options label { flex: 1; cursor: pointer; }
.theme-options input { position: absolute; opacity: 0; }
.theme-options span { height: 100%; display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0; color: var(--tertiary); font-size: 9px; font-weight: 700; }
.theme-options label + label span { border-left: 1px solid var(--divider); }
.theme-options input:checked + span { background: var(--ink); color: #fff; }
.theme-options i { width: 12px; height: 12px; border: 1px solid var(--divider); border-radius: 50%; background: var(--level-2); }
.theme-options .theme-dark { border-color: var(--secondary); background: var(--ink); }
.switch-row { height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; border: 1px solid var(--divider); border-radius: 3px; background: var(--paper); }
.switch-row > span { min-width: 0; margin: 0; }
.switch-row strong { display: block; font-size: 9px; }
.switch-row small { display: block; overflow: hidden; color: var(--tertiary); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row > i { position: relative; width: 28px; height: 16px; flex: 0 0 auto; border-radius: 8px; background: var(--divider); }
.switch-row > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); transition: transform .15s ease; }
.switch-row:has(input:checked) > i { background: var(--green); }
.switch-row:has(input:checked) > i::after { transform: translateX(12px); }
.form-actions { display: flex; justify-content: end; gap: 7px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--divider); }
.diagnostics-layout { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(350px, 1.3fr); min-height: 420px; }
.health-pane { border-right: 1px solid var(--divider); }
.pane-head.subhead { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--divider); }
.capability-list, .quality-list { display: flex; flex-direction: column; border-top: 1px solid var(--divider); }
.capability-row, .quality-row { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--divider); }
.capability-row span, .quality-row span { font-size: 11px; font-weight: 700; }
.capability-row small, .quality-row small { color: var(--tertiary); font-size: 10px; }
.state-dot { display: inline-flex; align-items: center; gap: 6px; }
.state-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.state-dot.on i { background: var(--green); }
.log-pane pre { min-height: 330px; max-height: 480px; margin: 0; padding: 13px; overflow: auto; border: 1px solid var(--divider); border-radius: 8px; background: var(--ink); color: #F3FBF5; font: 500 10px/1.7 var(--mono-font); white-space: pre-wrap; overflow-wrap: anywhere; }

/* The operation desk uses the same restrained surfaces as the showcase. */
.operation-heading h2 { font-weight: 400; font-size: 43px; letter-spacing: -1.5px; }
.operation-heading p { font-size: 13px; color: var(--secondary); }
.workspace { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); margin-top: 35px; }
.project-header { gap: 20px; }.project-heading { min-width: 0; }.project-heading h3 { overflow-wrap: anywhere; }
.request-form input, .request-form textarea, .request-form select { border-radius: 6px; }
.toast { position: fixed; z-index: 60; bottom: 24px; left: 50%; transform: translate(-50%, 15px); padding: 12px 20px; max-width: calc(100vw - 36px); width: max-content; border: 1px solid #566b52; background: var(--ink); border-radius: 8px; color: #fffefa; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }.toast.error { background: #883e35; border-color: #883e35; }
@media (max-width: 1100px) {
  .appbar { gap: 24px; }.top-nav { gap: 20px; }.hero-kicker { max-width: 300px; font-size: 8px; }.title-spark { font-size: 43px; }.experiment-heading h2 { font-size: 27px; }.experiment-topline { font-size: 7px; }.mini-label { font-size: 7px; }.capability-band { gap: 10px; }.capability-band > span { font-size: 10px; }.capability-band .band-label { max-width: 73px; font-size: 7px; }.pipeline-detail { padding: 30px; gap: 35px; }.pipeline-card { padding: 17px 12px; }.pipeline-card strong { font-size: 11px; }.pipeline-tool { font-size: 6px; }.pipeline-card-copy { font-size: 8px; }.repair-route { display: none; }
  .workspace { grid-template-columns: 205px minmax(0, 1fr); }.project-header { flex-direction: column; }.project-actions { justify-content: flex-start; }.canvas-layout { grid-template-columns: 1fr; }.production-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.renderer-grid { grid-template-columns: 1fr 1fr; }}
@media (max-width: 800px) {
  html { scroll-padding-top: 85px; }.appbar { height: 70px; padding-inline: 5vw; gap: 15px; }.appbar .product-name { font-size: 23px; }.appbar .product-mark { width: 30px; height: 30px; }.top-nav { gap: 16px; }.top-nav a { font-size: 10px; }.appbar-actions { margin-left: auto; gap: 5px; }.appbar-actions .button { font-size: 10px; min-height: 35px; padding: 7px 10px; }#refresh, .connection { display: none !important; }.hero-kicker { max-width: none; font-size: 8px; }.experiment-topline { font-size: 8px; }.experiment-heading h2 { font-size: 31px; }
  .capability-band { flex-wrap: wrap; padding-block: 20px; gap: 18px 25px; }.capability-band .band-label { flex-basis: 100%; max-width: none; font-size: 8px; }.capability-band > span { font-size: 11px; flex-basis: calc(50% - 15px); }
  .pipeline-section, .operation-section { padding-top: 64px; padding-bottom: 65px; }.section-intro h2 { font-size: 45px; }.section-aside { font-size: 11px; }.learning-features { gap: 20px; }.learning-features article + article { padding-left: 20px; }.learning-features h3 { font-size: 14px; }.learning-features p { font-size: 10px; }
  .pipeline-visual { overflow-x: auto; padding-bottom: 6px; grid-template-columns: repeat(5, minmax(150px, 1fr)); scrollbar-width: thin; scroll-snap-type: x proximity; }.pipeline-card { scroll-snap-align: start; }.pipeline-card strong { font-size: 12px; }.pipeline-tool { font-size: 7px; }.pipeline-card-copy { font-size: 9px; }.pipeline-detail { gap: 30px; padding: 25px; }.pipeline-detail-copy h3 { font-size: 24px; }.pipeline-detail-copy > p { font-size: 10px; }.blueprint-preview { padding-inline: 15px; }.blueprint-preview h4 { font-size: 18px; }.artifact-top { font-size: 7px; }.artifact-top > span:last-child { font-size: 6px; }.pipeline-cta h3 { font-size: 32px; }.pipeline-cta .button { font-size: 11px; white-space: nowrap; }.site-footer { gap: 18px; flex-wrap: wrap; }.site-footer .footer-engine { margin-left: auto; }.site-footer > a:last-child { display: none; }
  .workspace { grid-template-columns: 1fr; }.project-rail { border-right: 0; border-bottom: 1px solid var(--divider); }.run-list { min-height: 0; max-height: 200px; }.capability-dock { display: none; }.diagnostics-layout { grid-template-columns: 1fr; }.metric-strip { grid-template-columns: repeat(2, 1fr); }.project-header { padding: 22px 20px; }.project-heading h3 { font-size: 23px; }.project-actions { flex-wrap: wrap; }.pipeline-steps { overflow-x: auto; grid-template-columns: repeat(5, minmax(105px, 1fr)); }.operation-heading h2 { font-size: 35px; }}
@media (max-width: 520px) {
  .appbar { gap: 10px; }.top-nav { gap: 14px; }.top-nav a { font-size: 9px; }.top-nav a[href="#studio"] { display: none; }.appbar .product-name { font-size: 22px; }.appbar .product { gap: 7px; }.appbar .product-mark { width: 28px; height: 28px; }.appbar-actions .button { font-size: 9px; gap: 6px; padding: 7px 9px; }.hero-kicker { font-size: 7px; letter-spacing: .65px; }.title-spark { font-size: 42px; margin-left: 20px; }.experiment-heading { padding: 22px 21px 0; }.experiment-heading h2 { font-size: 28px; }.experiment-topline { padding-inline: 19px; font-size: 7px; }.experiment-description { margin-left: 21px; font-size: 10px; }.experiment-controls { padding-inline: 20px; }.experiment-topline .mini-label { display: none; }.balance-feedback { font-size: 9px; }.capability-band > span { font-size: 9px; gap: 8px; }.cap-icon { width: 27px; height: 27px; font-size: 18px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 18px; }.section-intro h2 { font-size: 43px; }.section-aside { font-size: 11px; margin: 0; }.section-aside br { display: none; }.section-index { font-size: 8px; }.learning-features { grid-template-columns: 1fr; gap: 22px; margin-top: 33px; }.learning-features article + article { border-left: 0; border-top: 1px solid var(--divider); padding: 20px 0 0; }.learning-features h3 { font-size: 16px; margin: 9px 0 6px; }.learning-features p { font-size: 11px; max-width: none; }
  .pipeline-detail { grid-template-columns: 1fr; gap: 25px; padding: 24px 20px; }.pipeline-detail-copy h3 { font-size: 28px; }.pipeline-detail-copy > p { font-size: 11px; }.artifact-top { font-size: 8px; }.artifact-top > span:last-child { font-size: 7px; }.blueprint-preview h4 { font-size: 23px; }.blueprint-row { padding: 9px 0; font-size: 10px; }.pipeline-cta { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 38px; }.pipeline-cta h3 { font-size: 32px; }.repair-note { align-items: flex-start; gap: 8px; }.repair-icon { font-size: 24px; }.repair-note p { font-size: 9px; line-height: 1.8; }.site-footer { gap: 12px; }.site-footer > span { font-size: 8px; }.site-footer .footer-engine { margin-left: 0; width: 100%; font-size: 7px; }
  .tabs { gap: 16px; overflow-x: auto; }.tab { white-space: nowrap; flex: none; font-size: 10px; }.preview-meta { grid-template-columns: repeat(2, 1fr); }.tool-coverage { grid-template-columns: repeat(2, 1fr); }.form-grid, .renderer-grid, .production-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }.section-heading-inline { flex-direction: column; align-items: flex-start; }.project-actions .button { font-size: 10px; padding-inline: 10px; }.pipeline-title { flex-wrap: wrap; }.pipeline-title strong { font-size: 14px; }}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }}
/* Classroom companions sit below the lesson experience, away from headings. */
.classroom-cast { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 22px; max-width: 660px; margin: 45px auto -18px; padding: 0 20px 5px; pointer-events: none; }
.classroom-cast::before { content: ""; position: absolute; left: 8%; right: 8%; height: 14px; bottom: 1px; border-radius: 50%; background: #e8ebdf; filter: blur(5px); }
.classroom-cast img { position: relative; width: 115px; height: 168px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 5px 3px #38462b0d); }
.classroom-cast img:nth-child(2) { height: 180px; }.classroom-cast img:nth-child(4) { width: 105px; }
@media (max-width: 520px) {
  .classroom-cast { gap: 8px; padding-inline: 0; margin-top: 30px; margin-bottom: -12px; }.classroom-cast img { width: calc((100% - 24px) / 4); height: 122px; }.classroom-cast img:nth-child(2) { height: 130px; }.classroom-cast img:nth-child(4) { width: calc((100% - 24px) / 4); }}
.nav-mobile { display: none; }
@media (max-width: 520px) {
  .nav-desktop { display: none; }.nav-mobile { display: inline; }.top-nav a, .appbar-actions .button { white-space: nowrap; }.top-nav { gap: 13px; }}
/* Three complete lessons share one player { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* ---- The composer: a lesson brief is the first thing on the page ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.compose-section { max-width: 880px; margin: auto; padding: 74px 20px 78px; }
.compose-intro { text-align: center; margin-bottom: 34px; }
.compose-intro h1 { position: relative; margin: 21px 0 20px; font-size: clamp(46px, 5.6vw, 76px); font-weight: 500; letter-spacing: -3.4px; line-height: 1.03; }
.compose-intro h1 em { font-family: var(--display-font); font-weight: 400; color: var(--orange); letter-spacing: -2.4px; }
.compose-intro .title-spark { font-size: 40px; margin-left: 14px; }
.compose-lede { max-width: 540px; margin: 0 auto; color: var(--secondary); font-size: 14px; line-height: 1.8; }

.composer-shell { border: 1px solid #d7dacd; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-deep); overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.composer-shell:focus-within { border-color: #b3bfa4; box-shadow: 0 0 0 4px #e9eee0, var(--shadow-deep); }
.composer-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--divider-soft); background: #fbfbf6; }
.composer-chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border: 1px solid var(--divider); border-radius: 999px; background: var(--level-3); cursor: text; transition: border-color .15s, background .15s; }
.composer-chip:hover { border-color: #bcc7ae; }
.composer-chip:focus-within { border-color: #a6b197; background: #f3f6ec; }
.composer-chip > span { font: 8px var(--mono-font); letter-spacing: .9px; text-transform: uppercase; color: #8d9482; flex: none; }
.composer-chip input, .composer-chip select { border: 0; background: none; padding: 0; font-size: 12px; min-width: 0; width: 170px; }
.composer-chip select { cursor: pointer; width: auto; }
.composer-chip input:focus, .composer-chip select:focus { outline: none; }
.composer-chip input::placeholder { color: #9aa08f; opacity: 1; }

.composer-prompt { display: block; padding: 20px 21px 6px; cursor: text; }
.composer-prompt textarea { width: 100%; border: 0; background: none; padding: 0; resize: none; font-size: 19px; line-height: 1.62; letter-spacing: -.3px; min-height: 92px; }
.composer-prompt textarea:focus { outline: none; }
.composer-prompt textarea::placeholder { color: #a2a795; opacity: 1; }

.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px 14px 18px; }
.composer-key { display: inline-flex; align-items: center; gap: 9px; flex: 1 1 auto; min-width: 0; max-width: 320px; padding: 8px 14px; border: 1px solid var(--divider); border-radius: 999px; background: var(--level-3); cursor: text; transition: border-color .15s, background .15s; }
.composer-key:hover { border-color: #bcc7ae; }
.composer-key:focus-within { border-color: #a6b197; background: #f3f6ec; }
.composer-key > span[aria-hidden] { font: 8px var(--mono-font); letter-spacing: .9px; text-transform: uppercase; color: #8d9482; flex: none; }
/* The static Pages build states the missing backend once, in its own note. */
body[data-static] #lesson-config-note { display: none; }
.composer-key input { flex: 1; min-width: 0; border: 0; background: none; padding: 0; font-size: 12px; }
.composer-key input:focus { outline: none; }
.composer-key input::placeholder { color: #9aa08f; opacity: 1; }
.composer-submit { flex: none; border-radius: 999px; padding-inline: 22px; }
.composer-note { margin: 13px 2px 0; text-align: center; color: #8b917f; font-size: 10px; line-height: 1.7; }

.starter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin-top: 34px; }
.starter-label { font: 8px var(--mono-font); letter-spacing: 1px; text-transform: uppercase; color: #949a88; margin-right: 4px; }
.starter-chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px; border: 1px solid var(--divider); border-radius: 999px; background: var(--paper); font-size: 11px; color: var(--ink); text-align: left; transition: border-color .18s, background .18s, transform .18s; }
.starter-chip:hover { border-color: #c4a289; background: var(--orange-soft); transform: translateY(-1px); }
.starter-kicker { font: 7px var(--mono-font); letter-spacing: .8px; color: #99a08c; flex: none; }
.starter-chip:hover .starter-kicker { color: #b07a56; }

/* ---- A live piece of a lesson, in place of the finished-lesson players ---- */
.try-section { padding: 88px max(5vw, calc((100vw - 1260px) / 2)); background: #fffefa; }
.try-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; align-items: center; margin-top: 44px; }
.try-aside .classroom-cast { margin: 0 0 30px; justify-content: flex-start; max-width: none; padding: 0 0 5px; }
.try-aside .classroom-cast img { width: 96px; height: 140px; }
.try-aside .classroom-cast img:nth-child(2) { height: 150px; }
.try-aside .learning-features { grid-template-columns: 1fr; margin-top: 0; gap: 0; }
.try-aside .learning-features article + article { border-left: 0; border-top: 1px solid var(--divider); padding: 21px 0 0; margin-top: 21px; }
.try-aside .learning-features p { max-width: none; }

/* ---- The lesson brief form, shared with the build progress panel ---- */
.lesson-eyebrow { font: 500 9px/1.7 var(--mono-font); letter-spacing: 1.15px; color: var(--secondary); }
.lesson-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.lesson-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.lesson-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 21px; min-width: 0; }
.lesson-field > span, .lesson-media legend { font-size: 12px; font-weight: 600; }
.lesson-field > span small { font-size: 10px; color: #858b7e; margin-left: 6px; font-weight: 400; }
.lesson-field input, .lesson-field select, .lesson-field textarea { width: 100%; min-width: 0; border: 1px solid #dedfd5; border-radius: 7px; background: #fcfcf8; padding: 12px 13px; font-size: 12px; line-height: 1.6; transition: border-color .15s, box-shadow .15s; }
.lesson-field textarea { resize: vertical; min-height: 94px; }
.lesson-field input::placeholder, .lesson-field textarea::placeholder { color: #909487; opacity: 1; }
.lesson-field input:focus, .lesson-field select:focus, .lesson-field textarea:focus { border-color: #a6b197; box-shadow: 0 0 0 3px #e8eddf; outline: none; }
.lesson-hint { margin: 0; color: var(--secondary); font-size: 10px; line-height: 1.65; font-weight: 400; }
.lesson-options { border: 1px solid var(--divider-soft); border-radius: 11px; background: #fbfbf6; margin-top: 12px; padding: 0 18px; }
.lesson-options summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 15px 0; font-size: 12px; font-weight: 500; list-style: none; }
.lesson-options summary::-webkit-details-marker { display: none; }
.lesson-options summary small { font-size: 10px; font-weight: 400; color: var(--secondary); margin-left: 8px; }
.lesson-options summary > span:last-child { font-size: 19px; color: #8a937f; line-height: 1; transition: transform .2s; }
.lesson-options[open] summary > span:last-child { transform: rotate(45deg); }
.lesson-options-content { padding: 6px 0 19px; border-top: 1px solid var(--divider-soft); margin-top: -1px; }
.lesson-options-content .lesson-field:first-child { margin-top: 19px; }
.lesson-media { min-width: 0; border: 0; margin: 0; padding: 0; }
.lesson-media legend { padding: 0; margin-bottom: 10px; }
.lesson-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }
.lesson-media-grid label { display: flex; gap: 10px; align-items: start; padding: 12px 10px; border: 1px solid var(--divider); border-radius: 6px; background: var(--paper); cursor: pointer; }
.lesson-media-grid label:has(input:checked) { background: #f3f5ec; border-color: #c3cdb7; }
.lesson-media-grid label.is-unavailable { opacity: .5; cursor: default; }
.lesson-media-grid input { accent-color: var(--ink); width: 15px; height: 15px; flex: none; margin: 2px 0 0; }
.lesson-media-grid strong { display: block; font-size: 11px; font-weight: 500; }
.lesson-media-grid small { display: block; margin-top: 3px; color: var(--secondary); font-size: 9px; line-height: 1.5; }
.lesson-error, .lesson-notice { margin: 15px 0 0; padding: 12px 14px; border-radius: 6px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.lesson-error { background: var(--red-soft); border: 1px solid #e8c6be; color: #923e34; }
.lesson-notice { background: var(--amber-soft); border: 1px solid #e7d9ba; color: #86682f; }
.lesson-fields:disabled input, .lesson-fields:disabled textarea, .lesson-fields:disabled select { opacity: .7; }
.lesson-fields:disabled .lesson-media-grid label { cursor: default; }

.lesson-process-card { margin-top: 40px; padding: 30px 30px 26px; border: 1px solid #d9dfce; border-radius: 13px; background: #eff2e7; }
.lesson-process-card > .lesson-eyebrow { font-size: 8px; letter-spacing: .95px; }
.lesson-process-card h2 { margin: 16px 0 12px; font: 400 30px/1.12 var(--display-font); letter-spacing: -.65px; overflow-wrap: anywhere; }
.lesson-process-copy { color: #78816d; font-size: 12px; line-height: 1.8; margin: 0; overflow-wrap: anywhere; }
.lesson-stages { padding: 0; margin: 26px 0 0; list-style: none; }
.lesson-stages li { position: relative; display: flex; gap: 13px; align-items: flex-start; padding-bottom: 24px; }
.lesson-stages li:last-child { padding-bottom: 0; }
.lesson-stages li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 4px; width: 1px; background: #d9dfce; }
.lesson-stage-number { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid #d3dbc7; border-radius: 50%; font: 9px var(--mono-font); color: #89947b; }
.lesson-stages li > div { padding-top: 3px; }
.lesson-stages strong { display: block; font-size: 12px; font-weight: 500; color: #5e6c54; }
.lesson-stages [data-stage-detail] { display: block; font-size: 10px; color: #87907b; line-height: 1.6; margin-top: 5px; }
.lesson-stage-check { margin-left: auto; padding-top: 4px; font-size: 12px; color: #567047; }
.lesson-stages .is-current .lesson-stage-number { border-color: var(--ink); background: var(--ink); color: white; box-shadow: 0 0 0 4px #dee5d6; }
.lesson-stages .is-current strong { color: var(--ink); }
.lesson-stages .is-done .lesson-stage-number { background: #e0e8d6; color: #49633c; border-color: #c4d2b6; }
.lesson-live { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-top: 17px; border: 1px solid #d6ddca; border-radius: 6px; color: #526147; background: #f8faf3; font-size: 11px; }
.lesson-status-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #829970; }
.lesson-live[data-status="running"] .lesson-status-dot { animation: lesson-pulse 1.8s ease-in-out infinite; }
.lesson-live[data-status="failed"], .lesson-live[data-status="interrupted"], .lesson-live[data-status="needs_attention"] { color: #8a5b32; border-color: #e1d0b1; background: #f8f0e0; }
.lesson-live[data-status="failed"] .lesson-status-dot, .lesson-live[data-status="interrupted"] .lesson-status-dot, .lesson-live[data-status="needs_attention"] .lesson-status-dot { background: #bd864d; }
.lesson-result { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lesson-start-over { background: transparent; border: 0; padding: 8px; color: #67775c; font-size: 11px; }
.lesson-start-over:hover { color: var(--orange); }
.lesson-timing { padding-top: 20px; border-top: 1px solid #d9dfce; color: #8a927e; margin: 25px 0 0; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.lesson-connection-note { color: #93652f; background: #f8f0e0; padding: 10px; border-radius: 5px; font-size: 10px; line-height: 1.7; }
@keyframes lesson-pulse { 50% { opacity: .3; } }

@media (max-width: 1100px) {
  .try-stage { grid-template-columns: 1fr; gap: 38px; }.try-aside .classroom-cast { justify-content: center; }
}
@media (max-width: 730px) {
  .compose-section { padding: 46px 18px 54px; }.compose-intro h1 { font-size: 50px; letter-spacing: -2.4px; }.compose-intro .title-spark { font-size: 32px; margin-left: 9px; }.compose-lede { font-size: 13px; }
  .composer-prompt { padding: 17px 16px 4px; }.composer-prompt textarea { font-size: 16px; min-height: 84px; }
  .composer-foot { flex-direction: column; align-items: stretch; padding: 12px; }.composer-key { max-width: none; }.composer-submit { width: 100%; }
  .composer-bar { padding: 10px; }.composer-chip { padding: 6px 11px; }.composer-chip input { width: 118px; }
  .starter-row { margin-top: 26px; gap: 7px; }.starter-chip { font-size: 10px; padding: 8px 12px; gap: 7px; }
  .try-section { padding-top: 60px; padding-bottom: 62px; }.try-stage { margin-top: 32px; }
  .lesson-process-card { padding: 26px 22px; }.lesson-process-card h2 { font-size: 26px; }.lesson-process-card h2 br { display: none; }
}
@media (max-width: 520px) {
  .compose-intro h1 { font-size: 42px; }.starter-label { width: 100%; text-align: center; margin: 0 0 3px; }
  .lesson-media-grid { grid-template-columns: 1fr; }
  .composer-chip { width: 100%; }.composer-chip input, .composer-chip select { width: 100%; flex: 1; }
}
