/* ===== NOUGHT DESIGN SYSTEM =====
   Spacing scale: 4 / 8 / 12 / 16 / 24 / 32. Type scale: 0.72 → 0.98rem for UI,
   larger only for the hero and page titles. Keep new rules on this grid.

   Three self-hosted variable faces, no third-party request:
     display — Bricolage Grotesque, headings and the hero only
     sans    — Public Sans, all UI text
     mono    — JetBrains Mono, code, numbers and the wordmark (its slashed zero
               is the logo, so the brand and the output share one glyph) */

@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal;
  font-weight: 400 800; font-display: swap;
  src: url('../assets/fonts/bricolage.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans'; font-style: normal;
  font-weight: 400 700; font-display: swap;
  src: url('../assets/fonts/publicsans.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal;
  font-weight: 400 600; font-display: swap;
  src: url('../assets/fonts/jetbrainsmono.woff2') format('woff2');
}

/* Theme: dark by default, light via [data-theme="light"] or system pref.
   html gets data-theme stamped by js/theme.js before paint. */
:root {
  --font-sans:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', var(--font-sans);
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg-primary:    #09090b;   /* zinc-950  */
  --bg-secondary:  #131316;
  --bg-card:       #111113;
  --bg-card-hover: #18181b;   /* zinc-900  */
  --bg-input:      #131316;

  --border:        #27272a;   /* zinc-800  */
  --border-hover:  #3f3f46;   /* zinc-700  */
  --border-active: #ffb020;

  --accent:        #ffb020;
  --accent-hover:  #ffc24d;
  --accent-ink:    #ffb020;   /* accent as *text*: darkened in light mode */
  --accent-light:  rgba(255, 176, 32, 0.13);
  --accent-fg:     #09090b;

  --success:       #34d399;
  --success-light: rgba(52, 211, 153, 0.12);
  --danger:        #f87171;
  --danger-light:  rgba(248, 113, 113, 0.12);
  --warning:       #fbbf24;

  --text-primary:   #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted:     #71717a;
  --text-invert:    #09090b;

  /* shadcn's scale: --radius 0.5rem, cards a step up at 0.75rem. */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 14px rgba(0,0,0,0.32);
  --shadow-lg:  0 10px 34px rgba(0,0,0,0.42);

  --nav-h: 54px;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  --checker: repeating-conic-gradient(#27272a 0% 25%, #111113 0% 50%) 50% / 16px 16px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg-primary:    #ffffff;
  --bg-secondary:  #fafafa;   /* zinc-50  */
  --bg-card:       #ffffff;
  --bg-card-hover: #f4f4f5;   /* zinc-100 */
  --bg-input:      #ffffff;

  --border:        #e4e4e7;   /* zinc-200 */
  --border-hover:  #d4d4d8;   /* zinc-300 */
  --border-active: #b07400;

  /* Amber fills stay amber (they carry near-black text), but amber *as text*
     fails contrast on white — so accent-ink darkens and the focus ring with it. */
  --accent-ink:    #8a5a00;
  --accent-hover:  #f0a000;
  --accent-light:  rgba(255, 176, 32, 0.16);
  --danger:        #dc2626;
  --danger-light:  rgba(220, 38, 38, 0.07);
  --success:       #047857;
  --success-light: rgba(4, 120, 87, 0.09);

  --text-primary:   #18181b;
  --text-secondary: #52525b;
  --text-muted:     #71717a;
  --text-invert:    #ffffff;

  --shadow-sm:  0 1px 2px rgba(9,9,11,0.05);
  --shadow-md:  0 3px 12px rgba(9,9,11,0.06);
  --shadow-lg:  0 10px 34px rgba(9,9,11,0.09);
  --checker: repeating-conic-gradient(#e4e4e7 0% 25%, #fafafa 0% 50%) 50% / 16px 16px;
  color-scheme: light;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
/* Components below set display:flex/grid/block, which would otherwise beat the
   UA stylesheet's [hidden] rule and leave "hidden" panels visible. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
/* Nothing may scroll the page sideways. `clip` rather than `hidden` because
   hidden would turn the page into a scroll container and break both the sticky
   nav and the scroll-padding above. test/browser.js enforces this at 390px. */
html, body { overflow-x: clip; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
body > footer { margin-top: auto; }
img, svg { max-width:100%; }
img { display:block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
h1,h2,h3,h4 { line-height: 1.25; }
/* Display face carries the headline voice; UI text stays on the sans. */
h1, h2, .tool-page-title { font-family: var(--font-display); }
code { font-family: var(--font-mono); font-size: 0.92em; }

/* Visible keyboard focus everywhere (a11y) */
:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.85rem;
}
.skip-link:focus { left: 12px; }
.visually-hidden {
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== LAYOUT ===== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; width: 100%; }
.page-wrapper { position: relative; z-index: 1; }

/* ===== NAVBAR ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-primary) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  height: var(--nav-h);
}
/* Wordmark: set in the mono face so it shares the slashed-zero glyph with the
   mark beside it. Tracking is opened up rather than tightened — the letterforms
   are meant to read as an instrument label, not a product logotype. */
.logo {
  font-family: var(--font-mono);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 1.6px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.logo-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon img { width: 20px; height: 20px; display: block; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  font-size: 0.83rem; font-weight: 500; color: var(--text-secondary);
  padding: 6px 10px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.nav-links a.active { color: var(--text-primary); background: var(--bg-card-hover); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 4px; }

.icon-btn {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--text-secondary); transition: var(--transition);
}
.icon-btn:hover { color: var(--text-primary); background: var(--bg-card-hover); border-color: var(--border); }
.icon-btn svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; }
#mobileMenu {
  display: none; border-bottom: 1px solid var(--border);
  background: var(--bg-secondary); padding: 6px 20px 12px;
}
#mobileMenu.open { display: block; }
#mobileMenu a {
  display: block; padding: 10px 10px; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text-secondary); font-weight: 500;
}
#mobileMenu a:hover, #mobileMenu a.active { background: var(--bg-card-hover); color: var(--text-primary); }

@media(max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions { margin-left: auto; }
}

/* ===== INTRO =====
   Compact on purpose: the bento below is the page, so the header states the
   claim and hands over to the search field in about 250px. */
.intro {
  padding: 56px 0 30px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
  gap: 52px; align-items: end;
}
.intro-main { max-width: 620px; }
/* Spec table: the privacy claim as a datasheet, with dotted leaders the way a
   parts list reads. It also stops the header from leaving half a screen empty. */
.spec { display: flex; flex-direction: column; }
.spec-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 9px 0; border-top: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: 1px solid var(--border); }
.spec dt { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
/* Leader is drawn, not typed, so it stretches to whatever room is left. */
.spec-row::after {
  content: ''; flex: 1; height: 1px; margin-bottom: 3px;
  background: repeating-linear-gradient(90deg, var(--border) 0 2px, transparent 2px 5px);
}
.spec dd {
  order: 3; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.spec dd.yes { color: var(--accent-ink); }
@media(max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 12px; border-radius: 999px;
  background: var(--bg-card-hover); border: 1px solid var(--border);
  font-size: 0.76rem; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 18px;
}
.badge-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.intro h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -2px; margin-bottom: 16px;
}
.intro h1 .sub { color: var(--text-muted); }
.intro-main > p {
  font-size: 0.96rem; color: var(--text-secondary); line-height: 1.6;
  max-width: 54ch; margin-bottom: 22px;
}

/* ===== SEARCH ===== */
.search-wrap { position: relative; max-width: 480px; }
.search-wrap input {
  width: 100%; height: 42px; padding: 0 76px 0 40px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 0.9rem;
  transition: var(--transition);
}
.search-wrap input:focus {
  outline: none; border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.search-wrap input::placeholder { color: var(--text-muted); }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none; width: 15px; height: 15px;
}
.search-kbd {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 3px; pointer-events: none;
}
kbd {
  font-family: var(--font-mono); font-size: 0.66rem;
  padding: 2px 5px; border-radius: 4px; background: var(--bg-secondary);
  border: 1px solid var(--border); color: var(--text-muted); line-height: 1.3;
}
.search-clear {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted);
  display: none; padding: 5px; line-height: 0; border-radius: var(--radius-sm);
}
.search-clear.visible { display: block; }
.search-clear:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.search-wrap input:not(:placeholder-shown) ~ .search-kbd { display: none; }

/* ===== CATEGORY TABS (shadcn tabs geometry) ===== */
.cat-pills {
  display: inline-flex; gap: 2px; flex-wrap: wrap;
  padding: 4px; margin: 26px 0 16px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.cat-pill {
  padding: 6px 12px; border: none; border-radius: 6px;
  background: transparent; color: var(--text-secondary);
  font-size: 0.82rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.cat-pill .cat-n { font-family: var(--font-mono); font-size: 0.68rem; opacity: 0.6; }
.cat-pill:hover { color: var(--text-primary); }
.cat-pill[aria-pressed="true"] {
  background: var(--bg-card); color: var(--text-primary); font-weight: 600;
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .cat-pill[aria-pressed="true"] { background: #fff; }

/* ===== BENTO =====
   Twelve columns, dense flow. Five tiles run the real tool; the rest are
   ordinary links. Filtering drops every tile to one uniform size — a double
   height tile next to three small ones reads as a broken grid once the row it
   was balancing has been filtered away. */
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(112px, auto);
  grid-auto-flow: row dense; gap: 12px; margin-bottom: 40px;
}
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  grid-column: span 3;
  padding: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.tile-3 { grid-column: span 3; }
.tile-4 { grid-column: span 4; }
.tile-5 { grid-column: span 5; }
.tile-6 { grid-column: span 6; }
.tile-tall { grid-row: span 2; }
.bento.is-filtered .tile { grid-column: span 3; grid-row: span 1; }
/* A live widget inside a uniform small tile would overflow it. */
.bento.is-filtered .live { display: none; }

.tile:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.tile:has(.tile-link:focus-visible) { border-color: var(--accent); }

/* The heading block is a stretched link: the whole tile is clickable, but the
   live controls sit above it and keep their own clicks. */
.tile-link { display: block; }
.tile-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.tile-icon {
  display: flex; width: 30px; height: 30px; margin-bottom: 10px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-secondary); transition: var(--transition);
}
.tile-icon svg { width: 15px; height: 15px; }
.tile:hover .tile-icon { color: var(--accent-ink); border-color: var(--accent); }
.tool-card-name { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.2px; }
.tool-card-desc {
  font-size: 0.79rem; color: var(--text-muted); line-height: 1.45; margin-top: 3px;
}

/* ===== LIVE WIDGETS =====
   Above the stretched link so their own clicks are not swallowed by it. */
.live {
  position: relative; z-index: 1;
  margin-top: auto; display: flex; flex-direction: column; gap: 8px;
}
.live-center { align-items: center; justify-content: center; flex: 1; }
.live-value {
  display: block; width: 100%; padding: 11px 12px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono); font-size: clamp(0.82rem, 1.7vw, 1.05rem);
  letter-spacing: 0.5px; word-break: break-all; line-height: 1.4;
}
.live-input {
  width: 100%; padding: 9px 11px; resize: none;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 0.82rem; line-height: 1.5;
  color: inherit; font-family: inherit;
}
.live-input.mono { font-family: var(--font-mono); font-size: 0.78rem; }
.live-input:focus {
  outline: none; border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.live-status { font-size: 0.75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.live-status b { color: var(--text-primary); font-weight: 600; }
.live-status i { font-style: normal; opacity: 0.4; padding: 0 2px; }
.live-status.ok { color: var(--success); }
.live-status.bad { color: var(--danger); }
.live-actions { display: flex; gap: 6px; }

.live-drop {
  flex: 1; min-height: 96px; display: flex; align-items: center; justify-content: center;
  padding: 12px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--border-hover); border-radius: var(--radius-md);
  background: var(--bg-secondary); transition: var(--transition);
}
.live-drop:hover, .live-drop.drag-over { border-color: var(--accent); background: var(--accent-light); }
.live-drop-hint {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 0.78rem; color: var(--text-muted); max-width: 24ch; line-height: 1.4;
}
.live-drop-hint svg { width: 19px; height: 19px; }
.live-drop img { max-height: 128px; width: auto; border-radius: var(--radius-sm); }
.live-drop.has-result .live-drop-hint { display: none; }

.qr-frame {
  padding: 9px; background: #fff; border-radius: var(--radius-md);
  line-height: 0; box-shadow: var(--shadow-sm);
}
.qr-frame img, .qr-frame canvas { display: block; width: 118px; height: 118px; }

@media(max-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile, .tile-3, .tile-4 { grid-column: span 3; }
  .tile-5, .tile-6 { grid-column: span 6; }
  .bento.is-filtered .tile { grid-column: span 3; }
}
@media(max-width: 620px) {
  .intro { padding: 36px 0 24px; }
  .bento { grid-template-columns: 1fr; gap: 10px; }
  .tile, .tile-3, .tile-4, .tile-5, .tile-6,
  .bento.is-filtered .tile { grid-column: span 1; }
  .tile-tall { grid-row: span 1; }
  .cat-pills { display: flex; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .cat-pill { white-space: nowrap; }
}

/* ===== PIN TOGGLE =====
   Top-right of a tile, over the stretched link so it stays clickable. Hidden
   until approach, permanent once pinned. */
.pin-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--text-muted); opacity: 0; transition: var(--transition);
}
.pin-btn svg { width: 13px; height: 13px; }
.tile:hover .pin-btn, .pin-btn:focus-visible { opacity: 1; }
.pin-btn:hover { color: var(--text-primary); border-color: var(--border); background: var(--bg-secondary); }
.pin-btn[aria-pressed="true"] { opacity: 1; color: var(--accent-ink); }
.pin-btn[aria-pressed="true"] svg { fill: currentColor; }
.tile:has(.pin-btn[aria-pressed="true"]) { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
/* No hover on touch: the toggle would otherwise be invisible and unreachable. */
@media (hover: none) { .pin-btn { opacity: 1; } }

/* ===== JUMP BACK IN =====
   Pinned + recently used tools, from localStorage. Hidden until there is
   something to show, so a first visit is not littered with empty shelves. */
.shelf { margin: 26px 0 4px; }
.shelf-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px;
}
.shelf-title {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted);
}
.shelf-clear {
  margin-left: auto; background: none; border: none; padding: 2px 4px;
  font-size: 0.72rem; color: var(--text-muted); border-radius: 4px;
}
.shelf-clear:hover { color: var(--danger); background: var(--danger-light); }
.shelf-row { display: flex; gap: 8px; flex-wrap: wrap; }
.shelf-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 11px; border-radius: 99px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 500; transition: var(--transition);
}
.shelf-chip svg { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }
.shelf-chip:hover {
  border-color: var(--accent); background: var(--accent-light);
  transform: translateY(-1px);
}
.shelf-chip:hover svg { color: var(--accent-ink); }
.shelf-chip.pinned { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.shelf-chip.pinned svg { color: var(--accent-ink); fill: currentColor; }

/* ===== INSTALL BUTTON =====
   Injected into the nav only when the browser fires beforeinstallprompt, so it
   never advertises an action the platform cannot perform. */
.install-btn {
  display: none; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 99px;
  background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  transition: var(--transition);
}
.install-btn.show { display: inline-flex; }
.install-btn svg { width: 13px; height: 13px; }
.install-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
@media(max-width: 480px) { .install-btn .install-label { display: none; } }

/* Offline pill in the nav: reassurance, not an error — everything still works. */
.offline-pill {
  display: none; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3px;
  padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--border); color: var(--text-secondary); background: var(--bg-card);
}
html.is-offline .offline-pill { display: inline-flex; }
.offline-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--warning); }

