/* TikoTools — site styles ("Dark Pro" design) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Dark is the default theme. Light is used when the visitor (or the admin default) chooses it. */
:root {
  --bg: #0e1116;
  --bg-2: #131820;
  --surface: #161b22;
  --surface-2: #1b2129;
  --raise: #1f262f;
  --ink: #e6edf3;
  --ink-2: #c3cbd4;
  --muted: #8b96a3;
  --line: #262d36;
  --line-2: #343c47;
  --accent: #3ddc97;
  --accent-ink: #06140d;
  --accent-text: #3ddc97;
  --accent-soft: #12261d;
  --accent-line: #2b4a3c;
  --result-bg: #0e1116;
  --ok: #3ddc97;
  --warn-bg: #2a2412;
  --warn-line: #5a4a1a;
  --warn-ink: #f2d58a;
  --bad: #ff7b72;
  --star: #f2cc60;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 10px 30px -18px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .85);
  --r: 14px;
  --r-sm: 10px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1240px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-2: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --raise: #ffffff;
  --ink: #0e1116;
  --ink-2: #374151;
  --muted: #5b6573;
  --line: #e3e7ec;
  --line-2: #d0d7de;
  --accent: #3ddc97;
  --accent-ink: #06140d;
  --accent-text: #0a7a4a;
  --accent-soft: #e7f8ef;
  --accent-line: #a8e2c6;
  --result-bg: #f2fbf6;
  --ok: #0a7a4a;
  --warn-bg: #fff7e0;
  --warn-line: #f0d48a;
  --warn-ink: #6b4a00;
  --bad: #c62828;
  --star: #b7791f;
  --shadow: 0 1px 2px rgba(14, 17, 22, .05), 0 10px 30px -18px rgba(14, 17, 22, .25);
  --shadow-lg: 0 30px 70px -24px rgba(14, 17, 22, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { vertical-align: middle; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- category icons (line icons drawn with CSS masks; see bottom of file) ---------- */
.ci { display: inline-block; width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--ci) center / contain no-repeat; mask: var(--ci) center / contain no-repeat; }
.ico-tile { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); }
.ico-tile .ci { width: 22px; height: 22px; }
.ico-tile.sm { width: 32px; height: 32px; border-radius: 9px; }
.ico-tile.sm .ci { width: 17px; height: 17px; }
.ico-tile.lg { width: 56px; height: 56px; border-radius: 15px; }
.ico-tile.lg .ci { width: 28px; height: 28px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.02em; font-size: 1.14rem; }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.topnav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.topnav > a, .menu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; background: none; border: 0; cursor: pointer; min-height: 40px; }
.topnav > a:hover, .menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--surface); color: var(--ink); }
.menu { position: relative; }
.mb-i { display: none; }
@media (max-width: 480px) { .mb-i { display: inline; } .mb-t, .mb-c { display: none; } .topbar-in { gap: 8px; } .top-actions { gap: 2px; } .icon-btn { width: 38px; } .brand-name { font-size: 1rem; } }
.menu-panel { position: absolute; top: calc(100% + 10px); left: 0; width: min(600px, 92vw); display: none; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.menu-panel.open { display: grid; }
.menu-panel a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.menu-panel a:hover { background: var(--surface-2); }
.menu-panel a .ci { width: 18px; height: 18px; color: var(--accent-text); }
.menu-panel a em { margin-left: auto; font-style: normal; color: var(--muted); font: 500 .78rem var(--mono); }
.menu-panel .menu-all { grid-column: 1 / -1; justify-content: center; color: var(--accent-text); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; padding-top: 12px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; min-width: 42px; font-size: .94rem; }
.search-btn:hover { border-color: var(--line-2); color: var(--ink); }
.search-btn .hide-sm:not(kbd) { min-width: 150px; text-align: left; }
.search-btn kbd { font: 500 .72rem var(--mono); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; color: var(--muted); background: var(--bg); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface); color: var(--ink); border-color: var(--line); }
.i-sun { display: inline; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: inline; }
.install-btn { height: 38px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; font-size: .9rem; }
@media (max-width: 860px) {
  .hide-sm { display: none !important; }
  .topnav { margin-left: 0; }
  .menu-btn { padding: 8px; }
  .menu-panel { position: fixed; top: 68px; left: 8px; right: 8px; width: auto; grid-template-columns: 1fr; max-height: calc(100vh - 84px); overflow: auto; }
  .install-btn { padding: 0 10px; font-size: .82rem; }
}

/* ---------- layout ---------- */
.main { min-width: 0; padding: 22px 0 48px; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
.sidebar { padding: 22px 0 48px; min-width: 0; }
.sticky-side { position: sticky; top: 84px; }
@media (max-width: 1020px) { .with-side { grid-template-columns: minmax(0, 1fr); gap: 0; } .sidebar { padding-top: 0; } .sticky-side { position: static; } .sidebar .ad-sidebar_sticky, .sidebar .ad-sidebar_top { display: none; } }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 18px; }
.side-box h2 { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: flex; gap: 10px; align-items: center; padding: 8px 8px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 600; line-height: 1.35; }
.side-list a:hover { background: var(--surface-2); color: var(--ink); }
.side-list a[aria-current] { background: var(--accent-soft); color: var(--accent-text); }
.side-list .ci { width: 16px; height: 16px; color: var(--muted); }
.side-list a[aria-current] .ci { color: var(--accent-text); }

