/* ============================================================
   NoFrillzApps — shared stylesheet
   Deliberate choices: system font stack (zero network requests),
   one accent (amber), oklch tokens, dark/light via [data-theme].
   ============================================================ */

:root {
  color-scheme: light dark;
  --bg: oklch(0.976 0.004 85);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.955 0.007 85);
  --ink: oklch(0.26 0.012 85);
  --muted: oklch(0.5 0.015 85);
  --border: oklch(0.885 0.01 85);
  --border-strong: oklch(0.78 0.012 85);
  --accent: oklch(0.63 0.15 50);
  --accent-strong: oklch(0.56 0.16 45);
  --on-accent: oklch(0.17 0.03 60);
  --danger: oklch(0.52 0.19 27);
  --ok: oklch(0.47 0.13 150);
  --radius: 10px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: oklch(0.175 0.005 85);
  --surface: oklch(0.21 0.007 85);
  --surface-2: oklch(0.245 0.008 85);
  --ink: oklch(0.93 0.005 85);
  --muted: oklch(0.64 0.012 85);
  --border: oklch(0.31 0.009 85);
  --border-strong: oklch(0.42 0.01 85);
  --accent: oklch(0.74 0.14 55);
  --accent-strong: oklch(0.68 0.15 50);
  --on-accent: oklch(0.2 0.03 60);
  --danger: oklch(0.66 0.15 25);
  --ok: oklch(0.66 0.13 150);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-strong); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent-strong); }

.header-nav { display: flex; align-items: center; gap: 14px; }
.header-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.header-nav a:hover { color: var(--ink); }

/* ---- Buttons ---- */
.btn {
  font: inherit;
  font-size: 0.92rem;
  padding: 9px 14px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* ---- Main layout ---- */
main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  flex: 1;
}

h1 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -0.015em; }
.lead { color: var(--muted); margin: 0 0 20px; max-width: 60ch; }

/* ---- Toolbar ---- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.toolbar .spacer { flex: 1; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 44px;
  cursor: pointer;
  user-select: none;
}
.check input { width: 16px; height: 16px; accent-color: var(--accent-strong); }

.status { font-size: 0.88rem; color: var(--muted); }
.status.ok { color: var(--ok); font-weight: 600; }
.status.err { color: var(--danger); font-weight: 600; }

/* ---- Panes ---- */
.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) { .panes { grid-template-columns: 1fr; } }

.pane { display: flex; flex-direction: column; min-width: 0; }
.pane label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.pane textarea {
  flex: 1;
  min-height: 340px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  tab-size: 2;
}
.pane textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.pane textarea::placeholder { color: var(--muted); opacity: 0.7; }

/* ---- Stats ---- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.stats b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- Hub (index) ---- */
.tool-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: border-color 120ms ease, transform 120ms ease;
}
a.tool-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.tool-name { font-weight: 600; font-size: 1rem; }
.tool-desc { color: var(--muted); font-size: 0.88rem; }
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

/* ---- Short textareas ---- */
.pane textarea.short { min-height: 80px; }

/* ---- Readout (big mono number) ---- */
.readout {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}
.readout .result-label { min-width: 0; font-size: 0.85rem; }

/* ---- Result rows ---- */
.result-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
}
.result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  min-width: 110px;
}
.result-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  word-break: break-all;
  flex: 1;
  min-width: 120px;
}
.btn-mini { min-height: 32px; padding: 4px 10px; font-size: 0.8rem; }