/* ===== TOOL PAGE LAYOUT ===== */
.tool-page-header { padding: 26px 0 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }

/* ===== BREADCRUMB =====
   Trail reads as navigation, not body text: links are interactive-looking and
   the current page is the emphasised end of the trail. */
.breadcrumb {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  font-size: 0.78rem; line-height: 1.4; margin-bottom: 10px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-secondary); font-weight: 500;
  padding: 2px 6px; margin-left: -6px; border-radius: 5px;
  transition: color var(--transition), background var(--transition);
}
.breadcrumb a + .breadcrumb-sep { margin-left: -4px; }
.breadcrumb a:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.breadcrumb a:active { background: var(--border); }
/* Current page: strongest item, and never wraps mid-word on a phone. */
.breadcrumb [aria-current="page"] {
  color: var(--text-primary); font-weight: 600;
  max-width: 58vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Swap the "/" glyph for a chevron without touching 18 pages of markup. */
.breadcrumb-sep {
  font-size: 0; width: 14px; height: 14px; flex-shrink: 0;
  background: currentColor; color: var(--text-muted); opacity: 0.55;
  -webkit-mask: var(--chev) center / 14px 14px no-repeat;
  mask: var(--chev) center / 14px 14px no-repeat;
}
@media(max-width: 480px) {
  /* Drop the middle rung on narrow screens: Home › current page. */
  .breadcrumb a:nth-of-type(2), .breadcrumb a:nth-of-type(2) + .breadcrumb-sep { display: none; }
  .breadcrumb [aria-current="page"] { max-width: 70vw; }
}
.tool-page-title { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; letter-spacing: -0.7px; margin-bottom: 6px; }
.tool-page-desc { font-size: 0.89rem; color: var(--text-secondary); max-width: 640px; line-height: 1.55; }
.tool-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px;
  font-size: 0.71rem; font-weight: 500; border: 1px solid var(--border);
  color: var(--text-secondary); background: var(--bg-card);
}
.badge svg { width: 11px; height: 11px; }