/* ---------- ads ---------- */
.ad { margin: 24px auto; text-align: center; overflow: hidden; max-width: 100%; contain: layout; }
.ad-label { font: 500 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-preview { display: none; place-items: center; border: 1px dashed var(--line-2); border-radius: var(--r-sm); color: var(--muted); font: 600 .8rem var(--mono); background: repeating-linear-gradient(45deg, transparent 0 10px, var(--surface) 10px 20px); }
html.is-admin .ad-preview { display: grid; }
.ad-header, .ad-footer { margin: 14px auto; }
.ad-mobile_anchor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; margin: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); min-height: 0 !important; }
@media (min-width: 761px) { .ad-mobile_anchor { display: none; } }
body.has-anchor { padding-bottom: 64px; }

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 12px 18px; border-radius: 10px; cursor: pointer; text-decoration: none; font-size: .96rem; min-height: 46px; line-height: 1.2; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface); filter: none; }
.btn.sm { padding: 8px 12px; font-size: .88rem; border-radius: 9px; min-height: 38px; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--accent-text); border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 999px; padding: 6px 12px; }
.pill-badge .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.more { font-weight: 700; text-decoration: none; font-size: .93rem; white-space: nowrap; color: var(--accent-text); }
.more:hover { text-decoration: underline; }

/* ---------- home ---------- */
.hx { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 44px 0 28px; }
@media (max-width: 960px) { .hx { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; } }
.hx h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; margin: 20px 0 0; max-width: 17ch; }
.hx h1 .ac { color: var(--accent-text); }
.hx-sub { margin: 18px 0 0; max-width: 54ch; font-size: clamp(1rem, 2.2vw, 1.12rem); line-height: 1.65; color: var(--muted); }
.hx-search { display: flex; align-items: center; gap: 8px; margin-top: 28px; max-width: 620px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px 6px 6px 16px; }
.hx-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.hx-search svg { color: var(--muted); flex: none; }
.hx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1.04rem; padding: 10px 0; color: var(--ink); }
.hx-search input::placeholder { color: var(--muted); }
.hx-search button { border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 750; padding: 0 20px; min-height: 46px; border-radius: 10px; cursor: pointer; }
.hx-pop { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.hx-pop a { color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.hx-pop a:hover { border-color: var(--accent-line); color: var(--accent-text); }
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.demo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.demo-head strong { font-size: 1.02rem; display: block; line-height: 1.25; }
.demo-head small { color: var(--muted); font: 500 .76rem var(--mono); }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.demo label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 650; color: var(--muted); min-width: 0; }
.demo-in { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; min-width: 0; }
.demo-in:focus-within { border-color: var(--accent); }
.demo-in input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; padding: 11px 10px; font: 500 1.05rem var(--mono); color: var(--ink); }
.demo-in span { padding-right: 10px; font: 500 .8rem var(--mono); color: var(--muted); }
.demo-out { margin-top: 14px; border-radius: 12px; background: var(--result-bg); border: 1px solid var(--accent-line); padding: 16px 18px; }
.demo-out .lbl { font-size: .82rem; color: var(--muted); font-weight: 600; }
.demo-out .big { font: 650 clamp(2rem, 5vw, 2.6rem)/1.1 var(--mono); color: var(--accent-text); margin-top: 4px; letter-spacing: -.02em; }
.demo-out .big small { font-size: .45em; color: var(--muted); margin-left: 6px; }
.demo-out .sub { font: 500 .82rem var(--mono); color: var(--muted); margin-top: 6px; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.demo-foot span { font-size: .82rem; color: var(--muted); }
@media (max-width: 420px) { .demo-grid { grid-template-columns: 1fr 1fr; } .demo-grid label:last-child { grid-column: 1 / -1; } }

.sec { margin-top: 44px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.45rem); }
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; width: 100%; }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ccard { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; min-width: 0; }
.ccard:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.ccard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ccard-n { font: 500 .8rem var(--mono); color: var(--accent-text); }
.ccard strong { font-size: 1.05rem; line-height: 1.3; }
.ccard p { margin: -6px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rows { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.row { display: grid; grid-template-columns: auto minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.6fr) auto; align-items: center; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); }
.row strong { font-size: 1rem; }
.row .rc { font-size: .88rem; color: var(--muted); }
.row .rd { font-size: .88rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .ra { color: var(--muted); font-size: 1.1rem; }
.row:hover .ra { color: var(--accent-text); }
@media (max-width: 860px) { .row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; } .row .rd { display: none; } .row .rc { grid-column: 2; grid-row: 2; margin-top: -8px; } .row strong { grid-column: 2; } .row .ico-tile { grid-row: 1 / span 2; } .row .ra { grid-row: 1 / span 2; grid-column: 3; } }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 44px; }
.trust > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.trust svg { color: var(--accent-text); }
.trust h3 { font-size: 1rem; margin: 12px 0 4px; }
.trust p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.55; }

