/* Sitebot — shared styles. Tokens first; components below. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #16132B;
  --ink-2: #33304A;
  --muted: #5E5A72;
  --faint: #8E8AA3;
  --line: #E7E4EE;
  --line-2: #F0EEF5;
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --soft: #F3F1FA;
  --night: #1E1A3A;
  --night-2: #2A2550;
  --night-text: #CFCBE6;
  --lime: #C6F36B;

  --violet: #5B3FD9; --violet-tint: #EFEBFF; --violet-dark: #4329B8;
  --blue:   #1858C4; --blue-tint:   #E4EEFF;
  --orange: #B8420B; --orange-tint: #FFEDE2;
  --teal:   #0B6A73; --teal-tint:   #DDF4F4;
  --rose:   #B4235E; --rose-tint:   #FCE6EF;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 18px;
  --shadow-1: 0 4px 14px rgba(30, 26, 58, .06);
  --shadow-2: 0 10px 24px rgba(30, 26, 58, .10);
  --shadow-3: 0 24px 48px rgba(30, 26, 58, .28);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
.ico { display: inline-block; flex: none; vertical-align: middle; }
a { color: var(--violet); }
a:hover { color: var(--violet-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.topbar :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--lime); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
p { margin: 0; }
kbd { font-family: var(--mono); font-size: 12px; }
code, kbd, pre, textarea, .src, .glyph, .eyebrow, .eyebrow-pill, .num, .cm-editor { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap--wide { max-width: 1320px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--lime); color: var(--night); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.muted-light { color: var(--night-text); font-size: 14px; }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--violet); margin-bottom: 8px; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar { background: var(--night); color: #fff; position: relative; z-index: 20; }
.topbar__in { height: 68px; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.logo:hover { color: #fff; }
.logo__mark { width: 32px; height: 32px; border-radius: 9px; background: var(--lime); color: var(--night); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 14px; }
.logo__word { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.logo__word span { color: var(--lime); }
.topsearch { flex: 1; max-width: 420px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 11px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); color: var(--night-text); font-size: 14px; text-align: left; }
.topsearch:hover { background: rgba(255,255,255,.15); }
.topsearch__label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topsearch kbd { border: 1px solid rgba(255,255,255,.25); border-radius: 5px; padding: 1px 6px; font-size: 11px; }
.topnav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; margin-left: auto; }
.topnav a { color: var(--night-text); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a[aria-current] { color: #fff; border-bottom-color: var(--lime); }
.home .topnav { margin-left: 8px; }
.badge-local { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--night); background: var(--lime); padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.home .badge-local { margin-left: auto; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; align-items: center; justify-content: center; margin-left: auto; border-radius: 10px; }
.mobile-menu { background: var(--night); border-top: 1px solid rgba(255,255,255,.12); padding: 8px 16px 16px; display: flex; flex-direction: column; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a, .mobile-menu__search { display: flex; align-items: center; gap: 12px; min-height: 48px; color: #fff; text-decoration: none; font-size: 16px; font-weight: 500; border: 0; background: none; padding: 0; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; width: 100%; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.dot--blue { background: #5B8DEF; } .dot--orange { background: #F08A4B; } .dot--rose { background: #E5679A; } .dot--violet { background: #9A84FF; } .dot--teal { background: #3DB6BF; }

/* ── Hero + big search ───────────────────────────────────── */
.hero { background: var(--night); color: #fff; }
.hero__in { padding-top: 56px; padding-bottom: 80px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.eyebrow-pill { font-family: var(--mono); font-size: 13px; color: var(--lime); border: 1px solid rgba(198,243,107,.4); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.035em; max-width: 860px; }
.hl { color: var(--lime); }
.hero__lead { font-size: 18px; color: var(--night-text); max-width: 600px; }
.bigsearch { position: relative; width: 100%; max-width: 680px; margin-top: 10px; text-align: left; }
.bigsearch__field { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--violet); border-radius: 16px; padding: 0 12px 0 20px; height: 66px; box-shadow: 0 12px 32px rgba(0,0,0,.25); transition: box-shadow .15s; }
.bigsearch__field:focus-within { box-shadow: 0 0 0 5px rgba(198,243,107,.55), 0 12px 32px rgba(0,0,0,.25); }
.bigsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; color: var(--ink); height: 60px; }
.bigsearch input::placeholder { color: var(--faint); }
.bigsearch input::-webkit-search-cancel-button { cursor: pointer; }
.bigsearch__kbd { color: var(--muted); background: #F1EFF7; border-radius: 7px; padding: 6px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: 14px; color: var(--night-text); }
.chip { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: 0 14px; height: 38px; font-size: 14px; }
.chip:hover { background: rgba(255,255,255,.18); }

/* Search results list (hero dropdown + palette) */
.results { list-style: none; margin: 0; padding: 8px; }
.results--drop { position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-3); z-index: 30; max-height: min(60vh, 460px); overflow-y: auto; }
.results__item a, .results__item div { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.results__item[aria-selected="true"] a, .results__item a:hover { background: #F5F2FF; }
.results__txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.results__name { font-weight: 600; font-size: 15px; }
.results__desc { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results__cat { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.results__empty { padding: 18px 12px; color: var(--muted); font-size: 14px; }
.results__soon div { opacity: .65; }
mark { background: #FFF1A8; color: inherit; border-radius: 3px; padding: 0 1px; }

/* Glyph tiles */
.glyph { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 12px; white-space: nowrap; letter-spacing: -0.02em; }
.glyph--violet { background: var(--violet-tint); color: var(--violet); }
.glyph--blue   { background: var(--blue-tint);   color: var(--blue); }
.glyph--orange { background: var(--orange-tint); color: var(--orange); }
.glyph--teal   { background: var(--teal-tint);   color: var(--teal); }
.glyph--rose   { background: var(--rose-tint);   color: var(--rose); }
.glyph--solid.glyph--violet { background: var(--violet); color: #fff; }
.glyph--solid.glyph--blue   { background: var(--blue);   color: #fff; }
.glyph--solid.glyph--orange { background: var(--orange); color: #fff; }
.glyph--solid.glyph--teal   { background: var(--teal);   color: #fff; }
.glyph--solid.glyph--rose   { background: var(--rose);   color: #fff; }
.c-violet { color: var(--violet); background: var(--violet-tint); }
.c-blue { color: var(--blue); background: var(--blue-tint); }
.c-orange { color: var(--orange); background: var(--orange-tint); }
.c-teal { color: var(--teal); background: var(--teal-tint); }
.c-rose { color: var(--rose); background: var(--rose-tint); }

/* ── Category tiles ──────────────────────────────────────── */
.cattiles { margin-top: -28px; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cattile { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.cattile:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.cattile strong { display: block; font-size: 15px; }
.cattile small { display: block; font-size: 13px; color: var(--muted); }

/* ── Sections ────────────────────────────────────────────── */
.section { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section__head .muted { margin-top: 8px; font-size: 16px; }
.band-soft { background: var(--soft); border-top: 1px solid var(--line); }
.band-lime { background: var(--lime); color: var(--night); }
.privacy-grid { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; align-items: start; }
.privacy-grid h2 { font-size: 28px; margin-bottom: 10px; }
.privacy-grid p { font-size: 14.5px; line-height: 1.55; color: #2F2A4F; }
.privacy-grid strong { display: block; font-size: 16px; margin: 6px 0; }
.num { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--violet); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { color: var(--ink); border-color: #CFC9DE; background: #FBFAFE; }
.btn--primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-dark); border-color: var(--violet-dark); color: #fff; }
.btn--soft { background: var(--violet-tint); border-color: #E0D9FF; color: var(--violet); }
.btn--soft:hover { background: #E5DFFF; color: var(--violet); }
.btn--sm { height: 40px; padding: 0 14px; font-size: 14px; font-weight: 500; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Groups (Markdown toolkit) */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; align-items: stretch; }
.group { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.group__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.group__head h3 { font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.group__head span { font-size: 12px; font-weight: 600; }
.group--violet .group__head { background: var(--violet-tint); color: var(--violet); }
.group--blue .group__head { background: var(--blue-tint); color: var(--blue); }
.group--teal .group__head { background: var(--teal-tint); color: var(--teal); }
.group--rose .group__head { background: var(--rose-tint); color: var(--rose); }
.group--orange .group__head { background: var(--orange-tint); color: var(--orange); }
.group__list { padding: 8px; display: flex; flex-direction: column; }

/* Tool card / row */
.tcard { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.tcard:hover { color: var(--ink); }
.tcard__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tcard__name { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.tcard__desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.tcard--row { padding: 10px; min-height: 60px; border-radius: 10px; }
.tcard--row:hover { background: #F7F5FD; }
.tcard--row .glyph { width: 40px; height: 40px; font-size: 11px; }
.tcard--card { padding: 18px; min-height: 92px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; height: 100%; }
.tcard--card:not(.is-soon):hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.tcard--card .glyph { width: 48px; height: 48px; }
.is-soon { cursor: default; }
.is-soon .glyph { filter: saturate(.4); opacity: .75; }
.is-soon .tcard__name { color: var(--ink-2); }
.tcard--row.is-soon:hover { background: transparent; }
.soon { display: inline-block; vertical-align: 1px; margin-right: 2px; font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--line-2); padding: 2px 7px; border-radius: 999px; }

/* Filter pills + grid */
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--night); }
.pill--blue { color: var(--blue); } .pill--orange { color: var(--orange); } .pill--rose { color: var(--rose); } .pill--teal { color: var(--teal); }
.pill.is-on { background: var(--night); border-color: var(--night); color: #fff; }
.pill--blue.is-on { background: var(--blue); border-color: var(--blue); }
.pill--orange.is-on { background: var(--orange); border-color: var(--orange); }
.pill--rose.is-on { background: var(--rose); border-color: var(--rose); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.grid-cards__item[hidden] { display: none; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--night); color: var(--night-text); margin-top: 0; }
.footer__in { padding-top: 48px; padding-bottom: 32px; display: grid; grid-template-columns: 1.5fr repeat(var(--fcols, 5), 1fr); gap: 28px; }
.footer__all { color: var(--lime) !important; font-weight: 600; }
.footer__brand p { margin-top: 14px; font-size: 14px; max-width: 280px; line-height: 1.55; }
.footer__col h2 { font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.footer__col h2 a { color: #fff; text-decoration: none; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer a { color: var(--night-text); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__base { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footer__base nav { display: flex; gap: 22px; }

/* ── Search palette ──────────────────────────────────────── */
.palette { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.palette[hidden] { display: none; }
.palette__backdrop { position: absolute; inset: 0; background: rgba(22, 19, 43, .55); backdrop-filter: blur(2px); }
.palette__box { position: relative; width: 100%; max-width: 640px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden; display: flex; flex-direction: column; max-height: 80vh; }
.palette__field { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 18px; height: 62px; border-bottom: 1px solid var(--line); color: var(--violet); }
.palette__field input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 17px; color: var(--ink); background: transparent; height: 58px; }
.palette__esc { border: 1px solid var(--line); background: #F7F6FA; border-radius: 7px; height: 32px; padding: 0 10px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.palette .results { overflow-y: auto; flex: 1; }
.palette__hint { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }

/* ── Tool page ───────────────────────────────────────────── */
.toolhead { border-bottom: 1px solid #E0D9FF; }
.toolhead--violet { background: var(--violet-tint); border-color: #E0D9FF; }
.toolhead--blue { background: var(--blue-tint); border-color: #CFDFFB; }
.toolhead--orange { background: var(--orange-tint); border-color: #FAD9C6; }
.toolhead--rose { background: var(--rose-tint); border-color: #F6CFDF; }
.toolhead__in { padding-top: 20px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a.crumbs__cat { color: var(--violet); font-weight: 600; }
.toolhead__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.toolhead__title { display: flex; align-items: center; gap: 16px; }
.toolhead__title .glyph { width: 56px; height: 56px; border-radius: 14px; font-size: 14px; }
.toolhead h1 { font-size: clamp(27px, 3.4vw, 36px); }
.toolhead__sub { color: var(--muted); font-size: 16px; margin-top: 4px; }
.local-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--night); background: var(--lime); padding: 8px 14px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.toolmain { padding-top: 24px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 36px; }

/* Workbench: toolbar + panes */
.bench { border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; overflow: hidden; box-shadow: 0 6px 24px rgba(30,26,58,.06); }
.bench__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FBFAFE; }
.bench__bar .spacer { flex: 1; }
.bench__panes { display: flex; flex-wrap: wrap; }
.pane { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; }
.pane + .pane { border-left: 1px solid var(--line); }
.pane__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; padding: 6px 12px 6px 18px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line-2); text-transform: uppercase; }
.pane__head .note { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--teal); }
.pane__body { flex: 1; min-height: 480px; position: relative; }
.pane--paper { background: #ECE9F4; }
.pane--paper .pane__head { border-color: #E0DCEB; }
.src { width: 100%; height: 100%; min-height: 480px; border: 0; resize: vertical; padding: 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--ink); background: #fff; outline: none; tab-size: 4; }
.src::placeholder { color: var(--faint); }
.src--out { background: #FBFAFE; }
.field { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.select, .input { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 14px; background: #fff; color: var(--ink); }
.input--num { width: 64px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { height: 38px; padding: 0 12px; border: 0; background: transparent; font-size: 13px; color: var(--ink); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--violet); color: #fff; font-weight: 600; }
.tabs { display: none; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); min-height: 40px; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); }

/* Toast + drop overlay */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--night); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-2); opacity: 0; transition: opacity .2s, transform .2s; z-index: 60; pointer-events: none; display: flex; align-items: center; gap: 8px; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--error { background: #8E1B3F; }
.dropzone { position: absolute; inset: 0; background: rgba(91,63,217,.08); border: 2px dashed var(--violet); border-radius: var(--r); display: none; place-items: center; font-weight: 600; color: var(--violet); z-index: 5; pointer-events: none; }
.is-dragging .dropzone { display: grid; }
.alert { padding: 12px 16px; border-radius: var(--r); font-size: 14px; background: #FFF4E5; color: #7A3E00; border: 1px solid #F7D9AE; }

/* Related + content */
.related h2 { font-size: 20px; margin-bottom: 12px; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.related .tcard--card { padding: 14px; min-height: 0; }
.related .tcard--card .glyph { width: 42px; height: 42px; font-size: 11px; }
.content { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px; border-top: 1px solid var(--line); padding-top: 36px; }
.content h2 { font-size: 24px; margin-bottom: 16px; }
.content h3 { font-size: 17px; margin: 22px 0 8px; font-family: var(--font); letter-spacing: 0; }
.content p, .content li { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.content p + p { margin-top: 12px; }
.content code { font-family: var(--mono); font-size: .9em; background: var(--line-2); padding: 1px 5px; border-radius: 5px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: flex-start; counter-increment: s; }
.steps li::before { content: counter(s); width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-top: -2px; }
.steps li:nth-child(2)::before { background: var(--blue); }
.steps li:nth-child(3)::before { background: var(--teal); }
.steps li:nth-child(4)::before { background: var(--rose); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* Rendered Markdown (preview + PDF paper) */
.md { font-size: 15px; line-height: 1.65; color: #24222F; word-wrap: break-word; }
.md > :first-child { margin-top: 0 !important; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { font-family: var(--font); letter-spacing: -0.01em; font-weight: 700; color: var(--ink); margin: 1.4em 0 .5em; line-height: 1.25; }
.md h1 { font-size: 1.9em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.md h2 { font-size: 1.45em; padding-bottom: .25em; border-bottom: 1px solid var(--line); }
.md h3 { font-size: 1.2em; } .md h4 { font-size: 1.05em; }
.md p, .md ul, .md ol, .md blockquote, .md pre, .md table { margin: 0 0 1em; }
.md ul, .md ol { padding-left: 1.6em; }
.md li + li { margin-top: .25em; }
.md li > input[type="checkbox"] { margin: 0 .4em 0 -1.3em; vertical-align: middle; }
.md li:has(> input[type="checkbox"]) { list-style: none; }
.md blockquote { padding: .2em 1em; color: var(--muted); border-left: 4px solid #D9D3F5; }
.md code { font-family: var(--mono); font-size: .88em; background: #F3F1F8; padding: .15em .35em; border-radius: 5px; }
.md pre { background: #F6F5FA; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; line-height: 1.55; }
.md pre code { background: none; padding: 0; font-size: .85em; }
.md table { border-collapse: collapse; display: block; width: max-content; max-width: 100%; overflow-x: auto; }
.md th, .md td { border: 1px solid #D9D5E3; padding: 6px 12px; }
.md th { background: #F5F3FA; font-weight: 600; }
.md tr:nth-child(2n) td { background: #FBFAFD; }
.md img { max-width: 100%; height: auto; }
.md hr { border: 0; border-top: 2px solid var(--line); margin: 1.6em 0; }
.md a { color: var(--blue); }
.md del { color: var(--muted); }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in { color: #8B2BD0; }
.hljs-string, .hljs-attr-value, .hljs-regexp { color: #0B6A73; }
.hljs-number, .hljs-literal { color: #B8420B; }
.hljs-comment, .hljs-quote { color: #8E8AA3; font-style: italic; }
.hljs-title, .hljs-title.function_, .hljs-section { color: #1858C4; }
.hljs-attr, .hljs-attribute, .hljs-variable, .hljs-template-variable { color: #B4235E; }
.hljs-tag, .hljs-name { color: #5B3FD9; }
.hljs-meta { color: #6B6680; }

/* Simple pages (category, privacy, about, 404) */
.pagehead { background: var(--night); color: #fff; }
.pagehead__in { padding-top: 48px; padding-bottom: 52px; display: flex; flex-direction: column; gap: 12px; }
.pagehead h1 { font-size: clamp(30px, 4.5vw, 46px); }
.pagehead p { color: var(--night-text); font-size: 17px; max-width: 640px; }
.pagehead .crumbs a, .pagehead .crumbs { color: var(--night-text); }
.prose { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.prose h2 { font-size: 24px; margin: 32px 0 12px; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .topnav { display: none; }
  .badge-local span { display: none; }
  .badge-local { padding: 8px; }
  .menu-btn { display: inline-flex; margin-left: 0; }
  .topsearch { margin-left: auto; }
  .home .badge-local { margin-left: auto; }
  .footer__in { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .pane + .pane { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topbar__in { height: 60px; gap: 10px; }
  .logo__word { font-size: 19px; }
  .topsearch { width: 44px; flex: none; padding: 0; justify-content: center; }
  .topsearch__label, .topsearch kbd { display: none; }
  .badge-local { display: none; }
  .hero__in { padding-top: 32px; padding-bottom: 60px; gap: 16px; }
  .hero__lead { font-size: 16px; }
  .bigsearch__field { height: 58px; padding-left: 14px; }
  .bigsearch input { font-size: 16px; }
  .bigsearch__kbd { display: none; }
  .results--drop { top: 66px; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 16px); padding-right: 16px; margin-right: -16px; }
  .chips > span { display: none; }
  .chip { flex: none; height: 40px; }
  .cattiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; margin-right: 0; scrollbar-width: none; }
  .section { padding-top: 44px; padding-bottom: 44px; gap: 20px; }
  .section__head .btn { width: 100%; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid-cards .tcard--card { flex-direction: column; align-items: flex-start; padding: 14px; gap: 10px; }
  .grid-cards .tcard__desc { display: none; }
  .footer__in { grid-template-columns: 1fr 1fr; gap: 24px; }
  .toolhead__title .glyph { width: 48px; height: 48px; font-size: 12px; }
  .toolhead__sub { font-size: 14.5px; }
  .bench { border-radius: var(--r-lg); }
  .bench__bar { padding: 10px 12px; }
  .bench__bar .btn--primary { width: 100%; order: 10; height: 50px; }
  .bench__bar .spacer { display: none; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 10px 12px 0; background: #ECE9F4; border-radius: 12px; }
  .tabs button { height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; }
  .tabs button[aria-selected="true"] { background: #fff; color: var(--violet); box-shadow: 0 1px 4px rgba(30,26,58,.12); }
  .bench.has-tabs .pane { display: none; }
  .bench.has-tabs .pane.is-active { display: flex; }
  .bench.has-tabs .pane + .pane { border-top: 0; }
  .pane__body, .src { min-height: 380px; }
  .palette { padding: 0; align-items: stretch; }
  .palette__box { max-width: none; max-height: none; border-radius: 0; height: 100%; }
}

/* Print: only the PDF document is printed (used by Markdown to PDF). */
@media print {
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing { background: #fff; }
  #print-root { display: block !important; }
}
#print-root { display: none; }

/* Announcement bar, SEO intro, also-searched line */
.announce { background: var(--lime); color: var(--night); font-size: 14px; font-weight: 600; text-align: center; }
.announce .wrap { padding-top: 9px; padding-bottom: 9px; }
.announce a { color: var(--night); text-decoration: none; }
.announce a:hover { text-decoration: underline; color: var(--night); }
.content .intro { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin-bottom: 26px; }
.also { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: -8px; }

/* Cookie choice bar (Google Analytics consent) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(22,19,43,.18); }
.consent p { margin: 0; font-size: 14px; line-height: 1.45; flex: 1; }
.consent__btns { display: flex; gap: 8px; flex-shrink: 0; }
.consent__btns .btn { height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; } .consent__btns .btn { flex: 1; } }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
@media print { .consent { display: none; } }

/* ── Ask Sitebot (homepage AI box) ─────────────────────────── */
.bigsearch--ai .bigsearch__field { padding-right: 8px; }
.bigsearch--ai .bigsearch__field > .ico { color: var(--violet); }
.bigsearch__clip, .bigsearch__go { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer; }
.bigsearch__clip { background: transparent; color: var(--muted); }
.bigsearch__clip:hover { background: var(--violet-tint); color: var(--violet); }
.bigsearch__go { background: var(--violet); color: #fff; }
.bigsearch__go:hover { background: var(--violet-dark); }
.bigsearch.is-busy .bigsearch__go { opacity: .6; pointer-events: none; }
.bigsearch.is-drag .bigsearch__field { box-shadow: 0 0 0 5px var(--lime), 0 12px 32px rgba(0,0,0,.25); }
.aifiles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.aifile { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 10px; padding: 6px 6px 6px 10px; font-size: 13px; }
.aifile.is-bad { border-color: #ff9b9b; }
.aifile__ab { font-family: var(--mono); background: var(--lime); color: var(--night); border-radius: 5px; padding: 0 5px; font-size: 12px; }
.aifile__n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.aifile__s { color: var(--night-text); white-space: nowrap; }
.aifile__x { border: 0; background: transparent; color: #fff; font-size: 18px; line-height: 1; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; }
.aifile__x:hover { background: rgba(255,255,255,.15); }
.aifiles__note { font-size: 12px; color: var(--night-text); }
.ainote { font-size: 13px; color: var(--night-text); max-width: 640px; margin: 2px auto 0; }
.ainote a { color: var(--lime); }
.aians { width: 100%; max-width: 680px; text-align: left; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.25); padding: 18px 20px; }
.aians__wait { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.aians__reply { font-size: 17px; margin: 0 0 10px; line-height: 1.45; }
.aians__msg { margin: 0 0 10px; color: var(--muted); }
.aians__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.aichip { font-size: 13px; background: var(--violet-tint); color: var(--violet-dark); border-radius: 999px; padding: 4px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aichip i { font-style: normal; opacity: .7; }
.aians__acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.aians__next { font-size: 14px; color: var(--muted); }
.aians__fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.aians__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.aians__list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.aians__list a:hover { background: var(--soft); }
.aians__list b { display: block; }
.aians__list small { color: var(--muted); }
.aiset { display: flex; align-items: flex-start; gap: 10px; background: var(--violet-tint); color: var(--violet-dark); border: 1px solid #DCD3FF; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: 15px; }
.aiset__ico { font-size: 18px; line-height: 1.2; }
.aiset > span:nth-child(2) { flex: 1; }
.aiset__x { border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
@media (max-width: 760px) {
  .bigsearch__clip, .bigsearch__go { width: 42px; height: 42px; }
  .aians { padding: 16px; }
  .aians__reply { font-size: 16px; }
  .aifile__n { max-width: 150px; }
}
.aispin { width: 18px; height: 18px; border: 3px solid var(--violet-tint); border-top-color: var(--violet); border-radius: 50%; animation: aispin .8s linear infinite; }
@keyframes aispin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .aispin { animation-duration: 2.4s; } }
.aiset + * { margin-top: 0 !important; }

/* CSV & Excel has five groups of different sizes: three balanced columns, Organise (the longest) in the middle. */
@media (min-width: 1001px) {
  .groups--data { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "clean organize convert" "check organize combine"; }
  .groups--data .group-clean { grid-area: clean; } .groups--data .group-organize { grid-area: organize; } .groups--data .group-convert { grid-area: convert; }
  .groups--data .group-check { grid-area: check; } .groups--data .group-combine { grid-area: combine; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .groups--data { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "clean organize" "check organize" "combine convert"; }
  .groups--data .group-clean { grid-area: clean; } .groups--data .group-organize { grid-area: organize; } .groups--data .group-convert { grid-area: convert; }
  .groups--data .group-check { grid-area: check; } .groups--data .group-combine { grid-area: combine; }
}
@media (min-width: 761px) and (max-width: 1100px) { .footer__in { grid-template-columns: repeat(3, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1001px) { .grid-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.results__paid { background: var(--violet-tint); color: var(--violet-dark); white-space: nowrap; }
.results__note { padding: 10px 14px 4px; font-size: 13px; color: var(--muted); list-style: none; }

.aibot { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; }
.aibot .glyph { flex: none; }
.aibot > div:nth-child(2) { flex: 1; min-width: 0; }
.aibot small { display: block; color: var(--muted); font-size: 13px; }
.aibot__tag { font-size: 11.5px; font-weight: 700; background: var(--violet-tint); color: var(--violet-dark); padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.aibot__price { text-align: right; white-space: nowrap; }
.aibot__price b { display: block; font-size: 17px; }
.aibtn-x { background: #000; color: #fff; border-color: #000; }
.aibtn-x:hover { background: #222; color: #fff; }
@media (max-width: 560px) { .aibot { flex-wrap: wrap; } .aibot__price { text-align: left; } .aians__card--bot .aians__acts .btn { flex: 1 1 100%; } }
.badge-acct { text-decoration: none; }
.badge-acct:hover { filter: brightness(1.05); }

/* Free bots: each group of tools is a named bot. */
.botgroup__head { justify-content: flex-start; gap: 12px; align-items: flex-start; }
.botgroup__ava { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: currentColor; }
.botgroup__ava .ico { color: #fff; }
.botgroup__t { flex: 1; min-width: 0; }
.botgroup__t h2, .botgroup__t h3 { font-family: var(--font); font-size: 16px; font-weight: 700; letter-spacing: 0; margin: 0; color: var(--ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.botgroup__t p { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2, #4B4A5C); }
.botbadge { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: #fff; color: inherit; border: 1px solid currentColor; opacity: .85; line-height: 1.3; }
.group--violet .botbadge { color: var(--violet); } .group--blue .botbadge { color: var(--blue); } .group--teal .botbadge { color: var(--teal); }
.group--rose .botbadge { color: var(--rose); } .group--orange .botbadge { color: var(--orange); }
.botgroup__n { flex: none; font-size: 12px; font-weight: 600; padding-top: 2px; }
@media (min-width: 1001px) { .groups--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .groups--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 761px) and (max-width: 1000px) { .groups--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .groups--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.groups--1 { grid-template-columns: minmax(0, 640px); }
.cattiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .cattiles--3 { grid-template-columns: 1fr; } }
.toolhead__bot { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: inherit; opacity: .8; text-decoration: none; }
.toolhead__bot:hover { opacity: 1; text-decoration: underline; }
