.ew-launch{display:flex;gap:8px;padding:10px;background:#edf3f7}.ew-launch button{flex:1;padding:10px;border:1px solid #8fa9bd;border-radius:8px;background:#fff;color:#17324b;font-weight:700}
.ew-dialog{position:fixed;inset:auto;margin:0;padding:0;min-width:0;max-width:none;max-height:none;border:1px solid #a7b6c2;border-radius:10px;color:#183149;background:#faf8f1;box-shadow:0 8px 28px #10203038;z-index:var(--ys-layer-panel,400);overflow:visible;font:14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif}
.ew-dialog:not([open]){display:none!important}.ew-dialog[open]{display:flex;flex-direction:column}.ew-dialog *{box-sizing:border-box}.ew-dialog [hidden]{display:none!important}
.ew-head{display:flex;flex:none;align-items:center;gap:8px;padding:8px 12px;background:#17324b;color:#fff;border-radius:9px 9px 0 0;cursor:grab;touch-action:none;user-select:none}.ew-head h2{margin:0;flex:1;min-width:0;font-size:17px}.ew-head button{flex:none}.ew-adjusting .ew-head{cursor:grabbing}.ew-head:focus-visible,.ew-resize:focus-visible{outline:2px solid #b88736;outline-offset:2px}
.ew-dialog button,.ew-dialog select,.ew-dialog textarea{font:inherit}.ew-dialog button{cursor:pointer;min-height:36px;border:1px solid #9baeba;border-radius:6px;padding:6px 10px;color:#17324b;background:#fff}.ew-dialog button:disabled{cursor:default;opacity:.5}
.ew-notice{flex:none;padding:6px 12px;background:#fff2cf;font-size:12px}.ew-tabs{display:flex;flex:none;gap:6px;padding:8px 12px 0}.ew-tabs button{flex:1}.ew-tabs [aria-selected=true]{background:#17324b;color:#fff}
.ew-controls{display:flex;flex:none;gap:8px;align-items:end;flex-wrap:wrap;padding:8px 12px}.ew-controls label{display:grid;gap:3px;flex:1;min-width:140px}.ew-controls select{max-width:100%;min-height:36px}.ew-controls>span{font-size:12px}.ew-notes{flex:none;padding:0 12px}.ew-notes summary{padding:4px 0;cursor:pointer}.ew-task{display:grid;gap:4px;padding:4px 0 8px}.ew-task textarea{width:100%;min-height:48px;max-height:100px;resize:vertical;padding:6px}
.ew-status{flex:none;padding:6px 12px;white-space:pre-wrap;font-weight:600;font-size:13px;max-height:76px;overflow:auto}.ew-content{flex:1;min-height:0;padding:8px 12px;overflow:auto;overflow-wrap:anywhere;overscroll-behavior:contain}.ew-content>p{margin:0 0 8px}.ew-card{background:#fff;border:1px solid #cbd4d9;border-radius:7px;padding:10px;margin-bottom:8px}.ew-card h3{margin:4px 0;font-size:16px}.ew-card h4{margin:8px 0 4px}.ew-card p{margin:6px 0}.ew-meta{font-size:12px;color:#4c6678}.ew-excerpt,.ew-diff{white-space:pre-wrap;padding:8px;background:#f0f4f7;border-left:3px solid #9a793e;line-height:1.55}.ew-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.ew-draft,.ew-final{width:100%;min-height:100px;max-height:240px;resize:vertical;padding:8px;line-height:1.5}.ew-primary{background:#17324b!important;color:#fff!important}.ew-coverage{white-space:pre-wrap;line-height:1.5}
.ew-footer{flex:none;padding:6px 12px;border-top:1px solid #cbd4d9;background:#f0f4f7;border-radius:0 0 9px 9px;max-height:32%;overflow:auto}.ew-footer summary{cursor:pointer;min-height:28px}.ew-footer-actions,.ew-legacy{display:flex;gap:6px;flex-wrap:wrap}.ew-legacy{margin-top:6px}.ew-footer-actions>details{width:100%}
.ew-resize{position:absolute;touch-action:none;z-index:2}.ew-resize-n{top:-5px;left:12px;right:12px;height:10px;cursor:ns-resize}.ew-resize-s{bottom:-5px;left:12px;right:12px;height:10px;cursor:ns-resize}.ew-resize-e{right:-5px;top:12px;bottom:12px;width:10px;cursor:ew-resize}.ew-resize-w{left:-5px;top:12px;bottom:12px;width:10px;cursor:ew-resize}.ew-resize-se,.ew-resize-sw{bottom:-6px;width:16px;height:16px}.ew-resize-se{right:-6px;cursor:nwse-resize}.ew-resize-sw{left:-6px;cursor:nesw-resize}.ew-resize-se:after{content:'';position:absolute;right:6px;bottom:6px;width:7px;height:7px;border-right:2px solid #8fa9bd;border-bottom:2px solid #8fa9bd}
@media(max-width:700px){.ew-head h2{font-size:16px}.ew-dialog button{min-height:42px}.ew-notice{padding:4px 10px}.ew-head,.ew-controls,.ew-content{padding:6px 10px}.ew-tabs{padding:6px 10px 0}.ew-controls label{min-width:130px}.ew-task textarea{min-height:44px}.ew-status{padding:4px 10px;max-height:58px}.ew-notes{padding:0 10px}.ew-footer{padding:4px 10px}.ew-actions button{flex:1 1 110px}}

/* A short viewport scrolls the panel body while the move/Hide header stays reachable. */
.ew-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;border-radius:0 0 9px 9px;overscroll-behavior:contain}.ew-content{flex:1 0 100px;min-height:100px}.ew-footer{position:sticky;bottom:0;max-height:none}.ew-footer-actions{max-height:170px;overflow:auto}

::highlight(editorial-review-passage){background:#ffeb3b;color:#18232d}
.ew-card[data-finding]{cursor:pointer}.ew-card[data-finding]:focus-visible{outline:2px solid #9a793e;outline-offset:2px}

.sm-launch{padding:4px 0;background:transparent}.sm-launch button{min-height:40px;text-align:left}.sm-dialog .sm-finding{padding:0}.sm-finding>summary{padding:10px;font-weight:700;cursor:pointer;list-style-position:inside}.sm-finding>summary .ew-meta{display:block;margin-top:3px;font-weight:400}.sm-finding>p,.sm-finding>.ew-actions{margin:8px 10px}.sm-finding .sm-comparison{padding:0 10px}.sm-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sm-comparison section{min-width:0}.sm-comparison .ew-excerpt{overflow-wrap:anywhere}.sm-saved{margin:8px 0}.sm-saved>summary{padding:6px 0;cursor:pointer}.sm-reviewed{padding:8px;border-bottom:1px solid #cbd4d9}.sm-count{font-size:13px}.sm-dialog .ew-content{container-type:inline-size}.sm-dialog .ew-actions button:last-child{font-size:12px;background:transparent}.sm-dialog .ew-controls .ew-primary{width:100%}@container(max-width:420px){.sm-comparison{grid-template-columns:1fr}}

body:has(.sm-dialog[open]) #toast{pointer-events:none}
