:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#171717;background:#f6f6f4;line-height:1.5}*{box-sizing:border-box}body,h1,h2,h3{margin:0}button{cursor:pointer;border:0;border-radius:10px;padding:10px 14px;background:#171717;color:#fff;font:inherit}button:disabled{opacity:.6;cursor:not-allowed}.container{max-width:1080px;margin:0 auto;padding:48px 24px 80px}.stack{display:grid;gap:20px}.eyebrow{margin:0 0 6px;font-size:12px;letter-spacing:.14em;font-weight:700}h1{font-size:40px}.title{font-size:28px}.subhead{margin:24px 0 10px;font-size:15px;color:#444}.muted{color:#6b6b6b}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}.brand{background:none;color:inherit;padding:0;text-align:left}.account{display:flex;align-items:center;gap:10px}.card{background:#fff;border:1px solid #e7e7e3;border-radius:16px;padding:24px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.list{display:grid;gap:10px}.script-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px;width:100%;text-align:left;background:#fff;color:inherit;border:1px solid #eee;border-radius:12px}.script-row:hover{border-color:#d8d8d2;background:#fcfcfa}.script-main{min-width:0}.script-main h3{font-size:17px}.script-main p{margin:4px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60ch}.meta{display:flex;flex:none;gap:6px;align-items:center}.badge{padding:4px 10px;border-radius:999px;background:#f0f0ec;font-size:12px;color:#333}.badge-ok{background:#e6f4ea;color:#1c6b36}.badge-warn{background:#fff4e0;color:#8a5a00}.badge-accent{background:#e8ecff;color:#2d3fa8}.chips{display:flex;flex-wrap:wrap;gap:8px}.secondary{background:#ecece8;color:#171717}.ghost{background:none;color:#888;padding:2px 6px;font-size:13px}.ghost:hover{color:#171717}.link{background:none;color:#2d3fa8;padding:0;text-decoration:underline;font:inherit}.error{margin-top:12px;padding:12px 14px;border-radius:10px;background:#fff0f0;color:#a33}.hint{padding:12px 14px;background:#f7f7f3;border-radius:10px;color:#666}.empty{padding:40px 16px;text-align:center;color:#777;border:1px dashed #ddd;border-radius:12px}.field{display:block;margin-top:14px;font-weight:600}.field>span{display:block;margin-bottom:6px;font-size:14px}.field input,.field textarea,.field select{display:block;width:100%;border:1px solid #ddd;border-radius:10px;padding:10px 12px;font:inherit;font-weight:400;background:#fff}.modal-backdrop{position:fixed;inset:0;background:#00000059;display:grid;place-items:center;padding:20px}.modal{width:min(520px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px #0000002e}.modal-head{display:flex;align-items:center;justify-content:space-between}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.scene-grid{display:grid;grid-template-columns:220px 1fr;gap:20px}.scene-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;align-content:start}.scene-item{display:flex;gap:10px;align-items:center;width:100%;text-align:left;background:#fafaf8;color:#171717;border:1px solid #ececea}.scene-item.active{background:#171717;color:#fff;border-color:#171717}.scene-no{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#00000014;font-size:12px}.scene-item.active .scene-no{background:#fff3}.content-stream{display:grid;gap:8px}.content-item{border:1px solid #ececea;border-radius:12px;padding:12px 14px;background:#fdfdfc}.content-item header{display:flex;align-items:center;gap:8px;margin-bottom:6px}.content-item p{margin:0;white-space:pre-wrap}.content-item.type-direction,.content-item.type-director_note{border-left:3px solid #c9c9c2;color:#555}.content-item.type-shot_note{border-left:3px solid #b8a0e0;color:#4a3d63}.content-item.type-action{border-left:3px solid #9db4ff}.content-item.type-dialogue{border-left:3px solid #171717}.pick-list{display:grid;gap:6px;max-height:340px;overflow:auto}.pick-item{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border:1px solid #eee;border-radius:10px}.pick-item input{margin-top:4px}.pick-label{display:flex;gap:8px;align-items:baseline;min-width:0}.pick-label span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:820px){.topbar{flex-direction:column}.scene-grid{grid-template-columns:1fr}.script-main p{max-width:40ch}}