/* ===== TOOL PANEL ===== */
.tool-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.panel-split { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: 20px; align-items: start; }
/* Grid and flex children default to min-width:auto, so a wide child (a table,
   a long select option, a row of stat cards) props the whole column open and
   pushes the page sideways on a phone. Letting them shrink is what makes the
   single-column mobile layout actually fit. */
.panel-split > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media(min-width: 861px) {
  /* Controls follow you down a long results pane instead of leaving dead space. */
  .panel-split > :first-child { position: sticky; top: calc(var(--nav-h) + 12px); }
}
@media(max-width: 860px) {
  .panel-split, .grid-3 { grid-template-columns: 1fr; }
}
@media(max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
  .tool-panel { padding: 14px; }
  .container { padding: 0 14px; }
}

.panel-title {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-muted); margin-bottom: 10px;
}

/* ===== FORM CONTROLS ===== */
.input-field {
  width: 100%; padding: 8px 11px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.87rem;
  transition: var(--transition);
}
html[data-theme="dark"] .input-field { background: var(--bg-secondary); }
.input-field:focus { outline: none; border-color: var(--border-active); box-shadow: 0 0 0 3px var(--accent-light); }
.input-field::placeholder { color: var(--text-muted); }
/* Only flag fields the page itself marks invalid — :invalid fires on number
   inputs whose value merely misses the `step` grid, which is not a user error. */