/* ---- Strength meter ---- */
.strength { display: flex; gap: 4px; margin: 10px 0 2px; }
.strength span {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.strength[data-level="1"] span:nth-child(-n+1) { background: var(--danger); border-color: var(--danger); }
.strength[data-level="2"] span:nth-child(-n+2) { background: var(--accent); border-color: var(--accent); }
.strength[data-level="3"] span:nth-child(-n+3) { background: var(--accent); border-color: var(--accent); }
.strength[data-level="4"] span:nth-child(-n+4) { background: var(--ok); border-color: var(--ok); }

/* ---- Big stat blocks (word counter) ---- */
.stats--big {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.stat-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-block .stat-num {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-block .stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---- Options grid (password generator) ---- */
.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  margin-bottom: 14px;
}
.range-label { min-width: 32px; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
input[type="range"] { accent-color: var(--accent-strong); width: 180px; }

/* ---- Form controls ---- */
input[type="date"],
input[type="number"],
input[type="text"],
select {
  font: inherit;
  padding: 9px 12px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}
input[type="date"]:focus,
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}

/* ---- Banner (age calculator) ---- */
.banner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.banner .age-main { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.banner .age-sub { color: var(--muted); margin-top: 2px; }

/* ---- Section titles (multi-tool pages) ---- */
.section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 22px 0 10px;
  font-weight: 600;
}

/* ---- File drop zone ---- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  transition: border-color 120ms ease, background 120ms ease;
  margin-bottom: 14px;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--surface-2); }
.dropzone input[type="file"] { display: none; }

/* ---- Image preview + crop ---- */
.preview-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  line-height: 0;
  touch-action: none;
}
.preview-wrap canvas, .preview-wrap img {
  max-width: 100%;
  border-radius: var(--radius);
  display: block;
}
.crop-rect {
  position: absolute;
  border: 2px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  cursor: move;
  box-sizing: border-box;
  touch-action: none;
  display: none;
}
.crop-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 3px;
  cursor: nwse-resize;
  touch-action: none;
}

/* ---- File list (pdf merger) ---- */
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
}
.file-row .file-name { font-weight: 600; flex: 1; min-width: 140px; word-break: break-all; }
.file-row .file-meta { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.file-row .row-actions { display: flex; gap: 4px; }

/* ---- Color input & swatch ---- */
input[type="color"] {
  width: 52px;
  height: 44px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.swatch-row { display: flex; align-items: center; gap: 12px; }
.swatch {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

/* ---- Regex highlight ---- */
.highlight-box {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 80px;
}
.highlight-box mark {
  background: color-mix(in oklab, var(--accent) 35%, transparent);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ---- Diff view ---- */
.diff-box {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  overflow-x: auto;
}
.diff-row {
  display: flex;
  gap: 10px;
  padding: 1px 12px;
  white-space: pre-wrap;
  word-break: break-all;
}
.diff-sign {
  flex-shrink: 0;
  user-select: none;
  width: 14px;
  text-align: center;
  font-weight: 700;
}
.diff-row.added { background: color-mix(in oklab, var(--ok) 14%, transparent); }
.diff-row.added .diff-sign { color: var(--ok); }
.diff-row.removed { background: color-mix(in oklab, var(--danger) 14%, transparent); }
.diff-row.removed .diff-sign { color: var(--danger); }
.diff-row.context .diff-sign { color: var(--muted); }
.diff-text { flex: 1; min-width: 0; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


/* ---- SEO blocks: breadcrumbs, intro, how-to, FAQ ---- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  margin: 2px 0 10px;
  color: var(--muted);
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.crumb-sep { opacity: .55; }
.seo-intro { max-width: 72ch; margin-top: .4rem; }
.howto { margin-top: 2.5rem; }
.howto ol { padding-left: 1.2rem; line-height: 1.75; max-width: 70ch; }
.faq { margin-top: 2.5rem; max-width: 74ch; }
.faq h2, .howto h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.faq-item { margin-bottom: 1.1rem; }
.faq-item h3 { font-size: 1rem; margin: 0 0 .3rem; }
.faq-item p { margin: 0; color: var(--muted); line-height: 1.6; }
/* ============================================================
   NoFrillzApps — shared stylesheet
   Deliberate choices: system font stack (zero network requests),
   one accent (amber), oklch tokens, dark/light via [data-theme].
   ============================================================ */

:root {
  color-scheme: light dark;
  --bg: oklch(0.976 0.004 85);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.955 0.007 85);
  --ink: oklch(0.26 0.012 85);
  --muted: oklch(0.5 0.015 85);
  --border: oklch(0.885 0.01 85);
  --border-strong: oklch(0.78 0.012 85);
  --accent: oklch(0.63 0.15 50);
  --accent-strong: oklch(0.56 0.16 45);
  --on-accent: oklch(0.17 0.03 60);
  --danger: oklch(0.52 0.19 27);
  --ok: oklch(0.47 0.13 150);
  --radius: 10px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: oklch(0.175 0.005 85);
  --surface: oklch(0.21 0.007 85);
  --surface-2: oklch(0.245 0.008 85);
  --ink: oklch(0.93 0.005 85);
  --muted: oklch(0.64 0.012 85);
  --border: oklch(0.31 0.009 85);
  --border-strong: oklch(0.42 0.01 85);
  --accent: oklch(0.74 0.14 55);
  --accent-strong: oklch(0.68 0.15 50);
  --on-accent: oklch(0.2 0.03 60);
  --danger: oklch(0.66 0.15 25);
  --ok: oklch(0.66 0.13 150);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-strong); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent-strong); }

.header-nav { display: flex; align-items: center; gap: 14px; }
.header-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.header-nav a:hover { color: var(--ink); }

/* ---- Buttons ---- */
.btn {
  font: inherit;
  font-size: 0.92rem;
  padding: 9px 14px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* ---- Main layout ---- */
main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  flex: 1;
}

h1 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -0.015em; }
.lead { color: var(--muted); margin: 0 0 20px; max-width: 60ch; }

/* ---- Toolbar ---- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.toolbar .spacer { flex: 1; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 44px;
  cursor: pointer;
  user-select: none;
}
.check input { width: 16px; height: 16px; accent-color: var(--accent-strong); }

.status { font-size: 0.88rem; color: var(--muted); }
.status.ok { color: var(--ok); font-weight: 600; }
.status.err { color: var(--danger); font-weight: 600; }

/* ---- Panes ---- */
.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) { .panes { grid-template-columns: 1fr; } }

