:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;color:#432c30;background:#fcf7f5;font-size:15px;line-height:1.7}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid #dfc9ca;background:#fff;border-radius:8px;padding:9px 15px;color:inherit}button:hover{background:#fae8e7}button:disabled{opacity:.45;cursor:default}button.primary{background:#ad3e48;border-color:#ad3e48;color:white}button.active{background:#f9dfe0;border-color:#d98b93}button:focus-visible,a:focus-visible{outline:3px solid #c58638;outline-offset:3px}header{background:#742e39;color:#fff;padding:22px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}h1{font-size:23px;margin:0;letter-spacing:.04em}.eyebrow{font-size:11px;letter-spacing:.18em;color:#f0c4c7}header p{margin:3px 0 0;font-size:13px;color:#f7dfe0}.badge{border:1px solid #c78790;border-radius:30px;padding:6px 13px;font-size:13px;white-space:nowrap}.layout{display:grid;grid-template-columns:230px 1fr;min-height:calc(100vh - 105px)}aside{border-right:1px solid #ead8d7;padding:25px 18px;background:#f6eae7}aside h2{font-size:13px;margin-top:0}aside .work{display:block;text-align:left;width:100%;margin:8px 0;overflow-wrap:anywhere}aside .add{width:100%;border-style:dashed;margin:14px 0}aside p{font-size:12px;color:#88676d}.workspace{min-width:0;padding:24px 36px 60px;max-width:1400px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.toolbar .status{margin-right:auto;font-size:13px;color:#88676d}nav{display:flex;gap:6px;border-bottom:1px solid #ead8d7;padding:22px 0 17px;flex-wrap:wrap}nav button{border:0;background:transparent}h2{font-size:24px;margin:25px 0 6px}h3{font-size:17px;margin:0 0 14px}.sub{color:#88676d;margin:0 0 23px;font-size:14px}.panel{background:white;border:1px solid #ead8d7;border-radius:12px;padding:24px;margin:18px 0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:block;margin:0 0 17px;font-size:13px;font-weight:600}input,textarea,select{display:block;width:100%;border:1px solid #dfc9ca;border-radius:7px;padding:10px 12px;margin-top:6px;background:#fffdfc;color:#432c30}textarea{min-height:100px;resize:vertical;font-weight:400}input:focus,textarea:focus,select:focus{outline:2px solid #d98b93;outline-offset:1px}.wide{grid-column:1/-1}.notice{border-left:3px solid #bb914b;background:#faf4e8;padding:12px 16px;font-size:13px;margin:16px 0}.accepted{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff0ee;border-radius:8px;padding:18px;min-height:90px}.plot-list{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.plot-list button{text-align:left;font-size:12px;overflow-wrap:anywhere}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-head h2{margin-bottom:20px}.stage{background:#642e38;color:#fff;border-radius:16px;padding:40px;min-height:380px;margin:20px 0}.stage h3{font-size:26px}.stage p{white-space:pre-wrap;overflow-wrap:anywhere}.stage .meta{color:#e7b9be;font-size:12px}.stage .event{font-size:21px;line-height:1.9}.stage .grid{border-top:1px solid #a16a73;margin-top:28px;padding-top:20px}.pager{display:flex;align-items:center;justify-content:center;gap:18px}.comment{border-top:1px solid #ead8d7;padding:16px 0}.comment p{white-space:pre-wrap;overflow-wrap:anywhere}.comment .toolbar select{width:auto;margin:0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px}#message{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#742e39;color:#fff;padding:12px 22px;border-radius:10px;z-index:10;max-width:90vw}small{color:#88676d}.hidden{display:none}@media(max-width:850px){header{padding:18px}.layout{grid-template-columns:1fr}aside{border-right:0;border-bottom:1px solid #ccc;padding:15px}aside .work{display:inline-block;width:auto;margin:4px}aside .add{width:auto;margin:4px}.workspace{padding:18px}.grid{grid-template-columns:1fr}.plot-list{grid-template-columns:repeat(3,1fr)}.stage{padding:24px}.badge{font-size:11px}h1{font-size:19px}}
.subnav{margin-top:16px}.subnav button{font-size:13px}summary{cursor:pointer}details[open]>summary{margin-bottom:16px}textarea[data-path="workflow.script.text"]{min-height:380px;line-height:1.9}

