/* ============================================================================
   TOOLFYT — Institutional-Grade Micro Tools. Zero Server Delays.
   Design System v1.0 — Dark-first, glassmorphic, zero-dependency.
   ----------------------------------------------------------------------------
   00 Tokens        01 Reset        02 Typography    03 Layout
   04 Surfaces      05 Buttons      06 Forms         07 Pills/Tabs
   08 Badges        09 Modal        10 Toast         11 Tool chrome
   12 Invoice       13 Calculator   14 Motion        15 Print
   ========================================================================== */

/* ------------------------------------------------------------------ 00 TOKENS */
:root {
  /* Brand ramp */
  --em-300: #6ee7b7;
  --em-400: #34d399;
  --em-500: #10b981;
  --em-600: #059669;
  --em-700: #047857;
  --cy-300: #67e8f9;
  --cy-400: #22d3ee;
  --cy-500: #06b6d4;
  --vi-400: #a78bfa;
  --vi-500: #8b5cf6;

  /* Semantic */
  --pos: var(--em-400);
  --neg: #fb7185;
  --warn: #fbbf24;
  --info: var(--cy-400);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* Type */
  --font-sans: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 140ms var(--ease);
  --t: 240ms var(--ease);
  --t-slow: 520ms var(--ease-out);

  /* Layout */
  --shell: 1320px;
  --header-h: 68px;

  /* Brand accents */
  --accent: var(--em-400);
  --accent-2: var(--cy-400);
  --grad-brand: linear-gradient(115deg, var(--em-400) 0%, var(--cy-400) 55%, var(--vi-400) 110%);
  --grad-em: linear-gradient(135deg, var(--em-400), var(--cy-500));
}

/* Dark (default / primary) */
html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b0f17;
  --bg-2: #0e131d;
  --bg-3: #121a26;
  --bg-elev: #151d2b;

  --surface: rgba(255, 255, 255, .026);
  --surface-2: rgba(255, 255, 255, .045);
  --surface-3: rgba(255, 255, 255, .07);

  --border: rgba(148, 163, 184, .13);
  --border-strong: rgba(148, 163, 184, .22);
  --border-hover: rgba(16, 185, 129, .5);

  --text: #eef2f8;
  --text-2: #a9b6c9;
  --text-3: #6c7c93;

  --glow-inner: inset 0 1px 0 rgba(255, 255, 255, .06);
  --glow-em: 0 0 0 1px rgba(16, 185, 129, .28), 0 10px 34px -12px rgba(16, 185, 129, .55);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .5);
  --sh-2: 0 12px 30px -14px rgba(0, 0, 0, .8), 0 2px 8px rgba(0, 0, 0, .4);
  --sh-3: 0 30px 70px -24px rgba(0, 0, 0, .9), 0 4px 14px rgba(0, 0, 0, .5);
  --grid-line: rgba(148, 163, 184, .055);

  --scrim: rgba(4, 7, 12, .78);
  --doc-bg: #0d121b;
  --chart-grid: rgba(148, 163, 184, .16);
}

/* Light (secondary) */
html[data-theme="light"] {
  color-scheme: light;

  --bg: #f5f7fb;
  --bg-2: #eef1f7;
  --bg-3: #e7ebf3;
  --bg-elev: #ffffff;

  --surface: rgba(255, 255, 255, .78);
  --surface-2: rgba(255, 255, 255, .92);
  --surface-3: rgba(15, 23, 42, .045);

  --border: rgba(15, 23, 42, .1);
  --border-strong: rgba(15, 23, 42, .16);
  --border-hover: rgba(5, 150, 105, .5);

  --text: #0b1220;
  --text-2: #46536b;
  --text-3: #7a879c;

  --glow-inner: inset 0 1px 0 rgba(255, 255, 255, .9);
  --glow-em: 0 0 0 1px rgba(5, 150, 105, .3), 0 10px 30px -14px rgba(5, 150, 105, .45);
  --sh-1: 0 1px 2px rgba(15, 23, 42, .07);
  --sh-2: 0 12px 28px -16px rgba(15, 23, 42, .22), 0 2px 6px rgba(15, 23, 42, .06);
  --sh-3: 0 34px 70px -30px rgba(15, 23, 42, .3), 0 4px 12px rgba(15, 23, 42, .08);
  --grid-line: rgba(15, 23, 42, .045);

  --scrim: rgba(15, 23, 42, .5);
  --doc-bg: #ffffff;
  --chart-grid: rgba(15, 23, 42, .12);
}

/* ------------------------------------------------------------------ 01 RESET */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  /* Reserve the scrollbar track whether or not the page currently scrolls.
     Without this, opening a modal (which sets overflow:hidden) removes the
     scrollbar and shifts the whole layout sideways by its width. Honoured by
     Chromium 94+, Firefox 97+ and Safari 18.2+; the --sbw body padding covers
     older engines. */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  font-variant-numeric: tabular-nums;
  transition: background-color var(--t), color var(--t);
}

img, svg, canvas, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
[hidden] { display: none !important; }
canvas { width: 100%; }

::selection { background: rgba(16, 185, 129, .32); color: var(--text); }

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

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(16, 185, 129, .13), transparent 62%),
    radial-gradient(980px 560px at 92% 4%, rgba(6, 182, 212, .11), transparent 60%),
    radial-gradient(760px 520px at 50% 108%, rgba(139, 92, 246, .1), transparent 62%),
    var(--bg);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 100% 78% at 50% 0%, #000 22%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 100% 78% at 50% 0%, #000 22%, transparent 76%);
  pointer-events: none;
  opacity: .85;
}