.input-field.invalid { border-color: var(--danger); }
textarea.input-field { resize: vertical; min-height: 120px; line-height: 1.5; }
.mono, textarea.mono, .input-field.mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
select.input-field { appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 14px;
}
input[type=color].input-field { padding: 3px; height: 34px; cursor: pointer; }
.input-group { margin-bottom: 12px; }
.input-group:last-child { margin-bottom: 0; }
.input-label { display: block; font-size: 0.79rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 5px; }
.input-hint { font-size: 0.74rem; color: var(--text-muted); margin-top: 5px; line-height: 1.45; }
.input-suffix { position: relative; }
.input-suffix .input-field { padding-right: 38px; }
.input-suffix .suffix {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 0.78rem; color: var(--text-muted); pointer-events: none;
}

/* checkbox / radio rows */
.check-row {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 0.83rem; color: var(--text-secondary); padding: 4px 0;
  user-select: none;
}
.check-row input { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.check-row:hover { color: var(--text-primary); }

/* segmented control */
.segmented {
  display: inline-flex; padding: 2px; gap: 2px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); flex-wrap: wrap;
}
.segmented button {
  padding: 6px 12px; border: none; background: transparent; border-radius: 5px;
  font-size: 0.81rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition);
}
.segmented button:hover { color: var(--text-primary); }
.segmented button[aria-pressed="true"] {
  background: var(--bg-card); color: var(--text-primary); font-weight: 600;
  box-shadow: var(--shadow-sm);
}
html[data-theme="light"] .segmented button[aria-pressed="true"] { background: #fff; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.83rem; font-weight: 500; border: 1px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.btn-primary {
  background: var(--accent); color: var(--accent-fg); border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: var(--bg-secondary); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { border-color: var(--border-hover); background: var(--bg-card-hover); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); font-weight: 600; }
