/* crazysud.store bar + footer on every tool page. build.py adds the markup to each tool in dist/ (not to Hisaab or PDF Studio);
   assets/likes.js puts the heart and share buttons into .cs-acts. */
@font-face{font-family:"CS Bricolage";font-weight:800;font-display:swap;src:url(/assets/fonts/bricolage-latin-800.woff2) format("woff2")}
@font-face{font-family:"CS Inter";font-weight:100 900;font-display:swap;src:url(/assets/fonts/inter-latin-var.woff2) format("woff2")}
.cs-bar{position:sticky;top:0;z-index:999;background:#fff;border-bottom:1px solid #E3E6EC;font-family:"CS Inter",system-ui,sans-serif;color:#111318;-webkit-font-smoothing:antialiased}
.cs-bar .cs-in{max-width:1280px;margin:0 auto;height:60px;padding:0 max(16px,env(safe-area-inset-left,0px));display:flex;align-items:center;gap:12px}
.cs-home{display:flex;align-items:center;gap:8px;text-decoration:none;color:#111318;flex:none;min-height:44px}
.cs-home .cs-bk{width:18px;height:18px;color:#5A6070}
.cs-home .cs-mk{width:34px;height:34px;border-radius:10px;background:#111318;color:#FF7A3D;display:flex;align-items:center;justify-content:center;font:800 18px "CS Bricolage",sans-serif}
.cs-home .cs-wm{font:800 18px "CS Bricolage",sans-serif;letter-spacing:-.02em}
.cs-home .cs-wm b{color:#C2410C;font-weight:800}
.cs-sep{width:1px;height:28px;background:#E3E6EC;flex:none}
.cs-tool{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.cs-tool img{width:34px;height:34px;border-radius:9px;box-shadow:0 1px 4px rgba(17,19,24,.2);flex:none}
.cs-tool .cs-nm{font:700 17px/1.2 "CS Inter",system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-acts{position:relative;display:flex;gap:8px;flex:none}
.cs-b{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:44px;min-width:44px;padding:0 12px;border-radius:999px;border:1px solid #E3E6EC;background:#fff;color:#111318;font:600 14px "CS Inter",system-ui,sans-serif;cursor:pointer}
.cs-b svg{width:17px;height:17px;flex:none}
.cs-b.cs-like .n{font-weight:700}
.cs-bar-pop{position:absolute;right:0;top:calc(100% + 10px);z-index:1000;display:flex;gap:8px;padding:10px;border-radius:18px;background:#fff;border:1px solid #E3E6EC;box-shadow:0 10px 24px rgba(17,19,24,.14)}
.cs-bar-pop .cs-b{text-decoration:none;white-space:nowrap}
.cs-b:hover{border-color:#111318}
@media (max-width:560px){.cs-home .cs-wm,.cs-sep{display:none}.cs-bar .cs-in{gap:8px}.cs-tool{gap:8px}
  .cs-tool .cs-nm{font-size:15px;line-height:1.15;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}
/* the tool's old logo header is replaced by the bar */
body.cs-has-bar header.top,body.cs-has-bar .k-top .k-logo,body.cs-has-bar .k-top .k-tool,body.cs-has-bar .cs-lk,
body.cs-has-bar a.logo,body.cs-has-bar nav.top:not(:has(.lede)),body.cs-has-bar nav.top .ttl>:not(.lede),
body.cs-has-bar .head .hrow>.ttl{display:none!important}
body.cs-has-bar nav.top:has(.lede){padding-top:8px;padding-bottom:0;min-height:0}
/* store footer */
.cs-foot{margin-top:40px;border-top:1px solid #E3E6EC;background:#fff;font-family:"CS Inter",system-ui,sans-serif}
.cs-foot .cs-in{max-width:1280px;margin:0 auto;padding:20px max(16px,env(safe-area-inset-left,0px)) calc(20px + env(safe-area-inset-bottom,0px));display:flex;flex-wrap:wrap;gap:10px 24px;align-items:center;justify-content:space-between;font-size:14px;color:#5A6070}
.cs-foot a{color:#111318;font-weight:600;display:inline-flex;align-items:center;min-height:44px}
.cs-foot .cs-lk2{display:flex;gap:18px;flex-wrap:wrap}
body.cs-has-bar footer .wordmark,body.cs-has-bar .k-foot{display:none}