.pane { display: flex; flex-direction: column; min-width: 0; }
.pane label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.pane textarea {
  flex: 1;
  min-height: 340px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  tab-size: 2;
}
.pane textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.pane textarea::placeholder { color: var(--muted); opacity: 0.7; }

/* ---- Stats ---- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.stats b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- Hub (index) ---- */
.tool-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: border-color 120ms ease, transform 120ms ease;
}
a.tool-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.tool-name { font-weight: 600; font-size: 1rem; }
.tool-desc { color: var(--muted); font-size: 0.88rem; }
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

/* ---- Short textareas ---- */
.pane textarea.short { min-height: 80px; }

/* ---- Readout (big mono number) ---- */
.readout {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}
.readout .result-label { min-width: 0; font-size: 0.85rem; }

/* ---- Result rows ---- */
.result-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
}
.result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  min-width: 110px;
}
.result-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  word-break: break-all;
  flex: 1;
  min-width: 120px;
}
.btn-mini { min-height: 32px; padding: 4px 10px; font-size: 0.8rem; }

/* ---- Strength meter ---- */
.strength { display: flex; gap: 4px; margin: 10px 0 2px; }
.strength span {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.strength[data-level="1"] span:nth-child(-n+1) { background: var(--danger); border-color: var(--danger); }
.strength[data-level="2"] span:nth-child(-n+2) { background: var(--accent); border-color: var(--accent); }
.strength[data-level="3"] span:nth-child(-n+3) { background: var(--accent); border-color: var(--accent); }
.strength[data-level="4"] span:nth-child(-n+4) { background: var(--ok); border-color: var(--ok); }

/* ---- Big stat blocks (word counter) ---- */
.stats--big {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.stat-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-block .stat-num {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-block .stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---- Options grid (password generator) ---- */
.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  margin-bottom: 14px;
}
.range-label { min-width: 32px; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
input[type="range"] { accent-color: var(--accent-strong); width: 180px; }

/* ---- Form controls ---- */
input[type="date"],
input[type="number"],
input[type="text"],
select {
  font: inherit;
  padding: 9px 12px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}
input[type="date"]:focus,
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}

/* ---- Banner (age calculator) ---- */
.banner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.banner .age-main { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.banner .age-sub { color: var(--muted); margin-top: 2px; }

/* ---- Section titles (multi-tool pages) ---- */
.section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 22px 0 10px;
  font-weight: 600;
}

/* ---- File drop zone ---- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  transition: border-color 120ms ease, background 120ms ease;
  margin-bottom: 14px;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--surface-2); }
.dropzone input[type="file"] { display: none; }

/* ---- Image preview + crop ---- */
.preview-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  line-height: 0;
  touch-action: none;
}
.preview-wrap canvas, .preview-wrap img {
  max-width: 100%;
  border-radius: var(--radius);
  display: block;
}
.crop-rect {
  position: absolute;
  border: 2px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  cursor: move;
  box-sizing: border-box;
  touch-action: none;
  display: none;
}
.crop-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 3px;
  cursor: nwse-resize;
  touch-action: none;
}