.btn-success:hover:not(:disabled) { filter: brightness(1.07); }
.btn-danger { background: var(--danger-light); border-color: transparent; color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.btn-lg { padding: 10px 20px; font-size: 0.88rem; }
.btn-sm { padding: 5px 10px; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.btn .spinner { display: none; }
.btn.loading .spinner { display: block; }
.btn.loading .btn-label { opacity: 0.7; }
.spinner {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESULT / ALERT BOX ===== */
.result-box {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 11px 13px; margin-top: 12px;
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5;
  display: flex; gap: 9px; align-items: flex-start;
}
.result-box svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.result-box.ok { border-color: color-mix(in srgb, var(--success) 35%, transparent); background: var(--success-light); color: var(--success); }
.result-box.error { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: var(--danger-light); color: var(--danger); }
.result-box pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; margin: 0; }

/* ===== COPY BUTTON ===== */
.copy-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 500;
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-secondary); transition: var(--transition);
}
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.copy-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.copy-btn.copied { border-color: var(--success); color: var(--success); background: var(--success-light); }

/* ===== STAT CARDS ===== */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.stat-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 11px 10px; text-align: center;
}
.stat-card.highlight { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-light); }
.stat-card-val {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums; word-break: break-word; line-height: 1.3;
}
.stat-card-val.good { color: var(--success); }
.stat-card-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; line-height: 1.35; }