/* -------------------------------------------------------------- 02 TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -.022em;
}

h1 { font-size: clamp(2.15rem, 5.1vw, 4.05rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.4rem); }
h4 { font-size: 1rem; }

p { color: var(--text-2); }

.mono { font-family: var(--font-mono); font-variant-ligatures: none; }
.tnum { font-variant-numeric: tabular-nums; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.t-lg { font-size: 1.06rem; }
.t-sm { font-size: .875rem; }
.t-xs { font-size: .78rem; }
.t-2xs { font-size: .7rem; }
.t-mut { color: var(--text-2); }
.t-dim { color: var(--text-3); }
.t-pos { color: var(--pos); }
.t-neg { color: var(--neg); }
.t-warn { color: var(--warn); }
.t-em { color: var(--em-400); }
.t-cy { color: var(--cy-400); }
.t-center { text-align: center; }
.t-right { text-align: right; }
.t-bold { font-weight: 650; }
.t-semi { font-weight: 550; }
.t-up { text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 650; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead { font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.68; color: var(--text-2); }

/* ------------------------------------------------------------------- 03 LAYOUT */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section-sm { padding-block: clamp(36px, 5vw, 64px); }
/* Tool sections share one wrapper, so their individual padding would stack into
   a large dead gap between cards. The divider provides the separation instead. */
#tools > .section { padding-block: clamp(30px, 3.6vw, 48px); }
#tools > .section + .section { border-top: 1px solid var(--border); }

.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.row-start { display: flex; align-items: flex-start; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { display: flex; align-items: center; justify-content: center; }

.g-1 { gap: var(--s-1); } .g-2 { gap: var(--s-2); } .g-3 { gap: var(--s-3); }
.g-4 { gap: var(--s-4); } .g-5 { gap: var(--s-5); } .g-6 { gap: var(--s-6); }
.g-8 { gap: var(--s-8); } .g-10 { gap: var(--s-10); }

.stack-2 > * + * { margin-top: var(--s-2); }
.stack-3 > * + * { margin-top: var(--s-3); }
.stack-4 > * + * { margin-top: var(--s-4); }
.stack-6 > * + * { margin-top: var(--s-6); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-tools { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); } .mt-10 { margin-top: var(--s-10); }
.mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }
.ml-auto { margin-left: auto; }
.p-4 { padding: var(--s-4); } .p-5 { padding: var(--s-5); }
.p-6 { padding: var(--s-6); } .p-8 { padding: var(--s-8); }
.py-2 { padding-block: var(--s-2); } .py-3 { padding-block: var(--s-3); }
.px-3 { padding-inline: var(--s-3); } .px-4 { padding-inline: var(--s-4); }
.w-full { width: 100%; }
.max-60 { max-width: 60ch; }
.max-72 { max-width: 72ch; }
.mx-auto { margin-inline: auto; }
.rule { height: 1px; background: var(--border); border: 0; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 999;
  background: var(--em-500); color: #04140e; padding: 10px 18px;
  border-radius: var(--r-sm); font-weight: 650; transition: top var(--t);
}
.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------------- 04 SURFACES */
.glass {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2), var(--glow-inner);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t),
    background-color var(--t);
}

.glass-hover:hover {
  border-color: var(--border-hover);
  box-shadow: var(--sh-3), var(--glow-inner), 0 0 42px -20px rgba(16, 185, 129, .6);
}

.glass-flat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }

/* gradient top hairline */
.sheen::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, .5), rgba(34, 211, 238, .35), transparent);
  opacity: 0;
  transition: opacity var(--t);
  border-radius: inherit;
  pointer-events: none;
}
.sheen:hover::before, .sheen.is-on::before { opacity: 1; }

/* cursor spotlight added by JS */
.spot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(16, 185, 129, .12), transparent 62%);
  opacity: 0;
  transition: opacity var(--t-slow);
  pointer-events: none;
}
.spot:hover::after { opacity: 1; }

.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: 0;
}

/* ------------------------------------------------------------------ 05 BUTTONS */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 40px;
  padding-inline: 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast), background-color var(--t), border-color var(--t),
    box-shadow var(--t), color var(--t), opacity var(--t);
  -webkit-user-select: none;
  user-select: none;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-hover); }
.btn:active { transform: translateY(1px) scale(.995); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.btn-sm { height: 32px; padding-inline: 12px; font-size: .78rem; border-radius: var(--r-xs); }
.btn-lg { height: 48px; padding-inline: 24px; font-size: .95rem; border-radius: var(--r-md); }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; }

.btn-primary {
  border-color: transparent;
  background: var(--grad-em);
  color: #04140e;
  font-weight: 700;
  box-shadow: 0 8px 26px -12px rgba(16, 185, 129, .8), inset 0 1px 0 rgba(255, 255, 255, .34);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--em-300), var(--cy-400));
  box-shadow: 0 12px 34px -12px rgba(16, 185, 129, .95), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }

.btn-outline { background: transparent; }
.btn-danger:hover { border-color: rgba(251, 113, 133, .55); color: var(--neg); }

/* Glowing Pro CTA */
.btn-pro {
  position: relative;
  border: 1px solid rgba(16, 185, 129, .48);
  background: linear-gradient(135deg, rgba(16, 185, 129, .2), rgba(6, 182, 212, .16));
  color: var(--text);
  font-weight: 700;
  overflow: hidden;
  animation: proPulse 3.6s var(--ease) infinite;
}
.btn-pro:hover {
  border-color: rgba(52, 211, 153, .9);
  background: linear-gradient(135deg, rgba(16, 185, 129, .32), rgba(6, 182, 212, .26));
  box-shadow: 0 0 30px -6px rgba(16, 185, 129, .7);
}
.btn-pro > * { position: relative; z-index: 1; }
.btn-pro::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
  animation: shimmer 3.6s var(--ease) infinite;
}
@keyframes proPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .3), 0 8px 26px -14px rgba(16, 185, 129, .7); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0), 0 10px 30px -12px rgba(16, 185, 129, .85); }
}
@keyframes shimmer { 0% { left: -120%; } 55%, 100% { left: 130%; } }