/* ---- File list (pdf merger) ---- */
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
}
.file-row .file-name { font-weight: 600; flex: 1; min-width: 140px; word-break: break-all; }
.file-row .file-meta { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.file-row .row-actions { display: flex; gap: 4px; }

/* ---- Color input & swatch ---- */
input[type="color"] {
  width: 52px;
  height: 44px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.swatch-row { display: flex; align-items: center; gap: 12px; }
.swatch {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

/* ---- Regex highlight ---- */
.highlight-box {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 80px;
}
.highlight-box mark {
  background: color-mix(in oklab, var(--accent) 35%, transparent);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ---- Diff view ---- */
.diff-box {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  overflow-x: auto;
}
.diff-row {
  display: flex;
  gap: 10px;
  padding: 1px 12px;
  white-space: pre-wrap;
  word-break: break-all;
}
.diff-sign {
  flex-shrink: 0;
  user-select: none;
  width: 14px;
  text-align: center;
  font-weight: 700;
}
.diff-row.added { background: color-mix(in oklab, var(--ok) 14%, transparent); }
.diff-row.added .diff-sign { color: var(--ok); }
.diff-row.removed { background: color-mix(in oklab, var(--danger) 14%, transparent); }
.diff-row.removed .diff-sign { color: var(--danger); }
.diff-row.context .diff-sign { color: var(--muted); }
.diff-text { flex: 1; min-width: 0; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


/* ---- SEO blocks: breadcrumbs, intro, how-to, FAQ ---- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  margin: 2px 0 10px;
  color: var(--muted);
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.crumb-sep { opacity: .55; }
.seo-intro { max-width: 72ch; margin-top: .4rem; }
.howto { margin-top: 2.5rem; }
.howto ol { padding-left: 1.2rem; line-height: 1.75; max-width: 70ch; }
.faq { margin-top: 2.5rem; max-width: 74ch; }
.faq h2, .howto h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.faq-item { margin-bottom: 1.1rem; }
.faq-item h3 { font-size: 1rem; margin: 0 0 .3rem; }
.faq-item p { margin: 0; color: var(--muted); line-height: 1.6; }


/* ---- pair links (currency landing pages) ---- */
.pair-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2rem;
}
.pair-title {
  font-weight: 600;
  margin-right: 6px;
  font-size: .9rem;
}
.pair-link {
  font-size: .85rem;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 120ms ease;
}
.pair-link:hover { border-color: var(--accent); color: var(--accent-strong); }
/* ============================================================
   NoFrillzApps — shared stylesheet
   Deliberate choices: system font stack (zero network requests),
   one accent (amber), oklch tokens, dark/light via [data-theme].
   ============================================================ */

:root {
  color-scheme: light dark;
  --bg: oklch(0.976 0.004 85);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.955 0.007 85);
  --ink: oklch(0.26 0.012 85);
  --muted: oklch(0.5 0.015 85);
  --border: oklch(0.885 0.01 85);
  --border-strong: oklch(0.78 0.012 85);
  --accent: oklch(0.63 0.15 50);
  --accent-strong: oklch(0.56 0.16 45);
  --on-accent: oklch(0.17 0.03 60);
  --danger: oklch(0.52 0.19 27);
  --ok: oklch(0.47 0.13 150);
  --radius: 10px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: oklch(0.175 0.005 85);
  --surface: oklch(0.21 0.007 85);
  --surface-2: oklch(0.245 0.008 85);
  --ink: oklch(0.93 0.005 85);
  --muted: oklch(0.64 0.012 85);
  --border: oklch(0.31 0.009 85);
  --border-strong: oklch(0.42 0.01 85);
  --accent: oklch(0.74 0.14 55);
  --accent-strong: oklch(0.68 0.15 50);
  --on-accent: oklch(0.2 0.03 60);
  --danger: oklch(0.66 0.15 25);
  --ok: oklch(0.66 0.13 150);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-strong); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent-strong); }

.header-nav { display: flex; align-items: center; gap: 14px; }
.header-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.header-nav a:hover { color: var(--ink); }

/* ---- Buttons ---- */
.btn {
  font: inherit;
  font-size: 0.92rem;
  padding: 9px 14px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* ---- Main layout ---- */
main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  flex: 1;
}

h1 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -0.015em; }
.lead { color: var(--muted); margin: 0 0 20px; max-width: 60ch; }

