:root{--bg:#f7f7fb;--card:#fff;--text:#17171a;--muted:#5f6068;--line:#e5e5eb;--brand:#6d35e8;--soft:#f0eaff;--shadow:0 8px 28px rgba(25,20,50,.06)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Arial,Helvetica,sans-serif;line-height:1.5}a{color:inherit}button,input{font:inherit}.container{width:min(1180px,calc(100% - 28px));margin:auto}.center{text-align:center}
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.header-inner{height:72px;width:min(1240px,calc(100% - 28px));margin:auto;display:flex;align-items:center;gap:14px}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-weight:900;font-size:22px;white-space:nowrap}.brand img{width:36px;height:36px;object-fit:contain;border-radius:10px}.desktop-nav{display:flex;align-items:center;gap:6px;margin-left:auto}.desktop-nav a{padding:9px 12px;border-radius:10px;text-decoration:none;font-weight:700;font-size:14px}.desktop-nav a:hover{background:var(--soft);color:var(--brand)}.header-actions{display:flex;align-items:center;gap:8px;margin-left:6px}.icon-btn,.language-btn{border:1px solid var(--line);background:var(--card);border-radius:13px;min-width:44px;height:44px;cursor:pointer}.language-btn{padding:0 13px;font-weight:800}.language-wrap{position:relative}.language-menu{display:none;position:absolute;right:0;top:52px;width:170px;padding:7px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);z-index:3000}.language-menu.show{display:block}.lang-option{display:block;width:100%;border:0;background:transparent;text-align:left;padding:11px;border-radius:9px;cursor:pointer}.lang-option:hover{background:var(--soft)}
.drawer{position:fixed;left:0;top:0;bottom:0;width:min(330px,88vw);background:var(--card);z-index:2200;transform:translateX(-105%);transition:.22s;box-shadow:20px 0 50px rgba(0,0,0,.12)}.drawer.open{transform:translateX(0)}.drawer-head{height:72px;padding:0 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.drawer-nav{padding:12px}.drawer-nav a{display:block;text-decoration:none;padding:13px 14px;border-radius:10px;font-weight:700}.drawer-nav a:hover{background:var(--soft);color:var(--brand)}.overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:2100;display:none}.overlay.show{display:block}
.hero{padding:46px 0;background:linear-gradient(180deg,#fff,#f5f1ff)}.home-hero{padding:48px 0 44px}.hero-badge{display:inline-flex;align-items:center;padding:8px 14px;border-radius:999px;background:var(--soft);color:var(--brand);font-weight:900;font-size:13px}.hero h1{font-size:clamp(34px,5vw,54px);line-height:1.04;letter-spacing:-1.8px;margin:16px auto;max-width:700px}.hero p{max-width:680px;margin:0 auto 25px;color:var(--muted);font-size:16px}.search-form{display:flex;gap:8px;width:min(560px,100%);margin:18px auto 0}.search-form input{flex:1;min-width:0;padding:11px 13px;border:1px solid #ccc;border-radius:12px;background:#fff;outline:0}.search-form input:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(109,53,232,.1)}.search-form button,.btn{border:0;background:#151515;color:#fff;border-radius:11px;padding:11px 15px;font-weight:850;cursor:pointer;text-decoration:none}.btn.brand{background:var(--brand)}
.section{padding:44px 0}.section.alt{background:#f1f0f5}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.section-head h2{margin:0;font-size:26px;letter-spacing:-.6px}.section-head p{margin:4px 0 0;color:var(--muted)}.text-link{color:var(--brand);font-weight:850;text-decoration:none;white-space:nowrap}
.category-grid,.tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.category-card,.tool-card{min-width:0;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px;text-decoration:none;display:flex;flex-direction:column;gap:6px;box-shadow:0 3px 12px rgba(20,20,40,.025);transition:transform .15s,border-color .15s,box-shadow .15s}.category-card:hover,.tool-card:hover,.post-card:hover{transform:translateY(-2px);border-color:#b8a4f2;box-shadow:var(--shadow)}.category-icon,.tool-icon{font-size:22px;line-height:1}.category-card strong,.tool-card strong{font-size:15px}.category-card small,.tool-card small{color:var(--muted);font-size:12px;line-height:1.4}.tool-card em{font-style:normal;font-size:10px;color:var(--brand);font-weight:850;margin-top:3px}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.post-card{background:var(--card);border:1px solid var(--line);border-radius:15px;overflow:hidden;transition:.15s}.post-card a{text-decoration:none}.post-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.post-body{padding:12px}.post-body h2,.post-body h3{margin:0 0 7px;font-size:18px;line-height:1.25}.post-body p{margin:0 0 9px;color:var(--muted);font-size:14px}.post-body small{color:#5f6068;font-size:12px}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.feature-grid>div{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px}.feature-grid p{margin:5px 0 0;color:var(--muted);font-size:13px}.empty-card{background:var(--card);border:1px dashed #cfcfd8;border-radius:15px;padding:28px;color:var(--muted);grid-column:1/-1}
.article{padding:48px 0}.article-wrap{max-width:850px}.article-wrap h1{font-size:clamp(32px,5vw,54px);line-height:1.1;letter-spacing:-1px}.article-meta{color:#777;font-size:13px}.article-image{display:block;width:100%;max-height:570px;object-fit:cover;border-radius:16px;margin:22px 0}.article-content{font-size:18px;line-height:1.78}.article-content img{max-width:100%;height:auto}.article-content a{color:var(--brand)}.tool-detail-icon{text-align:center;font-size:56px}.mt{margin-top:45px}
.footer{margin-top:40px;background:#17171a;color:#fff;padding:40px 0 18px}.footer-inner{width:min(1180px,calc(100% - 28px));margin:auto;display:flex;justify-content:space-between;gap:30px}.footer-brand{font-size:20px;font-weight:900}.footer p{max-width:480px;color:#bbb}.footer-links{display:flex;flex-wrap:wrap;gap:10px 18px;align-content:flex-start}.footer-links a{color:#ddd;text-decoration:none;font-size:14px}.footer-links a:hover{color:#fff}.copyright{text-align:center;color:#999;border-top:1px solid #333;margin-top:28px;padding-top:15px;font-size:12px}
html.dark{--bg:#101012;--card:#18181b;--text:#f5f5f5;--muted:#aaa;--line:#303035;--soft:#292137}.dark .site-header{background:rgba(24,24,27,.94)}.dark .hero{background:linear-gradient(180deg,#18181b,#17131f)}.dark .section.alt{background:#141416}.dark .search-form input{background:#1c1c20;color:#fff;border-color:#3a3a40}.dark .footer{background:#09090a}
@media(max-width:1050px){.desktop-nav{display:none}.category-grid,.tool-grid{grid-template-columns:repeat(3,1fr)}.post-grid{grid-template-columns:repeat(2,1fr)}.feature-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.header-inner{height:64px}.brand{font-size:19px}.hero{padding:48px 0}.home-hero{padding:38px 0 34px}.hero h1{letter-spacing:-1px;font-size:38px}.section{padding:34px 0}.section-head{align-items:flex-start;flex-direction:column}.category-grid,.tool-grid,.post-grid,.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-card,.tool-card{padding:13px}.search-form{flex-direction:row;gap:6px}.search-form button{width:auto;white-space:nowrap}.footer-inner{flex-direction:column}}@media(max-width:420px){.category-grid,.tool-grid,.post-grid,.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.header-actions{margin-left:auto}.language-btn{min-width:42px;padding:0 8px}.container{width:min(100% - 22px,1180px)}}

@media(max-width:680px){.container{width:min(100% - 20px,1180px)}.hero p{font-size:15px;line-height:1.45}.hero-badge{font-size:11px;padding:7px 11px}.category-card,.tool-card{padding:10px}.category-card strong,.tool-card strong{font-size:14px}.category-card small,.tool-card small{font-size:11px}.search-form input{padding:10px 11px;font-size:14px}.search-form button{padding:10px 12px;font-size:13px}}

/* FINAL HEADER / SIDE CONTROLS FIX */
.site-header{width:100%;}
.header-inner{position:relative;}
#menuBtn{order:1;flex:0 0 44px;}
.brand{order:2;}
.desktop-nav{order:3;}
.header-actions{order:4;margin-left:auto;flex:0 0 auto;}
.language-wrap{position:relative;flex:0 0 auto;}
.language-menu{right:0;left:auto;}
.drawer{left:0;right:auto;transform:translateX(-105%);}
.drawer.open{transform:translateX(0);}
@media(max-width:1050px){
  .desktop-nav{display:none;}
  .header-actions{margin-left:auto;}
}
@media(max-width:680px){
  .header-inner{width:calc(100% - 20px);gap:8px;}
  #menuBtn{margin-right:2px;}
  .brand{font-size:19px;min-width:0;}
  .brand span{overflow:hidden;text-overflow:ellipsis;}
  .header-actions{margin-left:auto;gap:6px;}
  .language-btn,.icon-btn{height:42px;min-width:42px;}
  .language-menu{top:48px;right:0;min-width:155px;}
}

.custom-header-html,.custom-footer-html{width:min(1240px,calc(100% - 28px));margin:0 auto;padding:8px 0}.custom-footer-html{border-top:1px solid #333;margin-top:18px;padding-top:18px;color:#ddd}.custom-header-html:empty,.custom-footer-html:empty{display:none}
.tool-page-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)}
.tool-content{font-size:16px;line-height:1.65}.tool-content h2{font-size:25px;margin:28px 0 10px}.tool-content h3{font-size:19px;margin:20px 0 8px}.tool-content input,.tool-content select,.tool-content textarea{max-width:100%;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--text)}.tool-content button,.tool-launch .btn{border:0;border-radius:10px;padding:11px 16px;font-weight:800;cursor:pointer}.tool-content img{max-width:100%;height:auto}.tool-page-card figure{margin:0 0 18px}.tool-page-card figcaption{color:var(--muted);font-size:12px;margin-top:-14px;margin-bottom:15px}.tool-launch{text-align:center;padding:35px 10px}

/* =========================================================
   AnishTools Professional Tool / Post / Page Layout
   Compact, clean, mobile-first UI inspired by modern utility
   sites. Home layout remains unchanged.
   ========================================================= */
.tool-hero,.post-hero,.page-hero{
  padding:28px 0 22px;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.tool-hero-inner,.post-hero-inner,.page-hero-inner{
  max-width:920px;
  margin:auto;
  text-align:center;
}
.tool-top-icon{
  width:52px;height:52px;
  margin:0 auto 10px;
  display:grid;place-items:center;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:14px;
  font-size:28px;
  box-shadow:0 4px 14px rgba(20,20,40,.05);
}
.tool-hero .hero-badge,.post-hero .hero-badge,.page-hero .hero-badge{
  margin-bottom:8px;
  font-size:12px;
  padding:6px 11px;
}
.tool-hero h1,.post-hero h1,.page-hero h1{
  margin:5px auto 7px;
  font-size:clamp(28px,4.5vw,42px);
  line-height:1.08;
  letter-spacing:-1px;
  max-width:850px;
}
.tool-hero p,.post-hero p,.page-hero p{
  margin:0 auto;
  max-width:700px;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}
.tool-main,.post-main,.page-main{
  padding:24px 0 42px;
}
.tool-shell,.article-shell,.page-shell{
  width:min(900px,calc(100% - 28px));
  margin:auto;
}
.tool-workspace{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  box-shadow:0 5px 20px rgba(20,20,40,.045);
}
.tool-content{
  font-size:15px;
  line-height:1.6;
}
.tool-content h2{font-size:21px;margin:22px 0 9px}
.tool-content h3{font-size:17px;margin:18px 0 7px}
.tool-content p{margin:8px 0}
.tool-content input,.tool-content select,.tool-content textarea{
  width:100%;max-width:100%;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--card);
  color:var(--text);
}
.tool-content button,.tool-launch .btn{
  border:0;border-radius:9px;
  padding:11px 16px;
  font-weight:800;
  cursor:pointer;
}
.tool-content img{max-width:100%;height:auto}
.tool-featured{
  margin:0 0 16px;
}
.tool-featured img{
  display:block;width:100%;
  max-height:420px;object-fit:cover;
  border-radius:12px;
}
.tool-featured figcaption{
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
}
.tool-seo-content{
  margin-top:16px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
}
.tool-seo-content h2{margin-top:0}
.tool-meta-row{
  display:flex;justify-content:center;gap:7px;flex-wrap:wrap;
  margin-top:11px;
}
.tool-meta-chip{
  padding:5px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:11px;
  color:var(--muted);
  background:var(--card);
}
.article-shell,.page-shell{max-width:900px}
.article-card,.page-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  box-shadow:0 5px 20px rgba(20,20,40,.045);
}
.article-card h1,.page-card h1{font-size:clamp(28px,4.5vw,42px);line-height:1.12;margin:0 0 8px}
.article-meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-bottom:14px}
.article-image{
  width:100%;max-height:500px;object-fit:cover;
  border-radius:12px;margin:0 0 18px;
}
.article-content,.page-content{font-size:16px;line-height:1.72}
.article-content h2,.page-content h2{font-size:24px;margin:28px 0 9px}
.article-content h3,.page-content h3{font-size:19px;margin:20px 0 7px}
.article-content img,.page-content img{max-width:100%;height:auto;border-radius:10px}
.article-content table,.page-content table{display:block;overflow-x:auto;max-width:100%}
.article-content a,.page-content a{color:var(--brand)}
@media(max-width:680px){
  .tool-hero,.post-hero,.page-hero{padding:22px 0 18px}
  .tool-hero h1,.post-hero h1,.page-hero h1{font-size:30px}
  .tool-main,.post-main,.page-main{padding:16px 0 30px}
  .tool-workspace,.article-card,.page-card,.tool-seo-content{padding:14px;border-radius:14px}
  .article-content,.page-content{font-size:15px;line-height:1.65}
  .tool-top-icon{width:46px;height:46px;font-size:25px}
}

/* =========================================================
   GLOBAL TOOL-FIRST LAYOUT — applies to every tool page
   ========================================================= */
.tool-title-bar{padding:12px 0 8px;background:var(--bg);border-bottom:1px solid var(--line)}
.tool-title-row{display:flex;align-items:center;gap:11px;width:min(1050px,calc(100% - 22px));margin:auto}
.tool-mini-icon{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;border:1px solid var(--line);background:var(--card);border-radius:12px;font-size:23px}
.tool-title-copy{min-width:0}
.tool-category-label{font-size:10px;font-weight:800;color:var(--brand);text-transform:uppercase;letter-spacing:.4px}
.tool-title-copy h1{margin:1px 0 2px;font-size:clamp(24px,3.5vw,34px);line-height:1.08;letter-spacing:-.7px}
.tool-title-copy p{margin:0;color:var(--muted);font-size:13px;line-height:1.4}
.global-tool-title + .tool-main{padding-top:12px}
.tool-main{padding-bottom:34px}
.tool-shell{width:min(1050px,calc(100% - 22px));margin:auto}
.tool-workspace{padding:14px;border-radius:14px}
@media(max-width:680px){.tool-title-bar{padding:9px 0 6px}.tool-title-row{gap:9px}.tool-mini-icon{width:40px;height:40px;flex-basis:40px;font-size:21px}.tool-title-copy h1{font-size:24px}.tool-title-copy p{font-size:12px}.global-tool-title + .tool-main{padding-top:9px}.tool-shell{width:min(100% - 16px,1050px)}}

/* FINAL GLOBAL TOOL-FIRST OVERRIDE — all tools */
.global-tool-title,.tool-title-bar{padding:5px 0 4px!important;background:var(--bg)!important;border-bottom:1px solid var(--line)!important}
.global-tool-title .tool-title-row,.tool-title-bar .tool-title-row{gap:0!important;min-height:0!important}
.global-tool-title .tool-mini-icon,.tool-title-bar .tool-mini-icon{display:none!important}
.global-tool-title .tool-category-label,.tool-title-bar .tool-category-label{display:none!important}
.global-tool-title .tool-title-copy h1,.tool-title-bar .tool-title-copy h1,.tool-title-bar .tool-title-row h1{margin:0!important;font-size:clamp(22px,3vw,30px)!important;line-height:1.08!important;letter-spacing:-.5px!important}
.global-tool-title .tool-title-copy p,.tool-title-bar .tool-title-copy p,.tool-title-bar .tool-title-row p{margin:2px 0 0!important;font-size:12px!important;line-height:1.35!important}
.global-tool-title + .tool-main,.tool-title-bar + .tool-main{padding-top:7px!important}
@media(max-width:680px){.global-tool-title,.tool-title-bar{padding:4px 0 3px!important}.global-tool-title .tool-title-copy h1,.tool-title-bar .tool-title-copy h1,.tool-title-bar .tool-title-row h1{font-size:22px!important}.global-tool-title .tool-title-copy p,.tool-title-bar .tool-title-copy p,.tool-title-bar .tool-title-row p{font-size:11px!important}}

/* Tool SEO content rendered below the interactive tool */
.tool-seo-content{max-width:1100px;margin:24px auto 0;padding:28px;background:#fff;border:1px solid #e1e1e1;border-radius:18px;line-height:1.75;color:#222}
.tool-seo-content h2{font-size:28px;line-height:1.25;margin:28px 0 12px}
.tool-seo-content h2:first-child{margin-top:0}
.tool-seo-content h3{font-size:21px;line-height:1.35;margin:22px 0 10px}
.tool-seo-content p{margin:0 0 15px}
.tool-seo-content ul,.tool-seo-content ol{padding-left:24px;margin:0 0 18px}
.tool-seo-content li{margin:7px 0}
.tool-seo-content table{width:100%;border-collapse:collapse;margin:18px 0}
.tool-seo-content th,.tool-seo-content td{border:1px solid #ddd;padding:10px;text-align:left}
.tool-seo-content a{text-decoration:underline}
@media(max-width:700px){.tool-seo-content{margin:18px 12px 0;padding:20px;border-radius:14px}.tool-seo-content h2{font-size:24px}.tool-seo-content h3{font-size:19px}}

/* Core Web Vitals: intrinsic dimensions are emitted server-side; keep responsive rendering. */
.tool-content img{display:block;max-width:100%;height:auto}
.tool-featured img{height:auto}

/* 2026.09.14 UI/SEO upgrade */
.hero-pills{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:18px}.hero-pills span{padding:6px 10px;border:1px solid var(--line);background:var(--card);border-radius:999px;font-size:11px;color:var(--muted)}
.home-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,var(--card),var(--soft));box-shadow:var(--shadow)}.home-cta h2{margin:8px 0 5px;font-size:28px}.home-cta p{margin:0;color:var(--muted);max-width:650px}@media(max-width:680px){.home-cta{align-items:flex-start;flex-direction:column}.home-cta h2{font-size:24px}}
.tool-howto{margin-top:16px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 5px 20px rgba(20,20,40,.04)}.tool-howto h2{margin:0 0 12px;font-size:23px}.tool-howto-body{font-size:15px;line-height:1.7}.tool-howto-body ol,.tool-howto-body ul{padding-left:23px}.tool-howto-body li{margin:7px 0}
.post-toc{margin:0 0 20px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}.post-toc strong{display:block;margin-bottom:8px}.post-toc ol{margin:0;padding-left:20px}.post-toc li{margin:5px 0}.post-toc .toc-l3{margin-left:12px;font-size:14px}
.seo-checks{display:grid;gap:6px;margin-top:12px}.seo-row{display:flex;gap:8px;align-items:flex-start;padding:8px 9px;border:1px solid var(--line);border-radius:9px;font-size:12px}.seo-row>span{width:19px;height:19px;border-radius:50%;display:grid;place-items:center;font-weight:900;flex:0 0 19px}.seo-row.ok>span{background:#dff7e7;color:#168343}.seo-row.bad>span{background:#ffe1e1;color:#b00020}.seo-row small{display:block;color:#777;margin-top:2px;line-height:1.35}.seo-row.bad{background:#fff9f9}.dark .seo-row.bad{background:#25191b}

.tool-faq,.related-tools{margin-top:16px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px}.tool-faq h2,.related-tools h2{margin:0 0 12px;font-size:23px}.tool-faq details{border-top:1px solid var(--line);padding:11px 0}.tool-faq details:first-of-type{border-top:0}.tool-faq summary{cursor:pointer;font-weight:800}.tool-faq details div{padding:8px 0 0;color:var(--muted);line-height:1.65}.related-tools .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:680px){.related-tools .tool-grid{grid-template-columns:1fr 1fr}.tool-faq,.related-tools{padding:14px;border-radius:14px}}
/* Missing public tool header styles — keep title immediately above the tool */
.tool-breadcrumb-bar{background:var(--bg);border-bottom:1px solid var(--line);padding:7px 0}.tool-breadcrumb{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--muted)}.tool-breadcrumb a{text-decoration:none;color:var(--brand);font-weight:800}.tool-heading{padding:12px 0 8px;background:var(--bg)}.tool-heading h1{margin:0;font-size:clamp(24px,4vw,34px);line-height:1.1;letter-spacing:-.6px}.tool-heading p{margin:4px 0 0;color:var(--muted);font-size:13px}.global-tool-page .tool-main{padding-top:8px}.global-tool-page .tool-shell{width:min(1050px,calc(100% - 22px))}.global-tool-page .tool-workspace{box-shadow:0 5px 18px rgba(20,20,40,.04)}
@media(max-width:680px){.tool-breadcrumb-bar{padding:5px 0}.tool-heading{padding:8px 0 5px}.tool-heading h1{font-size:23px}.global-tool-page .tool-shell{width:calc(100% - 16px)}}


/* CLEAN HOME UI — 12px base text, compact and lightweight */
html,body{font-size:12px}
body{line-height:1.45}
.container{width:min(1120px,calc(100% - 24px))}
.site-header{box-shadow:0 1px 8px rgba(20,20,40,.035)}
.header-inner{height:60px;gap:9px}
.brand{font-size:18px;gap:7px}.brand img{width:30px;height:30px;border-radius:8px}
.desktop-nav{gap:2px}.desktop-nav a{font-size:12px;padding:7px 9px}
.icon-btn,.language-btn{min-width:38px;height:38px;border-radius:10px}.language-btn{padding:0 9px;font-size:12px}
.header-actions{gap:5px}
.clean-hero{padding:42px 0 38px;background:linear-gradient(180deg,#fff 0%,#faf8ff 100%);border-bottom:1px solid var(--line)}
.clean-hero h1{margin:12px auto 6px;font-size:clamp(30px,5vw,46px);line-height:1.05;letter-spacing:-1.4px}
.clean-hero p{margin:0 auto 16px;max-width:620px;font-size:12px;color:var(--muted)}
.hero-badge{font-size:10px;padding:6px 10px}
.clean-search{width:min(520px,100%);margin:14px auto 0;gap:6px}.clean-search input{padding:10px 12px;font-size:12px;border-radius:10px}.clean-search button{padding:10px 14px;font-size:12px;border-radius:10px}
.hero-pills{gap:6px;margin-top:12px}.hero-pills span{font-size:10px;padding:5px 8px}
.clean-section{padding:30px 0}.clean-tools{background:#fafafd}
.section-head{margin-bottom:14px;gap:12px}.section-head h2{font-size:19px;letter-spacing:-.3px}.section-head p{font-size:11px;margin-top:2px}.text-link{font-size:11px}
.clean-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.clean-card{border-radius:10px;padding:10px;gap:5px;box-shadow:none;min-height:92px;transition:transform .14s ease,border-color .14s ease,background .14s ease}
.clean-card:hover{transform:translateY(-1px);box-shadow:0 5px 16px rgba(30,20,60,.05)}
.category-icon,.tool-icon{font-size:20px}.category-card strong,.tool-card strong{font-size:12px}.category-card small,.tool-card small{font-size:10px;line-height:1.35}.tool-card em{font-size:9px;margin-top:2px}
.clean-posts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.post-card{border-radius:11px;box-shadow:none}.post-body{padding:10px}.post-body h2,.post-body h3{font-size:14px;margin-bottom:5px}.post-body p{font-size:11px;margin-bottom:6px}.post-body small{font-size:10px}
.clean-cta{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--card)}.clean-cta h2{font-size:20px;margin:6px 0 4px}.clean-cta p{font-size:11px;margin:0;color:var(--muted)}
.btn{font-size:12px;padding:9px 13px;border-radius:9px}
.empty-card{padding:20px;font-size:11px;border-radius:11px}
.footer{margin-top:24px;padding:28px 0 14px}.footer-brand{font-size:16px}.footer p{font-size:11px}.footer-links{gap:7px 13px}.footer-links a{font-size:10px}.copyright{font-size:10px;margin-top:18px;padding-top:10px}
@media(max-width:1050px){.clean-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.clean-posts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
 .container{width:calc(100% - 18px)}.header-inner{height:56px;width:calc(100% - 18px)}.brand{font-size:16px}.brand img{width:28px;height:28px}.desktop-nav{display:none}.icon-btn,.language-btn{height:36px;min-width:36px}
 .clean-hero{padding:32px 0 28px}.clean-hero h1{font-size:32px}.clean-hero p{font-size:12px}.clean-section{padding:24px 0}.section-head{align-items:center;flex-direction:row}.section-head h2{font-size:17px}.section-head p{font-size:10px}.section-head>div{min-width:0}.section-head .text-link{flex:0 0 auto}
 .clean-grid,.clean-posts{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.clean-card{min-height:88px;padding:9px}.category-card strong,.tool-card strong{font-size:12px}.category-card small,.tool-card small{font-size:10px}.tool-card em{font-size:8px}
 .clean-cta{padding:15px;align-items:flex-start;flex-direction:column}.clean-cta h2{font-size:18px}.clean-cta p{font-size:10px}
 .post-body h2,.post-body h3{font-size:13px}.post-body p{font-size:10px}.post-body small{font-size:9px}
}

/* ============================================================
   FINAL TOOL-FIRST PAGE LAYOUT
   Title -> working tool -> How to Use -> SEO content -> FAQ -> related
   No breadcrumb/intro block between the title and the tool.
   ============================================================ */
.tool-title-first{padding:14px 0 8px;background:var(--bg)}
.tool-title-first h1{margin:0;font-size:clamp(22px,3.2vw,30px);line-height:1.12;letter-spacing:-.55px;font-weight:900}
.global-tool-page .tool-main,.standalone-tool-page .tool-main{padding-top:4px;padding-bottom:24px}
.global-tool-page .tool-shell,.standalone-tool-page .tool-shell{width:min(1050px,calc(100% - 22px));margin:0 auto}
.global-tool-page .tool-workspace,.standalone-tool-page .tool-workspace{margin:0}
.tool-title-first + .tool-main .tool-workspace{box-shadow:0 4px 16px rgba(20,20,40,.035)}
/* Keep the visible UI compact while allowing actual tool controls to size naturally. */
.global-tool-page,.standalone-tool-page{font-size:12px}
.global-tool-page .tool-content,.standalone-tool-page .tool-content{font-size:12px}
@media(max-width:680px){
  .tool-title-first{padding:10px 0 6px}
  .tool-title-first h1{font-size:22px;line-height:1.1;letter-spacing:-.35px}
  .global-tool-page .tool-main,.standalone-tool-page .tool-main{padding-top:2px;padding-bottom:18px}
  .global-tool-page .tool-shell,.standalone-tool-page .tool-shell{width:calc(100% - 12px)}
}

/* ============================================================
   HOME V2 — clean SaaS homepage
   Compact, visual, lightweight. Tool discovery is the priority.
   ============================================================ */
.home-v2{font-size:12px;background:var(--bg);overflow:hidden}
.home-v2-wrap{width:min(1160px,calc(100% - 28px));margin:0 auto}
.home-v2-hero{background:linear-gradient(135deg,#fff 0%,#fbf9ff 58%,#f3efff 100%);border-bottom:1px solid var(--line)}
.hero-layout{min-height:430px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.75fr);align-items:center;gap:55px;padding:58px 0}
.hero-copy{max-width:650px}.mini-label{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid #e4d9ff;background:#fff;border-radius:999px;color:var(--brand);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.7px}.mini-label span{width:6px;height:6px;background:var(--brand);border-radius:50%}
.hero-copy h1{margin:14px 0 10px;font-size:clamp(36px,5vw,58px);line-height:.98;letter-spacing:-2.6px;font-weight:850;color:var(--text)}.hero-copy h1 strong{color:var(--brand)}.hero-copy p{max-width:570px;margin:0;color:var(--muted);font-size:14px;line-height:1.65}
.home-v2-search{display:flex;align-items:center;width:min(590px,100%);height:50px;margin-top:22px;padding:5px 5px 5px 14px;background:#fff;border:1px solid #ded9e8;border-radius:14px;box-shadow:0 8px 28px rgba(50,35,80,.07)}.home-v2-search>span{font-size:22px;color:#777;margin-right:8px}.home-v2-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:13px;color:var(--text)}.home-v2-search button{height:40px;padding:0 19px;border:0;border-radius:10px;background:#171719;color:#fff;font-size:12px;font-weight:800;cursor:pointer}.trust-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:13px;color:var(--muted);font-size:10px}.trust-row span:first-child{color:#16834a;font-weight:700}
.hero-panel{justify-self:end;width:min(390px,100%);padding:16px;border:1px solid #e2dcec;border-radius:22px;background:rgba(255,255,255,.82);box-shadow:0 20px 55px rgba(55,35,90,.11);transform:rotate(1deg)}.hero-panel-top{height:30px;display:flex;align-items:center;gap:5px;color:#777;font-size:10px}.hero-panel-top b{margin-left:auto;color:#29252f;font-size:11px}.dot{width:7px;height:7px;border-radius:50%;background:#ddd}.hero-panel-search{height:43px;display:flex;align-items:center;padding:0 12px;background:#f8f6fb;border:1px solid #e9e4f0;border-radius:11px;color:#96919e;font-size:11px}.hero-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.hero-mini-grid i{height:83px;padding:12px;border:1px solid #e8e4ee;border-radius:13px;background:#fff;font-style:normal;font-size:24px;color:var(--brand);display:flex;flex-direction:column;justify-content:space-between}.hero-mini-grid small{font-size:10px;color:#666;font-weight:700}
.home-v2-section{padding:42px 0}.categories-v2{background:var(--card)}.v2-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:17px}.eyebrow{display:block;margin-bottom:4px;color:var(--brand);font-size:9px;font-weight:900;letter-spacing:1.3px}.v2-heading h2{margin:0;font-size:23px;letter-spacing:-.7px}.v2-heading p{margin:3px 0 0;color:var(--muted);font-size:11px}.v2-heading>a{font-size:11px;color:var(--brand);font-weight:800;text-decoration:none;white-space:nowrap}.v2-category-row{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.v2-category{min-height:82px;padding:12px 8px;border:1px solid var(--line);border-radius:13px;background:var(--bg);text-decoration:none;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;transition:.16s ease}.v2-category:hover{transform:translateY(-2px);border-color:#cbb8ef;box-shadow:0 8px 20px rgba(60,40,90,.07)}.v2-category span{font-size:21px}.v2-category b{font-size:10px;text-align:center;line-height:1.25}
.tools-v2{background:#f8f8fb}.v2-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.v2-tool{min-width:0;min-height:88px;padding:13px;display:flex;align-items:center;gap:11px;background:var(--card);border:1px solid var(--line);border-radius:14px;text-decoration:none;transition:.16s ease}.v2-tool:hover{transform:translateY(-2px);border-color:#cbb8ef;box-shadow:0 9px 22px rgba(50,35,75,.07)}.v2-tool-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:11px;background:var(--soft);font-size:20px}.v2-tool-info{min-width:0;display:flex;flex-direction:column;gap:3px}.v2-tool-info b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v2-tool-info small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v2-tool-info em{font-size:9px;color:var(--brand);font-style:normal;font-weight:700}.v2-arrow{margin-left:auto;color:#aaa;font-size:16px}.all-tools-btn{padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--card)}
.quick-v2{background:var(--card);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.quick-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:55px;align-items:center}.quick-grid h2{margin:0;font-size:26px;letter-spacing:-.8px}.quick-grid>div:first-child p{max-width:470px;color:var(--muted);font-size:11px;line-height:1.65}.quick-points{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.quick-points>div{display:flex;gap:8px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}.quick-points strong{font-size:10px;color:var(--brand)}.quick-points span{display:flex;flex-direction:column;gap:3px}.quick-points b{font-size:11px}.quick-points small{font-size:9px;color:var(--muted);line-height:1.4}
.posts-v2{background:#f8f8fb}.v2-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.v2-post{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--card)}.v2-post a{text-decoration:none}.v2-post img{display:block;width:100%;aspect-ratio:16/8.8;object-fit:cover}.v2-post> a>div{padding:12px}.v2-post small{font-size:9px;color:var(--brand);font-weight:700}.v2-post h3{margin:5px 0;font-size:13px;line-height:1.3}.v2-post p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}.v2-empty{padding:18px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:11px;grid-column:1/-1}
html.dark .home-v2-hero{background:linear-gradient(135deg,#151517,#1b1624)}html.dark .mini-label,.dark .home-v2-search,.dark .hero-panel,.dark .hero-panel-search,.dark .hero-mini-grid i{background:var(--card);border-color:var(--line)}html.dark .hero-panel-top b{color:var(--text)}html.dark .tools-v2,html.dark .posts-v2{background:#121214}
@media(max-width:900px){.hero-layout{grid-template-columns:1fr;min-height:auto;padding:45px 0}.hero-panel{display:none}.v2-category-row{grid-template-columns:repeat(4,1fr)}.quick-grid{grid-template-columns:1fr;gap:20px}}
@media(max-width:680px){.home-v2-wrap{width:calc(100% - 18px)}.home-v2-section{padding:28px 0}.hero-layout{padding:34px 0 31px}.hero-copy h1{font-size:38px;letter-spacing:-1.7px}.hero-copy p{font-size:12px;line-height:1.55}.home-v2-search{height:46px;margin-top:17px}.home-v2-search button{height:36px;padding:0 14px}.trust-row{gap:8px 12px}.v2-heading h2{font-size:19px}.v2-heading{margin-bottom:13px}.v2-category-row{grid-template-columns:repeat(4,1fr);gap:6px}.v2-category{min-height:70px;padding:8px 4px;border-radius:10px;gap:5px}.v2-category span{font-size:18px}.v2-category b{font-size:9px}.v2-tool-grid{grid-template-columns:1fr 1fr;gap:7px}.v2-tool{min-height:78px;padding:9px;gap:8px;border-radius:11px}.v2-tool-icon{width:34px;height:34px;flex-basis:34px;font-size:17px;border-radius:9px}.v2-tool-info b{font-size:11px}.v2-tool-info small{font-size:9px}.v2-tool-info em{font-size:8px}.v2-arrow{font-size:13px}.quick-points{grid-template-columns:1fr}.quick-grid h2{font-size:22px}.v2-post-grid{grid-template-columns:1fr}.v2-post{display:block}.v2-post img{aspect-ratio:16/7}.all-tools-btn{padding:6px 8px}}

/* FINAL POLISH — centered tool title + compact professional footer */
.tool-title-first{padding:8px 0 5px!important;background:var(--bg)!important;border:0!important;text-align:center}
.tool-title-first .container{display:flex;justify-content:center}
.tool-title-first h1{margin:0!important;font-size:clamp(22px,3vw,30px)!important;line-height:1.08!important;letter-spacing:-.45px!important;text-align:center}
.global-tool-page .tool-main,.standalone-tool-page .tool-main{padding-top:2px!important;padding-bottom:16px!important}
.global-tool-page .tool-shell,.standalone-tool-page .tool-shell{width:min(1050px,calc(100% - 20px))}
.global-tool-page .tool-workspace,.standalone-tool-page .tool-workspace{padding:12px!important}
.tool-howto,.tool-faq,.related-tools{margin-top:12px!important;padding:16px!important}

.footer{margin-top:20px!important;padding:28px 0 0!important;background:#121214!important}
.footer-inner{width:min(1120px,calc(100% - 28px));display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:28px!important;align-items:start}
.footer-brand{font-size:17px!important;line-height:1.25}
.footer p{font-size:11px!important;line-height:1.55!important;margin:9px 0 0!important;color:#aaa!important;max-width:390px}
.footer-links{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 14px!important}
.footer-links a{font-size:11px!important;line-height:1.35;color:#ccc!important;padding:1px 0}
.footer-links a:hover{color:#fff!important}
.copyright{margin-top:22px!important;padding:11px 14px 13px!important;font-size:10px!important;color:#888!important;background:#0d0d0f;border-top:1px solid #29292c}
@media(max-width:680px){
 .tool-title-first{padding:7px 0 4px!important}
 .tool-title-first h1{font-size:21px!important}
 .global-tool-page .tool-shell,.standalone-tool-page .tool-shell{width:calc(100% - 12px)}
 .global-tool-page .tool-workspace,.standalone-tool-page .tool-workspace{padding:9px!important}
 .footer{padding-top:22px!important}
 .footer-inner{display:block!important;width:calc(100% - 28px)!important}
 .footer-brand{text-align:center;font-size:17px!important}
 .footer p{text-align:center;max-width:none!important;margin:8px auto 16px!important}
 .footer-links{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px 10px!important;text-align:center}
 .footer-links a{font-size:10px!important}
 .copyright{margin-top:18px!important}
}


/* 2026.09.14 FINAL LAYOUT FIX — title directly above tool, compact spacing */
.global-tool-page .tool-title-first,
.standalone-tool-page .tool-title-first{
  padding: 10px 0 6px !important;
  margin: 0 !important;
  background: var(--bg) !important;
  border: 0 !important;
  text-align: center !important;
}
.global-tool-page .tool-title-first .container,
.standalone-tool-page .tool-title-first .container{
  width: min(1050px, calc(100% - 20px)) !important;
  margin: 0 auto !important;
  display: block !important;
}
.global-tool-page .tool-title-first h1,
.standalone-tool-page .tool-title-first h1{
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(24px, 3vw, 30px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.55px !important;
  text-align: center !important;
}
.global-tool-page .tool-main,
.standalone-tool-page .tool-main{
  padding: 0 0 18px !important;
  margin: 0 !important;
}
.global-tool-page .tool-shell,
.standalone-tool-page .tool-shell{
  width: min(1050px, calc(100% - 20px)) !important;
  margin: 0 auto !important;
}
.global-tool-page .tool-workspace,
.standalone-tool-page .tool-workspace{
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 16px !important;
}
/* The working tool should remain visually first; don't create an artificial top gap. */
.global-tool-page .tool-featured{margin:0 0 10px !important}
.global-tool-page .tool-content > :first-child{margin-top:0 !important}
.global-tool-page .tool-content h1:first-child,
.global-tool-page .tool-content h2:first-child,
.global-tool-page .tool-content h3:first-child{margin-top:0 !important}

/* Compact lower sections */
.global-tool-page .tool-howto,
.global-tool-page .tool-seo-content,
.global-tool-page .tool-faq,
.global-tool-page .related-tools{
  margin-top: 12px !important;
}
.global-tool-page .tool-howto h2,
.global-tool-page .tool-faq h2,
.global-tool-page .related-tools h2{
  font-size: 20px !important;
}
.global-tool-page .tool-howto-body{font-size:12px !important;line-height:1.6 !important}

/* Professional compact footer */
.footer{margin-top:18px !important;padding:24px 0 0 !important}
.footer-inner{width:min(1050px,calc(100% - 24px)) !important;grid-template-columns:1fr 2fr !important;gap:24px !important}
.footer-brand{font-size:17px !important}
.footer p{font-size:11px !important;line-height:1.5 !important;margin:7px 0 0 !important}
.footer-links{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:7px 12px !important}
.footer-links a{font-size:10px !important}
.copyright{margin-top:18px !important;padding:10px 12px 12px !important;font-size:10px !important}
@media(max-width:680px){
  .global-tool-page .tool-title-first,
  .standalone-tool-page .tool-title-first{padding:7px 0 4px !important}
  .global-tool-page .tool-title-first .container,
  .standalone-tool-page .tool-title-first .container{width:calc(100% - 16px) !important}
  .global-tool-page .tool-title-first h1,
  .standalone-tool-page .tool-title-first h1{font-size:23px !important;line-height:1.08 !important}
  .global-tool-page .tool-shell,
  .standalone-tool-page .tool-shell{width:calc(100% - 12px) !important}
  .global-tool-page .tool-workspace,
  .standalone-tool-page .tool-workspace{padding:9px !important;border-radius:14px !important}
  .footer{padding-top:20px !important}
  .footer-inner{display:block !important;width:calc(100% - 24px) !important}
  .footer-brand{text-align:center !important;font-size:16px !important}
  .footer p{text-align:center !important;max-width:520px !important;margin:7px auto 14px !important}
  .footer-links{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:7px 8px !important;text-align:center !important}
  .footer-links a{font-size:10px !important}
}
