/* Article editing workflow; scoped to the admin editor and its dialogs. */
.article-editor-panel{max-width:1200px;margin-inline:auto;padding:30px!important}
.editor-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.editor-eyebrow{font-size:10px;letter-spacing:.18em;font-weight:800;color:#6b6fe8}
.editor-intro h2{font-size:26px;letter-spacing:-.04em;margin:8px 0}
.editor-intro p,.editor-section-heading p{color:var(--text-3);font-size:13px;margin:4px 0;line-height:1.7}
.draft-state-pill{background:#f0f1ff;color:#5558c5;border:1px solid #dedfff;border-radius:24px;padding:8px 13px;font-size:12px;white-space:nowrap}
.draft-sync-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f6f8fc;border:1px solid #e5eaf3;border-radius:12px;padding:14px 16px}
.draft-sync-bar strong{font-size:13px;display:block;color:#536277}.draft-sync-bar small{display:block;color:#7a8799;line-height:1.6;margin-top:4px}
#draftStatus[data-state="saved"]{color:#27815e}#draftStatus[data-state="error"]{color:#bb5140}#draftStatus[data-state="saving"],#draftStatus[data-state="pending"]{color:#7761bb}
.draft-conflict-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:#fff7ee;border-radius:12px;margin-top:10px}
.article-editor-panel [hidden],.workflow-dialog [hidden]{display:none!important}
.editor-section-heading{display:flex;align-items:center;gap:14px;margin:30px 0 18px;border-top:1px solid #edf0f5;padding-top:24px}
.editor-section-heading>span{width:32px;height:32px;background:#f3f3ff;color:#7776be;border-radius:10px;display:grid;place-items:center;font-size:12px;font-weight:700;flex-shrink:0}
.editor-section-heading h3{font-size:16px;margin:0;color:var(--text-1)}.editor-section-heading .select{margin-left:auto;max-width:180px}
.editor-fields{border:0;padding:0;margin:0;min-width:0}
.article-editor-panel .editor-body{min-height:390px}
.draft-notify-option{display:flex;gap:8px;align-items:center;margin-top:18px;color:var(--text-2);font-size:13px;line-height:1.7}
.workflow-actions{position:sticky;bottom:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0!important;margin-top:24px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-top:1px solid #e7eaf1;flex-wrap:wrap}
.workflow-actions-main,.workflow-actions-secondary{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.workflow-dialog{margin:auto;border:1px solid #e4e8f0;border-radius:20px;padding:24px;color:#27334a;width:min(600px,calc(100vw - 32px));max-height:90dvh;box-sizing:border-box;box-shadow:0 30px 100px #18203935}
.workflow-dialog::backdrop{background:#15213d66;backdrop-filter:blur(3px)}
.workflow-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.workflow-dialog h2{font-size:18px;margin:0}.workflow-dialog-head>button{width:36px;height:36px;border:0;background:#f1f3f8;border-radius:10px;font-size:24px;cursor:pointer}
.workflow-dialog p{font-size:14px;line-height:1.8;color:#6d788b}
.workflow-dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.workflow-preview-dialog{width:min(1400px,calc(100vw - 32px));height:92dvh;max-height:94dvh;overflow:hidden;display:flex;flex-direction:column}
.workflow-preview-dialog:not([open]){display:none}
.preview-switch{display:flex;align-items:center;gap:8px;margin-bottom:16px;flex-shrink:0}.preview-switch>span{font-size:12px;color:#788296;margin-left:auto}.preview-switch .active{background:#f0efff;color:#625adb;border-color:#d9d5ff}
.preview-canvas{flex:1;min-height:0;overflow:auto;background:#e9ecf2;border-radius:10px;display:flex;justify-content:center}
.preview-canvas iframe{background:white;width:100%;max-width:100%;height:100%;border:0;flex-shrink:0}
.revision-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid #e9ecf2}
.revision-list strong,.revision-list small{display:block}.revision-list small{font-size:12px;color:#7c8493;margin-top:6px;overflow-wrap:anywhere}
.draft-inbox{margin-bottom:24px}.draft-inbox-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.draft-inbox h2{font-size:18px;margin:6px 0 16px}
.draft-inbox-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.draft-inbox-item{display:flex;align-items:center;gap:12px;padding:14px;background:#f8f9fd;border:1px solid #e8ecf4;border-radius:12px;color:var(--text-1);text-decoration:none;min-width:0}
.draft-inbox-item>span:nth-child(2){min-width:0;flex:1}.draft-inbox-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.draft-inbox-item small{display:block;font-size:11px;color:#7a8498;margin-top:6px}
.draft-inbox-item>span:last-child{font-size:11px;color:#7273c5;white-space:nowrap}.draft-inbox-mark{display:grid;place-items:center;width:32px;height:36px;border-radius:8px;background:#eeedff;color:#7772bb}
.draft-inbox-empty{color:var(--text-3);font-size:13px;margin:0;line-height:1.8}
@media(max-width:640px){.article-editor-panel{padding:16px!important}.editor-intro{align-items:flex-start;gap:10px}.editor-intro h2{font-size:20px}.editor-intro p{font-size:12px}.draft-state-pill{font-size:10px;padding:7px 8px}.editor-section-heading{flex-wrap:wrap}.editor-section-heading .select{max-width:none;width:100%;margin-left:46px}.workflow-actions{gap:10px;padding:12px 0!important}.workflow-actions-main{width:100%;display:grid;grid-template-columns:1.2fr 1fr .8fr}.workflow-actions-main .btn{padding:10px 8px;min-height:42px}.workflow-actions-secondary{gap:2px;justify-content:space-between;width:100%}.workflow-actions-secondary .btn{padding:6px;font-size:11px}.workflow-dialog{padding:16px;width:calc(100vw - 16px);border-radius:14px}.workflow-preview-dialog{height:94dvh;width:calc(100vw - 12px)}.preview-switch>span{font-size:10px}.draft-inbox-list{grid-template-columns:minmax(0,1fr)}.draft-inbox-item{padding:12px 10px;gap:8px}.draft-inbox-item>span:last-child{font-size:10px}}
