/* GrowthPi — site styles */
:root {
  --ink: #0f1b13;
  --ink-2: #172a1d;
  --green: #1e8e3e;
  --green-deep: #146c2e;
  --green-bright: #43b452;
  --lime: #7ed349;
  --mint: #eaf6ec;
  --mint-2: #d7eedb;
  --gold: #f2b51c;
  --bg: #ffffff;
  --surface: #f6faf6;
  --card: #ffffff;
  --text: #13201a;
  --muted: #5a6b60;
  --line: #e1e9e3;
  --line-2: #cfdcd3;
  --focus: #2b7cff;
  --shadow: 0 1px 2px rgba(15, 27, 19, .05), 0 8px 24px -12px rgba(15, 27, 19, .18);
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Poppins", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b130e; --surface: #0f1a13; --card: #121f17; --text: #e5eee8; --muted: #9db0a3;
    --line: #213328; --line-2: #2c4334; --mint: #163322; --mint-2: #1d4029; --green: #2fa84f; --green-deep: #5cc56f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b130e; --surface: #0f1a13; --card: #121f17; --text: #e5eee8; --muted: #9db0a3;
  --line: #213328; --line-2: #2c4334; --mint: #163322; --mint-2: #1d4029; --green: #2fa84f; --green-deep: #5cc56f;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(82.5rem, 100% - 2 * clamp(1rem, 4vw, 3rem)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.ic { width: 24px; height: 24px; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 32px; height: 32px; }
.block { margin-block: 28px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem/1 var(--font); padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { background: #24913f; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #e7efe9; cursor: pointer; }
.icon-btn:hover { border-color: var(--lime); color: var(--lime); }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* pill + tag */
.pill { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--green-deep); background: var(--mint); border: 1px solid var(--mint-2); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--green-deep); background: var(--mint); padding: 3px 10px; border-radius: 999px; text-decoration: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #e7efe9; border-bottom: 1px solid #1f3426; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; flex: none; }
.logo-mark { display: block; width: 44px; height: 44px; flex: none; }
.logo-mark img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 6px rgba(126,211,73,.25)); }
.logo-word { font: italic 800 1.35rem/1 var(--display); letter-spacing: -.02em; color: #fff; }
.logo-word b { color: var(--lime); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.main-nav > a, .dd-btn { color: #d6e2da; text-decoration: none; font: 500 .95rem/1 var(--font); padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; position: relative; }
.main-nav > a:hover, .dd-btn:hover { color: #fff; }
.main-nav .is-active { color: var(--lime); }
.main-nav > a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--lime); border-radius: 2px; }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 10px; display: none; z-index: 60; }
.dd.open .dd-menu { display: grid; }
.dd-menu a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .92rem; display: flex; gap: 10px; align-items: center; }
.dd-menu a:hover { background: var(--mint); color: var(--green-deep); }
.dd-menu .ic { color: var(--green); }
.dd-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(30rem, calc(100vw - 2rem)); }
.dd-tools { grid-template-columns: repeat(4, minmax(170px, 1fr)); width: min(51rem, calc(100vw - 2rem)); gap: 4px 10px; left: 0; transform: translateX(-40%); }
.dd-col { display: flex; flex-direction: column; }
.dd-head { font-size: .78rem; font-weight: 700; color: var(--muted); padding: 6px 10px; }
.dd-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; font-weight: 600; color: var(--green) !important; justify-content: center; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; } }
.menu-toggle { display: none; }