/* ---- Toolbar ---- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.toolbar .spacer { flex: 1; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 44px;
  cursor: pointer;
  user-select: none;
}
.check input { width: 16px; height: 16px; accent-color: var(--accent-strong); }

.status { font-size: 0.88rem; color: var(--muted); }
.status.ok { color: var(--ok); font-weight: 600; }
.status.err { color: var(--danger); font-weight: 600; }

/* ---- Panes ---- */
.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) { .panes { grid-template-columns: 1fr; } }

.pane { display: flex; flex-direction: column; min-width: 0; }
.pane label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.pane textarea {
  flex: 1;
  min-height: 340px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  tab-size: 2;
}
.pane textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.pane textarea::placeholder { color: var(--muted); opacity: 0.7; }

/* ---- Stats ---- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.stats b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- Hub (index) ---- */
.tool-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: border-color 120ms ease, transform 120ms ease;
}
a.tool-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.tool-name { font-weight: 600; font-size: 1rem; }
.tool-desc { color: var(--muted); font-size: 0.88rem; }
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

/* ---- Short textareas ---- */
.pane textarea.short { min-height: 80px; }

/* ---- Readout (big mono number) ---- */
.readout {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}
.readout .result-label { min-width: 0; font-size: 0.85rem; }

/* ---- Result rows ---- */
.result-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
}
.result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  min-width: 110px;
}
.result-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  word-break: break-all;
  flex: 1;
  min-width: 120px;
}
.btn-mini { min-height: 32px; padding: 4px 10px; font-size: 0.8rem; }

/* ---- Strength meter ---- */
.strength { display: flex; gap: 4px; margin: 10px 0 2px; }
.strength span {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.strength[data-level="1"] span:nth-child(-n+1) { background: var(--danger); border-color: var(--danger); }
.strength[data-level="2"] span:nth-child(-n+2) { background: var(--accent); border-color: var(--accent); }
.strength[data-level="3"] span:nth-child(-n+3) { background: var(--accent); border-color: var(--accent); }
.strength[data-level="4"] span:nth-child(-n+4) { background: var(--ok); border-color: var(--ok); }

/* ---- Big stat blocks (word counter) ---- */
.stats--big {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.stat-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-block .stat-num {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-block .stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---- Options grid (password generator) ---- */
.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  margin-bottom: 14px;
}
.range-label { min-width: 32px; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
input[type="range"] { accent-color: var(--accent-strong); width: 180px; }

/* ---- Form controls ---- */
input[type="date"],
input[type="number"],
input[type="text"],
select {
  font: inherit;
  padding: 9px 12px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}
input[type="date"]:focus,
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}

/* ---- Banner (age calculator) ---- */
.banner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.banner .age-main { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.banner .age-sub { color: var(--muted); margin-top: 2px; }

/* ---- Section titles (multi-tool pages) ---- */
.section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 22px 0 10px;
  font-weight: 600;
}

/* ---- File drop zone ---- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  transition: border-color 120ms ease, background 120ms ease;
  margin-bottom: 14px;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--surface-2); }
.dropzone input[type="file"] { display: none; }

/* ---- Image preview + crop ---- */
.preview-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  line-height: 0;
  touch-action: none;
}
.preview-wrap canvas, .preview-wrap img {
  max-width: 100%;
  border-radius: var(--radius);
  display: block;
}
.crop-rect {
  position: absolute;
  border: 2px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  cursor: move;
  box-sizing: border-box;
  touch-action: none;
  display: none;
}
.crop-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 3px;
  cursor: nwse-resize;
  touch-action: none;
}

