# Expansion panels for THE MEDICINE FOR EVERYONE, Book 29 (Cipla).
# Merged by build_book.py to make it a full-length book.
STYLE=("children's storybook manga illustration, warm painted animation style, soft cinematic light, "
"clean linework, NO text NO letters NO words")
CHARLOTTE=("Charlotte, the SAME young Indian CHILD girl from the reference, round young face, warm tan skin, "
"freckles, glossy black hair in two low twin ponytails, big curious dark eyes, bright TEAL t-shirt, NO facial hair")
BUFFETT="Warren, a folksy cheerful elderly American man, thinning white hair, big friendly glasses, grey suit"
MUNGER="Charlie, a stocky wise elderly American man, very thick black-framed glasses, dark suit"
RUBY=("Ruby, a warm friendly Western PHARMACIST, NOT Indian, white lab coat over a coral top, clear safety glasses, "
"a small pill tray in one hand, dark curly hair pinned up in a bun, kind determined smile")
RUBY_TAG="; the woman is the SAME friendly Western pharmacist from the reference image, same white lab coat over a coral top, same safety glasses, same pill tray"

def P(img,cap=None,b1=None,b2=None,sfx=None,sfxc="#e8425a"):
    return ("panel",img,cap,b1,b2,sfx,sfxc,False)

# prompts for the extra images: filename -> (w,h,seed,prompt,ref)
NEW2={
 "ci_c1_night":(1024,720,2960,f"{STYLE}. {CHARLOTTE} alone in her cozy bedroom at night, moonlight through the window, a small pill resting in her open palm beside the glowing compass, EXPRESSION curious and brave","charlotte"),
 "ci_c2_gowns":(1024,720,2961,f"{STYLE}. {CHARLOTTE} giggling in a white coat and safety glasses far too big for her, standing at the doorway of a spotless clean-room, EXPRESSION playful and giggly","charlotte"),
 "ci_c2_scale":(1024,720,2962,f"{STYLE}. a colossal medicine factory hall with towering gleaming steel mixing vessels and long conveyor rivers of little bottles, tiny white-coated figures for scale, no faces close up",None),
 "ci_c3_cell":(1024,720,2963,f"{STYLE}. a magical friendly close up of a single round body cell floating in soft blue light, its skin dotted with hundreds of tiny golden keyholes, gentle science, no people",None),
 "ci_c3_fever":(1024,720,2964,f"{STYLE}. a warm storybook picture of a small child tucked in bed with a fever, a soft red glow at their forehead and a caring hand on the blanket, tender and hopeful, no faces close up",None),
 "ci_c4_shapes":(1024,720,2965,f"{STYLE}. a playful gallery of many differently shaped glowing molecule keys floating like snowflakes, each one unique and intricate, magical science, no people",None),
 "ci_c4_click":(1024,720,2966,f"{STYLE}. {CHARLOTTE} carefully guiding one tiny glowing key into a big golden keyhole with her fingertip, a bright ring of light blooming at the moment it clicks, EXPRESSION focused and triumphant","charlotte"),
 "ci_c5_fail":(1024,720,2967,f"{STYLE}. a big gentle heap of hundreds of discarded little molecule keys that did not fit, one lamp glowing over them, patient and quietly sad, no people",None),
 "ci_c5_ruby":(1024,720,2968,f"{STYLE}. {RUBY} kneeling to encourage {CHARLOTTE}, holding up one glowing key that finally fits after all the failures, EXPRESSION Ruby proud and relieved{RUBY_TAG}","ruby"),
 "ci_c6_open":(1024,720,2969,f"{STYLE}. a glowing recipe scroll floating open above a town square while many small workshops light up one by one as they read it, hopeful and warm, no faces close up",None),
 "ci_c6_price":(1024,720,2970,f"{STYLE}. a friendly storybook balance scale with a tall stack of gold coins on one side and a single small coin on the other, an identical glowing key resting on each side, playful, no people",None),
 "ci_c7_clinic":(1024,720,2971,f"{STYLE}. a small sunny village clinic with a queue of ordinary people waiting calmly, warm light, medicine crates being unloaded from a little truck, gentle slice of life, no faces close up",None),
 "ci_c7_dollar":(1024,720,2972,f"{STYLE}. {CHARLOTTE} holding one small coin in one hand and one little bottle of medicine in the other, looking between them, EXPRESSION astonished and moved","charlotte"),
 "ci_c8_today":(1024,720,2973,f"{STYLE}. a huge modern medicine plant at golden hour, gleaming towers and clean-rooms glowing through tall windows, trucks of medicine rolling out to the world, proud and hi-tech, no people",None),
 "ci_c9_perfect":(1024,720,2974,f"{STYLE}. a bright inspection room where every single tablet passes under a careful beam of light and a magnifier, one tiny flawed tablet gently set aside, calm and exacting, no faces close up",None),
 "ci_c10_forever":(1024,720,2975,f"{STYLE}. {CHARLOTTE} smiling warmly and hugging the old glowing diary to her chest, the little pill glowing softly on her desk like a tiny golden key, soft morning light, EXPRESSION cozy and content, heartfelt happy ending","charlotte"),
}

