EP, TITLE = 159, "画面ばかり見てしまう"
# 2026-11-23 エイイチ了承のコマ割り：受付のピカリくんと窓口の寺島さん（小窓に書類）／小窓に止まったペン／夕方の誰もいないロビー／窓口のランプと書類を書く手
COUNTER = "a plain reception counter. NO text, NO signs"
PSC = ["Pikarikun is 150 cm tall and stout; Terashima is 160 cm — Pikarikun's head top is level with her nose", "do NOT enlarge Pikarikun above her head, do NOT shrink it to child size"]
PANELS = [
 dict(chars=["寺島", "ピカリ"], pikari="OPERATED", no_lineup=True, pscale_text=PSC, prop=("COUNTER", [COUNTER + ", at the right, with Terashima behind it"]),
      camera=["SHOT SIZE: both from the knees up", "CAMERA POSITION: front-left, three-quarter", "CAMERA HEIGHT: 140 cm"],
      comp=["Pikarikun stands in the lobby at the left, centred at about 30% of the image width, waiting politely, hands together",
            "Terashima works behind the counter at the right, centred at about 74%, looking at papers"],
      inset_area=(0.06, 0.60, 0.44, 0.96), band="4% and 20%",
      scene="Outpatient reception. Pikarikun stands as the guide; at the next window Terashima handles paperwork. NO speech bubble in this picture."),
 dict(chars=["ピカリ"], pikari="OPERATED",
      camera=["SHOT SIZE: Pikarikun from the waist up, close", "CAMERA POSITION: front-right, three-quarter", "CAMERA HEIGHT: 150 cm"],
      comp=["Pikarikun is centred at about 62% of the image width, its head between 26% and 48% of the image height, its head turned to look around the lobby, alert"],
      inset_area=(0.04, 0.56, 0.46, 0.96), band="4% and 18%",
      scene="Pikarikun keeps glancing around, waiting for someone to come. NO speech bubble in this picture."),
 dict(chars=["寺島", "ピカリ"], pikari="OPERATED", no_lineup=True, prop=("COUNTER", [COUNTER + ", at the right"]),
      hscale_text=["a wide empty lobby: Pikarikun stands alone in the middle distance, full body, SMALL, x 30–48%, its head top at about 44% and feet at about 72% of the image height",
                   "Terashima leans on the counter at the right foreground, waist-up, x 60–100%, her head top at about 24% of the image height, looking toward Pikarikun"],
      camera=["SHOT SIZE: wide, the empty lobby", "CAMERA POSITION: from behind the counter, front-right", "CAMERA HEIGHT: 140 cm"],
      inset_area=(0.04, 0.62, 0.40, 0.96), band="4% and 20%",
      comp=["long evening shadows across the empty floor, NO other people",
            "the bubble 「今日、ピカリくん暇そうだったね」 at the upper right, its tail to Terashima"],
      bubbles=[("Nurse Terashima", "今日、ピカリくん暇そうだったね", ["今日、ピカリくん", "暇そうだったね"])],
      scene="Evening. Only two people talked to Pikarikun all day. Terashima: Pikarikun looked bored today."),
 dict(chars=["寺島", "ピカリ"], pikari="AI ASSIST", no_lineup=True, pscale_text=PSC, prop=("COUNTER AND LAMP", [COUNTER + ", at the right", "a small plain round lamp on Terashima's counter, unlit. NO text"]),
      camera=["SHOT SIZE: both from the knees up", "CAMERA POSITION: front-right, three-quarter", "CAMERA HEIGHT: 140 cm"],
      comp=["Pikarikun at the left, centred at about 30% of the image width, its head turned toward an approaching visitor off-picture at the left, a small chime mark near its head",
            "Terashima at the right behind the counter, centred at about 74%, the lamp on the counter in front of her, relaxed",
            "the AI bubble 「呼ばれたら、すぐ戻ります」 is a RECTANGULAR box at the upper left, its tail to Pikarikun"],
      bubbles=[("Pikarikun-AI", "呼ばれたら、すぐ戻ります", ["呼ばれたら、", "すぐ戻ります"])],
      ai_bubble=True,
      inset_area=(0.56, 0.62, 0.96, 0.96), band="4% and 20%",
      scene="The next week: when someone comes near Pikarikun, a sound reaches the operator. If the connection drops, a lamp lights at Terashima's window."),
]
WINDOWS = {
 1: dict(avatar="from the shoulders down, seen from behind-right — her hands only rest on a desk", vr=False,
         prop=("DESK", ["one plain desk top with a tall stack of plain paper forms. NO text", "a game controller set to one side"]),
         comp=["her hands rest beside the stack of papers"],
         bubbles=[("Robo no Avatar-san", "案内しながら、書類も片付けちゃおう", ["案内しながら、", "書類も片付けちゃおう"])],
         scene="Robo no Avatar-san at her cockpit desk with a pile of paperwork: I'll clear the paperwork while I guide."),
 2: dict(avatar="her hand only, close-up", vr=False,
         prop=("DESK", ["one plain paper form on the desk, blank. NO text", "a pen in her hand, frozen above the paper"]),
         comp=["only her right hand holding the pen, stopped above the blank form"],
         bubbles=[("Robo no Avatar-san", "…今、誰か来た？", ["…今、", "誰か来た？"])],
         scene="Her pen stays frozen. She cannot take her eyes off the screen: did someone just come?"),
 3: dict(avatar="from the shoulders down, slumped, seen from behind-right", vr=False,
         prop=("DESK", ["one plain desk top with a stack of completely blank paper forms. NO text"]),
         comp=["her shoulders slumped beside the untouched blank papers"],
         bubbles=[("Robo no Avatar-san", "一日、画面の番をしてただけ…", ["一日、", "画面の番を", "してただけ…"])],
         scene="Evening at her desk: the forms are still blank. I just watched the screen all day."),
 4: dict(avatar="her hand only, close-up", vr=False,
         prop=("DESK", ["plain paper forms on the desk, a few lines of plain scribbles being written (NO readable text)", "a pen moving in her hand"]),
         comp=["only her right hand writing briskly on the form, small motion lines"],
         scene="Her hand writes on the forms, working while waiting to be called. NO speech bubble."),
}

