/* NetToolForge V108: green-brand refinement, consistent UX and repairs. */
:root{--ntf-green:#7db7ea;--ntf-green-dark:#1182e6;--ntf-green-glow:rgba(125,183,234,.18);--ntf-brand-gradient:linear-gradient(115deg,#3c9aeb 0%,#7db7ea 55%,#7dd4e1 100%)}
body{background:#070d15!important;color:#eef6f7!important}
body.ntf-v95-legacy main{background:#090f19!important;color:#ecf5f7!important}
/* Logo and selected navigation accents */
.ntf-site-header .mark,.ntf-site-header .brand .mark{background:var(--ntf-brand-gradient)!important;border-color:#78d5e3!important;box-shadow:0 4px 18px var(--ntf-green-glow)!important}
.ntf-site-header .brand em{color:#6bd0e0!important;-webkit-text-fill-color:#6bd0e0!important}
.ntf-site-header .ntf-top-nav>a:hover,.ntf-site-header .ntf-top-nav .ntf-drop-toggle:hover{color:#84dcea!important}
.ntf-site-header .ntf-top-nav>a::after,.ntf-site-header .ntf-drop-toggle::after{background:var(--ntf-brand-gradient)!important}
.ntf-site-header .ntf-mega-link:hover{border-left:2px solid #90bee5!important}
/* Primary buttons only, secondary/navigation controls stay dark */
body .ntf-v95-primary,body .ntf-v95-form button[type=submit],body .ntf-v95-download,
body .ntf-img-process,body .ntf-img-download,body .ntf-v106-image-download,body .ntf-v108-save-button,
body .ntf-v108-favicon-save,body .ntf-v108-favicon-all,body .ntf-qr-primary,body .ntf-qr-save,
body .ntf-hero89-btn:not(.ghost),body .ntf-v101-bmi-form button[type=submit],body .ntf-v98-env-locate,
body .ntf-v95-stopwatch-controls .ntf-v95-stopwatch-primary,
body .ntf-v98-pane-form .ntf-v95-actions button{background:var(--ntf-brand-gradient)!important;color:#061523!important;border:1px solid #6ad2e3!important;box-shadow:0 5px 18px rgba(45,149,241,.14)!important}
body .ntf-v95-primary:hover,body .ntf-v95-form button[type=submit]:hover,body .ntf-img-process:hover,body .ntf-v108-favicon-save:hover,body .ntf-qr-primary:hover{filter:brightness(1.07);transform:translateY(-1px)}
body .ntf-v95-directory .ntf-v99-filters button.is-active:not(.ntf-drop-toggle):not(.ntf-nav-toggle):not(.ntf-qr-tile){background:var(--ntf-brand-gradient)!important;color:#081725!important;border-color:#76d6e5!important}
body .ntf-v95-directory .ntf-v99-filters button.is-active .ntf-v99-filter-count{background:#156bb7!important;color:#fff!important;border-color:#318ee1!important}
body .ntf-v95-directory .ntf-v99-filters button:not(.is-active):hover{border-color:#2784d4!important}
.ntf-v95-eyebrow,.ntf-qr-kicker{color:#71d4e4!important}
.ntf-v95-accentline{background:#87bbe7!important}
.ntf-v95-home-sectionheading>a,.ntf-v95-back,.ntf-img-back{color:#86dae7!important}
/* Subtle interactive tool cards */
.ntf-v95-card,.ntf-v107-card,.ntf-img-card,.ntf-v95-category-tile,.ntf-qr-tile{transition:transform .19s ease,border-color .19s ease,box-shadow .22s ease,background-color .2s ease!important}
.ntf-v95-card:hover,.ntf-v95-card:focus-visible,.ntf-v107-card:hover,.ntf-img-card:hover,.ntf-v95-category-tile:hover,.ntf-qr-tile:hover{border-color:#8cb9e1!important;box-shadow:0 0 0 1px rgba(105,212,228,.2),0 10px 28px rgba(55,151,234,.17)!important;transform:translateY(-3px)!important}
.ntf-v95-card-icon{color:#7ad9e7!important;background:#173b35!important}
/* Cropped/clipped menus: make both dropdowns full-size and visible on desktop */
@media(min-width:1121px){
 .ntf-site-header .ntf-nav-wrap{overflow:visible!important}
 .ntf-site-header .ntf-top-nav,.ntf-site-header .ntf-nav-group{overflow:visible!important}
 .ntf-site-header #ntf-cat-browse,.ntf-site-header #ntf-cat-popular{position:absolute!important;top:100%!important;width:min(590px,calc(100vw - 36px))!important;min-width:500px!important;max-width:calc(100vw - 36px)!important;max-height:min(75vh,620px)!important;overflow-y:auto!important;overflow-x:hidden!important;background:#101b29!important;border:1px solid #364d60!important;border-radius:15px!important;box-shadow:0 20px 65px #0009!important;padding:16px!important;z-index:5000!important}
 .ntf-site-header #ntf-cat-popular{right:0!important;left:auto!important}
 .ntf-site-header #ntf-cat-browse{left:0!important;right:auto!important}
 .ntf-site-header .ntf-v104-menu-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
 .ntf-site-header #ntf-cat-popular .ntf-mega-link{display:flex!important;min-width:0!important;width:100%!important}
 .ntf-site-header #ntf-cat-popular .ntf-mega-link strong{color:#f2f7f8!important;font-size:13px!important}
 .ntf-site-header #ntf-cat-popular .ntf-mega-link small{color:#adc0c3!important;line-height:1.4!important}
}
.ntf-site-header .ntf-v104-menu-heading,.ntf-site-header .ntf-v104-menu-heading a{color:#e9f9fc!important}
.ntf-site-header .ntf-v104-menu-icon{color:#82dbe9!important}
/* Image tool visibility and dark consistency */
body .ntf-img-tool-page>h1,body .ntf-img-directory>h1,body .ntf-v107-dir-head h1,body .ntf-pdf-intro h1,body .pagehead h1{color:#f4f9ff!important;-webkit-text-fill-color:#f4f9ff!important;opacity:1!important}
body .ntf-img-tool-page>p,body .ntf-img-directory>p,body .ntf-pdf-intro p{color:#b5c8d1!important}
body .ntf-img-app .ntf-v106-info{border:1px solid #375168!important;background:#101f22!important;color:#d4e6e9!important}
.ntf-img-app .ntf-v108-field{display:grid;gap:8px;min-width:0;color:#eaf5f7;font-weight:650;font-size:13px}
.ntf-img-app .ntf-v108-field>span{display:block}
.ntf-v108-output-warning{width:100%;padding:11px 14px;background:#29311f;border:1px solid #6f8b43;border-radius:10px;color:#f0e9b3!important}
.ntf-v108-download-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:100%}
.ntf-v108-save-button{display:inline-flex;padding:12px 19px;border-radius:10px;font:inherit;font-weight:750;cursor:pointer}
.ntf-img-status.is-error{color:#ffb7b7!important}
/* Color selection is designed for solid image backgrounds. */
.ntf-v108-pick-panel{display:flex;align-items:center;gap:10px;flex-wrap:wrap;grid-column:1/-1;padding:12px;border:1px solid #2b4750;border-radius:12px;background:#12212a}
.ntf-v108-pick{background:#1f3b52!important;border:1px solid #498bc5!important;border-radius:9px;padding:11px 14px;color:#e3fbff!important;font-weight:700}
.ntf-v108-picked-color{display:inline-block;flex:0 0 28px;width:28px;height:28px;border:1px solid #a0bec2;border-radius:8px}
.ntf-v108-picked-text{font-size:12px;color:#bdd7da}
.ntf-v108-picking .ntf-img-preview{cursor:crosshair!important;outline:2px solid #a0caef;outline-offset:3px}
.ntf-img-result .ntf-v106-output-preview{max-width:100%;height:auto;background:repeating-conic-gradient(#33414d 0 25%,#152536 0 50%) 50%/22px 22px}
/* Favicon: clickable real buttons to download files */
.ntf-v108-favicon-links{gap:10px!important}
body .ntf-v108-favicon-save{width:100%;font-weight:750;font-size:13px;min-height:47px;border-radius:11px;cursor:pointer}
body .ntf-v108-favicon-all{margin-top:14px;padding:12px 20px;border-radius:12px;font-weight:750;cursor:pointer}
.ntf-v108-favicon-help{color:#aac4c8!important;font-size:12px;line-height:1.6}
/* Accessible compact browse/drop file component for all tools. */
.ntf-v108-upload{position:relative!important;display:flex!important;align-items:center!important;gap:13px!important;width:100%!important;min-height:78px!important;padding:12px 16px!important;background:#111d25!important;border:1px dashed #4381b8!important;border-radius:13px!important;overflow:hidden!important;color:#f4fafc!important;cursor:pointer;box-shadow:none!important;grid-column:auto!important}
.ntf-v108-upload:hover,.ntf-v108-upload.is-dragging,.ntf-v108-upload:focus-within{border-color:#76d8e8!important;background:#162d2b!important;box-shadow:0 0 0 3px rgba(135,184,226,.1)!important}
.ntf-v108-upload.has-file{border-style:solid!important;border-color:#8ab6de!important}
.ntf-v108-upload-icon{flex:none;display:grid;place-items:center;width:39px;height:39px;border-radius:10px;background:#234460;color:#9ae3ee;font-size:21px}
.ntf-v108-upload-label{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1!important;max-width:100%}
.ntf-v108-upload-name{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f3fafa}
.ntf-v108-upload-hint{font-size:11px;color:#a6c0c4;line-height:1.3;font-weight:400}
.ntf-v108-upload-button{flex:none;display:inline-flex;padding:9px 12px;border-radius:9px;background:var(--ntf-brand-gradient);color:#092035!important;font-size:12px;font-weight:750}
.ntf-v108-upload>input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;z-index:2!important;margin:0!important;max-width:none!important}
/* QR generator – remove all high-priority legacy white backgrounds and invisible text */
body .ntf-qr-shell[data-ntf-qr]{color:#f0f8f9!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-hero{background:#102320!important;background-image:none!important;border:1px solid #31516c!important;box-shadow:none!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-hero h1{color:#f6fbfc!important;-webkit-text-fill-color:#f6fbfc!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-hero p{color:#b5d1d5!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-static-badges span{background:#1c3c59!important;color:#afeaf4!important;border:1px solid #396f9e!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-steps span{background:#101f26!important;border:1px solid #335068!important;color:#ccebf0!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-steps span.is-current{background:#244563!important;color:#c7f7ff!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-top h2,body .ntf-qr-shell[data-ntf-qr] .ntf-qr-editor h2,body .ntf-qr-shell[data-ntf-qr] .ntf-qr-preview-panel h2,body .ntf-qr-shell[data-ntf-qr] .ntf-qr-faq h2{color:#f5f9ff!important;-webkit-text-fill-color:#f5f9ff!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-top p,body .ntf-qr-shell[data-ntf-qr] .ntf-qr-search-label,body .ntf-qr-shell[data-ntf-qr] .ntf-qr-hint,body .ntf-qr-shell[data-ntf-qr] .ntf-qr-faq p{color:#bbced1!important}
body .ntf-qr-shell[data-ntf-qr] input,body .ntf-qr-shell[data-ntf-qr] textarea,body .ntf-qr-shell[data-ntf-qr] select{color:#f2f9ff!important;-webkit-text-fill-color:#f2f9ff!important;background:#0b1720!important;border-color:#3b5265!important;color-scheme:dark}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-tile,body .ntf-qr-shell[data-ntf-qr] button.ntf-qr-tile{background:#111e29!important;background-image:none!important;border:1px solid #2f4750!important;border-top:1px solid #2f4750!important;color:#ebf7f9!important;box-shadow:none!important;min-height:90px!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-tile strong{color:#f5fafa!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-tile small,body .ntf-qr-shell[data-ntf-qr] .ntf-qr-tile>span:last-child{color:#abc7cb!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-tile:hover,body .ntf-qr-shell[data-ntf-qr] .ntf-qr-tile.is-active{background:#172b2b!important;border-color:#8ab7df!important;box-shadow:0 0 0 1px #2bab8388,0 10px 25px #09634529!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-tile-icon{background:#1e3346!important;color:#a5e5ef!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-editor,body .ntf-qr-shell[data-ntf-qr] .ntf-qr-preview-panel,body .ntf-qr-shell[data-ntf-qr].is-qr-pdf-mode .ntf-qr-editor,body .ntf-qr-shell[data-ntf-qr].is-qr-pdf-mode .ntf-qr-preview-panel{background:#101e28!important;border:1px solid #3c5062!important;color:#f2f7f8!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-file-preview,body .ntf-qr-shell[data-ntf-qr] .ntf-qr-pdf-upload{background:#11242d!important;border-color:#3c4e5f!important;color:#e8f6f8!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-field,body .ntf-qr-shell[data-ntf-qr] .ntf-qr-check,body .ntf-qr-shell[data-ntf-qr] .ntf-qr-size{color:#e0f1f4!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-preview{background:#0d1626!important;color:#aebccf!important;border:1px dashed #7bb8c2!important} /* white preview ensures scan contrast */
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-reset{background:#1a3035!important;border-color:#4d6273!important;color:#e5fbff!important}
body .ntf-qr-shell[data-ntf-qr] .ntf-qr-tile.is-featured{min-height:170px!important}
/* Compact media card responsive grid */
@media(max-width:850px){.ntf-site-header #ntf-cat-popular,.ntf-site-header #ntf-cat-browse{width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important}.ntf-site-header .ntf-v104-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.ntf-v108-upload{gap:9px!important;padding:10px 11px!important;min-height:75px!important}.ntf-v108-upload-button{padding:9px 8px}.ntf-v108-upload-icon{width:31px;height:31px}.ntf-qr-shell[data-ntf-qr] .ntf-qr-types{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:450px){.ntf-v108-upload-hint{font-size:10px}.ntf-v108-upload-name{font-size:12px}.ntf-site-header .ntf-v104-menu-grid{grid-template-columns:1fr!important}}
@media (hover:none){.ntf-v95-card:hover,.ntf-v95-category-tile:hover,.ntf-qr-tile:hover{transform:none!important;box-shadow:none!important}}
@media(prefers-reduced-motion:reduce){.ntf-v95-card,.ntf-v107-card,.ntf-img-card,.ntf-v95-category-tile,.ntf-qr-tile{transition:none!important}.ntf-v95-card:hover,.ntf-img-card:hover,.ntf-qr-tile:hover{transform:none!important}}
/* Beat the older V98 blanket button gradient rule and keep selected CTAs branded green. */
body .ntf-v95-tool [data-v95-tool="favicon-generator"] button.ntf-v108-favicon-save:not(.ntf-drop-toggle):not(.ntf-nav-toggle):not(.ntf-qr-tile),
body .ntf-v95-tool [data-v95-tool="favicon-generator"] button.ntf-v108-favicon-all:not(.ntf-drop-toggle):not(.ntf-nav-toggle):not(.ntf-qr-tile),
body .ntf-img-tool-page .ntf-img-app button.ntf-img-process:not(.ntf-drop-toggle):not(.ntf-nav-toggle):not(.ntf-qr-tile),
body .ntf-img-tool-page .ntf-img-app button.ntf-v108-save-button:not(.ntf-drop-toggle):not(.ntf-nav-toggle):not(.ntf-qr-tile),
body .ntf-qr-shell[data-ntf-qr] button.ntf-qr-primary:not(.ntf-drop-toggle):not(.ntf-nav-toggle):not(.ntf-qr-tile),
body .ntf-qr-shell[data-ntf-qr] button.ntf-qr-save:not(.ntf-drop-toggle):not(.ntf-nav-toggle):not(.ntf-qr-tile){background:var(--ntf-brand-gradient)!important;background-image:var(--ntf-brand-gradient)!important;color:#091928!important;border-color:#9ac6eb!important;box-shadow:0 6px 18px rgba(125,183,234,.13)!important}
/* Keep fallback text hidden when the tool has produced a result. */
.ntf-v95-result-placeholder[hidden],.ntf-img-preview[hidden],.ntf-qr-file-preview[hidden]{display:none!important}
/* QR old v70/73 active tiles used extra-specific purple light-mode rules. */
body .ntf-qr-shell[data-ntf-qr] button.ntf-qr-tile:not(.ntf-drop-toggle):not(.ntf-nav-toggle),
body .ntf-qr-shell[data-ntf-qr] button.ntf-qr-tile.is-active:not(.ntf-drop-toggle):not(.ntf-nav-toggle),
body .ntf-qr-shell[data-ntf-qr] button.ntf-qr-tile:hover:not(.ntf-drop-toggle):not(.ntf-nav-toggle),
body .ntf-qr-shell[data-ntf-qr] button.ntf-qr-tile.is-featured:not(.ntf-drop-toggle):not(.ntf-nav-toggle){background:#111e29!important;background-image:none!important;border:1px solid #3d576d!important;border-top:1px solid #3d576d!important;color:#ebf7f9!important;box-shadow:none!important}
body .ntf-qr-shell[data-ntf-qr] button.ntf-qr-tile.is-active:not(.ntf-drop-toggle):not(.ntf-nav-toggle),
body .ntf-qr-shell[data-ntf-qr] button.ntf-qr-tile:hover:not(.ntf-drop-toggle):not(.ntf-nav-toggle){background:#1e364c!important;border-color:#96c2e8!important;box-shadow:0 0 0 1px #239b7660,0 8px 24px #004d2d38!important}
body .ntf-qr-shell[data-ntf-qr] button.ntf-qr-tile .ntf-qr-tile-copy strong{color:#f4f9fa!important}
body .ntf-qr-shell[data-ntf-qr] button.ntf-qr-tile .ntf-qr-tile-copy small{color:#aeccd0!important}
body .ntf-qr-shell[data-ntf-qr] button.ntf-qr-tile .ntf-qr-tile-icon{background:#223749!important;color:#9ce2ed!important}