# extra panels spliced into each chapter (after its existing panels)
EXTRA={
 "c1":[P("ci_c1_night","The house was quiet. Only Charlotte, the diary… and a compass that had made up its mind. In her palm lay one small, ordinary pill.","Something this tiny fixes a whole person? Okay. Show me.")],
 "c2":[P("ci_c2_gowns","Before she could go in, Ruby handed her a coat and glasses. Everything here had to be spotless.","The sleeves go past my HANDS!",None,"floop","#2aa15a"),
       P("ci_c2_scale","Beyond the glass, steel vessels rose like towers and bottles flowed by in rivers.","It's a whole CITY for making medicine!")],
 "c3":[P("ci_c3_cell","\"Look closer,\" said Ruby. One little cell drifted up, its skin freckled with hundreds of golden keyholes.","They're everywhere — like tiny doors!"),
       P("ci_c3_fever","\"When you had a fever, some of those little doors were being pushed the wrong way.\"","So THAT'S what being ill really is.",None,"hush","#e8425a")],
 "c4":[P("ci_c4_shapes","She turned, and thousands of keys drifted past her like snowflakes — every single one a different shape.","No two are the same!"),
       P("ci_c4_click","Ruby let her try. Charlotte nudged one key in, and the lock rang with light.","CLICK! I felt it turn!",None,"click","#c8621f")],
 "c5":[P("ci_c5_fail","Beneath the bench lay a great heap of keys that never fitted. Each one had taken months.","All that work… for a pile of no?"),
       P("ci_c5_ruby","\"And then,\" said Ruby softly, holding one up, \"after all those years — one of them fits.\"","You never gave up!")],
 "c6":[P("ci_c6_open","The recipe floated open above the town, and one by one the little workshops lit up.","Everyone can make it now!"),
       P("ci_c6_price","\"Same key on both sides,\" said Ruby, tipping the scales. \"Only the price is different.\"","Identical — but one costs a coin!")],
 "c7":[P("ci_c7_clinic","At a small clinic, a truck unloaded crates. The queue outside began to smile.","The medicine actually REACHED them!"),
       P("ci_c7_dollar","Ruby put one coin in Charlotte's hand. \"There was a medicine that cost a fortune. This company made it cost about this much a day.\"","One coin… to save a life?")],
 "c8":[P("ci_c8_today","Today, whole clean cities of glass and steel make medicines for half the world.","From one small lab… to THIS!")],
 "c9":[P("ci_c9_perfect","\"Cheap is good,\" said Charlie sternly, watching one flawed tablet set aside. \"Careless is fatal. Never trade one for the other.\"","Cheap, yes. Careless, NEVER. Got it!")],
 "c10":[P("ci_c10_forever","Charlotte hugged the diary tight. She'd never look at a little pill — or a pharmacy shelf — the same way again.","Thank you, Grandpa Ben. 💛")],
}