/* tool cards (used on category, search, related, recently added) */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tcard { display: flex; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; min-width: 0; }
.tcard:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.tcard-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); }
.tcard-ico .ci { width: 20px; height: 20px; }
.tcard-body { display: flex; flex-direction: column; min-width: 0; }
.tcard-body strong { font-size: 1rem; line-height: 1.3; margin-bottom: 4px; }
.tcard-body span { color: var(--muted); font-size: .87rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-body em { font: 500 .72rem var(--mono); font-style: normal; color: var(--accent-text); margin-top: 8px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- page heads / crumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.page-head { margin: 4px 0 26px; }
.page-head .ph-row { display: flex; align-items: center; gap: 16px; }
.page-head h1 { margin: 0; }
.lead { color: var(--muted); font-size: 1.06rem; line-height: 1.65; max-width: 70ch; margin: 12px 0 0; }
.page-count { font: 500 .82rem var(--mono); color: var(--accent-text); margin-top: 10px; display: inline-block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip:hover { border-color: var(--accent-line); color: var(--accent-text); }
.chip .ci { width: 16px; height: 16px; color: var(--accent-text); }
.other-cats { margin-top: 44px; }
.az { columns: 3 260px; column-gap: 28px; }
.az section { break-inside: avoid; margin-bottom: 20px; }
.az h2 { font: 700 .95rem var(--mono); color: var(--accent-text); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.az ul { list-style: none; padding: 0; margin: 0; }
.az a { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.az a:hover { color: var(--accent-text); }
.az .ci { width: 16px; height: 16px; color: var(--muted); }
.empty { color: var(--muted); padding: 18px 0; }
.search-slim { display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 0 0 26px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 5px 5px 5px 14px; }
.search-slim:focus-within { border-color: var(--accent); }
.search-slim input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1rem; padding: 9px 0; color: var(--ink); }
.search-slim button { border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 0 16px; min-height: 42px; border-radius: 9px; cursor: pointer; }

/* ---------- tool page ---------- */
.tool-head { margin-bottom: 16px; }
.tool-title { display: flex; align-items: center; gap: 16px; }
.tool-title h1 { margin: 0; font-size: clamp(1.6rem, 4.2vw, 2.35rem); }
.tool-head .lead { margin: 14px 0 12px; }
.tool-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.badge.ok { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.fav-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 650; cursor: pointer; color: var(--ink-2); min-height: 32px; }
.fav-btn:hover { border-color: var(--line-2); color: var(--ink); }
.fav-btn[aria-pressed="true"] { color: var(--star); border-color: color-mix(in srgb, var(--star) 45%, transparent); background: color-mix(in srgb, var(--star) 10%, transparent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.tool-card { padding: 22px; margin: 20px 0; min-height: 360px; }
.tool-card.tt-ready { min-height: 0; }
.tool-loading { display: flex; justify-content: center; gap: 8px; padding: 140px 0; }
.tool-loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: ttp 1s infinite ease-in-out; }
.tool-loading span:nth-child(2) { animation-delay: .15s; } .tool-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes ttp { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@media (max-width: 560px) { .tool-card { padding: 16px 14px; border-radius: var(--r); } .tool-title { gap: 12px; } .tool-title .ico-tile.lg { width: 46px; height: 46px; } }

/* engine form */
.tt-sys { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; }
.tt-sys button, .tt-seg button { border: 0; background: none; padding: 9px 10px; border-radius: 9px; font-weight: 650; font-size: .9rem; color: var(--muted); cursor: pointer; line-height: 1.25; min-height: 40px; }
.tt-sys button:hover, .tt-seg button:hover { color: var(--ink); }
.tt-sys button[aria-checked="true"], .tt-seg button[aria-checked="true"] { background: var(--raise); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, .2); }
.tt-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; }
.tt-field, .tt-list, .tt-heading, .tt-note { grid-column: span 3; min-width: 0; }
.w-full { grid-column: 1 / -1 !important; }
.w-third { grid-column: span 2; }
.w-half { grid-column: span 3; }
@media (max-width: 560px) { .tt-field.w-half, .tt-field.w-third { grid-column: 1 / -1; } .tt-field.w-third.keep, .tt-field.w-half.keep { grid-column: span 3; } }
.tt-heading { grid-column: 1 / -1; font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 6px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); }
.tt-note { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); margin: 0; }
.tt-label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 7px; color: var(--ink-2); }
.tt-input { display: flex; align-items: stretch; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; transition: border-color .15s, box-shadow .15s; min-height: 48px; }
.tt-input:hover { border-color: color-mix(in srgb, var(--line-2) 60%, var(--muted)); }
.tt-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.tt-input input, .tt-input select, .tt-input textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 11px 12px; font: 500 1.04rem var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.tt-input input[type=text]:not([inputmode]), .tt-input select, .tt-input input[type=date], .tt-input input[type=time] { font-family: var(--font); font-weight: 600; }
.tt-input textarea { font: .95rem/1.5 var(--mono); resize: vertical; min-height: 140px; }
.tt-input select.tt-select { font-size: .98rem; cursor: pointer; padding-right: 8px; }
.tt-input select option { background: var(--surface); color: var(--ink); }
.tt-prefix, .tt-suffix { display: grid; place-items: center; padding: 0 12px; color: var(--muted); font: 500 .88rem var(--mono); white-space: nowrap; }
.tt-prefix { padding-right: 0; }
.tt-unit { flex: 0 0 auto !important; max-width: 46%; border-left: 1px solid var(--line-2) !important; background: var(--surface-2) !important; border-radius: 0 9px 9px 0; font: 600 .88rem var(--font) !important; color: var(--ink-2) !important; cursor: pointer; padding: 0 8px !important; }
.tt-help { font-size: .82rem; color: var(--muted); margin: 7px 0 0; line-height: 1.5; }
.tt-err { font-size: .82rem; color: var(--bad); margin: 5px 0 0; font-weight: 650; min-height: 0; }
.tt-err:empty { display: none; }
.invalid .tt-input { border-color: var(--bad); }
.tt-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.tt-seg button { flex: 1 1 auto; }
.tt-toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: .94rem; min-height: 48px; color: var(--ink-2); }
.tt-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tt-switch { width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .15s; flex: none; }
.tt-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.tt-toggle input:checked + .tt-switch { background: var(--accent); }
.tt-toggle input:checked + .tt-switch::after { transform: translateX(18px); }
.tt-toggle input:focus-visible + .tt-switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.tt-list { grid-column: 1 / -1; }
.tt-list-body { display: flex; flex-direction: column; gap: 8px; }
.tt-row { display: flex; gap: 8px; align-items: flex-end; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.tt-cell { flex: 1 1 0; min-width: 0; }
.tt-cell.w-wide { flex: 2 1 0; }
.tt-cell .tt-label { font-size: .78rem; margin-bottom: 5px; color: var(--muted); }
.tt-cell .tt-input { min-height: 44px; }
.tt-cell .tt-input input, .tt-cell .tt-input select { font-size: .96rem; padding: 9px 10px; }
.tt-del { flex: none; width: 38px; height: 44px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.tt-del:hover { color: var(--bad); border-color: var(--bad); }
.tt-add { margin-top: 10px; }
@media (max-width: 560px) {
  .tt-row { flex-wrap: wrap; position: relative; }
  .tt-row.has-del { padding-right: 54px; }
  .tt-cell { flex: 1 1 40%; }
  .tt-cell.w-wide { flex: 1 1 100%; }
  .tt-del { position: absolute; right: 8px; top: 8px; height: 38px; }
}
.tt-go { margin-top: 16px; width: 100%; }
.tt-input input[type=time], .tt-input input[type=date] { padding-left: 10px; padding-right: 6px; font-size: .98rem; }
.tt-input input[type=time]::-webkit-calendar-picker-indicator, .tt-input input[type=date]::-webkit-calendar-picker-indicator { margin-left: 2px; cursor: pointer; }
:root:not([data-theme="light"]) .tt-input input[type=time]::-webkit-calendar-picker-indicator, :root:not([data-theme="light"]) .tt-input input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.8); }
@media (max-width: 480px) { .tt-input input[type=time]::-webkit-calendar-picker-indicator { display: none; } .tt-input input[type=time] { font-size: .95rem; } }

