/* 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}}
