.panel { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:clamp(18px,3vw,32px); }
textarea { display:block; margin:.7rem 0; width:100%; background:var(--bg); color:var(--text); border:1px solid var(--border-2); border-radius:8px; padding:.8rem; font:inherit; line-height:1.65; }
.bar { display:flex; flex-wrap:wrap; align-items:end; gap:.6rem; }
.between { justify-content:space-between; align-items:center; }

#role { display:block; min-width:150px; }
.card { padding:clamp(20px,4vw,45px); background:#f4e7d5; border-left:8px solid #ad7658; color:#382b22; margin:1rem 0; border-radius:4px; }
#speaker { font-size:1.05rem; color:#704c3c; }
#line { white-space:pre-wrap; overflow-wrap:anywhere; font:500 clamp(1.4rem,3.8vw,2.3rem)/1.45 Georgia,"Noto Serif KR",serif; color:#382b22; }
#line.concealed { color:#756558; font-style:italic; }
#cue { border-bottom:1px solid var(--border); padding:.7rem 0; overflow-wrap:anywhere; }
#mark[aria-pressed=true] { background:#916740; color:white; }
#cue b{color:var(--text-2);font-weight:600;margin-right:.5rem}
:root:not([data-theme="light"]) .card{background:#bfb29f;border-left-color:#8f5f46}
:root:not([data-theme="light"]) #line.concealed{color:#5d5046}
:root:not([data-theme="light"]) #speaker{color:#5c3b2d}