.btn-group { display: inline-flex; padding: 3px; gap: 3px; border-radius: var(--r-sm);
  background: var(--surface-3); border: 1px solid var(--border); }
.btn-group .btn { height: 30px; border: 0; background: transparent; font-size: .78rem; }
.btn-group .btn[aria-pressed="true"] {
  background: var(--bg-elev); box-shadow: var(--sh-1); color: var(--em-400);
}

/* -------------------------------------------------------------------- 06 FORMS */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label {
  font-size: .7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hint { font-size: .72rem; color: var(--text-3); line-height: 1.45; }

.input, .select, .textarea {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  font-size: .875rem;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
  appearance: none;
}
.textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--em-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .16);
  background: var(--surface-2);
}
.input.is-bad, .select.is-bad { border-color: rgba(251, 113, 133, .7); }
.input-mono { font-family: var(--font-mono); font-size: .8rem; }

.select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 15px;
  cursor: pointer;
}
.select option { background: var(--bg-elev); color: var(--text); }

.input-affix { position: relative; display: flex; align-items: center; }
.input-affix .prefix, .input-affix .suffix {
  position: absolute; font-size: .8rem; color: var(--text-3);
  pointer-events: none; font-family: var(--font-mono);
}
.input-affix .prefix { left: 11px; }
.input-affix .suffix { right: 11px; }
.input-affix .prefix + .input { padding-left: 26px; }
.input-affix .input.has-suffix { padding-right: 34px; }

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  position: relative;
  width: 38px; height: 21px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  transition: background-color var(--t), border-color var(--t), box-shadow var(--t);
  flex: none;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform var(--t), background-color var(--t);
}
.switch input:checked + .track {
  background: linear-gradient(135deg, rgba(16, 185, 129, .9), rgba(6, 182, 212, .8));
  border-color: var(--em-400);
  box-shadow: 0 0 16px -3px rgba(16, 185, 129, .75);
}
.switch input:checked + .track::after { transform: translateX(17px); background: #04140e; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch .switch-label { font-size: .83rem; font-weight: 550; color: var(--text-2); }
.switch input:checked ~ .switch-label { color: var(--text); }

/* Checkbox */
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: .83rem; color: var(--text-2); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  flex: none;
  width: 17px; height: 17px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  display: grid; place-items: center;
  transition: background-color var(--t), border-color var(--t);
}
.check .box svg { width: 11px; height: 11px; opacity: 0; transform: scale(.6); transition: all var(--t); }
.check input:checked + .box { background: var(--em-500); border-color: var(--em-400); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Segmented control */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-sm);
  background: var(--surface-3); border: 1px solid var(--border); }
.seg button {
  padding: 6px 12px; border-radius: 7px; font-size: .78rem; font-weight: 600;
  color: var(--text-3); transition: all var(--t);
}
.seg button:hover { color: var(--text-2); }
.seg button[aria-pressed="true"], .seg button.is-on {
  background: var(--bg-elev); color: var(--em-400); box-shadow: var(--sh-1);
}
.seg-block { display: flex; width: 100%; }
.seg-block button { flex: 1; text-align: center; }

/* Range slider */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track {
  height: 5px; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--em-500) var(--fill, 50%), var(--surface-3) var(--fill, 50%));
  border: 1px solid var(--border);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; margin-top: -6px;
  border-radius: 50%; background: var(--em-400);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .22);
  transition: transform var(--t-fast);
}
.range::-webkit-slider-thumb:hover { transform: scale(1.14); }
.range::-moz-range-track { height: 5px; border-radius: var(--r-full); background: var(--surface-3); border: 1px solid var(--border); }
.range::-moz-range-progress { height: 5px; border-radius: var(--r-full); background: var(--em-500); }
.range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--em-400); box-shadow: 0 0 0 3px rgba(16, 185, 129, .22); }

/* ----------------------------------------------------------------- 07 PILLS/TABS */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding-inline: 13px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: .79rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t);
}
.pill:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface-2); }
.pill[aria-pressed="true"], .pill.is-on {
  color: var(--em-300);
  border-color: rgba(16, 185, 129, .5);
  background: linear-gradient(135deg, rgba(16, 185, 129, .16), rgba(6, 182, 212, .1));
  box-shadow: 0 0 20px -8px rgba(16, 185, 129, .7);
}
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }

.pill-row { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.pill-row::-webkit-scrollbar { display: none; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); }
.tab {
  position: relative;
  padding: 10px 14px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-3);
  transition: color var(--t);
  white-space: nowrap;
}
.tab:hover { color: var(--text-2); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-em);
  box-shadow: 0 0 12px rgba(16, 185, 129, .7);
}

