/* Real workflow presentation; data, permissions and server decisions stay in the existing APIs. */
.workflow-v2{--wf-blue:#286bfa;--wf-line:#dce5f3;--wf-ink:#152641;--wf-muted:#5b6e8b;background:#f5f8fd;color:var(--wf-ink)}
.workflow-v2 .main{padding:28px 32px;min-width:0}.workflow-v2 .topbar-title h1{font-size:29px}.workflow-v2 .topbar-title p{display:none}.workflow-v2 .dashboard-card,.workflow-v2 .panel{box-shadow:none;border:1px solid var(--wf-line);border-radius:12px;padding:22px}.workflow-v2 .dashboard-card h2{font-size:19px;line-height:1.5}.workflow-v2 .caption{color:var(--wf-muted);line-height:1.7}.workflow-v2 button.primary{background:var(--wf-blue);border-color:var(--wf-blue);box-shadow:none}.workflow-v2 button{min-height:44px}.workflow-v2 .small{min-height:40px}.wf-page-tools{display:flex;justify-content:flex-end}.wf-page-tools:empty{display:none}.wf-steps{display:flex;align-items:center;justify-content:center;gap:28px;margin:20px 0 28px}.wf-steps>span{color:#8198b9}.wf-steps button{display:flex;gap:8px;align-items:center;border:0;background:none;color:#536d95;padding:4px 8px;font-size:14px;white-space:nowrap}.wf-steps button b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e7eef9;color:#5b7294}.wf-steps button.active{font-weight:600;color:var(--wf-ink)}.wf-steps button.active b{background:var(--wf-blue);color:#fff}.wf-plan{display:flex;align-items:center;gap:20px;background:#fff;border:1px solid var(--wf-line);border-radius:10px;padding:12px 22px;margin-bottom:20px}.wf-plan strong{white-space:nowrap}.wf-plan>span{flex:1;color:#476084}.wf-topic-detail dl{margin:20px 0}.wf-topic-detail dt{color:var(--wf-muted);font-size:13px;padding-top:20px;border-top:1px solid var(--wf-line)}.wf-topic-detail dd{margin:8px 0 20px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.wf-detail-actions{justify-content:flex-end}.wf-quiet-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border-top:1px solid var(--wf-line);padding-top:16px;margin-top:20px}.wf-more{margin-top:20px}.wf-more>summary{color:#48668d;font-size:14px;min-height:32px;cursor:pointer}.wf-more>.panel,.wf-more>.dashboard-card{margin-top:16px}.wf-workbench{display:grid;grid-template-columns:220px minmax(0,1fr) 310px;gap:16px;align-items:start}.wf-workbench>*{min-width:0}.workflow-v2 .wf-workbench .task-buttons{max-height:650px;overflow:auto;display:grid;gap:10px}.workflow-v2 .task-button{border:1px solid var(--wf-line);border-radius:8px;padding:14px;text-align:left;line-height:1.65;color:var(--wf-ink);background:#fff}.workflow-v2 .task-button.selected{background:#f1f6ff;border-color:var(--wf-blue);box-shadow:inset 3px 0 var(--wf-blue)}.workflow-v2 .task-title{font-size:14px;font-weight:600;overflow-wrap:anywhere}.workflow-v2 .task-meta{font-size:12px;color:var(--wf-muted)}.wf-editor .drawer-head,.wf-editor-submit{display:none!important}.wf-editor .drawer-body{padding:0;overflow:visible}.wf-editor .drawer-body>form{display:block}.wf-editor .field{margin:18px 0}.wf-editor .field input,.wf-editor .field textarea,.wf-editor .field select{font-size:14px;color:var(--wf-ink);border:1px solid #cfdbed;border-radius:8px}.wf-editor .field textarea[name=body]{min-height:390px;line-height:1.9;resize:vertical}.wf-editor .field textarea[name=cta],.wf-editor .field textarea[name=extra]{min-height:92px}.wf-editor-tabs{display:flex;gap:20px;margin:16px 0;border-bottom:1px solid var(--wf-line)}.wf-editor-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;padding:8px 0 12px;background:none;color:#526b90;font-size:14px}.wf-editor-tabs button.selected{border-bottom-color:var(--wf-blue);color:var(--wf-blue);font-weight:600}.wf-form-section[hidden]{display:none!important}.wf-platform-picker select{min-height:40px;border:1px solid var(--wf-line);border-radius:8px;color:var(--wf-ink);padding:8px;background:#fff}.wf-platform-picker .field{margin:0}.wf-platform-picker .field>span{font-size:12px}.wf-create-actions{display:grid;gap:16px}.wf-create-actions .studio-ai{margin:0}.wf-create-actions .studio-buttons{display:grid;gap:10px}.wf-create-actions .studio-buttons button{width:100%;font-size:14px}.wf-create-actions .studio-buttons .primary{background:#fff;color:var(--wf-ink);border:1px solid var(--wf-line)}.wf-create-actions .studio-live{font-size:13px;line-height:1.7}.wf-create-actions .studio-budget{display:grid;gap:8px;font-size:13px}.wf-create-actions .studio-budget strong{font-size:16px}.wf-create-actions .studio-ai .card-heading>span{display:none}.wf-create-actions .studio-jobs{margin-top:16px}.wf-create-actions .studio-job{font-size:13px}.wf-create-actions .studio-image img{max-height:180px;max-width:100%;object-fit:contain}.wf-create-actions .studio-warning{background:#fff5df;border-radius:8px;padding:10px;color:#83580f;line-height:1.7}.wf-current-actions .actions{display:grid;grid-template-columns:1fr;gap:10px}.wf-current-actions .caption{margin-top:12px}.wf-asset-keep{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;border:1px solid var(--wf-line);border-radius:8px}.wf-asset-keep img{width:84px;height:112px;object-fit:contain;background:#f5f8fe;border-radius:6px}.wf-review{grid-template-columns:220px minmax(0,1fr) 350px}.wf-review .status-tabs{gap:4px;flex-wrap:wrap}.wf-review .status-tabs button{font-size:12px;min-height:36px;padding:6px 8px}.wf-review .check{font-size:13px;line-height:1.8;margin:12px 0}.wf-review .check input{flex:none;width:18px;height:18px;accent-color:var(--wf-blue);margin-top:4px}.wf-review .problem-card{padding:12px;margin-bottom:10px;border:1px solid #ecdfc4;background:#fffdf7;border-radius:8px}.wf-review .problem-card p{font-size:12px;margin:8px 0;line-height:1.7}.wf-review .problem-card strong{font-size:13px}.wf-review .problem-card button{font-size:12px;min-height:36px}.wf-review .validation-clear{background:#eaf7f0;padding:12px;border-radius:8px;color:#1f714d}.wf-review .validation-clear strong{font-size:14px}.wf-review .validation-clear p{font-size:12px;margin-top:6px}.wf-review .wf-review-hint{margin:20px 0 12px}.wf-review .actions{display:flex;gap:8px;flex-wrap:wrap}.wf-article h2{font-size:20px!important;line-height:1.65!important;margin-bottom:8px}.wf-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95;font-size:14px;color:var(--wf-ink)}.wf-images{display:flex;gap:12px;overflow:auto;margin:20px 0}.wf-images a{flex:none;text-decoration:none;font-size:12px;color:var(--wf-blue)}.wf-images img{display:block;width:128px;height:170px;object-fit:contain;background:#f5f8fd;border:1px solid var(--wf-line);border-radius:8px;margin-bottom:6px}.wf-history{border-bottom:1px solid var(--wf-line);padding:20px 0}.wf-history>.wf-article{margin-top:12px}.wf-history .wf-body{max-height:300px;overflow:auto}.wf-notice{border:1px solid #d7e5ff;background:#edf4ff;color:#426492;padding:12px 16px;border-radius:8px;font-size:13px;margin-bottom:16px}.wf-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}.wf-metrics .dashboard-card{display:grid;gap:12px}.wf-metrics span{font-size:14px;color:var(--wf-muted)}.wf-metrics strong{font-size:30px;line-height:1.2}.wf-effects{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:16px;align-items:start;margin-bottom:16px}.wf-chart{min-width:0}.wf-chart>.dashboard-card{margin:0}.wf-report-period{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.workflow-v2 .table-scroll{overflow-x:auto}.workflow-v2 table{font-size:13px}.workflow-v2 th{font-size:12px;white-space:nowrap}.workflow-v2 td .caption{display:block}.workflow-v2 .yx-publishing .yx-body{font-size:14px}.workflow-v2 .yx-confirmation{margin-top:0}.workflow-v2 .yx-images img{object-fit:contain}.workflow-v2 .yx-job{font-size:14px}.workflow-v2 .yx-selection .field{font-size:14px}.workflow-v2 .yx-selection form{gap:16px}.workflow-v2 .wf-server-mode{padding:10px 14px;background:#f3f6fb;border-radius:8px;font-size:13px;color:var(--wf-muted)}.wf-yx-dialog{border:0;border-radius:14px;width:min(640px,calc(100vw - 32px));padding:24px;max-height:90dvh;color:var(--wf-ink);box-shadow:0 20px 70px #12254126}.wf-yx-dialog::backdrop{background:#15264155}.wf-yx-dialog .yx-body{max-height:360px;overflow:auto}.wf-yx-dialog .yx-ack{margin:20px 0}.wf-yx-dialog h3{font-size:21px;margin:0}.wf-yx-dialog .wf-yx-summary{display:flex;gap:16px;align-items:flex-start;margin:20px 0}.wf-yx-dialog .wf-yx-summary img{width:100px;height:132px;object-fit:contain;background:#f5f8fd;border-radius:8px}.wf-yx-dialog .wf-yx-summary h4{font-size:17px;margin:0 0 8px;line-height:1.6}.wf-yx-dialog .wf-yx-summary p{font-size:13px;color:var(--wf-muted)}
@media(max-width:1400px){.workflow-v2 .main{padding:24px}.wf-workbench{grid-template-columns:190px minmax(0,1fr) 270px;gap:12px}.wf-review{grid-template-columns:180px minmax(0,1fr) 300px}.workflow-v2 .wf-workbench>.dashboard-card{padding:16px}.wf-steps{gap:20px}}
@media(max-width:1120px){.wf-workbench{grid-template-columns:210px minmax(0,1fr)}.wf-create-actions,.wf-review-actions{grid-column:1/-1}.wf-create-actions{grid-template-columns:minmax(0,1fr) minmax(220px,.7fr)}.wf-review-actions #wf-review-form{columns:2;column-gap:24px}.wf-review-actions #wf-review-form .check{break-inside:avoid}.wf-review-actions #wf-review-form>.actions,.wf-review-actions #wf-review-form>.caption{column-span:all}.wf-steps{gap:12px}.wf-effects{grid-template-columns:1fr}}
@media(max-width:700px){.workflow-v2 .main{padding:20px 16px}.workflow-v2 .topbar-title h1{font-size:25px}.workflow-v2 .dashboard-card,.workflow-v2 .panel{padding:18px}.wf-steps{justify-content:space-between;gap:4px;margin:16px 0 24px;overflow-x:auto}.wf-steps>span{display:none}.wf-steps button{gap:4px;padding:4px 0;font-size:12px;min-height:36px}.wf-steps button b{width:24px;height:24px}.wf-workbench,.wf-create-actions{grid-template-columns:1fr}.wf-create-actions,.wf-review-actions{grid-column:auto}.wf-review-actions #wf-review-form{columns:1}.wf-plan{gap:10px;flex-wrap:wrap;padding:12px 16px}.wf-plan span{font-size:13px}.wf-workbench .task-buttons{max-height:220px!important}.wf-editor .field textarea[name=body]{min-height:330px}.wf-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.wf-metrics strong{font-size:26px}.wf-images img{width:112px;height:150px}.wf-yx-dialog{padding:20px}.wf-yx-dialog .wf-yx-summary img{width:80px;height:106px}.wf-yx-dialog .actions{flex-wrap:wrap}.wf-page-tools button{min-height:40px}.wf-current-actions .actions{grid-template-columns:1fr 1fr}}

.wf-confirm-cover{width:100px;height:132px;object-fit:contain;float:left;margin:16px 20px 16px 0;border-radius:8px;background:#f5f8fd}.wf-yx-dialog>details{clear:both}.workflow-v2 .publication-card .actions{gap:12px}.workflow-v2 .publication-card h3{font-size:18px}

.workflow-v2 .wf-hidden{display:none!important}
dialog.wf-yx-dialog{inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;height:auto;max-height:90dvh;width:min(640px,calc(100vw - 32px));border-radius:14px;overflow:auto}.wf-yx-dialog .actions{justify-content:flex-end}

/* Isolated topic discovery, using the existing workflow cards. */
.ds-discovery{display:grid;gap:20px;margin-bottom:20px}.ds-discovery .dashboard-card{min-width:0}.ds-discovery fieldset{border:0;padding:0;margin:0;min-width:0}.ds-query-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:16px}.ds-query-grid:has(>.field:nth-child(2):last-child){grid-template-columns:2fr 1fr}.ds-tabs{flex-wrap:wrap}.ds-filter{display:flex;gap:16px;flex-wrap:wrap}.ds-filter .field{min-width:150px;flex:1}.ds-discovery svg{display:block;width:100%;height:auto;max-height:220px}.ds-discovery .form-error:empty{display:none}.ds-discovery a{overflow-wrap:anywhere}
@media(max-width:1100px){.ds-query-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.ds-query-grid,.ds-query-grid:has(>.field:nth-child(2):last-child){grid-template-columns:1fr}.ds-discovery .dashboard-card{padding:18px}.ds-discovery button{white-space:normal}.ds-filter{display:grid;grid-template-columns:1fr}.ds-discovery .card-heading{align-items:flex-start;gap:10px;flex-wrap:wrap}}
.ds-query-notice{margin:16px 0;overflow-wrap:anywhere}.ds-query-notice ul{padding-left:20px}.ds-query-notice li{margin:8px 0}.ds-query-notice details{margin-top:12px}

.ds-chart-hint{display:none}.ds-trend-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin-top:12px}.ds-discovery .ds-trend-chart{width:auto;min-width:100%;max-height:none}.ds-trend-value{font-size:13px;font-weight:650;fill:#173a72;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round;font-variant-numeric:tabular-nums}.ds-word-table-scroll{max-height:390px;overflow:auto;overscroll-behavior:contain;border:1px solid #e3eaf5;border-radius:10px;margin:12px 0}.ds-discovery .ds-word-table{width:100%;min-width:500px;border-collapse:separate;border-spacing:0;font-size:14px}.ds-word-table th,.ds-word-table td{padding:9px 14px;border-bottom:1px solid #e7edf6;text-align:left;vertical-align:middle}.ds-word-table thead th{position:sticky;top:0;z-index:1;background:#f4f7fc;font-size:12px;color:#526985;white-space:nowrap}.ds-word-table tbody th{font-weight:550;white-space:normal;overflow-wrap:anywhere;min-width:140px}.ds-word-table tbody tr:last-child>*{border-bottom:0}.ds-word-table tbody tr:hover{background:#f8faff}.ds-word-table .ds-word-index{font-variant-numeric:tabular-nums;color:#173a72;white-space:nowrap;width:120px}.ds-word-actions{display:flex;gap:8px;white-space:nowrap}.ds-discovery .ds-word-actions button{font-size:13px;min-height:34px;padding:6px 9px;white-space:nowrap;color:#286bfa}.ds-word-table-scroll:focus-visible,.ds-trend-scroll:focus-visible{outline:2px solid #3478ff;outline-offset:3px}
@media(max-width:600px){.ds-chart-hint{display:block;margin:0 0 8px}.ds-word-table-scroll{max-height:330px}.ds-discovery .ds-word-table{min-width:0;table-layout:fixed}.ds-word-table th,.ds-word-table td{padding:8px 6px}.ds-word-table th:first-child{width:38%}.ds-word-table th:nth-child(2){width:26%}.ds-word-table th:nth-child(3){width:36%}.ds-word-table tbody th{min-width:0;font-size:12px;color:#253b5a}.ds-word-table .ds-word-index{font-size:12px;width:auto}.ds-word-actions{flex-direction:column;gap:5px;align-items:flex-start}.ds-discovery .ds-word-actions button{font-size:12px;padding:6px 4px}}

/* Compact comparison lists; row actions reuse the existing workflows. */
.wf-compact-scroll{max-width:100%;max-height:560px;overflow:auto;overscroll-behavior:contain;border:1px solid #e0e8f4;border-radius:10px;margin:12px 0}.workflow-v2 .wf-compact-table{width:100%;min-width:960px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:13px}.wf-compact-table th,.wf-compact-table td{padding:10px 12px;border-bottom:1px solid #e7edf6;text-align:left;vertical-align:middle;overflow-wrap:anywhere}.wf-compact-table thead th{position:sticky;top:0;z-index:1;background:#f4f7fc;color:#526985;font-size:12px;white-space:nowrap}.wf-compact-table tbody th{font-weight:500;background:#fff;font-size:13px;white-space:normal}.wf-compact-table tbody tr:last-child>*{border-bottom:0}.wf-compact-table tr:hover>*,.wf-compact-table tr.selected>*{background:#f6f9ff}.wf-compact-table .wf-table-number{font-variant-numeric:tabular-nums;white-space:nowrap;color:#253b5a}.wf-compact-table .wf-col-title{width:36%}.wf-compact-table .wf-col-author{width:14%}.wf-compact-table .wf-col-fans{width:12%}.wf-compact-table .wf-col-likes{width:9%}.wf-compact-table .wf-col-comments{width:9%}.wf-compact-table .wf-col-actions{width:20%}.wf-compact-table .wf-table-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:left;line-height:1.6;font-weight:600;color:#245db4;font-size:13px}.workflow-v2 button.wf-table-title{min-height:0;padding:0;border:0;background:none;border-radius:0;white-space:normal}.wf-table-meta{display:block;font-size:11px;color:#6b7f9d;line-height:1.7;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wf-table-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.workflow-v2 .wf-table-actions button{min-height:34px;padding:6px 9px;font-size:12px;white-space:nowrap}.ds-discovery .wf-table-actions button{color:#286bfa}.wf-table-lookup{margin-top:5px}.ds-discovery .wf-table-lookup button{font-size:11px;min-height:28px;padding:4px 6px;white-space:normal}.wf-table-extra{margin:3px 0 0;font-size:11px;color:#6b7f9d}.wf-table-extra summary{cursor:pointer;padding:0;font-size:11px;line-height:1.4}.wf-table-extra p{white-space:pre-wrap;overflow-wrap:anywhere;font-weight:400;margin-top:6px;line-height:1.7;color:#526985}.wf-table-status{font-size:11px;color:#526985}.wf-table-hint{display:none}.wf-compact-scroll:focus-visible{outline:2px solid #3478ff;outline-offset:3px}.wf-topics-table .wf-col-title{width:28%}.wf-topics-table .wf-col-author{width:12%}.wf-topics-table .wf-col-fans{width:9%}.wf-topics-table .wf-col-likes{width:8%}.wf-topics-table .wf-col-comments{width:7%}.wf-topics-table .wf-col-status{width:12%}.wf-topics-table .wf-col-actions{width:24%}.wf-my-topics .status-tabs{flex-wrap:wrap}.wf-my-topics>.card-heading{gap:12px}.wf-my-topics .wf-compact-scroll{margin-bottom:0}
@media(max-width:700px){.wf-table-hint{display:block;margin-top:8px}.wf-compact-scroll{max-height:420px}.workflow-v2 .wf-compact-table{min-width:850px}.wf-compact-table th,.wf-compact-table td{padding:9px 10px}.wf-compact-table .wf-table-title{font-size:12px}.wf-table-actions{gap:5px}}

.wf-table-empty{padding:18px 0}

.ds-budget-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:13px;color:#526985}.ds-budget-editor{max-width:520px;padding:18px;border:1px solid #dce5f3;border-radius:10px;background:#fff}.ds-budget-editor .actions{margin-top:12px}.simple-review>button{margin:16px 0 8px}.simple-result{padding:14px 0;border-top:1px solid #dce5f3;margin-top:16px}.simple-result>p{font-size:13px;line-height:1.7;margin-top:10px}.simple-review form{border-top:1px solid #dce5f3;margin-top:16px;padding-top:16px}.simple-review .field{margin:12px 0}.simple-review details{font-size:12px;margin-bottom:12px}.simple-review li{margin-bottom:8px}.simple-review-error:empty{display:none}.simple-review .check{display:flex;gap:8px}

.simple-note-field[hidden]{display:none!important}.simple-result>.tag{margin:8px 0}.simple-result details{margin-top:10px}.simple-review>p{margin-top:12px}

.wf-publish-settings>.field{margin:18px 0}.wf-publish-settings>.field>span{font-size:14px;font-weight:600;color:var(--wf-ink)}.wf-publish-settings .wf-setting-conditional[hidden],.wf-publish-settings label[hidden],.wf-publish-settings details[hidden]{display:none!important}.wf-settings-hint{margin:6px 0 18px}.wf-settings-more{margin-top:24px;border-top:1px solid var(--wf-line);padding-top:12px}.wf-settings-more>summary{font-size:13px;color:var(--wf-muted)}.wf-setting-conditional{padding-top:4px}.wf-publish-settings>details{margin-top:20px}.wf-publish-settings>details>summary{font-size:14px}