/* One continuous editorial sheet, with a dedicated writer consultation below. */
.workspace{max-width:none}.plot-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.plot-table-wrap{overflow:auto;border:1px solid #dfc9ca;border-radius:12px;background:white;max-height:none}.plot-table{width:100%;min-width:1380px;border-collapse:separate;border-spacing:0;table-layout:fixed}.plot-table th,.plot-table td{border-right:1px solid #ead8d7;border-bottom:1px solid #ead8d7;padding:12px;vertical-align:top;text-align:left}.plot-table thead th{background:#f7e2e1;color:#742e39;font-size:13px}.plot-table th:first-child{width:210px}.plot-table th:nth-child(2){width:310px}.plot-table tbody th{background:#fff7f4;font-weight:400;position:sticky;left:0;z-index:1}.plot-table tbody tr:last-child>*{border-bottom:0}.plot-table .field{margin:0;font-size:11px;font-weight:400;color:#88676d}.plot-table td .field{font-size:0}.plot-table textarea{font-size:14px;min-height:170px;line-height:1.65;border-color:transparent;background:transparent;margin:0;padding:8px;resize:vertical}.plot-table textarea:focus{background:white}.plot-table th textarea{min-height:70px;font-size:12px}.plot-table input{font-size:14px;background:white}.plot-table th button{font-size:11px;padding:5px 8px;margin-top:8px}.row-number{font-weight:700;color:#ad3e48;letter-spacing:.08em}.plot-ai-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:28px}.plot-ai-grid>section{min-width:0}.plot-ai-grid h2{font-size:21px}.plot-ai-grid .panel{padding:20px}.plot-ai-grid pre{max-height:520px;overflow:auto}input[type=checkbox]{display:inline-block;width:auto;margin-right:8px}@media(max-width:1100px){.plot-ai-grid{grid-template-columns:1fr}.plot-table{min-width:1320px}}@media(min-width:1600px){.plot-table{min-width:0}.plot-table th:first-child{width:190px}.plot-table th:nth-child(2){width:25%}}
/* Planning meeting: the source card stays simple; analysis follows the button. */
.meeting-video-info{display:grid;grid-template-columns:minmax(160px,280px) minmax(0,1fr);gap:20px;align-items:start;margin-top:18px}
.video-thumbnail{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px}
.thumbnail-placeholder{display:grid;place-items:center;aspect-ratio:16/9;background:#f3e9e7;color:#78605a;border-radius:10px;padding:16px;text-align:center}
.analysis-grid,.idea-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.idea-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.idea-card{display:flex;flex-direction:column;gap:8px;min-width:0}.idea-card.selected{border:2px solid #af3c35;background:#fff6f4}.idea-card button{margin-top:auto}.idea-card h3{overflow-wrap:anywhere}
.adaptation-point{border-bottom:1px solid #eadbd8;padding:12px 0}.meeting-reply{padding:18px 0}.meeting-reply pre,.idea-card p{white-space:pre-wrap;overflow-wrap:anywhere}.meeting-video textarea{min-height:150px}
@media(max-width:1050px){.idea-grid{grid-template-columns:1fr}}@media(max-width:700px){.meeting-video-info,.analysis-grid{grid-template-columns:1fr}}
.emotion-curve {margin:16px 0;padding:12px;border-top:1px solid #e2d2d2}.emotion-curve svg {display:block;width:100%;height:auto;min-height:140px}.emotion-curve li {margin:10px 0}.idea-card .emotion-curve {padding:0}.idea-card pre {white-space:pre-wrap}
.plot-cell-editor{display:grid;grid-template-columns:minmax(180px,1fr) 160px;gap:12px}.cell-feedback{border-left:1px solid #ead8d7;padding-left:10px;font-size:12px}.cell-feedback label{font-size:12px}.plot-table .cell-feedback textarea{font-size:13px;min-height:100px;background:#fff7f4;border:1px solid #ead8d7}.cell-feedback button{font-size:12px;padding:6px}.plot-table:has(.plot-cell-editor){min-width:2400px}.comic-sheet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;background:#eee5e2;border:2px solid #59464a;border-radius:8px}.comic-panel{background:#fff;border:2px solid #59464a;min-width:0;display:flex;flex-direction:column;padding:12px}.comic-panel header{padding:0 0 8px;background:white;color:#59464a;display:flex;gap:8px;font-size:13px}.comic-panel svg{width:100%;max-height:110px}.comic-caption,.comic-thought{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;padding:10px;line-height:1.6}.comic-caption{border-top:1px solid #ead8d7}.comic-thought{border:1px solid #b1a19f;border-radius:18px;background:#fff9f3}.comic-audience{font-size:12px;color:#94545b;white-space:pre-wrap}.comic-panel button{margin-top:auto;font-size:12px}@media(max-width:750px){.comic-sheet{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{body{background:white}aside,nav,.toolbar,.subnav,.comic-panel button,.workspace>p,header{display:none}.layout{display:block}.workspace{padding:0;max-width:none}.comic-sheet{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px}.comic-panel{break-inside:avoid;font-size:10px}.comic-panel header{display:flex}.comic-panel svg{max-height:55px}.comic-caption,.comic-thought{font-size:10px;padding:4px}.comic-audience{font-size:9px}}
.plot-table:has(.plot-cell-editor){min-width:2600px}.plot-table:has(.plot-cell-editor) th:nth-child(2){width:460px}.plot-cell-editor>*{min-width:0}

.plot-scenes{max-width:1100px;margin:auto}.plot-scene .scene-body{min-height:280px;line-height:1.85}.plot-conversation:empty{display:none}.plot-turn{padding:18px;margin:16px 0;border-left:3px solid #b96369;background:#fff8f4}.plot-turn pre{white-space:pre-wrap;overflow-wrap:anywhere}.plot-scene>button{margin:8px 8px 12px 0}.plot-scene details{margin:12px 0}

/* Fixed nine-stage spreadsheet, separate from the legacy five-field table. */
.scene-sheet-wrap{overflow:auto;max-height:76vh;border:1px solid #d9cdca;background:white;margin:20px 0;border-radius:6px}.scene-sheet{border-collapse:separate;border-spacing:0;width:100%;min-width:1080px;table-layout:fixed}.scene-sheet .stage-col{width:160px}.scene-sheet .title-col{width:170px}.scene-sheet .story-col{width:450px}.scene-sheet .talk-col{width:300px}.scene-sheet th,.scene-sheet td{border-right:1px solid #e1d8d5;border-bottom:1px solid #e1d8d5;vertical-align:top;padding:12px;text-align:left}.scene-sheet thead th{position:sticky;top:0;z-index:3;background:#eee5df;color:#5d4546;font-size:14px}.scene-sheet tbody th{position:sticky;left:0;z-index:1;background:#faf6f2;font-size:14px}.scene-sheet thead th:first-child{left:0;z-index:4}.scene-sheet tbody th strong{display:block;margin:8px 0;line-height:1.65}.scene-sheet details{font-size:12px;font-weight:400;margin:10px 0}.scene-sheet textarea{font-size:14px;line-height:1.8;min-height:100px;margin:0}.scene-sheet .scene-body{min-height:220px;border-color:transparent;resize:vertical;background:transparent}.scene-sheet .scene-body:focus{background:#fffaf0;border-color:#b96369}.scene-sheet input{font-size:14px;margin:0}.scene-sheet td:nth-child(2) .field{font-size:0;margin:0}.scene-sheet .field{font-size:12px}.scene-sheet button{font-size:12px;padding:7px 9px;margin:4px 0}.scene-sheet .plot-turn{padding:10px;margin:10px 0}.scene-sheet pre{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.scene-sheet summary{cursor:pointer}.scene-sheet .row-number{font-size:11px}

.scene-sheet{min-width:920px}.scene-sheet .stage-col{width:16%}.scene-sheet .title-col{width:18%}.scene-sheet .story-col{width:42%}.scene-sheet .talk-col{width:24%}.scene-sheet td:nth-child(2) textarea{min-height:95px;line-height:1.7}.scene-sheet .scene-body{min-height:180px}

.plot-decision{padding:10px 0;border-bottom:1px solid #eadeda}.plot-decision strong{display:block;margin-bottom:8px}.plot-decision button{display:block;width:100%;text-align:left;margin:5px 0;white-space:normal;font-size:13px;padding:9px}.plot-decision button[aria-pressed="true"]{background:#f8dfe1;border-color:#a74450;color:#772b36}.plot-decisions>.sub{font-size:12px}

.manga-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}.manga-panel{border:2px solid #262222;background:white;box-shadow:3px 3px 0 #d7cbc5;overflow:hidden}.manga-panel header{padding:7px 12px;display:flex;justify-content:space-between;background:#fff;color:#333}.manga-panel header b{font-size:20px}.manga-art{position:relative;border-block:1px solid #444;min-height:205px;background:#faf8f4}.manga-art svg{width:100%;display:block}.speech-bubble{position:relative;background:white;border:2px solid #333;border-radius:24px;margin:-6px 12px 12px;padding:12px;font-size:16px;white-space:pre-wrap}.panel-action{padding:10px 15px;font-size:14px;white-space:pre-wrap;line-height:1.8}.panel-note{padding:8px;background:#fff2c9;white-space:pre-wrap}.manga-panel details{padding:12px;border-top:1px dashed #ccc}.manga-panel label{display:block;margin:8px 0}.manga-panel textarea{min-height:80px;width:100%}.manga-panel button{margin:4px;font-size:12px}.board-scene{margin:28px 0}.board-scene h3{border-bottom:3px solid #393030;padding:12px 0}@media(max-width:1100px){.manga-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.manga-grid{grid-template-columns:1fr}}

.comic-upload{display:inline-flex;align-items:center;gap:12px;border:1px solid var(--line,#d6caca);border-radius:8px;padding:10px;background:white}.comic-upload input{max-width:250px}.comic-page{overflow:auto;border:2px solid #292524;background:#fff;margin:20px 0}.comic-page img{display:block;width:100%;min-width:800px;height:auto}.comic-empty{padding:50px 25px;border:2px dashed #cbbdbd;margin:20px 0;text-align:center;color:#6e5e5e}.comic-archive{max-width:100%;height:auto}.comic-review details pre{white-space:pre-wrap}.comic-review h3{margin-top:28px}

/* 企画軸：誰が変わるか・つなぐ価値観・学び */
.idea-axis{border-left:3px solid #d98b93;padding:4px 0 4px 10px;margin:8px 0}
.idea-axis h4{margin:0 0 4px}
.meeting-axis dt,.idea-axis dt{font-weight:700;margin-top:6px}
.meeting-axis dd,.idea-axis dd{margin:2px 0 0}

.studio-updating{position:fixed;inset:0;z-index:9999;background:rgba(255,255,255,.95);display:grid;place-content:center;font-size:20px;padding:32px}

/* 作品番号・作品名・削除 */
.work-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:18px 0 0}
.work-bar .field{margin:0}.work-bar .work-no{width:110px}.work-bar .work-title{flex:1;min-width:220px}
.work-delete{margin-left:auto;color:#9b2f37}.work-delete-confirm{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}
button.danger{background:#9b2f37;border-color:#9b2f37;color:#fff}button.danger:hover{background:#7f252c}

/* Current-story ingredients selected for planning discussion. */
[data-mix-idea][aria-pressed="true"],[data-mix-group][aria-pressed="true"]{background:#f8dfe1;border-color:#a74450;color:#772b36}

.core-variables{border-collapse:collapse;width:100%;min-width:520px}.core-variables th,.core-variables td{border:1px solid #e5d9d5;padding:12px;text-align:left;vertical-align:top}.core-variables th{background:#faf6f3}

/* Compare ideas in a horizontal strip, including on narrow screens. */
.idea-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(420px,85vw);overflow-x:auto;gap:16px;padding:4px 4px 16px;scroll-snap-type:x proximity;max-width:100%;min-width:0}
.idea-grid:focus-visible{outline:2px solid #af3c35;outline-offset:3px}
.idea-grid .idea-card{scroll-snap-align:start;margin:0}
.idea-facts{margin:4px 0;font-size:.9rem;line-height:1.6}
.idea-facts>div{display:flex;gap:8px;border-bottom:1px solid #eadbd8;padding:5px 0}
.idea-facts dt{font-weight:700;flex-shrink:0}.idea-facts dd{margin:0;overflow-wrap:anywhere;min-width:0}

.story-design .design-summary{position:sticky;top:0;z-index:2;background:#f0f5ff;border:1px solid #b9c9ee;border-radius:10px;padding:12px;margin-bottom:12px}.design-summary p{margin:6px 0;overflow-wrap:anywhere}.design-nav{display:flex;gap:8px;overflow-x:auto;padding:6px 0 12px}.design-nav button{flex:0 0 auto}.design-nav [aria-current="step"]{background:#243f80;color:white}.story-design textarea{min-height:70px}.story-design pre{white-space:pre-wrap;overflow-wrap:anywhere}

.story-design .plot-decision .toolbar button{width:auto;display:inline-block;margin:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;border-radius:12px;padding:12px 16px}.story-design .plot-decision .toolbar{margin:12px 0}.story-design .plot-decision [aria-pressed="true"]{background:#f4dce0;border-color:#ad3e48;color:#742e39}.story-design .design-summary p{max-height:90px;overflow:auto}.story-design .design-nav{flex-wrap:wrap}.story-design details summary{cursor:pointer;color:#88676d}

.idea-chat-log{max-height:480px;overflow:auto;display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.idea-chat-log article{border-radius:12px;padding:12px 16px;max-width:92%}.idea-chat-log p{white-space:pre-wrap;margin:5px 0;overflow-wrap:anywhere}.idea-chat-user{background:#f5e1e5;align-self:flex-end}.idea-chat-ai{background:#f6f6fa;align-self:flex-start}.idea-conversation textarea{min-height:100px}

/* The same editing tools remain available on phones and tablets. */
@media(max-width:700px){
 header{flex-wrap:wrap;gap:10px;padding:16px}
 .workspace{padding:14px 12px 40px}
 .panel{padding:16px}
 input,textarea,select{font-size:16px}
 button{min-height:44px;white-space:normal;overflow-wrap:anywhere}
 .toolbar{align-items:stretch}.toolbar .status{flex-basis:100%}
 .toolbar>button{flex:1 1 140px}
 .work-bar .work-title{min-width:0;flex-basis:100%}
 .section-head{flex-wrap:wrap}
 nav{gap:4px}nav button{flex:1 1 120px;padding:10px 6px}
 .scene-sheet-wrap{max-height:none;overflow:visible;border:0;background:transparent}
 .scene-sheet,.scene-sheet tbody{display:block;width:100%;min-width:0}
 .scene-sheet colgroup,.scene-sheet thead{display:none}
 .scene-sheet tbody tr{display:block;margin:18px 0;border:1px solid #d9cdca;border-radius:12px;overflow:hidden;background:#fff}
 .scene-sheet tbody th,.scene-sheet tbody td{position:static;display:block;width:auto;border:0;padding:14px}
 .scene-sheet tbody td+td{border-top:1px solid #eee5df}
 .scene-sheet td::before{display:block;margin-bottom:8px;font-size:13px;font-weight:600;color:#742e39}
 .scene-sheet td:nth-child(2)::before{content:'シーンタイトル'}
 .scene-sheet td:nth-child(3)::before{content:'場面のプロット'}
 .scene-sheet td:nth-child(4)::before{content:'未決事項・壁打ち'}
 .scene-sheet textarea,.scene-sheet input{font-size:16px}
 .scene-sheet .scene-body{min-height:230px;border:1px solid #dfc9ca;background:#fffdfc}
 .scene-sheet button{font-size:14px}
 .plot-cell-editor{grid-template-columns:1fr}
 .cell-feedback{border-left:0;border-top:1px solid #ead8d7;padding:10px 0 0}
 .stage{padding:18px;min-height:250px}.stage .event{font-size:18px}
 .comic-sheet{grid-template-columns:1fr}
}

/* Compact horizontal reference shelf; all input tools stay available. */
.reference-strip{display:flex;align-items:flex-start;gap:14px;overflow-x:auto;padding:4px 2px 16px;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
.reference-strip>.reference-card,.reference-strip>.reference-add{flex:0 0 min(330px,88%);min-width:0;scroll-snap-align:start}
.reference-strip>.reference-card{margin:0;padding:16px;max-height:560px;overflow-y:auto}
.reference-card h4{margin:0 0 10px;font-size:14px}.reference-card .meeting-video-info{display:block;margin-top:10px}
.reference-card .video-thumbnail,.reference-card .thumbnail-placeholder{width:100%;height:132px;object-fit:contain;background:#f6eae7;border-radius:7px;margin:0 0 12px}
.reference-card .thumbnail-placeholder{display:grid;place-items:center;padding:12px;text-align:center;font-size:12px}
.reference-card .field{margin-bottom:10px}.reference-card .grid{gap:8px}.reference-card details{margin:12px 0}.reference-card summary{font-size:13px;font-weight:600;padding:8px 0}.reference-card .sub{font-size:12px}.reference-add{padding:20px 12px;font-size:13px}
@media(max-width:700px){.reference-card input{font-size:16px}.reference-strip>.reference-card{max-height:540px}}

.reference-strip>.reference-card{max-height:none}.reference-card>.meeting-video{max-height:340px;overflow-y:auto}

/* Side-by-side planning elements, including narrow screens. */
.core-elements-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:14px 0}.core-elements-table th,.core-elements-table td{width:50%;border:1px solid #dfc9ca;padding:16px;vertical-align:top;text-align:left;overflow-wrap:anywhere}.core-elements-table th{background:#f6eae7}.core-elements-table th:last-child{background:#edf3f9}.core-elements-table ul{padding-left:18px;margin:0}.core-elements-table li+li{margin-top:18px}.core-elements-table p{margin:6px 0;white-space:pre-wrap}@media(max-width:600px){.core-elements-table th,.core-elements-table td{padding:10px 8px}.core-elements-table ul{padding-left:14px}}

.outline-proposal dt{font-weight:700;margin-top:18px}.outline-proposal dd{margin:6px 0 18px;white-space:pre-wrap;overflow-wrap:anywhere}.outline-options [aria-pressed="true"]{background:#f4dce0;border-color:#ad3e48}.outline-options summary{cursor:pointer;font-weight:700}.outline-options section+section{border-top:1px solid #dfc9ca;margin-top:18px;padding-top:10px}

.script-comic{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.script-comic-panel{border:3px solid #303849;border-radius:5px;padding:20px;background:#fff}.script-comic-panel p{white-space:pre-wrap;line-height:1.9;border:1px solid #c4cad3;border-radius:22px;padding:18px}

/* Compact planning desk; reference-video cards retain their existing layout. */
.planning-workbench{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:16px;align-items:start}
.planning-workbench>.panel{min-width:0;margin:0;padding:18px}
.planning-top-fields{display:grid;grid-template-columns:1.2fr 1fr;gap:14px;align-items:start}
.planning-workbench .field{margin:8px 0;min-width:0}
.planning-workbench textarea{min-height:64px;height:auto;resize:vertical;line-height:1.55}
.planning-top-fields textarea[data-path$=".title"]{min-height:133px}
.planning-top-fields textarea[data-path$=".growthWho"]{min-height:38px}
.planning-workbench h3,.planning-workbench h4{margin:0 0 8px}
.planning-workbench details{margin:12px 0}
.planning-workbench .idea-chat-log{max-height:310px;min-height:110px;overflow:auto;overscroll-behavior:contain}
.planning-workbench .idea-chat-log p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}
.planning-variables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.planning-variables section{padding:10px;background:#faf7f5;border:1px solid #e8dfd9;border-radius:10px;min-width:0}
.planning-variables section+section{margin-top:0;padding-top:10px}
.planning-variables button{display:block;text-align:left;width:100%;margin:5px 0;white-space:normal;overflow-wrap:anywhere}
.compact-materials{margin-bottom:14px}.compact-materials>section{margin-top:12px}
@media(max-width:1050px){.planning-workbench{grid-template-columns:minmax(0,1fr)}.planning-workbench .idea-chat-log{max-height:220px}}
@media(max-width:600px){.planning-top-fields,.planning-variables{grid-template-columns:minmax(0,1fr)}.planning-top-fields textarea[data-path$=".title"]{min-height:70px}}

.rough-import textarea[data-path="concept.conversation"]{min-height:360px;resize:vertical;line-height:1.7}

.plot-overview-wrap{overflow-x:auto;margin:16px 0}.plot-overview{width:100%;min-width:760px;table-layout:fixed;border-collapse:collapse;background:#fff;font-size:13px}.plot-overview th,.plot-overview td{padding:6px;border:1px solid #dfc9ca;vertical-align:top;text-align:left}.plot-overview thead th{background:#eee5df;position:sticky;top:0;z-index:2}.plot-overview tbody th{background:#faf6f2;vertical-align:middle;text-align:center}.plot-overview textarea{display:block;width:100%;height:58px;min-height:58px;padding:5px;margin:0;line-height:1.55;font-size:13px;resize:vertical}.plot-overview textarea+textarea,.plot-overview td>div+div{margin-top:4px}.plot-overview details{margin:2px 0;font-size:12px}.plot-overview summary{cursor:pointer}.plot-overview button{font-size:12px;padding:5px}.plot-overview details textarea{height:90px}.plot-overview .plot-turn{margin:6px 0;padding:6px}.plot-overview pre{white-space:pre-wrap;overflow-wrap:anywhere}

.plot-overview col:nth-child(1){width:6%}.plot-overview col:nth-child(2){width:20%}.plot-overview col:nth-child(3){width:50%}.plot-overview col:nth-child(4){width:24%}.plot-overview textarea{height:48px;min-height:48px}

.plot-policy{display:grid;grid-template-columns:1fr 1fr;gap:12px}.plot-workspace{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);gap:20px;align-items:start;margin-top:18px}.plot-document,.plot-chat{min-width:0}.plot-chat{position:sticky;top:12px;max-height:90vh;overflow:auto}.plot-chat pre,.plot-policy pre{white-space:pre-wrap;overflow-wrap:anywhere}.plot-revision{border-top:1px solid #dfc9ca;padding:12px 0}.plot-revision textarea{min-height:65px}.plot-reading-text li{margin-bottom:10px}.plot-actions{margin:12px 0}@media(max-width:900px){.plot-workspace,.plot-policy{grid-template-columns:1fr}.plot-chat{position:static;max-height:none}}

.screening-chapter{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:24px;align-items:start}.chapter-body{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.9}.screening-chapter>div{min-width:0}.screening-chapter textarea{width:100%;box-sizing:border-box}@media(max-width:850px){.screening-chapter{grid-template-columns:1fr}}

.screening-chapters{max-height:70vh;overflow-y:auto;overscroll-behavior:contain;padding:4px 12px 4px 4px;border:1px solid #eadede;border-radius:12px}.screening-chapter .chapter-body{max-height:340px;overflow-y:auto;overscroll-behavior:contain;padding-right:12px}.screening-chapter{margin-bottom:12px}

.voice-toolbar{gap:12px;margin:16px 0}.voice-toolbar label{display:flex;align-items:center;gap:8px;margin:0}.voice-toolbar select{width:auto;max-width:230px;margin:0}.voice-toolbar button{white-space:nowrap}
