/* Phase 16.3.3: scoped editor ergonomics and approved article CTA refinement. */
:is(#articleBody,.public-article-body,.preview-body) .cache-cta p{color:#f1e9d8!important;line-height:1.35!important}
:is(#articleBody,.public-article-body,.preview-body) .cache-cta p :is(span,strong,b,em,i){color:inherit!important}
:is(#articleBody,.public-article-body,.preview-body) .cache-cta::before{content:'';display:block;width:36px;height:3px;background:#70dbc2;margin:0 0 14px;border-radius:3px}
.cache-expanded-only{display:none!important}
#articleEditor.cache-focus-editor .cache-expanded-only{display:inline-flex!important}
#articleEditor.cache-focus-editor{padding:8px!important;gap:0}
#articleEditor.cache-focus-editor>.editor-head{padding:8px 10px!important;min-height:48px;gap:10px;flex-wrap:nowrap;align-items:center;margin:0!important}
#articleEditor.cache-focus-editor>.editor-head>div:first-child{min-width:0;flex:1}
#articleEditor.cache-focus-editor .editor-head .kicker{display:none}
#articleEditor.cache-focus-editor #editorHeading{font-size:16px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
#articleEditor.cache-focus-editor .editor-head-actions{flex-wrap:nowrap;gap:6px}
#articleEditor.cache-focus-editor .editor-head-actions button{min-height:34px;padding:6px 11px;font-size:13px}
#articleEditor.cache-focus-editor #closeEditor{display:none!important}
#articleEditor.cache-focus-editor .cache-expanded-toolbar-dock{max-height:25vh}
#articleEditor.cache-focus-editor #editorToolbar.editor-toolbar{padding:6px!important;gap:4px!important;border-radius:0!important}
#articleEditor.cache-focus-editor #editorToolbar button{min-width:30px;min-height:30px;height:32px;padding:5px!important}
#articleEditor.cache-focus-editor #editorToolbar :is([aria-label="Save from expanded editor"],[aria-label="Preview article"]){display:none!important}
#articleEditor.cache-focus-editor #revisionPanel{position:static!important;flex:none!important;grid-column:1/-1;padding:12px!important;margin:18px 0!important}
#articleEditor.cache-focus-editor.cache-presence-alone #collabBar{display:none!important}
#articleEditor .cache-presence-mini{font-size:11px;line-height:1.2;color:#42676b;margin-top:3px}
.cache-editor-more{position:relative}.cache-editor-more[hidden]{display:none}.cache-editor-more>summary,.cache-spacing-menu>summary{cursor:pointer;list-style:none;border:1px solid #c6d9d8;border-radius:9px;padding:7px 10px;font:600 13px system-ui;color:#07545b;background:#fff}.cache-editor-more>div{position:absolute;right:0;top:100%;z-index:18000;padding:10px;background:white;border:1px solid #c3d9d7;border-radius:12px;box-shadow:0 6px 18px #123b3d18;min-width:180px;display:grid;gap:6px}
.cache-spacing-menu{position:relative}.cache-spacing-menu .cache-spacing-controls{display:flex;flex-wrap:wrap}.cache-spacing-menu:not([open]) .cache-spacing-controls{display:none!important}.cache-spacing-menu[open] .cache-spacing-controls{position:fixed;z-index:18000;width:290px;max-width:80vw;padding:12px;background:white;border:1px solid #c3d9d7;border-radius:12px}
/* Fix inherited form rules that stretched reviewer checkboxes. */
#articleEditor .cache-reviewer-side{box-sizing:border-box;background:#f8fbfb;padding:14px;margin:0;border:1px solid #d6e4e4;border-radius:12px;min-width:0}
.cache-reviewer-side>summary{cursor:pointer;font-weight:700;display:grid;gap:5px;color:#16474c}.cache-reviewer-side summary small{font-size:12px;line-height:1.4;font-weight:400;color:#52696b}.cache-reviewer-side>p{font-size:12px;line-height:1.45}
#articleEditor .cache-reviewer-side label{display:grid;gap:6px;align-items:start;font-size:13px;margin:12px 0}
#articleEditor .cache-reviewer-side [data-reviewer-choices] label{display:flex;justify-content:flex-start;align-items:center;gap:8px}
#articleEditor .cache-reviewer-side input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px;flex:0 0 18px;padding:0!important;appearance:auto;accent-color:#086d73;box-shadow:none!important}
#articleEditor .cache-reviewer-side input[type=search]{font-size:13px;padding:9px}
#articleEditor .cache-reviewer-side .cache-review-switch{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#articleEditor .cache-reviewer-side [role=switch]{appearance:none;width:34px!important;min-width:34px;flex-basis:34px;height:20px!important;border-radius:20px;background:#a2b2b4;border:0;position:relative;cursor:pointer}
#articleEditor .cache-reviewer-side [role=switch]::after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .15s}
#articleEditor .cache-reviewer-side [role=switch]:checked{background:#08757a}
#articleEditor .cache-reviewer-side [role=switch]:checked::after{transform:translateX(14px)}
.cache-review-state{font-size:12px!important;line-height:1.45;padding:8px 10px;border-radius:8px;background:#e8f3f2;color:#234f53}.cache-review-confirm{background:#086d73!important;color:white!important;border-color:#086d73!important;width:100%;font-size:13px!important}
#articleEditor .cache-floating-table-tools{z-index:16000;width:max-content;max-width:calc(100vw - 24px);display:flex;gap:5px;flex-wrap:wrap;padding:7px;max-height:25vh;overflow:auto}
#articleEditor .cache-floating-table-tools button{font-size:12px;min-height:32px;min-width:30px;padding:5px 8px}
.cache-resize-handle{position:fixed!important;z-index:16001!important;padding:0!important;width:22px;min-width:22px!important;height:22px;min-height:22px!important;border:1px solid #08777b!important;border-radius:5px!important;background:#e3f7f3!important;color:#07565c!important;cursor:col-resize;touch-action:none;line-height:18px!important;font-size:13px!important}
.cache-resize-handle.row{cursor:row-resize}.cache-resize-handle.table{cursor:ew-resize}.cache-table-resizing{user-select:none}.cache-table-resizing table{outline:2px solid #52b8ad;outline-offset:1px}
:is(#articleBody,.public-article-body,.preview-body) table[data-cache-sizing=custom]{width:min(100%,var(--cache-custom-table-width,100%))!important;max-width:100%!important}
.cache-custom-callout label{display:grid;gap:5px;font-size:13px;font-weight:600;margin:10px 0}.cache-custom-callout :is(input:not([type=checkbox]),select){width:100%;box-sizing:border-box;border:1px solid #bfd6d4;border-radius:9px;padding:9px;font:inherit;background:white;color:#173d42}.cache-custom-callout .cache-preset-check{display:flex;gap:7px;align-items:center}.cache-custom-callout input[type=checkbox]{width:18px;accent-color:#086d73}.cache-custom-callout aside{margin:14px 0}
:is(#articleBody,.public-article-body,.preview-body,.cache-custom-callout) .cache-callout[data-callout-style=custom]{border-left:4px solid var(--custom-accent,#08757a);background:var(--custom-bg,#eef8f6);color:var(--custom-text,#173f42);padding:14px 16px;border-radius:12px;font-size:1rem;line-height:1.45}
[data-callout-style=custom][data-custom-palette=teal]{--custom-accent:#08757a;--custom-bg:#eef8f6;--custom-text:#173f42}
[data-callout-style=custom][data-custom-palette=blue]{--custom-accent:#3d6a96;--custom-bg:#f0f5fb;--custom-text:#23425e}
[data-callout-style=custom][data-custom-palette=amber]{--custom-accent:#967123;--custom-bg:#fcf7eb;--custom-text:#5a451a}
[data-callout-style=custom][data-custom-palette=purple]{--custom-accent:#795b91;--custom-bg:#f7f2fa;--custom-text:#4f385e}
[data-callout-style=custom]>.cache-callout-heading{display:flex;align-items:center;gap:8px;font:700 14px/1.4 system-ui;color:var(--custom-text);margin-bottom:8px}
@media(max-width:600px){#articleEditor.cache-focus-editor #editorHeading{max-width:32vw;font-size:13px}#articleEditor.cache-focus-editor .editor-head-actions button{font-size:11px;padding:5px!important}#articleEditor.cache-focus-editor .cache-editor-more>summary{font-size:11px;padding:6px}.cache-resize-handle{width:28px;height:28px}.cache-reviewer-side{width:100%}}

.cache-custom-icon-grid{display:flex;flex-wrap:wrap;gap:6px}.cache-custom-icon-grid button{display:grid;place-items:center;min-width:36px;height:36px;border:1px solid #c3d8d5;border-radius:8px;background:white;color:#086b70}.cache-custom-icon-grid button[aria-pressed=true]{background:#dcf3ed;border:2px solid #08757a}.cache-custom-callout select[hidden]{display:none}
#articleEditor.cache-focus-editor #editorToolbar [aria-label="Exit expanded editor"]{display:none!important}
@media(max-width:600px){#articleEditor.cache-focus-editor .editor-head-actions{gap:4px}#articleEditor.cache-focus-editor>.editor-head{padding:6px!important;gap:5px}#articleEditor.cache-focus-editor #editorHeading{max-width:22vw}#articleEditor.cache-focus-editor .cache-editor-more>summary{font-size:0}#articleEditor.cache-focus-editor .cache-editor-more>summary::after{content:'•••';font-size:15px}}
#articleEditor .cache-floating-table-tools{max-width:min(480px,calc(100vw - 24px))!important}

#articleEditor.cache-focus-editor>.editor-head{z-index:20!important}
.cache-sizing-panel select,.cache-custom-callout select:not([hidden]){appearance:none;width:100%;border:1px solid #bfd6d4;border-radius:9px;padding:10px 36px 10px 12px;color:#173d42;font:inherit;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23086d73' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center}
/* Mobile preview has its own ID-level layer rule; override only while expanded. */
body.cache-expanded-active :is(#previewModal,#imagePickerModal,#quickUploadModal,#linkModal,#revisionModal,#submitReviewModal,#returnChangesModal,#reviewHistoryModal,#scheduleModal,#publishedUpdateModal,#archiveArticleModal):not(.hidden){z-index:15000!important}

/* Subtle, clearly actionable review confirmation. */
.cache-reviewer-side button.cache-review-confirm{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border:1px solid #087178!important;border-radius:10px!important;background:#e4f3f1!important;color:#07585e!important;font-weight:700!important;cursor:pointer}.cache-reviewer-side button.cache-review-confirm:hover{background:#d3ebe8!important}.cache-reviewer-side button.cache-review-confirm:focus-visible{outline:3px solid #7ccbc8;outline-offset:2px}.cache-reviewer-side button.cache-review-confirm:disabled{opacity:.55;cursor:not-allowed}
.article-reviewer-credit{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 .35em;border-left:3px solid #9ecfca;padding:4px 0 4px 12px;color:#51676b;font-size:.9rem;line-height:1.5}.article-reviewer-credit a{color:#075e65;font-weight:700;text-decoration:none}.article-reviewer-credit a:hover{text-decoration:underline}

[data-header-expand]{white-space:nowrap}#articleEditor.cache-focus-editor [data-header-expand]{display:none!important}
.cache-taxonomy-count{font-size:12px;font-weight:600;color:#05686f;margin-left:8px;white-space:nowrap}.cache-taxonomy-create{margin-top:8px}.cache-link-selection{font-size:13px;color:#355c60;overflow-wrap:anywhere}
.cache-callout[data-callout-style="caution"]{background:#fffaf0;border-color:#96701e;color:#35454b}.cache-callout[data-callout-style="caution"]>.cache-callout-heading{color:#805b12}
#articleEditor .cache-updated-setting{padding:14px;border:1px solid #d5e5e3;border-radius:12px;margin:14px 0}.cache-updated-setting label{display:flex;gap:8px;align-items:center}.cache-updated-setting small{display:block;margin:8px 0;line-height:1.45}