/* results */
.tt-results { margin-top: 22px; }
.tt-empty { padding: 22px; text-align: center; color: var(--muted); background: var(--bg); border: 1px dashed var(--line-2); border-radius: 14px; font-size: .95rem; }
.tt-primary { position: relative; padding: 20px 22px; border-radius: 14px; background: var(--result-bg); border: 1px solid var(--accent-line); color: var(--ink); overflow: hidden; }
.tt-primary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.tt-primary .tt-r-label { font-size: .84rem; font-weight: 650; color: var(--muted); }
.tt-primary .tt-r-line { position: relative; z-index: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.tt-primary .tt-r-val { font: 650 clamp(2rem, 7vw, 2.9rem)/1.1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; word-break: break-word; color: var(--accent-text); }
.tt-primary .tt-r-unit, .tt-primary .tt-r-unit-t { font-weight: 650; font-size: 1rem; color: var(--ink-2); }
.tt-primary .tt-r-unit { background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 8px; cursor: pointer; }
.tt-primary .tt-r-unit option { color: var(--ink); background: var(--surface); }
.tt-primary .tt-r-sub { position: relative; z-index: 1; margin-top: 8px; font-size: .92rem; color: var(--muted); }
.tt-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.tt-item { padding: 14px 15px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.tt-item .tt-r-label { font-size: .8rem; color: var(--muted); font-weight: 650; line-height: 1.35; }
.tt-item .tt-r-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin-top: 5px; }
.tt-item .tt-r-val { font: 650 1.3rem/1.2 var(--mono); letter-spacing: -.01em; font-variant-numeric: tabular-nums; word-break: break-word; color: var(--ink); }
.tt-item .tt-r-unit, .tt-item .tt-r-unit-t { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.tt-item .tt-r-unit { border: 1px solid var(--line-2); background: var(--surface); border-radius: 7px; padding: 2px 4px; cursor: pointer; max-width: 100%; }
.tt-item .tt-r-sub { font-size: .8rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.tt-item.tone-good { border-color: var(--accent-line); }
.tt-item.tone-good .tt-r-val { color: var(--accent-text); }
.tt-item.tone-bad, .tt-item.tone-warn { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.tt-item.tone-bad .tt-r-val, .tt-item.tone-warn .tt-r-val { color: var(--bad); }
.tt-item.tone-accent { border-color: var(--accent-line); background: var(--accent-soft); }
.tt-item.tone-accent .tt-r-val { color: var(--accent-text); }
.tt-msg { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); line-height: 1.55; }
.tt-msg.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.tt-table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tt-table-title { font-weight: 700; font-size: .9rem; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tt-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.tt-table th, .tt-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tt-table td { color: var(--ink-2); }
.tt-table td strong { color: var(--ink); }
.tt-table th { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.tt-table tr:last-child td { border-bottom: 0; }
.tt-steps { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--surface-2); }
.tt-steps summary { cursor: pointer; font-weight: 700; font-size: .92rem; padding: 12px 0; color: var(--ink-2); }
.tt-steps ol { margin: 0 0 14px; padding-left: 20px; font: .88rem/1.65 var(--mono); color: var(--ink-2); }
.tt-steps li { margin-bottom: 4px; }
.tt-steps strong { color: var(--accent-text); }
.tt-steps code, .tt-msg code { font: .88em var(--mono); background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.tt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.act { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: transparent; padding: 8px 13px; border-radius: 9px; font-size: .88rem; font-weight: 650; color: var(--ink-2); cursor: pointer; min-height: 38px; }
.act:hover { border-color: var(--accent-line); color: var(--accent-text); background: var(--accent-soft); }
.tt-selftest { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font: .85rem var(--mono); }
.tt-selftest.good { background: var(--accent-soft); color: var(--accent-text); }
.tt-selftest.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }

/* rating / feedback / embed */
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 18px; font-weight: 650; color: var(--ink-2); font-size: .95rem; }
.rate button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 6px 14px; cursor: pointer; font-weight: 650; font-size: .88rem; color: var(--ink-2); min-height: 36px; }
.rate button:hover { border-color: var(--accent-line); color: var(--ink); }
.rate button[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.rate em { font-style: normal; color: var(--muted); font-size: .88rem; font-weight: 500; }
.fb-inline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); margin: 8px 0 18px; }
.fb-inline h2 { font-size: 1.02rem; margin: 0 0 2px; }
.fb-inline p { margin: 0; color: var(--muted); font-size: .92rem; }
.fb-inline .btn { background: transparent; color: var(--ink); border-color: var(--line-2); }
.fb-inline .btn:hover { border-color: var(--accent-line); color: var(--accent-text); filter: none; }
.embed-box { margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 16px; }
.embed-box summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: .93rem; color: var(--ink-2); }
.embed-box p { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.embed-box textarea { width: 100%; font: .8rem/1.5 var(--mono); padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink-2); resize: vertical; }
.embed-box .btn { margin: 8px 0 14px; }