/* ---- File list (pdf merger) ---- */
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
}
.file-row .file-name { font-weight: 600; flex: 1; min-width: 140px; word-break: break-all; }
.file-row .file-meta { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.file-row .row-actions { display: flex; gap: 4px; }

/* ---- Color input & swatch ---- */
input[type="color"] {
  width: 52px;
  height: 44px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.swatch-row { display: flex; align-items: center; gap: 12px; }
.swatch {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

/* ---- Regex highlight ---- */
.highlight-box {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 80px;
}
.highlight-box mark {
  background: color-mix(in oklab, var(--accent) 35%, transparent);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ---- Diff view ---- */
.diff-box {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  overflow-x: auto;
}
.diff-row {
  display: flex;
  gap: 10px;
  padding: 1px 12px;
  white-space: pre-wrap;
  word-break: break-all;
}
.diff-sign {
  flex-shrink: 0;
  user-select: none;
  width: 14px;
  text-align: center;
  font-weight: 700;
}
.diff-row.added { background: color-mix(in oklab, var(--ok) 14%, transparent); }
.diff-row.added .diff-sign { color: var(--ok); }
.diff-row.removed { background: color-mix(in oklab, var(--danger) 14%, transparent); }
.diff-row.removed .diff-sign { color: var(--danger); }
.diff-row.context .diff-sign { color: var(--muted); }
.diff-text { flex: 1; min-width: 0; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


/* ---- SEO blocks: breadcrumbs, intro, how-to, FAQ ---- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  margin: 2px 0 10px;
  color: var(--muted);
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.crumb-sep { opacity: .55; }
.seo-intro { max-width: 72ch; margin-top: .4rem; }
.howto { margin-top: 2.5rem; }
.howto ol { padding-left: 1.2rem; line-height: 1.75; max-width: 70ch; }
.faq { margin-top: 2.5rem; max-width: 74ch; }
.faq h2, .howto h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.faq-item { margin-bottom: 1.1rem; }
.faq-item h3 { font-size: 1rem; margin: 0 0 .3rem; }
.faq-item p { margin: 0; color: var(--muted); line-height: 1.6; }
/* ============================================================
   NoFrillzApps — shared stylesheet
   Deliberate choices: system font stack (zero network requests),
   one accent (amber), oklch tokens, dark/light via [data-theme].
   ============================================================ */

:root {
  color-scheme: light dark;
  --bg: oklch(0.976 0.004 85);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.955 0.007 85);
  --ink: oklch(0.26 0.012 85);
  --muted: oklch(0.5 0.015 85);
  --border: oklch(0.885 0.01 85);
  --border-strong: oklch(0.78 0.012 85);
  --accent: oklch(0.63 0.15 50);
  --accent-strong: oklch(0.56 0.16 45);
  --on-accent: oklch(0.17 0.03 60);
  --danger: oklch(0.52 0.19 27);
  --ok: oklch(0.47 0.13 150);
  --radius: 10px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: oklch(0.175 0.005 85);
  --surface: oklch(0.21 0.007 85);
  --surface-2: oklch(0.245 0.008 85);
  --ink: oklch(0.93 0.005 85);
  --muted: oklch(0.64 0.012 85);
  --border: oklch(0.31 0.009 85);
  --border-strong: oklch(0.42 0.01 85);
  --accent: oklch(0.74 0.14 55);
  --accent-strong: oklch(0.68 0.15 50);
  --on-accent: oklch(0.2 0.03 60);
  --danger: oklch(0.66 0.15 25);
  --ok: oklch(0.66 0.13 150);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-strong); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--accent-strong); }

.header-nav { display: flex; align-items: center; gap: 14px; }
.header-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.header-nav a:hover { color: var(--ink); }

/* ---- Buttons ---- */
.btn {
  font: inherit;
  font-size: 0.92rem;
  padding: 9px 14px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* ---- Main layout ---- */
main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  flex: 1;
}

h1 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -0.015em; }
.lead { color: var(--muted); margin: 0 0 20px; max-width: 60ch; }

/* ---- Toolbar ---- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.toolbar .spacer { flex: 1; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 44px;
  cursor: pointer;
  user-select: none;
}
.check input { width: 16px; height: 16px; accent-color: var(--accent-strong); }

.status { font-size: 0.88rem; color: var(--muted); }
.status.ok { color: var(--ok); font-weight: 600; }
.status.err { color: var(--danger); font-weight: 600; }

/* ---- Panes ---- */
.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) { .panes { grid-template-columns: 1fr; } }

.pane { display: flex; flex-direction: column; min-width: 0; }
.pane label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.pane textarea {
  flex: 1;
  min-height: 340px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  tab-size: 2;
}
.pane textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.pane textarea::placeholder { color: var(--muted); opacity: 0.7; }

/* ---- Stats ---- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.stats b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- Hub (index) ---- */
.tool-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: border-color 120ms ease, transform 120ms ease;
}
a.tool-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.tool-name { font-weight: 600; font-size: 1rem; }
.tool-desc { color: var(--muted); font-size: 0.88rem; }
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

/* ---- Short textareas ---- */
.pane textarea.short { min-height: 80px; }

/* ---- Readout (big mono number) ---- */
.readout {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}
.readout .result-label { min-width: 0; font-size: 0.85rem; }