# 2026-11-23 チェック①：P1 b1（手を前で重ねて待つ）／小窓1 b2（「」なし）／小窓2 b1（ペンが紙の上で止まる）／P3 b1／小窓3 b1（肩を落とす）／P4 b1（ピーン・ランプ）／小窓4 b1
# P2 は2枚とも生成が止められた（PROHIBITED_CONTENT）→ 言い回しを簡単にして描き直す
PICK = {1: '第159話_P1_20261123_012738b1.jpg', 'W1': '第159話_P1小窓_20261123_012738b2.jpg', 'W2': '第159話_P2小窓_20261123_012738b1.jpg', 3: '第159話_P3_20261123_012738b1.jpg', 'W3': '第159話_P3小窓_20261123_012738b1.jpg', 4: '第159話_P4_20261123_012738b1.jpg', 'W4': '第159話_P4小窓_20261123_012738b1.jpg'}
PANELS[1] = dict(PANELS[1], comp=["Pikarikun stands in the hospital lobby, centred at about 62% of the image width, its head between 26% and 48% of the image height, looking to the side toward the lobby entrance, waiting politely"],
  scene="Pikarikun waits in the lobby, looking toward the entrance for the next visitor. NO speech bubble in this picture.")
# 言い回しを変えても P2 が止められたため、P1 と同じ2人の絵に寄せる（ピカリくんを手前に大きく、寺島さんは奥の窓口）
PANELS[1] = dict(chars=["寺島", "ピカリ"], pikari="OPERATED", no_lineup=True, prop=("COUNTER", [COUNTER + ", in the background at the right, with Terashima behind it"]),
      camera=["SHOT SIZE: Pikarikun from the knees up in the foreground", "CAMERA POSITION: front-right, three-quarter", "CAMERA HEIGHT: 140 cm"],
      comp=["Pikarikun is LARGE in the foreground, centred at about 64% of the image width, its head between 22% and 44% of the image height, its head turned toward the lobby entrance at the left, waiting",
            "Terashima works behind the counter in the background at the right, small, looking down at papers"],
      inset_area=(0.04, 0.56, 0.46, 0.96), band="4% and 18%",
      scene="Pikarikun keeps watching the lobby entrance, waiting for a visitor. Terashima works at the counter behind. NO speech bubble in this picture.")

# 2026-11-23 エイイチ「寺島さんが痩せすぎ」→ 寺島さんが出るコマに体つきを足して描き直す（三面図どおり、ふっくらした体つき）
TERA_BUILD = ("TERASHIMA'S BUILD — SOFT AND ROUNDED, NOT SLIM:", ["copy Terashima's body from her three-view reference: a full round face, a soft rounded chest and belly, a wide waist and hips, thick upper arms and legs", "her scrubs fit loosely over a sturdy, plump body", "do NOT draw her slim, slender or model-like"])
for _k, _p in enumerate(PANELS):
    if "寺島" in _p["chars"]:
        PANELS[_k] = dict(_p, extra=list(_p.get("extra", [])) + [TERA_BUILD])
        PICK.pop(_k + 1, None)
# 2026-11-23 寺島さんの体つきを直した描き直しから：P1 013154（013157 は窓口に薄い緑）／P2 013154／P3 013156（夕方の長い影）／P4 013204（013206 は「チィッ」の余計な字）
PICK.update({1: '第159話_P1_20261123_013154.jpg', 2: '第159話_P2_20261123_013154.jpg', 3: '第159話_P3_20261123_013156.jpg', 4: '第159話_P4_20261123_013204.jpg'})
# P1 013154 はピカリくんの胸に名札とひもが付いた → 白で消す（ピカリくんの体に字や札は付けない）
PATCH = {1: [(300, 545, 390, 640)]}
# 2026-11-23 エイイチ「ピカリくんの中の人のコマが小さい」→ 小窓を一辺 約410px から 約590px に広げる（描き直しはせず、仕上げで重ねる大きさだけ変える）
for _k, _a in {1: (0.03, 0.53, 0.58, 0.97), 2: (0.03, 0.53, 0.58, 0.97), 3: (0.03, 0.55, 0.58, 0.97), 4: (0.42, 0.55, 0.97, 0.97)}.items():
    PANELS[_k - 1] = dict(PANELS[_k - 1], inset_area=_a)