/* content */
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); max-width: 76ch; }
.prose h2 { color: var(--ink); margin-top: 2em; padding-top: .2em; }
.prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .93rem; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--surface-2); color: var(--ink); font-size: .86rem; }
.prose td { font-variant-numeric: tabular-nums; }
.prose code { font: .9em var(--mono); background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.prose .formula { font: .95rem/1.7 var(--mono); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 16px; overflow-x: auto; color: var(--ink); white-space: pre-wrap; }
.prose .callout { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 12px 16px; color: var(--ink); }
.prose .warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: 12px; padding: 12px 16px; }
.content { margin-top: 12px; }
.content > h2:first-child { margin-top: .6em; }
.page h1 { margin-top: 8px; }
.faq { margin-top: 40px; max-width: 76ch; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 15px 46px 15px 16px; font-weight: 700; list-style: none; position: relative; line-height: 1.45; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 500 1.2rem var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; color: var(--accent-text); }
.faq-a { padding: 0 16px 6px; color: var(--ink-2); }
.method { margin-top: 32px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); max-width: 76ch; }
.method h2 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.method h2 svg { color: var(--accent-text); }
.method p { margin-bottom: .5em; }
.src-h { font-weight: 700; margin-bottom: 2px !important; color: var(--ink); }
.sources { margin: 0; padding-left: 1.2em; }
.related { margin-top: 40px; }
.related h2 { margin-bottom: 14px; }