/* ===== RANGE SLIDER ===== */
.range-wrap { display: flex; align-items: center; gap: 12px; }
.range-wrap input[type=range] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 99px;
  background: var(--border); outline: none;
}
.range-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 2px solid var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.range-wrap input[type=range]::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 2px solid var(--bg-card);
}
.range-wrap input[type=range]:focus-visible { outline-offset: 5px; }
.range-val {
  font-size: 0.82rem; font-weight: 600; min-width: 42px; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ===== UPLOAD DROP ZONE ===== */
.drop-zone {
  border: 1.5px dashed var(--border-hover); border-radius: var(--radius-md);
  padding: 26px 18px; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--bg-secondary);
  display: block; width: 100%;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent); background: var(--accent-light);
}
.drop-zone-icon { color: var(--text-muted); width: 24px; height: 24px; margin: 0 auto 8px; }
.drop-zone:hover .drop-zone-icon, .drop-zone.drag-over .drop-zone-icon { color: var(--accent); }
.drop-zone-text { font-size: 0.89rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.drop-zone-sub { font-size: 0.76rem; color: var(--text-muted); }
.drop-zone input[type=file] { display: none; }

/* file rows */
.file-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex; align-items: center; gap: 10px; font-size: 0.82rem;
  padding: 7px 10px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.file-item.dragging { opacity: 0.4; }
.file-item.drop-target { border-color: var(--accent); }
.file-item .grip { color: var(--text-muted); cursor: grab; display: flex; }
.file-item .grip svg { width: 13px; height: 13px; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: var(--text-muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.file-remove {
  background: none; border: none; color: var(--text-muted); padding: 3px;
  border-radius: 4px; display: flex; line-height: 0;
}
.file-remove:hover { color: var(--danger); background: var(--danger-light); }
.file-remove svg { width: 13px; height: 13px; }

/* preview surfaces */
.preview-frame {
  background: var(--checker); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px;
  display: flex; align-items: center; justify-content: center; min-height: 130px;
}
.preview-frame img { max-height: 280px; width: auto; border-radius: 4px; }

/* before/after compare slider */
.compare {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; background: var(--checker); user-select: none; touch-action: none;
  max-height: 320px;
}
.compare img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; }
.compare .after-pane { position: absolute; inset: 0; overflow: hidden; }
.compare .after-pane img { width: 100%; height: 100%; object-fit: contain; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3); pointer-events: none;
}
.compare-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}
.compare input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.compare-tag {
  position: absolute; bottom: 7px; font-size: 0.67rem; font-weight: 600;
  background: rgba(0,0,0,0.62); color: #fff; padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.3px;
}
.compare-tag.left { left: 7px; } .compare-tag.right { right: 7px; }