/* ---- Result rows ---- */
.result-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
}
.result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  min-width: 110px;
}
.result-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  word-break: break-all;
  flex: 1;
  min-width: 120px;
}
.btn-mini { min-height: 32px; padding: 4px 10px; font-size: 0.8rem; }

/* ---- Strength meter ---- */
.strength { display: flex; gap: 4px; margin: 10px 0 2px; }
.strength span {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.strength[data-level="1"] span:nth-child(-n+1) { background: var(--danger); border-color: var(--danger); }
.strength[data-level="2"] span:nth-child(-n+2) { background: var(--accent); border-color: var(--accent); }
.strength[data-level="3"] span:nth-child(-n+3) { background: var(--accent); border-color: var(--accent); }
.strength[data-level="4"] span:nth-child(-n+4) { background: var(--ok); border-color: var(--ok); }

/* ---- Big stat blocks (word counter) ---- */
.stats--big {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.stat-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-block .stat-num {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-block .stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---- Options grid (password generator) ---- */
.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  margin-bottom: 14px;
}
.range-label { min-width: 32px; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
input[type="range"] { accent-color: var(--accent-strong); width: 180px; }

/* ---- Form controls ---- */
input[type="date"],
input[type="number"],
input[type="text"],
select {
  font: inherit;
  padding: 9px 12px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}
input[type="date"]:focus,
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}

/* ---- Banner (age calculator) ---- */
.banner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.banner .age-main { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.banner .age-sub { color: var(--muted); margin-top: 2px; }

/* ---- Section titles (multi-tool pages) ---- */
.section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 22px 0 10px;
  font-weight: 600;
}

/* ---- File drop zone ---- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  transition: border-color 120ms ease, background 120ms ease;
  margin-bottom: 14px;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--surface-2); }
.dropzone input[type="file"] { display: none; }

/* ---- Image preview + crop ---- */
.preview-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  line-height: 0;
  touch-action: none;
}
.preview-wrap canvas, .preview-wrap img {
  max-width: 100%;
  border-radius: var(--radius);
  display: block;
}
.crop-rect {
  position: absolute;
  border: 2px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  cursor: move;
  box-sizing: border-box;
  touch-action: none;
  display: none;
}
.crop-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 3px;
  cursor: nwse-resize;
  touch-action: none;
}

