/* Approved M12 component geometry, scoped to Chapter 02. No M12 teaching content or mission art. */
body[data-course="chapter02-mission02"] .level-scene{background:radial-gradient(circle at 50% 40%,#253427 0,#080d0a 47%,#020403 80%)!important}
body[data-course="chapter02-mission02"] .briefing-scene{background:linear-gradient(#07100de8,#030504f5)!important}
body[data-course="chapter02-mission02"] .complete-scene{background-image:none!important}

/* One mission-local accent restores the accepted M01 Vocabulary, CTA and Briefing hierarchy. */
body[data-course="chapter02-mission02"] .cinema-app{--accent:#a7db3b!important}
body[data-course="chapter02-mission02"] .language-panel h3,
body[data-course="chapter02-mission02"] .improve-challenge h3{color:var(--accent)!important}
body[data-course="chapter02-mission02"] .listen{border-color:var(--accent)!important;color:var(--accent)!important}
body[data-course="chapter02-mission02"] .learn-controls .challenge,
body[data-course="chapter02-mission02"] .start-quiz{background:var(--accent)!important;border-color:var(--accent)!important;color:#071008!important;opacity:1!important;visibility:visible!important}

body[data-course="chapter02-mission02"] .learn-scene{padding-left:12px!important;padding-right:12px!important;overflow-x:hidden!important}
body[data-course="chapter02-mission02"] .learn-layout{width:100%!important;max-width:100%!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
body[data-course="chapter02-mission02"] .hotbar{order:1!important;width:100%!important;max-width:100%!important;display:grid!important;grid-template-columns:repeat(6,minmax(42px,54px))!important;justify-content:center!important;gap:7px!important;overflow:visible!important}
body[data-course="chapter02-mission02"] .hotbar button{width:100%!important;min-width:0!important;height:52px!important}
body[data-course="chapter02-mission02"] .hotbar button img{display:block!important;width:34px!important;height:34px!important;margin:auto!important;object-fit:contain!important}
body[data-course="chapter02-mission02"] .cinema-app[data-level] .item-stage{order:2!important;width:100%!important;max-width:100%!important;height:230px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
body[data-course="chapter02-mission02"] .cinema-app[data-level] .item-art{position:static!important;display:block!important;width:170px!important;height:170px!important;max-width:65vw!important;max-height:65vw!important;margin:0 auto!important;transform:none!important;object-fit:contain!important;object-position:center!important}
body[data-course="chapter02-mission02"] .language-panel{order:3!important;width:100%!important;max-width:100%!important;border-left:0!important;border-top:1px solid #41573d!important;padding:18px 10px!important;text-align:center!important}
body[data-course="chapter02-mission02"] :is(.mission-use,.speech){text-align:left!important}
body[data-course="chapter02-mission02"] .speech{grid-template-columns:64px minmax(0,1fr)!important;align-items:center!important}
body[data-course="chapter02-mission02"] .speech>.safety-officer{display:block!important;width:60px!important;height:60px!important;object-fit:contain!important;object-position:center bottom!important;align-self:end!important;filter:drop-shadow(0 4px 5px rgba(0,0,0,.45))!important}
body[data-course="chapter02-mission02"] .speech>div>small:before{content:"XM安全员 · ";color:#d7e5d8}
body[data-course="chapter02-mission02"] .quiz-item-art,body[data-course="chapter02-mission02"] .build-part img{object-fit:contain!important;object-position:center!important}
body[data-course="chapter02-mission02"] .cinema-app[data-level] .quiz-item-art{display:block!important;width:82px!important;height:82px!important;max-width:100%!important;max-height:none!important;margin:18px auto 0!important}
@media (width<=760px){
  body[data-course="chapter02-mission02"] .intro-scene{background-position:58% center!important}
  body[data-course="chapter02-mission02"] .hotbar{grid-template-columns:repeat(3,40px)!important;gap:5px!important}
  body[data-course="chapter02-mission02"] .hotbar button{height:46px!important}
  body[data-course="chapter02-mission02"] .hotbar button img{width:30px!important;height:30px!important}
  body[data-course="chapter02-mission02"] .cinema-app[data-level] .item-stage{height:230px!important}
  body[data-course="chapter02-mission02"] .cinema-app[data-level] .item-art{width:170px!important;height:170px!important}
  body[data-course="chapter02-mission02"] .cinema-app[data-level] .quiz-item-art{width:82px!important;height:82px!important;max-width:100%!important;max-height:none!important}
  body[data-course="chapter02-mission02"] .speech{grid-template-columns:54px minmax(0,1fr)!important}
  body[data-course="chapter02-mission02"] .speech>.safety-officer{width:50px!important;height:50px!important}
}

body[data-course="chapter02-mission02"] .cinema-options[translate="no"],
body[data-course="chapter02-mission02"] .answer-bar[translate="no"]{unicode-bidi:isolate}

/* Mission 12 A2 retains its approved green level identity. */
body[data-course="chapter02-mission02"] .character-stage.green{--stage:#a7db3b}

/* Missing website art is explicit; no classroom illustration is loaded. */
body[data-course="chapter02-mission02"] .intro-scene,body[data-course="chapter02-mission02"] .level-scene,body[data-course="chapter02-mission02"] .briefing-scene,body[data-course="chapter02-mission02"] .complete-scene{background-color:#07100c!important}
.audio-preview-banner{margin:0;padding:9px 18px;background:#392b0e;color:#ffe098;border-bottom:1px solid #876320;font:13px/1.5 Arial,"Microsoft YaHei",sans-serif;text-align:center}
.audio-pending{display:inline-block;margin-left:7px;padding:1px 4px;border:1px solid #b7944d;color:#efce86;font-size:10px;line-height:1.4;vertical-align:middle}
.scene-focus{height:0;outline:0}.loading-message{padding:40px 20px;text-align:center}
.hero-missing{position:absolute;top:12px;right:16px;z-index:2;font:11px/1.5 Arial,"Microsoft YaHei",sans-serif;color:#a7b7a8;max-width:calc(100% - 32px);text-align:right}
.asset-missing{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;background:#101d14;border:1px dashed #69816a;color:#bdcbbd;font:12px/1.5 Arial,"Microsoft YaHei",sans-serif;text-align:center;padding:8px;overflow-wrap:anywhere;box-sizing:border-box}
.asset-missing small{font:inherit;color:#a9b9a9}
.hotbar .asset-missing{padding:1px;font-size:8px}.hotbar .asset-missing small,.build-part .asset-missing small{display:none}
.hotbar .asset-missing{width:34px;height:34px;margin:auto}
.build-part .asset-missing{width:44px;height:44px;padding:2px;font-size:9px}
.badge-dialog .asset-missing{width:min(330px,100%);min-height:190px;margin:5px auto 12px}
body[data-course] .cinema-options button:disabled{opacity:1;cursor:default}
body[data-course] .answer-bar{gap:12px}
body[data-course] .answer-bar p{margin:6px 0;font-size:12px;line-height:1.6}
body[data-course] .cinema-header b{overflow-wrap:anywhere}
body[data-course] .character-stage.green{--stage:#a7db3b}
@media(width<=760px){
 body[data-course] .intro-copy{width:100%;padding:48px 18px 28px}
 body[data-course] .intro-copy h1{font-size:clamp(46px,14vw,64px);overflow-wrap:anywhere}
 body[data-course] .intro-copy h2{max-width:100%;overflow-wrap:anywhere}
 body[data-course] .parchment{bottom:20px}
 body[data-course] .mission-line{flex-wrap:wrap}
 body[data-course] .hotbar .asset-missing{width:30px;height:30px}
 body[data-course] .answer-bar{flex-direction:column;align-items:stretch}
 body[data-course] .cinema-header{height:auto;min-height:58px}
 body[data-course] .cinema-header b{font-size:8px}
 .audio-preview-banner{font-size:11px}
}

/* Approved Chapter 02 hero; production geometry remains intact. */
body[data-course="chapter02-mission02"] .complete-scene{background-image:url(images/mission-scenes/mission-briefing-farm-layout.png)!important}
body[data-course="chapter02-mission02"] .level-scene{background:radial-gradient(circle at 50% 40%,#253427 0,#080d0a 47%,#020403 80%),url(images/mission-scenes/mission-briefing-farm-layout.png) 50%/cover fixed!important}
body[data-course="chapter02-mission02"] .briefing-scene{background:linear-gradient(#07100de8,#030504f5),url(images/mission-scenes/mission-briefing-farm-layout.png) 50%/cover fixed!important}

/* Independent answer and audio controls share one visual option card. */

/* Final Human QA: local presentation only; approved data and media stay unchanged. */
body[data-course="chapter02-mission02"] .audio-icon{color:var(--accent);font-style:normal;margin-left:8px;flex-shrink:0}
body[data-course="chapter02-mission02"] .improve-challenge>div{min-width:0}
body[data-course="chapter02-mission02"] .improve-challenge p{margin-top:8px}
body[data-course="chapter02-mission02"] .quiz-scene .quiz-prompt-zh{margin:24px 0 10px;font-size:25px;line-height:1.5}
body[data-course="chapter02-mission02"] .quiz-scene .quiz-prompt-en{margin:0 0 14px;color:#c4cbc5;font-size:13px;line-height:1.7}
body[data-course="chapter02-mission02"] .quiz-option-row{display:flex;align-items:stretch;min-width:0;border:1px solid #445345;background:#0d140f}
body[data-course="chapter02-mission02"] .quiz-option-row>button:first-child{flex:1;min-width:0;border:0;overflow-wrap:anywhere;text-align:left}
body[data-course="chapter02-mission02"] .quiz-option-row>.option-audio{flex:0 0 44px;min-width:44px;border:0;border-left:1px solid #445345;padding:8px;color:var(--accent)}
body[data-course="chapter02-mission02"] .cinema-options{grid-template-columns:minmax(0,1fr)}
body[data-course="chapter02-mission02"] .audio-control:focus-visible,
body[data-course="chapter02-mission02"] .quiz-option-row button:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
@media(max-width:760px){
 body[data-course="chapter02-mission02"] .cinema-options{grid-template-columns:minmax(0,1fr)}
 body[data-course="chapter02-mission02"] .quiz-scene .quiz-prompt-zh{font-size:22px;margin-top:20px}
}
@media(max-width:430px){
 body[data-course="chapter02-mission02"] .cinema-app[data-level] .item-stage{height:200px!important}
 body[data-course="chapter02-mission02"] .cinema-app[data-level] .item-art{width:min(145px,72vw)!important;height:min(145px,72vw)!important}
}

/* Human QA visual alignment; teaching content and interaction logic are unchanged. */
body[data-course="chapter02-mission02"] .intro-copy h2{font-size:17px;line-height:1.45}
body[data-course="chapter02-mission02"] .intro-copy h2>span{display:block}
body[data-course="chapter02-mission02"] .intro-copy h2>span[lang="zh-CN"]{margin-top:4px;font-size:15px}
body[data-course="chapter02-mission02"] .quiz-option-row{min-height:64px}
body[data-course="chapter02-mission02"] .quiz-option-row>button:first-child{padding:12px;line-height:1.5}
body[data-course="chapter02-mission02"] .quiz-option-row>.option-audio{display:flex;align-items:center;justify-content:center}
body[data-course="chapter02-mission02"] .answer-success>div>b{display:block;color:var(--accent);font-size:14px;line-height:1.5}
@media(max-width:760px){
 body[data-course="chapter02-mission02"] .intro-copy h2{font-size:15px}
 body[data-course="chapter02-mission02"] .intro-copy h2>span[lang="zh-CN"]{font-size:14px}
 body[data-course="chapter02-mission02"] .quiz-option-row{min-height:60px}
}

/* HQA-45: Briefing-only spacing, based on the approved First Shelter frame. */
body[data-course="chapter02-mission02"] .briefing-scene .briefing-board{margin:28px auto 0;padding:28px;min-width:0}
body[data-course="chapter02-mission02"] .briefing-scene .briefing-board>header{padding-top:8px;padding-bottom:20px;column-gap:25px}
body[data-course="chapter02-mission02"] .briefing-scene .task-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;padding:22px 0}
body[data-course="chapter02-mission02"] .briefing-scene .task-columns>article{min-width:0;padding:18px}
body[data-course="chapter02-mission02"] .briefing-scene .improve-challenge{margin:0;gap:18px;padding:16px 18px}
body[data-course="chapter02-mission02"] .briefing-scene .briefing-board>footer{min-width:0;gap:22px;margin-top:18px;padding-top:18px}
body[data-course="chapter02-mission02"] .briefing-scene .briefing-board>footer>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){
 body[data-course="chapter02-mission02"] .briefing-scene .briefing-board{margin-top:16px;padding:18px 14px}
 body[data-course="chapter02-mission02"] .briefing-scene .briefing-board>header{padding-top:6px}
 body[data-course="chapter02-mission02"] .briefing-scene .task-columns{grid-template-columns:minmax(0,1fr);gap:12px;padding:14px 0}
 body[data-course="chapter02-mission02"] .briefing-scene .task-columns>article{padding:14px}
 body[data-course="chapter02-mission02"] .briefing-scene .improve-challenge{padding:14px}
}


body[data-course="chapter02-mission02"] .step-zh{writing-mode:horizontal-tb;word-break:normal}

/* First Shelter page geometry with the original 4:3 farm artwork. */
body[data-course="chapter02-mission02"] .intro-scene {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,330px);
  align-items:start; gap:24px; height:auto; min-height:max(620px,calc(100svh - 105px));
  padding:0 28px 32px; background-image:var(--farm-hero);
  background-repeat:no-repeat; background-position:58% center!important; background-size:cover;
}
body[data-course="chapter02-mission02"] .intro-copy { width:auto; padding:68px 0 28px 18px; }
body[data-course="chapter02-mission02"] .mission-line { padding:0; list-style:none; }
body[data-course="chapter02-mission02"] .mission-line li { display:flex; align-items:center; gap:8px; }
body[data-course="chapter02-mission02"] .mission-line li:not(:last-child)::after { content:""; width:clamp(8px,2vw,26px); height:1px; background:#50604f; }
body[data-course="chapter02-mission02"] .parchment {
  position:relative; inset:auto!important; width:100%!important; align-self:end; box-sizing:border-box;
}
/* The bilingual briefing uses the approved Chapter 02 Mission 01 layout. */
body[data-course="chapter02-mission02"] .briefing-scene .level-target {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:start; gap:8px 20px; margin:12px 0 0; padding:8px 12px;
  border-left:2px solid var(--accent); background:#0c120e;
}
body[data-course="chapter02-mission02"] .level-target .audio-control,
body[data-course="chapter02-mission02"] .level-target > p {
  min-width:0; margin:0; white-space:normal; overflow-wrap:anywhere;
  text-align:left; font-size:11px; line-height:1.6; color:#e4e8e4;
}
body[data-course="chapter02-mission02"] .task-columns .step-zh { grid-column:2; margin:2px 0 0; line-height:1.5; }
body[data-course="chapter02-mission02"] .complete-scene > h2 { margin:7px 0; }
body[data-course="chapter02-mission02"] .complete-scene .badge-completion h2 { font-size:clamp(24px,5vw,36px); line-height:1.3; }
@media(max-width:760px) {
  body[data-course="chapter02-mission02"] .intro-scene {
    grid-template-columns:minmax(0,1fr); gap:16px; padding:0 14px 20px;
    background-position:center top!important; background-size:auto max(360px,75vw);
  }
  body[data-course="chapter02-mission02"] .intro-copy { padding:48px 4px 24px; }
  body[data-course="chapter02-mission02"] .parchment { justify-self:end; max-width:310px; }
  body[data-course="chapter02-mission02"] .briefing-scene .level-target {
    grid-template-columns:minmax(0,1fr); gap:4px; margin-top:10px; padding:8px 10px;
  }
}