/* ------------------------------------------------------------------ 08 BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .01em;
  color: var(--text-2);
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge-em { color: var(--em-300); border-color: rgba(16, 185, 129, .38); background: rgba(16, 185, 129, .12); }
.badge-cy { color: var(--cy-300); border-color: rgba(6, 182, 212, .38); background: rgba(6, 182, 212, .12); }
.badge-vi { color: #c4b5fd; border-color: rgba(139, 92, 246, .38); background: rgba(139, 92, 246, .12); }
.badge-warn { color: var(--warn); border-color: rgba(251, 191, 36, .38); background: rgba(251, 191, 36, .12); }
.badge-neg { color: var(--neg); border-color: rgba(251, 113, 133, .38); background: rgba(251, 113, 133, .12); }
.badge-solid { background: var(--em-500); border-color: transparent; color: #04140e; font-weight: 700; }
.badge-sm { padding: 2px 7px; font-size: .64rem; }
.badge-lg { padding: 5px 12px; font-size: .76rem; }

/* pulsing live dot */
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--em-400); flex: none;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: live 2s infinite; }
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .65); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* --------------------------------------------------------------- 09 NAV/HEADER */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background-color var(--t), box-shadow var(--t);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .header { background: rgba(11, 15, 23, .74); }
}
.header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 34px -22px rgba(0, 0, 0, .95);
}
.header-inner { display: flex; align-items: center; gap: var(--s-4); height: 100%; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--em-400), var(--cy-500) 62%, var(--vi-500));
  box-shadow: 0 6px 20px -8px rgba(16, 185, 129, .95), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.brand-mark svg { width: 18px; height: 18px; color: #03130d; }
.brand-mark::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 13px;
  background: radial-gradient(circle, rgba(16, 185, 129, .4), transparent 68%);
  filter: blur(7px);
  z-index: -1;
  animation: markGlow 4s var(--ease) infinite;
}
@keyframes markGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.brand-word { font-size: 1.16rem; font-weight: 750; letter-spacing: -.04em; }
.brand-word b { color: var(--em-400); font-weight: 750; }
.brand-tag { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 650; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 7px 11px; border-radius: var(--r-xs); font-size: .83rem; font-weight: 550;
  color: var(--text-2); transition: all var(--t);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }

/* search */
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search-input-wrap { position: relative; display: flex; align-items: center; }
.search-icon {
  position: absolute; left: 11px; width: 15px; height: 15px;
  color: var(--text-3); pointer-events: none;
}
.search input {
  width: 100%; height: 38px;
  padding: 0 62px 0 34px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  font-size: .84rem;
  transition: all var(--t);
}
.search input::placeholder { color: var(--text-3); }
.search input:focus {
  outline: none;
  border-color: rgba(16, 185, 129, .55);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .13);
}
.kbd {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  color: var(--text-3); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 2px 5px; line-height: 1.3;
}
.search .kbd { position: absolute; right: 10px; pointer-events: none; }

.search-results {
  position: absolute;
  top: calc(100% + 9px); left: 0; right: 0;
  z-index: 60;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  backdrop-filter: blur(20px);
}
.sr-group { padding: 8px 9px 4px; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.sr-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 9px;
  border-radius: var(--r-xs); text-align: left; transition: background-color var(--t-fast);
}
.sr-item:hover, .sr-item.is-active { background: var(--surface-3); }
.sr-item .ic {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 7px; background: var(--surface-3);
  color: var(--em-400);
}
.sr-item .ic svg { width: 14px; height: 14px; }
.sr-item .t { font-size: .84rem; font-weight: 600; }
.sr-item .d { font-size: .72rem; color: var(--text-3); }
.sr-empty { padding: 22px 12px; text-align: center; color: var(--text-3); font-size: .82rem; }

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; flex: none; }

.mobile-only { display: none; }

/* ------------------------------------------------------------------ 10 MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--s-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-scrim {
  position: absolute; inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: min(92vh, 900px);
  overflow-y: auto;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--border-strong);
  box-shadow: var(--sh-3), 0 0 90px -30px rgba(16, 185, 129, .45);
  transform: translateY(16px) scale(.975);
  opacity: 0;
  transition: transform var(--t-slow), opacity var(--t);
}
.modal.is-open .modal-panel { transform: none; opacity: 1; }
.modal-panel::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, .7), rgba(34, 211, 238, .5), transparent);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.modal-close:hover { color: var(--text); background: var(--surface-3); border-color: var(--border-hover); transform: rotate(90deg); }
.modal-close svg { width: 15px; height: 15px; }
.modal-sm { max-width: 520px; }
.modal-lg { max-width: 1040px; }

/* Locking scroll removes the scrollbar, which shifts the entire page sideways
   the moment the modal opens. Compensate with matching padding. --sbw is
   measured and set by JS on each open; it is 0 on overlay-scrollbar platforms
   (macOS, mobile) where there is nothing to compensate for. */
body.no-scroll { overflow: hidden; padding-right: var(--sbw, 0px); }
body.no-scroll .header { padding-right: var(--sbw, 0px); }

/* ------------------------------------------------------------- 11b LEGAL */
/* Paddle requires the policy links to be plainly visible, so they get their own
   row rather than being buried in one of the navigation columns. */
