/* GlobiqNews KB V4: strictly scoped to body.kbv4, leaving global header/footer untouched. */
body.kbv4{background:#fff;color:#20263b}
body.kbv4 .kbv4-main,body.kbv4 .kbv4-main *,body.kbv4 .kbv4-dialog,body.kbv4 .kbv4-dialog *{box-sizing:border-box}
body.kbv4 .kbv4-intro{text-align:center;margin:17px auto 15px;padding:0 10px}
body.kbv4 .kbv4-intro h1{font-size:clamp(22px,2.6vw,30px);line-height:1.24;letter-spacing:-.35px;font-weight:750;margin:0 0 4px;color:#17203b}
body.kbv4 .kbv4-intro p{font-size:clamp(12px,1.5vw,15px);line-height:1.35;color:#63728a;margin:0}
body.kbv4 .kbv4-main{margin:0 auto;max-width:700px;width:100%;padding:0 11px;min-height:max(430px,calc(100svh - 290px));}
body.kbv4 .kbv4-card{width:100%;max-width:660px;border:0;background:white;box-shadow:none;margin:0 auto;padding:0 5px 12px;display:flex;flex-direction:column;gap:9px;align-items:stretch}
body.kbv4 .kbv4-upload{min-height:150px;width:100%;position:relative;border:2px dashed #9c9cdd;border-radius:4px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center;padding:14px;background:#fff;cursor:pointer;color:#667084;outline-offset:3px}
body.kbv4 .kbv4-upload:focus-visible,body.kbv4 .kbv4-upload.dragging{border-color:#008b86;background:#f3fffe}
body.kbv4 .kbv4-upload-symbol{font-size:26px;line-height:1;color:#7d86c8}
body.kbv4 .kbv4-upload strong{font-size:15px;font-weight:500;line-height:1.3;color:#526077}
body.kbv4 .kbv4-upload p{font-size:11px;color:#7f8ca2;margin:0}
body.kbv4 button{font-family:inherit;cursor:pointer}
body.kbv4 button:disabled{cursor:not-allowed;opacity:.48}
body.kbv4 .kbv4-select{background:#00867d;color:#fff;border:0;font-weight:700;font-size:13px;min-height:33px;padding:6px 16px;border-radius:3px}
body.kbv4 .kbv4-selected{width:100%;border:1px solid #e1e5ef;border-radius:6px;padding:8px;margin:0 auto}
body.kbv4 .kbv4-selected[hidden],body.kbv4 .kbv4-results[hidden],body.kbv4 .kbv4-progress[hidden]{display:none!important}
body.kbv4 .kbv4-selection-head{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:12px;color:#4d5873;font-weight:650}
body.kbv4 .kbv4-smallactions{display:flex;gap:5px}
body.kbv4 .kbv4-smallactions button,body.kbv4 .kbv4-edit-row button,body.kbv4 .kbv4-more button,body.kbv4 .kbv4-result-item button{border:1px solid #dce3ef;border-radius:4px;background:#fff;color:#3d5386;font-weight:650;padding:5px 8px;font-size:11px;line-height:1.3;white-space:nowrap}
body.kbv4 .kbv4-thumbs{display:flex;gap:7px;overflow-x:auto;overflow-y:hidden;padding:7px 1px;scrollbar-width:thin;max-width:100%}
body.kbv4 .kbv4-thumb{flex:0 0 70px;border:1px solid #e0e4ee;border-radius:5px;padding:3px;background:#fff;position:relative;text-align:center;min-height:78px}
body.kbv4 .kbv4-thumb[aria-pressed="true"]{border:2px solid #4b59ac;background:#f3f5ff}
body.kbv4 .kbv4-thumb img{width:60px;height:52px;object-fit:contain;display:block;margin:auto}
body.kbv4 .kbv4-thumb .kbv4-thumbname{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:61px;color:#47536e}
body.kbv4 .kbv4-edit-row{display:flex;align-items:center;justify-content:center;gap:7px;padding-top:6px;border-top:1px solid #eef0f5}
body.kbv4 .kbv4-truncate{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:225px;flex:1;color:#526078}
body.kbv4 .kbv4-controls{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:center;gap:7px;padding:5px 0 0}
body.kbv4 .kbv4-controls label{display:flex;flex-direction:column;gap:3px;font-weight:650;color:#3e4b65;font-size:11px;margin:0}
body.kbv4 .kbv4-controls input,body.kbv4 .kbv4-controls select{border:1px solid #cfd6e5;background:#fff;color:#27344c;border-radius:4px;height:37px;min-height:37px;font-size:13px;padding:5px 6px;margin:0}
body.kbv4 .kbv4-size input{width:93px}
body.kbv4 .kbv4-unit select{width:66px}
body.kbv4 .kbv4-format select{width:102px}
body.kbv4 .kbv4-primary{background:#4f58ad!important;border:1px solid #4f58ad!important;color:#fff!important;border-radius:4px;padding:8px 14px;font-weight:700;font-size:13px;min-height:37px}
body.kbv4 .kbv4-more{text-align:center;margin-top:0}
body.kbv4 .kbv4-more button{background:transparent;border:0;color:#5268a0;text-decoration:underline;text-underline-offset:3px;font-size:11px}
body.kbv4 .kbv4-message{font-size:11px;line-height:1.35;text-align:center;margin:0;color:#047467;min-height:0;overflow-wrap:anywhere}
body.kbv4 .kbv4-message.error{color:#a51c42}
body.kbv4 .kbv4-message:empty{display:none}
body.kbv4 .kbv4-progress{height:6px;background:#e8edfa;border-radius:6px;overflow:hidden}
body.kbv4 .kbv4-progress>div{height:100%;width:0;background:#4f58ad;transition:width .12s}
body.kbv4 .kbv4-results{border-top:1px solid #e5e9f2;padding-top:7px}
body.kbv4 .kbv4-result-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;color:#29344e;font-size:12px}
body.kbv4 .kbv4-result-head button{border:0;border-radius:4px;color:#fff;background:#4f58ad;min-height:29px;padding:5px 10px;font-size:11px;font-weight:700}
body.kbv4 .kbv4-result-scroll{max-height:212px;overflow-y:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:4px}
body.kbv4 .kbv4-result-item{display:flex;align-items:center;gap:9px;background:#fbfcff;border:1px solid #e3e7f0;border-radius:5px;padding:6px;min-width:0;font-size:11px}
body.kbv4 .kbv4-result-item img{width:41px;height:41px;object-fit:contain;flex:none}
body.kbv4 .kbv4-result-copy{flex:1;min-width:0;color:#435172}
body.kbv4 .kbv4-result-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:11px}
body.kbv4 .kbv4-result-copy small{display:block;overflow-wrap:anywhere;font-size:10px}
body.kbv4 .kbv4-result-copy small.bad{color:#a51c42}
body.kbv4 .kbv4-breathing-space{min-height:clamp(100px,16vh,220px)}
body.kbv4 .kbv4-dialog{border:0;border-top:5px solid #545bb1;border-radius:6px;box-shadow:0 15px 60px #0002;background:#fff;color:#1e283c;width:min(96vw,720px);max-height:91dvh;overflow:auto;padding:24px 20px 22px;text-align:center}
body.kbv4 .kbv4-dialog::backdrop{background:rgba(18,26,46,.6)}
body.kbv4 .kbv4-dialog h2{font-size:20px;font-weight:650;margin:5px 0 12px}
body.kbv4 .kbv4-close{position:absolute;right:10px;top:7px;background:#d71558;color:#fff;border:0;border-radius:3px;width:33px;height:33px;font-size:25px;line-height:1}
body.kbv4 .kbv4-unit-tabs{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin:4px 0 9px}
body.kbv4 .kbv4-unit-tabs button{border:0;border-radius:30px;padding:7px 12px;font-size:13px;background:#ebebfb;color:#4f4b79}
body.kbv4 .kbv4-unit-tabs .active{background:#515bab;color:#fff}
body.kbv4 .kbv4-modal-image{display:block;max-width:100%;max-height:180px;object-fit:contain;margin:10px auto 13px;border:1px solid #d1d5df;border-radius:5px}
body.kbv4 .kbv4-ratio{display:flex;justify-content:center;align-items:center;gap:6px;font-size:14px;margin:12px auto}
body.kbv4 .kbv4-modal-fields{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:9px auto 15px}
body.kbv4 .kbv4-modal-fields label{display:flex;align-items:center;gap:5px;font-size:13px}
body.kbv4 .kbv4-modal-fields input,body.kbv4 .kbv4-field input{width:82px;border:1px solid #cad2e1;border-radius:3px;min-height:33px;padding:4px 6px;font-size:13px}
body.kbv4 .kbv4-modal-buttons{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:12px}
body.kbv4 .kbv4-modal-buttons button:not(.kbv4-primary){background:#f3f5fa;border:1px solid #dae0ec;border-radius:4px;padding:8px 13px;color:#303951}
body.kbv4 .kbv4-modal-message{font-size:12px;color:#a51c42;min-height:1em}
body.kbv4 .kbv4-help{font-size:12px;line-height:1.45;color:#657086}
body.kbv4 .kbv4-crop-stage{display:flex;justify-content:center;align-items:center;margin:12px auto;max-width:100%}
body.kbv4 .kbv4-crop-frame{position:relative;display:inline-block;line-height:0;max-width:100%;touch-action:none;user-select:none;cursor:crosshair}
body.kbv4 .kbv4-crop-frame img{display:block;max-width:100%;max-height:45dvh;width:auto;height:auto;border-radius:3px;pointer-events:none}
body.kbv4 .kbv4-crop-mask{position:absolute;border:2px solid #0b91d0;background:#0b91d033;pointer-events:none;left:0;top:0;width:100%;height:100%}
body.kbv4 .kbv4-field{display:flex;flex-direction:column;gap:6px;font-size:13px;align-items:center;text-align:center;margin:14px auto}
body.kbv4 .kbv4-field input[type=range]{width:min(350px,90%)}
@media(max-width:600px){body.kbv4 .kbv4-intro{margin:11px auto 12px}body.kbv4 .kbv4-main{padding:0 7px;min-height:max(350px,calc(100svh - 200px))}body.kbv4 .kbv4-card{padding:0 1px}body.kbv4 .kbv4-upload{min-height:135px}body.kbv4 .kbv4-controls{gap:5px}body.kbv4 .kbv4-size input{width:74px}body.kbv4 .kbv4-unit select{width:61px}body.kbv4 .kbv4-format select{width:89px}body.kbv4 .kbv4-primary{padding:7px 9px;font-size:12px}body.kbv4 .kbv4-dialog{padding:18px 12px}body.kbv4 .kbv4-dialog h2{font-size:18px}body.kbv4 .kbv4-modal-fields{gap:6px}body.kbv4 .kbv4-modal-fields label{font-size:11px}body.kbv4 .kbv4-modal-fields input{width:60px}body.kbv4 .kbv4-breathing-space{min-height:95px}}
@media(max-width:365px){body.kbv4 .kbv4-controls .kbv4-primary{flex-basis:100%;max-width:170px}body.kbv4 .kbv4-selection-head{flex-wrap:wrap}body.kbv4 .kbv4-edit-row{flex-wrap:wrap}}

body.kbv4 .kbv4-thumb-wrap{position:relative;flex:0 0 70px;min-width:70px}
body.kbv4 .kbv4-thumb-remove{position:absolute;right:-4px;top:-5px;z-index:2;width:19px;height:19px;border:1px solid #d4d9e5;border-radius:100%;background:#fff;color:#a32146;font-size:15px;line-height:14px;padding:0;box-shadow:0 1px 3px #0002}

/* V5 refinements: scoped entirely under the KB Reducer body; no site chrome edits */
body.kbv4 .kbv4-intro h1{color:#141d35;font-weight:800}
body.kbv4 .kbv4-intro p{color:#354258;font-weight:550}
body.kbv4 .kbv4-upload{border:2.5px dashed #5967a8;background:#fcfdff;min-height:185px;padding:14px 12px;cursor:default;color:#243553;box-shadow:inset 0 0 0 1px #c7cee9}
body.kbv4 .kbv4-upload:focus-within,body.kbv4 .kbv4-upload.dragging{border-color:#0a706b;background:#f5fffd}
body.kbv4 .kbv4-upload strong{font-weight:750;color:#243653}
body.kbv4 .kbv4-upload p{color:#42546c;font-weight:550}
body.kbv4 .kbv5-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:140px}
body.kbv4 .kbv5-empty[hidden]{display:none!important}
body.kbv4 .kbv4-selected{border:0;background:transparent;padding:0;width:100%}
body.kbv4 .kbv4-selected:not([hidden]){display:block}
body.kbv4 .kbv4-selection-head{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px;color:#263757}
body.kbv4 .kbv4-selection-head button{background:white;border:1px solid #b9c7d9;color:#8c2848;padding:4px 8px;border-radius:5px;font-weight:700;font-size:11px}
body.kbv4 .kbv4-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));overflow-y:auto;overflow-x:hidden;max-height:345px;gap:9px;padding:2px;align-content:start;scrollbar-width:thin}
body.kbv4 .kbv4-thumb-wrap{position:relative;flex:none;min-width:0;display:flex;flex-direction:column;border:1.5px solid #9eadd3;background:#fff;border-radius:7px;padding:4px;box-shadow:0 2px 5px #202d4c12}
body.kbv4 .kbv4-thumb{flex:none;min-height:0;width:100%;border:0!important;border-radius:4px;background:#fff!important;padding:1px;box-shadow:none}
body.kbv4 .kbv4-thumb[aria-pressed="true"]{outline:2px solid #435bb8;outline-offset:0}
body.kbv4 .kbv4-thumb img{width:100%;height:108px;object-fit:contain;background:#f0f4fa}
body.kbv4 .kbv4-thumbname{display:none!important}
body.kbv4 .kbv5-file-info{border-radius:4px;background:#e9f0fe;color:#243758;padding:6px;margin-top:4px;text-align:left;font-size:11px;line-height:1.4;font-weight:650}
body.kbv4 .kbv5-file-info .kbv5-name{font-weight:780;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#223658;margin-bottom:3px}
body.kbv4 .kbv5-file-info .kbv5-meta{display:block;color:#283d5e}
body.kbv4 .kbv5-card-actions{display:flex;gap:4px;justify-content:center;padding:4px 0 2px}
body.kbv4 .kbv5-card-actions button{flex:1;border:1px solid #bfc9e2;border-radius:4px;background:#f6f8ff;color:#354f9b;font-size:11px;font-weight:700;padding:5px 3px}
body.kbv4 .kbv4-thumb-remove{right:2px;top:2px;width:23px;height:23px;background:#fff;border:1px solid #a8b6cb;color:#ad1d40;font-weight:900;z-index:2;box-shadow:0 0 2px #152741aa}
body.kbv4 .kbv5-add-tile{min-height:204px;border:2px dashed #6479b4;border-radius:7px;background:#f5f8ff;color:#2e4b9e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-weight:750;font-size:12px}
body.kbv4 .kbv5-add-tile span{font-size:28px;line-height:1;border-radius:50%;width:42px;height:42px;display:flex;align-items:center;justify-content:center;color:#fff;background:#4e60ad}
body.kbv4 .kbv4-edit-row{display:none!important}
body.kbv4 .kbv4-controls label{color:#233654;font-weight:750}
body.kbv4 .kbv4-controls input,body.kbv4 .kbv4-controls select{border:1.5px solid #8d9bb5;color:#152842;font-weight:620}
body.kbv4 .kbv4-more button{color:#334f92;font-weight:700}
body.kbv4 .kbv4-results{border-top:1.5px solid #aebcdb}
body.kbv4 .kbv4-result-head{color:#182d4b;font-weight:750;flex-wrap:wrap}
body.kbv4 .kbv5-download-buttons{display:flex;gap:6px;flex-wrap:wrap}
body.kbv4 .kbv5-download-buttons button{background:#455bab;color:#fff;border-radius:5px;min-height:34px;padding:6px 10px;font-size:11px;font-weight:750}
body.kbv4 #kbv5DownloadAll{background:#047e79}
body.kbv4 .kbv4-result-item{border-color:#aab8d1}
body.kbv4 .kbv4-result-copy{color:#213958}
body.kbv4 .kbv4-breathing-space{min-height:clamp(470px,70vh,900px)}
body.kbv4 .kbv4-main{min-height:0}
body.kbv4 .kbv5-modal-viewer{display:flex;align-items:center;justify-content:center;gap:10px;max-width:100%;margin:6px auto}
body.kbv4 .kbv5-modal-viewer .kbv4-modal-image{margin:3px 0;max-width:calc(100% - 90px)}
body.kbv4 .kbv5-nav{flex:0 0 36px;width:36px;height:42px;border:1px solid #a3afd1;border-radius:50%;background:#edf2ff;color:#263f8e;font-size:27px;line-height:1;font-weight:800}
body.kbv4 .kbv5-nav:disabled{opacity:.35}
body.kbv4 .kbv5-current{font-size:12px;color:#243653;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:92%;margin:6px auto 10px}
body.kbv4 .kbv5-crop-viewer .kbv4-crop-stage{flex:1;min-width:0}
body.kbv4 .kbv5-crop-viewer .kbv4-crop-frame{max-width:100%}
body.kbv4 .kbv5-crop-viewer .kbv4-crop-frame img{max-width:100%;max-height:40dvh}
body.kbv4 .kbv4-dialog h2{color:#172842;font-weight:800}
body.kbv4 .kbv4-modal-fields label,body.kbv4 .kbv4-help{color:#2c415f}
@media(max-width:600px){
body.kbv4 .kbv4-upload{min-height:155px;padding:10px 7px}
body.kbv4 .kbv4-thumbs{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:6px;max-height:285px}
body.kbv4 .kbv4-thumb img{height:82px}
body.kbv4 .kbv5-add-tile{min-height:178px}
body.kbv4 .kbv4-breathing-space{min-height:clamp(380px,67svh,720px)}
body.kbv4 .kbv5-nav{flex-basis:30px;width:30px;height:38px;font-size:22px}
body.kbv4 .kbv5-modal-viewer{gap:5px}
body.kbv4 .kbv5-modal-viewer .kbv4-modal-image{max-width:calc(100% - 72px)}
}

/* V5.1: file name pencil/inline editing, exclusively within KB Reducer */
body.kbv4 .kbv5-title-row{display:flex;align-items:center;gap:4px;min-width:0}
body.kbv4 .kbv5-title-row .kbv5-name{flex:1;min-width:0;margin:0}
body.kbv4 .kbv5-title-row .kbv51-pencil{flex:0 0 27px;width:27px;min-height:27px;border-radius:5px;border:1px solid #8095c7;background:#fff;color:#284884;display:flex;align-items:center;justify-content:center;font-size:15px;cursor:pointer;padding:1px}
body.kbv4 .kbv51-pencil:hover,body.kbv4 .kbv51-pencil:focus-visible{background:#e0ebff;border-color:#4058a3;outline-offset:2px}
body.kbv4 .kbv51-rename-editor{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:3px;padding:3px 0 6px;align-items:center}
body.kbv4 .kbv51-rename-editor input{min-width:0;width:100%;min-height:29px;background:#fff;color:#152c54;border:1.5px solid #647db3;border-radius:5px;font-size:12px;padding:3px 4px;box-sizing:border-box}
body.kbv4 .kbv51-rename-editor button{min-height:28px;background:#eef3fe;border:1px solid #819bd2;border-radius:5px;color:#223c72;font-weight:800;font-size:11px;padding:2px 5px;cursor:pointer}
body.kbv4 .kbv51-rename-error{font-size:10px;color:#ac1840;line-height:1.3;font-weight:700;padding-top:2px}
body.kbv4 .kbv51-result-filename{overflow-wrap:anywhere;line-height:1.2}

/* V6: precisely scoped visual contrast, one soft pastel workspace card, no global chrome edits. */
body.kbv4 .kbv4-main{max-width:714px;padding:0 13px}
body.kbv4 .kbv4-card{background:linear-gradient(150deg,#eff4ff 0%,#f5fbfa 56%,#f3f6ff 100%);border:1.5px solid #a5b7d6;border-radius:13px;box-shadow:0 8px 28px rgba(30,55,104,.10),0 2px 8px rgba(30,55,104,.05);padding:16px 16px 18px;gap:12px;max-width:672px}
body.kbv4 .kbv4-intro h1{color:#10233e;font-weight:850}
body.kbv4 .kbv4-intro p{color:#293e59;font-weight:660}
body.kbv4 .kbv4-upload{border:2.5px dashed #506bb0;background:#fbfdff;border-radius:9px;box-shadow:inset 0 0 0 1px #dce6f6;min-height:170px}
body.kbv4 .kbv4-upload strong{color:#183153;font-weight:800}
body.kbv4 .kbv4-upload p{color:#374d69;font-weight:640}
body.kbv4 .kbv4-selected{background:transparent}
body.kbv4 .kbv4-selection-head{color:#1c3555;font-weight:800}
body.kbv4 .kbv4-thumb-wrap{background:#fff;border:1.5px solid #a0b7d9;box-shadow:0 3px 10px rgba(26,47,87,.08)}
body.kbv4 .kbv5-file-info{background:#e7f0ff;border:1px solid #c4d6f6;color:#182e50;font-weight:700}
body.kbv4 .kbv5-file-info .kbv5-name,body.kbv4 .kbv5-file-info .kbv5-meta{color:#193354}
body.kbv4 .kbv5-add-tile{background:#eef5ff;border-color:#4864a1;color:#244a91}
body.kbv4 .kbv4-controls{padding:10px 7px 2px;background:#e8f3f5;border:1px solid #cadce5;border-radius:9px}
body.kbv4 .kbv4-controls label{color:#1a3653;font-weight:800}
body.kbv4 .kbv4-controls input,body.kbv4 .kbv4-controls select{background:#fff;border-color:#859fbc;color:#172d4c}
body.kbv4 .kbv4-more button{color:#244884;font-weight:800}
body.kbv4 .kbv4-message{color:#155d4c;font-size:12px;font-weight:680}
body.kbv4 .kbv4-message.error{color:#a11d37}
body.kbv4 .kbv6-editor-stage[hidden],body.kbv4 .kbv6-processing-stage[hidden],body.kbv4 .kbv6-results-stage[hidden]{display:none!important}
body.kbv4 .kbv6-editor-stage{display:flex;flex-direction:column;gap:10px}
body.kbv4 .kbv6-processing-stage{min-height:185px;background:#eef3ff;border:1.5px solid #c3d0ed;border-radius:10px;padding:27px 20px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:22px}
body.kbv4 .kbv6-process-header{text-align:center}
body.kbv4 .kbv6-process-header h2{margin:0 0 9px;font-size:21px;color:#172b4b;font-weight:850}
body.kbv4 .kbv6-process-header p{margin:0;color:#38547c;font-size:13px;font-weight:700}
body.kbv4 .kbv6-processing-stage .kbv4-progress{height:12px;display:block;width:min(100%,450px);background:#ccd8f0;border:1px solid #b2c3e5;border-radius:25px;overflow:hidden}
body.kbv4 .kbv6-processing-stage .kbv4-progress>div{background:linear-gradient(90deg,#227f97,#435ab4);border-radius:25px}
body.kbv4 .kbv6-results-stage{background:#f0f9f6;border:1.5px solid #b4d6cb;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:9px}
body.kbv4 .kbv6-results-intro{text-align:center}
body.kbv4 .kbv6-results-intro h2{margin:0;font-size:20px;color:#183d34;font-weight:850}
body.kbv4 .kbv6-results-intro p{margin:5px 0;color:#345e56;font-size:12px;font-weight:650}
body.kbv4 .kbv6-results-stage .kbv4-results{border-top:1px solid #bdd6cb;padding-top:9px}
body.kbv4 .kbv6-back{margin:auto;min-height:36px;border:1.5px solid #5875ab;background:#e9f0ff;border-radius:7px;color:#1b427d;font-size:12px;font-weight:800;padding:7px 14px}
body.kbv4 .kbv4-result-item{background:white}
body.kbv4 .kbv6-applied-mark{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;flex:none;border-radius:50%;background:#16803d;border:1px solid #126331;color:#fff;font-size:14px;font-weight:900;line-height:1;box-shadow:0 0 0 2px #dbf7e5}
body.kbv4 .kbv6-applied-details{display:block;font-size:10px;font-weight:850;color:#11703b;margin-top:4px}
body.kbv4 .kbv6-applied-toast{display:flex;gap:7px;align-items:center;justify-content:center;color:#13703b!important;background:#e6f9ed;border:1px solid #92d3a8;border-radius:7px;min-height:35px;padding:7px;font-weight:800}
body.kbv4 .kbv6-applied-toast:before{content:'✓';display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:50%;color:#fff;background:#16803d;font-size:16px;font-weight:900}
body.kbv4 .kbv4-modal-message{color:#334964;font-weight:680}
body.kbv4 .kbv4-modal-fields label{color:#213d5e;font-weight:750}
body.kbv4 .kbv4-dialog{background:#f7faff;border:1px solid #a4badb;border-top:5px solid #515cad}
body.kbv4 .kbv4-breathing-space{min-height:clamp(760px,118svh,1500px)}
@media(max-width:600px){body.kbv4 .kbv4-main{padding:0 9px}body.kbv4 .kbv4-card{padding:11px 10px 14px;border-radius:10px}body.kbv4 .kbv4-controls{padding:8px 5px 5px}body.kbv4 .kbv6-processing-stage{min-height:155px;padding:18px 12px}body.kbv4 .kbv6-results-stage{padding:10px}body.kbv4 .kbv4-breathing-space{min-height:clamp(650px,105svh,1200px)}}

/* V6.1: Rename only in the centered popup, scoped to KB Reducer. */
body.kbv4 .kbv61-rename-dialog{width:min(92vw,440px);padding:21px 20px 18px;text-align:center;background:#f7faff;color:#182c4c;border:1.5px solid #9cb4d5;border-top:5px solid #505caf;border-radius:10px;box-shadow:0 24px 70px rgba(21,40,84,.28)}
body.kbv4 .kbv61-rename-dialog::backdrop{background:rgba(25,37,58,.56)}
body.kbv4 .kbv61-rename-dialog h2{margin:5px auto 9px;font-size:21px;color:#142b4a;font-weight:850}
body.kbv4 .kbv61-rename-dialog .kbv61-rename-caption{font-size:12px;color:#365070;font-weight:660;line-height:1.5;margin:3px 0 10px}
body.kbv4 .kbv61-rename-dialog .kbv61-rename-preview{display:block;max-width:100%;width:auto;height:auto;max-height:135px;object-fit:contain;margin:8px auto;border:1px solid #c4d4e9;border-radius:6px;background:#fff}
body.kbv4 .kbv61-rename-dialog .kbv61-rename-original{color:#425772;font-size:11px;overflow-wrap:anywhere;margin:7px auto 12px}
body.kbv4 .kbv61-rename-dialog .kbv61-rename-label{display:block;text-align:left;color:#223a59;font-size:13px;font-weight:800;margin:0 0 5px}
body.kbv4 .kbv61-rename-dialog .kbv61-rename-row{display:flex;align-items:stretch;gap:0;min-width:0}
body.kbv4 .kbv61-rename-dialog .kbv61-rename-row input{flex:1;min-width:0;width:100%;border:1.5px solid #829bc1;border-radius:7px 0 0 7px;background:#fff;color:#142b4a;font-size:14px;padding:10px;min-height:41px}
body.kbv4 .kbv61-rename-dialog .kbv61-rename-extension{display:flex;align-items:center;justify-content:center;border:1.5px solid #829bc1;border-left:0;border-radius:0 7px 7px 0;min-width:58px;padding:7px 8px;color:#244b87;font-size:13px;font-weight:850;background:#e6efff}
body.kbv4 .kbv61-rename-dialog .kbv61-rename-error{min-height:21px;color:#ab193e;font-size:12px;font-weight:750;margin:5px 0 3px;text-align:left}
body.kbv4 .kbv61-result-name-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
body.kbv4 .kbv61-result-name-row .kbv51-result-filename{min-width:0;overflow-wrap:anywhere}
body.kbv4 .kbv61-result-pencil{flex:0 0 26px;width:26px;height:26px;min-height:26px;border:1px solid #8ca3ca;background:#f4f8ff;color:#244580;border-radius:5px;cursor:pointer;font-size:15px}
@media(max-width:600px){body.kbv4 .kbv61-rename-dialog{padding:18px 14px 14px;width:min(94vw,440px)}body.kbv4 .kbv61-rename-dialog h2{font-size:19px}}

/* Resizer-specific controls: override only workspace, never header or footer. */
body.gqr1 .gqr-main-controls {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end;max-width:100%;}
body.gqr1 .gqr-main-controls > label {min-width:0;display:flex;flex-direction:column;gap:5px;color:#183251;font-size:13px;font-weight:750;}
body.gqr1 .gqr-main-controls input[type="number"],body.gqr1 .gqr-main-controls select {width:100%;min-width:0;min-height:42px;padding:8px 9px;border:1px solid #9aacca;border-radius:7px;background:#fff;color:#132943;font-weight:650;}
body.gqr1 .gqr-main-controls label.gqr-lock {grid-column:1 / 4;display:flex;align-items:center;flex-direction:row;gap:9px;}
body.gqr1 .gqr-main-controls label.gqr-lock input {width:18px;height:18px;accent-color:#16815c;}
body.gqr1 .gqr-main-controls #kbv4Start {grid-column:4;min-height:43px;white-space:nowrap;}
body.gqr1 .gqr-guidance {max-width:720px;margin:24px auto 36px;padding:14px 16px;color:#4b5b72;font-size:13px;line-height:1.7;}
body.gqr1 .gqr-guidance h2{font-size:16px;color:#17334d;margin:0 0 5px;}
body.gqr1 .gqr-guidance p{margin:5px 0;}
@media(max-width:650px){body.gqr1 .gqr-main-controls{grid-template-columns:repeat(2,minmax(0,1fr));}body.gqr1 .gqr-main-controls label.gqr-lock{grid-column:1/3;}body.gqr1 .gqr-main-controls #kbv4Start{grid-column:1/3;} }
@media(max-width:350px){body.gqr1 .gqr-main-controls input[type="number"],body.gqr1 .gqr-main-controls select{font-size:13px;padding:6px;} }

/* V1.1: current-source workspace merge, preservers original header/footer and source advert section. */
body.gqr1 .gqr-resizer-page .container {max-width:1200px;}
body.gqr1 .gqr-resizer-page .tool-page-head{max-width:700px;margin:9px auto 15px;padding:0 8px;display:flex;justify-content:center;align-items:center;gap:10px;text-align:center;}
body.gqr1 .gqr-resizer-page .tool-page-head h1{font-size:clamp(23px,3vw,31px);line-height:1.25;color:#122849;font-weight:850;margin:0 0 5px;}
body.gqr1 .gqr-resizer-page .tool-page-head p{color:#314766;font-size:clamp(15px,1.6vw,17px);line-height:1.5;font-weight:600;margin:0;}
body.gqr1 .gqr-resizer-page .tool-page-head .tool-icon{display:none;}
body.gqr1 .gqr-resizer-page .gq-page-icon{display:none;}
body.gqr1 .gqr-resizer-page .gq-work-heading-icon{display:none;}
body.gqr1 .gqr-resizer-page .gqr1-workspace{max-width:714px;margin-left:auto;margin-right:auto;}
body.gqr1 .gqr-resizer-page .feature-notes{max-width:714px;margin:20px auto 12px;color:#2d405a;}
body.gqr1 .gqr-resizer-page .feature-notes h2{color:#173552;}
/* Large genuine space for future ads BELOW tools without creating extra ad requests. */
body.gqr1 .gqr-resizer-page .kbv4-breathing-space{min-height:clamp(820px,120vh,1450px);background:transparent;}
body.gqr1 .gqr-resizer-page .ad-area{margin:0 auto;min-height:260px;}
body.gqr1 .gqr-resizer-page .ad-placeholder{min-height:300px;}
@media(max-width:650px){
 body.gqr1 .gqr-resizer-page .tool-page-head{margin:8px auto 12px;}
 body.gqr1 .gqr-resizer-page .kbv4-breathing-space{min-height:clamp(620px,110svh,1060px);}
 body.gqr1 .gqr-resizer-page .ad-placeholder{min-height:260px;}
}

/* Image Resizer V1.3: optional target KB; title without icon; site chrome untouched */
body.gqr1 .gqr-resizer-page{padding-top:12px;}
body.gqr1 .gqr-resizer-page .tool-page-head{margin:2px auto 11px;padding:0 8px;}
body.gqr1 .gqr-resizer-page .tool-page-head h1{font-weight:850;color:#142845;}
body.gqr1 .gqr-resizer-page .tool-page-head p{font-weight:600;color:#344963;}
body.gqr1 .gqr-main-controls label.gqr-target-kb{grid-column:1/3;display:flex;flex-direction:column;gap:5px;}
body.gqr1 .gqr-main-controls .gqr-optional{display:inline;font-weight:500;font-size:11px;color:#506681;}
body.gqr1 .gqr-main-controls #gqrTargetKB{width:100%;min-height:42px;border:1px solid #869abf;border-radius:7px;background:#fff;color:#142b4b;font-weight:650;}
body.gqr1 .gqr-main-controls .gqr-kb-help{grid-column:3/5;margin:0;align-self:center;line-height:1.45;font-size:11.5px;color:#304b6b;font-weight:550;}
body.gqr1 .gqr-main-controls label.gqr-lock{grid-column:1/4;}
@media(max-width:650px){
 body.gqr1 .gqr-main-controls label.gqr-target-kb{grid-column:1/3;}
 body.gqr1 .gqr-main-controls .gqr-kb-help{grid-column:1/3;}
 body.gqr1 .gqr-resizer-page .tool-page-head{margin:2px auto 9px;}
}

/* V1.4 only Image Resizer workspace. Original site header/footer and ad elements untouched. */
body.gqr1 .gqr-resizer-page .gqr1-workspace {width:min(100%,740px);max-width:740px;}
body.gqr1 .gqr-resizer-page .kbv4-card {padding:13px 14px 15px;}
body.gqr1 .gqr-resizer-page .kbv4-upload {min-height:126px;padding:10px;}
body.gqr1 .gqr-resizer-page .kbv4-thumbs {max-height:248px;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:7px;}
body.gqr1 .gqr-resizer-page .kbv4-thumb img {height:83px;}
body.gqr1 .gqr-resizer-page .kbv5-add-tile {min-height:177px;}
body.gqr1 .gqr-resizer-page .kbv5-file-info {padding:4px 5px;font-size:10.5px;line-height:1.3;}
body.gqr1 .gqr-resizer-page .kbv5-card-actions button {padding:4px 3px;}
body.gqr1 .gqr-resizer-page .gqr-main-controls {grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 9px;padding:9px 9px 10px;align-items:end;}
body.gqr1 .gqr-resizer-page .gqr-main-controls > label {font-size:12px;gap:4px;}
body.gqr1 .gqr-resizer-page .gqr-main-controls input[type="number"],body.gqr1 .gqr-resizer-page .gqr-main-controls select {min-height:36px;height:36px;padding:5px 7px;font-size:12px;}
body.gqr1 .gqr-resizer-page .gqr-main-controls label.gqr-target-kb {grid-column:1/3;}
body.gqr1 .gqr-resizer-page .gqr-main-controls .gqr-kb-help {grid-column:3/5;font-size:11px;line-height:1.3;font-weight:600;}
body.gqr1 .gqr-resizer-page .gqr-main-controls label.gqr-kb-autofit {grid-column:1/4;display:flex;align-items:center;gap:7px;flex-direction:row;font-size:11.5px;line-height:1.3;font-weight:750;color:#17334d;}
body.gqr1 .gqr-resizer-page .gqr-main-controls .gqr-kb-autofit input {accent-color:#346e9f;width:16px;height:16px;flex:none;}
body.gqr1 .gqr-resizer-page .gqr-main-controls .gqr-kb-autofit small {font-size:10px;font-weight:550;color:#425e79;}
body.gqr1 .gqr-resizer-page .gqr-main-controls label.gqr-lock {grid-column:1/4;font-size:11.5px;}
body.gqr1 .gqr-resizer-page .gqr-main-controls #kbv4Start {grid-column:4;min-height:38px;font-size:12px;}
body.gqr1 .gqr-resizer-page .gqr-main-controls .gqr-kb-warning {grid-column:1/-1;border:1px solid #d9b879;background:#fff8e7;border-radius:6px;color:#6f4714;font-size:11px;line-height:1.35;font-weight:700;padding:6px 8px;margin:0;}
body.gqr1 .gqr-resizer-page .gqr-main-controls .gqr-kb-warning[hidden]{display:none!important;}
body.gqr1 .gqr-resizer-page .gqr1-workspace .kbv4-message {font-size:12px;}
@media(max-width:650px){
 body.gqr1 .gqr-resizer-page .gqr1-workspace{width:100%;}
 body.gqr1 .gqr-resizer-page .kbv4-card{padding:10px;}
 body.gqr1 .gqr-resizer-page .gqr-main-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px;}
 body.gqr1 .gqr-resizer-page .gqr-main-controls label.gqr-target-kb {grid-column:1/-1;}
 body.gqr1 .gqr-resizer-page .gqr-main-controls .gqr-kb-help{grid-column:1/-1;}
 body.gqr1 .gqr-resizer-page .gqr-main-controls label.gqr-kb-autofit{grid-column:1/-1;flex-wrap:wrap;}
 body.gqr1 .gqr-resizer-page .gqr-main-controls label.gqr-lock{grid-column:1/-1;}
 body.gqr1 .gqr-resizer-page .gqr-main-controls #kbv4Start{grid-column:1/-1;}
 body.gqr1 .gqr-resizer-page .kbv4-thumbs {grid-template-columns:repeat(auto-fill,minmax(128px,1fr));max-height:240px;}
}

/* V1.5 Image Resizer only: KB Popup and compact main controls. Header/footer unaffected. */
body.gqr1 .gqr-resizer-page .gqr-main-controls .gqr-kb-trigger-wrap{grid-column:1/4;display:flex;flex-direction:row;gap:9px;align-items:center;flex-wrap:wrap;min-width:0}
body.gqr1 .gqr-resizer-page .gqr-main-controls .gqr-lock{grid-column:1/4}
body.gqr1 .gqr-resizer-page .gqr-main-controls #kbv4Start{grid-column:4;grid-row:2/4;align-self:center}
body.gqr1 .gqr-resizer-page .gqr-kb-trigger{min-height:38px;border:1.5px solid #4c65ad;background:#e9efff;color:#192e61;font-weight:800;border-radius:8px;padding:7px 12px;cursor:pointer;white-space:nowrap}
body.gqr1 .gqr-resizer-page .gqr-kb-trigger:hover,body.gqr1 .gqr-resizer-page .gqr-kb-trigger:focus-visible{background:#d9e4ff;border-color:#304fa2}
body.gqr1 .gqr-resizer-page .gqr-kb-trigger.gqr-kb-is-active{background:#e5f5eb;border-color:#36855c;color:#16643b}
body.gqr1 .gqr-resizer-page .gqr-kb-summary{font-size:12px;font-weight:750;color:#244664;min-width:0;overflow-wrap:anywhere}
body.gqr1 .gqr-kb-dialog{border:0;border-top:5px solid #5263b6;border-radius:12px;box-shadow:0 24px 70px #13233b4d;padding:20px 22px 18px;color:#142943;background:#fff;width:min(92vw,490px);max-height:90vh;overflow:auto;box-sizing:border-box}
body.gqr1 .gqr-kb-dialog::backdrop{background:rgba(17,28,47,.60)}
body.gqr1 .gqr-kb-dialog h2{margin:0 40px 7px;text-align:center;font-size:23px;color:#122848}
body.gqr1 .gqr-kb-dialog .gqr-kb-intro{text-align:center;font-size:12px;line-height:1.5;color:#49627c;margin:0 0 16px}
body.gqr1 .gqr-kb-dialog .gqr-kb-close{position:absolute;right:14px;top:10px;font-size:25px;line-height:1;background:#d71757;color:#fff;border:0;border-radius:6px;width:36px;height:36px;cursor:pointer}
body.gqr1 .gqr-kb-dialog .gqr-kb-target{display:grid;gap:7px;font-weight:750;font-size:13px;color:#192e49;margin:0 0 13px}
body.gqr1 .gqr-kb-dialog .gqr-kb-target input{min-height:44px;border:1.3px solid #9eafc8;border-radius:7px;padding:8px 12px;color:#142b49;font-weight:700;font-size:16px;box-sizing:border-box;width:100%}
body.gqr1 .gqr-kb-dialog .gqr-kb-modes{border:1px solid #ced9eb;border-radius:9px;padding:11px 14px;margin:0 0 13px;background:#f4f8ff;display:grid;gap:10px}
body.gqr1 .gqr-kb-dialog .gqr-kb-modes legend{color:#203956;font-weight:850;font-size:13px;padding:0 5px}
body.gqr1 .gqr-kb-dialog .gqr-kb-modes label,body.gqr1 .gqr-kb-dialog .gqr-kb-autofit-modal{display:flex;gap:9px;align-items:center;font-size:13px;font-weight:700;color:#203652;cursor:pointer}
body.gqr1 .gqr-kb-dialog input[type="checkbox"],body.gqr1 .gqr-kb-dialog input[type="radio"]{accent-color:#4e60b7;width:17px;height:17px;flex:none}
body.gqr1 .gqr-kb-dialog .gqr-kb-autofit-modal{padding:5px 0}
body.gqr1 .gqr-kb-dialog .gqr-kb-info{margin:12px 0 8px;font-size:12px;line-height:1.5;color:#46607b;background:#eef7f5;border-radius:7px;padding:10px 12px}
body.gqr1 .gqr-kb-dialog .gqr-kb-warning-modal{background:#fff6df;border:1px solid #e4b96d;border-radius:7px;color:#744800;font-size:12px;font-weight:650;padding:8px;margin:8px 0}
body.gqr1 .gqr-kb-dialog .gqr-kb-warning-modal[hidden]{display:none!important}
body.gqr1 .gqr-kb-dialog .gqr-kb-buttons{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin-top:17px}
body.gqr1 .gqr-kb-dialog .gqr-kb-buttons button{border:1px solid #c4d0e4;border-radius:7px;padding:11px 13px;background:#f3f6fb;color:#243d63;font-weight:750;font-size:12px;cursor:pointer}
body.gqr1 .gqr-kb-dialog .gqr-kb-buttons .gqr-kb-apply{background:#505eb7;border-color:#505eb7;color:#fff}
body.gqr1 .gqr-kb-dialog .gqr-kb-buttons .gqr-kb-reset{border-color:#ca8389;color:#853039;background:#fff6f6}
@media(max-width:650px){body.gqr1 .gqr-resizer-page .gqr-main-controls .gqr-kb-trigger-wrap{grid-column:1/-1}body.gqr1 .gqr-resizer-page .gqr-main-controls .gqr-lock{grid-column:1/-1}body.gqr1 .gqr-resizer-page .gqr-main-controls #kbv4Start{grid-column:1/-1;grid-row:auto}body.gqr1 .gqr-kb-dialog{width:min(96vw,490px);padding:17px 13px}}

/* V1.6 — English exam-photo compression options; does not affect Header/Footer. */
body.gqr1 .gqr-kb-dialog{width:min(95vw,530px)}
body.gqr1 .gqr-kb-dialog .gqr-kb-select{display:grid;gap:6px;margin:0 0 13px;font-weight:800;font-size:13px;color:#192e49}
body.gqr1 .gqr-kb-dialog .gqr-kb-select select{width:100%;min-height:44px;max-width:100%;padding:8px;border:1.5px solid #a4b4d5;border-radius:7px;background:#fff;color:#172c4a;font-weight:650;font-size:12px}
body.gqr1 .gqr-kb-dialog .gqr-kb-quality-row{align-items:flex-start;line-height:1.4}
body.gqr1 .gqr-kb-dialog .gqr-kb-quality-row span{display:grid;gap:3px}
body.gqr1 .gqr-kb-dialog .gqr-kb-quality-row strong{font-size:13px;color:#1b3452}
body.gqr1 .gqr-kb-dialog .gqr-kb-quality-row small{font-size:11px;font-weight:550;color:#395979}
body.gqr1 .gqr-kb-dialog .gqr-kb-exam-preset{display:block;width:100%;margin-top:9px;border:1.5px solid #516eb3;border-radius:8px;background:#edf3ff;color:#193c77;font-size:12px;font-weight:800;padding:10px;cursor:pointer}
body.gqr1 .gqr-kb-dialog .gqr-kb-exam-preset:hover{background:#dfe9ff}
@media(max-width:380px){body.gqr1 .gqr-kb-dialog .gqr-kb-buttons button{padding:9px 8px;font-size:11px}}

/* Mobile: keep Apply/Reset/Cancel reachable while dialog content scrolls. */
@media(max-width:650px){body.gqr1 .gqr-kb-dialog .gqr-kb-buttons{position:sticky;bottom:-18px;background:#fff;z-index:3;border-top:1px solid #d8e2ef;padding:10px 3px 9px;margin-top:12px;box-shadow:0 -6px 12px #ffffffeb}}

/* V1.7: strictly scoped compact KB popup. All header/footer and other routes stay unchanged. */
body.gqr1 .gqr-kb-compact-v17 {width:min(94vw,610px);max-height:min(90dvh,590px);padding:12px 16px 14px;border-top:4px solid #4c5fb3;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;}
body.gqr1 .gqr-kb-compact-v17 h2 {font-size:21px;margin:0 37px 2px;line-height:1.28;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-intro {margin:0 18px 10px;line-height:1.35;font-size:11px;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-close {right:10px;top:8px;width:31px;height:31px;font-size:22px;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-compact-grid {display:grid;grid-template-columns:minmax(0,0.82fr) minmax(0,1.18fr);gap:10px;align-items:end;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-target,body.gqr1 .gqr-kb-compact-v17 .gqr-kb-select {display:grid;grid-template-rows:auto auto;gap:4px;margin:0;min-width:0;font-size:11.5px;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-target input,body.gqr1 .gqr-kb-compact-v17 .gqr-kb-select select {width:100%;min-width:0;height:38px;min-height:38px;box-sizing:border-box;padding:6px 8px;font-size:12px;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-modes {margin:10px 0 9px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;padding:8px 10px 9px;align-items:center;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-modes legend {font-size:11.5px;padding:0 5px;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-quality-row {font-size:11.5px;min-width:0;display:flex;align-items:center;gap:6px;margin:0;line-height:1.2;cursor:pointer;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-quality-row span {display:block;min-width:0;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-quality-row strong {font-size:11.5px;font-weight:800;white-space:nowrap;}
body.gqr1 .gqr-kb-compact-v17 input[type=radio],body.gqr1 .gqr-kb-compact-v17 input[type=checkbox] {width:15px;height:15px;flex:0 0 15px;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-compact-actions {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-autofit-modal {font-size:11.5px;line-height:1.3;padding:0;gap:6px;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-exam-preset {width:auto;min-height:34px;min-width:128px;margin:0;padding:6px 12px;font-size:11px;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-info {margin:9px 0 4px;padding:5px 8px;font-size:10.5px;line-height:1.3;background:#eef6f5;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-warning-modal {margin:6px 0 0;padding:5px 8px;font-size:10.5px;line-height:1.3;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-buttons {position:static;display:flex;gap:8px;flex-wrap:nowrap;justify-content:center;margin:11px 0 0;padding:0;border:0;box-shadow:none;background:transparent;}
body.gqr1 .gqr-kb-compact-v17 .gqr-kb-buttons button {min-width:0;min-height:36px;padding:7px 10px;font-size:11.5px;line-height:1.2;}
@media(max-width:410px){body.gqr1 .gqr-kb-compact-v17{width:min(97vw,400px);padding:10px 11px 12px;}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-compact-grid{grid-template-columns:minmax(0,0.86fr) minmax(0,1.14fr);gap:6px}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-target,body.gqr1 .gqr-kb-compact-v17 .gqr-kb-select{font-size:10.5px}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-select select{font-size:11px;padding:4px}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-modes{padding:7px 5px;gap:4px}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-quality-row{gap:4px}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-quality-row strong{font-size:10.5px}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-compact-actions{gap:4px}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-autofit-modal{font-size:10px}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-exam-preset{font-size:10px;min-width:108px;padding:6px}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-buttons{gap:5px}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-buttons button{padding:8px 6px;font-size:10.5px}}
@media(max-width:410px){body.gqr1 .gqr-kb-compact-v17 .gqr-kb-modes{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);column-gap:3px}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-quality-row strong{font-size:9.4px;letter-spacing:-.2px;white-space:nowrap}}
@media(max-width:345px){body.gqr1 .gqr-kb-compact-v17 .gqr-kb-intro{margin-left:0;margin-right:0;font-size:10px}body.gqr1 .gqr-kb-compact-v17 .gqr-kb-compact-actions{flex-wrap:nowrap}}


/* ===== GLOBIQ IMAGE RESIZER V1.8: CLICKABLE QUALITY TILES =====
   Scoped to Image Resizer KB popup only; preserves native radio input semantics,
   keyboard interaction, Exam Photo preset, Apply/Cancel/Reset, and core image logic.
   Radio remains focusable for accessibility but no circle is painted. */
body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-modes {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:8px;
  background:#f7f9fe;
  border:1px solid #bdcbe6;
}
body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-modes .gqr-kb-quality-row {
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:42px;
  width:100%;
  padding:9px 6px;
  margin:0;
  box-sizing:border-box;
  border:1.5px solid #a6b9db;
  border-radius:8px;
  background:#eaf0fb;
  color:#1c3554;
  box-shadow:0 1px 2px rgba(20,43,82,.05);
  cursor:pointer;
  transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease;
  user-select:none;
}
body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-quality-row input[type="radio"] {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  opacity:0!important;
  clip-path:inset(50%);
  overflow:hidden;
}
body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-quality-row span {
  display:block;
  min-width:0;
  width:100%;
  text-align:center;
}
body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-quality-row strong {
  display:block;
  font-size:12px;
  font-weight:850;
  line-height:1.18;
  white-space:nowrap;
  letter-spacing:-.15px;
  color:#1e385f;
}
body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-quality-row:hover {
  background:#dce6fb;
  border-color:#677fb9;
}
body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-quality-row:has(input:checked) {
  background:#455cba;
  border-color:#354ca9;
  color:#fff;
  box-shadow:0 2px 6px rgba(56,76,161,.22);
}
body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-quality-row:has(input:checked) strong {
  color:#fff;
}
body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-quality-row:has(input:checked):hover {
  background:#3e54ae;
}
body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-quality-row:has(input:focus-visible) {
  outline:3px solid #1091ca;
  outline-offset:2px;
}
@media (max-width:410px) {
  body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-modes {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
    padding:6px;
  }
  body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-modes .gqr-kb-quality-row {
    min-height:37px;
    padding:7px 3px;
  }
  body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-quality-row strong {
    font-size:10px;
    letter-spacing:-.25px;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.gqr1 .gqr-kb-dialog.gqr-kb-compact-v17 .gqr-kb-quality-row {transition:none;}
}
/* ===== END V1.8 QUALITY TILES ===== */

/* V2.0: only in the resizer KB dialog; short, optional recovery action. */
#gqrKbDialog #gqrFileSizeShortcut{display:block;width:max-content;max-width:100%;margin:4px auto 6px;padding:6px 12px;border:1px solid #3458a8;border-radius:7px;background:#eef4ff;color:#183c7a;font:700 12px/1.2 system-ui,sans-serif;cursor:pointer}
#gqrKbDialog #gqrFileSizeShortcut[hidden]{display:none!important}
#gqrKbDialog #gqrFileSizeShortcut:hover,#gqrKbDialog #gqrFileSizeShortcut:focus-visible{background:#dce9ff;outline:2px solid #92b3f5;outline-offset:1px}
#gqrKbDialog #gqrKbWarning{font-size:12px;line-height:1.3}

/* V2.1: Original pixel dimensions unless users intentionally enter a number. */
body.gqr1 .gqr-main-controls input#gqrWidth::placeholder,
body.gqr1 .gqr-main-controls input#gqrHeight::placeholder {color:#647793;opacity:1;font-weight:550;}


/* V2.2 — Image Resizer ONLY. Compact in-box tiles + centered Add More + flat Bulk Tools. */
body.gqr1 .gqr-resizer-page .kbv4-card{gap:8px}
body.gqr1 .gqr-resizer-page .kbv4-upload{padding:12px;min-height:160px}
body.gqr1 .gqr-resizer-page .kbv4-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(152px,1fr));align-items:stretch;gap:10px;max-height:350px}
body.gqr1 .gqr-resizer-page .kbv4-thumb-wrap{min-width:0;gap:4px;padding:5px}
body.gqr1 .gqr-resizer-page .kbv4-thumb img{object-fit:contain;background:#edf3fa}
body.gqr1 .gqr-resizer-page .kbv5-file-info{font-size:11px;line-height:1.45;padding:7px 6px}
body.gqr1 .gqr-resizer-page .kbv5-file-info .gqr22-target-label{font-weight:800;color:#236154}
body.gqr1 .gqr-resizer-page .kbv5-card-actions{padding:2px 0;gap:5px}
body.gqr1 .gqr-resizer-page .kbv5-card-actions button, body.gqr1 .gqr-resizer-page button.gqr22-single-kb{border:1px solid #adbedc;border-radius:7px;background:#fff;color:#23427a;font-weight:800;min-height:29px;font-size:11px}
body.gqr1 .gqr-resizer-page button.gqr22-single-kb{width:100%;margin-top:2px}
body.gqr1 .gqr-resizer-page .kbv5-add-tile{align-self:center;justify-self:center;width:100%;min-height:162px;max-width:176px;padding:14px 8px;background:#eff5ff;box-shadow:0 2px 7px #202b5210}
body.gqr1 .gqr-resizer-page .kbv5-add-tile span{margin:0 auto}
body.gqr1 .gqr-resizer-page .gqr22-bulkbar{margin-top:11px;border-radius:9px;background:#e8f1f9;border:1.5px solid #bbcede;text-align:left;padding:12px;display:grid;gap:9px;min-width:0}
body.gqr1 .gqr-resizer-page .gqr22-bulk-title{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#193652}
body.gqr1 .gqr-resizer-page .gqr22-bulk-summary{font-size:11px;color:#335e72;font-weight:750;overflow-wrap:anywhere}
body.gqr1 .gqr-resizer-page .gqr22-bulk-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.gqr1 .gqr-resizer-page .gqr22-bulk-buttons button{min-height:42px;border:1.5px solid #3f5aa6;border-radius:8px;font-size:13px;font-weight:850;cursor:pointer;white-space:nowrap}
body.gqr1 .gqr-resizer-page .gqr22-bulk-resize{background:#4c59af;color:white}
body.gqr1 .gqr-resizer-page .gqr22-bulk-kb{background:#f7faff;color:#294781}
body.gqr1 .gqr-resizer-page .gqr22-bulk-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
body.gqr1 .gqr-resizer-page .gqr22-advanced{border:0;background:transparent;text-decoration:underline;color:#375582;font-size:11px;font-weight:750;padding:6px;cursor:pointer}
body.gqr1 .gqr-resizer-page .gqr22-process{min-height:38px;max-width:220px;flex:1;border-radius:7px}
body.gqr1 .gqr22-bulk-dialog{width:min(94vw,600px);max-height:88vh;overflow-y:auto}
body.gqr1 .gqr22-bulk-dialog .gqr22-help{font-size:12px;color:#48617c;text-align:center;margin:0 0 12px}
body.gqr1 .gqr22-bulk-dialog .gqr22-bulk-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 12px;align-items:end;background:#ecf5f7;padding:13px;border:1px solid #c2d3e6;border-radius:9px}
body.gqr1 .gqr22-bulk-dialog .gqr22-bulk-fields>label{font-size:12px;font-weight:750;display:flex;flex-direction:column;gap:5px}
body.gqr1 .gqr22-bulk-dialog .gqr22-bulk-fields input[type=number],body.gqr1 .gqr22-bulk-dialog .gqr22-bulk-fields select{width:100%;min-width:0;min-height:39px;padding:7px;border:1px solid #9eafd0;border-radius:7px;background:white;color:#1a3151}
body.gqr1 .gqr22-bulk-dialog .gqr22-bulk-fields .gqr-lock{display:flex;grid-column:1/-1;align-items:center;flex-direction:row}
body.gqr1 .gqr22-bulk-dialog .gqr22-bulk-fields .gqr-lock input{width:17px;height:17px;accent-color:#24705d}
body.gqr1 .gqr22-bulk-dialog .gqr22-bulk-error{font-size:12px;font-weight:750;color:#ae2943;text-align:center;min-height:0}
body.gqr1 .gqr-kb-dialog .gqr22-scope-hint{color:#365f79;font-size:11px;text-align:center;margin:0 0 8px}
@media(max-width:500px){body.gqr1 .gqr-resizer-page .kbv4-thumbs{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:360px}body.gqr1 .gqr-resizer-page .kbv5-file-info{font-size:10.5px;padding:5px}body.gqr1 .gqr-resizer-page .kbv5-add-tile{min-height:154px}body.gqr1 .gqr-resizer-page .gqr22-bulk-buttons button{font-size:12px;min-height:40px}body.gqr1 .gqr22-bulk-dialog .gqr22-bulk-fields{gap:8px}}
@media(max-width:340px){body.gqr1 .gqr-resizer-page .kbv4-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}body.gqr1 .gqr-resizer-page .gqr22-bulkbar{padding:8px}body.gqr1 .gqr-resizer-page .gqr22-bulk-buttons{gap:5px}}


/* V2.3 — compact, clearly separated result tiles; scoped to Image Resizer only. */
body.gqr1 .gqr-resizer-page .kbv6-results-intro{display:none!important}
body.gqr1 .gqr-resizer-page .kbv6-results-stage{padding:11px;border:1.5px solid #a8d2c4;background:#f0f9f6;gap:5px}
body.gqr1 .gqr-resizer-page .kbv6-results-stage .kbv4-results{padding:0;border:0}
body.gqr1 .gqr-resizer-page .kbv4-result-head{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 10px;padding:0 0 8px;border-bottom:1px solid #badad0;font-weight:900;color:#1a3b34}
body.gqr1 .gqr-resizer-page .kbv5-download-buttons{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
body.gqr1 .gqr-resizer-page .kbv5-download-buttons button{min-height:32px;border:1px solid #4661ae;border-radius:7px;background:#495ab1;color:#fff;font-size:11px;font-weight:850;padding:6px 9px;white-space:nowrap}
body.gqr1 .gqr-resizer-page .kbv5-download-buttons #kbv4Zip{background:#fff;color:#294580}
body.gqr1 .gqr-resizer-page .kbv5-download-buttons .gqr23-back-top{background:#fff;border-color:#bdd1cf;color:#276254}
body.gqr1 .gqr-resizer-page .kbv4-result-scroll{max-height:375px;overflow-y:auto;overflow-x:hidden;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;padding:4px 3px 9px;scrollbar-width:thin}
body.gqr1 .gqr-resizer-page .kbv4-result-item.gqr23-result-card{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;min-height:91px;margin:0;border:1.6px solid #a3bcd5;border-radius:9px;background:#ffffff;padding:9px;box-shadow:0 3px 10px rgba(35,65,108,.095);overflow:hidden}
body.gqr1 .gqr-resizer-page .gqr23-result-main{display:flex;align-items:center;gap:8px;min-width:0;width:100%}
body.gqr1 .gqr-resizer-page .gqr23-result-preview{display:block;flex:0 0 52px;width:52px;height:65px;padding:3px;border:1px solid #d4dfea;background:#f3f7fe;object-fit:contain;border-radius:6px}
body.gqr1 .gqr-resizer-page .kbv4-result-item .kbv4-result-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;color:#1d3958}
body.gqr1 .gqr-resizer-page .gqr23-result-card .kbv61-result-name-row{display:flex;align-items:center;gap:3px;min-width:0}
body.gqr1 .gqr-resizer-page .gqr23-result-card .kbv51-result-filename{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:850;color:#122a48}
body.gqr1 .gqr-resizer-page .gqr23-result-card .kbv61-result-pencil{flex:none;min-width:22px;font-size:13px}
body.gqr1 .gqr-resizer-page .gqr23-result-card .kbv4-result-copy small{font-size:10px;line-height:1.35;color:#3e5872;overflow-wrap:normal}
body.gqr1 .gqr-resizer-page .gqr23-result-status{font-size:10px;color:#127448;font-weight:850;line-height:1.3}
body.gqr1 .gqr-resizer-page .gqr23-result-status.gqr23-result-miss{color:#6d4b24}
body.gqr1 .gqr-resizer-page .gqr23-single-download{flex:0 0 32px;height:34px;width:32px!important;min-width:32px;padding:0!important;display:flex;justify-content:center;align-items:center;background:#4c5cb3!important;border:1px solid #4c5cb3!important;border-radius:7px!important;color:white!important;font-size:20px!important;font-weight:900;cursor:pointer}
body.gqr1 .gqr-resizer-page .gqr23-retry{align-self:stretch;text-align:left;min-height:25px;width:100%;border:1px solid #d8e5f4!important;border-radius:6px!important;padding:5px 7px!important;background:#f2f7fd!important;color:#1e5d9c!important;font-size:10.5px!important;font-weight:850!important;white-space:normal!important;line-height:1.32}
body.gqr1 .gqr-resizer-page .gqr23-retry:hover{background:#e5effd!important;border-color:#7ba4db!important}
body.gqr1 .gqr-resizer-page .kbv6-back[hidden]{display:none!important}
body.gqr1 .gqr-kb-dialog .gqr23-kb-help{margin:7px 0 0;padding:5px 8px;border-radius:6px;background:#f2f7fc;color:#435978;font-size:10.5px;line-height:1.3}
body.gqr1 .gqr-kb-dialog .gqr-kb-quality-row strong{font-weight:850}
body.gqr1 .gqr-kb-dialog .gqr-kb-quality-row:has(input:checked){box-shadow:0 0 0 1px #2b52bc inset}
@media(max-width:620px){
 body.gqr1 .gqr-resizer-page .kbv4-result-scroll{grid-template-columns:minmax(0,1fr);gap:9px;max-height:395px}
 body.gqr1 .gqr-resizer-page .kbv4-result-head{align-items:flex-start;gap:7px}
 body.gqr1 .gqr-resizer-page .kbv5-download-buttons{justify-content:flex-start;gap:4px}
 body.gqr1 .gqr-resizer-page .kbv5-download-buttons button{font-size:10px;padding:6px 7px;min-height:31px}
}
@media(min-width:621px) and (max-width:700px){body.gqr1 .gqr-resizer-page .gqr23-result-card{padding:7px}body.gqr1 .gqr-resizer-page .gqr23-result-preview{flex-basis:44px;width:44px}}


/* V2.3.2: concise result header summary + accessible bottom session actions. */
body.gqr1 .gqr-resizer-page .gqr232-result-title{display:flex;align-items:center;gap:9px;min-width:0;flex:1 1 215px;flex-wrap:wrap}
body.gqr1 .gqr-resizer-page .gqr232-result-title>strong{font-size:13px;color:#173c34;white-space:nowrap}
body.gqr1 .gqr-resizer-page .gqr232-result-summary{font-size:11px;line-height:1.3;font-weight:750;color:#14694e;overflow-wrap:anywhere}
body.gqr1 .gqr-resizer-page .gqr232-result-summary.gqr232-has-errors{color:#a03339}
body.gqr1 .gqr-resizer-page .gqr232-result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:11px;margin-top:6px;border-top:1px solid #b9d9d0}
body.gqr1 .gqr-resizer-page .gqr232-result-actions>button{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:43px;padding:9px 12px;border-radius:8px;font-size:12px;font-weight:850;line-height:1.3;cursor:pointer}
body.gqr1 .gqr-resizer-page .gqr232-edit-again{background:#465bb2;color:#fff;border:1.5px solid #465bb2}
body.gqr1 .gqr-resizer-page .gqr232-start-over{background:#ffffff;color:#244674;border:1.5px solid #9fb8d6}
body.gqr1 .gqr-resizer-page .gqr232-result-actions>button:hover{filter:brightness(.95)}
body.gqr1 .gqr-resizer-page .gqr232-result-actions>button:focus-visible{outline:3px solid #4a8ae1;outline-offset:2px}
body.gqr1 .gqr-resizer-page .kbv4-message.gqr232-result-hidden{display:none!important}
@media(max-width:520px){
 body.gqr1 .gqr-resizer-page .kbv4-result-head{align-items:stretch}
 body.gqr1 .gqr-resizer-page .gqr232-result-title{flex-basis:100%}
 body.gqr1 .gqr-resizer-page .kbv5-download-buttons{justify-content:flex-start}
 body.gqr1 .gqr-resizer-page .gqr232-result-actions{gap:7px}
 body.gqr1 .gqr-resizer-page .gqr232-result-actions>button{font-size:11px;padding:8px 6px}
}
@media(max-width:345px){body.gqr1 .gqr-resizer-page .gqr232-result-actions{grid-template-columns:1fr}}
