/* Warm companion and explicit, reversible experiments; no automatic scene takeover. */
.learn-mentor-host { position:absolute; inset:0; pointer-events:none; z-index:6; font-family:SolarOutfit,sans-serif; color:#214e44; }
.learn-mentor-host [hidden], .learn-mentor-host[hidden] { display:none!important; }
.simulation .learn .mentor-launch { pointer-events:auto; position:absolute; bottom:18px; right:20px; display:flex; align-items:center; gap:10px; padding:10px 18px 10px 9px; border-radius:30px 30px 9px 30px; color:#264f43; border:1px solid #e1efb8; background:linear-gradient(125deg,#fff9d4,#dcf1d5); box-shadow:0 5px 20px #173f3930,0 0 30px #ecf5b452; font:550 15px SolarOutfit,sans-serif; }
.mentor-launch > span { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; color:#ab6c12; background:#ffdd80; font-size:29px; box-shadow:0 0 22px #efd26788; }
.simulation .learn .mentor-panel { pointer-events:auto; position:absolute; right:18px; bottom:16px; width:min(390px,calc(100% - 36px)); max-height:calc(100% - 32px); box-sizing:border-box; display:flex; flex-direction:column; background:radial-gradient(ellipse at 3% 0,#fff3bd,transparent 55%),linear-gradient(145deg,#fffff4,#e8f3e6); border:1px solid #eaffc7; border-radius:42px 42px 12px 42px; box-shadow:0 18px 60px #153e4260,0 0 35px #d6ecc644; overflow:hidden; animation:mentor-arrive .22s ease-out; }
.mentor-heading { display:flex; align-items:center; gap:9px; flex:none; padding:17px 16px 5px 12px; }
.mentor-character { width:76px; flex:0 0 76px; }
.mentor-character .learn-coach-character { position:relative; left:auto; top:auto; z-index:auto; width:100%; height:auto; pointer-events:none; filter:drop-shadow(0 0 15px #ffce4e70); }
.mentor-character svg { display:block; width:100%; height:auto; }
.mentor-heading > div:nth-child(2) { flex:1; min-width:0; }
.mentor-heading #mentor-mode { font-size:8px; letter-spacing:1.8px; color:#667c55; }
.simulation .learn .mentor-heading h2 { font:600 27px/1.03 SolarOutfit,sans-serif; letter-spacing:-.7px; margin:5px 0; color:#245d44; text-shadow:0 0 23px #afd28750; }
.simulation .learn #mentor-close { align-self:start; border:0; border-radius:50%; width:31px; height:31px; flex:none; padding:0; background:#d9e8ce; color:#477252; font:25px SolarOutfit,sans-serif; }
.mentor-content { min-height:0; overflow:auto; padding:0 22px 19px; overscroll-behavior:contain; scrollbar-width:thin; }
.mentor-content #mentor-message { font:400 14px/1.55 SolarOutfit,sans-serif; margin:9px 0 14px; color:#416655; }
.mentor-thinking { display:flex; gap:9px; align-items:center; min-height:40px; font-size:13px; }
.mentor-thinking i { width:14px; height:14px; border:2px solid #badba1; border-top-color:#428462; border-radius:50%; animation:mentor-spin .9s linear infinite; }
.simulation .learn #mentor-cancel { padding:6px; margin-left:auto; font:12px SolarOutfit,sans-serif; background:transparent; border:0; color:#657a67; }
.mentor-primary { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:10px; }
.simulation .learn .mentor-primary button { flex:1; min-height:40px; padding:9px 10px; border:1px solid #add197; border-radius:18px 18px 6px 18px; background:linear-gradient(140deg,#e3f3c9,#c5e4b6); color:#2a5a3d; font:550 14px SolarOutfit,sans-serif; }
.mentor-choices { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:12px; }
.simulation .learn .mentor-choices button { padding:11px 7px; min-height:43px; border:1px solid #ccdcc0; border-radius:16px; background:#ffffff80; color:#45664b; font:500 12px SolarOutfit,sans-serif; }
.simulation .learn .mentor-choices button[data-suggested=true] { background:#fff5d4; border-color:#e1c76e; }
.simulation .learn .mentor-choices button:disabled { opacity:.55; }
.mentor-content #mentor-form { margin-top:14px; }
.simulation .learn #mentor-form label { display:block; margin-bottom:6px; color:#56745d; font:12px SolarOutfit,sans-serif; }
.mentor-content #mentor-form > div { display:flex; align-items:center; gap:5px; padding:5px 6px 5px 12px; border:1px solid #bcd4b5; border-radius:20px; background:#fffff5; }
.simulation .learn #mentor-question { width:0; min-width:0; flex:1; border:0; padding:5px 0; background:transparent; color:#264f43; font:13px SolarOutfit,sans-serif; }
.simulation .learn #mentor-form button { flex:none; width:33px; height:33px; border-radius:50%; padding:0; border:0; background:#3e8764; color:#fffbd7; font-size:24px; }
.mentor-connection { margin:8px 0 0; font-size:9px; line-height:1.5; color:#71846d; }
.simulation .learn .mentor-coach-control { display:flex; align-items:start; gap:9px; margin:14px 0 8px; padding:11px; border:1px solid #d2dfbf; border-radius:17px; background:#eef3df80; font:500 12px SolarOutfit,sans-serif; color:#54734e; }
.simulation .learn .mentor-coach-control input { width:17px; height:17px; padding:0; flex:none; margin:2px 0 0; accent-color:#6a9859; }
.mentor-coach-control small { display:block; margin-top:5px; color:#7e8c71; font:10px/1.5 SolarOutfit,sans-serif; }
.mentor-coach-status { font:10px/1.5 SolarOutfit,sans-serif; color:#8b7649; }
.simulation .learn .mentor-coach-thinking { pointer-events:auto; position:absolute; right:20px; bottom:82px; width:min(310px,calc(100% - 40px)); margin:0; box-shadow:0 10px 30px #183d4440; background:linear-gradient(135deg,#fff9d8,#e2efd6); }
.learn-mentor-host[data-coach-state=thinking] .mentor-launch > span { animation:mentor-coach-sun 2.5s ease-in-out infinite; }
.learn-mentor-host[data-coach-notice=true] .mentor-launch { box-shadow:0 0 0 4px #e3f5b638,0 0 35px #e6f7a266; }
.learn-mentor-host[data-coach-notice=true] .mentor-launch > span { animation:mentor-coach-sun 3.5s ease-in-out infinite; }
@keyframes mentor-coach-sun { 50% { transform:rotate(12deg) translateY(-3px); box-shadow:0 0 29px #ffd466cc; } }
.mentor-voice { display:flex; align-items:center; gap:9px; margin:8px 0; }
.simulation .learn #mentor-voice { padding:10px 15px; background:#e2efd4; color:#3e694e; border:1px solid #b9d1a4; border-radius:18px; font:550 13px SolarOutfit,sans-serif; }
.mentor-voice span { font-size:9px; line-height:1.4; color:#738267; }
.mentor-evidence { margin-top:11px; font-size:10px; line-height:1.55; color:#6c8268; }
.mentor-evidence summary { cursor:pointer; }
.mentor-evidence > div { padding-top:6px; }
.mentor-candidates { display:grid; gap:9px; margin:13px 0; }
.mentor-candidate { padding:13px; border:1px solid #d4dec4; border-radius:22px 22px 8px 22px; background:#fffff4c9; }
.mentor-candidate > span { color:#698269; font-size:10px; letter-spacing:.7px; }
.mentor-candidate > strong { display:block; font-size:23px; font-weight:550; margin-top:4px; }
.mentor-candidate strong small { font-size:11px; font-weight:400; }
.mentor-candidate > b { display:block; color:#af7940; font-size:12px; margin-top:6px; font-weight:500; }
.mentor-candidate[data-complete=true] > b { color:#338154; }
.mentor-candidate > small { display:block; font-size:9px; color:#738166; margin-top:9px; }
.mentor-goal-bars { display:grid; gap:5px; margin:11px 0; }
.mentor-goal-bars > div { display:grid; grid-template-columns:63px 1fr 65px; align-items:center; gap:6px; font-size:9px; }
.mentor-goal-bars progress { width:100%; height:5px; border:0; border-radius:5px; overflow:hidden; accent-color:#68aa6c; }
.mentor-goal-bars progress::-webkit-progress-bar { background:#e7ebd8; }
.mentor-goal-bars progress::-webkit-progress-value { background:#69a879; border-radius:5px; }
.mentor-goal-bars output { font-variant-numeric:tabular-nums; text-align:right; }
.simulation .learn .mentor-candidate button { width:100%; border:1px solid #a8ce93; background:#d8edc4; color:#35623e; font:550 14px SolarOutfit,sans-serif; border-radius:14px; padding:10px; }
.simulation .learn #mentor-undo { display:block; margin-top:12px; width:100%; padding:10px; border:1px solid #dac080; border-radius:15px; background:#fff2c8; color:#796331; font:500 12px SolarOutfit,sans-serif; }
.simulation .learn .adventure-mentor { width:100%; padding:13px; margin-bottom:10px; border:1px solid #bfd89d; border-radius:23px 23px 8px 23px; background:linear-gradient(130deg,#ffffe8,#daedc8); color:#3c6747; font:550 21px SolarOutfit,sans-serif; box-shadow:0 3px 14px #cbd7a740; }
.adventure-mentor span { display:block; font-size:10px; margin-top:4px; font-weight:400; }
.learn-mentor-focus { filter:drop-shadow(0 0 10px #fff8a8) drop-shadow(0 0 22px #dcf87e)!important; animation:mentor-focus 1.2s ease-in-out 5; }
.learn-mentor-host[data-busy=true] .learn-coach-rays { transform-origin:90px 90px; animation:mentor-spin 6s linear infinite; }
.mentor-content button:focus-visible, .mentor-heading button:focus-visible, .mentor-launch:focus-visible { outline:3px solid #36885e; outline-offset:3px; }
@keyframes mentor-spin { to { transform:rotate(360deg); } }
@keyframes mentor-arrive { from { opacity:0; transform:translateY(9px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes mentor-focus { 50% { filter:drop-shadow(0 0 15px #fff8a8) drop-shadow(0 0 34px #e8ff89); } }
@media (max-width:800px) {
  .simulation .learn .mentor-launch { bottom:10px; right:10px; padding:7px 12px 7px 7px; font-size:12px; }
  .mentor-launch > span { width:29px; height:29px; font-size:23px; }
  .simulation .learn .mentor-panel { right:8px; bottom:8px; width:calc(100% - 16px); max-height:calc(100% - 16px); border-radius:28px 28px 9px 28px; }
  .mentor-heading { padding:9px 10px 2px; gap:6px; }
  .mentor-character { flex-basis:52px; width:52px; }
  .simulation .learn .mentor-heading h2 { font-size:23px; }
  .mentor-content { padding:0 16px 14px; }
  .mentor-content #mentor-message { font-size:13px; margin-top:5px; }
}
@media (prefers-reduced-motion:reduce) { .mentor-panel, .learn-mentor-focus, .mentor-thinking i, .learn-mentor-host .learn-coach-rays { animation:none!important; } }
@media (prefers-reduced-motion:reduce) { .learn-mentor-host .mentor-launch > span { animation:none!important; } }