/* ---- File list (pdf merger) ---- */
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
}
.file-row .file-name { font-weight: 600; flex: 1; min-width: 140px; word-break: break-all; }
.file-row .file-meta { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.file-row .row-actions { display: flex; gap: 4px; }

/* ---- Color input & swatch ---- */
input[type="color"] {
  width: 52px;
  height: 44px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.swatch-row { display: flex; align-items: center; gap: 12px; }
.swatch {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

/* ---- Regex highlight ---- */
.highlight-box {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 80px;
}
.highlight-box mark {
  background: color-mix(in oklab, var(--accent) 35%, transparent);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* ---- Diff view ---- */
.diff-box {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  overflow-x: auto;
}
.diff-row {
  display: flex;
  gap: 10px;
  padding: 1px 12px;
  white-space: pre-wrap;
  word-break: break-all;
}
.diff-sign {
  flex-shrink: 0;
  user-select: none;
  width: 14px;
  text-align: center;
  font-weight: 700;
}
.diff-row.added { background: color-mix(in oklab, var(--ok) 14%, transparent); }
.diff-row.added .diff-sign { color: var(--ok); }
.diff-row.removed { background: color-mix(in oklab, var(--danger) 14%, transparent); }
.diff-row.removed .diff-sign { color: var(--danger); }
.diff-row.context .diff-sign { color: var(--muted); }
.diff-text { flex: 1; min-width: 0; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


/* ---- SEO blocks: breadcrumbs, intro, how-to, FAQ ---- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  margin: 2px 0 10px;
  color: var(--muted);
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.crumb-sep { opacity: .55; }
.seo-intro { max-width: 72ch; margin-top: .4rem; }
.howto { margin-top: 2.5rem; }
.howto ol { padding-left: 1.2rem; line-height: 1.75; max-width: 70ch; }
.faq { margin-top: 2.5rem; max-width: 74ch; }
.faq h2, .howto h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.faq-item { margin-bottom: 1.1rem; }
.faq-item h3 { font-size: 1rem; margin: 0 0 .3rem; }
.faq-item p { margin: 0; color: var(--muted); line-height: 1.6; }


/* ---- pair links (currency landing pages) ---- */
.pair-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2rem;
}
.pair-title {
  font-weight: 600;
  margin-right: 6px;
  font-size: .9rem;
}
.pair-link {
  font-size: .85rem;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 120ms ease;
}
.pair-link:hover { border-color: var(--accent); color: var(--accent-strong); }


/* ---- hub category sections ---- */
.tool-section { margin-top: 30px; }
.tool-section:first-of-type { margin-top: 22px; }
.tool-section h2 {
  font-size: 1.02rem;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.tool-section .tool-grid { margin-top: 0; }


/* ---- sticky category nav (hub) ---- */
.cat-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  margin: 18px -4px 0;
  background: var(--bg);
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: 0 0 auto;
  font-size: .85rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  white-space: nowrap;
  transition: border-color 120ms ease;
}
.cat-nav a:hover { border-color: var(--accent); color: var(--accent-strong); }
.tool-section { scroll-margin-top: 68px; }

/* ---- related tools (tool pages) ---- */
.related-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2rem;
}
.related-tools .pair-title { font-size: .9rem; }


/* ---- source / reference notes (GEO) ---- */
.source-note {
  font-size: .82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: .55rem;
  max-width: 72ch;
}
.table-note {
  font-size: .82rem;
  color: var(--muted);
  margin: 2px 0 8px;
}


/* ============ visual polish ============ */

/* Tool-page h1 icon */
.tool-head h1 { display: flex; align-items: center; gap: 10px; }
.h1-icon { font-size: .95em; line-height: 1; }

/* Hub hero underline */
main > h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  margin-top: 12px;
}

/* Hub cards: icon + hover lift */
.tool-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 8px;
}
.tool-card {
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px color-mix(in oklab, var(--accent) 22%, transparent);
}
.tool-name { letter-spacing: -0.01em; }

/* Toolbar as a surface card */
.toolbar {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
}

/* Buttons: gradient primary + micro-interaction */
.btn {
  transition: transform 110ms ease, background 120ms ease, border-color 120ms ease,
    color 120ms ease, box-shadow 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 3px 10px color-mix(in oklab, var(--accent) 40%, transparent);
}
.btn-primary:hover {
  box-shadow: 0 4px 14px color-mix(in oklab, var(--accent) 55%, transparent);
}

/* Readout banner: soft amber glow panel */
.banner {
  background:
    radial-gradient(130% 200% at 0% 0%, color-mix(in oklab, var(--accent) 13%, transparent) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 20px 22px;
}
.age-main { font-weight: 800; letter-spacing: -0.02em; }

/* Result rows */
.result-row { transition: border-color 120ms ease; }
.result-row:hover { border-color: var(--accent-strong); }
.result-label { font-weight: 600; }

/* How-to: numbered amber chips */
.howto ol { counter-reset: step; list-style: none; padding-left: 0; }
.howto ol li {
  counter-increment: step;
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: .65rem;
}
.howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 8px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ as cards with accent edge */
.faq-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  margin-bottom: 10px;
}
.faq-item h3::before { content: "Q. "; color: var(--accent-strong); }

/* Section headings with accent bar */
.howto h2, .faq h2 { display: flex; align-items: center; gap: 10px; }
.howto h2::before, .faq h2::before {
  content: "";
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

/* Chips (cat-nav / pair / related links) */
.cat-nav a, .pair-link {
  transition: border-color 120ms ease, transform 120ms ease, color 120ms ease;
}
.cat-nav a:hover, .pair-link:hover { transform: translateY(-1px); }

/* Status pill */
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
}

/* Footer polish */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  background: var(--surface);
}

/* Selection color */
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }

/* Fix: category nav must clear the sticky header (approx 58px) */
.cat-nav { top: 58px; }

/* ============ embed mode (?embed=1) ============ */
body.embed .site-header,
body.embed .site-footer,
body.embed .breadcrumbs,
body.embed .seo-intro,
body.embed .howto,
body.embed .faq,
body.embed .related-tools,
body.embed .pair-links,
body.embed .source-note,
body.embed .cat-nav { display: none !important; }
body.embed main { padding: 14px 16px 18px; max-width: none; }
body.embed-notitle .tool-head { display: none; }
body.embed .powered-by {
  display: inline-block;
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
  opacity: .9;
}
body.embed .powered-by:hover { color: var(--accent-strong); opacity: 1; }
