/* Compact checklist: the whole list follows the page, without a nested scroll area. */
#gzw .fact-review-panel .facts{max-height:none;overflow:visible}
#gzw .fact-review-panel .fact-compact{display:grid;grid-template-columns:42px minmax(0,1fr);padding:0;margin:0;border-radius:0;border-bottom:1px solid var(--gw-line);background:transparent;font-size:14px}
#gzw .fact-check-target{display:flex;align-items:flex-start;justify-content:center;padding:10px 0;min-height:44px;box-sizing:border-box;cursor:pointer}
#gzw .fact-check-target input{width:18px;height:18px;margin:3px 0 0;accent-color:var(--gw-accent);cursor:pointer}
#gzw .fact-details{min-width:0;padding:0;margin:0;border:0}
#gzw .fact-details>summary{display:flex;align-items:baseline;gap:12px;padding:10px 0;list-style:none;cursor:pointer;font-size:14px;line-height:1.6;min-height:44px;box-sizing:border-box}
#gzw .fact-details>summary::-webkit-details-marker{display:none}
#gzw .fact-details>summary:focus-visible,#gzw .fact-check-target:focus-within{outline:2px solid var(--gw-accent);outline-offset:2px;border-radius:5px}
#gzw .fact-claim{flex:1;min-width:0;overflow-wrap:anywhere}
#gzw .fact-number{color:var(--gw-muted);font-variant-numeric:tabular-nums}
#gzw .fact-row-status{font-size:11px;color:var(--gw-muted);white-space:nowrap}
#gzw .fact-toggle{font-size:12px;color:var(--gw-accent);white-space:nowrap}
#gzw .fact-toggle:before{content:'＋ ';font-weight:700}
#gzw .fact-details[open] .fact-toggle:before{content:'− '}
#gzw .fact-detail-body{padding:4px 10px 14px 0}
#gzw .fact-detail-body .fact-source-label{display:flex;flex-direction:column;align-items:stretch;margin:0 0 10px;font-size:12px}
#gzw .fact-detail-body p{margin:7px 0;overflow-wrap:anywhere;white-space:pre-wrap}
#gzw .fact-detail-body select{font-size:13px;padding:8px 10px}
#gzw .fact-sources-heading{font-size:13px;margin:8px 0}
#gzw .fact-source-inventory{list-style:none;padding:0;margin:0 0 15px}
#gzw .fact-source-inventory li{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--gw-line);font-size:13px}
#gzw .fact-source-inventory li>span{flex:1;min-width:150px;overflow-wrap:anywhere}
#gzw .fact-source-inventory .gw-btn{min-height:34px;padding:6px 10px;font-size:12px}
#gzw .fact-source-inventory a{font-size:12px}
#gzw .fact-review-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 5px}
#gzw .fact-review-tools>span{margin-right:auto}
#gzw .fact-review-tools .gw-btn{padding:5px 9px;min-height:34px;font-size:12px}
#gzw .fact-review-panel{scroll-margin-top:240px}
#gzw .editor-reviewbar{
 position:sticky;
 top:88px;
 z-index:19;
 display:grid;
 grid-template-columns:max-content minmax(0,1fr);
 align-items:center;
 gap:4px 8px;
 padding:5px 8px;
 background:color-mix(in srgb,var(--gw-panel) 92%,#a986e4);
 border:1px solid var(--gw-line);
 border-radius:14px;
}
#gzw .editor-reviewbar-title{display:grid;gap:2px;line-height:1.1;padding-inline:2px}
#gzw .editor-reviewbar h3{font-size:12px;line-height:1.15;margin:0}
#gzw .editor-reviewbar-title .gw-small{font-size:11px;line-height:1.15}
#gzw .editor-reviewbar-strip{display:flex;align-items:center;gap:3px;min-width:0}
#gzw .editor-reviewbar-rail{flex:1;display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:2px;overscroll-behavior-inline:contain}
#gzw .editor-reviewbar-actions,#gzw .editor-shortcuts,#gzw .editor-review-navigation{display:flex;align-items:center;gap:4px;flex:none}
#gzw .editor-review-navigation{margin-inline-start:auto}
#gzw #main > .editor-reviewbar .gw-btn{
 flex:none;
 min-height:28px;
 font-size:11.5px;
 font-weight:650;
 line-height:1.15;
 padding:4px 6px;
 white-space:nowrap;
 border:1px solid transparent;
 border-radius:8px;
 box-shadow:none;
}
#gzw #main > .editor-reviewbar .gw-btn[data-review-tone]{
 color:var(--gw-ink);
 background:color-mix(in srgb,var(--gw-panel) 72%,var(--review-tone));
}
#gzw #main > .editor-reviewbar .gw-btn[data-review-tone]:hover{border-color:var(--review-tone)}
#gzw .editor-reviewbar [data-review-tone="review"]{--review-tone:#b996f2}
#gzw .editor-reviewbar [data-review-tone="source"]{--review-tone:#9dc7f5}
#gzw .editor-reviewbar [data-review-tone="image"]{--review-tone:#f4bd9e}
#gzw .editor-reviewbar [data-review-tone="publish"]{--review-tone:#98d7a9}
#gzw .editor-reviewbar [data-review-tone="navigate"]{--review-tone:#b2aec4}
#gzw #main > .editor-reviewbar [data-review-scroll]{font-size:19px;min-width:25px;padding-inline:4px}
#gzw .editor-reviewbar [data-review-scroll][hidden]{display:none}
#gzw #main > .editor-reviewbar .gw-btn:focus-visible{outline-offset:-3px}
@media(max-width:1000px){#gzw .fact-review-panel{scroll-margin-top:100px}}
@media(max-width:600px){#gzw .fact-details>summary{flex-wrap:wrap;gap:4px 10px}#gzw .fact-claim{flex-basis:100%}#gzw .fact-check-target{min-height:44px}#gzw .fact-source-inventory .gw-btn{min-height:44px}#gzw .fact-review-tools .gw-btn{min-height:44px}}

/* The review stays available in focus mode without rebuilding Gutenberg. */
#gzw [data-review-writing]{display:none}
#gzw.editor-focus.editor-focus-review .editor-grid>.gw-stack>.fact-review-panel{display:block}
#gzw.editor-focus.editor-focus-review [data-review-writing]{display:inline-flex}
#gzw.editor-focus #article-form{height:calc(100dvh - var(--editor-reviewbar-height,98px) - 138px);min-height:340px;scroll-margin-top:calc(80px + var(--editor-reviewbar-height,98px))}
#gzw.editor-focus .fact-review-panel{scroll-margin-top:calc(84px + var(--editor-reviewbar-height,98px))}
@media(min-width:1001px){#gzw .editor-grid>aside{top:calc(120px + var(--editor-reviewbar-height,98px))}#gzw.editor-focus .editor-grid>aside{top:calc(92px + var(--editor-reviewbar-height,98px));max-height:calc(100dvh - var(--editor-reviewbar-height,98px) - 112px)}}

/* The editor scrolls in its own row below the review controls. */
html:has(#gzw #main > .editor-reviewbar),body:has(#gzw #main > .editor-reviewbar){overflow:hidden}
#gzw:has(#main > .editor-reviewbar){min-height:0;display:flow-root}
#gzw:has(#main > .editor-reviewbar) .gw-footer{display:none}
#gzw #main:has(> .editor-reviewbar){height:calc(100dvh - var(--editor-content-top,88px));min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;padding-block:10px 0}
#gzw #main > .editor-reviewbar{position:static;margin:0 0 8px;z-index:auto;box-shadow:none}
#gzw .editor-scroll-area{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scroll-padding-block:10px;padding-block-end:18px}
#gzw .editor-scroll-area > .gw-page{max-width:1540px;margin-inline:auto}
#gzw .editor-scroll-area .fact-review-panel,#gzw.editor-focus .editor-scroll-area #article-form{scroll-margin-top:8px}
#gzw .editor-scroll-area .editor-grid > aside{top:10px}
#gzw #main.editor-pinned:has(> .editor-reviewbar){position:fixed;inset:var(--editor-content-top) var(--editor-content-right) 0 var(--editor-content-left);height:auto;max-height:none;padding:8px clamp(8px,1.5vw,24px) 0;z-index:10}
#gzw.canvas-ui.editor-focus #main.editor-pinned:has(> .editor-reviewbar){inset:0}
#gzw #main.editor-pinned .editor-grid{grid-template-columns:minmax(0,1fr);gap:16px}
#gzw #main.editor-pinned .editor-grid > aside{position:static}
#gzw #main.editor-pinned .gw-editor-inspector,#gzw #main.editor-pinned .gw-inspector-body{max-height:none}
#gzw #main.editor-pinned .editor-scroll-area > .gw-page{max-width:1600px}
#gzw #main.editor-pinned #article-form{height:auto;min-height:0}
#gzw #main.editor-pinned .gutenberg-frame{height:max(340px,calc(100dvh - var(--editor-content-top,88px) - var(--editor-reviewbar-height,100px) - 100px))!important;min-height:340px}
#gzw #main.editor-pinned .editor-focus-bar{position:static}
#gzw #main.editor-pinned .editor-reference .toolbar-space{margin-block:10px}
#gzw #main.editor-pinned .editor-scroll-area .gw-pagehead{margin-bottom:10px}
#gzw.editor-focus:not(.editor-focus-panel,.editor-focus-review) #main:has(> .editor-reviewbar) {
 grid-template-rows:minmax(0,1fr);
}
#gzw.editor-focus:not(.editor-focus-panel,.editor-focus-review) #main > .editor-reviewbar,
#gzw.editor-focus:not(.editor-focus-panel,.editor-focus-review) #main #article-visibility,
#gzw.editor-focus:not(.editor-focus-panel,.editor-focus-review) #main .editor-reference {
 display:none;
}
#gzw.canvas-ui.editor-focus:not(.editor-reading) #main.editor-pinned #article-form {
 height:calc(100dvh - var(--editor-reviewbar-height, 0px) - 42px);
}
#gzw.canvas-ui.editor-focus:not(.editor-reading) #main.editor-pinned .gutenberg-frame {
 flex:1 1 0;
 height:0!important;
 min-height:min(240px,50dvh)!important;
}
#gzw.editor-focus:not(.editor-reading) #article-form {
 width:100%;
 max-width:1120px;
 margin-inline:auto;
}
#gzw.editor-focus #article-form > .title-workbench,
#gzw.editor-focus #article-form > .visual-toolbar:has(~ .gutenberg-frame) {display:none}
@media(max-height:640px){#gzw #main.editor-pinned > .editor-reviewbar{max-height:34dvh;overflow:auto}}
@media(max-width:600px){
 #gzw #main > .editor-reviewbar{grid-template-columns:minmax(0,1fr)}
 #gzw .editor-reviewbar-title{display:flex;align-items:center;flex-wrap:wrap;gap:3px 8px;padding:2px 4px}
}
@media(max-width:600px),(pointer:coarse){#gzw #main > .editor-reviewbar .gw-btn{min-height:44px}#gzw #main > .editor-reviewbar [data-review-scroll]{min-width:34px}}
#gzw .visibility-checks{display:grid;gap:0;list-style:none;padding:0;margin:12px 0}
#gzw .visibility-checks li{display:flex;align-items:baseline;justify-content:space-between;gap:6px 14px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--gw-line);overflow-wrap:anywhere}
#gzw .visibility-checks li small{flex:1 0 100%;color:var(--gw-muted)}
#gzw .visibility-overview{margin-bottom:16px}
#gzw [data-article-schema] [hidden]{display:none}
#gzw:not(.editor-focus) #main:has(> .editor-reviewbar) .gutenberg-frame{
 height:clamp(270px,calc(100dvh - var(--editor-content-top,88px) - var(--editor-reviewbar-height,88px) - 40px),760px)!important;
}

#gzw .schema-ai-proposal{margin-top:12px;padding-top:12px;border-top:1px solid var(--gw-line)}
#gzw .schema-ai-proposal dl{margin:8px 0;overflow-wrap:anywhere}
#gzw .schema-ai-proposal dt{font-weight:650}
#gzw .schema-ai-proposal dd{margin:2px 0 8px;color:var(--gw-muted)}
#gzw .visibility-preview{max-width:360px;margin:12px 0 16px;border:1px solid var(--gw-line);border-radius:16px;overflow:hidden;background:var(--gw-panel)}
#gzw .visibility-preview img{display:block;width:100%;aspect-ratio:16 / 9;object-fit:cover}
#gzw .visibility-preview figcaption{padding:10px 13px;display:grid;gap:5px}

#gzw [data-schema-mode] { color: var(--gw-accent); }
#gzw [data-schema-ai-result] h4 { margin: 12px 0 8px; }
#gzw [data-schema-ai-result] dd small { display: block; margin-top: 3px; }
