/* V107: image-tool consistency, visibility and responsive cleanup */

/* Modern dedicated Image Tools library page */
.ntf-v107-image-directory{padding-top:38px!important;padding-bottom:72px!important;max-width:1220px!important}
.ntf-v107-back{display:inline-block;margin-bottom:24px}
.ntf-v107-dir-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px;flex-wrap:wrap}
.ntf-v107-dir-head h1{margin:12px 0 10px;font-size:clamp(34px,4.2vw,56px);line-height:1.04;color:#f4f8ff!important;-webkit-text-fill-color:#f4f8ff!important}
.ntf-v107-dir-head p{max-width:720px;margin:0;color:#a9b9d1!important;font-size:15px;line-height:1.75}
.ntf-v107-count{display:inline-flex;align-items:center;justify-content:center;padding:14px 18px;border-radius:18px;border:1px solid #2b3b57;background:#101828;color:#f2f6ff!important;font-size:14px;font-weight:700;min-width:220px}
.ntf-v107-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.ntf-v107-card{min-height:0!important;height:auto!important}
.ntf-v107-card .ntf-v95-card-text strong{font-size:14px!important;line-height:1.45!important;display:block;color:#f4f8ff!important;overflow-wrap:anywhere}
.ntf-v107-card .ntf-v95-card-text small{font-size:12px!important;line-height:1.6!important;color:#aab9d1!important}

/* Force old image directory and legacy image tool pages to match the dark theme */
body .ntf-img-directory,body .ntf-img-tool-page{max-width:1120px;margin:34px auto 74px;padding:0 20px;color:#e9f2ff!important}
body .ntf-img-directory>h1,body .ntf-img-tool-page>h1{margin:12px 0 12px!important;font-size:clamp(34px,4.2vw,56px)!important;line-height:1.06!important;color:#f4f8ff!important;-webkit-text-fill-color:#f4f8ff!important;text-shadow:none!important;opacity:1!important;visibility:visible!important}
body .ntf-img-directory>p,body .ntf-img-tool-page>p{margin:0 0 18px!important;color:#a8b9d3!important;font-size:15px!important;line-height:1.75!important;opacity:1!important;visibility:visible!important}
body .ntf-img-back{display:inline-block;margin-bottom:22px!important;color:#57ddcb!important;font-weight:700;text-decoration:none!important}
body .ntf-img-back:hover{color:#86ebdc!important}
body .ntf-img-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:14px!important;margin-top:20px!important}
body .ntf-img-card{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important;min-height:0!important;height:auto!important;padding:20px 18px!important;border-radius:16px!important;background:#0f1727!important;border:1px solid #2a3852!important;color:#eef5ff!important;box-shadow:none!important}
body .ntf-img-card:hover{transform:translateY(-2px);border-color:#73dcec!important;background:#172235!important}
body .ntf-img-card b{font-size:15px!important;line-height:1.45!important;color:#f3f7ff!important;overflow-wrap:anywhere}
body .ntf-img-card small{font-size:12px!important;line-height:1.6!important;color:#a6b6cf!important}
body .ntf-img-card span{font-size:23px!important;color:#54d7c3!important}

/* Legacy image tool workspaces */
body .ntf-img-app{max-width:980px!important;background:#0f1727!important;border:1px solid #2b3954!important;border-radius:18px!important;padding:24px!important;color:#eef5ff!important;box-shadow:none!important}
body .ntf-img-app>label,body .ntf-img-app .ntf-img-field,body .ntf-img-app .ntf-img-check{color:#eef5ff!important}
body .ntf-img-app input:not([type=checkbox]):not([type=radio]),body .ntf-img-app select,body .ntf-img-app textarea{background:#0b1321!important;color:#eef5ff!important;-webkit-text-fill-color:#eef5ff!important;border:1px solid #31415f!important;border-radius:12px!important;box-shadow:none!important}
body .ntf-img-app input[type=file]{background:#0b1321!important;border:1px dashed #42516e!important}
body .ntf-img-app input[type=file]::file-selector-button{background:linear-gradient(135deg,#73dcec,#91e9f6)!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:10px 14px!important;margin-right:12px!important}
body .ntf-img-options{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:14px!important}
body .ntf-img-process,body .ntf-img-download,body .ntf-v106-image-download{background:linear-gradient(135deg,#73dcec,#91e9f6)!important;border:1px solid #92e5f2!important;color:#fff!important;border-radius:11px!important;box-shadow:none!important}
body .ntf-img-status,body .ntf-img-result p,body .ntf-img-field small,body .ntf-v106-info,body .ntf-v106-output-meta{color:#afc0da!important}
body .ntf-image-comparison>div{background:#111b2c!important;border:1px solid #2e3f5d!important;color:#edf4ff!important}
body .ntf-image-comparison span{color:#aabbd2!important}
body .ntf-image-comparison strong{color:#f4f8ff!important}

/* Hide old light-mode visual leftovers if any inline content survives */
body .ntf-img-directory .has-white-background-color,
body .ntf-img-tool-page .has-white-background-color{background:transparent!important}

@media (max-width: 640px){
 .ntf-v107-image-directory{padding-left:16px!important;padding-right:16px!important;padding-top:30px!important}
 .ntf-v107-dir-head{margin-bottom:18px}
 .ntf-v107-count{width:100%;justify-content:flex-start}
 body .ntf-img-directory,body .ntf-img-tool-page{padding:0 16px;margin:28px auto 58px}
 body .ntf-img-app{padding:18px!important}
 body .ntf-img-directory>h1,body .ntf-img-tool-page>h1,.ntf-v107-dir-head h1{font-size:clamp(28px,8vw,42px)!important}
}