/* 404 */
.nf { text-align: center; padding: 34px 0; }
.nf-code { font: 700 5.5rem/1 var(--mono); color: var(--accent-text); margin: 0; opacity: .9; }
.nf p { color: var(--muted); }
.nf .search-slim { margin: 20px auto 32px; }
.nf .tgrid { text-align: left; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); margin-top: 48px; padding: 40px 0 26px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); margin-top: 12px; max-width: 38ch; line-height: 1.6; }
.footer h2 { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 12px; }
.foot-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; align-content: start; }
.foot-cats h2 { grid-column: 1 / -1; }
.foot-links { display: flex; flex-direction: column; gap: 2px; }
.footer nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.footer nav a:hover { color: var(--accent-text); }
.copy { color: var(--muted); font-size: .82rem; margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- overlays: search, feedback, favourites, toast, consent ---------- */
.ov { position: fixed; inset: 0; z-index: 80; background: rgba(5, 7, 10, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 9vh 12px 12px; animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } }
.ov-box { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 82vh; }
.ov-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ov-head svg { color: var(--muted); }
.ov-head input { flex: 1; border: 0; outline: 0; background: none; font-size: 1.08rem; padding: 8px 0; min-width: 0; color: var(--ink); }
.ov-head h2 { margin: 0; font-size: 1.05rem; flex: 1; }
.ov-x { border: 1px solid var(--line-2); background: var(--bg); border-radius: 7px; padding: 4px 9px; cursor: pointer; font: 600 .74rem var(--mono); color: var(--muted); }
.ov-body { overflow: auto; padding: 8px; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.sr-item:hover, .sr-item.on { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.sr-item .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); flex: none; }
.sr-item .ico .ci { width: 18px; height: 18px; }
.sr-item strong { display: block; font-size: .96rem; }
.sr-item small { color: var(--muted); display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch; }
.sr-empty { padding: 22px; text-align: center; color: var(--muted); font-size: .9rem; }
.fb-form { display: grid; gap: 14px; }
.ov .fb-form { padding: 18px; }
.field label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.field label em { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-2); background: var(--bg); border-radius: 10px; padding: 11px 12px; font-size: 1rem; outline: 0; color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.fb-check input { margin-top: 4px; accent-color: var(--accent); }
.fb-status { margin: 0; font-weight: 650; font-size: .92rem; }
.fb-status.ok { color: var(--ok); }
.fb-status.bad { color: var(--bad); }
.fb-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 99px; padding: 10px 15px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: .88rem; box-shadow: var(--shadow-lg); cursor: pointer; min-height: 44px; }
.fb-float:hover { border-color: var(--accent-line); color: var(--accent-text); }
body.has-anchor .fb-float { bottom: calc(78px + env(safe-area-inset-bottom)); }
@media (max-width: 560px) { .fb-float span { display: none; } .fb-float { padding: 12px 13px; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--raise); color: var(--ink); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 12px; font-weight: 650; font-size: .92rem; box-shadow: var(--shadow-lg); animation: fade .15s; }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; font-size: .9rem; }
.consent p { margin: 0 0 12px; color: var(--ink-2); }
.consent div { display: flex; gap: 8px; flex-wrap: wrap; }

/* embed */
body.embed { background: transparent; }
.embed-main { padding: 6px; }
.embed .tool-card { margin: 0; box-shadow: none; }
.embed-credit { text-align: right; font-size: .78rem; color: var(--muted); margin: 6px 4px 0; }
.embed-credit a { color: var(--muted); }