.legal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-3);
}
.legal-bar a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color var(--t), text-decoration-color var(--t);
}
.legal-bar a:hover { color: var(--em-400); text-decoration-color: var(--em-500); }
.legal-inline {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.legal-inline:hover { color: var(--em-400); }
/* Parent-brand attribution. Rendered as text, not a link: the parent domain
   is not live yet, and a footer link that 404s is worse than no link. Turn it
   into an anchor here once that domain resolves. */
.legal-brand { color: var(--text-2); font-weight: 600; }

/* Legal document pages share this shell. */
.legal-page {
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px));
  padding-bottom: clamp(40px, 6vw, 80px);
}
.legal-doc { max-width: 74ch; margin-inline: auto; }
.legal-doc h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.legal-doc h2 {
  font-size: 1.12rem;
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.legal-doc h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-doc p, .legal-doc li { color: var(--text-2); font-size: .92rem; line-height: 1.75; }
.legal-doc p { margin-top: var(--s-3); }
.legal-doc ul { margin-top: var(--s-3); padding-left: 20px; }
.legal-doc li { list-style: disc; margin-top: 6px; }
.legal-doc a { color: var(--em-400); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc strong { color: var(--text); }
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin-top: var(--s-4);
  font-size: .78rem; color: var(--text-3);
}
.legal-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.legal-callout {
  margin-top: var(--s-5);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(16, 185, 129, .35);
  background: rgba(16, 185, 129, .07);
  font-size: .86rem;
  line-height: 1.7;
  color: var(--text-2);
}
.legal-callout strong { color: var(--em-300); }
.legal-table { width: 100%; margin-top: var(--s-4); font-size: .86rem; }
.legal-table th, .legal-table td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
.legal-table th {
  font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700;
}
.legal-table td strong { color: var(--text); }

/* ------------------------------------------------------------------ 11 TOAST */
.toasts {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 400;
  display: flex; flex-direction: column; gap: 9px;
  max-width: min(92vw, 380px);
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  box-shadow: var(--sh-3);
  font-size: .84rem;
  pointer-events: auto;
  animation: toastIn 320ms var(--ease-out);
}
.toast.is-out { animation: toastOut 220ms var(--ease) forwards; }
.toast .ti { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.toast.ok .ti { color: var(--em-400); }
.toast.err .ti { color: var(--neg); }
.toast.info .ti { color: var(--cy-400); }
.toast.warn .ti { color: var(--warn); }
.toast .tt { font-weight: 650; }
.toast .td { color: var(--text-2); font-size: .78rem; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px) scale(.97); } }

/* -------------------------------------------------------------- 12 TOOL CHROME */
.tool-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.tool-card .tc-head { display: flex; align-items: flex-start; gap: var(--s-4); padding: var(--s-6); }
.tool-ic {
  width: 46px; height: 46px; flex: none;
  border-radius: 13px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  background: linear-gradient(140deg, rgba(16, 185, 129, .2), rgba(6, 182, 212, .12));
  color: var(--em-400);
  box-shadow: var(--glow-inner);
}
.tool-ic svg { width: 22px; height: 22px; }
.tool-ic.cy { background: linear-gradient(140deg, rgba(6, 182, 212, .2), rgba(139, 92, 246, .12)); color: var(--cy-400); }
.tool-ic.vi { background: linear-gradient(140deg, rgba(139, 92, 246, .2), rgba(16, 185, 129, .1)); color: #c4b5fd; }

.tool-body { padding: 0 var(--s-6) var(--s-6); }
.split { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); }

.panel {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-3);
}
.panel-body { padding: 14px; }
.panel-scroll { max-height: 620px; overflow-y: auto; }

.fieldset + .fieldset { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px dashed var(--border); }
.fieldset-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); margin-bottom: var(--s-3);
}
.fieldset-title {
  display: flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.fieldset-title .n {
  width: 17px; height: 17px; border-radius: 5px;
  display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--border);
  font-size: .62rem; color: var(--em-400); font-family: var(--font-mono);
}

.grid-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.grid-fields-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.span-2 { grid-column: span 2; }

/* PDF preview frame */
.preview-frame {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(45deg, rgba(148, 163, 184, .04) 0 10px, transparent 10px 20px),
    var(--bg-3);
  padding: var(--s-4);
  min-height: 300px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  max-height: 640px;
}
.preview-frame canvas {
  border-radius: 6px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85), 0 0 0 1px var(--border);
  background: #fff;
  max-width: 100%;
  height: auto;
}
.preview-toolbar {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 9px 12px; margin-bottom: 10px;
  border-radius: var(--r-xs);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.preview-toolbar .pg { font-family: var(--font-mono); font-size: .74rem; color: var(--text-3); }

/* Line items editor */
.li-head, .li-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 92px 88px 28px;
  gap: 7px;
  align-items: center;
}
.li-head {
  padding: 0 2px 6px;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700;
}
.li-row { margin-bottom: 7px; }
.li-row .input { height: 34px; font-size: .8rem; }
.li-row .del {
  width: 28px; height: 34px; border-radius: var(--r-xs);
  display: grid; place-items: center;
  color: var(--text-3); border: 1px solid transparent; transition: all var(--t);
}
.li-row .del:hover { color: var(--neg); border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .08); }
.li-row .del svg { width: 13px; height: 13px; }
.li-total {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding-top: 8px; margin-top: 4px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono); font-size: .8rem;
}

/* Totals */
.totals { border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-3); padding: 13px 14px; }
.totals-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .84rem; }
.totals-row .k { color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.totals-row .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.totals-row.grand {
  margin-top: 8px; padding-top: 11px;
  border-top: 1px solid var(--border-strong);
  font-size: 1.12rem; font-weight: 700;
}
.totals-row.grand .v { color: var(--em-400); }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-3); }
.stat {
  padding: 13px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.stat .sk { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.stat .sv { font-size: 1.42rem; font-weight: 700; letter-spacing: -.03em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.stat .sd { font-size: .72rem; color: var(--text-3); margin-top: 2px; }
.stat.hl { border-color: rgba(16, 185, 129, .38); background: linear-gradient(160deg, rgba(16, 185, 129, .1), transparent 70%); }
.stat.hl .sv { color: var(--em-400); }
.stat.neg-hl { border-color: rgba(251, 113, 133, .3); }
.stat.neg-hl .sv { color: var(--neg); }

/* waterfall / breakdown */
.wf-bar {
  display: flex; height: 34px; border-radius: var(--r-xs);
  overflow: hidden; border: 1px solid var(--border);
  background: var(--surface-3);
}
.wf-seg {
  position: relative;
  height: 100%;
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 700;
  color: #04140e;
  overflow: hidden;
  transition: flex-basis var(--t-slow), opacity var(--t);
  min-width: 0;
}
.wf-seg span { padding-inline: 4px; }
.wf-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 11px; }
.wf-key { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--text-2); }
.wf-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.wf-key .amt { font-family: var(--font-mono); color: var(--text); }

/* gateway cards */
.gw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); }
.gw-card {
  position: relative;
  padding: 13px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--t);
  text-align: left;
}
.gw-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.gw-card.is-on {
  border-color: rgba(16, 185, 129, .6);
  background: linear-gradient(160deg, rgba(16, 185, 129, .13), transparent 72%);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .3), 0 12px 30px -18px rgba(16, 185, 129, .8);
}
.gw-card .gwh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gw-card .gwn { font-weight: 650; font-size: .9rem; }
.gw-card .gwr { font-family: var(--font-mono); font-size: .74rem; color: var(--text-3); margin-top: 1px; }
.gw-card .gwnet { font-size: 1.24rem; font-weight: 700; margin-top: 9px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gw-card .gwmeta { font-size: .72rem; color: var(--text-3); margin-top: 2px; }
.gw-card .ribbon {
  position: absolute; top: -9px; right: 11px;
  font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--r-full);
  background: var(--em-500); color: #04140e;
  box-shadow: 0 6px 16px -6px rgba(16, 185, 129, .95);
}

