/* Approved medium typography and smooth glass categories. No wave textures. */
:root{--muted:#536176}
body{font-family:Manrope,'DM Sans',sans-serif;font-weight:500}
h1,.section-heading h1{font-weight:700}h2,.category-section h2{font-weight:650}
.nav-item{font-size:12px;font-weight:550;color:var(--muted)}.nav-heading{font-weight:600;color:var(--muted)}
.section-heading p,.tool-card p,.search-box input,.chip,.sort-label,.sort-label select{font-weight:500}
.search-box input::placeholder{color:var(--muted);opacity:1}
.tool-card h3{font-weight:650;font-size:14px}.tool-card p{color:var(--muted);font-size:12px}
.category-page-link{font-weight:550}.tool-total,.category-count{font-weight:550}
.category-overview{gap:10px;padding-bottom:26px}
.category-jump{--glass:#005ce6;--rim:#004bcc;--shade:#00328f;--text:#fff;position:relative;isolation:isolate;overflow:hidden;min-height:46px;padding:10px 12px;gap:8px;border-radius:10px;border:1px solid var(--rim);background:var(--glass);color:var(--text);font-size:13px;font-weight:600;box-shadow:inset 0 2px 2px #ffffffd9,inset 0 -3px 3px color-mix(in srgb,var(--shade) 34%,transparent),0 3px 0 color-mix(in srgb,var(--shade) 64%,transparent),0 5px 8px color-mix(in srgb,var(--shade) 12%,transparent);transition:transform .16s,box-shadow .16s,filter .16s;line-height:1.4;touch-action:manipulation}
.category-jump::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(115deg,#ffffff0a 0%,#ffffff00 38%,#ffffff12 64%,#ffffff00 100%),linear-gradient(#ffffff0a,transparent 50%);background-size:220% 100%,100% 100%;background-position:100% 0,0 0;transition:background-position 1s ease;pointer-events:none}
.category-jump:hover{background:var(--glass);border-color:var(--rim);filter:brightness(1.035);transform:translateY(-1px)}
.category-jump:hover::before,.category-jump:focus-visible::before{background-position:0 0,0 0}
.category-jump:active{transform:translateY(2px);box-shadow:inset 0 1px 4px color-mix(in srgb,var(--shade) 32%,transparent),inset 0 -1px 1px #ffffff66,0 1px 0 var(--shade)}
.category-jump>svg{display:none}.category-jump>span{font-weight:600;position:relative}
.category-jump small{margin-inline-start:auto;flex-shrink:0;padding:3px 7px;background:#ffffffbd;border:1px solid #ffffff80;color:#16304d;border-radius:14px;font-size:10px;line-height:1.35;font-weight:600;white-space:nowrap}
.category-jump[href$="category-create"]{--glass:#862de6;--rim:#7020c9;--shade:#4c139a;--text:#fff}
.category-jump[href$="category-invoices"]{--glass:#19c651;--rim:#0ca63e;--shade:#06742a;--text:#0b1830}
.category-jump[href$="category-edit"]{--glass:#ffd000;--rim:#e0b400;--shade:#a77f00;--text:#0b1830}
.category-jump[href$="category-organize"]{--glass:#00cce1;--rim:#00adc3;--shade:#007b91;--text:#0b1830}
.category-jump[href$="category-optimize-repair"]{--glass:#d90932;--rim:#b90027;--shade:#8a001e;--text:#fff}
.category-jump[href$="category-security-privacy"]{--glass:#ff673c;--rim:#e64c29;--shade:#b62e17;--text:#0b1830}
.category-jump[href$="category-view-check"]{--glass:#007d6b;--rim:#006453;--shade:#00493c;--text:#fff}
.category-jump[href$="category-convert-to-pdf"]{--glass:#f235a0;--rim:#d71c86;--shade:#a00e60;--text:#0b1830}
.category-jump[href$="category-convert-from-pdf"]{--glass:#ff9600;--rim:#e47c00;--shade:#ad5400;--text:#0b1830}
.category-jump[href$="category-convert-images"]{--glass:#4c4fe5;--rim:#383ac8;--shade:#27288f;--text:#fff}
/* Semantic assets stay the same color when cards are filtered or sorted. */
.tool-icon,.category-section .tool-icon{width:48px;height:48px;transform:none;display:block;flex-shrink:0;isolation:auto}
.tool-icon::before,.tool-icon::after{display:none}.tool-icon img{display:block;width:48px;height:48px;object-fit:contain}
body.dark{--muted:#b9c7d8}body.dark .category-jump{color:var(--text);background:var(--glass);border-color:var(--rim)}body.dark .category-jump small{color:#16304d;background:#ffffffd9}
html[dir=rtl] .category-jump{text-align:right}html[dir=rtl] .category-jump small{margin-left:0;margin-right:auto}
@media(max-width:1100px) and (min-width:651px){.category-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.category-jump{flex-wrap:wrap}.category-jump small{margin-inline-start:0}}
@media(max-width:650px){.category-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-bottom:22px}.category-jump{min-height:78px;padding:10px 11px;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:5px;font-size:13px;border-radius:10px}.category-jump span{line-height:1.4}.category-jump small{margin:0!important;font-size:10px;padding:3px 7px}.category-section h2{font-size:19px;font-weight:650}.tool-card h3{font-size:13px;font-weight:650}.tool-card p{font-size:12px;font-weight:500}.category-section .tool-icon,.tool-icon,.tool-icon img{width:46px;height:46px}.list .tool-icon{flex-shrink:0}.section-heading h1{font-size:27px;font-weight:700}.category-page-link{font-size:11px}.category-jump:active{transform:translateY(2px)}}
@media(prefers-reduced-motion:reduce){.category-jump,.category-jump::before{transition:none}.category-jump:hover,.category-jump:active{transform:none}html{scroll-behavior:auto}}



/* Neutral black dark mode; colored category controls retain their approved palette. */
body.dark{--bg:#000;--surface:#111;--ink:#f3f3f3;--muted:#bcbcbc;--line:#303030;--selected:#242424;--hero:#171717;color-scheme:dark;background:#000}
body.dark .topbar,body.dark .sidebar{background:#0b0b0b}body.dark .tool-card,body.dark .search-box,body.dark .preview-panel,body.dark .upload-panel{background:#111;border-color:#303030}
body.dark .chip.active{background:#eee;border-color:#eee;color:#171717}body.dark .results-heading h3 span{background:#252525;color:#ccc}
body.dark .brand-logo,body.dark .mobile-brand-image{background:transparent;padding:0;filter:brightness(0) invert(1)}
body.dark .footer-brand img{filter:brightness(0) invert(1)}body.dark .language-control select{background:#111!important;color:#eee!important;border-color:#393939!important}
body.dark .free-tool-note{background:#141414!important;color:#e6e6e6!important;border-color:#333!important}body.dark .nav-item.active{color:#abc5ff}body.dark .nav-item.active .nav-count{color:#abc5ff}
/* Dark-mode contrast applies to directory, tools, articles and result panels. */
body.dark{--blue:#8ab4ff}
body.dark h1{color:var(--ink)}
body.dark .run-actions .run-tool,body.dark .primary-download,body.dark .browse-button{background:#1d4ed8;border-color:#3265e6;color:#fff}
body.dark .drop-zone{background:#080808;border-color:#414141}
body.dark .upload-icon,body.dark .preview-controls button,body.dark .signature-box button,body.dark #copy-report{background:#202020;color:#ededed;border-color:#404040}
body.dark .local-badge{background:#13241b;color:#a9e6c2}
body.dark .tool-limitation{background:#272114;border-color:#594a29;color:#eddaa9}
body.dark .result-summary,body.dark #output-report{background:#151515;border-color:#393939;color:#e4e4e4}
body.dark .download-result:not(.primary-download){background:#1d1d1d;color:#a9c8ff;border-color:#414141}
body.dark .category-jump{background:color-mix(in srgb,var(--glass) 94%,#000)}
body.dark .category-jump:hover{background:var(--glass)}
body.dark .search-box input::placeholder{color:#bcbcbc}
body.dark .category-jump[href$="category-convert-to-pdf"]{--text:#050b17}