/* ===== TABLE ===== */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.81rem; }
.data-table th {
  text-align: right; padding: 7px 10px; font-size: 0.67rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted);
  border-bottom: 1px solid var(--border); background: var(--bg-secondary);
  position: sticky; top: 0; white-space: nowrap;
}
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table td {
  padding: 6px 10px; border-bottom: 1px solid var(--border);
  color: var(--text-secondary); text-align: right; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-card-hover); color: var(--text-primary); }

/* ===== DIFF OUTPUT ===== */
.diff-out {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: var(--font-mono); font-size: 0.79rem;
  line-height: 1.6; overflow: auto; max-height: 400px; background: var(--bg-secondary);
}
.diff-row { display: flex; }
.diff-gutter {
  flex: 0 0 74px; padding: 0 8px; text-align: right; color: var(--text-muted);
  border-right: 1px solid var(--border); user-select: none; font-size: 0.71rem;
  position: sticky; left: 0; background: var(--bg-secondary);
}
.diff-gutter span { display: inline-block; min-width: 26px; }
.diff-text { padding: 0 10px; white-space: pre-wrap; word-break: break-word; flex: 1; }
.diff-row.add { background: var(--success-light); }
.diff-row.add .diff-text { color: var(--success); }
.diff-row.del { background: var(--danger-light); }
.diff-row.del .diff-text { color: var(--danger); }
.diff-text ins { background: color-mix(in srgb, var(--success) 28%, transparent); text-decoration: none; border-radius: 2px; }
.diff-text del { background: color-mix(in srgb, var(--danger) 28%, transparent); text-decoration: none; border-radius: 2px; }