/* data table */
.tbl { width: 100%; font-size: .82rem; }
.tbl th {
  text-align: right; padding: 9px 10px;
  font-size: .66rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody tr:hover { background: var(--surface-3); }
.tbl tbody tr.is-on { background: rgba(16, 185, 129, .07); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .best { color: var(--em-400); font-weight: 700; }
.tbl-wrap { overflow-x: auto; }

/* progress meter */
.meter { height: 6px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; border: 1px solid var(--border); }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--grad-em); transition: width var(--t-slow); }

/* Pro lock chip */
.lock {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px; border-radius: var(--r-full);
  font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #04140e;
  background: linear-gradient(120deg, var(--em-400), var(--cy-400));
  cursor: pointer;
}
.lock svg { width: 10px; height: 10px; }

.pro-gate { position: relative; }
.pro-gate.is-locked::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--bg) 82%, transparent));
  backdrop-filter: blur(1.5px);
  pointer-events: none;
}

/* empty state */
.empty { padding: 30px 18px; text-align: center; color: var(--text-3); }
.empty svg { width: 30px; height: 30px; margin: 0 auto 10px; opacity: .55; }

/* accordion */
.acc { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.acc + .acc { margin-top: 9px; }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; cursor: pointer; font-weight: 600; font-size: .88rem;
  list-style: none; transition: background-color var(--t);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--surface-3); }
.acc summary .chev { width: 15px; height: 15px; color: var(--text-3); transition: transform var(--t); flex: none; }
.acc[open] summary .chev { transform: rotate(180deg); color: var(--em-400); }
.acc .acc-body { padding: 0 15px 15px; font-size: .84rem; color: var(--text-2); line-height: 1.65; }

/* Icons injected into controls.
   The icon set carries no width/height attributes (it scales via `currentColor`
   and viewBox), so ANY container without an explicit svg size renders a
   24px-plus icon that can stretch to fill its parent. That is exactly what
   happened to the tool buttons: a giant arrow covered the statistics. Size them
   by context instead of relying on the SVG's intrinsic dimensions. */
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  pointer-events: none;
}
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg svg { width: 18px; height: 18px; }
.btn-icon svg { width: 17px; height: 17px; }
.btn-icon.btn-sm svg { width: 15px; height: 15px; }
.btn-group svg { width: 14px; height: 14px; }
.tab svg { width: 14px; height: 14px; flex: none; }
.nav-link svg { width: 15px; height: 15px; flex: none; }
.wf-key svg { width: 13px; height: 13px; flex: none; }

