/*
 * L01 classic agency scene skin.
 * Visual layer only: the verified L01 runtime, RPG workbench and signatures stay authoritative.
 */
body[data-lesson="L01"].prototype-scene-page{
  --prototype-drawer:78px;
  --prototype-drawer-open:292px;
  --prototype-dialogue:182px;
  --l01-paper:#f8f4ec;
  --l01-paper-solid:#fffdf8;
  --l01-ink:#39312a;
  --l01-muted:#7d7063;
  --l01-line:#d7c8b5;
  --l01-gold:#b48955;
  --l01-shadow:0 18px 48px rgba(92,72,51,.18);
  background:#ded5c8!important;
}

body[data-lesson="L01"].prototype-scene-page .prototype-scene-shell{
  background:#ded5c8;
  color:var(--l01-ink);
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer{
  background:rgba(250,247,240,.98);
  border-right:1px solid rgba(180,137,85,.54);
  box-shadow:8px 0 30px rgba(80,64,48,.11);
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer-head{
  height:74px;
  justify-content:center;
  padding:10px 12px;
  border-bottom:1px solid rgba(180,137,85,.25);
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer-toggle{
  width:48px;
  height:48px;
  flex-basis:48px;
  border:1px solid rgba(180,137,85,.72);
  border-radius:0;
  background:#faf7f0;
  box-shadow:none;
  color:#8a6038;
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer:not(.open) .prototype-drawer-brand{
  display:none;
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer.open .prototype-drawer-head{
  justify-content:flex-start;
}

body[data-lesson="L01"].prototype-scene-page .prototype-lesson-ring{
  width:48px;
  height:48px;
  margin:18px auto 10px;
  background:transparent;
  box-shadow:none;
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer-nav{
  gap:1px;
  padding:2px 7px 58px;
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer:not(.open) .prototype-drawer-nav button,
body[data-lesson="L01"].prototype-scene-page .prototype-drawer:not(.open) .prototype-drawer-nav a{
  grid-template-columns:1fr;
  grid-template-rows:22px auto;
  justify-items:center;
  min-height:58px;
  padding:5px 2px 4px;
  text-align:center;
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer:not(.open) .prototype-nav-icon{
  width:auto;
  font-size:8px;
  letter-spacing:.06em;
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer:not(.open) .prototype-nav-label{
  max-width:62px;
  padding:0;
  overflow:hidden;
  color:#655a50;
  font-size:8.5px;
  line-height:1.22;
  white-space:normal;
  text-align:center;
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer:not(.open) .prototype-nav-label small{
  display:none;
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer.open .prototype-nav-label{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer-nav button:hover,
body[data-lesson="L01"].prototype-scene-page .prototype-drawer-nav button.active,
body[data-lesson="L01"].prototype-scene-page .prototype-drawer-nav a:hover{
  background:#efe6d9;
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer-foot{
  width:78px;
  left:0;
  right:auto;
  bottom:8px;
  padding:0 7px;
  color:#9a8875;
  font-size:7px;
  line-height:1.45;
  letter-spacing:.08em;
  text-align:center;
}

body[data-lesson="L01"].prototype-scene-page .prototype-drawer.open .prototype-drawer-foot{
  width:292px;
  padding:0 18px;
  text-align:left;
}

body[data-lesson="L01"].prototype-scene-page .prototype-stage{
  background:#ddd3c6;
}

body[data-lesson="L01"].prototype-scene-page .prototype-scene-bg{
  background-image:url('../assets/story/bg/bg_l01_interview.jpg');
  background-position:center;
  filter:saturate(.7) contrast(.93) brightness(1.035);
  transform:scale(1.005);
}

body[data-lesson="L01"].prototype-scene-page[data-scene-act="waiting"] .prototype-scene-bg{background-image:url('../assets/story/bg/bg_l01_waiting-v1.webp')}
body[data-lesson="L01"].prototype-scene-page[data-scene-act="field"] .prototype-scene-bg{background-image:url('../assets/story/bg/bg_l01_field-v1.webp')}
body[data-lesson="L01"].prototype-scene-page[data-scene-act="review"] .prototype-scene-bg{background-image:url('../assets/story/bg/bg_l01_review-v1.webp')}

body[data-lesson="L01"].prototype-scene-page .prototype-scene-shade{
  background:
    linear-gradient(90deg,rgba(247,241,232,.08),rgba(247,241,232,.12) 42%,rgba(246,240,231,.28)),
    linear-gradient(0deg,rgba(232,222,210,.38),transparent 52%);
}

body[data-lesson="L01"].prototype-scene-page .prototype-scene-grain{
  opacity:.035;
}

body[data-lesson="L01"].prototype-scene-page .prototype-stage .c3-topbar{
  display:none;
}

body[data-lesson="L01"].prototype-scene-page .prototype-stage-meta{
  left:50%;
  right:auto;
  top:17px;
  width:292px;
  max-width:292px;
  min-height:112px;
  margin-left:-146px;
  padding:17px 22px 14px;
  box-sizing:border-box;
  background:rgba(255,253,248,.94);
  color:var(--l01-ink);
  border:1px solid rgba(180,137,85,.34);
  box-shadow:var(--l01-shadow);
  text-align:center;
}

body[data-lesson="L01"].prototype-scene-page .prototype-stage-meta::before{
  content:"L01";
  display:block;
  color:#8b5f32;
  font:500 28px/1 var(--prototype-serif);
  letter-spacing:.08em;
}

body[data-lesson="L01"].prototype-scene-page .prototype-stage-meta h1{
  margin:8px 0 5px;
  overflow:hidden;
  color:#4b3c30;
  font:700 18px/1.25 var(--prototype-serif);
  text-overflow:ellipsis;
  white-space:nowrap;
}

body[data-lesson="L01"].prototype-scene-page .prototype-stage-meta p{
  display:none;
}

body[data-lesson="L01"].prototype-scene-page .prototype-stage-meta .prototype-kicker{
  margin-top:7px;
  color:#9b744d;
  font-size:8px;
  letter-spacing:.22em;
}

body[data-lesson="L01"].prototype-scene-page .prototype-hud{
  position:fixed;
  z-index:9;
  top:22px;
  right:24px;
  display:grid;
  grid-template-columns:repeat(3,minmax(116px,1fr));
  gap:10px;
  width:min(430px,calc(100vw - 520px));
  margin:0;
  text-align:left;
}

body[data-lesson="L01"].prototype-scene-page .prototype-hud span{
  min-height:46px;
  padding:8px 11px;
  box-sizing:border-box;
  overflow:hidden;
  border:1px solid rgba(180,137,85,.24);
  background:rgba(255,253,248,.9);
  box-shadow:0 8px 22px rgba(78,62,46,.09);
  color:var(--l01-ink);
  font-size:9px;
}

body[data-lesson="L01"].prototype-scene-page .prototype-hud span::before{
  display:block;
  margin-bottom:4px;
  color:#a1876c;
  font:700 7px/1 var(--prototype-sans);
  letter-spacing:.18em;
}

body[data-lesson="L01"].prototype-scene-page .prototype-hud span:nth-child(1)::before{content:"SERVICE OBJECT"}
body[data-lesson="L01"].prototype-scene-page .prototype-hud span:nth-child(2)::before{content:"PROFESSIONAL TASK"}
body[data-lesson="L01"].prototype-scene-page .prototype-hud span:nth-child(3)::before{content:"GATE STATUS"}

body[data-lesson="L01"].prototype-scene-page .prototype-hud b{
  display:block;
  overflow:hidden;
  color:#4d4238;
  font-weight:600;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body[data-lesson="L01"].prototype-scene-page .prototype-actor{
  left:clamp(22px,7vw,138px);
  bottom:calc(var(--prototype-dialogue) - 3px);
  width:min(43vw,660px);
  height:calc(100vh - var(--prototype-dialogue) + 12px);
  justify-content:flex-start;
}

body[data-lesson="L01"].prototype-scene-page .prototype-actor img{
  filter:drop-shadow(0 19px 22px rgba(82,59,39,.2));
}

body[data-lesson="L01"].prototype-scene-page .prototype-persona-anchor{
  right:24px;
  top:98px;
  width:min(332px,29vw);
  padding:13px;
  background:rgba(255,253,248,.92);
  border:1px solid rgba(180,137,85,.38);
  border-top:2px solid var(--l01-gold);
  box-shadow:var(--l01-shadow);
}

body[data-lesson="L01"].prototype-scene-page .prototype-persona-head{
  grid-template-columns:54px 1fr;
  gap:10px;
}

body[data-lesson="L01"].prototype-scene-page .prototype-persona-head img{
  width:54px;
  height:54px;
}

body[data-lesson="L01"].prototype-scene-page .prototype-persona-head b{
  font-size:15px;
}

body[data-lesson="L01"].prototype-scene-page .prototype-persona-anchor.is-placeholder .prototype-persona-head{
  grid-template-columns:1fr;
}

body[data-lesson="L01"].prototype-scene-page .prototype-persona-anchor.is-placeholder .prototype-persona-head b{
  font-size:14px;
  white-space:normal;
}

body[data-lesson="L01"].prototype-scene-page .prototype-persona-anchor blockquote{
  margin:8px 0 7px;
  padding:8px 10px;
  background:rgba(245,238,227,.76);
  font-size:10px;
}

body[data-lesson="L01"].prototype-scene-page .prototype-persona-contract{
  gap:5px;
  font-size:8px;
}

body[data-lesson="L01"].prototype-scene-page .prototype-persona-contract span{
  padding:6px;
}

body[data-lesson="L01"].prototype-scene-page .prototype-persona-version{
  font-size:8px;
}

body[data-lesson="L01"].prototype-scene-page .prototype-persona-progress{
  margin-top:7px;
}

body[data-lesson="L01"].prototype-scene-page .prototype-choice-options{
  right:24px;
  bottom:calc(var(--prototype-dialogue) + 28px);
  width:min(382px,34vw);
  display:grid;
  gap:10px;
  background:transparent;
  border:0;
  box-shadow:none;
}

body[data-lesson="L01"].prototype-scene-page .prototype-choice-options[hidden]{display:none}

body[data-lesson="L01"].prototype-scene-page .prototype-choice-head{
  padding:0 2px 4px;
  border:0;
  color:#735c45;
  font:500 15px var(--prototype-serif);
  letter-spacing:.12em;
}

body[data-lesson="L01"].prototype-scene-page .prototype-choice-head::after{
  content:"CHOOSE ACTION";
  display:block;
  margin-top:4px;
  color:#aa927a;
  font:700 7px var(--prototype-sans);
  letter-spacing:.24em;
}

body[data-lesson="L01"].prototype-scene-page .prototype-choice-options button{
  min-height:76px;
  padding:14px 16px 13px 64px;
  border:1px solid rgba(180,137,85,.28);
  background:rgba(255,253,248,.94);
  box-shadow:0 10px 26px rgba(82,65,48,.09);
}

body[data-lesson="L01"].prototype-scene-page .prototype-choice-options button::before{
  content:"";
  left:22px;
  top:24px;
  width:25px;
  height:25px;
  border:1px solid #c39b68;
  transform:rotate(45deg);
}

body[data-lesson="L01"].prototype-scene-page .prototype-choice-options button::after{
  content:attr(data-index);
  position:absolute;
  left:27px;
  top:31px;
  width:16px;
  color:#8d6539;
  font:700 8px/1 var(--prototype-serif);
  text-align:center;
}

body[data-lesson="L01"].prototype-scene-page .prototype-choice-options button b{
  color:#4b4036;
  font-size:14px;
}

body[data-lesson="L01"].prototype-scene-page .prototype-choice-options button small{
  margin-top:5px;
  color:#8b7c6d;
  font-size:9px;
}

body[data-lesson="L01"].prototype-scene-page .prototype-choice-options button:hover{
  border-color:#b48955;
  background:#fffaf1;
  transform:translateX(-3px);
}

body[data-lesson="L01"].prototype-scene-page .prototype-dialogue{
  grid-template-columns:126px 1fr 64px;
  gap:20px;
  height:var(--prototype-dialogue);
  padding:18px 22px;
  background:rgba(250,247,240,.975);
  border-top:1px solid rgba(180,137,85,.5);
  box-shadow:0 -12px 36px rgba(83,65,46,.13);
}

body[data-lesson="L01"].prototype-scene-page .prototype-speaker{
  border-right-color:#dccdbc;
}

body[data-lesson="L01"].prototype-scene-page .prototype-speaker img{
  width:70px;
  height:70px;
  background:#eee4d6;
}

body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-copy p{
  color:#473d34;
  font:500 15px/1.82 var(--prototype-serif);
}

body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-source{
  color:#88786a;
}

body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-next{
  width:48px;
  height:48px;
  background:#fffdf8;
  box-shadow:0 5px 14px rgba(80,63,46,.07);
}

body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-next:disabled{
  opacity:.42;
  cursor:not-allowed;
}

body[data-lesson="L01"].prototype-scene-page .prototype-overlay{
  background:rgba(67,57,48,.58);
}

@media (min-width:761px) and (max-width:1400px){
  body[data-lesson="L01"].prototype-scene-page .prototype-stage-meta{
    left:42%;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-hud{
    grid-template-columns:repeat(2,minmax(112px,1fr));
    width:min(300px,31vw);
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-hud span:nth-child(2){display:none}
  body[data-lesson="L01"].prototype-scene-page .prototype-persona-anchor{
    width:280px;
  }
}

@media (max-width:760px){
  body[data-lesson="L01"].prototype-scene-page{
    --prototype-dialogue:208px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-drawer,
  body[data-lesson="L01"].prototype-scene-page .prototype-drawer.open{
    width:min(292px,88vw);
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-drawer-head{
    justify-content:flex-start;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-drawer:not(.open) .prototype-drawer-brand{
    display:block;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-drawer-nav button,
  body[data-lesson="L01"].prototype-scene-page .prototype-drawer-nav a{
    grid-template-columns:48px minmax(0,1fr);
    grid-template-rows:1fr;
    min-height:48px;
    padding:0;
    justify-items:stretch;
    text-align:left;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-drawer .prototype-nav-icon{width:48px}
  body[data-lesson="L01"].prototype-scene-page .prototype-drawer .prototype-nav-label{
    max-width:none;
    padding:0 12px;
    font-size:12px;
    white-space:nowrap;
    text-align:left;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-drawer-foot{
    width:auto;
    padding:0 18px;
    text-align:left;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-mobile-menu{
    border:1px solid rgba(180,137,85,.55);
    border-radius:12px;
    background:rgba(255,253,248,.94);
    box-shadow:0 6px 20px rgba(79,62,44,.14);
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-scene-bg{
    background-position:42% center;
    filter:saturate(.68) contrast(.92) brightness(1.02);
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-stage-meta{
    left:50%;
    right:auto;
    top:12px;
    width:190px;
    max-width:190px;
    min-height:68px;
    margin-left:-95px;
    padding:9px 12px 8px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-stage-meta::before{
    font-size:19px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-stage-meta h1{
    margin:5px 0 0;
    font-size:13px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-stage-meta .prototype-kicker{
    display:none;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-hud{
    position:fixed;
    top:88px;
    right:10px;
    display:block;
    width:auto;
    max-width:160px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-hud span{
    display:none;
    min-height:40px;
    padding:7px 9px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-hud span:nth-child(3){display:block}
  body[data-lesson="L01"].prototype-scene-page .prototype-actor{
    left:-18%;
    bottom:calc(var(--prototype-dialogue) - 2px);
    width:84vw;
    height:49vh;
    opacity:.9;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-persona-anchor{
    right:9px;
    top:138px;
    width:min(242px,65vw);
    padding:9px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-persona-head{
    grid-template-columns:44px 1fr;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-persona-head img{
    width:44px;
    height:44px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-persona-anchor blockquote,
  body[data-lesson="L01"].prototype-scene-page .prototype-persona-contract,
  body[data-lesson="L01"].prototype-scene-page .prototype-persona-version,
  body[data-lesson="L01"].prototype-scene-page .prototype-persona-progress{
    display:none;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-choice-options{
    left:10px;
    right:10px;
    bottom:calc(var(--prototype-dialogue) + 10px);
    width:auto;
    max-height:196px;
    gap:6px;
    overflow:auto;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-choice-head{
    padding:0 2px;
    font-size:12px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-choice-options button{
    min-height:64px;
    padding:10px 12px 10px 57px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-choice-options button::before{
    left:19px;
    top:19px;
    width:23px;
    height:23px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-choice-options button::after{
    left:23px;
    top:26px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-dialogue{
    grid-template-columns:60px 1fr 44px;
    gap:9px;
    padding:12px 9px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-speaker{
    padding-right:7px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-speaker img{
    width:48px;
    height:48px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-speaker b{
    font-size:11px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-copy p{
    font-size:12px;
    line-height:1.62;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-source{
    font-size:8px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-next{
    width:44px;
    height:44px;
  }
}

@media (max-height:720px) and (min-width:761px){
  body[data-lesson="L01"].prototype-scene-page{
    --prototype-dialogue:164px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-drawer-nav{
    transform:scale(.94);
    transform-origin:top center;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-persona-anchor{
    top:86px;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-persona-anchor blockquote,
  body[data-lesson="L01"].prototype-scene-page .prototype-persona-contract,
  body[data-lesson="L01"].prototype-scene-page .prototype-persona-version{
    display:none;
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-choice-options{
    bottom:calc(var(--prototype-dialogue) + 16px);
  }
  body[data-lesson="L01"].prototype-scene-page .prototype-dialogue{
    padding-top:13px;
    padding-bottom:13px;
  }
}

@media (prefers-reduced-motion:reduce){
  body[data-lesson="L01"].prototype-scene-page .prototype-choice-options button:hover{
    transform:none;
  }
}

/* ===== 20260815 · RPG 右栏（弹性列）=====
   服务对象卡和选择行动面板不再各自绝对定位、互相算高度：
   两者放进同一个 .prototype-right-rail 弹性列里，卡片按内容取高，
   选项面板吃掉剩余空间。窗口再矮再窄，也只会是选项区内部滚动。 */
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-right-rail{
  position:absolute;
  z-index:11;
  right:24px;
  top:96px;
  bottom:calc(var(--prototype-dialogue) + 18px);
  width:clamp(300px,30vw,412px);
  display:flex;
  flex-direction:column;
  gap:12px;
  pointer-events:none;
}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-right-rail > *{pointer-events:auto}

body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-right-rail > .prototype-persona-anchor{
  position:static;
  right:auto;
  top:auto;
  width:auto;
  flex:0 1 auto;
  max-height:40%;
  overflow-y:auto;
  overscroll-behavior:contain;
}
body[data-lesson="L01"].prototype-scene-page .prototype-persona-toggle{
  display:block;
  width:100%;
  margin-top:9px;
  padding:6px 8px;
  border:1px solid rgba(180,137,85,.4);
  background:rgba(246,239,228,.72);
  color:#7a5c38;
  font:700 9px/1.5 var(--prototype-sans);
  letter-spacing:.16em;
  cursor:pointer;
}
body[data-lesson="L01"].prototype-scene-page .prototype-persona-toggle:hover{background:#f6efe0}
body[data-lesson="L01"].prototype-scene-page .prototype-persona-toggle:focus-visible{outline:2px solid var(--l01-gold);outline-offset:1px}
body[data-lesson="L01"].prototype-scene-page .prototype-persona-anchor.is-collapsed .prototype-persona-body{display:none}
body[data-lesson="L01"].prototype-scene-page .prototype-persona-anchor.is-collapsed .prototype-persona-progress{margin-top:9px}

body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-right-rail > .prototype-choice-options{
  position:static;
  right:auto;
  bottom:auto;
  width:auto;
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  display:flex;
  flex-direction:column;
  gap:0;
  overflow:visible;
}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-head{
  flex:0 0 auto;
  display:block;
  text-align:left;
}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list{
  flex:1 1 auto;
  min-height:0;
  display:grid;
  gap:10px;
  align-content:start;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:2px 4px 2px 2px;
}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button{
  border:1px solid rgba(180,137,85,.28);
}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button.is-done{
  background:rgba(240,245,238,.94);
  border-color:rgba(120,150,120,.4);
}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button.is-done b{color:#3d6142}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-foot{
  flex:0 0 auto;
  padding:7px 2px 0;
  border:0;
  text-align:right;
  color:#a08a70;
}

/* 对白框：文字多的时候在框内滚，不撑破也不被裁 */
body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-copy{
  overflow-y:auto;
  overscroll-behavior:contain;
}

/* 矮窗分两档收紧：先压服务对象卡和卡片留白，再压字号。
   目标是四个选项在 700px 高的窗口里也能一眼看完，不靠滚动。 */
@media (max-height:880px){
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-right-rail > .prototype-persona-anchor{max-height:32%}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list{gap:7px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button{min-height:60px;padding:9px 14px 8px 54px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button::before{left:18px;top:16px;width:21px;height:21px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button::after{left:22px;top:22px}
}
@media (max-height:768px){
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-right-rail{top:88px;bottom:calc(var(--prototype-dialogue) + 12px);gap:8px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-right-rail > .prototype-persona-anchor{max-height:112px;padding:10px 12px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-persona-progress{display:none}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list{gap:6px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button{min-height:48px;padding:7px 12px 7px 48px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button b{font-size:12.5px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button small{margin-top:2px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button::before{left:15px;top:13px;width:19px;height:19px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button::after{left:19px;top:18px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-head{font-size:13px}
}

/* 窄窗：立绘让位，右栏收窄贴边 */
@media (max-width:1180px){
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-right-rail{right:14px;width:clamp(272px,34vw,360px)}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-actor{opacity:.9}
}

/* 更窄：右栏横跨底部，服务对象卡只留标题行 */
@media (max-width:900px){
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-right-rail{
    left:12px;
    right:12px;
    top:auto;
    width:auto;
    max-height:60vh;
    gap:8px;
  }
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-right-rail > .prototype-persona-anchor{flex:0 0 auto;max-height:84px;padding:9px 11px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-persona-progress{display:none}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-actor{opacity:.42}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list{gap:7px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button{min-height:60px;padding:10px 12px 9px 54px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button::before{left:18px;top:17px;width:21px;height:21px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-choice-list button::after{left:22px;top:23px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-stage-meta{display:none}
}

/* ===== 对白内逐题作答（ACT02「选一人」）===== */
body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-prompt{
  display:grid;
  gap:6px;
  margin:10px 0 4px;
  padding:11px 13px;
  max-width:930px;
  background:rgba(255,253,248,.9);
  border:1px solid rgba(180,137,85,.42);
  border-left:3px solid var(--l01-gold);
}
body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-prompt[hidden]{display:none}
body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-prompt label{
  color:#7a5c38;
  font:700 10px/1.4 var(--prototype-sans);
  letter-spacing:.1em;
}
body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-prompt textarea{
  width:100%;
  min-height:52px;
  padding:8px 10px;
  box-sizing:border-box;
  resize:vertical;
  border:1px solid rgba(150,120,88,.45);
  background:#fffdf9;
  color:var(--prototype-ink);
  font:400 13px/1.7 var(--prototype-serif);
}
body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-prompt textarea:focus-visible{
  outline:2px solid var(--l01-gold);
  outline-offset:-1px;
}
body[data-lesson="L01"].prototype-scene-page .prototype-prompt-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
body[data-lesson="L01"].prototype-scene-page .prototype-prompt-actions small{
  color:#9a8b76;
  font-size:9.5px;
  line-height:1.5;
}
body[data-lesson="L01"].prototype-scene-page .prototype-prompt-actions button{
  flex:0 0 auto;
  min-height:36px;
  padding:8px 18px;
  border:1px solid #7b5730;
  background:#2b383f;
  color:#fff;
  font:700 11px var(--prototype-sans);
  letter-spacing:.08em;
  cursor:pointer;
}
body[data-lesson="L01"].prototype-scene-page .prototype-prompt-actions button:hover{background:#3c4c54}

/* 需要作答时把对白区加高，右栏底边跟着这个变量自动上移 */
body[data-lesson="L01"].prototype-scene-page.prototype-has-prompt{--prototype-dialogue:300px}
@media (max-height:768px){
  body[data-lesson="L01"].prototype-scene-page.prototype-has-prompt{--prototype-dialogue:264px}
  body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-prompt{margin:8px 0 2px;padding:9px 11px}
  body[data-lesson="L01"].prototype-scene-page .prototype-dialogue-prompt textarea{min-height:44px}
}
@media (max-width:760px){
  body[data-lesson="L01"].prototype-scene-page.prototype-has-prompt{--prototype-dialogue:286px}
}

/* ===== 20260815 · 顶部三块状态并入右栏卡片，右上只留一个窗口 =====
   原本 .prototype-hud 是 position:fixed 挂在右上角的三张小卡，
   和下面的服务对象卡各占一块。现在收进同一张卡，作为卡片的抬头。 */
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-hud{
  position:static;
  top:auto;
  right:auto;
  width:auto;
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  margin:-13px -13px 11px;
  padding:0;
  border-bottom:1px solid rgba(180,137,85,.34);
  background:rgba(244,237,225,.72);
}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-hud span{
  padding:7px 13px;
  border:0;
  border-bottom:1px solid rgba(180,137,85,.16);
  background:transparent;
}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-hud span:last-child{border-bottom:0}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-hud span::before{
  display:block;
  margin-bottom:2px;
  color:#a08a70;
  font:700 7.5px/1 var(--prototype-sans);
  letter-spacing:.2em;
}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-hud b{
  display:block;
  color:#5d4c39;
  font:600 10.5px/1.55 var(--prototype-sans);
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
/* 折叠态是默认态，要留给选项：只显示服务对象和门槛两行，
   L01–L04 进度条也收起（顶栏已经有 L01 环了）。 */
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-persona-anchor.is-collapsed .prototype-hud span:nth-child(2){display:none}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-persona-anchor.is-collapsed .prototype-persona-progress{display:none}
body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-persona-anchor.is-collapsed .prototype-persona-head{margin-bottom:2px}
@media (max-width:900px){
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-hud{grid-template-columns:1fr 1fr;margin:-9px -11px 8px}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-hud span{border-bottom:0;border-right:1px solid rgba(180,137,85,.16)}
  body[data-lesson="L01"].prototype-scene-page.l01-rpg-scene .prototype-hud span:last-child{border-right:0}
}