/* code / output block */
.code-out {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 11px;
  font-family: var(--font-mono); font-size: 0.79rem;
  line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  overflow: auto; max-height: 360px; margin: 0;
}
.code-out .k { color: #93c5fd; } .code-out .s { color: #86efac; }
.code-out .n { color: #fca5a5; } .code-out .b { color: #d8b4fe; }
html[data-theme="light"] .code-out .k { color: #1d4ed8; }
html[data-theme="light"] .code-out .s { color: #047857; }
html[data-theme="light"] .code-out .n { color: #b91c1c; }
html[data-theme="light"] .code-out .b { color: #7e22ce; }

/* ===== METER (password strength) ===== */
.meter { height: 5px; border-radius: 99px; background: var(--border); overflow: hidden; display: flex; gap: 3px; }
.meter i { flex: 1; background: var(--border); border-radius: 99px; transition: var(--transition); }
.meter[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.meter[data-score="2"] i:nth-child(-n+2) { background: var(--warning); }
.meter[data-score="3"] i:nth-child(-n+3) { background: #38bdf8; }
.meter[data-score="4"] i { background: var(--success); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 26px 16px; color: var(--text-muted); }
.empty-state svg { width: 24px; height: 24px; margin: 0 auto 8px; opacity: 0.6; }
.empty-state p { font-size: 0.82rem; }

/* ===== FAQ ===== */
/* Hairline rows, matching the index — a stack of bordered boxes would put a
   second, competing card system on a page that just abolished the first. */
.faq-section { margin: 44px 0 30px; }
.faq-section h2 {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--text-muted); margin-bottom: 4px; padding-bottom: 8px;
}
.faq-item { border-top: 1px solid var(--border); background: transparent; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; padding: 13px 4px; text-align: left;
  background: transparent; font-size: 0.88rem; font-weight: 500; border: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q:hover { color: var(--accent-ink); }
.faq-icon { color: var(--text-muted); transition: transform var(--transition); flex-shrink: 0; width: 14px; height: 14px; }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--text-primary); }
.faq-a {
  padding: 0 4px; display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease, padding 0.2s ease;
  font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6;
}
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; padding: 0 4px 14px; }

/* ===== RELATED TOOLS ===== */
.related { margin: 26px 0; }
.related h2 { font-size: 0.95rem; font-weight: 600; margin-bottom: 10px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.related-card {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-card); font-size: 0.83rem; font-weight: 500;
  transition: var(--transition);
}
.related-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.related-card svg { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }

/* ===== FOOTER ===== */
footer { border-top: 1px solid var(--border); padding: 28px 20px; margin-top: 36px; background: var(--bg-secondary); }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(5, 1fr); gap: 24px; margin-bottom: 22px; }
.footer-brand .logo-icon, .footer-brand .logo-icon img { width: 18px; height: 18px; }
.footer-brand p { font-size: 0.79rem; color: var(--text-muted); line-height: 1.55; margin-top: 8px; max-width: 260px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 600; margin-bottom: 9px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col li a { font-size: 0.78rem; color: var(--text-muted); transition: var(--transition); }
.footer-col li a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 0.76rem; color: var(--text-muted); }
@media(max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media(max-width: 560px) {
  .hero { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  footer { padding: 24px 14px; }
}

/* ===== NO RESULTS ===== */
.no-results { text-align: center; padding: 36px 16px; display: none; }
.no-results h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 3px; }
.no-results p { color: var(--text-muted); font-size: 0.82rem; }

/* ===== TOAST ===== */
.toast-stack {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 6px;
  align-items: center; pointer-events: none;
}
.toast {
  background: var(--text-primary); color: var(--text-invert);
  padding: 8px 14px; border-radius: 99px;
  font-size: 0.82rem; font-weight: 500; display: flex; align-items: center; gap: 7px;
  transform: translateY(10px); opacity: 0; transition: transform var(--transition), opacity var(--transition);
  box-shadow: var(--shadow-lg); max-width: min(90vw, 400px);
}
.toast svg { width: 14px; height: 14px; flex-shrink: 0; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--danger); color: #fff; }
.toast.warn { background: var(--warning); color: #1c1917; }