/* SVG inside a button that already wraps its label in a span */
.btn > span > svg { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------- 13 CODE UI */
.code-input {
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.62;
  white-space: pre;
  overflow: auto;
  min-height: 260px;
  tab-size: 2;
  background: var(--bg-3);
  border-color: var(--border-strong);
}
.code-input:focus { background: var(--bg-3); }

.code-out {
  position: relative;
  max-height: 460px;
  min-height: 260px;
  overflow: auto;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 24px,
    var(--bg-3);
  outline: none;
}
.code-out:focus-visible { box-shadow: inset 0 0 0 2px var(--em-500); }

.code-pre {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.62;
  white-space: pre;
  tab-size: 2;
  color: var(--text);
}

/* JSON token colours: readable in both themes, distinguishable without relying
   on hue alone (keys are bold, literals are italic). */
.jt-key { color: var(--cy-400); font-weight: 600; }
.jt-string { color: var(--em-400); }
.jt-number { color: #f0b866; }
.jt-boolean { color: #c4b5fd; font-style: italic; }
.jt-null { color: var(--text-3); font-style: italic; }
.jt-punct { color: var(--text-3); }
html[data-theme="light"] .jt-key { color: #0e7490; }
html[data-theme="light"] .jt-string { color: #047857; }
html[data-theme="light"] .jt-number { color: #b45309; }
html[data-theme="light"] .jt-boolean { color: #6d28d9; }
html[data-theme="light"] .jt-null { color: #64748b; }

.code-error {
  margin: 16px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(251, 113, 133, .45);
  background: rgba(251, 113, 133, .09);
}
.code-error .ce-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .86rem; color: var(--neg);
}
.code-error .ce-title svg { width: 15px; height: 15px; flex: none; }
.code-error .ce-msg {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* Tree view */
.tree { padding: 12px 16px; font-family: var(--font-mono); font-size: .76rem; line-height: 1.7; }
.tree-node { margin: 0; }
.tree-node > summary {
  cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: baseline;
  padding: 1px 0; border-radius: 4px;
}
.tree-node > summary::-webkit-details-marker { display: none; }
.tree-node > summary::before {
  content: "▸"; color: var(--text-3); font-size: .7rem; transition: transform var(--t-fast);
}
.tree-node[open] > summary::before { content: "▾"; }
.tree-node > summary:hover { background: var(--surface-3); }
.tree-kids { margin-left: 12px; padding-left: 10px; border-left: 1px dashed var(--border-strong); }
.tree-leaf { padding: 1px 0; display: flex; gap: 6px; align-items: baseline; }
.tree-leaf .tk { color: var(--cy-400); }
.tree-node > summary .tk { color: var(--cy-400); font-weight: 600; }
.tree .tcount { color: var(--text-3); font-size: .68rem; }
.tv-string { color: var(--em-400); }
.tv-number { color: #f0b866; }
.tv-boolean { color: #c4b5fd; font-style: italic; }
.tv-null { color: var(--text-3); font-style: italic; }
html[data-theme="light"] .tree-leaf .tk,
html[data-theme="light"] .tree-node > summary .tk { color: #0e7490; }
html[data-theme="light"] .tv-string { color: #047857; }
html[data-theme="light"] .tv-number { color: #b45309; }
html[data-theme="light"] .tv-boolean { color: #6d28d9; }

/* Diagnostics list */
.diag {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 11px; border-radius: var(--r-xs);
  border: 1px solid var(--border); background: var(--surface);
  font-size: .8rem; line-height: 1.5;
}
.diag + .diag { margin-top: 7px; }
.diag svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.diag-ok { color: var(--text-2); }
.diag-ok svg { color: var(--em-400); }
.diag-note svg { color: var(--cy-400); }
.diag-err { border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .08); }
.diag-err svg { color: var(--neg); }

/* ------------------------------------------------------------- 14 QR TOOL */
.qr-frame {
  min-height: 340px;
  padding: var(--s-6);
  align-items: center;
}
.qr-shadow {
  width: 100%;
  max-width: 380px;
  padding: 14px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px var(--border);
}
#t4-preview { line-height: 0; }
#t4-preview svg { display: block; }

.payload-box {
  padding: 11px 12px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: var(--bg-3);
  font-size: .74rem;
  line-height: 1.6;
  color: var(--text-2);
  word-break: break-all;
  max-height: 130px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.swatch-pair {
  width: 14px; height: 14px; border-radius: 4px; flex: none;
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
  border: 1px solid var(--border-strong);
}

.pro-gate .lock { margin-left: 4px; }

@media print {
  .qr-frame { box-shadow: none; }
}

/* ----------------------------------------------------- 15 ENGAGEMENT GAUGE */
.gauge {
  position: relative;
  height: 14px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
}
.gauge-track { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.gauge-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  transition: left var(--t-slow), width var(--t-slow);
}
.gauge-zone.poor { background: linear-gradient(90deg, rgba(251, 113, 133, .55), rgba(251, 191, 36, .5)); }
.gauge-zone.avg { background: linear-gradient(90deg, rgba(251, 191, 36, .5), rgba(34, 211, 238, .5)); }
.gauge-zone.good { background: linear-gradient(90deg, rgba(34, 211, 238, .5), rgba(16, 185, 129, .75)); }
.gauge-needle {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text);
  box-shadow: 0 0 0 2px var(--bg), 0 0 14px 2px rgba(255, 255, 255, .4);
  transition: left var(--t-slow);
}
.gauge-needle::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text);
}
.gauge-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-3);
}
.gauge-value {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-em);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.meter-wrap { position: relative; }

/* ------------------------------------------------------------ 16 CLEANING UI */
.switch-block {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 10px;
}
.switch-block .switch-label { line-height: 1.45; }

.change-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: .84rem;
}
.change-row:last-child { border-bottom: 0; }
.change-mark {
  width: 22px; height: 22px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, .13);
  color: var(--em-400);
}
.change-mark svg { width: 12px; height: 12px; }

.diff-head {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-3);
  font-size: .74rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.diff-body { padding: 6px 0; }
.diff-line {
  display: flex;
  gap: 10px;
  padding: 1px 14px;
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.diff-line .dl-sign { flex: none; width: 9px; opacity: .7; }
.diff-line .dl-text { flex: 1 1 auto; min-width: 0; }
.dl-same { color: var(--text-3); }
.dl-add { background: rgba(16, 185, 129, .11); color: var(--em-300); }
.dl-add .dl-sign { color: var(--em-400); }
.dl-del {
  background: rgba(251, 113, 133, .1);
  color: #fda4af;
  text-decoration: line-through;
  text-decoration-color: rgba(253, 164, 175, .45);
}
.dl-del .dl-sign { color: var(--neg); }
.diff-more {
  padding: 10px 14px;
  font-size: .74rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  .gauge-value { font-size: 2rem; }
  .diff-line { padding-inline: 8px; }
}

/* ---------------------------------------------------------------- 17 SECTIONS */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(48px, 7vw, 92px)); padding-bottom: clamp(40px, 6vw, 76px); }
.hero-inner { text-align: center; max-width: 900px; margin-inline: auto; }
.hero h1 { margin-top: var(--s-5); }
.hero .lead { margin-top: var(--s-5); max-width: 68ch; margin-inline: auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-8); }

.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--s-3); margin-top: var(--s-8);
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  font-size: .76rem; font-weight: 600; color: var(--text-2);
}
.trust-chip svg { width: 14px; height: 14px; color: var(--em-400); flex: none; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-4); }
.metric { text-align: center; padding: var(--s-5) var(--s-3); }
.metric .mv { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric .mk { font-size: .74rem; color: var(--text-3); margin-top: 3px; letter-spacing: .02em; }

.sec-head { max-width: 720px; }
.sec-head.center { margin-inline: auto; text-align: center; }

.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .fi {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .3);
  color: var(--em-400);
}
.feature .fi svg { width: 16px; height: 16px; }
.feature h4 { font-size: .92rem; }
.feature p { font-size: .82rem; margin-top: 3px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-5); align-items: stretch; }
.price-card { position: relative; padding: var(--s-6); display: flex; flex-direction: column; }
.price-card.pro {
  border-color: rgba(16, 185, 129, .45);
  background: linear-gradient(180deg, rgba(16, 185, 129, .08), transparent 55%), var(--surface);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .18), 0 30px 70px -34px rgba(16, 185, 129, .55);
}
.price-card .amount { display: flex; align-items: flex-end; gap: 6px; margin-top: var(--s-3); }
.price-card .amount .cur { font-size: 1.2rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.price-card .amount .num { font-size: 3rem; font-weight: 750; letter-spacing: -.045em; line-height: .95; }
.price-card .amount .per { font-size: .84rem; color: var(--text-3); margin-bottom: 7px; }
.feat-list { display: flex; flex-direction: column; gap: 10px; margin-top: var(--s-5); }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--text-2); }
.feat-list li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--em-400); }
.feat-list li .pb-ic { display: inline-flex; flex: none; }
.feat-list li .pb-ic svg { width: 16px; height: 16px; color: var(--em-400); }
.feat-list li.off { color: var(--text-3); }
.feat-list li.off svg { color: var(--text-3); }
.feat-list li.off span { text-decoration: line-through; text-decoration-color: rgba(148, 163, 184, .5); }

