:root{--ink: #222;--line: #ddd;--bg: #fff;--muted: #666;--st-未: #9e9e9e;--st-生成中: #e0a800;--st-確認待ち: #2f6fed;--st-ok: #2e8b3e;--st-リテイク: #d33;--st-素材: #8b5a2b}*{box-sizing:border-box}body{margin:0;font-family:Hiragino Sans,Yu Gothic,Meiryo,system-ui,sans-serif;background:var(--bg);color:var(--ink);font-size:14px}#app{max-width:1100px;margin:0 auto;padding:16px}h1{font-size:18px;margin:0 0 4px}.notice{background:#fff7e0;border:1px solid #e0c060;border-radius:6px;padding:8px 12px;font-size:13px;margin:8px 0 12px}.notice.warning{background:#fdeaea;border-color:#d33;color:#a11}.topbar{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:flex-end;border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:14px}.field{display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--muted)}.field input,.field select{font-size:14px;padding:4px 6px;border:1px solid var(--line);border-radius:4px}.topbar .actions{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}button{font-size:13px;padding:6px 10px;border:1px solid #999;border-radius:6px;background:#f7f7f7;cursor:pointer}button:hover{background:#eee}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:#2f6fed;border-color:#2f6fed;color:#fff}button.primary:hover{background:#2559c0}.cost-line{font-size:13px;color:var(--muted)}.board-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:8px}table.board{border-collapse:collapse;width:100%;min-width:720px}table.board th,table.board td{border-bottom:1px solid var(--line);padding:6px 8px;text-align:left;vertical-align:top;white-space:nowrap}table.board td:nth-child(3),table.board td:nth-child(4),table.board td:nth-child(5){white-space:normal;max-width:220px}table.board th{background:#fafafa;font-weight:600;position:sticky;top:0}tr.chapter-row td{background:#f0f4ff;font-weight:700;border-top:2px solid #c8d4ee}tr.cut-row{cursor:pointer}tr.cut-row:hover{background:#f9fbff}tr.cut-row.selected{background:#eef4ff}.status-chip{display:inline-block;padding:2px 8px;border-radius:999px;color:#fff;font-size:12px;white-space:nowrap}.status-未{background:var(--st-未)}.status-生成中{background:var(--st-生成中)}.status-確認待ち{background:var(--st-確認待ち)}.status-OK,.status-合格{background:var(--st-ok)}.status-リテイク{background:var(--st-リテイク)}.status-素材{background:var(--st-素材)}.panel{margin-top:16px;border:1px solid var(--line);border-radius:8px;padding:14px}.panel h2{font-size:15px;margin:0 0 10px}.panel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px 14px;margin-bottom:12px}.panel textarea{width:100%;font-size:13px;padding:6px;border:1px solid var(--line);border-radius:4px;font-family:inherit;resize:vertical}.panel .prompt-field{grid-column:1 / -1}.panel .prompt-field textarea{min-height:90px}.image-slot{display:flex;flex-direction:column;gap:4px}.image-slot img{max-width:140px;max-height:140px;border:1px solid var(--line);border-radius:4px;object-fit:contain;background:#f5f5f5}.gen-actions{display:flex;align-items:center;gap:10px;margin:10px 0}.gen-history table{border-collapse:collapse;width:100%}.gen-history th,.gen-history td{border-bottom:1px solid var(--line);padding:6px;font-size:12px;vertical-align:top}.gen-history video{max-width:160px;max-height:160px}.error-text{color:#b00020;font-size:12px}.hint{font-size:12px;color:var(--muted)}.copy-fallback textarea{width:100%;min-height:140px}
