#writer-dialog{width:min(1360px,calc(100vw - 32px));height:94vh;height:94dvh;max-height:94dvh;max-width:none;overflow:hidden}#writer-dialog[open]{display:flex;flex-direction:column}#writer-dialog>.modal-header{padding:16px 24px}#writer-dialog .modal-header h2{font-size:20px;font-weight:650}#writer-url{display:block;color:#64748b;font-size:12px;margin-top:4px;overflow-wrap:anywhere}#writer-url:hover{color:#4f46e5}.writer-context-bar{flex:none;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 24px;border-bottom:1px solid var(--line);background:#f8fafc}.writer-status{font-size:12px;line-height:1.7;color:#475569}.writer-status[data-state=changes]{color:#be123c}.writer-status[data-state=approved]{color:#047857}.writer-message:empty{display:none}.writer-message{font-size:12px;color:#475569;padding:9px 24px;background:#eef2ff;border-bottom:1px solid #e0e7ff;white-space:pre-wrap;flex:none}.writer-body{display:flex;flex:1;min-height:0;overflow:hidden}.writer-document{display:flex;flex-direction:column;flex:1;min-width:0;background:#fff;overflow:hidden}.writer-tabs{display:flex;align-items:center;gap:20px;padding:0 24px;border-bottom:1px solid var(--line);flex:none;background:#fff;min-height:49px}.writer-tabs button{padding:14px 0;border:0;border-bottom:2px solid transparent;background:transparent;border-radius:0;color:#64748b;font-size:13px;gap:7px}.writer-tabs [aria-selected=true]{border-bottom-color:#4f46e5;color:#4f46e5}.writer-tabs [aria-selected=true] .nav-count{background:#eef2ff;color:#4338ca}.writer-paper{padding:26px 30px 36px;overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}.writer-draft-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.writer-draft-heading h3{font-size:15px;font-weight:600;letter-spacing:-.2px}.writer-draft-heading p{font-size:11px;margin-top:4px}.rich-editor-shell{border:1px solid #cbd5e1;border-radius:8px;background:#fff;overflow:hidden}.rich-editor-fallback{min-height:360px;font:13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;width:100%;border:0;border-radius:0;padding:24px;resize:vertical}.rich-editor-shell .rich-editor-topbar{background:#f8fafc;border-color:#e2e8f0}.rich-editor-shell .cf-editor-surface{min-height:360px}.writer-help{font-size:11px;line-height:1.7;color:#94a3b8;margin-top:14px}.writer-sidebar{width:380px;display:flex;flex-direction:column;min-height:0;border-left:1px solid var(--line);background:#f8fafc;flex:none}.writer-sidebar>.writer-tabs{justify-content:space-between;gap:0;padding:0 18px;background:#fff}.writer-sidebar>.writer-tabs button{flex:1;justify-content:center;padding-inline:8px}.sidebar-scroll{min-height:0;overflow:auto;flex:1;padding:18px;overscroll-behavior:contain}.feedback-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-6px 0 14px}.feedback-tools>span{font-size:10px;color:#94a3b8}.writer-feedback{margin:0 0 14px;padding:0;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;overflow-wrap:anywhere}.feedback-card-header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #eef2f6;font-size:10px;color:#94a3b8}.feedback-card-header .badge{font-size:9px;padding:2px 5px}.writer-feedback blockquote{margin:12px 14px 8px;padding:10px 12px;background:#fefce8;border-left:3px solid #fde047;font-size:11px;line-height:1.75;color:#854d0e;white-space:pre-wrap;max-height:160px;overflow:auto}.writer-feedback .passage-link{border:0;background:transparent;color:#6366f1;padding:0 14px 10px;font-size:10px;white-space:normal;text-align:left;justify-content:flex-start}.feedback-message{padding:13px 14px}.feedback-message+.feedback-message{border-top:1px solid #f1f5f9;margin-left:13px;padding-left:12px}.feedback-author{display:flex;align-items:center;gap:8px}.feedback-author .avatar{width:26px;height:26px;font-size:9px;border-color:#e2e8f0;background:#f1f5f9;color:#64748b}.feedback-author strong{font-size:11px;color:#334155;font-weight:600;display:block}.feedback-author time{display:block;font-size:9px;color:#94a3b8;margin-top:1px}.feedback-message p{white-space:pre-wrap;font-size:12px;line-height:1.8;margin-top:10px;color:#475569}.feedback-reply-button{border:0;border-top:1px solid #f1f5f9;border-radius:0;padding:10px 14px;color:#4f46e5;font-size:11px;justify-content:flex-start;width:100%;background:#fff}.feedback-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#94a3b8;margin:16px 0 4px}.feedback-empty{padding:34px 18px;text-align:center;color:#94a3b8;font-size:11px;line-height:1.8}.feedback-empty>svg{width:24px;height:24px;margin:0 auto 12px}.feedback-empty strong{display:block;color:#64748b;font-size:12px;margin-bottom:5px}.writer-job{border:1px solid var(--line);background:#f8fafc;border-radius:8px;margin-top:12px;padding:12px 14px;font-size:12px}.writer-job strong{font-size:12px;font-weight:500;color:#475569}.writer-job .secondary{font-size:10px;color:#94a3b8}.writer-job[data-state=accepted]{border-color:#a7f3d0;background:#f0fdf4}.writer-job[data-state=accepted] strong{color:#047857}.writer-job[data-state=conflict],.writer-job[data-state=rejected],.writer-job[data-state=attention]{border-color:#fecdd3;background:#fff1f2}.writer-job p{font-size:11px;margin-top:7px}.writer-footer{justify-content:space-between}.writer-footer>div{display:flex;gap:10px;flex-wrap:wrap}.writer-footer #writer-saved{font-size:12px;color:#64748b;display:flex;gap:7px;align-items:center}.writer-footer #writer-saved::before{content:'';width:6px;height:6px;border-radius:50%;background:#10b981}.writer-footer #writer-saved[data-dirty=true]{color:#a16207}.writer-footer #writer-saved[data-dirty=true]::before{background:#eab308}#writer-reply-form{display:flex;flex-direction:column;gap:10px;background:#fff;padding:14px;border:1px solid #c7d2fe;border-radius:8px;margin-top:16px}#writer-reply-form label{font-size:11px}#writer-reply-form textarea{font-size:12px;line-height:1.8}.reply-actions{display:flex;justify-content:flex-end;gap:8px}.reply-actions button{font-size:11px;padding:7px 10px}.writer-history-card{border:1px solid var(--line);background:#fff;border-radius:8px;margin-bottom:12px;overflow:hidden}.writer-history-card>button{display:block;text-align:left;width:100%;border:0;border-radius:0;padding:14px;white-space:normal}.writer-history-card strong{font-size:12px;font-weight:600;color:#334155}.writer-history-card small{display:block;color:#64748b;font-size:10px;margin-top:7px;line-height:1.6}.writer-history-card time{display:block;font-size:10px;color:#94a3b8;margin-top:4px}.writer-history-card[data-approved=true]{border-color:#a7f3d0}.writer-decision{padding:11px 14px;border-top:1px solid #eef2f6;font-size:10px;color:#64748b;line-height:1.8}.writer-decision p{font-size:11px;white-space:pre-wrap;margin:4px 0;color:#475569}.writer-decision strong{font-size:10px}.version-heading{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:26px}.version-heading label{font-size:11px}.version-heading select{font-size:12px;width:100%;max-width:500px}.version-heading p{font-size:10px;margin-top:9px;color:#94a3b8}.writer-article{padding:6px 6px 24px;background:white;color:#334155;font-size:15px;line-height:1.95;overflow-wrap:anywhere;min-height:100px}.writer-article h1{font-size:30px;line-height:1.3;letter-spacing:-.02em;margin:0 0 28px;font-weight:700}.writer-article h2{font-size:21px;line-height:1.5;font-weight:650;margin:30px 0 16px}.writer-article h3{font-size:18px;line-height:1.5;margin:24px 0 12px;font-weight:650}.writer-article p{color:inherit;line-height:inherit;margin:0 0 20px}.writer-article ul,.writer-article ol{padding-left:25px;margin:16px 0}.writer-article a{color:#4f46e5;text-decoration:underline;text-underline-offset:3px}.writer-article table{width:100%;border-collapse:collapse;font-size:13px;margin:22px 0;white-space:normal}.writer-article th,.writer-article td{border:1px solid var(--line);padding:10px;text-align:left;vertical-align:top}.writer-article th{background:#f8fafc}.writer-article blockquote{border-left:3px solid #cbd5e1;padding-left:18px;color:#64748b;margin:20px 0}.writer-article mark{background:#fef08a;color:#854d0e;box-decoration-break:clone;border-radius:2px}.writer-article img{max-width:100%;height:auto}#writer-confirm{width:min(1180px,calc(100vw - 32px));height:88dvh;max-height:92dvh}.writer-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;padding:0;flex:1;overflow:hidden}.writer-comparison>section{min-width:0;overflow:auto;overscroll-behavior:contain;padding:26px 30px}.writer-comparison>section+section{border-left:1px solid var(--line)}#writer-confirm[data-preview=true]{width:min(850px,calc(100vw - 32px))}#writer-confirm[data-preview=true] .writer-comparison{grid-template-columns:1fr}#writer-confirm[data-preview=true] .writer-comparison>section{border:0;padding:30px 44px}
@media(max-width:1100px){.writer-sidebar{width:330px}.writer-paper{padding:24px}.writer-context-bar{padding:10px 20px}.writer-tabs{padding:0 20px}.writer-draft-heading{align-items:flex-start}.writer-draft-heading p{max-width:250px}}@media(max-width:760px){#writer-dialog{width:calc(100vw - 16px);height:96dvh;max-height:96dvh}#writer-dialog>.modal-header{padding:12px 16px}#writer-dialog .modal-header h2{font-size:17px}.writer-context-bar{padding:9px 12px;gap:7px}.writer-status{font-size:10px}.writer-context-bar button{font-size:10px;padding:6px 8px}.writer-message{font-size:10px;padding:8px 14px}.writer-body{flex-direction:column}.writer-document{flex:1;min-height:190px}.writer-sidebar{width:100%;height:40%;min-height:165px;border-left:0;border-top:1px solid var(--line)}.writer-tabs{padding:0 16px;min-height:42px}.writer-tabs button{font-size:12px;padding:11px 0}.writer-paper{padding:20px}.writer-draft-heading{gap:8px}.writer-draft-heading h3{font-size:14px}.writer-draft-heading p{font-size:10px}.writer-draft-heading .small{font-size:11px}.writer-footer{gap:8px;padding:10px 14px}.writer-footer>div{gap:7px}.writer-footer button{font-size:11px;padding:8px 10px}.writer-footer #writer-saved{font-size:10px}.sidebar-scroll{padding:14px}.writer-comparison{grid-template-columns:1fr;overflow:auto}.writer-comparison>section{overflow:visible;padding:20px}.writer-comparison>section+section{border-left:0;border-top:1px solid var(--line)}#writer-confirm{width:calc(100vw - 16px);height:94dvh}#writer-confirm[data-preview=true] .writer-comparison>section{padding:24px}.writer-article{font-size:14px}.writer-article h1{font-size:26px}}

.writer-mode-tools{display:flex;gap:4px;padding:8px 12px;border-bottom:1px solid var(--line);background:#f8fafc}.writer-mode-tools button{padding:5px 10px;font-size:11px;border-color:transparent;background:transparent;color:#64748b}.writer-mode-tools button[aria-pressed=true]{background:#eef2ff;color:#4338ca;border-color:#e0e7ff}


#writer-source-article{padding:18px 14px;border:1px solid var(--line);border-radius:8px;overflow:auto;font-size:13px}#writer-source-article:empty{display:none}.writer-sidebar .writer-tabs{gap:15px;padding:0 16px;overflow-x:auto;flex-shrink:0}.writer-sidebar .writer-tabs button{font-size:11px;white-space:nowrap;flex-shrink:0}#writer-source-note{margin:0 0 14px}

/* Presentation only: never added to the stored or submitted article HTML. */
:is(.cf-editor-surface.wysiwyg-content,.wysiwyg-content,.writer-article,.cf-review-article) a[href] {
 color:#4338ca;
 text-decoration-line:underline;
 text-decoration-style:solid;
 text-decoration-thickness:1px;
 text-underline-offset:3px;
 text-decoration-skip-ink:auto;
 overflow-wrap:anywhere;
}
:is(.cf-editor-surface.wysiwyg-content,.wysiwyg-content,.writer-article,.cf-review-article) a[href] :is(span,strong,b,em,i,u) { color:inherit; }
:is(.cf-editor-surface.wysiwyg-content,.wysiwyg-content,.writer-article,.cf-review-article) a[href]:hover {
 color:#312e81;
 text-decoration-thickness:2px;
}
:is(.cf-editor-surface.wysiwyg-content,.wysiwyg-content,.writer-article,.cf-review-article) a[href]:focus-visible {
 outline:2px solid #6366f1;
 outline-offset:3px;
 border-radius:2px;
}
 #writer-device-saved{display:block;font-size:11px;color:#64748b;margin-top:4px;max-width:420px}
 .ux-recovery-notice{padding:10px 14px;margin-block:10px;border:1px solid #c7d2fe;border-radius:8px;background:#eef2ff;font-size:12px}
 .ux-recovery-notice button{margin:4px 0 4px 10px;color:#4338ca;text-decoration:underline}