/* billing toggle in modal */
.billing-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 5px; border-radius: var(--r-md);
  background: var(--surface-3); border: 1px solid var(--border);
  position: relative;
}
.billing-opt {
  position: relative;
  padding: 13px 12px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-align: center;
  transition: all var(--t);
}
.billing-opt:hover { background: var(--surface-2); }
.billing-opt .bo-top { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .8rem; font-weight: 650; color: var(--text-2); }
.billing-opt .bo-price { font-size: 1.65rem; font-weight: 750; letter-spacing: -.035em; margin-top: 4px; }
.billing-opt .bo-price small { font-size: .76rem; font-weight: 550; color: var(--text-3); letter-spacing: 0; }
.billing-opt .bo-note { font-size: .7rem; color: var(--text-3); margin-top: 2px; }
.billing-opt.is-on {
  border-color: rgba(16, 185, 129, .6);
  background: linear-gradient(160deg, rgba(16, 185, 129, .16), transparent 78%);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .28), 0 14px 34px -22px rgba(16, 185, 129, .9);
}
.billing-opt.is-on .bo-top { color: var(--em-300); }
.billing-opt.is-on .bo-price { color: var(--text); }

.save-flag {
  position: absolute; top: -10px; right: 12px;
  font-size: .6rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--r-full);
  background: var(--grad-em); color: #04140e;
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .95);
}

.modal-hero {
  padding: calc(var(--s-8) + 4px) var(--s-8) var(--s-6);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(600px 220px at 18% -30%, rgba(16, 185, 129, .2), transparent 70%),
    radial-gradient(500px 200px at 88% -20%, rgba(6, 182, 212, .16), transparent 70%);
}
.modal-body { padding: var(--s-6) var(--s-8) var(--s-8); }
.modal-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-8); }

.sec-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: var(--s-5); }
.sec-badge {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 10px 11px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface);
}
.sec-badge svg { width: 15px; height: 15px; color: var(--em-400); flex: none; margin-top: 2px; }
.sec-badge .sb-t { font-size: .76rem; font-weight: 650; }
.sec-badge .sb-d { font-size: .68rem; color: var(--text-3); line-height: 1.4; }

.paddle-note {
  padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px dashed var(--border-strong); background: var(--surface-3);
  font-size: .72rem; color: var(--text-3); line-height: 1.5;
}

/* ------------------------------------------------------------------ 14 MOTION */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 70ms; }
.reveal-d2 { transition-delay: 140ms; }
.reveal-d3 { transition-delay: 210ms; }
.reveal-d4 { transition-delay: 280ms; }

.float-slow { animation: float 7s var(--ease) infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.pulse-once { animation: pulseOnce 620ms var(--ease-out); }
@keyframes pulseOnce {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
  100% { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
}

.flash-up { animation: flashUp 700ms var(--ease-out); }
@keyframes flashUp {
  0% { color: var(--em-300); transform: translateY(-3px); }
  100% { color: inherit; transform: none; }
}

.spin { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- 15 RESPONSIVE */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); }
  .modal-split { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .search { max-width: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-fields, .grid-fields-3 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .modal-hero, .modal-body { padding-inline: var(--s-5); }
  .li-head { display: none; }
  .li-row { grid-template-columns: minmax(0, 1fr) 68px 78px 28px; }
  .li-row .li-desc { grid-column: 1 / -1; }
  .mobile-only { display: inline-flex; }
  .desk-only { display: none !important; }
  .tool-card .tc-head { padding: var(--s-5) var(--s-5) 0; }
  .tool-body { padding: 0 var(--s-5) var(--s-5); }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .hero-cta .btn { width: 100%; }
  .toasts { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .stat .sv { font-size: 1.24rem; }
  .billing-toggle { grid-template-columns: 1fr; }
  .search .kbd { display: none; }
  .search input { padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------- 16 PRINT */
@media print {
  body::before, body::after, .header, .toasts, .modal { display: none !important; }
  body { background: #fff; color: #000; }
  .glass { box-shadow: none; border-color: #ddd; background: #fff; }
}
