:root{
  --bg:#f6f4fb;
  --ink:#213047;
  --muted:#5d6b82;
  --card:#ffffff;
  --line:#d8deeb;
  --shadow:0 8px 24px rgba(31,45,77,.08);
  --radius:18px;
  --blue:#dceeff;
  --blue-accent:#bfdfff;
  --green:#dcebd7;
  --green-accent:#bfd3b6;
  --peach:#ffe2d2;
  --peach-accent:#f8c5b2;
  --lav:#e8e0f8;
  --lav-accent:#c7d7f2;
  --cam:#dde2ff;
  --cam-accent:#c9d0e8;
  --mint:#ddf2e3;
  --mint-accent:#f8d6d6;
  --primary:#6172c3;
  --primary-dark:#5161ab;
  --danger:#c15656;
  --success:#2d8a55;
  --warn:#b56d00;
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background:linear-gradient(180deg,#faf8ff 0%,#f4f7fb 100%)}
button,input,textarea,select{font:inherit}
button{border:none;border-radius:14px;padding:.75rem 1rem;background:#edf1f8;color:var(--ink);cursor:pointer;transition:.15s ease}
button:hover{filter:brightness(.98)}
button.primary{background:var(--primary);color:#fff}
button.primary:hover{background:var(--primary-dark)}
button.danger{background:#f4dddd;color:#7b3030}
.topbar{position:sticky;top:0;z-index:10;display:flex;gap:1rem;justify-content:space-between;align-items:center;padding:1rem 1.1rem;background:rgba(255,255,255,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.brand-wrap{display:flex;align-items:center;gap:.85rem}.brand-icon{width:44px;height:44px;border-radius:16px;background:linear-gradient(135deg,#7788db,#9db6ff);display:grid;place-items:center;color:#fff;font-size:1.2rem;box-shadow:var(--shadow)}
.brand-wrap h1{margin:.1rem 0;font-size:1.35rem}.brand-wrap p{margin:0;color:var(--muted);font-size:.92rem}
.top-actions{display:flex;gap:.55rem;flex-wrap:wrap;justify-content:flex-end}
main{max-width:1200px;margin:0 auto;padding:1rem}
.intro-card,.card-section,.summary-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.intro-card{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem 1.1rem;margin-bottom:1rem}
.intro-card h2{margin:.1rem 0 .3rem 0}.intro-card p{margin:0;color:var(--muted)}
.autosave-pill{background:#eef9f1;color:var(--success);padding:.55rem .9rem;border-radius:999px;font-weight:700}
.progress-nav{display:flex;gap:.65rem;flex-wrap:wrap;padding:.9rem 1rem;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:78px;z-index:9}
.progress-step{padding:.6rem .9rem;border-radius:999px;background:#edf1f8;color:#32425f;font-weight:600;font-size:.95rem}.progress-step.done{background:#e1f4e7;color:#1f6a3d}.progress-step.active{outline:3px solid rgba(97,114,195,.15);background:#e8ecfb;color:#334189}
.section{margin-bottom:1rem;border-radius:22px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow);background:#fff}
.section[data-color="blue"] .section-head{background:linear-gradient(180deg,var(--blue),var(--blue-accent))}
.section[data-color="green"] .section-head{background:linear-gradient(180deg,var(--green),var(--green-accent))}
.section[data-color="peach"] .section-head{background:linear-gradient(180deg,var(--peach),var(--peach-accent))}
.section[data-color="lav"] .section-head{background:linear-gradient(180deg,var(--lav),var(--lav-accent))}
.section[data-color="cam"] .section-head{background:linear-gradient(180deg,var(--cam),var(--cam-accent))}
.section[data-color="mint"] .section-head{background:linear-gradient(180deg,var(--mint),var(--mint-accent))}
.section-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem 1.1rem;cursor:pointer}
.section-head h2{margin:0 0 .15rem 0;font-size:1.18rem}.section-head p{margin:0;color:#465672}.section-meta{display:flex;align-items:center;gap:.75rem}.completion-badge{padding:.45rem .7rem;border-radius:999px;background:rgba(255,255,255,.72);font-weight:700}.toggle-ind{font-size:1.1rem;font-weight:700}
.section-body{padding:1rem;display:grid;gap:1rem}.section.collapsed .section-body{display:none}
.field{background:rgba(255,255,255,.8);border:1px solid var(--line);border-radius:18px;padding:1rem}.field-label{display:flex;align-items:center;gap:.45rem;justify-content:space-between;flex-wrap:wrap}.field-title{font-weight:800}.field-help{margin-top:.2rem;color:var(--muted);font-size:.94rem}
.help-row{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin-top:.55rem}.micro-help{font-size:.85rem;color:#5d6787;background:#f6f8fc;padding:.35rem .55rem;border-radius:999px}
.input-row{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:.8rem}.text-input, .text-area, .select-input{width:100%;padding:.8rem .9rem;border:1px solid #cfd7e6;border-radius:14px;background:#fff;color:var(--ink)}.text-area{min-height:88px;resize:vertical}
.text-input.short{max-width:180px}.text-input.tiny{max-width:100px}.inline-pair{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center}.inline-pair .text-input{max-width:250px}
.chips{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:.8rem}.chip{padding:.55rem .8rem;border-radius:999px;background:#edf1f8;color:#33425d;font-weight:600;cursor:pointer;user-select:none;border:1px solid transparent}.chip.active{background:#6476c8;color:#fff}.chip.multi.active{background:#4c8d73}.chip.warn{background:#fff1dc;color:#825000;border-color:#ffd48f}
.details-box{margin-top:.8rem;padding-top:.8rem;border-top:1px dashed #d6deed}.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.9rem}.subtle{color:var(--muted);font-size:.92rem}
.anatomy-part-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:.85rem;margin-top:.85rem}
.anatomy-group{margin-top:1.1rem;padding-top:.7rem;border-top:2px solid #e4e8f0}
.anatomy-group h3{margin:.1rem 0 .2rem;font-size:1rem;color:#40506a}
.anatomy-part{min-width:0;padding:.9rem;border:1px solid var(--line);border-radius:16px;background:#fff;scroll-margin-top:8rem}
.anatomy-part .chips{margin-top:.65rem}.anatomy-part .chip{font-size:.92rem}.anatomy-part .text-area{min-height:68px}
.anatomy-wildcard{background:#f8f6ff;border:1px solid #dcd7f4;border-radius:16px;padding:.9rem}
.clothing-notes{background:#fbfaf7;border:1px solid #e5dfd2;border-radius:16px;padding:.9rem}
.summary-card{padding:1rem}.summary-card h3{margin:.1rem 0 .4rem 0}.summary-card p{margin:0;color:#364760}
.warning-list{display:grid;gap:.65rem}.warning{padding:.8rem .9rem;border-radius:14px;background:#fff6ea;border:1px solid #f2d4a2;color:#7a4e00}.success{padding:.8rem .9rem;border-radius:14px;background:#edf8f0;border:1px solid #cfead6;color:#276844}
.final-output{padding:1rem;margin:1rem 0 2rem}.final-output textarea{width:100%;padding:1rem;border:1px solid #cfd7e6;border-radius:16px;background:#fff;min-height:350px}.button-row{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}
dialog{border:none;border-radius:18px;padding:0;box-shadow:0 18px 60px rgba(17,25,40,.2);width:min(92vw,700px)}.dialog-card{padding:1rem 1rem 1.1rem;display:grid;gap:.8rem}.draft-list{display:grid;gap:.6rem;max-height:60vh;overflow:auto}.draft-item{display:flex;gap:.5rem;justify-content:space-between;align-items:center;padding:.8rem .9rem;border:1px solid var(--line);border-radius:14px;background:#fff}
.inline-actions{display:flex;gap:.4rem;flex-wrap:wrap}.tiny-btn{padding:.45rem .65rem;border-radius:12px;font-size:.92rem}
.why-btn{padding:.35rem .6rem;border-radius:999px;background:#f5f7fc;color:#526482;font-size:.82rem}.why-note{margin-top:.55rem;padding:.7rem .8rem;background:#f8faff;border:1px solid #dce5f4;border-radius:12px;color:#526482;font-size:.92rem;display:none}.why-note.show{display:block}
.section-heading-row{display:flex;justify-content:space-between;gap:1rem;align-items:start}
small.counter{display:inline-block;margin-top:.4rem;color:var(--muted)}
@media (max-width:800px){.topbar{position:static;flex-direction:column;align-items:stretch}.progress-nav{top:0}.brand-wrap h1{font-size:1.18rem}.section-head{align-items:flex-start}.completion-badge{font-size:.85rem}}

/* v5.9.7 — Wonder Health Bar */
.wonder-health-card{margin:0 0 1rem;padding:1rem;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,#f7fbff,#fffdf9)}
.wonder-health-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem;flex-wrap:wrap;margin-bottom:.8rem}
.wonder-health-heading h3{margin:0 0 .2rem;font-size:1.08rem}
.wonder-health-heading p{margin:0;color:var(--muted);font-size:.92rem}
.health-legend{display:flex;gap:.35rem .65rem;flex-wrap:wrap;color:var(--muted);font-size:.8rem}
.wonder-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}
.wonder-health-item{padding:.65rem .7rem;border-radius:13px;border:1px solid var(--line);font-size:.84rem;line-height:1.28}
.wonder-health-item.ready{background:#edf8f0;border-color:#cfe8d6;color:#296344}
.wonder-health-item.partial{background:#fff7e8;border-color:#efd9ad;color:#795200}
.wonder-health-item.missing{background:#fff0f0;border-color:#efc9c9;color:#7b2b2b}
.wonder-health-item.optional{background:#f2f3f5;border-color:#dfe2e6;color:#5d6570}
.wonder-health-top{display:flex;justify-content:space-between;align-items:center;gap:.35rem;margin-bottom:.25rem}
.wonder-health-top strong{font-size:.9rem}
.wonder-health-top span{font-size:.76rem;font-weight:800;white-space:nowrap}
@media(max-width:650px){.wonder-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wonder-health-card{padding:.75rem}.wonder-health-item{padding:.58rem;font-size:.8rem}}
@media(max-width:380px){.wonder-health-grid{grid-template-columns:1fr}}
.details-box:has([data-input$="Custom"]) {
  background:#fff7df;
  border:2px solid #e8b64f;
  border-radius:16px;
  padding:.9rem;
}
.details-box:has([data-input$="Custom"]) .field-title::before{
  content:'✍️ ';
}
.custom-active{background:#fff8d9;border:2px solid #e5b94d;padding:.85rem;border-radius:14px}

.audit-panel{display:grid;gap:.85rem;margin-top:.9rem}.audit-head{display:flex;justify-content:space-between;gap:.75rem;align-items:center;flex-wrap:wrap}.audit-status{font-weight:800;padding:.5rem .75rem;border-radius:999px}.audit-status.ready{background:#e7f6eb;color:#226641}.audit-status.review{background:#fff2dc;color:#7a4e00}.audit-status.fix{background:#fde7e7;color:#8a2f2f}.audit-group{border:1px solid var(--line);border-radius:16px;padding:.85rem;background:#fff}.audit-group h4{margin:.05rem 0 .55rem}.audit-item{padding:.65rem .75rem;border-radius:12px;margin:.45rem 0;line-height:1.35}.audit-item.blocker{background:#fff0f0;border:1px solid #efc9c9;color:#7b2b2b}.audit-item.improve{background:#fff7e8;border:1px solid #efd9ad;color:#795200}.audit-item.strong{background:#eef8f1;border:1px solid #cfe8d6;color:#296344}.audit-empty{color:var(--muted);font-size:.94rem}.audit-explainer{padding:.75rem .85rem;border-radius:14px;background:#f6f8fc;color:#4c5d77;font-size:.92rem}.audit-count{font-weight:800}.coach-title{font-size:1.05rem;font-weight:850}

/* v5.7 — Jimmie Mode */
:root{
  --bg:#f4f0ea;
  --ink:#27333d;
  --muted:#66706d;
  --card:#fffdf9;
  --line:#ddd6cd;
  --primary:#5d7f79;
  --primary-dark:#496963;
  --blue:#dceeea;
  --blue-accent:#c7ded9;
  --green:#e5edd9;
  --green-accent:#ccd9ba;
  --peach:#f7e1d2;
  --peach-accent:#e9c9b5;
  --lav:#e8e0ef;
  --lav-accent:#d3c7df;
  --cam:#dde7ed;
  --cam-accent:#c7d6df;
  --mint:#e4efe7;
  --mint-accent:#ccdfd2;
}
body{background:linear-gradient(180deg,#f9f5ef 0%,#eff4f1 100%)}
.brand-wrap{position:relative;min-width:0}
.brand-icon{background:linear-gradient(135deg,#628b82,#a68cc1)}
.sticker-strip{display:flex;gap:.22rem;margin-left:.1rem;align-items:center}
.sticker-strip span{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#fffdf8;border:1px solid #ded7cf;box-shadow:0 3px 9px rgba(45,57,52,.10);font-size:1.02rem;transform:rotate(-4deg)}
.sticker-strip span:nth-child(even){transform:rotate(4deg)}
.intro-card{background:linear-gradient(135deg,#fffdf9,#f4efe8)}
.body-plan-banner{margin-top:.8rem;padding:.65rem .8rem;border-radius:14px;background:#eef6f2;border:1px solid #cfe1d8;color:#365f57}
.field-title{letter-spacing:.01em}
.micro-help{background:#f2f5f1;color:#566a64}
.final-output{background:linear-gradient(180deg,#fffdf9,#f7f3ed)}
@media(max-width:800px){.sticker-strip{display:none}}


/* v5.8 — Jimmie Profile Foundation */
.jimmie-profile-card{display:flex;gap:.9rem;align-items:flex-start;padding:.95rem 1.05rem;margin:0 0 1rem;background:#fff8e6;border:1px solid #ead7a3;border-radius:18px;box-shadow:var(--shadow);color:#4b4434}
.profile-badge{flex:0 0 auto;padding:.5rem .7rem;border-radius:999px;background:#f1dfaa;font-weight:850;white-space:nowrap}
.profile-small{margin-top:.3rem;color:#6b6250;font-size:.92rem;line-height:1.4}
.jimmie-term-note{margin-top:.45rem;padding:.48rem .65rem;border-left:3px solid #91a89d;border-radius:0 10px 10px 0;background:#f3f7f3;color:#4f6259;font-size:.88rem;line-height:1.4}
.jimmie-term-note strong{color:#3f554c}
@media(max-width:700px){.jimmie-profile-card{flex-direction:column}.profile-badge{white-space:normal}}

.audit-idle{display:grid;gap:.25rem;padding:1rem;border:1px dashed #bfc9d8;border-radius:14px;background:#f8fafc;color:#40506a}
.coach-card-detail{display:grid;gap:.6rem;margin:.7rem 0 0 1.65rem;color:#4c5360}
.coach-suggestion{padding:.65rem .75rem;border-radius:12px;background:rgba(255,255,255,.78);border:1px solid rgba(75,83,96,.16)}
.coach-suggestion blockquote{margin:.4rem 0 .65rem;padding:.55rem .7rem;border-left:4px solid #8292c5;background:#fff;border-radius:0 10px 10px 0;color:#27333d;font-weight:650}
.take-me-btn{justify-self:start;background:#e6ebfa;color:#33427a;font-weight:750}
.field-highlight{outline:4px solid #dfb34d!important;box-shadow:0 0 0 8px rgba(223,179,77,.18)!important;transition:outline .2s ease}
.coach-found{display:grid;gap:.25rem}
.coach-kicker{font-size:.7rem;font-weight:850;letter-spacing:.06em;opacity:.72}
.coach-effect{padding:.55rem .65rem;border-radius:10px;background:rgba(255,255,255,.55)}
.coach-suggestion>strong{display:block;margin-bottom:.25rem}
.take-me-btn{min-height:44px}
.audit-item{padding:.75rem .85rem}

/* v5.9.13 — Creature-building visual examples */
.section-title-wrap{display:flex;align-items:center;gap:.85rem;min-width:0}
.section-art,.creature-reference-art{background-image:url('assets/creature-building-sprite.png');background-repeat:no-repeat;background-size:300% 200%;background-color:#eee5cf}
.section-art{flex:0 0 76px;width:76px;height:76px;border:2px solid rgba(255,255,255,.92);border-radius:18px;box-shadow:0 4px 12px rgba(45,57,52,.16)}
.section-art-creature,.creature-art-peacock{background-position:50% 0%}
.section-art-body,.creature-art-gossamer{background-position:0% 0%}
.section-art-world,.creature-art-fuzzy{background-position:100% 0%}
.section-art-action,.creature-art-bird{background-position:50% 100%}
.section-art-camera,.creature-art-serpentine{background-position:0% 100%}
.section-art-final,.creature-art-spider{background-position:100% 100%}
.creature-reference-gallery{margin-top:.9rem;padding:.9rem;border:1px solid #ded7c5;border-radius:18px;background:linear-gradient(135deg,#fffdf6,#f3efe3)}
.creature-gallery-heading{display:flex;gap:.35rem .8rem;align-items:baseline;flex-wrap:wrap;margin-bottom:.65rem;color:#40544c}
.creature-gallery-heading span{font-size:.9rem;color:#66706d}
.creature-reference-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.65rem}
.creature-reference{min-width:0;margin:0;overflow:hidden;border:1px solid #ded7c5;border-radius:14px;background:#fffdf9;box-shadow:0 3px 8px rgba(45,57,52,.08)}
.creature-reference-art{width:100%;aspect-ratio:1/1}
.creature-reference figcaption{display:grid;gap:.1rem;padding:.5rem .55rem .6rem;line-height:1.2}
.creature-reference figcaption strong{font-size:.85rem;color:#354b45}
.creature-reference figcaption span{font-size:.75rem;color:#66706d}
@media(max-width:1000px){.creature-reference-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.section-art{flex-basis:56px;width:56px;height:56px;border-radius:14px}.section-head{gap:.55rem}.section-title-wrap{gap:.55rem}.creature-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.section-art{display:none}}

/* v5.9.14 — Jimmie's colorful, slightly chaotic creature lab */
:root{
  --ink:#202b46;--muted:#596780;--line:#d8d3c7;--card:#fffdf6;
  --primary:#db3e78;--primary-dark:#b92960;--success:#247653;
  --blue:#a9def0;--blue-accent:#68bfdc;--green:#c9e8a5;--green-accent:#8cce69;
  --peach:#ffc7a5;--peach-accent:#f19a72;--lav:#d5c4f5;--lav-accent:#a892df;
  --cam:#f8df7d;--cam-accent:#e9bf39;--mint:#b9e6cd;--mint-accent:#75c99c;
  --shadow:0 9px 24px rgba(42,51,78,.12);--radius:20px;
}
body{font-family:"Trebuchet MS","Comic Sans MS",system-ui,sans-serif;color:var(--ink);background:#fff6dc url('assets/lab-wallpaper.svg') repeat;background-size:560px 560px}
button,input,textarea,select{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
h1,h2,h3,.field-title,.profile-badge,.progress-step,.completion-badge{font-family:"Trebuchet MS","Comic Sans MS",system-ui,sans-serif}
.topbar{background:#26365f;color:#fff8e8;border:0;box-shadow:0 5px 0 #efae3e,0 10px 22px rgba(31,38,67,.23)}
.brand-wrap h1{font-size:clamp(1.2rem,2.3vw,1.65rem);color:#fff0a9;text-shadow:2px 2px 0 #682f7a;letter-spacing:.015em}
.brand-wrap p{color:#dcecff;font-weight:600}
.brand-icon{background:linear-gradient(145deg,#ffcb47,#ff6d8d 55%,#a884ec);border:3px solid #fff1bc;transform:rotate(-7deg);font-size:1.45rem}
.sticker-strip span{background:#fff5c8;border:2px solid #fff;box-shadow:3px 4px 0 rgba(0,0,0,.18);width:34px;height:34px}
.top-actions button{border:2px solid rgba(255,255,255,.32);background:#405181;color:#fff;font-weight:750}
.top-actions button:hover{background:#5669a0;transform:translateY(-1px)}
.top-actions button.danger{background:#ffbfac;color:#682d3e;border-color:#ffe0bb}
.progress-nav{top:78px;background:#fffdf2;border:2px solid #26365f;border-top:0;border-radius:0 0 18px 18px;box-shadow:0 6px 14px rgba(42,51,78,.12)}
.progress-step{border:2px solid #ded7c6;box-shadow:2px 3px 0 rgba(38,54,95,.1);font-weight:800}
.progress-step:nth-child(3n+1){background:#dbf5ff;color:#225c75}
.progress-step:nth-child(3n+2){background:#f2e8ff;color:#5b4384}
.progress-step:nth-child(3n){background:#fff0b8;color:#745312}
.progress-step.done{background:#c5f0d3;color:#19593c}
main{max-width:1260px;padding:1.2rem}
.intro-card{position:relative;overflow:hidden;padding:1.2rem 1.35rem;background:linear-gradient(120deg,#fff4bc,#ffd3a5 48%,#ffb8c8);border:3px solid #26365f;box-shadow:5px 6px 0 #7353a6,0 12px 25px rgba(38,54,95,.14);transform:rotate(-.25deg)}
.intro-card h2{font-size:clamp(1.3rem,3vw,1.8rem);color:#26365f;text-shadow:1px 2px #fff}
.intro-card p{max-width:780px;color:#483553;font-size:1.02rem;line-height:1.45}
.intro-card::after{content:"✦  🐾  ?!";position:absolute;right:1.2rem;bottom:.25rem;color:#d83d78;font-size:1.45rem;font-weight:900;letter-spacing:.15rem;transform:rotate(-9deg)}
.autosave-pill{border:2px dashed #398a64;background:#e6ffdb;color:#205c42;white-space:nowrap}
.jimmie-profile-card{background:#e9f4ff;border:2px dashed #5175b5;box-shadow:4px 5px 0 #c8b5e5;transform:rotate(.2deg)}
.profile-badge{background:#ffe276;color:#433325;border:2px solid #fff;box-shadow:2px 3px 0 #c98c3e}
.section{position:relative;border:3px solid #26365f;border-radius:24px;box-shadow:5px 7px 0 rgba(38,54,95,.2),0 12px 24px rgba(38,54,95,.09)}
.section:nth-child(even){transform:rotate(.14deg)}
.section:nth-child(odd){transform:rotate(-.12deg)}
.section[data-color="blue"] .section-head{background:linear-gradient(105deg,#8fdbf1,#d6f6ff 55%,#b2e6e4)}
.section[data-color="green"] .section-head{background:linear-gradient(105deg,#aee182,#f3ffb8 54%,#b4e8c1)}
.section[data-color="peach"] .section-head{background:linear-gradient(105deg,#ffae8b,#ffe7a6 55%,#ffc5bb)}
.section[data-color="lav"] .section-head{background:linear-gradient(105deg,#bba4f3,#efe4ff 55%,#f9c5e4)}
.section[data-color="cam"] .section-head{background:linear-gradient(105deg,#ffe17c,#fff4ae 55%,#ffc890)}
.section[data-color="mint"] .section-head{background:linear-gradient(105deg,#85dab4,#d8f6c6 55%,#b8e9ec)}
.section-head{padding:1rem 1.2rem;border-bottom:2px solid rgba(38,54,95,.16)}
.section-head h2{font-size:clamp(1.2rem,2.5vw,1.55rem);color:#26365f;text-shadow:1px 1px #fff;font-weight:900}
.section-head p{color:#3e4a64;font-size:.97rem;font-weight:600}
.section-title-wrap{gap:1rem}
.section-art{flex-basis:88px;width:88px;height:88px;border:3px solid #fff;border-radius:22px;box-shadow:3px 4px 0 rgba(38,54,95,.24);transform:rotate(3deg)}
.section:nth-child(odd) .section-art{transform:rotate(-4deg)}
.section-meta{gap:.5rem}
.completion-badge{background:#fffdf1;border:2px solid #fff;box-shadow:2px 3px 0 rgba(38,54,95,.15);color:#35435f;font-size:.86rem}
.toggle-ind{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#26365f;color:#fff;font-weight:900}
.section-body{position:relative;padding:1.15rem;background:rgba(255,254,245,.78)}
.field{border:2px solid #d8d2c3;background:#fffefa;box-shadow:3px 4px 0 rgba(38,54,95,.08);border-radius:19px}
.field:nth-of-type(3n+1){border-left:5px solid #db3e78}
.field:nth-of-type(3n+2){border-left:5px solid #3998c2}
.field:nth-of-type(3n){border-left:5px solid #81ad45}
.field-title{color:#29385d;font-size:1.02rem;font-weight:900}
.field-help{line-height:1.45;color:#596780}
.chip{border:1.5px solid #cfd5df;box-shadow:0 2px 0 rgba(38,54,95,.06);font-weight:700}
.chip:nth-child(4n+1){background:#fff1c1}
.chip:nth-child(4n+2){background:#e2f5fc}
.chip:nth-child(4n+3){background:#f2e8ff}
.chip:nth-child(4n){background:#e4f5dc}
.chip.active{background:#d83d78;color:#fff;border-color:#a7285b;box-shadow:0 2px 0 #a7285b}
.chip.multi.active{background:#338866;border-color:#24694d;box-shadow:0 2px 0 #24694d}
.text-input,.text-area,.select-input{border:2px solid #c7cbd4;background:#fff;color:#25314c;border-radius:14px}
.text-input:focus,.text-area:focus,.select-input:focus{outline:3px solid #f4c747;border-color:#556cb3}
.anatomy-group{border-top:3px dotted #b6a4d4}
.anatomy-group h3{display:inline-block;padding:.25rem .6rem;border-radius:999px;background:#f4e5ff;color:#573a78;transform:rotate(-1deg)}
.anatomy-part{border:2px solid #ded7c7;box-shadow:2px 3px 0 rgba(38,54,95,.07)}
.body-plan-banner{background:#e1f7dc;border:2px solid #80bf6c;color:#31583d;font-weight:700}
.creature-reference-gallery{border:2px dashed #c98b49;background:linear-gradient(135deg,#fff3c8,#ffe2d7 52%,#ebdefe);box-shadow:3px 4px 0 rgba(38,54,95,.1)}
.creature-gallery-heading strong{font-family:"Trebuchet MS","Comic Sans MS",system-ui,sans-serif;font-size:1.15rem;color:#5c326d}
.creature-reference{border:2px solid #fff;box-shadow:3px 4px 0 rgba(38,54,95,.18);transform:rotate(-1deg)}
.creature-reference:nth-child(even){transform:rotate(1.4deg)}
.summary-card{border:2px dashed #9886bd;background:linear-gradient(110deg,#f4edff,#fff9e2);box-shadow:3px 4px 0 rgba(38,54,95,.1)}
.summary-card h3{color:#653d7d;font-size:1.15rem}
.lab-doodle{display:flex;position:relative;align-items:center;gap:.8rem;width:min(410px,94%);min-height:106px;padding:.65rem 2rem .65rem .65rem;border:2px solid #fff;border-radius:18px;background:#fff4bd;box-shadow:4px 5px 0 rgba(38,54,95,.2);justify-self:start}
.lab-doodle.tilt-left{justify-self:end;transform:rotate(-1.6deg);background:#e7f7ff}
.lab-doodle.tilt-right{transform:rotate(1.25deg);background:#ffe5e9}
.lab-doodle-art{flex:0 0 92px;width:92px;height:82px;border:2px solid #fff;border-radius:14px;background-image:url('assets/creature-building-sprite.png');background-size:300% 200%;background-repeat:no-repeat;box-shadow:2px 3px 0 rgba(38,54,95,.17)}
.lab-doodle-copy{display:grid;gap:.25rem}
.lab-doodle-copy strong{font-family:"Trebuchet MS","Comic Sans MS",system-ui,sans-serif;color:#442c66;font-size:.94rem}
.lab-doodle-copy span{font-size:.88rem;line-height:1.3;color:#43516c}
.lab-doodle i{position:absolute;right:.55rem;top:.3rem;color:#e55a77;font-style:normal;font-size:1.25rem}
.final-output{border:3px solid #26365f;box-shadow:5px 7px 0 #db3e78;background:linear-gradient(135deg,#fff8d9,#ffe1e8 55%,#e9e0ff)}
.final-output h2{font-family:"Trebuchet MS","Comic Sans MS",system-ui,sans-serif;color:#26365f}
.final-output textarea{border:3px solid #8294c3;background:#fffefa;font-family:system-ui,sans-serif}
button{font-weight:750;box-shadow:2px 3px 0 rgba(38,54,95,.13)}
button.primary{background:#db3e78;border:2px solid #a7285b;box-shadow:0 3px 0 #a7285b}
button.primary:hover{background:#c92f69}
button.danger{background:#ffe1d6}
.take-me-btn{background:#ffdf75;color:#3c3153;border:2px solid #d5a72f}
.field-highlight{outline-color:#ee994d!important}
.audit-group,.wonder-health-card{border:2px solid #c9bfdc;box-shadow:2px 3px 0 rgba(38,54,95,.08)}
.audit-status.ready{background:#c9f0cf;color:#1f5e39}
.warning{border-width:2px}
.section-heading-row h2{color:#26365f}
@media(max-width:800px){.topbar{position:static}.progress-nav{top:0}.section:nth-child(n){transform:none}.section-head{gap:.55rem}.section-art{flex-basis:64px;width:64px;height:64px;border-radius:16px}.section-meta{flex-shrink:0}}
@media(max-width:600px){main{padding:.7rem}.top-actions{justify-content:flex-start}.progress-nav{position:static}.intro-card{align-items:flex-start}.intro-card::after{font-size:1rem;right:.65rem;bottom:.3rem}.section-art{display:block;flex-basis:52px;width:52px;height:52px}.section-title-wrap{gap:.5rem}.section-head{padding:.8rem}.section-head p{font-size:.88rem}.section-meta{flex-direction:column;align-items:flex-end}.completion-badge{font-size:.72rem;padding:.35rem .5rem}.lab-doodle{width:96%;min-height:92px}.lab-doodle-art{flex-basis:76px;width:76px;height:72px}}

/* v5.9.15 — Jimmie's sticker-bombed, creature-making laboratory */
:root{--ink:#242440;--muted:#5a5872;--line:#d4c7d8;--card:#fffdf5;--primary:#dc347e;--primary-dark:#b42062;--shadow:0 8px 22px rgba(39,34,74,.18)}
body{font-family:"Comic Sans MS","Chalkboard SE","Trebuchet MS",system-ui,sans-serif;background:#8f65a7 url('assets/lab-wallpaper.svg') repeat;background-size:440px 440px;background-attachment:fixed}
.topbar{background:linear-gradient(105deg,#242e58,#512b73 54%,#842f6a);box-shadow:0 6px 0 #f2be39,0 11px 25px rgba(36,29,72,.28)}
.brand-wrap h1{font-family:Impact,"Arial Black",fantasy,sans-serif;font-weight:900;letter-spacing:.025em;-webkit-text-stroke:.5px #fff0a4;text-shadow:3px 3px 0 #df3c7d,6px 6px 0 #171b39;transform:rotate(-1deg)}
.brand-wrap p{font-family:"Comic Sans MS",cursive;color:#ffeda4}
.intro-card{background:linear-gradient(115deg,rgba(255,238,152,.96),rgba(255,184,204,.93) 52%,rgba(185,226,255,.94));border-color:#312b56;box-shadow:5px 7px 0 #ec5392,9px 11px 0 rgba(43,35,81,.19)}
.intro-card h2,.section-head h2,.final-output h2{font-family:Impact,"Arial Black",fantasy,sans-serif;letter-spacing:.015em;text-shadow:2px 2px 0 #fff,3px 4px 0 rgba(216,54,126,.32)}
.section{background:#fffaf2;border-color:#302c58;box-shadow:5px 7px 0 rgba(44,36,83,.25),0 10px 25px rgba(44,36,83,.12)}
.section-head{background-image:radial-gradient(circle at 14% 20%,rgba(255,255,255,.8) 0 4px,transparent 5px),radial-gradient(circle at 87% 76%,rgba(255,255,255,.8) 0 5px,transparent 6px);background-color:#fff5d6}
.section-title-wrap{position:relative;align-items:center}
.section-art{object-fit:contain;background:transparent;border:0;filter:drop-shadow(2px 4px 0 rgba(48,32,71,.28));flex:0 0 88px;width:88px;height:88px;padding:0;transform:rotate(4deg)}
.section:nth-child(odd) .section-art{transform:rotate(-5deg)}
.section[data-color="blue"] .section-head{background-color:#c4f0fb}.section[data-color="green"] .section-head{background-color:#dff5ad}.section[data-color="peach"] .section-head{background-color:#ffd1ac}.section[data-color="lav"] .section-head{background-color:#e5cff9}.section[data-color="cam"] .section-head{background-color:#ffe885}.section[data-color="mint"] .section-head{background-color:#b6edcf}
.section-body{background:rgba(255,248,227,.79);backdrop-filter:blur(1px)}
.field{position:relative;isolation:isolate;overflow:hidden;background:rgba(255,254,249,.96);border-color:#d9c8d5}
.field>*{position:relative;z-index:1}
.field:nth-of-type(5n+2)::after,.field:nth-of-type(7n+4)::after{content:"";position:absolute;z-index:0;right:1%;bottom:-14%;width:112px;height:112px;background:url('assets/stickers/rose-dragon.webp') center/contain no-repeat;opacity:.12;transform:rotate(-13deg);pointer-events:none}
.field:nth-of-type(7n+4)::after{background-image:url('assets/stickers/black-winged-cryptid.webp');right:2%;bottom:-11%;transform:rotate(9deg)}
.field-title{font-family:"Trebuchet MS","Comic Sans MS",system-ui,sans-serif;font-weight:900;text-shadow:1px 1px #ffeb9c}
.lab-doodle{display:flex;align-items:center;gap:.4rem;width:auto;min-height:0;max-width:410px;padding:.25rem .75rem .25rem .25rem;border:0;background:transparent;box-shadow:none;justify-self:start;isolation:isolate}
.lab-doodle.tilt-left{justify-self:end;transform:rotate(-3deg);background:transparent}.lab-doodle.tilt-right{transform:rotate(2deg);background:transparent}
.lab-doodle-art{flex:0 0 112px;width:112px;height:104px;object-fit:contain;border:0;border-radius:0;background:none;box-shadow:none;filter:drop-shadow(2px 3px 0 rgba(47,34,72,.24))}
.lab-doodle-copy{padding:.5rem .65rem;border:2px solid #fff;border-radius:15px;background:#fff2a9;box-shadow:2px 3px 0 #bf4a84;transform:rotate(-2deg)}
.lab-doodle.tilt-left .lab-doodle-copy{background:#d7f4ff;transform:rotate(2deg)}
.lab-doodle-copy strong{font-family:Impact,"Arial Black",fantasy;color:#573077;font-size:1rem;letter-spacing:.02em}.lab-doodle-copy span{font-size:.86rem;color:#363453}
.lab-doodle i{right:0;top:0;color:#e63783;text-shadow:1px 1px white}
.creature-reference-gallery{background:linear-gradient(130deg,#ffe9a6,#fac1dc 50%,#c5e8fa);border-color:#a64378}
.final-output{background:linear-gradient(130deg,#fff3b0,#ffc5d8 50%,#c5d5ff);}
@media(max-width:600px){.section-art{flex-basis:58px;width:58px;height:58px}.lab-doodle-art{flex-basis:82px;width:82px;height:82px}.lab-doodle{max-width:100%}.lab-doodle-copy{padding:.38rem .48rem}}
.sticker-strip{gap:.06rem;margin-left:.12rem}.sticker-strip img{width:38px;height:38px;object-fit:contain;filter:drop-shadow(1px 2px 0 rgba(0,0,0,.35));transform:rotate(-7deg)}.sticker-strip img:nth-child(even){transform:rotate(8deg) translateY(-3px)}
.profile-badge,.completion-badge,.progress-step{font-family:Impact,"Arial Black",fantasy,sans-serif;letter-spacing:.015em}
\n\n/* v5.9.16 MINI LAB BUILDER — guided path + anatomy rooms */
.guide-control-card{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:1rem 0;padding:1rem 1.15rem;border:3px solid #302c58;border-radius:22px;background:linear-gradient(120deg,#d8f6ff,#f5d8ff 52%,#fff0a7);box-shadow:5px 6px 0 rgba(48,44,88,.22)}
.guide-control-card strong{display:block;font-family:Impact,"Arial Black",fantasy,sans-serif;font-size:1.35rem;color:#3e2b65;letter-spacing:.02em}.guide-control-card p{margin:.3rem 0 0;color:#4d4966}.guide-kicker{font-weight:900;color:#b52869;font-size:.82rem;letter-spacing:.04em}.guide-mode-buttons{display:flex;flex-wrap:wrap;gap:.55rem;justify-content:flex-end}.guided-hidden{display:none!important}.progress-step.current{outline:4px solid #f0b62e;outline-offset:2px;transform:translateY(-1px)}
.guide-footer{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.8rem;margin-top:1rem;padding:.85rem;border:2px dashed #6b55a0;border-radius:18px;background:linear-gradient(100deg,#fff3bd,#f8e5ff)}.guide-footer-note{text-align:center;color:#514a67;font-weight:700}.guide-footer button:disabled{opacity:.45;cursor:not-allowed}
.anatomy-group{padding:.55rem 0 .15rem}.anatomy-room-head{width:100%;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:.6rem;padding:.7rem .85rem;border:2px solid #8d75b8;border-radius:16px;background:linear-gradient(100deg,#efe1ff,#fff1b8);color:#4d3769;text-align:left;box-shadow:2px 3px 0 rgba(48,44,88,.14)}.anatomy-room-head span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#4c356e;color:#fff;font-size:1.15rem}.anatomy-room-head strong{font-family:"Trebuchet MS","Comic Sans MS",system-ui,sans-serif;font-size:1.03rem}.anatomy-room-head small{font-weight:800;color:#75648b}.anatomy-group.closed .anatomy-part-grid{display:none}.anatomy-group.closed{padding-bottom:.4rem}.anatomy-group>h3{display:none}
@media(max-width:700px){.guide-control-card{align-items:flex-start;flex-direction:column}.guide-mode-buttons{justify-content:flex-start}.guide-footer{grid-template-columns:1fr}.guide-footer-note{order:-1;text-align:left}.anatomy-room-head{grid-template-columns:30px 1fr}.anatomy-room-head small{grid-column:2}}


/* v5.9.18 MINI LAB BUILDER — Wonder Memory Box */
.wonder-memory{position:fixed;right:16px;bottom:18px;z-index:30;width:min(330px,calc(100vw - 28px));max-height:68vh;border:3px solid #302c58;border-radius:22px;background:#fff9dc;box-shadow:7px 8px 0 rgba(48,44,88,.25),0 15px 34px rgba(34,28,68,.25);overflow:hidden;transform:rotate(.25deg)}
.memory-head{width:100%;display:grid;grid-template-columns:42px 1fr 24px;align-items:center;gap:.55rem;padding:.72rem .8rem;border:0;border-radius:0;background:linear-gradient(105deg,#ffe77f,#ffc7df 55%,#d8e9ff);color:#342853;text-align:left;box-shadow:none}
.memory-head:hover{filter:none}.memory-head .memory-brain{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#fff;border:2px solid #7c5798;font-size:1.25rem}.memory-head strong{display:block;font-family:Impact,"Arial Black",fantasy,sans-serif;letter-spacing:.025em;font-size:1rem}.memory-head small{display:block;margin-top:.08rem;color:#625879;font-weight:800}.memory-head b{font-size:1.25rem;text-align:center}.memory-body{max-height:calc(68vh - 64px);overflow:auto;padding:.7rem;background:linear-gradient(180deg,#fffdf2,#fff7e2)}
.memory-now{padding:.7rem .75rem;border:2px dashed #c05584;border-radius:15px;background:#fff}.memory-now strong{font-size:.9rem;color:#9f2e68}.memory-now p{margin:.28rem 0 0;font-size:.88rem;line-height:1.35;color:#433b58}.memory-list{display:grid;gap:.38rem;margin-top:.6rem}.memory-row{display:grid;grid-template-columns:30px 1fr;gap:.42rem;align-items:start;padding:.5rem .55rem;border:1px solid #e1d7c6;border-radius:13px;background:rgba(255,255,255,.78)}.memory-row.memory-hot{border:2px solid #e7ad37;background:#fff3bc;box-shadow:2px 2px 0 rgba(183,116,39,.15)}.memory-icon{font-size:1rem;line-height:1.2}.memory-row strong{display:block;font-size:.79rem;color:#6d3e76;text-transform:uppercase;letter-spacing:.025em}.memory-row span:not(.memory-icon){display:block;margin-top:.05rem;font-size:.86rem;line-height:1.28;color:#37334c}.memory-foot,.memory-empty{margin-top:.55rem;font-size:.78rem;line-height:1.3;color:#6a6078;text-align:center;font-weight:700}.wonder-memory.memory-collapsed{width:285px;max-height:none}.wonder-memory.memory-collapsed .memory-body{display:none}
@media(min-width:1250px){main{padding-right:1.2rem}.wonder-memory{right:20px}}
@media(max-width:900px){.wonder-memory{right:10px;bottom:10px;width:min(310px,calc(100vw - 20px));max-height:58vh}.memory-body{max-height:calc(58vh - 64px)}}
@media(max-width:560px){.wonder-memory{right:8px;bottom:8px;width:calc(100vw - 16px);transform:none}.wonder-memory:not(.memory-collapsed){max-height:52vh}.wonder-memory:not(.memory-collapsed) .memory-body{max-height:calc(52vh - 64px)}.wonder-memory.memory-collapsed{width:calc(100vw - 16px)}}

/* v5.9.19 — Rooms Everywhere: one thought at a time */
.lab-room{margin:.8rem 0 1rem;padding:.25rem 0}.lab-room-head{width:100%;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:.65rem;padding:.78rem .9rem;border:2px solid #7f6aad;border-radius:17px;background:linear-gradient(105deg,#f0e5ff,#fff4c9);color:#493764;text-align:left;box-shadow:2px 3px 0 rgba(48,44,88,.13);cursor:pointer}.lab-room-head span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#4c356e;color:#fff;font-size:1.15rem;font-weight:900}.lab-room-head strong{font-family:"Trebuchet MS","Comic Sans MS",system-ui,sans-serif;font-size:1.05rem}.lab-room-head small{font-weight:800;color:#75648b}.lab-room-body{padding:.35rem .15rem .1rem}.lab-room.closed .lab-room-body{display:none}.lab-room.closed{margin-bottom:.55rem}
@media(max-width:700px){.lab-room-head{grid-template-columns:30px 1fr}.lab-room-head small{grid-column:2}.lab-room-body{padding-top:.2rem}}

/* v5.9.20 — The Lab Knows When to Shut Up
   Conditional questions disappear when earlier choices make them irrelevant. */

/* v5.9.23 — whole-Wonder cross-check brain + doors */
.door-close-btn,.section-door-close-btn{width:100%;min-height:48px;margin:.85rem 0 .15rem;border:2px solid #60457f;border-radius:15px;background:linear-gradient(105deg,#fff4c9,#f0e5ff);color:#493764;font-weight:900;font-size:.96rem;cursor:pointer;box-shadow:2px 3px 0 rgba(48,44,88,.13)}
.door-close-btn:active,.section-door-close-btn:active{transform:translateY(1px);box-shadow:1px 2px 0 rgba(48,44,88,.13)}
.section-door-close-btn{margin-top:.25rem;background:linear-gradient(105deg,#f7ead4,#efe4ff)}
.door-state{min-width:118px;width:auto!important;padding:0 .55rem;border-radius:999px;font-size:.78rem!important;white-space:nowrap}
.lab-room.closed .lab-room-head small,.anatomy-group.closed .anatomy-room-head small{font-weight:900;color:#5a3d79}
@media(max-width:560px){.door-close-btn,.section-door-close-btn{min-height:52px;font-size:1rem}.door-state{min-width:auto;white-space:normal;text-align:center}}
.coach-do-this{margin:.8rem 0;padding:.8rem 1rem;border-radius:14px;background:rgba(255,232,122,.28);border:2px solid rgba(199,153,24,.35);font-size:1.02rem;line-height:1.35}.coach-do-this strong{font-weight:900}.apply-fix-btn{font-weight:900}


/* v5.9.48 — OPERATION BEAUTIFUL BEDLAM: visual-only room themes.
   All controls remain standard, readable, and fully operable. */
:root{--bedlam-cream:#fffdf6}
.section{position:relative;isolation:isolate;overflow:hidden;border:3px solid var(--room-edge,#39264b);background:var(--room-wall,#fff9f1)}
.section .section-head{position:relative;isolation:isolate;overflow:hidden;border-bottom:4px double var(--room-edge,#39264b);background:var(--room-header,#fff4d6);background-image:var(--room-pattern,none);background-size:auto,80px 80px}
.section .section-head::before{content:var(--room-label,'THE IMAGINARIUM');position:absolute;right:9px;top:6px;font:900 .65rem/1.2 'Trebuchet MS',sans-serif;letter-spacing:.1em;padding:5px 9px;border-radius:4px;background:var(--room-sign,#fff);border:1px solid var(--room-edge,#39264b);transform:rotate(3deg);pointer-events:none;opacity:.9}
.section .section-head h2{color:var(--room-ink,#2e2046);font-family:var(--room-font,Impact,'Arial Black',fantasy),Impact,sans-serif;letter-spacing:.035em;text-shadow:2px 2px 0 #fff7df,3px 4px 0 var(--room-shadow,#efbad5)}
.section .section-body{position:relative;isolation:isolate;background:var(--room-wall,#fff9f1);background-image:var(--room-pattern,none);background-size:180px 180px}
.section .section-body::before,.section .section-body::after{content:'';position:absolute;z-index:-1;pointer-events:none;width:130px;height:145px;background:var(--room-sticker-a) center/contain no-repeat;opacity:.24;transform:rotate(-12deg)}
.section .section-body::before{top:4%;right:-20px}.section .section-body::after{bottom:12%;left:-26px;background-image:var(--room-sticker-b);transform:rotate(15deg)}
.section .field{background:rgba(255,255,252,.96);border:2px solid var(--room-field-edge,#d8c8da);box-shadow:2px 3px 0 rgba(32,23,57,.07)}
.section .lab-room-head,.section .anatomy-room-head{background:var(--room-roomhead,linear-gradient(105deg,#fff0cf,#f4dfff));border-color:var(--room-edge,#7f6aad)}
.section .lab-room-head strong,.section .anatomy-room-head strong{color:var(--room-ink,#493764)}
.section .section-art{filter:drop-shadow(3px 5px 1px rgba(33,22,44,.33))}
.section .summary-card{border:2px dashed var(--room-edge,#7f6aad)}
/* Creature — Victorian cabinet of curiosities */
#section-creature{--room-edge:#62442b;--room-ink:#442c22;--room-header:#e6c68a;--room-wall:#f7ebd3;--room-field-edge:#b99a68;--room-sign:#fce9b5;--room-label:'01  •  CABINET OF CURIOSITIES';--room-font:Georgia;--room-shadow:#d1a36c;--room-sticker-a:url('assets/stickers/black-winged-cryptid.webp');--room-sticker-b:url('assets/stickers/peacock-hatchling.webp');--room-pattern:repeating-linear-gradient(90deg,transparent 0 33px,rgba(93,56,28,.045) 34px 36px),radial-gradient(circle at 10% 20%,rgba(125,79,31,.10),transparent 55%);--room-roomhead:linear-gradient(105deg,#f6dca9,#e4f2d7)}
/* Body — Frankenstein's flamboyant anatomy workshop */
#section-body{--room-edge:#652e83;--room-ink:#4c176b;--room-header:#c6f453;--room-wall:#f4e8ff;--room-field-edge:#a879c8;--room-sign:#ffb8ef;--room-label:'02  •  FRANKENSTEIN’S WORKSHOP';--room-font:Impact;--room-shadow:#fc83e2;--room-sticker-a:url('assets/stickers/crystal-bog-monster.webp');--room-sticker-b:url('assets/stickers/rose-dragon.webp');--room-pattern:repeating-linear-gradient(135deg,transparent 0 42px,rgba(162,58,198,.065) 43px 46px),radial-gradient(circle at 80% 10%,rgba(159,238,59,.22),transparent 45%);--room-roomhead:linear-gradient(100deg,#c6ff75,#f9b4f7)}
/* World — a room of portals */
#section-world{--room-edge:#176a75;--room-ink:#124b65;--room-header:#a5eced;--room-wall:#e4f7f5;--room-field-edge:#79c1c0;--room-sign:#ffe3aa;--room-label:'03  •  THE PORTAL ROOM';--room-font:Georgia;--room-shadow:#85d5d8;--room-sticker-a:url('assets/stickers/mushroom-griffin.webp');--room-sticker-b:url('assets/stickers/button-rider.webp');--room-pattern:radial-gradient(ellipse at 50% 50%,transparent 0 45px,rgba(17,130,145,.11) 46px 49px,transparent 50px 80px),linear-gradient(130deg,rgba(255,228,153,.2),rgba(138,210,234,.2));--room-roomhead:linear-gradient(105deg,#9df4dc,#c9c0ff)}
/* Story — comic-book riot */
#section-action{--room-edge:#b52e3c;--room-ink:#791b3d;--room-header:#ffe25d;--room-wall:#fff0df;--room-field-edge:#f5a16c;--room-sign:#ff98ac;--room-label:'04  •  COMIC BOOK RIOT';--room-font:Impact;--room-shadow:#f9a2a4;--room-sticker-a:url('assets/stickers/button-rider.webp');--room-sticker-b:url('assets/stickers/rose-dragon.webp');--room-pattern:radial-gradient(circle,rgba(217,48,68,.12) 1px,transparent 2px),linear-gradient(120deg,rgba(255,213,66,.15),rgba(255,111,163,.12));--room-roomhead:linear-gradient(105deg,#ffdb5c,#ffb2cb)}
#section-action .section-head h2{transform:rotate(-1deg);text-transform:uppercase}
/* Camera — golden age Hollywood */
#section-camera{--room-edge:#563052;--room-ink:#512947;--room-header:#e5b76d;--room-wall:#f8e8ec;--room-field-edge:#b995aa;--room-sign:#f7dd99;--room-label:'05  •  HOLLYWOOD DREAM FACTORY';--room-font:Georgia;--room-shadow:#e4a9bb;--room-sticker-a:url('assets/stickers/moth-wing-dragon.webp');--room-sticker-b:url('assets/stickers/peacock-hatchling.webp');--room-pattern:repeating-linear-gradient(90deg,rgba(102,28,67,.065) 0 18px,transparent 19px 56px),radial-gradient(circle at 50% 10%,rgba(247,208,114,.2),transparent 45%);--room-roomhead:linear-gradient(105deg,#f4d49e,#efb6cf)}
/* Check — retro-futurist mission control */
#section-final{--room-edge:#245077;--room-ink:#1e416a;--room-header:#b4f0e4;--room-wall:#e8f1ff;--room-field-edge:#94b3d5;--room-sign:#d9f1ff;--room-label:'06  •  MISSION CONTROL';--room-font:Impact;--room-shadow:#94c8f2;--room-sticker-a:url('assets/stickers/jimmie-mascot.webp');--room-sticker-b:url('assets/stickers/black-winged-cryptid.webp');--room-pattern:linear-gradient(rgba(49,95,154,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(49,95,154,.07) 1px,transparent 1px);--room-roomhead:linear-gradient(105deg,#a4e8f3,#c9d2ff)}
.mcgee-corner{position:relative;overflow:hidden;display:flex;align-items:center;gap:1rem;margin:1.6rem 0;padding:1.1rem 1.25rem;border:4px double #e2b968;border-radius:25px;background:radial-gradient(circle at 20% 15%,#a74975 0,#51234e 58%,#291d43 100%);color:#fff4d5;box-shadow:6px 8px 0 rgba(30,18,54,.25)}
.mcgee-chandelier{position:absolute;top:0;left:13%;color:#fff1a6;font-size:1.5rem;text-shadow:0 0 10px #fff0a3;pointer-events:none}
.mcgee-chaise{font-size:3.3rem;flex:0 0 auto;filter:drop-shadow(3px 4px 0 #261a3e)}
.mcgee-copy{display:flex;flex-direction:column;gap:.35rem;min-width:0}.mcgee-copy strong{font:900 1.3rem Impact,'Arial Black',sans-serif;letter-spacing:.07em;color:#ffdb81;text-shadow:2px 2px #1b102c}.mcgee-copy span{font-weight:800}.mcgee-copy small{color:#f8d6e8}
.mcgee-corner img{width:85px;height:95px;object-fit:contain;margin-left:auto;transform:rotate(8deg)}
@media(max-width:600px){.section .section-head::before{position:static;display:inline-block;max-width:70%;margin:3px 0 0 8px;font-size:.56rem;transform:none}.section .section-body::before,.section .section-body::after{width:85px;height:95px;opacity:.13}.mcgee-corner{padding:.8rem;gap:.55rem}.mcgee-chaise{font-size:2.4rem}.mcgee-corner img{width:55px;height:60px}.mcgee-copy strong{font-size:1.04rem}}
@media(prefers-reduced-motion:reduce){.section *, .mcgee-corner *{animation:none!important}}


/* v5.9.49 — ABSOLUTE BEDLAM. Art stays outside interactive field surfaces. */
.section{border-width:5px!important;box-shadow:9px 12px 0 rgba(22,14,39,.2),0 0 0 4px #fff inset;margin-bottom:2rem!important}
.section .section-head{min-height:140px;padding:1.2rem 1rem!important;background-color:var(--room-header)!important;border-bottom-width:7px!important}
.section .section-head h2{font-size:clamp(1.7rem,5vw,2.7rem)!important;line-height:1.08;transform:rotate(-1deg);text-shadow:3px 3px #fff,5px 6px var(--room-shadow)!important}
.section .section-head::before{font-size:.72rem!important;letter-spacing:.13em!important;border:3px solid var(--room-edge)!important;box-shadow:3px 4px 0 var(--room-shadow)!important}
.section .section-body{padding:1rem!important;background-color:var(--room-wall)!important}
.section .field{position:relative;z-index:1;border-width:2px!important;border-radius:17px!important;box-shadow:4px 5px 0 var(--room-shadow)!important;margin-bottom:1.15rem!important}
.section .lab-room,.section .anatomy-group,.section .eye-room{position:relative;z-index:1;border-left:7px dotted var(--room-edge);padding-left:.55rem;margin-top:1.25rem}
.section .lab-room-head,.section .anatomy-room-head{border-width:3px!important;box-shadow:5px 5px 0 var(--room-shadow)!important}
.section .summary-card{position:relative;z-index:1;background:#fffef9!important}
.bedlam-gallery{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:160px;margin:.3rem 0 1.5rem;padding:1rem;border:4px dashed var(--room-edge);border-radius:23px;background:var(--room-header);box-shadow:inset 0 0 0 5px rgba(255,255,255,.45),6px 7px 0 var(--room-shadow);overflow:hidden}
.bedlam-gallery-copy{position:relative;z-index:2;max-width:56%;display:flex;flex-direction:column;gap:.55rem;transform:rotate(-2deg)}
.bedlam-gallery-copy b{font:900 clamp(1.1rem,3.8vw,2rem)/1.1 Impact,'Arial Black',system-ui,sans-serif;color:var(--room-ink);text-shadow:2px 2px #fff,3px 4px var(--room-shadow)}
.bedlam-gallery-copy span{font:700 .88rem/1.3 Georgia,serif;color:var(--room-ink)}
.bedlam-gallery-critters{display:flex;align-items:center;justify-content:flex-end;flex:1;min-width:0}
.bedlam-critter{width:33%;max-width:115px;height:140px;object-fit:contain;filter:drop-shadow(3px 5px 1px rgba(15,12,30,.35));transform:rotate(-13deg)}
.bedlam-critter-1{transform:translateY(12px) rotate(13deg)}.bedlam-critter-2{transform:translateY(-9px) rotate(-7deg)}
/* The six spaces are separate visual worlds, not one palette with six accent colors. */
#section-creature{--room-wall:#ead4a7;--room-header:#ad7d46;--room-shadow:#b28a51;--room-pattern:repeating-linear-gradient(90deg,rgba(79,42,19,.16) 0 3px,transparent 4px 75px),radial-gradient(circle at 20% 10%,#f7e7bf,#ddbb81)}
#section-creature .bedlam-gallery{background:repeating-linear-gradient(0deg,#ead4a7 0 28px,#b89260 29px 31px);border-style:double;border-width:9px}
#section-creature .bedlam-gallery-copy b{font-family:Georgia,serif;font-variant:small-caps}
#section-body{--room-wall:#e5c6ff;--room-header:#b7ff49;--room-shadow:#ff77c8;--room-pattern:repeating-linear-gradient(45deg,rgba(107,32,135,.18) 0 4px,transparent 5px 60px),radial-gradient(circle at 85% 25%,#f5bbfa,#d8ff8a)}
#section-body .bedlam-gallery{background:repeating-linear-gradient(120deg,#b5ff58 0 20px,#e5b7ff 20px 40px,#ff91cc 40px 60px);border-style:solid;transform:rotate(.5deg)}
#section-body .bedlam-gallery-copy b{font-style:italic;letter-spacing:.06em}
#section-world{--room-wall:#bde6ed;--room-header:#56d2d1;--room-shadow:#f5bb5a;--room-pattern:radial-gradient(ellipse at center,transparent 0 28px,rgba(6,99,127,.23) 30px 33px,transparent 35px 68px),linear-gradient(135deg,#c3ffed,#c9d2ff)}
#section-world .bedlam-gallery{border-radius:55px 15px 55px 15px;background:radial-gradient(ellipse at center,#e3c5ff,#66d6d1 60%,#225a9c)}
#section-action{--room-wall:#ffdbac;--room-header:#ffe64d;--room-shadow:#ff6b7c;--room-pattern:radial-gradient(circle,#dd3351 1.7px,transparent 2.8px),linear-gradient(125deg,#fff5c4,#ffbdad);}
#section-action .section-head h2{font-family:Impact,'Arial Black',sans-serif!important;font-style:italic;text-transform:uppercase}
#section-action .bedlam-gallery{clip-path:polygon(0 5%,96% 0,100% 90%,5% 100%);background:linear-gradient(135deg,#ffec44,#ff6e94);border-radius:0}
#section-camera{--room-wall:#5c254d;--room-header:#e4b56a;--room-shadow:#a7677f;--room-pattern:repeating-linear-gradient(90deg,#572445 0 40px,#702d5a 41px 75px,#4c1d41 76px 105px)}
#section-camera .bedlam-gallery{background:radial-gradient(ellipse at 55% -30%,#fff0c3,#b34c82 55%,#4d1949);border:6px ridge #edc978}
#section-camera .section-body>.lab-room{background:rgba(255,245,231,.93);border-radius:14px;padding:8px}
#section-final{--room-wall:#182d59;--room-header:#8de8f0;--room-shadow:#80aaff;--room-pattern:linear-gradient(rgba(99,236,242,.23) 2px,transparent 2px),linear-gradient(90deg,rgba(99,236,242,.23) 2px,transparent 2px)}
#section-final .bedlam-gallery{background:repeating-linear-gradient(135deg,#243c6e 0 28px,#365f82 29px 31px);border:5px solid #69e3ed;box-shadow:0 0 0 5px #213d75,0 0 16px #69e3ed}
#section-final .bedlam-gallery-copy b,#section-final .bedlam-gallery-copy span{color:#d3ffff;text-shadow:2px 2px #172d57}
#section-final .section-body>.lab-room{background:rgba(232,246,255,.95);padding:8px;border-radius:14px}
@media(max-width:700px){.section .section-head{min-height:110px}.section .section-body{padding:.65rem!important}.bedlam-gallery{min-height:128px;padding:.65rem}.bedlam-gallery-copy{max-width:55%}.bedlam-critter{height:110px}.section .section-head h2{font-size:1.55rem!important}}

/* v5.9.50: small, context-sensitive anatomical reference cabinet */

/* Tiny family-specific photographic anatomy references; never obstruct controls. */
.reference-shelf{grid-column:1/-1;background:linear-gradient(130deg,#14182a,#2c2144);border:2px solid #bc944c;border-radius:16px;padding:12px;margin:6px 0 15px;color:#fff;min-width:0}
.reference-shelf-heading{font-weight:800;font-size:1rem;color:#f9d68d;margin-bottom:10px}
.reference-shelf-heading small{display:block;font-size:.76rem;font-weight:500;color:#f1e4ca;margin-top:3px}
.reference-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(95px,1fr));gap:9px}
.reference-tile{margin:0;min-width:0;background:#0c1422;border:1px solid #9d7b50;border-radius:10px;overflow:hidden}
.reference-tile img{display:block;width:100%;height:96px;object-fit:cover;object-position:center}
.reference-tile figcaption{font-size:.76rem;text-align:center;padding:6px 3px;color:#fff;font-weight:650;line-height:1.25}
@media(max-width:540px){.reference-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-tile img{height:85px}}

.encyclopedia-entry{margin:12px 0 18px;padding:14px;border:2px solid #c99044;background:linear-gradient(100deg,#1b173b,#4b1a55);border-radius:16px;color:#fff;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.encyclopedia-open{display:inline-block;padding:12px 16px;border-radius:12px;background:#f7b64f;color:#1c1631!important;font-weight:800;text-decoration:none!important}.encyclopedia-entry span{font-size:14px}

/* Complete anatomy memory: compact until Jimmie asks to see it. */
.memory-inventory{margin:12px 0;border:1px solid rgba(90,125,165,.35);border-radius:12px;overflow:hidden;background:rgba(255,255,255,.07)}
.memory-inventory summary{cursor:pointer;padding:12px;font-weight:800;line-height:1.4;list-style-position:inside}
.memory-inventory-content{padding:4px 12px 12px;max-height:48vh;overflow:auto}
.memory-inventory-group{margin:10px 0}.memory-inventory-group>strong{display:block;margin-bottom:5px;border-bottom:1px solid rgba(130,130,130,.3);padding-bottom:4px}
.memory-inventory-item{padding:4px 0;overflow-wrap:anywhere;line-height:1.45}
