/* ==========================================================================
   ToolNest Pro - main stylesheet
   ========================================================================== */

:root {
	--brand: #4f46e5;
	--brand-d: #4338ca;
	--brand-l: #eef0ff;
	--brand-ring: rgba(79, 70, 229, .22);
	--ink: #161a26;
	--ink-2: #373e50;
	--muted: #667085;
	--line: #e6e8f0;
	--line-2: #d3d8e3;
	--bg: #f6f7fb;
	--soft: #f1f3f8;
	--card: #fff;
	--ok: #15803d;
	--ok-l: #e8f7ee;
	--err: #c62828;
	--err-l: #fdecec;
	--warn: #b45309;
	--r: 14px;
	--r-sm: 10px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
	--shadow-lg: 0 18px 40px -14px rgba(16, 24, 40, .22);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--hdr: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, canvas, video { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }
h1, h2, h3, h4 { line-height: 1.22; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.tn-ic { flex: none; vertical-align: middle; }
.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow, .narrow { max-width: 860px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent;
	font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none;
	background: var(--card); color: var(--ink); transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
	white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--brand-l); color: var(--brand-d); }
.btn-soft:hover { background: #e0e3ff; color: var(--brand-d); }
.btn-danger { background: #fff; border-color: #f3c3c3; color: var(--err); }
.btn-danger:hover { background: var(--err-l); color: var(--err); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 13px 24px; font-size: 16.5px; }
.btn-xl { padding: 18px 40px; font-size: 20px; border-radius: 14px; box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .7); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
	border: 0; background: transparent; color: var(--ink-2);
}
.icon-btn:hover { background: var(--soft); color: var(--brand); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.hdr { position: relative; display: flex; align-items: center; gap: 22px; height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.02em; flex: none; }
.brand:hover { color: var(--ink); }
.brand-logo { max-height: 44px; width: auto; display: block; }
.brand-mark {
	display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff;
	background: linear-gradient(135deg, #6366f1, #8b5cf6 60%, #ec4899);
	box-shadow: 0 6px 14px -6px rgba(99, 102, 241, .7);
}
.brand-name { white-space: nowrap; }
.main-nav { flex: 1; min-width: 0; }
.nav-head { display: none; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item.mega-wide { position: static; }
.nav-btn, .nav-link, .nav-list > .menu-item > a {
	display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px; border-radius: 9px;
	border: 0; background: transparent; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.nav-btn:hover, .nav-link:hover, .nav-list > .menu-item > a:hover, .nav-item.open > .nav-btn { color: var(--brand); background: var(--soft); }
.nav-btn .chev { transition: transform .2s; opacity: .7; }
.nav-item.open > .nav-btn .chev { transform: rotate(180deg); }
.mega {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
	width: 520px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
	box-shadow: var(--shadow-lg); display: none;
}
.mega-wide > .mega { left: 20px; right: 20px; width: auto; top: calc(var(--hdr) - 4px); }
.nav-item.open > .mega { display: block; animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 14px; }
.mega-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 8px 8px; }
.mega-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.mega-link { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.mega-link:hover { background: var(--soft); color: var(--ink); }
.mini-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--c, var(--brand)); color: #fff; flex: none; }
.mega-all { display: inline-flex; align-items: center; gap: 6px; margin: 12px 8px 2px; font-weight: 600; font-size: 14px; }
.hdr-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu-toggle { display: none; }
.hdr-search { border-top: 1px solid var(--line); background: #fff; padding: 14px 0 18px; }
.hdr-search .search-box { max-width: none; margin: 0; }
.search-results { max-width: 760px; }
.hdr-search .search-results { margin-top: 10px; }
.search-results a {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink);
}
.search-results a:hover, .search-results a.is-active { background: var(--soft); }
.search-results .r-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.search-results .r-name { font-weight: 600; }
.search-results .r-cat { font-size: 13px; color: var(--muted); margin-left: auto; }
.search-results .r-empty { padding: 10px 12px; color: var(--muted); }
.inline-results { max-width: 560px; margin: 10px auto 0; text-align: left; background: #fff; border-radius: 12px; }
.inline-results:empty { display: none; }
.nav-overlay { position: fixed; inset: 0; background: rgba(12, 16, 30, .45); z-index: 110; }

@media (max-width: 1080px) {
	.menu-toggle { display: inline-grid; }
	.main-nav {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(380px, 90vw);
		background: #fff; overflow-y: auto; transform: translateX(105%); transition: transform .25s ease;
		box-shadow: -20px 0 40px rgba(0, 0, 0, .15); padding: 0 14px 30px;
	}
	body.nav-open .main-nav { transform: none; }
	body.nav-open { overflow: hidden; }
	body.nav-open .site-header { z-index: 130; }
	.nav-head { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); border-bottom: 1px solid var(--line); margin: 0 -14px 10px; padding: 0 10px 0 20px; }
	.nav-title { font-weight: 700; }
	.nav-list { flex-direction: column; align-items: stretch; }
	.nav-btn, .nav-link, .nav-list > .menu-item > a { width: 100%; justify-content: space-between; padding: 13px 10px; font-size: 16px; }
	.mega, .mega-wide > .mega { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px 6px; animation: none; }
	.mega-cols, .mega-list { grid-template-columns: 1fr; }
}

/* ---------- Search box, pills ---------- */
.search-box {
	display: flex; align-items: center; gap: 10px; max-width: 580px; margin: 0 auto;
	background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 20px; height: 54px;
	color: var(--muted); box-shadow: var(--shadow);
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.search-box input, .search-box input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); height: 100%; padding: 0; box-shadow: none; border-radius: 0; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.pill {
	border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 8px 18px;
	font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: all .15s;
}
.pill:hover { border-color: var(--ink-2); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 54px 0 30px; }
.hero-sm { padding: 34px 0 20px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; max-width: 900px; margin: 0 auto 14px; }
.hero-text { color: var(--muted); font-size: 18.5px; max-width: 760px; margin: 0 auto 26px; }
.hero-sm .crumbs { justify-content: center; }
.big-404 { font-size: 90px; font-weight: 900; line-height: 1; margin: 0 0 8px; background: linear-gradient(135deg, #6366f1, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Tool cards ---------- */
.tools-section { padding-bottom: 30px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tool-card {
	display: flex; flex-direction: column; gap: 8px; padding: 20px; min-height: 172px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tool-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tool-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--c); color: #fff; margin-bottom: 6px; }
.tool-name { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; }
.tool-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.no-results { text-align: center; color: var(--muted); padding: 30px 0; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 34px 0 14px; }
.group-title .dot { width: 12px; height: 12px; border-radius: 4px; }

.sec-title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.02em; margin: 44px 0 20px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 22px; white-space: nowrap; }

/* ---------- Features & categories ---------- */
.features { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px; padding: 10px 0 50px; }
.features .sec-title { text-align: center; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat { padding: 22px; border-radius: var(--r); background: var(--bg); }
.feat h3 { font-size: 18px; margin: 14px 0 6px; }
.feat p { color: var(--muted); font-size: 15px; margin: 0; }
.feat-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-l); color: var(--brand); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); transition: all .15s; }
.cat-card:hover { border-color: var(--c); color: var(--ink); box-shadow: var(--shadow-lg); }
.cat-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--c); color: #fff; margin-bottom: 8px; }
.cat-name { font-weight: 700; font-size: 17px; }
.cat-count { font-size: 14px; color: var(--muted); }
.cat-strip { padding-bottom: 20px; }
.home-about { padding: 30px 20px 10px; }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-grid.two { grid-template-columns: repeat(2, 1fr); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-thumb { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eef0ff, #fdf2f8); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-ph { display: grid; place-items: center; width: 100%; height: 100%; color: #a5a9d9; }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.post-card-title { font-size: 19px; margin: 6px 0 8px; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--brand); }
.post-excerpt { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.post-meta { color: var(--muted); font-size: 13.5px; margin: auto 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dotsep { opacity: .6; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; padding: 10px 0 50px; }
.sidebar { position: sticky; top: calc(var(--hdr) + 20px); }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 20px; }
.side-title { font-size: 17px; margin-bottom: 12px; }
.side-tools, .side-posts, .side-box ul { list-style: none; margin: 0; padding: 0; }
.side-tools a { display: flex; align-items: center; gap: 10px; padding: 7px 4px; color: var(--ink-2); font-weight: 500; border-radius: 8px; }
.side-tools a:hover { color: var(--brand); }
.side-posts li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.side-posts li:last-child { border: 0; }
.side-posts a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.search-form { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.search-form input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; outline: 0; }
.search-form button { border: 0; background: var(--brand); color: #fff; padding: 0 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border: 0; }
.widget h2, .widget .wp-block-heading { font-size: 17px; margin: 0 0 12px; }
.wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.wp-block-search__label { font-weight: 700; display: block; margin-bottom: 6px; }
.wp-block-search__button { border: 0; border-radius: 10px; background: var(--brand); color: #fff; padding: 0 14px; font-weight: 600; }
.empty-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 36px; text-align: center; }
.nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.nav-links .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }

.single-post { min-width: 0; }
.post-head { padding: 26px 0 10px; }
.post-head h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.025em; }
.post-hero-img { margin: 10px 0 26px; }
.post-hero-img img { border-radius: var(--r); width: 100%; }
.post-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 34px 38px; }
.post-tags { margin: 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags a { background: #fff; border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.share { display: flex; align-items: center; gap: 8px; margin: 20px 0; color: var(--muted); font-weight: 600; }
.share a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.share a:hover { color: var(--brand); border-color: var(--brand); }
.author-box { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 20px 0; }
.author-box img { border-radius: 50%; }
.author-name { font-weight: 700; margin-bottom: 4px; }
.author-box p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Pages & prose ---------- */
.page-hero { padding: 34px 0 10px; }
.page-hero .hero-text { margin: 0 0 10px; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.025em; }
.page-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 34px 38px; margin-bottom: 30px; }
.page-thumb { border-radius: 12px; margin-bottom: 20px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .5; }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 26px; margin: 38px 0 12px; font-weight: 800; letter-spacing: -.02em; }
.prose h3 { font-size: 21px; margin: 30px 0 10px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose img { border-radius: 12px; }
.prose blockquote { margin: 24px 0; padding: 14px 22px; border-left: 4px solid var(--brand); background: var(--brand-l); border-radius: 0 12px 12px 0; color: var(--ink); }
.prose pre { background: #0f1222; color: #e5e7f0; padding: 16px 18px; border-radius: 12px; overflow: auto; font-size: 14px; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--soft); }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.alignwide { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.wp-caption-text { font-size: 14px; color: var(--muted); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span, .lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field small, .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 400; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=password], input[type=search], input[type=date], input[type=month], input[type=tel], input[type=color], select, textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
	font-size: 15px; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
input[type=color] { padding: 3px; height: 42px; cursor: pointer; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
input[type=range] { width: 100%; accent-color: var(--brand); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 17px; height: 17px; vertical-align: -3px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; cursor: pointer; }
.fgrid { display: grid; gap: 14px; }
.fgrid.two { grid-template-columns: 1fr 1fr; }
.fgrid.three { grid-template-columns: repeat(3, 1fr); }
.fgrid.four { grid-template-columns: repeat(4, 1fr); }
.fgrid .field { margin-bottom: 0; }
.form-note { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 15px; }
.form-note.ok { background: var(--ok-l); color: var(--ok); }
.form-note.err { background: var(--err-l); color: var(--err); }
.form-note.info { background: var(--brand-l); color: var(--brand-d); }
.form-small { font-size: 13.5px; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 34px; margin-bottom: 40px; }

/* ---------- Comments ---------- */
.comments { margin-top: 30px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.comment-list .children { list-style: none; padding-left: 20px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; }
.comment-respond { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form p { margin-bottom: 14px; }

/* ---------- Tool page ---------- */
.tool-hero { text-align: center; padding: 30px 0 10px; }
.tool-hero .crumbs { justify-content: center; }
.tool-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.tool-sub { font-size: 18.5px; color: var(--muted); max-width: 720px; margin: 0 auto 22px; }
.tool-wrap { padding-bottom: 36px; }
.tn-app {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
	box-shadow: var(--shadow); min-height: 300px;
}
.tn-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 300px; color: var(--muted); }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 16px 0 0; text-align: center; }
.privacy-note .tn-ic { color: var(--ok); }
.tool-info { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 46px 0 36px; }
.steps { list-style: none; padding: 0 !important; margin: 0 0 28px; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); padding: 14px 16px; border-radius: 12px; margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.why-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 16px; line-height: 1.5; }
.why-list .tn-ic { color: var(--brand); margin-top: 2px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 15px 44px 15px 18px; font-weight: 700; color: var(--ink); list-style: none; position: relative; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 18px 16px; margin: 0; font-size: 16px; }
.tool-extra { margin: 20px 0; }
.related { padding-bottom: 50px; }

/* ---------- Ads, cookie bar, toast ---------- */
.ad-slot { margin: 22px auto; text-align: center; max-width: 1240px; padding: 0 20px; overflow: hidden; }
.ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9aa1b2; margin-bottom: 4px; }
.cookie-bar {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 760px; margin: 0 auto;
	display: flex; align-items: center; gap: 16px; background: var(--ink); color: #e8eaf2; padding: 14px 16px 14px 20px;
	border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14.5px;
}
.cookie-bar p { margin: 0; flex: 1; }
.cookie-bar a { color: #c7c9ff; text-decoration: underline; }
.toast {
	position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 300;
	background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14.5px;
	opacity: 0; transition: all .25s; pointer-events: none; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { background: var(--err); }

/* ---------- Footer ---------- */
.site-footer { background: #0e1120; color: #b6bccd; margin-top: 50px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 30px; padding-top: 54px; padding-bottom: 36px; }
.brand-light, .brand-light:hover { color: #fff; }
.foot-brand p { margin: 16px 0; max-width: 330px; line-height: 1.6; }
.foot-h { color: #fff; font-weight: 700; margin-bottom: 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { color: #b6bccd; }
.foot-col a:hover { color: #fff; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #dfe3ee; }
.social a:hover { background: var(--brand); color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; padding-bottom: 24px; font-size: 14px; }
.foot-bottom p { margin: 0; }
.foot-cats { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-cats a { color: #b6bccd; }
.foot-cats a:hover { color: #fff; }

/* ==========================================================================
   Tool UI
   ========================================================================== */
.spinner { width: 22px; height: 22px; border: 3px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.spinner.lg { width: 54px; height: 54px; border-width: 5px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* File picker stage */
.ft-pick { text-align: center; padding: 64px 24px 58px; border-radius: 18px; }
.ft-pick .ft-ico { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 20px; background: var(--c, var(--brand)); color: #fff; margin-bottom: 22px; box-shadow: 0 14px 28px -12px var(--c, var(--brand)); }
.ft-hint { color: var(--muted); margin: 16px 0 0; font-size: 15.5px; }
.ft-formats { color: #98a0b3; font-size: 13.5px; margin-top: 6px; }
.tn-app.drag-over { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.tn-app.drag-over .ft-pick { background: var(--brand-l); }
.drop-veil { position: absolute; inset: 0; display: none; place-items: center; background: rgba(238, 240, 255, .92); border-radius: 18px; z-index: 30; font-size: 22px; font-weight: 700; color: var(--brand-d); pointer-events: none; }
.tn-app.drag-over .drop-veil { display: grid; }

/* Work stage */
.ft-work { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 460px; }
.ft-main { padding: 20px; background: var(--soft); border-radius: 18px 0 0 18px; min-width: 0; }
.ft-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ft-toolbar .left, .ft-toolbar .right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ft-count { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.ft-side { border-left: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ft-side h3 { font-size: 21px; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ft-opts { display: flex; flex-direction: column; gap: 16px; }
.ft-opts .field { margin: 0; }
.ft-go { margin-top: auto; padding: 18px 0 4px; position: sticky; bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff 28%); z-index: 3; }
.ft-go .btn { width: 100%; padding: 16px; font-size: 18px; border-radius: 12px; }
.ft-error { margin: 0; }
.opt-note { font-size: 13.5px; color: var(--muted); background: var(--bg); padding: 10px 12px; border-radius: 10px; margin: 0; }
.choices { display: grid; gap: 8px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.choices.cols-3 { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: block; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: #fff; transition: all .12s; }
.choice > span small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-l); color: var(--brand-d); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-ring); }
.seg { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--brand-d); box-shadow: var(--shadow); }

/* File cards */
.ft-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.fcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; transition: box-shadow .15s, opacity .15s; }
.fcard:hover { box-shadow: var(--shadow-lg); }
.fcard.dragging { opacity: .4; }
.fcard.drop-before { box-shadow: -4px 0 0 var(--brand); }
.fcard[draggable=true] { cursor: grab; }
.fthumb { height: 176px; display: flex; align-items: center; justify-content: center; background: #fafbfd; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.fthumb canvas, .fthumb img { max-width: 100%; max-height: 100%; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); background: #fff; }
.fthumb .ph { color: #b3b9c8; }
.fname { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.fmeta { font-size: 12px; color: var(--muted); }
.fx { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(22, 26, 38, .78); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .15s; z-index: 2; }
.fcard:hover .fx, .fcard:focus-within .fx { opacity: 1; }
.fmove { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.fmove button { border: 1px solid var(--line); background: #fff; border-radius: 7px; width: 30px; height: 26px; display: grid; place-items: center; color: var(--ink-2); padding: 0; }
.fmove button:hover { color: var(--brand); border-color: var(--brand); }
.fbadge { position: absolute; top: 8px; left: 8px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 7px; z-index: 2; }
@media (hover: none) { .fx { opacity: 1; } }

/* Busy & done stages */
.ft-busy, .ft-done { text-align: center; padding: 64px 24px; }
.ft-busy h2, .ft-done h2 { font-size: 26px; margin: 18px 0 8px; }
.ft-busy p { color: var(--muted); }
.bar { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; max-width: 420px; margin: 18px auto 0; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #8b5cf6); border-radius: 99px; transition: width .25s; }
.done-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ok-l); color: var(--ok); }
.done-info { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.done-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.save-badge { display: inline-block; background: var(--ok-l); color: var(--ok); padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; margin-left: 6px; }
.dl-list { max-width: 620px; margin: 20px auto 0; text-align: left; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dl-row:last-child { border: 0; }
.dl-row .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 600; }
.dl-row .s { font-size: 13px; color: var(--muted); white-space: nowrap; }
.dl-list.scroll { max-height: 320px; overflow-y: auto; }

/* Page thumbnails grid (PDF) */
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 14px; }
.pg { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 6px; text-align: center; user-select: none; transition: box-shadow .12s, opacity .12s; }
.pg .pthumb { height: 168px; display: flex; align-items: center; justify-content: center; }
.pg canvas { max-width: 100%; max-height: 100%; box-shadow: 0 1px 6px rgba(0, 0, 0, .15); transition: transform .2s; background: #fff; }
.pg .pnum { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.pg.clickable { cursor: pointer; }
.pg.sel { box-shadow: 0 0 0 3px var(--brand); border-color: var(--brand); }
.pg.sel::after { content: ""; position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.pg.del { box-shadow: 0 0 0 3px var(--err); border-color: var(--err); }
.pg.del .pthumb { opacity: .35; }
.pg.del::after { content: ""; position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--err) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 13px no-repeat; }
.pg .ptools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; z-index: 2; }
.pg:hover .ptools, .pg:focus-within .ptools { opacity: 1; }
@media (hover: none) { .pg .ptools { opacity: 1; } }
.ptools button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(22, 26, 38, .8); color: #fff; display: grid; place-items: center; padding: 0; }
.ptools button:hover { background: var(--brand); }
.pg.blank .pthumb::before { content: "Blank page"; display: grid; place-items: center; width: 110px; height: 150px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .15); color: var(--muted); font-size: 12px; }
.pg .src-tag { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--c, #8e4ec6); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }

/* PDF page editor (sign / edit / redact / crop) */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 560px; }
.ed-stage { background: #e8eaf0; border-radius: 18px 0 0 18px; padding: 16px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ed-nav { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); flex-wrap: wrap; }
.ed-scroll { overflow: auto; flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 6px; max-height: 78vh; }
.ed-page { position: relative; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); background: #fff; flex: none; touch-action: none; }
.ed-page canvas { display: block; }
.ed-layer { position: absolute; inset: 0; }
.ed-layer.adding { cursor: crosshair; }
.ed-item { position: absolute; outline: 1.5px dashed rgba(79, 70, 229, .75); cursor: move; touch-action: none; user-select: none; }
.ed-item.on { outline: 2px solid var(--brand); }
.ed-item .h { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; background: #fff; border: 2px solid var(--brand); border-radius: 4px; cursor: nwse-resize; }
.ed-item .k { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--err); color: #fff; display: none; place-items: center; padding: 0; }
.ed-item.on .k { display: grid; }
.ed-item .txt { white-space: pre; line-height: 1.15; pointer-events: none; }
.ed-item img { width: 100%; height: 100%; display: block; pointer-events: none; }
.ed-item.redact { background: #000; outline-color: #ef4444; }
.ed-item.whiteout { background: #fff; outline-color: #9ca3af; }
.ed-crop { position: absolute; border: 2px solid var(--brand); box-shadow: 0 0 0 9999px rgba(15, 18, 34, .45); cursor: move; touch-action: none; }
.ed-crop .h { position: absolute; width: 16px; height: 16px; background: #fff; border: 2px solid var(--brand); border-radius: 4px; }
.ed-crop .h.nw { left: -9px; top: -9px; cursor: nwse-resize; }
.ed-crop .h.ne { right: -9px; top: -9px; cursor: nesw-resize; }
.ed-crop .h.sw { left: -9px; bottom: -9px; cursor: nesw-resize; }
.ed-crop .h.se { right: -9px; bottom: -9px; cursor: nwse-resize; }
.crop-stage .ed-crop .h.nw { left: -2px; top: -2px; }
.crop-stage .ed-crop .h.ne { right: -2px; top: -2px; }
.crop-stage .ed-crop .h.sw { left: -2px; bottom: -2px; }
.crop-stage .ed-crop .h.se { right: -2px; bottom: -2px; }
.ed-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-tools .btn { justify-content: flex-start; }
.ed-tools .btn.on { border-color: var(--brand); background: var(--brand-l); color: var(--brand-d); }
.sig-pad { width: 100%; height: 170px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; display: block; }
.sig-preview { display: flex; align-items: center; justify-content: center; min-height: 70px; background: var(--bg); border-radius: 10px; padding: 8px; }
.sig-preview img { max-height: 64px; }

/* Text tools */
.tt { padding: 24px; }
.tt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tt textarea.big, .big-area { min-height: 240px; font-size: 15.5px; line-height: 1.6; }
.mono, textarea.mono { font-family: var(--mono); font-size: 14px; }
.tt-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tt-bar .btn { font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.out-wrap { position: relative; }
.out-wrap .copy-btn { position: absolute; top: 8px; right: 8px; }
.result-line { font-size: 14.5px; color: var(--muted); margin: 8px 0 0; }
.diff-out { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.7; max-height: 560px; overflow: auto; }
.diff-out ins, ins.add { background: #d8f5e1; color: #14532d; text-decoration: none; border-radius: 3px; }
.diff-out del, del.rem { background: #fde2e2; color: #8f1d1d; border-radius: 3px; }
.diff-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.diff-side .col { min-width: 0; }
.diff-side .col + .col { border-left: 1px solid var(--line); }
.diff-side .hd { background: var(--soft); font-weight: 700; padding: 8px 12px; font-size: 13.5px; }
.dl { display: flex; gap: 10px; padding: 3px 10px; white-space: pre-wrap; word-break: break-word; min-height: 1.6em; }
.dl .ln { color: #a0a6b6; font-family: var(--mono); font-size: 12px; min-width: 34px; text-align: right; user-select: none; }
.dl.rem { background: #fdecec; }
.dl.add { background: #e7f8ed; }
.dl.gap { background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 6px, #f1f3f7 6px, #f1f3f7 12px); }
.kw-table, .tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kw-table th, .kw-table td, .tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.kw-table th, .tbl th { background: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); position: sticky; top: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.meter { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.meter i.warn { background: #f59e0b; }
.meter i.bad { background: var(--err); }
.len-info { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; }
.len-info.warn { color: var(--warn); }
.len-info.bad { color: var(--err); }

/* Code output */
.code-out { position: relative; }
.code-out pre, pre.code { background: #0f1222; color: #e3e6f0; border-radius: 12px; padding: 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; overflow: auto; margin: 0; white-space: pre-wrap; word-break: break-all; max-height: 520px; }
.code-out .copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .12); color: #fff; border: 0; }
.code-out .copy-btn:hover { background: var(--brand); color: #fff; }

/* SERP preview */
.serp { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-family: Arial, sans-serif; }
.serp.mobile { max-width: 400px; }
.serp .s-site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.serp .s-fav { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; font-size: 12px; color: #5f6368; font-weight: 700; flex: none; }
.serp .s-name { font-size: 14px; color: #202124; line-height: 1.2; }
.serp .s-url { font-size: 12px; color: #4d5156; line-height: 1.3; word-break: break-all; }
.serp .s-title { font-size: 20px; color: #1a0dab; line-height: 1.3; margin: 2px 0 4px; }
.serp.mobile .s-title { font-size: 18px; }
.serp .s-desc { font-size: 14px; color: #4d5156; line-height: 1.58; }
.serp-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 18px 0 8px; }

/* Calculators */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.calc-form { padding: 26px; border-right: 1px solid var(--line); }
.calc-out { padding: 26px; background: linear-gradient(180deg, #f8f8ff, #fff); border-radius: 0 18px 18px 0; }
.big-num { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; color: var(--brand-d); line-height: 1.15; margin: 4px 0 6px; word-break: break-word; }
.big-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin-top: 18px; font-size: 15.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.formula { font-size: 14px; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; margin-top: 16px; }
.bmi-scale { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 18px 0 6px; position: relative; }
.bmi-scale span { flex: 1; }
.bmi-marker { position: relative; height: 16px; }
.bmi-marker i { position: absolute; top: 0; width: 3px; height: 16px; background: var(--ink); border-radius: 2px; transform: translateX(-1px); }
.row-list .row { display: grid; grid-template-columns: 2fr 1fr 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 18px; overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 10px 16px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 15px; }
.tab.on { color: var(--brand-d); border-bottom-color: var(--brand); }
.pad { padding: 24px; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.swatch { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: #fff; padding: 0; text-align: left; }
.swatch i { display: block; height: 56px; }
.swatch span { display: block; padding: 6px 8px; font-family: var(--mono); font-size: 12.5px; }
.img-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; background: repeating-conic-gradient(#eef0f4 0 25%, #fff 0 50%) 0 0 / 18px 18px; border-radius: 8px; }
.img-stage canvas, .img-stage img { max-width: 100%; max-height: 64vh; display: block; }
.picker-lens { position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .35); pointer-events: none; image-rendering: pixelated; display: none; }
.color-big { display: flex; gap: 14px; align-items: center; }
.color-big i { width: 70px; height: 70px; border-radius: 14px; border: 1px solid var(--line); flex: none; }
.pw-out { font-family: var(--mono); font-size: 20px; padding: 16px; background: var(--bg); border-radius: 12px; word-break: break-all; display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pw-strength { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.pw-strength i { display: block; height: 100%; transition: width .2s; }
.ocr-progress { font-size: 14px; color: var(--muted); }
.preview-frame { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.thumb-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-0 { margin-bottom: 0 !important; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.foot-grid { grid-template-columns: 1fr 1fr 1fr; }
	.foot-brand { grid-column: 1 / -1; }
	.feat-grid { grid-template-columns: 1fr 1fr; }
	.post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.blog-layout { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.ft-work, .ed, .calc, .panel-grid { grid-template-columns: 1fr; }
	.ft-main, .ed-stage { border-radius: 18px 18px 0 0; }
	.ft-side { border-left: 0; border-top: 1px solid var(--line); }
	.calc-form { border-right: 0; border-bottom: 1px solid var(--line); }
	.calc-out { border-radius: 0 0 18px 18px; }
	.ed-scroll { max-height: 70vh; }
}
@media (max-width: 720px) {
	body { font-size: 15.5px; }
	.wrap { padding: 0 16px; }
	.hdr { gap: 10px; }
	.brand { font-size: 18px; }
	.hero { padding: 36px 0 22px; }
	.hero-text, .tool-sub { font-size: 16.5px; }
	.tool-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.tool-card { padding: 14px; min-height: 0; }
	.tool-desc { font-size: 13px; }
	.tool-ico { width: 40px; height: 40px; }
	.post-grid, .post-grid.two { grid-template-columns: 1fr; }
	.fgrid.two, .fgrid.three, .fgrid.four, .two-col, .why-list, .diff-side { grid-template-columns: 1fr; }
	.diff-side .col + .col { border-left: 0; border-top: 1px solid var(--line); }
	.feat-grid { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.post-body, .page-body, .contact-box { padding: 22px 18px; }
	.ft-pick { padding: 44px 16px; }
	.btn-xl { padding: 16px 28px; font-size: 18px; }
	.ft-files { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
	.fthumb { height: 140px; }
	.pg-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
	.pg .pthumb { height: 128px; }
	.tt, .calc-form, .calc-out, .pad { padding: 18px; }
	.choices.cols-3 { grid-template-columns: 1fr 1fr; }
	.row-list .row { grid-template-columns: 1fr 1fr; }
	.cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
	.foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
	.tool-grid { grid-template-columns: 1fr; }
}

/* search box inputs must stay borderless */
.search-box input[type=search]:focus { box-shadow: none; border: 0; }
