/* Scoped corrections. No changes to global button styles or desktop footer. */
:is(#articleBody,.public-article-body,.preview-body) .cache-cta p,
:is(#articleBody,.public-article-body,.preview-body) .cache-cta p :is(span,strong,em,b,i){line-height:1.35!important;letter-spacing:normal!important}
:is(#articleBody,.public-article-body,.preview-body) .cache-cta p{margin:10px 0 8px!important;font-size:1rem!important}
:is(#articleBody,.public-article-body,.preview-body) .cache-cta p :is(span,strong,em,b,i){display:inline!important;margin:0!important;font-size:inherit!important}
.cache-focus-editor{display:flex!important;flex-direction:column;overflow:hidden!important}
.cache-focus-editor>.editor-head{position:relative!important;top:auto!important;flex-shrink:0;z-index:3;background:#fff}
.cache-focus-editor #articleForm{min-height:0;overflow:auto;flex:1;scroll-padding-top:12px}
.cache-focus-editor #editorToolbar{position:sticky!important;top:0!important;z-index:4;background:#fff;max-height:35vh;overflow-y:auto}
.cache-focus-editor .editor-main,.cache-focus-editor .rich-editor-field{min-width:0}
body.cache-expanded-active :is(.app-modal,.modal-backdrop,.image-picker-modal,.cache-calendar-popover):not(.hidden){z-index:15000!important}
.cache-next-panel{box-sizing:border-box!important;overscroll-behavior:contain;overflow-y:auto!important;max-height:calc(100dvh - 24px)!important}
.cache-next-panel header{position:sticky;top:-14px;background:#fff;padding:8px 0;z-index:1}
.cache-next-panel textarea,.cache-import textarea{box-sizing:border-box;width:100%;min-height:140px;border:1px solid #b9d2d0;border-radius:12px;padding:12px;font:14px/1.5 system-ui;color:#19383c;background:#fff}
.cache-import{padding:12px;margin:12px 0;background:#f0f8f7;border:1px solid #c6ddda;border-radius:12px}.cache-import p{font:13px/1.5 system-ui;color:#4f6467}.cache-import button{margin:8px 6px 0 0}
#articleBody .cache-faq-bottom{display:flex!important;visibility:visible!important;position:relative!important;gap:8px;flex-wrap:wrap;padding:12px 0!important;clear:both}
#articleFormError:not(:empty){position:relative!important;z-index:2;margin:14px 0!important;padding:14px!important;white-space:normal;overflow-wrap:anywhere}
#articleEditor .article-publish-actions{position:relative!important}
.cache-sizing-panel label{display:block;margin:10px 0}.cache-sizing-panel input,.cache-sizing-panel select{box-sizing:border-box;width:100%;border:1px solid #bfd6d4;border-radius:9px;padding:9px;font:inherit}
:is(#articleBody,.public-article-body,.preview-body) table[data-cache-sizing]{table-layout:auto!important;min-width:0!important;width:auto!important;max-width:100%!important;font-size:1rem!important;line-height:1.4!important}
:is(#articleBody,.public-article-body,.preview-body) table[data-cache-sizing=full]{width:100%!important}
:is(#articleBody,.public-article-body,.preview-body) table[data-cache-sizing] :is(td,th){min-width:0!important;padding:var(--cache-cell-y,8px) var(--cache-cell-x,10px)!important;height:var(--cache-row-height,auto);font-size:inherit!important;line-height:1.4!important}
:is(#articleBody,.public-article-body,.preview-body) table[data-cache-sizing] :is(td,th) :is(p,div,span){font-size:inherit!important;line-height:inherit!important;margin:0!important}
.article-reviewer-credit{font:14px/1.5 system-ui;color:#526567;margin:8px 0 20px}.cache-reviewer-manager{padding:14px;border:1px solid #c4dbd7;border-radius:14px;margin:14px 0}.cache-reviewer-manager label{display:flex;gap:8px;align-items:center;margin:8px 0}.cache-reviewer-manager input[type=search]{width:100%;box-sizing:border-box;padding:10px;border:1px solid #bdd5d1;border-radius:10px}
@media(max-width:600px){:is(#articleBody,.public-article-body,.preview-body) table[data-cache-sizing] :is(td,th){width:auto!important;padding:min(var(--cache-cell-y,8px),8px) min(var(--cache-cell-x,10px),10px)!important}.cache-focus-editor>.editor-head h2{font-size:1rem}.cache-focus-editor #editorToolbar{max-height:30vh}}
#articleEditor.cache-focus-editor #editorToolbar.editor-toolbar{top:0!important;overflow-y:auto!important;max-height:35vh!important}
.cache-expanded-dialog{z-index:15000!important}
/* Existing tables keep their layout choice while matching editor text metrics. */
:is(#articleBody,.public-article-body,.preview-body) table{font-size:1rem!important;line-height:1.4!important}
:is(#articleBody,.public-article-body,.preview-body) :is(td,th){min-width:0!important}
:is(#articleBody,.public-article-body,.preview-body) :is(td,th) :is(p,div){font-size:inherit!important;line-height:inherit!important;margin:4px 0!important}
.cache-expanded-toolbar-dock{flex:0 0 auto;max-height:32vh;overflow-y:auto;background:#fff;border-bottom:1px solid #d6e5e2;z-index:4}
#articleEditor.cache-focus-editor .cache-expanded-toolbar-dock #editorToolbar.editor-toolbar{position:relative!important;top:auto!important;overflow:visible!important;max-height:none!important;margin:0!important}