/* print */
@media print {
  :root, :root[data-theme="light"] { --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --ink-2: #222; --muted: #555; --line: #bbb; --line-2: #999; --accent-text: #000; --result-bg: #fff; color-scheme: light; }
  .topbar, .footer, .sidebar, .ad, .tt-actions, .rate, .fb-inline, .embed-box, .fb-float, .consent, .related, .crumbs, .tt-sys, .tool-meta .fav-btn, .faq, .content, .method, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .with-side { display: block; }
  .card { box-shadow: none; border-color: #bbb; }
  .tt-primary { border: 2px solid #000; }
  .tt-primary::before { display: none; }
  .tt-input { border-color: #999; }
  .tool-head .lead { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.hx.no-demo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) {
  .catgrid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ccard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 14px; padding: 14px; align-items: center; }
  .ccard-top { display: contents; }
  .ccard-top .ico-tile { grid-row: 1 / span 2; grid-column: 1; }
  .ccard strong { grid-column: 2; grid-row: 1; font-size: 1rem; }
  .ccard p { grid-column: 2 / span 2; grid-row: 2; margin: 0; -webkit-line-clamp: 1; }
  .ccard-n { grid-column: 3; grid-row: 1; }
}
/* ---------- printable documents (quotes, change orders, tickets) ---------- */
.tt-doc { margin-top: 18px; border: 1px solid var(--accent-line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.tt-doc > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
.tt-doc > summary::-webkit-details-marker { display: none; }
.tt-doc > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex: none; }
.tt-doc[open] > summary::after { transform: rotate(-135deg); }
.tt-doc > summary strong { display: block; font-size: 1rem; }
.tt-doc > summary small { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.tt-doc > summary:hover { background: var(--accent-soft); }
.tt-doc-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; border: 1px solid var(--accent-line); }
.tt-doc-body { padding: 4px 18px 20px; border-top: 1px solid var(--line); }
.tt-doc-sub { margin: 18px 0 8px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); font-weight: 600; }
.tt-doc textarea, .tt-doc .tt-input input[type=text] { font-family: var(--font); font-size: .98rem; }
.tt-doc textarea { min-height: 0; line-height: 1.45; }
.tt-doc-logo { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 46px; }
.tt-doc-logo label.act { cursor: pointer; }
.tt-doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 14px; }
.tt-doc-actions .tt-go { width: auto; margin: 0; }
.tt-doc-actions .tt-go svg { flex: none; }
.tt-paper-wrap { border-radius: 10px; background: var(--bg); border: 1px solid var(--line); padding: 14px; overflow-x: auto; }
.tt-paper { background: #fff; color: #1a1f24; font-family: var(--font); font-size: 13px; line-height: 1.45; padding: 32px 34px; border-radius: 4px; min-width: 560px; max-width: 820px; margin: 0 auto; box-shadow: 0 8px 30px -12px rgba(0,0,0,.5); }
.tt-paper table { border-collapse: collapse; width: 100%; }
.tt-paper .dp-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 18px; border-bottom: 2px solid #1a1f24; }
.tt-paper .dp-logo { max-height: 64px; max-width: 200px; display: block; margin-bottom: 8px; }
.tt-paper .dp-biz { font-size: 18px; font-weight: 800; }
.tt-paper .dp-small { color: #4a525b; font-size: 12px; }
.tt-paper .dp-meta { text-align: right; }
.tt-paper .dp-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; margin-bottom: 6px; }
.tt-paper .dp-meta table { width: auto; margin-left: auto; }
.tt-paper .dp-meta th { text-align: right; font-weight: 600; color: #4a525b; padding: 1px 10px 1px 0; }
.tt-paper .dp-meta td { text-align: right; font-family: var(--mono); font-size: 12px; }
.tt-paper .dp-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0; }
.tt-paper .dp-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6a737d; margin: 14px 0 4px; }
.tt-paper .dp-parties .dp-lbl { margin-top: 0; }
.tt-paper .dp-strong { font-weight: 700; }
.tt-paper .dp-desc { white-space: normal; margin-bottom: 6px; }
.tt-paper .dp-lines { margin-top: 16px; }
.tt-paper .dp-lines th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #4a525b; border-bottom: 1px solid #1a1f24; padding: 6px 8px; }
.tt-paper .dp-lines td { padding: 7px 8px; border-bottom: 1px solid #dfe3e7; vertical-align: top; }
.tt-paper .n { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 12px; }
.tt-paper .dp-lines th.n { font-family: var(--font); font-size: 11px; }
.tt-paper .dp-totals, .tt-paper .dp-sum { width: auto; min-width: 280px; margin: 12px 0 0 auto; }
.tt-paper .dp-sum { margin: 6px 0 4px; min-width: 0; width: 100%; }
.tt-paper .dp-totals th, .tt-paper .dp-sum th { text-align: left; font-weight: 600; padding: 4px 8px; color: #33393f; }
.tt-paper .dp-totals td, .tt-paper .dp-sum td { text-align: right; padding: 4px 8px; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.tt-paper .dp-sum tr { border-bottom: 1px solid #eef0f2; }
.tt-paper .dp-tot th, .tt-paper .dp-tot td { border-top: 2px solid #1a1f24; font-weight: 800; font-size: 14px; color: #1a1f24; padding-top: 7px; }
.tt-paper .dp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 40px; }
.tt-paper .dp-line { border-bottom: 1px solid #1a1f24; height: 34px; }
/* waitlist */
.tt-wl { margin-top: 18px; padding: 18px; border-radius: var(--r); border: 1px dashed var(--line-2); background: var(--bg-2); }
.tt-wl-badge { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--star); border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px; }
.tt-wl-title { display: block; font-size: 1.05rem; margin: 10px 0 4px; }
.tt-wl-text { margin: 0 0 12px; color: var(--ink-2); font-size: .94rem; }
.tt-wl-btn { min-height: 42px; padding: 10px 16px; }
.tt-wl > .tt-wl-btn { background: transparent; color: var(--ink); border-color: var(--line-2); }
.tt-wl > .tt-wl-btn:hover { border-color: var(--accent-line); color: var(--accent-text); }
.tt-wl-form { display: flex; gap: 8px; flex-wrap: wrap; }
.tt-wl-form .tt-input { flex: 1 1 220px; }
.tt-wl-ok { margin: 0; color: var(--ok); font-weight: 650; }
#tt-docprint { display: none; }
@media (max-width: 560px) {
  .tt-doc-body { padding: 4px 14px 16px; }
  .tt-paper-wrap { padding: 8px; }
  .tt-paper { padding: 18px 14px; min-width: 0; font-size: 11.5px; }
  .tt-paper .dp-head { flex-direction: column; gap: 10px; }
  .tt-paper .dp-meta { text-align: left; }
  .tt-paper .dp-meta table { margin-left: 0; }
  .tt-paper .dp-meta th { text-align: left; }
  .tt-paper .dp-title { font-size: 19px; }
  .tt-paper .dp-parties, .tt-paper .dp-sign { grid-template-columns: 1fr; gap: 12px; }
  .tt-paper .dp-lines th, .tt-paper .dp-lines td { padding: 6px 3px; }
  .tt-paper .dp-lines th:nth-child(3), .tt-paper .dp-lines td:nth-child(3) { display: none; }
  .tt-paper .n { font-size: 10.5px; }
  .tt-paper .dp-totals { min-width: 0; width: 100%; }
}
@media print {
  html.print-doc body > *:not(#tt-docprint) { display: none !important; }
  html.print-doc #tt-docprint { display: block !important; }
  html.print-doc body { background: #fff !important; }
  html.print-doc .tt-paper { box-shadow: none; padding: 0; min-width: 0; max-width: none; border-radius: 0; }
  .tt-doc, .tt-wl { display: none !important; }
  @page { margin: 14mm; }
}
/* @icons-start (generated by scripts/gen-icons.js) */
.ci { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2.5'/%3E%3Cpath d='M8.5 7.5h7'/%3E%3Cpath d='M8.5 12h.01M12 12h.01M15.5 12h.01M8.5 15.5h.01M12 15.5h.01M15.5 15.5h.01M8.5 18.5h.01M12 18.5h.01M15.5 18.5h.01' stroke-width='2.4'/%3E%3C/svg%3E"); }
.ci-everyday { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2.5'/%3E%3Cpath d='M8.5 7.5h7'/%3E%3Cpath d='M8.5 12h.01M12 12h.01M15.5 12h.01M8.5 15.5h.01M12 15.5h.01M15.5 15.5h.01M8.5 18.5h.01M12 18.5h.01M15.5 18.5h.01' stroke-width='2.4'/%3E%3C/svg%3E"); }
.ci-construction { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1.5'/%3E%3Cpath d='M3 9.7h18M3 14.3h18M9 5v4.7M15 5v4.7M6 9.7v4.6M12 9.7v4.6M18 9.7v4.6M9 14.3V19M15 14.3V19'/%3E%3C/svg%3E"); }
.ci-woodworking { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='5' rx='1'/%3E%3Crect x='3' y='13' width='18' height='5' rx='1'/%3E%3Cpath d='M8 6v5M16 13v5'/%3E%3Cpath d='M12 8.5h3M6 15.5h4'/%3E%3C/svg%3E"); }
.ci-crafts { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5c3.6 4.3 6 7.4 6 10.5a6 6 0 0 1-12 0c0-3.1 2.4-6.2 6-10.5z'/%3E%3Cpath d='M9.3 14.5a2.7 2.7 0 0 0 2.7 2.7'/%3E%3C/svg%3E"); }
.ci-sewing { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='3' width='12' height='3' rx='1'/%3E%3Crect x='6' y='18' width='12' height='3' rx='1'/%3E%3Cpath d='M8 6v12M16 6v12M8 9.5l8 2.5M8 13l8 2.5'/%3E%3C/svg%3E"); }
.ci-home-garden { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-8.5'/%3E%3Cpath d='M12 12.5c0-4.4 3-7.5 8-7.5 0 4.4-3 7.5-8 7.5z'/%3E%3Cpath d='M12 15c0-3.3-2.6-6-7-6 0 3.3 2.6 6 7 6z'/%3E%3C/svg%3E"); }
.ci-pools { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8c2 0 2-1.5 4.5-1.5S9.5 8 12 8s2.5-1.5 4.5-1.5S18.5 8 21 8'/%3E%3Cpath d='M3 13c2 0 2-1.5 4.5-1.5S9.5 13 12 13s2.5-1.5 4.5-1.5S18.5 13 21 13'/%3E%3Cpath d='M3 18c2 0 2-1.5 4.5-1.5S9.5 18 12 18s2.5-1.5 4.5-1.5S18.5 18 21 18'/%3E%3C/svg%3E"); }
.ci-electrical { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2.5L5 13.5h6l-1 8 8-11h-6z'/%3E%3C/svg%3E"); }
.ci-cooking { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5h13v4.5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5z'/%3E%3Cpath d='M17 11h1.3a2.5 2.5 0 0 1 0 5H17'/%3E%3Cpath d='M8 3.5v3M12 3.5v3'/%3E%3C/svg%3E"); }
.ci-money { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9.3c-.5-1.1-1.6-1.8-3-1.8-1.8 0-3 1-3 2.3 0 3 6 1.6 6 4.6 0 1.3-1.3 2.3-3 2.3-1.5 0-2.6-.7-3.1-1.8M12 5.8v1.7M12 16.7v1.5'/%3E%3C/svg%3E"); }
.ci-automotive { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 16.5V12l2.2-5h12.6l2.2 5v4.5'/%3E%3Cpath d='M3.5 12h17M3.5 16.5h1.7M10 16.5h4M18.8 16.5h1.7'/%3E%3Ccircle cx='7.5' cy='16.5' r='2'/%3E%3Ccircle cx='16.5' cy='16.5' r='2'/%3E%3C/svg%3E"); }
.ci-converters { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h15l-3.5-3.5M20 15.5H5l3.5 3.5'/%3E%3C/svg%3E"); }
.ci-hvac { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5v19M4.5 7l15 10M4.5 17l15-10'/%3E%3Cpath d='M9.5 4l2.5 2 2.5-2M9.5 20l2.5-2 2.5 2M3.3 10l3.1-.9-.6-3.1M20.7 14l-3.1.9.6 3.1M3.3 14l3.1.9-.6 3.1M20.7 10l-3.1-.9.6-3.1'/%3E%3C/svg%3E"); }
.ci-pets { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='16.3' rx='4.3' ry='3.6'/%3E%3Ccircle cx='6.2' cy='10.6' r='1.9'/%3E%3Ccircle cx='9.6' cy='6.6' r='1.9'/%3E%3Ccircle cx='14.4' cy='6.6' r='1.9'/%3E%3Ccircle cx='17.8' cy='10.6' r='1.9'/%3E%3C/svg%3E"); }
.ci-contractor { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1'/%3E%3Cpath d='M8.5 9h7M8.5 12.5h4'/%3E%3Cpath d='M14 16.2l1.4 1.4 2.6-2.8'/%3E%3C/svg%3E"); }
.ci-farm { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21V10l9-6.5 9 6.5v11'/%3E%3Cpath d='M3 21h18M9 21v-6.5h6V21M9 14.5l6 6.5M15 14.5L9 21'/%3E%3Cpath d='M10 10.5h4'/%3E%3C/svg%3E"); }
.ci-farm-dairy { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M9.5 3v3.5L7 10v9.5A1.5 1.5 0 0 0 8.5 21h7a1.5 1.5 0 0 0 1.5-1.5V10l-2.5-3.5V3'/%3E%3Cpath d='M7 13h10'/%3E%3C/svg%3E"); }
/* @icons-end */
