/* Channel workflow layouts; colors and components come from production-ui.css. */
:root{color-scheme:dark}main{flex:1;min-width:0}.channel-icon{width:28px;height:28px;border-radius:50%}.header-subtitle{font-size:.8rem;color:var(--muted);margin-top:5px}.ck-filters .filter-tab{width:auto}.workflow-info{margin:0 24px 20px;padding:12px 16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.8rem;color:#aaa}.workflow-info p{margin-top:8px;max-width:95ch}.board-heading{font-size:.85rem;font-weight:500;color:var(--muted);padding:0 24px 8px;display:flex;align-items:center;gap:8px}.empty{padding:36px 16px;color:var(--muted);grid-column:1/-1;text-align:center}.ck-card-title{display:block;padding:0 16px 8px;text-align:left;width:100%;font-size:1.05rem;font-weight:600;line-height:1.45;overflow-wrap:anywhere}.ck-card-meta{padding:0 16px 18px;display:flex;gap:10px;flex-wrap:wrap;font-size:.75rem;color:var(--muted)}.card.selected{border-color:var(--accent)}.ck-pipeline-labels{display:flex;justify-content:space-between;padding:0 16px 12px;gap:5px;color:var(--muted);font-size:.65rem}.ck-pipeline-labels span{flex:1;text-align:center}.ck-pipeline-labels span:first-child{text-align:left}.ck-pipeline-labels span:last-child{text-align:right}.pipe-dot.failed{background:var(--red)}.badge-error{background:#ef44441f;color:#f87171}.card-actions .btn{flex:1;min-height:38px}.muted,small{color:var(--muted);font-size:.8rem}.error{color:#f87171}#notice,.detail-notice{margin:0 24px 16px;padding:12px 14px;background:#3b82f612;border:1px solid #3b82f64d;border-radius:var(--radius-sm);font-size:.85rem;white-space:pre-wrap}#notice.error,.detail-notice.error{border-color:#ef444455;background:#ef444410}.detail-notice{margin:0 0 16px}.job-message{padding:12px 14px;border-radius:var(--radius-sm);background:#3b82f615;margin:16px 0;color:#bfdbfe;font-size:.85rem}button:disabled{opacity:.4;cursor:not-allowed}[hidden]{display:none!important}
dialog{color:var(--text);background:var(--surface);border:1px solid var(--border2);padding:0}dialog::backdrop{background:#000a}dialog[open]{display:flex;flex-direction:column}.create-dialog{width:min(720px,94vw);max-height:92dvh;margin:auto;border-radius:var(--radius)}.episode-dialog{width:min(1000px,90vw);max-width:100vw;height:100dvh;max-height:100dvh;margin:0 0 0 auto;border-radius:0;border-width:0 0 0 1px;overflow:hidden}#detail{height:100%;min-height:0;display:flex;flex-direction:column}.review-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0}.review-header h2{font-size:1.1rem;font-weight:600;overflow-wrap:anywhere}.review-close{color:var(--muted);font-size:1.3rem;flex-shrink:0;width:36px;height:36px;border-radius:var(--radius-sm)}.review-close:hover{background:var(--surface2);color:var(--text)}.review-body{padding:24px;overflow-y:auto;min-height:0;flex:1}.review-body>.pipeline{padding:8px 0 14px}.review-body>.ck-pipeline-labels{padding:0 0 20px}.detail-status{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:18px}.detail-status h3{font-size:.9rem}.review-body details{margin:18px 0;border:1px solid var(--border2);border-radius:var(--radius-sm);padding:14px}.review-body summary{cursor:pointer;font-size:.85rem;font-weight:600}.review-body details p{margin:12px 0}.review-body label{display:block;font-size:.85rem;color:#aaa;margin-bottom:16px}.review-body input:not([type=file]),textarea{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid var(--border2);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);font:inherit;font-size:.9rem;line-height:1.7;resize:vertical}textarea{min-height:180px}.review-body button:not(.review-close),.file-button,.tts-dialog button:not(.review-close){padding:9px 14px;min-height:40px;border:1px solid var(--border2);border-radius:var(--radius-sm);background:var(--surface2);font-size:.8rem;font-weight:500}.review-body button.primary,.tts-dialog button.primary{background:var(--accent);color:white;border-color:var(--accent)}.review-body button:hover:not(:disabled),.file-button:hover{border-color:var(--accent)}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0}.actions label.file-button{margin:0;cursor:pointer;color:var(--text)}.section-summary-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin:20px 0}.section-summary{padding:16px;background:var(--surface2);border:1px solid var(--border2);border-radius:var(--radius-sm)}.section-summary h3{font-size:.85rem;line-height:1.5}.section-summary p{color:var(--muted);font-size:.75rem;margin:8px 0 12px}.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:16px 0}.asset{padding:10px;border:1px solid var(--border2);border-radius:var(--radius-sm);background:var(--bg)}.asset img{width:100%;height:140px;object-fit:contain}.asset p,.asset a{font-size:.75rem}.asset p{margin:8px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.75rem;color:var(--muted);margin-top:12px}input:focus,textarea:focus,button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tts-dialog{width:min(1160px,96vw);height:94dvh;max-height:94dvh;margin:auto;border-radius:var(--radius);overflow:hidden}.tts-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border)}.tts-dialog-header h2{font-size:1.1rem;font-weight:600}.tts-dialog-header p{margin-top:4px}.tts-share-bar{padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--border)}.tts-share-bar label{display:block;margin-bottom:6px;font-size:.75rem;color:#aaa}.tts-share-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tts-share-actions input{padding:10px;min-width:0;flex:1 1 200px;background:var(--bg);border:1px solid var(--border2);border-radius:var(--radius-sm);color:var(--text);font-size:.75rem}.tts-share-actions button,.tts-share-actions a{font-size:.75rem;white-space:nowrap}.tts-share-bar small{display:block;margin-top:6px}.tts-dialog iframe{width:100%;flex:1;min-height:150px;border:0;background:var(--bg)}.tts-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-top:1px solid var(--border2)}
@media(max-width:650px){.header{gap:16px;flex-wrap:wrap}.header-actions{margin-left:auto}.episode-dialog,.tts-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.review-header,.review-body{padding:16px}.tts-share-actions input{flex-basis:100%}.tts-dialog-footer{flex-direction:column;align-items:stretch}.tts-dialog-header,.tts-share-bar,.tts-dialog-footer{padding:12px}.section-summary-grid{grid-template-columns:1fr}.ck-filters{gap:6px}.ck-filters .filter-tab{font-size:.8rem;padding:8px 10px}}@media(max-width:480px){.header{padding:16px 12px}.header-actions .btn{padding:9px 12px}.header-subtitle{font-size:.72rem}.stats-bar{grid-template-columns:repeat(3,1fr);padding:0 12px}.stat-value{font-size:1.25rem}.stat-label{font-size:.62rem}.grid{grid-template-columns:minmax(0,1fr);padding:8px 12px 24px}.filters{padding:14px 12px}.workflow-info{margin:0 12px 16px}.board-heading{padding-left:12px}.create-dialog{width:100%;max-width:100%;max-height:100dvh;border-radius:0}.detail-status{align-items:flex-start;flex-direction:column}.tts-dialog-header h2{font-size:.9rem}.actions button{flex:1 1 150px}}
/* SEO and render review use the same direct card access pattern as audiobook projects. */
.ck-card-thumb{display:block;width:calc(100% - 32px);aspect-ratio:16/9;object-fit:cover;margin:0 16px 14px;border-radius:10px;border:1px solid var(--border2);cursor:pointer}
.ck-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 16px 16px}
.ck-card-actions .btn{min-height:40px;font-size:.78rem;white-space:normal;text-align:center}
.ck-card-actions .ck-seo-action{background:var(--accent);color:#fff;border-color:var(--accent)}
.ck-packaging-status{display:flex;gap:8px;flex-wrap:wrap;padding:0 16px 12px;font-size:.72rem;color:var(--muted)}
.ck-packaging-status .ready{color:var(--green,#4ade80)}
.seo-dialog{width:min(1160px,96vw);height:min(94dvh,1100px);max-height:94dvh;margin:auto;border-radius:var(--radius);overflow:hidden}
.seo-dialog .review-header{padding:16px 22px}
.seo-dialog .review-body{padding:20px 22px}
.seo-section{margin-bottom:24px;padding:18px;border:1px solid var(--border2);border-radius:12px;background:var(--surface2)}
.seo-section h3{font-size:1rem;margin:0 0 13px;color:var(--text)}
.seo-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.seo-section-head h3{margin:0}
.seo-title-option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;margin:8px 0;border:1px solid var(--border2);border-radius:9px;background:var(--bg)}
.seo-title-option.selected,.seo-cover.selected{border-color:var(--accent)}
.seo-title-option input[type=radio],.seo-cover input[type=radio]{display:inline;width:auto;min-width:16px;height:16px;margin:0;padding:0;accent-color:var(--accent)}
.seo-title-option input[type=text]{width:100%;min-width:0;margin:0;padding:7px 9px;background:transparent;border:0;color:var(--text);font-size:.9rem;line-height:1.4}
.seo-title-option input[type=text]:focus{outline:1px solid var(--accent);border-radius:5px}
.seo-copy-btn,.seo-cover button,.seo-cover a{border:1px solid var(--border2);border-radius:7px;padding:7px 10px;background:var(--surface);color:var(--text);font-size:.75rem;text-decoration:none;cursor:pointer}
.seo-copy-btn:hover,.seo-cover button:hover,.seo-cover a:hover{border-color:var(--accent)}
.seo-section textarea{width:100%;margin-top:0;padding:12px 14px;min-height:260px;background:var(--bg);color:var(--text);border:1px solid var(--border2);border-radius:8px;line-height:1.6;font:inherit;font-size:.86rem;resize:vertical}
.seo-section textarea.seo-tags{min-height:85px}
.seo-hint{font-size:.75rem;color:var(--muted);margin:8px 0 0}
.seo-covers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.seo-cover{border:1px solid var(--border2);border-radius:10px;padding:10px;background:var(--bg);min-width:0}
.seo-cover img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:6px;cursor:pointer}
.seo-cover label{display:flex;align-items:center;gap:8px;margin:10px 0 8px;font-size:.8rem;font-weight:600;cursor:pointer}
.seo-cover-actions{display:flex;gap:6px;flex-wrap:wrap}
.seo-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:13px 22px;border-top:1px solid var(--border);background:var(--surface)}
#seo-notice{flex:1;color:var(--muted);font-size:.8rem}
#seo-notice.error{color:#f87171}
.image-dialog,.render-dialog{width:min(1200px,96vw);max-height:96dvh;margin:auto;border-radius:var(--radius);overflow:hidden}
.image-dialog img{display:block;max-width:100%;max-height:calc(96dvh - 80px);object-fit:contain;margin:auto}
.render-dialog video{display:block;width:100%;max-height:calc(96dvh - 80px);background:#000}
@media(max-width:760px){.seo-covers{grid-template-columns:1fr}.seo-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.seo-title-option{grid-template-columns:auto minmax(0,1fr)}.seo-title-option .seo-copy-btn{grid-column:2;justify-self:start}.seo-footer{flex-wrap:wrap}.seo-footer #seo-notice{flex-basis:100%}}
.seo-title-option textarea{width:100%;min-width:0;min-height:72px;height:72px;margin:0;padding:7px 9px;background:transparent;border:0;color:var(--text);font-size:.88rem;line-height:1.35;resize:vertical}
.seo-title-option textarea:focus{outline:1px solid var(--accent);border-radius:5px}
@media(max-width:450px){.seo-dialog .review-body{padding:12px}.seo-section{padding:12px}.seo-title-option textarea{min-height:105px;height:105px}}
.ck-card-actions .btn:not(:disabled){color:var(--text)}
.ck-card-actions .ck-seo-action:not(:disabled){color:#fff}
.ck-card-actions .ck-tts-action{grid-column:1/-1;background:#1d4ed8;border-color:#60a5fa;color:#fff!important;font-weight:700}
.ck-card-actions .ck-tts-action:hover{background:#2563eb}
.ck-editor-ready{display:flex;flex-direction:column;gap:4px;margin:0 16px 12px;padding:12px 14px;border:1px solid #60a5fa66;border-radius:10px;background:#1d4ed822;color:#dbeafe;font-size:.79rem}
.ck-editor-ready strong{font-size:.85rem}
.ck-editor-ready span{color:#a9c7f8}
.ck-editor-callout{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:2px 0 18px;padding:16px;border:1px solid #60a5fa77;border-radius:12px;background:#1d4ed822}
.ck-editor-callout strong{color:#dbeafe;font-size:.96rem}
.ck-editor-callout p{margin:6px 0 0;color:#b9cffa;font-size:.8rem;line-height:1.5}
.ck-editor-callout button{flex-shrink:0}
@media(max-width:650px){.ck-editor-callout{flex-direction:column;align-items:stretch}.ck-editor-callout button{width:100%}}
