:root{--ink:#202134;--muted:#77798a;--line:#e9eaf0;--purple:#7358e8;--paper:#f7f8fc;--white:#fff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:15px}a{color:inherit;text-decoration:none}.topbar,main,footer{max-width:1180px;margin:auto}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 30px}.brand{display:flex;align-items:center;gap:9px;font-family:Manrope,sans-serif;font-weight:800;font-size:19px;letter-spacing:-.8px}.brand-mark{display:grid;place-items:center;width:31px;height:31px;background:#755de8;color:white;border-radius:10px;font-size:20px}.brand-light{color:#77798a;font-weight:500}.topbar nav{display:flex;gap:34px;color:#656779;font-size:13px}.topbar nav a:hover,.banner-link:hover{color:var(--purple)}.top-cta{font-size:12px;font-weight:700;background:white;border:1px solid var(--line);padding:12px 17px;border-radius:9px}.top-cta span{color:var(--purple);margin-left:13px}.hero{min-height:480px;margin:0 30px;padding:52px 62px 45px;border-radius:24px;background:#efedff;display:grid;grid-template-columns:1fr 1fr;align-items:center;overflow:hidden;position:relative}.hero-copy{position:relative;z-index:2}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#7866d7;display:flex;align-items:center;gap:8px}.eyebrow-dot{width:7px;height:7px;background:#8c7ce4;border-radius:50%}.hero h1{font-family:Manrope,sans-serif;font-size:58px;line-height:1.05;letter-spacing:-3px;margin:22px 0 17px;font-weight:800}.hero h1 span{color:#755de8}.hero-copy>p{max-width:390px;line-height:1.75;color:#68697c;font-size:15px;margin:0 0 25px}.primary-btn{background:#7058df;color:white;padding:14px 20px;border-radius:9px;display:inline-flex;align-items:center;gap:24px;font-size:13px;font-weight:700;box-shadow:0 8px 20px #6f58df38}.primary-btn:hover{background:#5d46ce;transform:translateY(-1px)}.hero-note{display:flex;align-items:center;gap:11px;margin-top:29px;font-size:11px;color:#77798a}.avatar-stack{display:flex}.avatar-stack i{font-style:normal;display:grid;place-items:center;width:25px;height:25px;margin-right:-6px;background:#fff;border:2px solid #efedff;border-radius:50%;font-size:11px;color:#765de6}.hero-art{height:360px;position:relative}.art-orbit{position:absolute;border:1px solid #dcd7fa;border-radius:50%;transform:rotate(-24deg)}.orbit-one{width:420px;height:245px;left:8px;top:57px}.orbit-two{width:330px;height:330px;left:52px;top:20px}.float-card{position:absolute;box-shadow:0 18px 40px #3c2c8730;border-radius:18px;display:flex;flex-direction:column}.card-purple{width:166px;height:190px;left:144px;top:69px;background:#7861e9;color:white;padding:23px;transform:rotate(-8deg);z-index:2}.card-purple span{font-size:25px}.card-purple b{font:700 21px Manrope,sans-serif;line-height:1.25;margin-top:auto}.card-peach{width:148px;height:166px;right:8px;top:120px;background:#ffbda7;padding:18px;transform:rotate(9deg);z-index:3}.card-peach span{font-size:27px}.card-peach small{font-size:8px;letter-spacing:1px;margin-top:17px;color:#8c5448}.card-peach b{font:700 16px Manrope,sans-serif;margin-top:6px}.card-yellow{width:95px;height:95px;left:47px;top:186px;background:#ffd969;display:grid;place-items:center;transform:rotate(-12deg);z-index:4}.card-yellow span{font-size:38px;color:#a87d15}.card-blue{width:77px;height:77px;right:46px;top:37px;background:#8ed6e4;display:grid;place-items:center;transform:rotate(9deg);z-index:1}.card-blue span{font-size:32px;color:#327b89}.spark{position:absolute;color:#8f7be9}.spark-a{font-size:24px;right:5px;bottom:43px}.spark-b{font-size:17px;left:84px;top:50px}.spark-c{font-size:24px;right:89px;top:12px}.art-caption{position:absolute;bottom:0;left:90px;color:#85809e;font-size:10px;letter-spacing:.3px}.art-caption span{color:#765de6;margin-left:7px}.tools-section{padding:86px 30px 70px}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:31px}.section-head h2,.bottom-banner h2{font:800 31px Manrope,sans-serif;letter-spacing:-1.2px;margin:9px 0 6px}.section-head p{color:var(--muted);margin:0;font-size:13px}.tool-count{display:flex;align-items:center;gap:9px;color:#8b8c9a;font-size:11px;padding-bottom:3px}.tool-count strong{font:700 18px Manrope,sans-serif;color:#765de6}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.search-wrap{height:42px;width:248px;background:#fff;border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;padding:0 11px;gap:9px;color:#9394a2}.search-wrap>span{font-size:22px;transform:rotate(-20deg)}.search-wrap input{border:0;outline:0;background:transparent;width:100%;font:12px 'DM Sans',sans-serif;color:var(--ink)}.search-wrap kbd{border:1px solid var(--line);border-radius:4px;padding:2px 6px;font:10px monospace}.filters{display:flex;gap:6px}.filter{border:0;background:transparent;color:#818291;font:500 11px 'DM Sans',sans-serif;padding:10px 13px;border-radius:7px;cursor:pointer}.filter:hover{background:#efedff;color:#6b54d7}.filter.active{background:#eae7ff;color:#6851d6;font-weight:700}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.tool-card{background:white;border:1px solid #edecf2;border-radius:13px;padding:19px 20px 15px;min-height:212px;transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column}.tool-card:hover{transform:translateY(-3px);box-shadow:0 13px 30px #2723440d}.tool-icon{height:39px;width:39px;border-radius:11px;display:grid;place-items:center;font:700 16px Manrope,sans-serif;margin-bottom:14px}.icon-lilac{color:#735de1;background:#f0edff}.icon-mint{color:#298a72;background:#e5f7f0}.icon-peach{color:#c8674d;background:#fff0e9}.icon-yellow{color:#ac861d;background:#fff6d8}.icon-blue{color:#4571bc;background:#eaf1ff}.icon-pink{color:#c15d8b;background:#fff0f6}.card-meta{display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:1px;font-weight:700;color:#a0a0ac}.arrow{font-size:14px;color:#b2b0c2} .tool-card h3{font:700 16px Manrope,sans-serif;margin:7px 0 5px;letter-spacing:-.3px}.tool-card p{font-size:11px;line-height:1.55;color:#888998;margin:0 0 13px;max-width:275px}.open-tool{padding:0;border:0;background:transparent;color:#6d56da;font:700 10px 'DM Sans',sans-serif;text-align:left;margin-top:auto;cursor:pointer}.open-tool span{margin-left:7px}.empty-state{text-align:center;padding:45px;color:var(--muted);font-size:14px}.bottom-banner{margin:0 30px 66px;background:#26243d;color:white;padding:30px 36px;border-radius:15px;display:flex;align-items:center;gap:18px}.banner-star{width:47px;height:47px;border-radius:14px;background:#433d6c;color:#b9aaff;display:grid;place-items:center;font-size:26px}.bottom-banner .eyebrow{font-size:8px;color:#a99bed}.bottom-banner h2{font-size:19px;letter-spacing:-.4px;margin:5px 0 0}.banner-link{margin-left:auto;color:#d8d2ff;font-size:11px;font-weight:600}.banner-link span{margin-left:8px}footer{min-height:75px;padding:18px 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;color:#9899a7;font-size:10px}footer .brand{font-size:15px;color:var(--ink)}footer .brand-mark{width:25px;height:25px;font-size:16px;border-radius:8px}footer b{color:#ee829b}.modal-backdrop{position:fixed;inset:0;background:#15142580;z-index:20;display:grid;place-items:center;padding:18px}.modal-backdrop[hidden]{display:none}.modal{position:relative;background:#fff;width:min(100%,480px);border-radius:18px;padding:32px;box-shadow:0 30px 90px #11112855;max-height:90vh;overflow:auto}.modal-close{position:absolute;right:16px;top:13px;border:0;background:#f3f2f8;border-radius:50%;width:31px;height:31px;font-size:22px;cursor:pointer;color:#656579}.modal h2{font:800 24px Manrope,sans-serif;letter-spacing:-.7px;margin:0 40px 7px 0}.modal-intro{color:var(--muted);font-size:12px;margin:0 0 23px;line-height:1.6}.field-label{display:block;font-size:11px;font-weight:700;margin:15px 0 7px}.field,.textarea{width:100%;border:1px solid #e5e4ed;border-radius:9px;background:#fbfbfd;padding:11px 12px;font:13px 'DM Sans',sans-serif;outline:0;color:var(--ink)}.field:focus,.textarea:focus{border-color:#8976e5;box-shadow:0 0 0 3px #8976e51c}.textarea{resize:vertical;min-height:115px;line-height:1.5}.modal-row{display:flex;gap:10px}.modal-row>*{flex:1}.action-btn{margin-top:14px;border:0;background:#7058df;color:#fff;border-radius:8px;padding:11px 15px;font:700 12px 'DM Sans',sans-serif;cursor:pointer}.action-btn:hover{background:#5c46cb}.secondary-btn{border:1px solid #e6e5ed;background:#fff;color:#626376;border-radius:8px;padding:10px 14px;font:600 11px 'DM Sans',sans-serif;cursor:pointer}.result-box{margin-top:15px;padding:14px;border:1px solid #e9e7f2;background:#f8f7ff;border-radius:10px;color:#514a70;font-size:13px;line-height:1.6;min-height:45px}.result-box strong{color:#6b54d7}.result-actions{display:flex;gap:8px;margin-top:10px}.result-actions .action-btn{margin-top:0}.check-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;font-size:11px;color:#666779}.check-row label{display:flex;align-items:center;gap:5px}.strength{font-size:10px;color:#888;margin-top:8px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);background:#29273e;color:white;padding:10px 16px;border-radius:9px;font-size:11px;opacity:0;transition:.2s;pointer-events:none;z-index:30}.toast.show{transform:translate(-50%,0);opacity:1}

/* heyfor.com design direction: expressive editorial type, bright red accents, crisp neutral canvas. */
:root{--ink:#171717;--muted:#6e6e6e;--line:#e4e4e4;--purple:#eb1000;--paper:#f8f8f6;--white:#fff}
body{font-family:'DM Sans',sans-serif;background:#f8f8f6;color:#171717}
.brand{font-family:Manrope,sans-serif;font-size:20px;letter-spacing:-1.1px}.brand-name{color:#eb1000}.brand-light{color:#888}
.ad-slot{position:relative;display:grid;place-items:center;box-sizing:border-box;width:min(96%,1120px);min-height:120px;margin:34px auto;padding:28px 16px 18px;border:1px dashed var(--line);background:#fff;color:var(--muted);text-align:center}
.ad-slot-label{position:absolute;top:8px;left:12px;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.ad-slot-placeholder{font-size:14px;line-height:1.5}
html[data-theme="dark"] .ad-slot{border-color:#383838;background:#171717;color:#aaa}
.footer-links{display:flex;gap:18px;align-items:center}.footer-links a{color:#6e6e6e}.footer-links a:hover{color:#eb1000}
.legal-page{max-width:1000px;min-height:65vh;margin:45px auto 90px;padding:55px 64px;background:#fff;border:1px solid #e7e7e5}
.legal-page h1{font:800 clamp(38px,5vw,58px)/1.05 Manrope,sans-serif;letter-spacing:-2.7px;margin:18px 0 16px;max-width:860px}
.legal-lead{font-size:20px!important;line-height:1.6!important;color:#4f4f4f!important;max-width:860px}
.legal-page>p,.legal-page section p{font-size:17px;line-height:1.75;color:#575757;max-width:860px}
.legal-page section{margin-top:34px;max-width:860px}
.legal-page h2{font:700 22px Manrope,sans-serif;letter-spacing:-.4px;margin:0 0 8px}
.legal-page a{color:#d7190b;text-decoration:underline;text-underline-offset:3px}
.contact-address{border-left:3px solid #eb1000;padding:10px 18px;background:#f8f8f6;margin:26px 0}
.contact-address p{margin:4px 0}
.email-placeholder{color:#9a4b43!important;font-style:italic}
/* Readability pass: increase small interface and supporting text throughout. */
body{font-size:16px}
.topbar nav{font-size:15px}
.top-cta{font-size:14px}
.hero-copy>p{font-size:17px;max-width:430px}
.hero-note{font-size:13px}
.eyebrow{font-size:11px}
.art-caption{font-size:12px}
.section-head p{font-size:15px}
.tool-count{font-size:13px}
.tool-count strong{font-size:20px}
.search-wrap{height:46px}
.search-wrap input{font-size:14px}
.filter{font-size:13px;padding:11px 14px}
.tool-card{padding:21px 22px 17px;min-height:226px}
.tool-card h3{font-size:18px}
.tool-card p{font-size:13px;line-height:1.65}
.card-meta{font-size:10px}
.open-tool{font-size:12px}
.bottom-banner .eyebrow{font-size:10px}
.bottom-banner h2{font-size:21px}
.banner-link{font-size:13px}
footer{font-size:14px}
.modal-intro{font-size:14px}
.field-label{font-size:13px}
.field,.textarea{font-size:15px}
.action-btn{font-size:14px}
.secondary-btn{font-size:13px}
.result-box{font-size:15px}
.strength{font-size:12px}
.toast{font-size:13px}

/* Persistent light and dark theme control. */
.header-actions{display:flex;align-items:center;gap:10px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 12px;border:1px solid #d7d7d5;border-radius:2px;background:transparent;color:#252525;font:600 14px 'DM Sans',sans-serif;cursor:pointer}
.theme-toggle:hover{border-color:#eb1000;color:#c7190d}
.theme-icon{font-size:17px;line-height:1}
.topbar nav.main-menus{gap:clamp(13px,2vw,28px);color:#333;font-size:15px;font-weight:600}
.topbar nav.main-menus a{white-space:nowrap;transition:color .15s}
.topbar nav.main-menus a:hover{color:#eb1000}
.topbar nav.main-menus a[aria-current="page"]{position:relative;color:#eb1000}
.topbar nav.main-menus>a[aria-current="page"]::after,.topbar nav.main-menus>.menu-dropdown-group>a[aria-current="page"]::after{content:"";position:absolute;right:0;bottom:-2px;left:0;height:2px;background:#eb1000}
.topbar nav.main-menus .submenu a[aria-current="page"]{background:#fff0ed;color:#d7190b}
.menu-dropdown{position:static}
.menu-dropdown summary{list-style:none;white-space:nowrap;cursor:pointer}
.menu-dropdown summary::-webkit-details-marker{display:none}
.menu-dropdown summary::after{content:none}
.menu-dropdown summary span{display:block;font-size:15px;line-height:1;color:#888}
.menu-dropdown[open] summary{color:#eb1000}
.menu-dropdown-group{position:relative;display:inline-flex;align-items:center;gap:2px}
.menu-dropdown-group>a{white-space:nowrap}
.menu-dropdown-group>a[aria-current="page"]{color:#eb1000}
.menu-dropdown-group>.menu-dropdown>summary{display:grid;place-items:center;min-width:20px;min-height:28px;padding:0 3px}
/* Click-only dropdowns: never open on hover. */
.menu-dropdown:not([open])>.submenu{display:none}
.menu-dropdown[open]>.submenu{display:block}
.submenu{position:absolute;z-index:15;top:calc(100% + 12px);left:0;min-width:150px;padding:6px;background:#fff;border:1px solid #e4e4e4;box-shadow:0 12px 28px #00000018}
.submenu a{display:block;padding:10px 12px;color:#222;font-size:13px}
.submenu a:hover{background:#fff0ed;color:#d7190b}
.compress-preview{display:block;max-width:100%;max-height:250px;object-fit:contain;margin:14px auto 0;border:1px solid #e4e4e4}
.quality-range{padding:8px 0;accent-color:#eb1000}
.download-btn{display:inline-block;text-decoration:none;text-align:center}
.action-btn:disabled{opacity:.65;cursor:wait}
.action-btn.is-loading{display:inline-flex;align-items:center;justify-content:center;gap:9px;cursor:wait}
.action-btn.is-loading::before{content:"";width:14px;height:14px;flex:0 0 14px;border:2px solid #ffffff77;border-top-color:#fff;border-radius:50%;animation:heyfor-spin .7s linear infinite}
@keyframes heyfor-spin{to{transform:rotate(360deg)}}
.theme-toggle:focus-visible{outline:3px solid #eb100055;outline-offset:2px}
html[data-theme="dark"] body{background:#111;color:#f3f3f3}
html[data-theme="dark"] .topbar nav{color:#c3c3c3}
html[data-theme="dark"] .topbar nav.main-menus{color:#eee}
html[data-theme="dark"] .topbar nav a:hover{color:#ff6b60}
html[data-theme="dark"] .topbar nav.main-menus a[aria-current="page"]{color:#ff6b60}
html[data-theme="dark"] .topbar nav.main-menus .submenu a[aria-current="page"]{background:#30201e;color:#ff6b60}
html[data-theme="dark"] .brand-light{color:#aaa}
html[data-theme="dark"] .top-cta{background:#1b1b1b;color:#f4f4f4;border-color:#555}
html[data-theme="dark"] .theme-toggle{color:#f3f3f3;border-color:#555}
html[data-theme="dark"] .hero{background:#201d1d}
html[data-theme="dark"] .hero-copy>p,html[data-theme="dark"] .hero-note{color:#c0bdbd}
html[data-theme="dark"] .art-caption{color:#c2bdbd}
html[data-theme="dark"] .art-orbit{border-color:#494343}
html[data-theme="dark"] .tools-section .section-head p,html[data-theme="dark"] .tool-count{color:#b5b5b5}
html[data-theme="dark"] .search-wrap,html[data-theme="dark"] .tool-card,html[data-theme="dark"] .modal{background:#1c1c1c;color:#f1f1f1;border-color:#383838}
html[data-theme="dark"] .search-wrap input{color:#f1f1f1}
html[data-theme="dark"] .search-wrap input::placeholder{color:#999}
html[data-theme="dark"] .search-wrap kbd{border-color:#555;color:#ccc}
html[data-theme="dark"] .filter{color:#c0c0c0}
html[data-theme="dark"] .filter.active{background:#eb1000;color:white}
html[data-theme="dark"] .filter:hover{background:#3b2725;color:#ff9289}
html[data-theme="dark"] .tool-card p,html[data-theme="dark"] .card-meta{color:#b6b6b6}
html[data-theme="dark"] .arrow{color:#aaa}
html[data-theme="dark"] .tool-card:hover{box-shadow:0 14px 28px #0008}
html[data-theme="dark"] .bottom-banner{background:#252525;border:1px solid #3a3a3a}
html[data-theme="dark"] footer{border-color:#383838;color:#aaa}
html[data-theme="dark"] .footer-links a{color:#ccc}
html[data-theme="dark"] .footer-links a:hover{color:#ff756b}
html[data-theme="dark"] .legal-page{background:#1c1c1c;border-color:#383838}
html[data-theme="dark"] .legal-page>p,html[data-theme="dark"] .legal-page section p{color:#c2c2c2}
html[data-theme="dark"] .contact-address{background:#252525}
html[data-theme="dark"] .email-placeholder{color:#ff9a91!important}
html[data-theme="dark"] .field,html[data-theme="dark"] .textarea,html[data-theme="dark"] .secondary-btn{background:#252525;color:#f1f1f1;border-color:#494949}
html[data-theme="dark"] .field::placeholder,html[data-theme="dark"] .textarea::placeholder{color:#999}
html[data-theme="dark"] .result-box{background:#282326;border-color:#4a3838;color:#e1d8d8}
html[data-theme="dark"] .result-box strong{color:#ff8b81}
html[data-theme="dark"] .modal-close{background:#333;color:#eee}
html[data-theme="dark"] .submenu{background:#1c1c1c;border-color:#383838}
html[data-theme="dark"] .submenu a{color:#f1f1f1}
html[data-theme="dark"] .submenu a:hover{background:#3b2725;color:#ff9289}
html[data-theme="dark"] .tool-guide{background:#1c1c1c;border-color:#383838}
html[data-theme="dark"] .tool-guide p{color:#c2c2c2}
html[data-theme="dark"] .tool-guide strong{color:#f3f3f3}
html[data-theme="dark"] .tool-faq{border-color:#383838}
html[data-theme="dark"] .tool-faq details{border-color:#383838}
html[data-theme="dark"] .tool-faq summary{color:#f3f3f3}
html[data-theme="dark"] .compress-preview{border-color:#494949}
html[data-theme="dark"] .modal-intro,html[data-theme="dark"] .check-row{color:#c2c2c2}
html[data-theme="dark"] .toast{background:#f4f4f4;color:#1b1b1b}
.compressor-page{width:min(95%,var(--page-max));max-width:var(--page-max);margin:32px auto 90px;padding:0 12px}
.back-link{font-size:13px;font-weight:600;color:#676767}
.back-link:hover{color:#d7190b}
.compressor-intro{max-width:880px;margin:34px auto 34px;text-align:center}
.compressor-intro .eyebrow{justify-content:center}
.compressor-intro h1{font:800 clamp(42px,6vw,64px)/1.05 Manrope,sans-serif;letter-spacing:-3px;margin:15px 0}
.compressor-intro>p{font-size:17px;line-height:1.7;color:#626262;margin:0 auto;max-width:780px}
.privacy-note{margin-top:18px;display:inline-flex;align-items:center;gap:8px;color:#28724c;font-size:13px;font-weight:600}
.privacy-note span{width:20px;height:20px;background:#e5f3ea;border-radius:50%;display:grid;place-items:center}
.compressor-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;padding:34px;background:#fff;border:1px solid #e4e4e4;box-shadow:0 16px 40px #1717170a}
.compressor-controls .field-label{margin:4px 0 9px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.upload-area{min-height:190px;border:1.5px dashed #c8c8c5;background:#fafaf8;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:8px;padding:30px;cursor:pointer;color:#333}
.upload-area:hover,.upload-area.dragging{border-color:#eb1000;background:#fff5f3}
.visually-hidden:focus-visible+.upload-area{outline:3px solid #eb100055;outline-offset:3px}
.upload-area strong{font-size:14px}.upload-area>span:last-child{font-size:12px;color:#777}
.upload-icon{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#fff0ed;color:#d7190b;font-size:20px}
.selected-file{min-height:20px;color:#777;font-size:12px;margin:9px 0 17px;overflow-wrap:anywhere}
.compressor-options{display:grid;grid-template-columns:1fr 1.2fr;gap:16px}
.compressor-options .field{min-height:43px}
.compressor-options .quality-range{padding:12px 0;accent-color:#eb1000}
.compressor-options .field-label strong{float:right;color:#d7190b}
.range-hints{display:flex;justify-content:space-between;color:#898989;font-size:10px;margin-top:-5px}
.compress-action{width:100%;min-height:48px;margin-top:19px;font-size:15px}
.compress-action:disabled{opacity:.45;cursor:not-allowed}
.compress-status{min-height:42px;margin-top:13px;padding:11px 12px;background:#f7f6f4;color:#555;font-size:13px;line-height:1.5}
.page-download{width:100%;margin-top:12px;padding:13px 15px}
.preview-panel{min-width:0;padding:16px;border:1px solid #e7e7e5;background:#fff;display:flex;flex-direction:column}
.preview-heading{display:flex;justify-content:space-between;align-items:center;margin:4px 0 12px;font-size:13px}
.preview-heading span{color:#818181;font-size:11px}
.preview-stage{min-height:460px;background-color:#f2f1ef;background-image:linear-gradient(45deg,#e8e7e4 25%,transparent 25%),linear-gradient(-45deg,#e8e7e4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8e7e4 75%),linear-gradient(-45deg,transparent 75%,#e8e7e4 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0;display:grid;place-items:center;overflow:hidden}
.preview-empty{text-align:center;color:#848484;font-size:13px;padding:25px}
.preview-empty span{font-size:45px;color:#a7a5a1}
.preview-empty p{margin:7px 0}
.preview-stage img{max-width:100%;max-height:420px;object-fit:contain}
.image-details{color:#777;font-size:11px;margin-top:10px;text-align:right}
.batch-preview-list{display:flex;flex:1;flex-direction:column;gap:14px}
.batch-preview-list>.preview-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}
.batch-preview-item{min-width:0;padding:12px;background:#fafaf8;border:1px solid #e7e7e5}
.batch-item-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px;font-size:11px;color:#777}
.batch-file-name{color:#292929;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.batch-preview-stage{min-height:260px}
.batch-preview-stage img{max-height:380px}
.batch-item-status{font-size:12px;line-height:1.5;color:#5d5d5d;margin-top:8px}
.batch-download{display:block;width:100%;margin-top:10px;padding:12px;text-decoration:none;opacity:.42;pointer-events:none;cursor:not-allowed;filter:grayscale(.45)}
.batch-download.ready{opacity:1;pointer-events:auto;cursor:pointer;filter:none}
.empty-download{margin-top:auto}
.upload-area.is-disabled{pointer-events:none;opacity:.55}
.batch-preview-stage{min-height:260px}
.tool-guide{max-width:1000px;margin:64px auto 0;padding:44px 48px;border:1px solid #e4e4e4;background:#fff}
.tool-guide h2{font:800 clamp(25px,3vw,32px)/1.15 Manrope,sans-serif;letter-spacing:-1px;margin:10px 0 14px}
.tool-guide h3{font:700 17px/1.35 Manrope,sans-serif;margin:27px 0 8px}
.tool-guide p{font-size:17px;line-height:1.7;color:#575757;margin:0 0 12px}
.tool-guide p:last-child{margin-bottom:0}
.tool-guide strong{color:#171717}
.tool-faq{margin-top:2px;border-top:1px solid #e4e4e4}
.tool-faq details{border-bottom:1px solid #e4e4e4}
.tool-faq summary{position:relative;padding:16px 34px 16px 0;cursor:pointer;list-style:none;font-size:16px;line-height:1.5;font-weight:700;color:#171717}
.tool-faq summary::-webkit-details-marker{display:none}
.tool-faq summary::after{content:"+";position:absolute;right:4px;top:50%;transform:translateY(-50%);font-size:22px;font-weight:400;color:#eb1000}
.tool-faq details[open] summary::after{content:"−"}
.tool-faq summary:focus-visible{outline:2px solid #eb1000;outline-offset:3px}
.tool-faq details p{padding:0 28px 15px 0;margin:0}
.compressor-info{margin:72px 0 20px}
.compressor-info h2{font:800 34px Manrope,sans-serif;letter-spacing:-1.1px;margin:10px 0 23px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.steps article{padding:24px;background:#fff;border:1px solid #e7e7e5}
.steps article>span{color:#eb1000;font:700 11px Manrope,sans-serif}
.steps h3{font:700 16px Manrope,sans-serif;margin:12px 0 6px}
.steps p,.tool-disclaimer{font-size:13px;line-height:1.65;color:#6d6d6d;margin:0}
.tool-disclaimer{margin-top:18px}
html[data-theme="dark"] .compressor-intro>p{color:#c2c2c2}
html[data-theme="dark"] .privacy-note{color:#9fdeb9}
html[data-theme="dark"] .compressor-workspace,html[data-theme="dark"] .steps article{background:#1c1c1c;border-color:#383838}
html[data-theme="dark"] .upload-area{background:#252525;border-color:#555;color:#eee}
html[data-theme="dark"] .upload-area:hover,html[data-theme="dark"] .upload-area.dragging{background:#342322;border-color:#eb1000}
html[data-theme="dark"] .upload-area>span:last-child,html[data-theme="dark"] .selected-file,html[data-theme="dark"] .preview-heading span,html[data-theme="dark"] .image-details,html[data-theme="dark"] .range-hints,html[data-theme="dark"] .steps p,html[data-theme="dark"] .tool-disclaimer{color:#aaa}
html[data-theme="dark"] .compress-status{background:#282828;color:#ddd}
html[data-theme="dark"] .preview-stage{background-color:#292929;background-image:linear-gradient(45deg,#333 25%,transparent 25%),linear-gradient(-45deg,#333 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#333 75%),linear-gradient(-45deg,transparent 75%,#333 75%)}
html[data-theme="dark"] .preview-empty{color:#bbb}
html[data-theme="dark"] .batch-preview-item{background:#202020;border-color:#414141}
html[data-theme="dark"] .preview-panel{background:#1c1c1c;border-color:#383838}
html[data-theme="dark"] .batch-file-name{color:#eee}
html[data-theme="dark"] .batch-item-heading,html[data-theme="dark"] .batch-item-status{color:#aaa}
.topbar{max-width:var(--page-max)}.top-cta{border-color:#171717;border-radius:2px;background:transparent}.top-cta span{color:#eb1000}.hero{max-width:none;margin:0 22px;border-radius:3px;background:#f0efec;min-height:500px;padding-left:max(5vw,58px)}.hero h1{font-size:clamp(52px,6vw,78px);letter-spacing:-5px;line-height:.99}.hero h1 span{color:#eb1000}.eyebrow{color:#eb1000}.eyebrow-dot{background:#eb1000}.primary-btn{background:#eb1000;border-radius:2px;box-shadow:none}.primary-btn:hover{background:#c90d00}.hero-art{filter:saturate(.82)}.float-card{border-radius:4px;box-shadow:0 20px 45px #17171720}.card-purple{background:#eb1000}.card-purple span{color:#ffd33d}.card-peach{background:#ffd33d;color:#171717}.card-yellow{background:#212121}.card-yellow span{color:#ffd33d}.card-blue{background:#b8d6e8}.art-orbit{border-color:#d8d5cf}.tools-section{max-width:var(--page-max)}.section-head h2,.bottom-banner h2{font-weight:800;letter-spacing:-1.5px}.filter{border-radius:2px}.filter.active{background:#eb1000;color:white}.filter:hover{background:#fce7e5;color:#b81205}.search-wrap{border-radius:2px}.tool-card{border-radius:3px;border-color:#e7e7e5;box-shadow:none}.tool-card:hover{box-shadow:0 14px 28px #11111110;transform:translateY(-2px)}.tool-icon{border-radius:3px}.icon-lilac{background:#fff0ed;color:#d7190b}.icon-mint{background:#e7f2ec;color:#267552}.icon-peach{background:#fff0e0;color:#b84a32}.icon-yellow{background:#fff6d8;color:#876311}.icon-blue{background:#e7f0f8;color:#376a9e}.icon-pink{background:#f9e8e7;color:#b23c51}.open-tool{color:#d7190b}.bottom-banner{border-radius:3px;background:#171717}.banner-star{border-radius:3px;background:#eb1000;color:#fff}.bottom-banner .eyebrow{color:#ff938b}.banner-link{color:#fff}.modal{border-radius:4px}.action-btn{border-radius:3px;background:#eb1000}.action-btn:hover{background:#c90d00}.field,.textarea{border-radius:3px}.toast{border-radius:3px}

/* Gabungkan Foto: local photo merging workspace. */
.merge-list{display:grid;gap:8px;margin:10px 0 17px;max-height:240px;overflow:auto}
.merge-empty{padding:17px;border:1px dashed #c8c8c5;background:#fafaf8;color:#777;text-align:center;font-size:12px;line-height:1.5}
.merge-item{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px;background:#fafaf8;border:1px solid #e7e7e5}
.merge-thumb{width:50px;height:50px;object-fit:cover;background:#ececea;border:1px solid #dcdcd8}
.merge-item-info{min-width:0}
.merge-item-name{font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.merge-item-meta{font-size:11px;color:#777;margin-top:3px}
.merge-item-actions{display:flex;gap:4px}
.merge-icon-btn{width:30px;height:30px;display:grid;place-items:center;padding:0;border:1px solid #d8d8d5;background:#fff;color:#333;font:600 14px 'DM Sans',sans-serif;cursor:pointer}
.merge-icon-btn:hover:not(:disabled){border-color:#eb1000;color:#c90d00}
.merge-icon-btn:focus-visible{outline:3px solid #eb100055;outline-offset:2px}
.merge-icon-btn:disabled{opacity:.35;cursor:not-allowed}
.merge-remove{color:#a32015}
.merge-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.merge-options .field{min-height:43px}
.merge-options .field-label{margin-top:0}
.merge-gap-range{padding:12px 0;accent-color:#eb1000}
.option-field.is-muted .field{opacity:.5;cursor:not-allowed}
.merge-quality-note{margin:-8px 0 0;color:#777;font-size:11px}
.merge-action{width:100%;min-height:48px;margin-top:18px;font-size:15px}
.compressor-controls #create-button[hidden]{display:none!important}
.merge-action:disabled{opacity:.45;cursor:not-allowed}
.merge-list.is-disabled{pointer-events:none;opacity:.6}
.merge-result-stage{min-height:460px}
.merge-result-placeholder{text-align:center;color:#848484;font-size:13px;padding:25px}
.merge-result-placeholder span{font-size:45px;color:#a7a5a1}
.merge-result-placeholder p{margin:7px 0}
.merge-download{display:block;width:100%;margin-top:12px;padding:12px;text-decoration:none;opacity:.42;pointer-events:none;cursor:not-allowed;filter:grayscale(.45)}
.merge-download.ready{opacity:1;pointer-events:auto;cursor:pointer;filter:none}
html[data-theme="dark"] .merge-empty,html[data-theme="dark"] .merge-item{background:#242424;border-color:#414141;color:#eee}
html[data-theme="dark"] .merge-thumb{background:#333;border-color:#4a4a4a}
html[data-theme="dark"] .merge-item-meta,html[data-theme="dark"] .merge-quality-note{color:#aaa}
html[data-theme="dark"] .merge-icon-btn{background:#2a2a2a;border-color:#555;color:#eee}
html[data-theme="dark"] .merge-icon-btn:hover:not(:disabled){border-color:#eb1000;color:#ff9289}
html[data-theme="dark"] .merge-remove{color:#ff8b81}
html[data-theme="dark"] .merge-result-placeholder{color:#bbb}
html[data-theme="dark"] .merge-result-placeholder span{color:#777}

/* Gabungkan Foto: refinement pass for clearer controls and result states. */
.merge-controls{display:flex;flex-direction:column}
.upload-area{position:relative;padding:34px 26px;transition:border-color .15s,background .15s,transform .15s}
.upload-area:hover,.upload-area.dragging{transform:translateY(-1px)}
.upload-badge{position:absolute;top:10px;right:10px;padding:4px 7px;background:#fff0ed;color:#c7190d;border-radius:2px;font:700 9px Manrope,sans-serif;letter-spacing:.7px}
.upload-icon{box-shadow:0 6px 14px #eb100026}
.selected-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.selected-row .selected-file{margin-bottom:12px}
.merge-clear{flex:0 0 auto;margin-top:9px;padding:3px 0;border:0;background:transparent;color:#c7190d;font:700 12px 'DM Sans',sans-serif;cursor:pointer}
.merge-clear:hover{text-decoration:underline}
.merge-clear[hidden]{display:none}
.merge-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 0;font-size:12px}
.merge-list-heading span{color:#888;font-size:11px;font-weight:500}
html[data-theme="dark"] .merge-list-heading span{color:#aaa}
.pdf-result-stage{min-height:520px;padding:28px;background:#eeedeb;background-image:none;display:flex;align-items:center;justify-content:center}
.pdf-result-stage .pdf-page-preview{display:block;width:auto;max-width:100%;max-height:640px;object-fit:contain;background:#fff;border:1px solid #deddd9;box-shadow:0 8px 24px #17171720}
.pdf-result-stage .pdf-page-preview[hidden]{display:none!important}
.pdf-result-stage .merge-result-placeholder[hidden]{display:none!important}
.pdf-preview-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.pdf-preview-nav[hidden]{display:none!important}
.pdf-preview-nav button{padding:8px 12px;border:1px solid #deddd9;background:#fff;color:#292929;font:600 12px 'DM Sans',sans-serif;cursor:pointer}
.pdf-preview-nav button:disabled{opacity:.45;cursor:not-allowed}
.pdf-preview-nav span{color:#777;font-size:12px;font-weight:600}
.pdf-preview-thumbnails{display:flex;gap:10px;overflow-x:auto;margin-top:12px;padding:3px 2px 8px;scrollbar-width:thin}
.pdf-preview-thumbnails[hidden]{display:none!important}
.pdf-page-thumbnail{flex:0 0 76px;padding:6px;border:1px solid #deddd9;background:#fff;color:#555;text-align:center;cursor:pointer}
.pdf-page-thumbnail img{display:block;width:100%;height:82px;object-fit:contain;background:#f2f1ef}
.pdf-page-thumbnail span{display:block;margin-top:5px;font-size:10px;font-weight:600}
.pdf-page-thumbnail.is-current{border-color:#eb1000;box-shadow:0 0 0 1px #eb1000}
html[data-theme="dark"] .pdf-preview-nav button{background:#252525;border-color:#454545;color:#eee}
html[data-theme="dark"] .pdf-preview-nav span{color:#bbb}
html[data-theme="dark"] .pdf-page-thumbnail{background:#252525;border-color:#454545;color:#eee}
html[data-theme="dark"] .pdf-page-thumbnail img{background:#333}
html[data-theme="dark"] .pdf-result-stage{background:#252525;background-image:none}
html[data-theme="dark"] .pdf-result-stage .pdf-page-preview{border-color:#454545;box-shadow:0 8px 28px #0008}
.merge-empty{padding:20px;font-size:13px}
.merge-item{padding:10px;border-radius:3px;transition:border-color .15s,box-shadow .15s}
.merge-item[draggable="true"]{cursor:grab}
.merge-item.is-dragging{opacity:.45}
.merge-item[draggable="true"] .merge-icon-btn{cursor:pointer}
.merge-item:hover{border-color:#d5d5d1;box-shadow:0 6px 16px #1111110a}
.merge-thumb-wrap{position:relative;width:50px;height:50px;flex:0 0 auto}
.merge-thumb{display:block;width:100%;height:100%}
.merge-order{position:absolute;left:-6px;top:-6px;min-width:19px;height:19px;padding:0 4px;display:grid;place-items:center;background:#171717;color:#fff;border-radius:2px;font:700 10px Manrope,sans-serif}
.merge-item-name{font-size:13px}
.merge-item-meta{margin-top:4px;font-size:11px}
.merge-icon-btn{border-radius:2px}
.option-hint{margin:5px 0 0;color:#8a8a8a;font-size:11px;line-height:1.45}
.merge-quality-note{margin:6px 0 0;line-height:1.45}
.preview-panel{position:relative}
/* Keep standalone tool results in view while visitors adjust long option panels. */
.compressor-workspace>.preview-panel{position:sticky;top:20px;align-self:start}
.merge-result-stage{position:relative;min-height:360px}
.merge-result-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%}
.merge-result-placeholder small{margin-top:4px;color:#9a9a9a;font-size:11px}
.result-badge{display:inline-flex;align-items:center;padding:5px 8px;background:#f2f1ef;color:#666;border-radius:2px;font:700 10px Manrope,sans-serif;letter-spacing:.5px}
.result-badge.ready{background:#e7f2ec;color:#267552}
.result-loading{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:20px;background:#ffffffdf;color:#222;text-align:center}
.result-loading[hidden]{display:none}
.result-spinner{width:30px;height:30px;border:3px solid #eb100033;border-top-color:#eb1000;border-radius:50%;animation:heyfor-spin .7s linear infinite}
.result-loading strong{font:700 14px Manrope,sans-serif}
.result-loading small{color:#777;font-size:12px}
.download-hint{margin:8px 0 0;color:#8a8a8a;font-size:11px;text-align:center}
.merge-again{margin-top:10px}
.merge-again[hidden]{display:none}
html[data-theme="dark"] .upload-badge{background:#3b2725;color:#ff9289}
html[data-theme="dark"] .merge-clear{color:#ff9289}
html[data-theme="dark"] .merge-order{background:#f3f3f3;color:#171717}
html[data-theme="dark"] .option-hint,html[data-theme="dark"] .download-hint,html[data-theme="dark"] .merge-result-placeholder small{color:#aaa}
html[data-theme="dark"] .result-badge{background:#2a2a2a;color:#bbb}
html[data-theme="dark"] .result-badge.ready{background:#20362a;color:#9fdeb9}
html[data-theme="dark"] .result-loading{background:#1c1c1ce8;color:#f3f3f3}
html[data-theme="dark"] .result-loading small{color:#bbb}

/* Ubah Ukuran Foto: local photo resizing workspace. */
.resize-controls{display:flex;flex-direction:column}
.resize-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.resize-options .field{min-height:43px}
.resize-options .field-label{margin-top:0}
.resize-range{padding:12px 0;accent-color:#eb1000}
.resize-dimensions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.resize-toggles{display:flex;flex-direction:column;gap:8px;margin:14px 0 4px}
.resize-check{display:flex;align-items:flex-start;gap:8px;color:#555;font-size:12px;line-height:1.45;cursor:pointer}
.resize-check input{width:15px;height:15px;margin:1px 0 0;accent-color:#eb1000;flex:0 0 auto}
.resize-check span{color:#8a8a8a}
.resize-action{width:100%;min-height:48px;margin-top:14px;font-size:15px}
.resize-action:disabled{opacity:.45;cursor:not-allowed}
.resize-again{margin-top:10px}
.resize-preset{grid-column:1/-1}
.zip-download{display:block;width:100%;margin-top:14px;padding:12px;text-decoration:none;opacity:.42;pointer-events:none;cursor:not-allowed;filter:grayscale(.45)}
.zip-download.ready{opacity:1;pointer-events:auto;cursor:pointer;filter:none}
.resize-again[hidden],#percent-field[hidden],#dimension-fields[hidden],#preset-field[hidden],#keep-ratio-row[hidden],#quality-field[hidden],#dimension-hint[hidden],#jpeg-note[hidden],.zip-download[hidden]{display:none}
html[data-theme="dark"] .resize-check{color:#bbb}
html[data-theme="dark"] .resize-check span{color:#aaa}

/* Responsive system: fluid containers, typography, hamburger navigation, and tool layouts. */
:root{--page-max:1300px}
html{scroll-behavior:smooth}
body{font-size:clamp(14px,1vw + 1px,16px);line-height:1.6;overflow-x:clip}
/* Keep tool controls and supporting copy comfortable to read, especially on phones. */
.compressor-workspace{font-size:18px}
.compressor-controls .field-label,.compressor-options .field-label,.merge-options .field-label,.resize-options .field-label{font-size:clamp(17px,1.2vw,18px);line-height:1.5}
.field,.textarea,.compressor-workspace select{font-size:17px}
.upload-area strong{font-size:clamp(18px,1.35vw,19px)}
.upload-area>span:last-child,.selected-file,.option-hint,.merge-quality-note,.resize-check,.compress-status,.batch-item-status,.preview-empty,.merge-result-placeholder{font-size:16px;line-height:1.6}
.range-hints,.image-details,.batch-item-heading,.merge-list-heading span,.download-hint,.merge-item-meta,.merge-clear,.merge-icon-btn,.pdf-preview-nav button,.pdf-preview-nav span,.pdf-page-thumbnail span{font-size:15px}
.compress-action,.merge-action,.resize-action{font-size:18px}
.preview-heading{font-size:17px}
.compressor-info .steps p,.tool-disclaimer,.tool-guide p{font-size:17px}
img,canvas,video,select,input,textarea{max-width:100%}
img,video{height:auto}
button,input,select,textarea{font-family:inherit}
.topbar,main,footer{width:min(95%,var(--page-max));max-width:var(--page-max);margin-inline:auto}
.topbar{position:relative;z-index:40;height:auto;min-height:82px;padding-inline:clamp(18px,3vw,38px);gap:clamp(12px,2.4vw,30px)}
footer{padding-inline:clamp(18px,3vw,38px)}
.hero{min-height:clamp(420px,52vw,500px);padding:clamp(28px,5vw,62px);border-radius:3px}
.hero h1{font-size:clamp(36px,6vw,78px);line-height:1.02;letter-spacing:clamp(-4px,-.28vw,-1px);overflow-wrap:break-word}
.hero-copy>p{font-size:clamp(16px,1.3vw,18px)}
.hero-art{height:clamp(240px,28vw,360px);max-width:100%;overflow:hidden}
.section-head h2,.bottom-banner h2{font-size:clamp(24px,3vw,34px)}
.compressor-intro h1{font-size:clamp(36px,5vw,52px);letter-spacing:clamp(-3px,-.2vw,-1px)}
.compressor-intro>p{font-size:clamp(15px,1.3vw,17px)}
.compressor-info h2{font-size:clamp(28px,3.2vw,36px)}
.legal-page{max-width:min(1000px,calc(100% - 28px))}
.legal-page h1{font-size:clamp(32px,5vw,58px);letter-spacing:clamp(-3px,-.2vw,-1px)}
.legal-page h2{font-size:clamp(18px,2vw,22px)}
.legal-lead{font-size:clamp(16px,1.6vw,20px)}
.tool-card h3{font-size:clamp(16px,1.4vw,18px)}
.tool-card p{font-size:clamp(12px,1.1vw,13px)}
/* Make the homepage Tools directory comfortable to scan on mobile. */
.tools-section .section-head h2{font-size:clamp(28px,3.4vw,38px)}
.tools-section .section-head p{font-size:clamp(16px,1.4vw,18px);line-height:1.55}
.tools-section .search-wrap input{font-size:16px}
.tools-section .filter{font-size:15px;padding:12px 15px}
.tools-section .tool-card h3{font-size:clamp(20px,1.8vw,22px);line-height:1.3}
.tools-section .tool-card p{font-size:clamp(16px,1.35vw,17px);line-height:1.6}
.tools-section .card-meta{font-size:12px}
.tools-section .open-tool{font-size:15px;min-height:44px}
.field,.textarea,select{min-height:48px;font-size:16px}
.action-btn,.secondary-btn,.download-btn,.top-cta,.theme-toggle,.nav-toggle{min-height:48px;font-size:16px}
.open-tool,.merge-clear{display:inline-flex;align-items:center;min-height:40px}
.color-field{padding:5px 8px;accent-color:#eb1000}
.preview-stage img,.preview-stage canvas,.compress-preview{display:block;max-width:100%;max-height:min(560px,72vh);height:auto;object-fit:contain}

/* Hamburger controls stay hidden until the compact navigation breakpoint. */
.nav-toggle,.nav-close,.nav-mobile-cta{display:none}
.nav-toggle{place-items:center;width:44px;padding:0;border:1px solid #d7d7d5;border-radius:2px;background:transparent;color:#252525;cursor:pointer}
.nav-toggle-icon{font-size:21px;line-height:1}
.nav-toggle-icon::before{content:'☰'}
body.nav-open .nav-toggle-icon::before{content:'×'}
html[data-theme="dark"] .nav-toggle,html[data-theme="dark"] .nav-close{color:#f3f3f3;border-color:#555}

@media(max-width:1200px){
  .topbar{padding-inline:24px}
  .topbar nav.main-menus{gap:clamp(8px,1vw,14px);font-size:14px}
  .top-cta{padding:9px 10px;font-size:12px}
  .tools-section{padding-inline:24px}
  .hero{margin-inline:16px;padding-inline:clamp(28px,4vw,48px)}
  .bottom-banner{margin-inline:16px}
  footer{padding-inline:24px}
  .compressor-page{padding-inline:24px}
  .compressor-workspace{gap:20px;padding:26px}
  .tool-grid{gap:12px}
}

@media(max-width:992px){
  body.nav-open{overflow:hidden}
  body.nav-open::before{content:"";position:fixed;inset:0;background:#0009;z-index:35}
  .topbar{min-height:68px;padding-block:10px;flex-wrap:nowrap}
  .nav-toggle{display:grid}
  .main-menus{position:fixed;top:0;right:0;width:min(88vw,360px);height:100dvh;max-width:100%;padding:64px 18px 24px;display:flex;flex-direction:column;gap:2px;background:#fff;border-left:1px solid var(--line);box-shadow:-18px 0 44px #0002;overflow-y:auto;transform:translateX(102%);visibility:hidden;pointer-events:none;transition:transform .22s ease,visibility 0s linear .22s;z-index:36}
  body.nav-open .main-menus{transform:none;visibility:visible;pointer-events:auto;transition:transform .22s ease,visibility 0s}
  .nav-close{display:grid;place-items:center;position:absolute;top:14px;right:14px;width:40px;height:40px;border:1px solid var(--line);background:#fafaf8;border-radius:2px;font-size:24px;cursor:pointer}
  .main-menus>a,.main-menus>.menu-dropdown>summary{padding:13px 12px;border-bottom:1px solid var(--line);font-size:16px;font-weight:600;white-space:normal}
  .main-menus>a[aria-current="page"]::after,.main-menus>.menu-dropdown-group>a[aria-current="page"]::after{display:none}
  .main-menus>a[aria-current="page"],.main-menus>.menu-dropdown-group>a[aria-current="page"]{background:#fff0ed;color:#c7190d;box-shadow:inset 3px 0 #eb1000}
  .main-menus .submenu a[aria-current="page"]{background:#fff0ed;color:#c7190d;box-shadow:inset 3px 0 #eb1000}
  .main-menus>.menu-dropdown-group{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:0}
  .main-menus>.menu-dropdown-group>a{grid-column:1;grid-row:1;padding:13px 12px;border-bottom:1px solid var(--line);font-size:16px;font-weight:600;white-space:normal}
  .main-menus>.menu-dropdown-group>.menu-dropdown{display:contents}
  .main-menus>.menu-dropdown-group>.menu-dropdown>summary{grid-column:2;grid-row:1;display:grid;place-items:center;width:48px;min-height:48px;padding:0;font-size:20px;border-bottom:1px solid var(--line)}
  .main-menus>.menu-dropdown-group>.menu-dropdown>.submenu{grid-column:1/-1;grid-row:2}
  .main-menus>.menu-dropdown{width:100%}
  .main-menus .submenu{position:static;left:auto;top:auto;min-width:0;width:100%;margin:0;padding:4px 0 10px;border:0;box-shadow:none;background:transparent}
  .main-menus .submenu a{padding:11px 12px 11px 24px;font-size:14px}
  .nav-mobile-cta{display:block;margin-top:18px;padding:13px 12px;border:0;background:#eb1000;color:#fff;text-align:center;font-weight:700;border-radius:2px}
  .nav-mobile-cta span{margin-left:8px}
  .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .compressor-workspace{gap:18px}
  .compressor-options,.merge-options,.resize-options{grid-template-columns:1fr;gap:12px}
  html[data-theme="dark"] .main-menus{background:#1c1c1c;border-left-color:#383838}
  html[data-theme="dark"] .main-menus>a[aria-current="page"],html[data-theme="dark"] .main-menus>.menu-dropdown-group>a[aria-current="page"],html[data-theme="dark"] .main-menus .submenu a[aria-current="page"]{background:#30201e;color:#ff6b60;box-shadow:inset 3px 0 #ff6b60}
  html[data-theme="dark"] .nav-close{background:#252525;color:#eee;border-color:#555}
  html[data-theme="dark"] .main-menus>a,html[data-theme="dark"] .main-menus>.menu-dropdown>summary,html[data-theme="dark"] .main-menus>.menu-dropdown-group>a,html[data-theme="dark"] .main-menus>.menu-dropdown-group>.menu-dropdown{border-bottom-color:#383838}
}

@media(max-width:768px){
  .ad-slot{width:calc(100% - 28px);min-height:108px;margin:24px auto;padding:26px 12px 16px}
  .hero{grid-template-columns:1fr;min-height:auto;padding:32px 24px 24px;margin-inline:14px}
  .hero-copy>p{max-width:none}
  .hero-art{height:260px;max-width:420px;margin:10px auto 0;transform:scale(.9);transform-origin:top center}
  .tools-section{padding:58px 16px 48px}
  .section-head{align-items:flex-start;gap:12px;flex-direction:column}
  .tool-count{display:none}
  .toolbar{flex-direction:column;align-items:stretch;gap:12px}
  .search-wrap{width:100%}
  .filters{overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .filters::-webkit-scrollbar{display:none}
  .filter{white-space:nowrap}
  .bottom-banner{margin:0 14px 45px;padding:22px;flex-wrap:wrap;gap:14px}
  .banner-link{margin-left:0}
  .compressor-page{margin:22px auto 60px;padding-inline:16px}
  .compressor-intro{margin:26px auto}
  .compressor-intro>p{font-size:15px}
  .compressor-workspace{grid-template-columns:1fr;padding:22px;gap:26px}
  .compressor-workspace>.preview-panel{position:static;top:auto}
  .preview-stage,.merge-result-stage{min-height:300px}
  .pdf-result-stage{min-height:400px;padding:18px}
  .steps{grid-template-columns:1fr;gap:12px}
  .compressor-info{margin-top:52px}
  .tool-guide{margin-top:44px;padding:30px 24px}
  .tool-guide p{font-size:16px}
  .legal-page{margin:22px 14px 52px;padding:30px 22px}
  .legal-page section{margin-top:26px}
  .footer-links{gap:12px;flex-wrap:wrap;width:100%;justify-content:center}
  footer{flex-wrap:wrap;justify-content:center;gap:10px;padding-block:18px}
  footer>span:nth-child(2){display:none}
  .modal{padding:24px}
  .merge-list{max-height:220px}
  .upload-area{padding:22px 16px}
  .upload-badge{top:8px;right:8px}
}

@media(max-width:600px){
  .topbar{gap:8px}
  .header-actions{gap:8px}
  .theme-toggle .theme-label{display:none}
  .theme-toggle,.nav-toggle{width:44px;padding:0}
  .header-actions .top-cta{display:none}
  .brand{font-size:18px}
  .brand-mark{width:29px;height:29px}
  .hero{margin-inline:12px;padding:26px 20px 20px}
  .hero-art{height:220px;transform:scale(.82)}
  .filters{flex-wrap:wrap;overflow-x:visible;padding-bottom:0}
  .filter{white-space:normal}
  .tool-grid{grid-template-columns:1fr}
  .tool-card{min-height:0;padding:18px}
  .tool-card p{max-width:none}
  .section-head h2{font-size:clamp(22px,7vw,26px)}
  .bottom-banner{flex-direction:column;align-items:flex-start}
  .banner-link{margin-left:0}
  .compressor-page{padding-inline:12px}
  .compressor-workspace{padding:14px}
  .upload-area{min-height:135px;padding:20px 14px;gap:6px}
  .upload-area strong{font-size:15px}
  .upload-area>span:last-child{font-size:13px}
  .compressor-options,.merge-options,.resize-options{gap:8px}
  .preview-stage,.merge-result-stage{min-height:300px}
  .batch-preview-stage{min-height:200px}
  .image-details{text-align:left}
  .merge-item{grid-template-columns:44px minmax(0,1fr)}
  .merge-thumb,.merge-thumb-wrap{width:44px;height:44px}
  .merge-item-actions{grid-column:1/-1;justify-content:flex-end;padding-top:8px;border-top:1px solid var(--line)}
  .merge-options,.resize-options{grid-template-columns:1fr}
  .resize-dimensions{grid-template-columns:1fr;gap:10px}
  .resize-toggles{gap:10px}
  .selected-row{gap:8px}
  .merge-clear{font-size:11px}
  .modal{padding:20px}
  .modal-row{flex-direction:column}
  .legal-page{padding:24px 18px}
}

@media(max-width:480px){
  .hero h1{font-size:clamp(32px,10vw,42px);letter-spacing:-1.6px}
  .hero-art{height:200px;transform:scale(.72)}
  .compressor-intro h1{font-size:clamp(30px,9vw,42px);letter-spacing:-1.7px}
  .legal-page h1{font-size:clamp(28px,9vw,38px);letter-spacing:-1.4px}
  .compressor-workspace{padding:12px}
  .toolbar{gap:10px}
  .filter{padding:10px 12px}
}

@media(max-width:360px){
  .topbar{padding-inline:12px}
  .brand{font-size:16px;gap:6px}
  .brand-mark{width:26px;height:26px;font-size:16px}
  .main-menus{width:100vw}
  .hero{margin-inline:8px;padding:22px 16px 18px}
  .hero-art{height:180px;transform:scale(.64)}
  .tools-section{padding-inline:12px}
  .tool-card{padding:15px}
  .bottom-banner{margin-inline:8px;padding:18px}
  .compressor-page{padding-inline:8px}
  .compressor-workspace{padding:10px}
  .legal-page{margin-inline:8px;padding:20px 16px}
  .upload-area{padding:16px 10px}
  .preview-stage,.merge-result-stage{min-height:260px}
  .batch-preview-item{padding:10px}
  .modal{padding:16px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .main-menus{transition:none}
  .upload-area,.tool-card,.primary-btn,.action-btn,.secondary-btn{transition:none}
  .action-btn.is-loading::before,.result-spinner{animation-duration:1.8s}
}

/* Branded not-found page. */
.not-found-page{min-height:min(680px,calc(100svh - 157px));padding:64px 24px 84px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.not-found-art{display:flex;align-items:center;justify-content:center;gap:clamp(3px,1.5vw,18px);font:800 clamp(92px,19vw,210px)/.85 Manrope,sans-serif;letter-spacing:-.09em;color:#eb1000;user-select:none}
.not-found-zero{display:grid;place-items:center;width:.76em;height:.76em;border:.075em solid #eb1000;border-radius:50%;font-size:.72em;line-height:1;color:transparent;position:relative}
.not-found-zero::after{content:"";width:.23em;height:.23em;border-radius:50%;background:#eb1000;position:absolute}
.not-found-page .eyebrow{margin-top:34px}
.not-found-page h1{max-width:680px;margin:14px 0 10px;font:800 clamp(30px,5vw,52px)/1.08 Manrope,sans-serif;letter-spacing:-.045em}
.not-found-page>p{max-width:480px;margin:0;color:var(--muted);line-height:1.7}
.not-found-actions{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:28px}
.not-found-actions .primary-btn{min-height:48px;background:#eb1000;box-shadow:none}
.not-found-tools{font-size:14px;font-weight:700;color:#eb1000;text-decoration:underline;text-underline-offset:4px}
html[data-theme="dark"] .not-found-tools{color:#ff7469}
@media(max-width:600px){.not-found-page{min-height:min(620px,calc(100svh - 136px));padding:52px 20px 64px}.not-found-page .eyebrow{margin-top:28px}.not-found-actions{flex-direction:column;gap:18px}.not-found-actions .primary-btn{width:100%;justify-content:center}}

/* Collage page state and retained-photo feedback. */
.collage-workspace .merge-result-stage > [hidden],.collage-workspace .merge-action[hidden],.collage-workspace .merge-again[hidden]{display:none!important}
.merge-item.is-unused{opacity:.58}
html[data-theme="dark"] .merge-item.is-unused{opacity:.62}


.footer-social{display:inline-flex;align-items:center;justify-content:center}
.footer-social svg{display:block}
