/* 📷 사진 오답 복습(11/20 · 2판 11/23) — 아이 화면(.ph · 중고등은 sec.css 변수, 초등은 .phe 가 app.css 변수로 바꿔 줌) + 선생님 화면(.pht). js/photo.js */
body.sec .phline{margin-top:2px}
/* 초등(밤하늘·금색): sec.css 변수 이름을 app.css 값으로 */
.ph.phe{--surf:var(--sky2);--surf2:#1b2242;--line:#252d4d;--ink:#eef1f8;--sub:#9aa3c0;--acc:var(--gold);--acc-ink:#241a00;--acc-t:var(--gold);--acc-soft:#2c2a1c;--acc-bar:var(--gold);
  --ok:#5fcfa0;--okbg:#173326;--mid:var(--blue);--help:#c4a1ff;--helpbg:#2e2440;--bad:#ff7a70;--badbg:#3d1f1d;--r-card:18px;--r-btn:14px;--fs-q:20px;
  max-width:720px;margin:0 auto;display:grid;gap:14px;padding:4px 0 24px;color:var(--ink)}
.phe .card{background:var(--surf);border:1px solid var(--line);border-radius:var(--r-card);color:var(--ink)}
.phe .btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:14px 18px;border-radius:var(--r-btn);border:1px solid var(--line);background:var(--surf);color:var(--ink);font-weight:700;font-size:16px}
.phe .btn.pri{background:var(--gold);border-color:var(--gold);color:#241a00}
.phe .tag{display:inline-block;font-size:12px;font-weight:700;border-radius:999px;padding:2px 9px;background:var(--surf2);color:var(--sub)}
.phe .tag.acc{background:#173326;color:var(--ok)}
.phe .uhead{display:grid;gap:4px}.phe .uhead h2{margin:0;font-size:22px}.phe .lbl{color:var(--gold);font-weight:700;font-size:13px}
.phe .pop{background:var(--surf2);border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.65}
.phe .qbtn{width:24px;height:24px;border-radius:50%;border:1px solid var(--line);color:var(--sub);background:none;font-size:12px}
.phe .sub{color:var(--sub);font-size:14px}.phe .sp{flex:1}
.phe .topic{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:14px 16px;text-align:left;width:100%}
.phe .topic .tn{font-weight:700;font-size:16px;line-height:1.45}.phe .topic .tn small{display:block;font-weight:500;font-size:12.5px;color:var(--sub)}
.phe .loading{text-align:center;padding:40px;color:var(--sub)}
.phe .mic{margin:0 auto}
/* 공통(중고등·초등) */
.ph .legend{display:flex;align-items:center;gap:8px;color:var(--sub);font-size:14px}
.ph .lnk{background:none;border:0;color:var(--acc-t);font-weight:600;font-size:14px;padding:6px 2px;cursor:pointer}
.ph .lnk.bad{color:var(--bad)}
.ph .btn[disabled]{opacity:.45}
.ph .phtline{display:flex;align-items:center;gap:8px;padding:12px 16px;border-radius:var(--r-card);background:var(--acc-soft);color:var(--ink);border:1px solid var(--acc-t)}
.ph .phtline b{font-size:16px}.ph .phtline small{color:var(--sub)}.ph .phtline .sp{flex:1}
.ph .phcap{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;font-size:14px;color:var(--sub)}
.ph .phcap b{color:var(--ink)}
.ph .phcap .track{height:6px;border-radius:9px;background:var(--surf2);overflow:hidden}
.ph .phcap .track i{display:block;height:100%;background:var(--acc-bar)}
.ph .phcap.warn .track i{background:var(--help)}.ph .phcap.full .track i{background:var(--bad)}
.ph .phwarn{margin:0;padding:10px 14px;border-radius:12px;background:var(--badbg);color:var(--bad);font-size:14px;font-weight:600}
.ph .phwarn.soft{background:var(--helpbg);color:var(--help)}
.ph .phtabs{grid-template-columns:repeat(2,1fr);margin:0}
.ph .phtabs button{background:var(--surf);border:1px solid var(--line);color:var(--sub);border-radius:var(--r-btn)}
.ph .phtabs button.on{color:var(--ink);border-color:var(--acc-t);box-shadow:0 0 0 1px var(--acc-t) inset}
.ph .phlist{display:grid;gap:8px}
.ph .phgh{margin:10px 0 0;font-size:14px;color:var(--sub);font-weight:600}
.ph .phmsg{padding:16px;display:grid;gap:12px}.ph .phmsg p{margin:0;line-height:1.6}
.ph .phbusy,.pht .phbusy{padding:26px 18px;display:grid;justify-items:center;gap:8px;text-align:center}
.ph .phbusy .spin{width:34px;height:34px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--acc-t);animation:phSpin 1s linear infinite}
@keyframes phSpin{to{transform:rotate(360deg)}}
.ph .phform{padding:16px;display:grid;gap:14px}
.ph .fld{display:grid;gap:6px;font-size:14px;font-weight:600;color:var(--sub)}
.ph .fld small{font-weight:500}
.ph input,.ph select,.ph textarea{font:inherit;font-size:16px;color:var(--ink);background:var(--surf);border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-width:0}
.ph .phcover,.pht .phcover{max-width:160px;max-height:200px;border-radius:8px;justify-self:center;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.ph .phbooks,.pht .phbooks{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.ph .phbook{display:grid;gap:2px;padding:12px 14px;text-align:left;color:var(--ink)}
.ph .phbook small{color:var(--sub)}
.ph .phbook.on{border-color:var(--acc-t);box-shadow:0 0 0 1px var(--acc-t) inset}
.ph .phbook.add{color:var(--acc-t);font-weight:600;place-items:center}
.ph .phfile{cursor:pointer}
.ph .phthumb{max-width:100%;max-height:50vh;border-radius:10px;justify-self:center}
/* 쪽 확인 */
.ph .phpg{grid-template-columns:auto 110px;align-items:center}
.ph .phmode{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:var(--acc-soft);color:var(--ink);font-size:14.5px;position:sticky;top:6px;z-index:3}
.ph .phmode span{flex:1 1 200px}.ph .phmode .btn{padding:8px 12px;font-size:14px;width:auto}
.ph .phimg{position:relative;border-radius:10px;overflow:hidden;border:1px solid var(--line);user-select:none;-webkit-user-select:none}
.ph .phimg img{display:block;width:100%;height:auto;pointer-events:none}
.ph .phimg.draw{touch-action:none;cursor:crosshair;outline:2px solid var(--acc-t)}
.ph .phbox{position:absolute;border:2.5px solid var(--acc-t);border-radius:4px;background:rgba(127,127,127,.06);pointer-events:none}
.ph .phbox.w{border-style:dashed;border-color:var(--mid)}
.ph .phbox i{position:absolute;top:-1px;left:-1px;font-style:normal;font-size:12px;font-weight:700;padding:1px 6px;border-radius:0 0 6px 0;background:var(--acc-t);color:var(--surf)}
.ph .phbox.w i{background:var(--mid)}
.ph .phnew{position:absolute;border:2.5px solid var(--bad);background:rgba(255,80,80,.08);pointer-events:none}
.ph .phitems{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ph .phitems li{padding:12px 14px;display:grid;gap:6px}
.ph .phir{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ph .phir label{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--sub)}
.ph .phir input{width:84px;padding:8px 10px}
.ph .phir select{flex:1 1 180px;padding:8px 10px;font-size:14.5px}
.ph .phn{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--acc-t);color:var(--surf);font-size:13px}
.ph .phir2{display:flex;flex-wrap:wrap;gap:14px}
.ph .phsure{color:var(--help);font-weight:600}
.ph .phkeep{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--sub)}
.ph .phkeep button{flex:1;padding:11px;border-radius:12px;border:1px solid var(--line);background:var(--surf);color:var(--ink);font:inherit;font-weight:700}
.ph .phkeep button.on{border-color:var(--acc-t);box-shadow:0 0 0 1px var(--acc-t) inset}
/* 사진 정리 */
.ph .phbk{padding:12px 14px;display:grid;gap:6px}
.ph .phbh{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ph .phbh small{color:var(--sub)}.ph .phbh .sp{flex:1}
.ph .phpages{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.ph .phpages li{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;border-top:1px solid var(--line);padding-top:2px}
/* 연습 */
.ph .phdots{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--sub)}
.ph .phdots i{width:10px;height:10px;border-radius:50%;background:var(--surf2);border:1px solid var(--line)}
.ph .phdots i.now{background:var(--acc-t);border-color:var(--acc-t)}
.ph .phdots i.ok{background:var(--ok)}.ph .phdots i.re{background:var(--help)}.ph .phdots i.miss{background:var(--bad)}
.ph .phdots span{margin-left:auto}
.ph .phprob{margin:0;background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:8px;display:grid;gap:4px}
.ph .phprob img{display:block;width:100%;height:auto;max-height:46vh;object-fit:contain}
.ph .phprob figcaption{font-size:12px;color:#667;text-align:right}
/* 11/23 문제 글(AI 가 교재 그대로 옮김) — 종이처럼 흰 바탕 · 사진은 「📷 원본 사진」 */
.ph .phtxt{margin:0;background:#fff;color:#1b1d22;border:1px solid var(--line);border-radius:var(--r-card);padding:14px 14px 8px;display:grid;gap:10px;font-size:17px;line-height:1.75}
.ph .phtxt p{margin:0;word-break:keep-all;overflow-wrap:anywhere}
.ph .phtxt .phbx{border:1.5px solid #3a3f4a;border-radius:6px;padding:8px 12px;display:grid;gap:2px}
.ph .phtxt .phch{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:4px 12px}
.ph .phtxt .phfig{display:block;max-width:100%;max-height:40vh;margin:0 auto;border-radius:6px}
.ph .phtxt .phuns{font-size:12.5px;color:#a35a00;line-height:1.5}
.ph .phtxt figcaption{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#667;border-top:1px dashed #dde;padding-top:6px}
.ph .phtxt figcaption .lnk{color:#2a62d6;font-weight:700;font-size:13px;padding:8px 0;min-height:36px;background:none;border:0}
.ph .phtxt .phorig{display:block;width:100%;height:auto;border-radius:6px}.ph .phtxt .phorig[hidden]{display:none}
.ph .phq{padding:16px 18px;display:grid;gap:6px}
.ph .phq small{color:var(--acc-t);font-weight:700;font-size:12.5px}
.ph .phq p{margin:0;font-size:var(--fs-q);line-height:1.55;font-weight:600}
.ph .phans{padding:14px 16px;display:grid;gap:12px}
.ph .phsaid{min-height:52px;font-size:16px;line-height:1.6;padding:10px 12px;border-radius:10px;background:var(--surf2)}
.ph .phta{width:100%;resize:vertical}
.ph .phctl{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;justify-items:center}
.ph .phctl #phClr{justify-self:start}.ph .phctl #phTw{justify-self:end}
.ph .phthink{text-align:center}
.ph .phok,.ph .phexp{padding:14px 16px;font-size:16px;line-height:1.6;margin-bottom:12px}
.ph .phok{background:var(--okbg);border-color:transparent;color:var(--ink)}
.ph .phexp{background:var(--helpbg);border-color:transparent}.ph .phexp p{margin:6px 0 0}
@media (max-width:520px){.ph .phprob img{max-height:38vh}.ph .phq p{font-size:18px}}
/* ── 선생님 화면 ── */
.phtbar,.phtkid{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.phtkid button{flex:1 1 200px;padding:13px}
.pht .phbook{display:grid;gap:2px;padding:12px 14px;text-align:left;border:1px solid var(--line,#ddd);border-radius:12px;background:var(--card,transparent);color:inherit;font:inherit;cursor:pointer}
.pht .phbook small{opacity:.7}.pht .phbook.add{font-weight:700;place-items:center}
.pht .phfile{display:inline-flex;cursor:pointer;margin-top:8px}
.pht .phbig{display:block;width:100%;padding:14px;margin-top:12px;font-size:16px}
:is(.pht,.ph) .phcam{position:relative;border-radius:14px;overflow:hidden;background:#111;aspect-ratio:3/4;max-height:62vh;margin:0 auto;display:grid;place-items:center}
:is(.pht,.ph) .phcam video{width:100%;height:100%;object-fit:cover}
:is(.pht,.ph) .phcam.flash{box-shadow:inset 0 0 0 9999px rgba(255,255,255,.55)}
:is(.pht,.ph) .phcamtip{position:absolute;top:8px;left:0;right:0;text-align:center;color:#fff;font-size:13px;text-shadow:0 1px 3px #000}
:is(.pht,.ph) .phcambar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin-top:10px}
:is(.pht,.ph) .phcambar :is(.primary,.btn){justify-self:end}
:is(.pht,.ph) .phshut{width:68px;height:68px;border-radius:50%;background:#fff;border:6px solid #b8f22a;cursor:pointer}
:is(.pht,.ph) .phths{display:flex;gap:6px;overflow-x:auto}
:is(.pht,.ph) .phth{position:relative;flex:none}:is(.pht,.ph) .phth img{width:40px;height:52px;object-fit:cover;border-radius:4px;display:block}
:is(.pht,.ph) .phth em{position:absolute;right:-5px;top:-5px;font-style:normal;font-size:11px;border-radius:999px;padding:0 5px;background:#1f9d55;color:#fff}
:is(.pht,.ph) .phth.up em{background:#d9a400}
.pht .phpgh{display:flex;align-items:center;gap:10px;margin:14px 0 6px}.pht .phpgh input{width:70px}
.pht .phgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.pht .phpick{position:relative;display:grid;gap:3px;align-content:start;text-align:left;padding:8px;border:2px solid #3b6a00;border-radius:10px;background:#fff;color:#151a12;font:inherit;cursor:pointer}
.pht .phpick img{width:100%;max-height:110px;object-fit:contain;background:#fff;border-radius:4px}
.pht .phpick small{font-size:11.5px;color:#5a6355}
.pht .phpick i{position:absolute;right:6px;top:6px;width:22px;height:22px;border-radius:50%;background:#3b6a00;color:#fff;font-style:normal;font-size:13px;display:grid;place-items:center}
.pht .phpick.off{border-color:#ddd;opacity:.45}.pht .phpick.off i{background:#bbb}
.pht .phpick.view{border-color:#ddd;cursor:default}
.pht .phinbank{font-size:12px;color:#3b6a00;font-weight:700}
.pht .phmark{font-size:11px;padding:0 6px;border-radius:999px;background:#fde3e1;color:#b4271e;font-weight:700}
.pht .phmark.star{background:#fff1c2;color:#8a5a12}
.pht .phtrow2{display:flex;gap:8px;align-items:center;margin:6px 0 10px}
.pht .phtbk{margin:8px 0 0 6px}
.pht .phboard{width:100%;border-collapse:collapse}
.pht .phboard th{text-align:left;padding:10px 8px;white-space:nowrap;vertical-align:top;width:1%}
.pht .phboard td{padding:8px;border-bottom:1px solid rgba(127,127,127,.25)}
.pht .phcell{display:inline-flex;align-items:center;gap:4px;margin:3px;padding:5px 9px;border-radius:999px;border:1px solid rgba(127,127,127,.35);background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.pht .phcell small{font-size:10.5px;opacity:.65}
.pht .phdot{width:14px;height:14px;border-radius:50%;display:inline-block}
.phdot.g{background:#1f9d55}.phdot.y{background:#d9a400}.phdot.r{background:#d93a2f}.phdot.n{background:#c9cec4}
.pht .phgo{display:inline-block;margin-left:6px;font-size:12px;font-weight:800;padding:2px 8px;border-radius:999px}
.pht .phgo.ok{background:#dff3e6;color:#1f7a44}.pht .phgo.no{background:#fde3e1;color:#b4271e}.pht .phgo.wait{background:#eceee9;color:#5a6355}
.pht .phwarn{padding:10px 14px;border-radius:12px;background:#fff1c2;color:#6b4a00;font-weight:600}
.phtrow{display:flex;justify-content:space-between;gap:10px;width:100%;text-align:left;background:none;border:0;padding:6px 0;color:inherit;font:inherit;cursor:pointer}
.phtrow em{font-style:normal;opacity:.7;font-size:13px;white-space:nowrap}
.phtimgs{display:flex;flex-wrap:wrap;gap:10px}.phtimgs figure{margin:0;flex:1 1 260px;background:#fff;border:1px solid #ddd;border-radius:8px;padding:6px}
.phtimgs img{width:100%;height:auto;display:block}.phtimgs figcaption{font-size:12px;color:#667}
.phtk{padding-left:20px;line-height:1.6}.phtk small{opacity:.7}
.phtt{margin-top:8px}.phtt summary{cursor:pointer;font-weight:600}
.phts{margin:8px 0 0 6px;padding-left:10px;border-left:3px solid #ccc}.phts.ok{border-left-color:#1f9d55}.phts.re{border-left-color:#d9a400}.phts.miss{border-left-color:#d93a2f}
.phts p{margin:3px 0}.phts .w{color:#d93a2f}
.pht .phpick.nopic{border-style:dashed;border-color:#c9cfc2;background:#f6f7f4;cursor:default}.pht .phpick.nopic small{color:#5a6355}
/* 🖨 프린트(4판 11/23): 쪽 번호 대신 제목 · 날짜 */
.ph .phsheet{display:grid;grid-template-columns:1fr 104px;gap:8px;align-items:end}
.ph .phsheet .fld{margin:0}
.pht .phpgh input[data-st]{width:200px;max-width:52vw}.pht .phpgh input[data-sd]{width:80px}

/* 11/24 「real 오답」 이름표 — real 은 필기체 · 오답 오른쪽 위에 작게 · 네온 */
.ro{position:relative;display:inline-block;padding-right:.1em;margin-right:1.5em}
.ro-r{position:absolute;top:-.62em;right:-1.55em;font:700 .92em/1 'Dancing Script','Segoe Script','Brush Script MT','Snell Roundhand',cursive;font-style:italic;letter-spacing:.01em;color:#ffe9fb;
  text-shadow:0 0 1px #fff,0 0 4px #ff4fd8,0 0 9px #ff4fd8,0 0 16px #ff2db4;transform:rotate(-10deg);pointer-events:none;white-space:nowrap}
body.lite .ro-r{color:#ff2db4;text-shadow:0 0 3px rgba(255,79,216,.55),0 0 8px rgba(255,45,180,.35)}
.homenav span.ro{font-size:13px;line-height:1.1;margin-right:0}.homenav .ro-r{right:-1.5em;top:-.95em;font-size:.95em}
/* 11/24 마스터 real 오답 다듬기 — 홈 문구 · 올리기 단추 · 교재/프린트 묶음 · 올리기 화면 · 찍는 법 · 프린트 등록 */
.ph .phslogan{margin:2px 0 0;font-size:13.5px;font-weight:800;letter-spacing:.01em;color:#ffd84a;text-shadow:0 0 8px rgba(255,200,40,.4)}
body.lite .ph .phslogan{color:#c98a00;text-shadow:none}
.ph .btn.phupbtn,.ph .btn.big.phupbtn{width:min(240px,100%);margin:4px auto 0;padding:10px 24px;gap:10px;font-size:18px}
.ph .phupbtn .phcamic{font-size:30px;line-height:1}
.ph .phgh.phbk{color:var(--ink);font-size:15px;margin-top:14px}
.ph .phgu{margin:8px 0 2px;font-size:13px;font-weight:700;color:var(--acc-t)}
.ph .phreg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ph .phreg .phbook{padding:12px 8px}
.ph .phshot{display:grid;justify-items:center;gap:4px;margin:6px auto 0;background:none;border:0;color:var(--ink);cursor:pointer;font:inherit}
.ph .phshot-o{display:grid;place-items:center;width:92px;height:92px;border-radius:50%;border:5px solid var(--acc-t);box-shadow:0 0 0 4px var(--surf2),0 6px 18px rgba(0,0,0,.35)}
.ph .phshot-i{display:block;width:66px;height:66px;border-radius:50%;background:var(--acc);transition:transform .1s}   /* 진짜 셔터처럼 그림 없이(11/24) */
.ph .phshot:active .phshot-i{transform:scale(.92)}
.ph .phshot b{font-size:17px}.ph .phshot small{color:var(--sub);font-size:12.5px}
.ph .phsub2{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.ph .phhowbtn{display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surf);color:var(--sub);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.ph .phhowl{margin:0;padding-left:20px;display:grid;gap:8px}
.ph .phmks{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:6px}.ph .phmks span{display:inline-flex;align-items:center;gap:4px;font-size:13px}
.ph .phmk{width:26px;height:26px;flex:none}
.ph .phprow{display:flex;gap:8px;align-items:center}
.ph .phcchip{flex:none;padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surf2);color:var(--ink);font:inherit;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap}
.ph .phcchip.on{border-color:var(--acc-t);color:var(--acc-t)}
.ph .phclist{display:flex;flex-wrap:wrap;gap:6px}
.ph .phdate{flex:1;min-width:0;display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:12px;padding:0 6px 0 10px;background:var(--surf2)}
.ph .phdate input#phDt{flex:1;min-width:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:15px;padding:9px 0}
.ph .phcal{position:relative;display:grid;place-items:center;width:34px;height:34px;font-size:20px;cursor:pointer}
.ph .phcal input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ph .phbw{position:relative;display:grid}
.ph .phbdel{position:absolute;top:6px;right:6px;width:28px;height:28px;border-radius:50%;border:1px solid var(--line);background:var(--surf2);color:var(--sub);font-size:13px;line-height:1;cursor:pointer}
.ph .phbdel:hover{color:var(--bad,#ff6b6b);border-color:var(--bad,#ff6b6b)}
.ph .phcap.nolink{grid-template-columns:auto 1fr}
/* 11/25 🎙 real 오답 마이크 = 앱 아이콘 마이크(숫자 없이) · 크게 · 받아쓰는 동안 모래시계 + 짧은 말 */
.ph .phmicw{display:grid;justify-items:center;gap:6px}
.ph .phmic{position:relative;display:grid;place-items:center;width:88px;height:88px;border-radius:50%;border:0;padding:0;background:#F8FBFF;cursor:pointer;
  box-shadow:0 0 0 4px var(--acc-t),0 8px 20px rgba(0,0,0,.28);transition:transform .12s,box-shadow .2s}
.ph .phmic:active{transform:scale(.94)}
.ph .phmic .phmic-i{width:34px;height:60px}
.ph .phmic .hg{display:none;width:30px;height:40px;color:#2262DC;animation:hgTurn 2.4s ease-in-out infinite}
.ph .phmic .hg-s{fill:currentColor;opacity:.75}
.ph .phmic.on{box-shadow:0 0 0 5px #ff5a5a,0 0 0 14px rgba(255,90,90,.22),0 8px 20px rgba(0,0,0,.28);animation:phmPulse 1.4s ease-in-out infinite}
.ph .phmic.wait{animation:none}.ph .phmic.wait .phmic-i{display:none}.ph .phmic.wait .hg{display:block}
.ph .phmic:disabled{opacity:.55;cursor:default}
.ph .phmw{min-height:1.4em;font-size:15px;font-weight:700;color:var(--acc-t);letter-spacing:.02em}
.ph .phmw.in{animation:wwIn .35s ease both}
@keyframes phmPulse{50%{box-shadow:0 0 0 5px #ff5a5a,0 0 0 20px rgba(255,90,90,.08),0 8px 20px rgba(0,0,0,.28)}}
@media (prefers-reduced-motion:reduce){.ph .phmic.on,.ph .phmic .hg{animation:none}}
.ph .phctl #phClr{grid-column:1}.ph .phctl .phmicw{grid-column:2}.ph .phctl #phTw{grid-column:3}
body .ph .phmic.wait .hg{color:#2262DC}
/* 11/25 handoff 리얼오답복습: 📒 메모 보고 · ❔ 확인 필요 · 내 메모 · 시험 전 · 확인판 숫자 */
.ph .phdots i.memo{background:var(--help)}.ph .phdots i.chk{background:#8b6fd6}
.ph .phmemob{justify-self:start;margin:-4px 0 8px;font-size:14px}
.ph .phmemo,.pht .phmemo{margin:0 0 12px;padding:10px 14px;border-radius:12px;background:var(--helpbg,#fff6d8);line-height:1.55;font-size:15px}
.ph .phmemo small,.pht .phmemo small{display:block;font-weight:800;font-size:12px;color:var(--sub,#666);margin-bottom:2px}
.ph .phchips{display:flex;flex-wrap:wrap;gap:6px}.ph .phchips .lnk{text-align:left;padding:6px 10px;border:1px dashed var(--line);border-radius:10px;font-size:13.5px}
.ph .phmrow{display:flex;gap:8px;align-items:stretch}.ph .phmrow .btn{flex:0 0 auto;width:auto;margin:0;padding:0 18px}.ph .phmrow input{flex:1 1 auto;width:auto;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font-size:15px;background:var(--surf,#fff);color:inherit}
.ph .phrow.gone{opacity:.85}.ph .phrow.gone small{color:var(--sub)}
.ph figcaption [data-numfix]{font-size:12.5px;margin-left:6px}
.phdot.p{background:#8b6fd6}.phts.memo{border-left-color:#d9a400}.phts.chk{border-left-color:#8b6fd6}
.pht .phcnt{display:block;font-size:12px;font-weight:700;color:#5a6355;margin-top:3px}
.pht .phstuck{margin:6px 0 0;font-size:13px;color:#8a2a20}
/* 11/26 끝 화면 정리: 결과 그림+한 줄 · 지점 칩 · 접기(▾) · 아이콘 3칸 */
.ph .phhero{display:flex;align-items:center;gap:12px}.ph .phhero .e{font-size:40px;line-height:1}.ph .phhero h2{margin:0;font-size:22px;line-height:1.3}
.ph .phres{display:flex;flex-wrap:wrap;gap:8px}
.ph .phst{display:inline-flex;align-items:center;gap:6px;padding:9px 12px;border-radius:999px;background:var(--surf);border:1px solid var(--line);font-size:14.5px;font-weight:700}
.ph .phst.ok{border-color:var(--ok)}.ph .phst.re,.ph .phst.memo{border-color:var(--help)}.ph .phst.miss{border-color:var(--bad)}.ph .phst.chk{border-color:#8b6fd6}
.ph .phfold{background:var(--surf);border:1px solid var(--line);border-radius:14px}
.ph .phfold>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:13px 14px;font-weight:700;font-size:15px;cursor:pointer;min-height:48px}
.ph .phfold>summary::-webkit-details-marker{display:none}
.ph .phfold>summary::after{content:'▾';margin-left:auto;color:var(--sub)}.ph .phfold[open]>summary::after{content:'▴'}
.ph .phfold .in{padding:0 14px 14px;display:grid;gap:8px}
.ph .phsaid{display:grid;gap:8px}.ph .phsaid div{padding:9px 11px;border-radius:10px;background:var(--surf2);font-size:14px;line-height:1.55}.ph .phsaid small{display:block;color:var(--sub);font-size:12px}
.ph .phics{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px}
.ph .phic{display:grid;justify-items:center;gap:4px;padding:11px 4px;border-radius:14px;background:var(--surf);border:1px solid var(--line);color:var(--sub);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.ph .phic i{font-style:normal;font-size:22px}.ph .phic.on{border-color:var(--acc);color:var(--ink)}
.ph .phback{display:block;margin:0 auto;color:var(--sub);text-decoration:underline;text-underline-offset:3px}
.ph .phwarn{color:var(--bad);margin:0}
.ph .phprob[hidden]{display:none}
/* 11/28 중간 저장: 다시 들어오면 「▶ 지난번에 이어서 · 처음부터」 한 줄 */
.ph .phresume{margin:0 0 8px;font-size:14px;font-weight:700;color:var(--sub,#666);display:flex;gap:10px;align-items:center}
.ph .phresume .lnk{font-size:14px}
/* 11/28 첫 화면 세 칸(교재 오답 · 프린트 오답 · 시험 전 다시 보기) → 목록 화면 · 삭제하기(줄마다 오른쪽 위 작은 네모) · 빈 번호 칸 */
.ph .phtiles{display:grid;gap:8px}
.ph .phtile{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:14px 16px;font:inherit;color:var(--ink);cursor:pointer}
.ph .phtile i{font-style:normal;font-size:22px}.ph .phtile b{flex:1;font-size:16px}
.ph .phtile .n{min-width:28px;padding:2px 9px;border-radius:999px;background:var(--surf2,rgba(127,127,127,.14));font-weight:800;font-size:14px;text-align:center}
.ph .phtile .go{color:var(--sub);font-size:20px;line-height:1;align-self:center}
.ph .phlh{position:relative;padding-right:96px}
.ph .phlh .phdelb{position:absolute;right:0;top:0;width:auto;min-height:36px;margin:0;padding:6px 14px;font-size:14px}
.ph .phlh .phdelb.bad{background:var(--bad);border-color:var(--bad);color:#fff}
.ph .phdelh{margin:-4px 0 4px}
.ph .phlist.del .phrow{position:relative;padding-right:44px}
.ph .phck{position:absolute;top:8px;right:8px;width:20px;height:20px;border:2px solid var(--sub);border-radius:5px;background:var(--surf)}
.ph .phck.on{background:var(--bad);border-color:var(--bad)}
.ph .phck.on::after{content:'';position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.ph .phrow.sel{border-color:var(--bad)}
.ph .phitems label.phnum0 input{border:2px solid var(--bad);background:var(--badbg)}
/* 11/28 💬 내가 한 말(목록 줄 → 내 연습 기록) */
.ph .phrec{display:inline-grid;place-items:center;min-width:36px;min-height:36px;margin-right:6px;border-radius:10px;font-size:18px;cursor:pointer}
.ph .phrec:hover{background:var(--surf2,rgba(127,127,127,.14))}
.ph .phrecf{margin-bottom:8px}
.ph .phrs{padding:10px 0;border-top:1px solid var(--line)}.ph .phrs:first-child{border-top:0;padding-top:0}
.ph .phrs b{display:block;font-size:15px;margin-bottom:4px}
.ph .phrs p{margin:4px 0;line-height:1.55;font-size:15px}.ph .phrs p.q{color:var(--sub)}.ph .phrs p.w{color:var(--help)}
.ph .phrow:has(.phrec){grid-template-columns:minmax(0,1fr) auto auto}
.ph .phrow .phrec{margin-right:0}