/* hero */
.hero { background: linear-gradient(180deg, var(--surface), var(--bg)); padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { color: var(--green); display: block; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 36em; }
.hero-search { display: flex; max-width: 460px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 5px; box-shadow: var(--shadow); margin: 26px 0 30px; }
.center .hero-search, .page-head .hero-search { margin-inline: 0; }
.center .hero-search { margin-inline: auto; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); padding: 10px 12px; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { border-color: var(--green); }
.hero-search button { width: 48px; border: 0; border-radius: 10px; background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-search button:hover { background: var(--green-deep); }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.hero-stats li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.hero-stats .ic { color: var(--green); width: 30px; height: 30px; stroke-width: 1.6; }
.hero-stats b { display: block; color: var(--text); font-size: 1.05rem; font-family: var(--display); }
.hero-visual { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 700px; height: auto; }
.ha-floor { fill: var(--mint); }
.ha-screen { fill: #f7fbf7; }
.ha-pot { fill: #f4f6f4; stroke: #cfdcd3; stroke-width: 2; }
.ha-word { font: italic 800 20px var(--display); fill: #13201a; }
.ha-bars rect { transform-box: fill-box; transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
.ha-bars rect:nth-child(2) { animation-delay: .08s; } .ha-bars rect:nth-child(3) { animation-delay: .16s; } .ha-bars rect:nth-child(4) { animation-delay: .24s; } .ha-bars rect:nth-child(5) { animation-delay: .32s; }
.ha-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.2s .35s ease-out forwards; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.panel-head { text-align: center; margin-bottom: 26px; }
.panel-foot { text-align: center; margin-top: 26px; }
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 12px; }
.tool-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; text-decoration: none; color: var(--text); padding: 8px 4px; border-radius: var(--r-md); }
.tool-tile:hover .tile-icon { transform: translateY(-3px); box-shadow: 0 14px 26px -12px rgba(20, 108, 46, .55); }
.tool-tile:hover .tile-name { color: var(--green); }
.tile-name { font-weight: 500; font-size: .95rem; line-height: 1.35; max-width: 11em; }
.tile-icon { --s: 64px; width: var(--s); height: var(--s); flex: none; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #5fc95e 0%, #1e8e3e 55%, #146c2e 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.18), 0 10px 20px -12px rgba(20, 108, 46, .6); transition: transform .18s, box-shadow .18s; }
.tile-icon .ic { width: 30px; height: 30px; stroke-width: 2.1; }
.tool-grid .tile-icon { --s: 84px; border-radius: 50%; outline: 6px solid var(--surface); }
.tool-grid .tile-icon .ic { width: 36px; height: 36px; }
.tile-sm { --s: 48px; border-radius: 14px; }
.tile-sm .ic { width: 24px; height: 24px; }
.tile-xs { --s: 30px; border-radius: 9px; }
.tile-xs .ic { width: 16px; height: 16px; }

.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 10px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--text); font-weight: 500; text-align: center; background: var(--card); min-height: 132px; }
.cat-tile:hover { border-color: var(--green); color: var(--green); }
.cat-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--mint); color: var(--green-deep); display: grid; place-items: center; }
.cat-icon .ic { width: 28px; height: 28px; }

.feature-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.feature-row .panel { padding: 26px; }
.row-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-family: var(--font); font-weight: 600; }
.row-title .ic { color: var(--gold); }
.featured-body { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; }
.featured-art { aspect-ratio: 1 / 1; border-radius: var(--r-md); display: grid; place-items: center; color: var(--lime); background: radial-gradient(circle at 70% 25%, #2f6b3f 0, #14301f 45%, #0b1a10 100%); }
.featured-art .ic { width: 72px; height: 72px; stroke-width: 1.4; }
.featured h3 { font-size: 1.3rem; }
.featured h3 a { color: var(--text); text-decoration: none; }
.featured h3 a:hover { color: var(--green); }
.featured p { color: var(--muted); font-size: .95rem; }
.latest-list { list-style: none; margin: 0 0 14px; padding: 0; }
.latest-list a { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.latest-list li:last-child a { border-bottom: 0; }
.latest-list a:hover .latest-title { color: var(--green); }
.mini-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--ink-2); color: var(--lime); display: grid; place-items: center; }
.latest-title { font-size: .95rem; font-weight: 500; line-height: 1.35; }

/* page heads, cards */
.page-head { padding: 44px 0 10px; }
.page-head .lead { margin-bottom: 18px; }
.page-head.with-icon { display: flex; gap: 20px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.tool-card a { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); text-decoration: none; color: var(--text); height: 100%; }
.tool-card a:hover { border-color: var(--green); }
.tool-card a:hover strong { color: var(--green); }
.tool-card strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.tool-card .muted { display: block; font-size: .9rem; line-height: 1.45; }
.tool-card .count { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 600; color: var(--green-deep); }
.tool-filter { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; background: var(--card); color: var(--muted); }
.tool-filter input { border: 0; background: transparent; font: inherit; color: var(--text); padding: 10px 0; width: 220px; }
.tool-filter input:focus { outline: none; }
.tool-group h2 { margin-bottom: 4px; }
.tool-group > .muted { margin-bottom: 16px; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.pc-art { display: grid; place-items: center; aspect-ratio: 16 / 8; color: var(--lime); background: radial-gradient(circle at 75% 20%, #2f6b3f 0, #14301f 45%, #0b1a10 100%); }
.pc-art .ic { width: 56px; height: 56px; stroke-width: 1.4; }
.pc-body { padding: 18px 20px 20px; }
.pc-body h3 { margin: 10px 0 6px; font-size: 1.12rem; }
.pc-body h3 a { color: var(--text); text-decoration: none; }
.pc-body h3 a:hover { color: var(--green); }
.pc-body p { color: var(--muted); font-size: .93rem; margin-bottom: 10px; }
.pc-body .meta { font-size: .82rem; margin: 0; }
.meta { color: var(--muted); font-size: .9rem; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.pager a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.pager a[aria-current] { background: var(--green); color: #fff; border-color: var(--green); }

/* article */
.article { padding-bottom: 20px; }
.article-head { max-width: 780px; padding: 18px 0 26px; }
.article-head h1 { margin: 14px 0 12px; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.7rem); }
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 48px; }
.article-grid:not(:has(.toc)) { grid-template-columns: minmax(0, 760px); }
.toc { position: sticky; top: 96px; align-self: start; font-size: .9rem; border-left: 2px solid var(--line); padding-left: 16px; }
.toc h2 { font-family: var(--font); font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; line-height: 1.4; display: block; }
.toc a:hover { color: var(--green); }
.prose { font-size: 1.06rem; line-height: 1.75; }
.prose h2 { margin-top: 1.8em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--green); color: var(--muted); }
.prose code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .1em .35em; font-size: .9em; }
.prose pre { background: var(--ink); color: #e6efe8; padding: 16px; border-radius: var(--r-md); overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table, .admin table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td, .admin th, .admin td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th, .admin th { background: var(--surface); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.callout { border-radius: var(--r-md); padding: 14px 18px; margin: 1.4em 0; background: var(--mint); border: 1px solid var(--mint-2); font-size: .97rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-warning { background: #fff6e0; border-color: #f4dd9b; color: #4d3b07; }
:root[data-theme="dark"] .callout-warning { background: #2b2410; border-color: #4d3f17; color: #f1e2b6; }
.preview-bar { background: var(--gold); color: #2b2104; text-align: center; padding: 8px; font-weight: 600; font-size: .9rem; }

/* tool page */
.tool-head { display: flex; gap: 20px; align-items: center; padding: 18px 0 24px; }
.tool-head h1 { margin-bottom: 6px; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); }
.tool-head .lead { margin: 0; }
.tool-info { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-block: 36px 20px; }
.related { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; align-self: start; }
.related h2 { font-size: 1.05rem; font-family: var(--font); }
.related ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.related a { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .95rem; }
.related a:hover { background: var(--mint); color: var(--green-deep); }

.tool-app { padding: 26px; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.t-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; font-size: .9rem; }
.field small { color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search]:not(.hero-search input):not(.tool-filter input), select, textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
.prefix { position: relative; }
.prefix > em { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; pointer-events: none; }
.prefix > input { padding-left: 26px; }
.suffix { position: relative; }
.suffix > em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; pointer-events: none; }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: 500 .88rem var(--font); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--green); border-color: var(--green); color: #fff; }
.check { display: flex; gap: 8px; align-items: center; font-size: .93rem; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.results { margin-top: 22px; }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.result-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.result-list li > span { min-width: 0; overflow-wrap: anywhere; }
.result-list .len { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.result-list .len.warn { color: #b9770e; }
.copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 .82rem var(--font); padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); cursor: pointer; }
.copy-btn:hover { border-color: var(--green); color: var(--green); }
.copy-btn.done { background: var(--green); color: #fff; border-color: var(--green); }
.out-box { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: .95rem; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.stat b { display: block; font: 700 1.5rem/1.2 var(--display); color: var(--text); }
.stat span { font-size: .82rem; color: var(--muted); }
.stat.big b { font-size: 2rem; color: var(--green); }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; margin-top: 18px; padding: 0 2px; border-bottom: 1px solid var(--line-2); }
.bar-chart span { flex: 1; min-width: 3px; background: linear-gradient(var(--green-bright), var(--green)); border-radius: 4px 4px 0 0; position: relative; }
.bar-chart span i { position: absolute; inset: auto 0 0 0; background: var(--mint-2); border-radius: 0 0 0 0; }
.legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.split { display: flex; height: 18px; border-radius: 999px; overflow: hidden; margin: 14px 0; }
.split span:nth-child(1) { background: var(--green); } .split span:nth-child(2) { background: var(--gold); } .split span:nth-child(3) { background: #3aa6b9; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.scroll { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; }
.scroll thead th { position: sticky; top: 0; background: var(--surface); }
.serp { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--card); font-family: Arial, sans-serif; }
.serp .s-url { font-size: 13px; color: var(--muted); }
.serp .s-title { font-size: 19px; color: #1a0dab; margin: 4px 0; }
:root[data-theme="dark"] .serp .s-title { color: #8ab4f8; }
.serp .s-desc { font-size: 14px; color: var(--muted); }
.qr-out { display: grid; place-items: center; min-height: 260px; background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 16px; }
.pw-out { font: 600 1.25rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--green); transition: width .2s; }
.note { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* footer */
.site-footer { background: var(--ink); color: #c5d3ca; margin-top: 56px; padding-bottom: 28px; }
.subscribe { display: grid; grid-template-columns: auto 1fr minmax(min(20rem, 100%), 28rem); gap: 22px; align-items: center; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 28px; transform: translateY(-40px); box-shadow: var(--shadow); }
.sub-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #5fc95e, #1e8e3e 60%, #146c2e); }
.sub-text h2 { font-size: 1.15rem; margin-bottom: 4px; }
.sub-text p { margin: 0; color: var(--muted); font-size: .92rem; }
.sub-form { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.sub-form input[type=email] { flex: 1; min-width: 180px; }
.form-msg { flex-basis: 100%; margin: 0; font-size: .88rem; min-height: 0; }
.form-msg.ok { color: var(--green); } .form-msg.err { color: #c0392b; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; padding: 6px 0 30px; }
.footer-grid h3 { color: #fff; font-family: var(--font); font-size: .95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: #c5d3ca; text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: var(--lime); }
.f-brand p { font-size: .9rem; margin: 14px 0; max-width: 30em; line-height: 1.6; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2e4636; display: grid; place-items: center; color: #e7efe9; }
.socials a:hover { border-color: var(--lime); color: var(--lime); }
.footer-bottom { border-top: 1px solid #213528; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .fine { color: #8fa596; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
.form-card { display: grid; gap: 16px; }

/* responsive */
@media (max-width: 1080px) {
  .dd-tools { width: min(40rem, calc(100vw - 2rem)); grid-template-columns: repeat(2, 1fr); transform: translateX(-50%); left: 50%; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .hide-sm { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav { position: fixed; inset: 72px 0 auto 0; max-height: calc(100vh - 72px); overflow-y: auto; background: var(--ink); flex-direction: column; align-items: stretch; padding: 10px 16px 24px; gap: 2px; display: none; border-bottom: 1px solid #1f3426; }
  .main-nav.open { display: flex; }
  .main-nav > a, .dd-btn { width: 100%; padding: 14px 6px; font-size: 1.02rem; justify-content: space-between; }
  .main-nav > a.is-active::after { display: none; }
  .dd-menu { position: static; transform: none; width: auto; box-shadow: none; margin: 0 0 8px; grid-template-columns: 1fr 1fr; }
  .dd-tools { grid-template-columns: 1fr 1fr; width: auto; }
  .tool-grid, .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-row, .tool-info, .contact-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .subscribe { grid-template-columns: auto 1fr; }
  .sub-form { grid-column: 1 / -1; }
  .t-cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding-top: 28px; }
  .panel { padding: 22px 16px; border-radius: 18px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid .tile-icon { --s: 70px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-body { grid-template-columns: 1fr; }
  .featured-art { aspect-ratio: 16 / 7; }
  .dd-menu, .dd-tools { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .subscribe { grid-template-columns: 1fr; padding: 22px 18px; text-align: left; }
  .sub-icon { display: none; }
  .tool-head, .page-head.with-icon { align-items: flex-start; }
  .tool-app { padding: 18px 14px; }
  .latest-list .tag { display: none; }
  .latest-list a { grid-template-columns: 44px 1fr; }
  .tool-filter, .tool-filter input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ha-line { stroke-dashoffset: 0; }
}
@media print { .site-header, .site-footer, .toc, .related { display: none; } }
.related ul.plain { list-style: disc; padding-left: 1.1em; display: block; color: var(--muted); font-size: .93rem; }
.related ul.plain li { margin-bottom: 8px; }
.field.is-hidden[hidden] { display: none; }
[hidden] { display: none !important; }
:root[data-theme="dark"] .hero-visual { background: radial-gradient(circle at 60% 50%, rgba(126, 211, 73, .13), transparent 62%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-visual { background: radial-gradient(circle at 60% 50%, rgba(126, 211, 73, .13), transparent 62%); } }
.prefix, .suffix { display: block; }
/* comfortable scaling on large screens */
@media (min-width: 1400px) {
  .hero h1 { font-size: 3.4rem; }
  .hero .lead { font-size: 1.15rem; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 1180px) and (min-width: 961px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-grid > li, .tool-grid > li { display: flex; } .cat-grid .cat-tile { flex: 1; } .tool-grid .tool-tile { flex: 1; }
/* hero: search bar matches the width of the stats row */
.hero-act { display: inline-grid; max-width: 100%; margin: 26px 0 0; }
.hero-act .hero-search { max-width: none; width: 100%; margin: 0 0 30px; }
@media (min-width: 601px) { .hero-act .hero-stats { flex-wrap: nowrap; } }
@media (max-width: 600px) { .hero-act { display: grid; } }
/* article cover images */
.pc-art { aspect-ratio: 1200 / 630; }
.pc-art.has-img { background: #eaf6ec; }
.pc-art img, .featured-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card:hover .pc-art img { transform: scale(1.03); }
.pc-art { overflow: hidden; }
.pc-art img { transition: transform .35s ease; }
.featured-body { grid-template-columns: minmax(0, 260px) 1fr; }
.featured-art { aspect-ratio: 1200 / 630; overflow: hidden; }
.featured-art.has-img { background: #eaf6ec; }
.mini-icon.has-img { width: 72px; height: 44px; border-radius: 10px; overflow: hidden; background: #eaf6ec; }
.mini-icon.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.latest-list a { grid-template-columns: auto 1fr auto; }
.article-cover { margin: 0 0 36px; max-width: 1008px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #eaf6ec; }
.article-cover img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) {
  .featured-body { grid-template-columns: 1fr; }
  .latest-list a { grid-template-columns: auto 1fr; }
  .article-cover { border-radius: 14px; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .post-card:hover .pc-art img { transform: none; } }
/* trending */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff5a4e; margin-right: 7px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(255, 90, 78, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 78, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 90, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 78, 0); } }
.trend-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.trend-head h1 .live-dot { width: 14px; height: 14px; margin-right: 14px; vertical-align: 6px; }
.trend-updated { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.geo-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.geo-tabs a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; background: var(--card); }
.geo-tabs a:hover { border-color: var(--green); color: var(--green); }
.geo-tabs a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.sec-title { font-size: 1.35rem; margin-bottom: 14px; }
.trend-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.trend-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.tc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tc-rank { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font: 700 .9rem var(--display); }
.tc-traffic { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .88rem; color: var(--green-deep); }
.trend-card h3 { margin: 4px 0 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.trend-card h3 a { color: var(--text); text-decoration: none; }
.trend-card h3 a:hover { color: var(--green); }
.tc-sum { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.tc-foot .meta { font-size: .82rem; margin: 0; }
.hist-day { margin-top: 22px; }
.hist-day h3 { font-family: var(--font); font-size: 1rem; margin-bottom: 8px; }
.hist-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); overflow: hidden; }
.hist-list a { display: grid; grid-template-columns: 76px 1fr auto 70px; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.hist-list li:last-child a { border-bottom: 0; }
.hist-list a:hover { background: var(--surface); }
.hist-list a:hover .hl-term { color: var(--green); }
.hl-time { color: var(--muted); font-size: .85rem; }
.hl-term { font-weight: 500; overflow-wrap: anywhere; }
.hl-traffic { text-align: right; font-weight: 600; color: var(--green-deep); font-size: .9rem; }
.now-pill { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; color: #b42318; background: #fde8e6; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.now-pill.big { font-size: .8rem; padding: 4px 12px; }
.now-pill .live-dot { width: 7px; height: 7px; }
.trend-pager { justify-content: flex-start; gap: 10px; }
.trend-pager a { width: auto; height: auto; }
.trend-note { margin-top: 22px; }
.trend-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.trend-detail h1 { overflow-wrap: anywhere; }
.trend-stats { margin: 8px 0 10px; }
.trend-stats .stat b { font-size: 1.15rem; }
.trend-stats .stat.big b { font-size: 1.8rem; }
.trend-chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.trend-chart span { flex: 1; min-width: 4px; max-width: 40px; border-radius: 4px 4px 0 0; background: linear-gradient(var(--green-bright), var(--green)); }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news-list a { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); text-decoration: none; color: var(--text); }
.news-list a:hover { border-color: var(--green); }
.nl-title { font-weight: 500; }
.nl-src { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; color: var(--muted); font-size: .85rem; }
.nav-trending .live-dot { width: 7px; height: 7px; margin-right: 6px; }
@media (max-width: 600px) {
  .hist-list a { grid-template-columns: 60px 1fr auto; }
  .hist-list a > .tag, .hist-list a > span:nth-child(3):empty { display: none; }
  .news-list a { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 1180px) and (min-width: 961px) { .main-nav > a, .dd-btn { padding: 10px 8px; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.btn-row.left { justify-content: flex-start; }
/* home: trending panel */
.home-trends { padding: 24px 28px; }
.ht-head { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.ht-head h2 { margin: 0; font-size: 1.35rem; display: flex; align-items: center; }
.ht-head h2 .live-dot { width: 10px; height: 10px; margin-right: 10px; }
.ht-geos { display: flex; gap: 6px; flex-wrap: wrap; }
.ht-geos button { display: inline-flex; gap: 6px; align-items: center; font: 500 .85rem var(--font); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); cursor: pointer; }
.ht-geos button:hover { border-color: var(--green); color: var(--green); }
.ht-geos button[aria-selected=true] { background: var(--green); border-color: var(--green); color: #fff; }
.ht-all { margin-left: auto; }
.ht-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ht-list a { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--text); background: var(--surface); }
.ht-list a:hover { border-color: var(--green); }
.ht-list a:hover .ht-term { color: var(--green); }
.ht-list .tc-rank { flex: none; }
.ht-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ht-term { font: 600 1rem/1.3 var(--display); overflow-wrap: anywhere; }
.ht-meta { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: .8rem; font-weight: 600; color: var(--green-deep); }
.ht-meta .tag { font-size: .68rem; padding: 2px 8px; }
.ht-news { font-size: .82rem; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ht-foot { margin: 12px 0 0; }
@media (max-width: 1180px) { .ht-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ht-list li:nth-child(n+4) { display: none; } }
@media (max-width: 760px) {
  .home-trends { padding: 20px 16px; }
  .ht-list { grid-template-columns: 1fr; gap: 8px; }
  .ht-list li:nth-child(n+4) { display: list-item; }
  .ht-all { margin-left: 0; }
  .ht-news { display: none; }
}

/* News hub */
.news-day { margin-bottom: 30px; }
.news-date { font-size: 1.1rem; margin: 0 0 12px; }
.news-list-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.news-item a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.news-item a:hover { border-color: var(--green); transform: translateY(-2px); }
.news-item a:hover .ni-title { color: var(--green); }
.ni-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; }
.ni-geo { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.ni-time { margin-left: auto; color: var(--muted); }
.ni-title { font-weight: 600; font-size: 1.02rem; line-height: 1.4; }
.ni-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; font-size: .84rem; color: var(--muted); }
.ni-src { font-weight: 600; color: var(--text); }
.ni-term { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.ni-term .ic { color: var(--green); }
.home-news .ht-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.home-news .ht-head h2 { margin: 0; }
.hn-sub { margin: 0; }
.hn-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.news-snippet { margin: 18px 0; padding: 16px 20px; border-left: 4px solid var(--green); background: var(--surface); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.news-snippet p { margin: 0 0 8px; font-size: 1.05rem; }
.news-snippet footer { color: var(--muted); font-size: .9rem; }
.news-why { max-width: 760px; }
.ni-meta { flex-direction: column; align-items: flex-start; gap: 4px; }

/* Free AI Tools page */
.fat-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 10px; padding-bottom: 30px; }
.fat-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.12; margin: 16px 0; }
.fat-hero .pill { display: inline-flex; align-items: center; gap: 6px; }
.fat-hero-img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.fat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; padding-bottom: 40px; }
.fat-box { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: 22px; margin-bottom: 30px; }
.fat-box h2 { font-size: 1.3rem; margin: 0 0 14px; }
.fat-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.fat-table th, .fat-table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fat-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fat-table td:first-child { color: var(--muted); font-variant-numeric: tabular-nums; width: 2.5em; }
.fat-table a { text-decoration: none; color: var(--text); }
.fat-table a:hover { color: var(--green); }
.fat-intro { max-width: none; margin-bottom: 26px; }
.fat-group { margin-top: 44px; }
.fat-group-h { display: flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.fat-tool { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: 26px; margin-bottom: 18px; scroll-margin-top: 90px; }
.fat-tool-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.fat-num { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: #fff; font: 700 1.35rem var(--font); }
.fat-tool h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); margin: 0; }
.fat-maker { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.fat-img { display: block; width: 100%; height: auto; border-radius: var(--r-md); margin-bottom: 16px; }
.fat-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.fat-facts p { margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: .93rem; line-height: 1.5; }
.fat-facts span { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--green); margin-bottom: 4px; }
.fat-body { max-width: none; }
.fat-body h4 { font-size: 1.02rem; margin: 18px 0 8px; }
.fat-note { padding: 12px 16px; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: .95rem; }
.fat-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 18px 0 0; }
.fat-pair { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 18px; margin: 0 0 18px; border: 1px dashed var(--green); border-radius: var(--r-lg); background: linear-gradient(90deg, rgba(31,138,76,.07), transparent); }
.fat-pair div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fat-pair-k { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green); }
.fat-pair .muted { font-size: .9rem; }
.fat-faq { margin-top: 40px; }
.fat-faq h2 { margin-bottom: 14px; }
.fat-faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); padding: 0 18px; margin-bottom: 10px; }
.fat-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.fat-faq summary::-webkit-details-marker { display: none; }
.fat-faq summary:after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--green); }
.fat-faq details[open] summary:after { content: "–"; }
.fat-faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }
.fat-disclaimer { margin-top: 30px; }
.fat-side { position: sticky; top: 90px; display: grid; gap: 16px; }
.fat-side-box { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: 18px; }
.fat-side-box h2 { font-size: .95rem; margin: 0 0 10px; font-family: var(--font); }
.fat-side-box ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.fat-side-box li a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .92rem; }
.fat-side-box li a:hover { background: var(--surface); color: var(--green); }
.fat-side-box li a .muted { margin-left: auto; font-size: .82rem; }
.fat-side-box .ic { color: var(--green); }
@media (max-width: 980px) {
  .fat-hero, .fat-layout { grid-template-columns: minmax(0, 1fr); }
  .fat-side { position: static; order: -1; }
  .fat-side-box:last-child { display: none; }
  .fat-side-box ul { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 620px) {
  .fat-tool { padding: 18px; }
  .fat-facts { grid-template-columns: 1fr; }
  .fat-pair { grid-template-columns: auto 1fr; }
  .fat-pair .btn { grid-column: 1 / -1; justify-self: start; }
  .fat-table th:nth-child(4), .fat-table td:nth-child(4) { display: none; }
}
.fat-hero h1 .hl { color: var(--green); }
.main-nav a, .main-nav .dd-btn { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1081px) { .site-header .hide-sm, header .btn.hide-sm { display: none; } .main-nav > a, .dd-btn { padding-inline: 9px; } }
.hn-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .hn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .hn-list { grid-template-columns: minmax(0, 1fr); } }

/* Online Money Converter */
.fx-hero { background: radial-gradient(1200px 420px at 50% -80px, rgba(126,211,73,.18), transparent 70%); padding-bottom: 20px; }
.fx-head { text-align: center; max-width: 900px; padding-top: 10px; }
.fx-head .pill { display: inline-flex; align-items: center; gap: 4px; }
.fx-head h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); line-height: 1.12; margin: 16px 0 12px; }
.fx-head h1 .hl { color: var(--green); }
.fx-head .lead { margin-inline: auto; max-width: 720px; }
.fx-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; margin-top: 26px; align-items: stretch; }
.fx-card, .fx-chart-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; }
.fx-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto minmax(0, 1.2fr); gap: 12px; align-items: end; }
.fx-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx-field span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fx-field input, .fx-field select { width: 100%; height: 54px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--text); font: 600 1.05rem var(--font); min-width: 0; }
.fx-field input { font-size: 1.25rem; }
.fx-field input:focus, .fx-field select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.fx-swap { width: 50px; height: 54px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--green); display: grid; place-items: center; cursor: pointer; transition: transform .2s, background .2s; }
.fx-swap:hover { background: var(--surface); transform: rotate(180deg); }
.fx-swap .ic { width: 22px; height: 22px; }
.fx-result { margin: 26px 0 18px; }
.fx-from-line { margin: 0; color: var(--muted); font-weight: 500; }
.fx-big { margin: 4px 0 6px; font: 700 clamp(2rem, 1.4rem + 2.4vw, 3rem)/1.1 var(--display); color: var(--text); word-break: break-word; }
.fx-big span { font-size: .5em; font-weight: 600; color: var(--muted); }
.fx-unit { margin: 0; color: var(--muted); font-size: .95rem; }
.fx-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.fx-live { display: inline-flex; align-items: center; gap: 2px; font-size: .88rem; color: var(--muted); }
.fx-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chart-card { display: flex; flex-direction: column; }
.fx-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fx-chart-head h2 { font-size: 1rem; margin: 0; font-family: var(--font); }
.fx-change { font-weight: 700; font-size: .95rem; }
.fx-change.up { color: #1e8e3e; } .fx-change.down { color: #d0452f; }
.fx-chart { flex: 1; min-height: 170px; margin: 14px 0; display: grid; place-items: center; }
.fx-chart svg { width: 100%; height: 100%; min-height: 170px; }
.fx-line { fill: none; stroke: var(--green); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fx-area { fill: rgba(30,142,62,.12); stroke: none; }
.fx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.fx-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fx-stats dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fx-stats dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-multi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.fx-multi li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.fx-code { font: 700 .8rem var(--font); background: var(--mint, #eaf6ec); color: var(--green); padding: 5px 8px; border-radius: 8px; }
.fx-name { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-multi b { font-variant-numeric: tabular-nums; }
.fx-pairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.fx-pairs a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.fx-pairs a:hover { border-color: var(--green); transform: translateY(-2px); }
.fx-pair-name { font-weight: 700; }
.fx-pair-rate { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.fx-pair-sub { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
.fx-table-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.fx-filter input { height: 44px; width: min(320px, 100%); padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--text); }
.fx-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.fx-table th, .fx-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.fx-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fx-table .num, .fx-table th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
#fx-table tbody { display: table-row-group; }
.fx-conv-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fx-conv-tables .fx-table th:last-child, .fx-conv-tables .fx-table td:last-child { text-align: right; }
.fx-content { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 20px; padding-bottom: 10px; }
.fx-content .related ul { list-style: none; padding: 0; }
.fx-content .related li a { display: flex; align-items: center; gap: 10px; }
.fx-faq { padding-bottom: 40px; }
@media (max-width: 980px) {
  .fx-main, .fx-content, .fx-conv-tables { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fx-card, .fx-chart-card { padding: 18px; }
  .fx-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .fx-amount { grid-column: 1 / -1; }
  .fx-table th:nth-child(2), .fx-table td:nth-child(2) { display: none; }
  .fx-actions { width: 100%; }
}
.fx-table.collapsed tr[data-more] { display: none; }
.fx-more-wrap { text-align: center; margin-top: 16px; }

/* AI Label Remover */
.alr { margin-top: 26px; max-width: 980px; }
.alr-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 46px 20px; border: 2px dashed var(--line-2); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s, background .15s; }
.alr-drop:hover, .alr-drop.over, .alr-drop:focus-visible { border-color: var(--green); background: var(--surface); outline: none; }
.alr-drop strong { font: 600 1.2rem var(--display); }
.alr-drop-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #5fc95e, #1e8e3e); color: #fff; margin-bottom: 6px; }
.alr-drop-icon .ic { width: 28px; height: 28px; transform: rotate(180deg); }
.alr.has-files .alr-drop { padding: 24px 20px; }
.alr-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 16px 4px; }
.alr-btns { margin-left: auto; display: flex; gap: 8px; }
.alr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.alr-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.alr-thumb { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.alr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alr-thumb.noimg img { display: none; }
.alr-name { margin: 0; font-weight: 600; word-break: break-all; }
.alr-meta { margin: 2px 0 8px; }
.alr-verdict { margin: 0 0 8px; font-weight: 600; font-size: .93rem; }
.alr-verdict.ai { color: #b4501f; } .alr-verdict.meta { color: var(--green); } .alr-verdict.none { color: var(--muted); } .alr-verdict.err { color: #d0452f; }
.alr-tags { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.alr-tags li { font-size: .8rem; padding: 4px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alr-tags li.k-ai { background: #fff1e6; border-color: #f3c6a3; color: #8a3c12; }
.alr-tags li.k-gps { background: #fdecec; border-color: #f2b8b5; color: #8e2a26; }
[data-theme="dark"] .alr-tags li.k-ai { background: #3a2617; color: #f5c7a4; border-color: #5a3a22; }
[data-theme="dark"] .alr-tags li.k-gps { background: #3a1d1c; color: #f2b8b5; border-color: #5a2a28; }
.alr-ok { margin: 0; color: var(--green); font-weight: 600; }
.alr-private { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 14px; }
.alr-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.alr-features li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.alr-features p { margin: 4px 0 0; font-size: .92rem; line-height: 1.5; }
@media (max-width: 640px) {
  .alr-item { grid-template-columns: 64px minmax(0, 1fr); }
  .alr-thumb { width: 64px; height: 64px; }
  .alr-act { grid-column: 1 / -1; }
  .alr-btns { margin-left: 0; }
}

/* File converters */
.cv-list, .cv-out { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.cv-file, .cv-res { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cv-th { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font: 700 .72rem var(--font); color: var(--green-deep); }
.cv-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-fmeta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cv-fname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-fact { display: flex; gap: 6px; }
.cv-mini { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-size: 1rem; cursor: pointer; }
.cv-mini:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.cv-mini:disabled { opacity: .35; cursor: default; }
.cv-opts { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 18px 4px 4px; }
.cv:not(.has-files) .cv-opts { display: none; }
.cv-opt { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; min-width: 170px; }
.cv-opt.check { flex-direction: row; min-width: 0; align-self: flex-end; padding-bottom: 8px; }
.cv-opt-l { font-weight: 600; }
.cv-opt select, .cv-opt input[type=number], .cv-opt input[type=text], .cv-opt input[type=password] { font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); }
.cv-opt input[type=color] { width: 56px; height: 38px; padding: 2px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); }
.cv-opt input[type=range] { accent-color: var(--green); width: 200px; max-width: 100%; }
.cv-range-v { color: var(--green-deep); }
.cv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.cv-res { grid-template-columns: 34px minmax(0, 1fr) auto; background: var(--mint); border-color: var(--mint-2); }
.cv-ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700; }
.cv-err { background: #fdecec; border-color: #f2b8b5; color: #8e2a26; }
.cv-err .cv-ok { background: #d0452f; }
[data-theme="dark"] .cv-res { background: #15301c; border-color: #24502f; }
[data-theme="dark"] .cv-err { background: #3a1d1c; border-color: #5a2a28; color: #f2b8b5; }
.cv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.cv-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.cv-steps p { margin: 0; line-height: 1.5; }
.cv-step-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700; }
@media (max-width: 600px) {
  .cv-res .btn { grid-column: 1 / -1; }
  .cv-opt { min-width: calc(50% - 12px); }
}

/* Budget app landing */
.ba-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; padding-bottom: 30px; }
.ba-hero .lead { max-width: 640px; }
.ba-phone { justify-self: center; display: block; width: min(300px, 80vw); border-radius: 38px; border: 10px solid #0b130e; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(15,27,19,.45); transform: rotate(2deg); transition: transform .2s; }
.ba-phone:hover { transform: rotate(0); }
.ba-phone img { display: block; width: 100%; height: auto; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.ba-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.ba-f { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.ba-f h3 { font: 700 1.1rem var(--display); margin: 14px 0 6px; } .ba-f p { margin: 0; color: var(--muted); line-height: 1.55; }
.ba-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ba-shots figure { margin: 0; } .ba-shots img { width: 100%; height: auto; display: block; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ba-shots figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.ba-cta { text-align: center; padding: 40px 24px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--mint), var(--mint-2)); margin-bottom: 40px; }
.ba-cta h2 { font: 800 1.8rem var(--display); margin: 0 0 8px; } .ba-cta p { margin: 0 0 18px; color: var(--muted); }
@media (max-width: 860px) {
  .ba-hero { grid-template-columns: 1fr; gap: 28px; }
  .ba-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.related .btn { display: flex; margin: 8px 0 22px; }
.ba-cta .btn { max-width: 100%; white-space: normal; text-align: center; height: auto; padding-top: 12px; padding-bottom: 12px; }
.hero-cta { margin: 6px 0 18px; }
