/* =========================================================
   SafeShrink — styles
   ========================================================= */

/* Self-hosted fonts (vendor.ps1 downloads them). No request ever goes to Google Fonts —
   if the files are missing, the system font stack below is used instead. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('vendor/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('vendor/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('vendor/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('vendor/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 500;
  src: url('vendor/fonts/jetbrains-mono-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 500;
  src: url('vendor/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Segoe UI Variable Display', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --accent-1: #7c5cff;
  --accent-2: #18c6f0;
  --accent-grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --coffee: #ffdd00;
  --coffee-ink: #1a1400;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c10;
  --bg-2: #101218;
  --surface: rgba(22, 24, 33, .72);
  --surface-solid: #161821;
  --surface-2: #1d2030;
  --surface-3: #262a3d;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eef0f6;
  --text-2: #a7adc2;
  --text-3: #6f7590;
  --accent-soft: rgba(124, 92, 255, .16);
  --success-soft: rgba(34, 197, 94, .14);
  --danger-soft: rgba(239, 68, 68, .14);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --glow-1: rgba(124, 92, 255, .22);
  --glow-2: rgba(24, 198, 240, .14);
  --checker: #1a1c26;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-2: #eef0f7;
  --surface: rgba(255, 255, 255, .8);
  --surface-solid: #ffffff;
  --surface-2: #f1f3f9;
  --surface-3: #e5e8f2;
  --border: rgba(16, 20, 40, .09);
  --border-strong: rgba(16, 20, 40, .18);
  --text: #12141c;
  --text-2: #4c5269;
  --text-3: #8389a3;
  --accent-soft: rgba(124, 92, 255, .1);
  --success-soft: rgba(34, 197, 94, .12);
  --danger-soft: rgba(239, 68, 68, .1);
  --shadow: 0 20px 50px -24px rgba(30, 30, 80, .25);
  --glow-1: rgba(124, 92, 255, .16);
  --glow-2: rgba(24, 198, 240, .12);
  --checker: #e9ebf3;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .85em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 5px; }
kbd {
  background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px;
  padding: .05em .45em; border-radius: 6px;
}
svg { width: 1.15em; height: 1.15em; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-3); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(800px 500px at 15% -10%, var(--glow-1), transparent 60%),
    radial-gradient(700px 500px at 95% 0%, var(--glow-2), transparent 60%),
    var(--bg);
}

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

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 42px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; background: var(--surface-2);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .6);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 12px 30px -8px rgba(124, 92, 255, .75); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-3); }
.btn-danger:hover:not(:disabled) { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-coffee { background: var(--coffee); color: var(--coffee-ink); }
.btn-coffee:hover { box-shadow: 0 8px 24px -8px rgba(255, 221, 0, .6); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn.is-attention { animation: pulse 1.8s var(--ease) infinite; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }

.link-btn { background: none; border: 0; color: var(--text-3); font-size: 12.5px; cursor: pointer; padding: 4px; }
.link-btn:hover { color: var(--text); text-decoration: underline; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, .55); }
  50% { box-shadow: 0 0 0 8px rgba(124, 92, 255, 0); }
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 9px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
:root[data-theme="dark"] .theme-sun, :root[data-theme="light"] .theme-moon { display: none; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 64px 0 36px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.06;
  font-size: clamp(34px, 6vw, 64px); margin: 22px auto 18px; max-width: 900px;
}
.lead { max-width: 680px; margin: 0 auto; color: var(--text-2); font-size: clamp(15px, 1.6vw, 17.5px); }
.hero-pills { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-pills li {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
}
.hero-pills svg { color: var(--accent-2); }

/* ---------- Narzędzie ---------- */
.tool { padding-bottom: 40px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.tool-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
}

/* Mode switch: compress / remove metadata */
.tool[data-mode="compress"] .only-clean, .tool[data-mode="clean"] .only-compress { display: none !important; }
.mode-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
}
.mode-switch button {
  display: flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 14px;
  border: 0; border-radius: 12px; background: transparent; color: var(--text-2);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.mode-switch button svg { width: 19px; height: 19px; }
.mode-switch button:hover { color: var(--text); background: var(--surface-2); }
.mode-switch button.active { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 22px -10px rgba(124, 92, 255, .7); }
.mode-tag {
  font-style: normal; font-family: var(--font); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 99px; background: var(--success-soft); color: var(--success);
}
.mode-switch button.active .mode-tag { background: rgba(255, 255, 255, .22); color: #fff; }
.mode-hint {
  margin: -4px 4px 0; font-size: 13px; color: var(--text-2);
  padding-left: 12px; border-left: 3px solid var(--success);
}

.clean-panel { display: flex; flex-direction: column; gap: 12px; }
.clean-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.clean-head svg { color: var(--success); width: 18px; height: 18px; }

/* Metadata results in the file list */
.chip-removed { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 70%, transparent); color: var(--text-2); }
.chip-verified { color: var(--success); background: var(--success-soft); border-color: transparent; }
.file-row.is-expanded { grid-template-rows: auto auto; }
.file-details { grid-column: 1 / -1; padding: 10px 4px 2px; border-top: 1px dashed var(--border); animation: fadeIn .25s; }
.meta-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.meta-table th { text-align: left; font-weight: 600; color: var(--text-2); padding: 6px 10px 6px 0; white-space: nowrap; width: 1%; }
.meta-table td { padding: 6px 10px 6px 0; color: var(--text); word-break: break-word; }
.meta-table td:last-child { text-align: right; width: 1%; white-space: nowrap; padding-right: 0; }
.meta-table tr + tr { border-top: 1px solid var(--border); }
.meta-table tr.is-gps td:nth-child(2) { font-family: var(--font-mono); color: var(--danger); }
.meta-verified { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; font-size: 12.5px; color: var(--success); }
.meta-verified svg { width: 16px; height: 16px; }

/* Dropzone */
.dropzone {
  position: relative; border-radius: var(--radius-lg); cursor: pointer;
  background: var(--surface); border: 1.5px dashed var(--border-strong);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
  overflow: hidden;
}
.dropzone::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(600px 220px at 50% 0%, var(--accent-soft), transparent 70%);
}
.dropzone:hover { border-color: color-mix(in srgb, var(--accent-1) 55%, transparent); }
.dropzone:hover::before { opacity: 1; }
.dz-inner { position: relative; padding: 46px 24px; text-align: center; }
.dz-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center;
  border-radius: 18px; background: var(--accent-grad); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(124, 92, 255, .7);
}
.dz-icon svg { width: 30px; height: 30px; }
.dropzone h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.dropzone p { margin: 0; color: var(--text-2); font-size: 14px; }
.dz-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 14px; }
.dropzone .dz-hint { font-size: 12.5px; color: var(--text-3); }
.dz-overlay {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff;
  background: linear-gradient(120deg, rgba(124, 92, 255, .92), rgba(24, 198, 240, .88));
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.dz-overlay svg { width: 40px; height: 40px; }
.dropzone.is-over { transform: scale(1.01); border-color: var(--accent-2); }
.dropzone.is-over .dz-overlay { opacity: 1; }
.dropzone.is-compact .dz-inner { padding: 20px 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 18px; text-align: left; }
.dropzone.is-compact .dz-icon { width: 46px; height: 46px; margin: 0; border-radius: 14px; grid-row: span 2; }
.dropzone.is-compact .dz-icon svg { width: 22px; height: 22px; }
.dropzone.is-compact h2 { font-size: 17px; margin: 0; }
.dropzone.is-compact .dz-actions { margin: 0; grid-row: 1 / span 2; grid-column: 3; }
.dropzone.is-compact .dz-hint { display: none; }

/* Statystyki */
.stats { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 10px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.stat-label { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-mono { font-family: var(--font-mono); font-size: 15px; font-weight: 500; letter-spacing: 0; padding-top: 4px; }
.stat-hero .stat-value { font-size: 28px; }
.stat-pct { font-size: 15px; color: var(--success); font-weight: 700; margin-left: 4px; }
.stat-wide {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--text-2);
  background: linear-gradient(120deg, var(--accent-soft), transparent);
}
.stat-wide svg { color: var(--accent-2); width: 20px; height: 20px; }
.stat-wide b { color: var(--text); }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: var(--accent-grad); transition: width .35s var(--ease); }

/* Pasek akcji */
.actions-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions-bar .spacer { flex: 1; }
.sort-select select, .settings select, .settings input[type="text"], .settings input[type="number"] {
  height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
  padding: 0 12px; outline: none; transition: border-color .2s; width: 100%;
}
.sort-select select { width: auto; height: 42px; cursor: pointer; }
.settings select:focus, .settings input:focus { border-color: var(--accent-1); }

/* Lista plików */
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.file-row {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 84px auto; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  animation: rowIn .35s var(--ease) both;
  content-visibility: auto; contain-intrinsic-size: auto 74px;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
.thumb {
  width: 52px; height: 52px; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: repeating-conic-gradient(var(--checker) 0 25%, transparent 0 50%) 0 0 / 12px 12px, var(--surface-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn .3s; }
.thumb-ph { color: var(--text-3); width: 20px; height: 20px; }
.file-row.is-working .thumb-ph { color: var(--accent-2); animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } }
.file-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-name .path { color: var(--text-3); font-weight: 500; }
.file-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--text-3); align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--border); font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip-fmt { color: var(--accent-2); }
.chip-gps { color: var(--success); background: var(--success-soft); border-color: transparent; }
.chip-warn { color: var(--warning); }
.file-sizes { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); white-space: nowrap; text-align: right; }
.file-sizes .arrow { color: var(--text-3); margin: 0 6px; }
.file-sizes b { color: var(--text); font-weight: 500; }
.file-saving { text-align: center; }
.saving-pill {
  display: inline-block; min-width: 64px; padding: 5px 10px; border-radius: 99px;
  font-weight: 700; font-size: 13px; font-family: var(--font-display);
  background: var(--success-soft); color: var(--success);
}
.saving-pill.is-neutral { background: var(--surface-2); color: var(--text-2); }
.saving-pill.is-error { background: var(--danger-soft); color: var(--danger); }
.status-text { font-size: 12.5px; color: var(--text-3); }
.file-row.is-error .file-meta { color: var(--danger); }
.file-actions { display: flex; gap: 6px; }
.file-actions .icon-btn { width: 34px; height: 34px; }
.file-actions .icon-btn svg { width: 16px; height: 16px; }
.row-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; opacity: 0; }
.file-row.is-working .row-progress {
  opacity: 1;
  background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), transparent) 0 0 / 50% 100% no-repeat;
  animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* ---------- Ustawienia ---------- */
.settings { position: sticky; top: 80px; padding: 18px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: thin; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.settings-body { display: flex; flex-direction: column; gap: 18px; }
.settings-toggle { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; padding: 0; border: 0; background: none; text-align: left; cursor: default; }
.settings-summary, .settings-toggle .chev { display: none; }
.panel-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 16px; }
.panel-head h3 svg { color: var(--accent-2); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field-help { margin: 0; font-size: 12px; color: var(--text-3); line-height: 1.45; }
.tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 99px; background: var(--accent-grad); color: #fff; margin-right: auto; }
.badge-val { font-family: var(--font-mono); font-size: 12.5px; padding: 2px 9px; border-radius: 8px; background: var(--accent-soft); color: var(--text); }

.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.presets button {
  height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: 12.5px; font-weight: 500; cursor: pointer; text-align: left; padding: 0 10px;
  transition: border-color .2s, background .2s;
}
.presets button:hover { border-color: var(--border-strong); background: var(--surface-3); }
.presets button.active { border-color: var(--accent-1); background: var(--accent-soft); }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); }
.segmented.seg-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
.segmented button {
  height: 32px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--text-2); transition: background .2s, color .2s; white-space: nowrap;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-checked="true"] { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .2), inset 0 0 0 1px var(--border); }
.segmented button:disabled { opacity: .35; cursor: not-allowed; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--surface-3); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--accent-1); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: transform .15s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--accent-1); }
.range-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); }

.input-suffix { position: relative; flex: 1; }
.input-suffix input { padding-right: 64px !important; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-3); pointer-events: none; }
.sub-fields { display: flex; gap: 8px; }

.switch { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; cursor: pointer; user-select: none; }
.switch small { color: var(--text-3); font-weight: 400; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; flex: none; width: 36px; height: 21px; border-radius: 99px; background: var(--surface-3); transition: background .2s; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + .switch-ui { background: var(--accent-1); }
.switch input:checked + .switch-ui::after { transform: translateX(15px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Collapsible settings groups */
.group { border-top: 1px solid var(--border); padding-top: 14px; }
.group summary {
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--text); list-style: none;
  display: flex; align-items: center; gap: 9px; user-select: none;
}
.group summary::-webkit-details-marker { display: none; }
.group summary svg { color: var(--accent-2); width: 17px; height: 17px; }
.group summary::after { content: '›'; margin-left: auto; font-size: 20px; line-height: 1; color: var(--text-3); transition: transform .2s; }
.group[open] summary::after { transform: rotate(90deg); }
.group-badge { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.group-body { display: flex; flex-direction: column; gap: 14px; }
.group[open] > .group-body { margin-top: 14px; animation: fadeIn .25s; }

/* Watermark position picker */
.pos-row { display: flex; gap: 10px; align-items: stretch; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 30px); grid-auto-rows: 30px; gap: 4px; padding: 4px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); }
.pos-grid button { border: 0; border-radius: 7px; background: transparent; cursor: pointer; position: relative; }
.pos-grid button::after { content: ''; position: absolute; inset: 50% auto auto 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--text-3); transition: transform .15s, background .15s; }
.pos-grid button:hover::after { background: var(--text); }
.pos-grid button[aria-checked="true"] { background: var(--surface-solid); box-shadow: inset 0 0 0 1px var(--border-strong); }
.pos-grid button[aria-checked="true"]::after { background: var(--accent-2); transform: scale(1.3); }
.pos-grid.pos-tile { grid-template-columns: 1fr; grid-auto-rows: 1fr; flex: 1; }
.pos-grid.pos-tile button { font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 0 10px; }
.pos-grid.pos-tile button::after { display: none; }
.pos-grid.pos-tile button[aria-checked="true"] { color: var(--text); }

.logo-drop {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
  border: 1.5px dashed var(--border-strong); background: var(--surface-2); font-size: 12.5px; color: var(--text-2);
  transition: border-color .2s, background .2s;
}
.logo-drop.is-over { border-color: var(--accent-2); background: var(--accent-soft); }
.logo-drop svg { color: var(--text-3); width: 20px; height: 20px; }
.logo-drop #wmLogoName { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings input[type="text"]#wmText { width: 100%; }

.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type="color"] { width: 42px; height: 34px; padding: 2px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }

.engines { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); font-size: 11.5px; }
.engines-title { color: var(--text-3); font-weight: 600; margin-right: 2px; }
.engine { padding: 2px 8px; border-radius: 99px; border: 1px solid var(--border); color: var(--text-3); }
.engine::before { content: '○ '; }
.engine.is-ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.engine.is-ok::before { content: '● '; }
.engine.is-fallback { color: var(--warning); }
.engine.is-fallback::before { content: '◐ '; }

/* ---------- Sekcje ---------- */
.section { padding: 70px 0 10px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
:root[data-theme="light"] .eyebrow, :root[data-theme="light"] .p-cta { color: #5b3df5; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.12; margin: 0 0 12px; }
.section-head p { color: var(--text-2); margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
  padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s var(--ease), border-color .25s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.f-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 14px; }
.f-icon svg { width: 21px; height: 21px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; font-family: var(--font-display); }
.feature p { margin: 0; font-size: 13.5px; color: var(--text-2); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-grad); color: #fff; font-weight: 800; font-family: var(--font-display); margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 17px; }
.step p { margin: 0; color: var(--text-2); font-size: 14px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.compare-table th, .compare-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
.compare-table .col-us { background: var(--accent-soft); }
.compare-table th.col-us { color: var(--text); }
.yes { color: var(--success); font-weight: 600; }
.yes::before { content: '✓ '; }
.no { color: var(--text-3); }
.no::before { content: '✕ '; }
.maybe { color: var(--text-3); }
.maybe::before { content: '~ '; }

.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.partner {
  display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius-lg); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.partner:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent-1) 50%, transparent); box-shadow: var(--shadow); }
.p-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--accent-1); margin-bottom: 14px; }
.p-icon svg { width: 21px; height: 21px; }
.partner h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 16px; }
.partner p { margin: 0 0 16px; color: var(--text-2); font-size: 13.5px; flex: 1; }
.p-cta { font-weight: 600; font-size: 13.5px; color: var(--accent-2); }
.disclosure { text-align: center; font-size: 12px; color: var(--text-3); margin: 18px auto 0; max-width: 640px; }

.support-card {
  display: flex; align-items: center; gap: 24px; padding: 30px 34px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(255, 221, 0, .14), transparent 60%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--coffee) 30%, var(--border));
}
.support-emoji { font-size: 46px; }
.support-text { flex: 1; }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.support-text h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; }
.support-text p { margin: 0; color: var(--text-2); }

.faq { max-width: 820px; }
.faq details { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--text-2); }

.footer { margin-top: 70px; border-top: 1px solid var(--border); padding: 30px 0 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.footer-inner p { margin: 0; }
.footer .brand { font-size: 16px; margin-bottom: 6px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.footer-langs a { color: var(--text-3); text-decoration: none; font-size: 12.5px; }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--text); }

.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.footer-links a { color: var(--text-2); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Hero extras ---------- */
.lifetime { margin: 18px 0 0; font-size: 13.5px; color: var(--text-2); animation: fadeIn .4s; }
.lifetime b { color: var(--success); }
.dz-sample { font-size: inherit; color: var(--accent-2); padding: 0; font-weight: 600; }
.dz-sample:hover { color: var(--text); }

/* ---------- Confetti ---------- */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 300; }

/* ---------- Legal pages ---------- */
.legal { padding: 36px 0 20px; max-width: 860px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; font-size: 14px; margin-bottom: 14px; }
.back-link:hover { color: var(--text); }
.legal-card { padding: 34px 38px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.legal-card h1 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; margin: 0 0 6px; color: var(--text); }
.legal-card h2 { font-family: var(--font-display); font-size: 19px; margin: 28px 0 10px; color: var(--text); }
.legal-card a { color: var(--accent-2); }
.legal-card table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 12px; }
.legal-card th, .legal-card td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-card th { color: var(--text); }

/* ---------- Language menu & suggestion bar ---------- */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; width: auto; padding: 0 10px; gap: 6px; display: inline-flex; font-size: 12.5px; font-weight: 700; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow);
  animation: pop .18s var(--ease);
}
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--text-2); }
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a[aria-current] { color: var(--text); font-weight: 600; background: var(--accent-soft); }

.langbar {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 16px; font-size: 13.5px; background: var(--accent-soft); border-bottom: 1px solid var(--border);
}
.langbar .btn { height: 30px; font-size: 12.5px; }

/* ---------- Landing page "about" ---------- */
.about { padding-top: 30px; }
.about-card {
  max-width: 860px; margin: 0 auto; padding: 30px 34px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.about-card h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; }
.prose { color: var(--text-2); font-size: 15px; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }
.prose ol, .prose ul { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose b, .prose strong { color: var(--text); }

/* ---------- All tools grid ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tool-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: 14px;
  transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.tool-card:hover { border-color: color-mix(in srgb, var(--accent-1) 50%, transparent); transform: translateY(-2px); }
.tool-card.is-active { border-color: var(--accent-1); background: var(--accent-soft); }
.tc-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); }
.tc-icon svg { width: 18px; height: 18px; }

/* ---------- Modal porównania ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, .72); backdrop-filter: blur(6px); animation: fadeIn .2s; }
.modal-card {
  position: relative; width: min(1200px, 100%); height: min(860px, 100%); display: flex; flex-direction: column;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); animation: pop .25s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(8px); } }
.modal-head { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--border); }
.modal-title { flex: 1; min-width: 0; }
.modal-title h3 { margin: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-title span { font-size: 12.5px; }
.zoom-group { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.zoom-group button, .variant-tabs button { height: 30px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.zoom-group button.active, .variant-tabs button.active { background: var(--surface-solid); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.cmp-viewport {
  flex: 1; overflow: auto; position: relative; display: grid;
  background: repeating-conic-gradient(var(--checker) 0 25%, transparent 0 50%) 0 0 / 20px 20px, var(--bg-2);
}
.cmp-stage { position: relative; margin: auto; user-select: none; touch-action: none; cursor: ew-resize; line-height: 0; }
.cmp-stage img { width: 100%; height: 100%; object-fit: contain; }
.cmp-stage #cmpAfter { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.cmp-viewport.is-pixel img { image-rendering: pixelated; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.cmp-handle span {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%;
  background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
.cmp-handle span::before, .cmp-handle span::after { content: ''; position: absolute; top: 50%; border: 6px solid transparent; transform: translateY(-50%); }
.cmp-handle span::before { left: 6px; border-right-color: #333; }
.cmp-handle span::after { right: 6px; border-left-color: #333; }
.cmp-label {
  line-height: 1.4; position: absolute; top: 12px; padding: 5px 10px; border-radius: 8px;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; backdrop-filter: blur(4px);
}
.cmp-label-l { left: 12px; }
.cmp-label-r { right: 12px; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--border); font-size: 12.5px; flex-wrap: wrap; }
.variant-tabs { display: flex; gap: 4px; }

/* ---------- Toasty ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: min(420px, calc(100vw - 40px));
  padding: 12px 14px 12px 16px; border-radius: 14px; font-size: 13.5px;
  background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  animation: toastIn .35s var(--ease);
}
.toast.is-leaving { animation: toastOut .25s var(--ease) forwards; }
.toast .toast-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-2); }
.toast.is-success .toast-icon { background: var(--success-soft); color: var(--success); }
.toast.is-error .toast-icon { background: var(--danger-soft); color: var(--danger); }
.toast.is-coffee .toast-icon { background: rgba(255, 221, 0, .18); color: var(--coffee); }
.toast .toast-body { flex: 1; }
.toast .toast-body b { display: block; }
.toast .btn { height: 32px; padding: 0 12px; font-size: 12.5px; }
.toast-close { background: none; border: 0; cursor: pointer; color: var(--text-3); padding: 4px; display: grid; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ---------- Responsywność ---------- */
@media (max-width: 1080px) {
  .tool-grid { grid-template-columns: 1fr; }
  .settings { position: static; max-height: none; order: -1; padding: 14px 18px; }
  .settings-toggle { cursor: pointer; }
  .settings-summary { display: block; flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .settings-toggle .chev { display: block; font-size: 22px; line-height: 1; color: var(--text-3); transition: transform .2s; }
  .settings.is-open .chev { transform: rotate(90deg); }
  .settings:not(.is-open) .settings-body, .settings:not(.is-open) #resetSettings { display: none; }
  .features, .partners { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .mode-tag { display: none; }
  .mode-switch button { font-size: 14px; padding: 0 8px; }
  .legal-card { padding: 24px 20px; }
  .about-card { padding: 24px 20px; }
  .lang-menu summary span { display: none; }
  .nav { display: none; }
  .btn-coffee.btn-sm span { display: none; }
  .btn-coffee.btn-sm { width: 38px; padding: 0; }
  .hero { padding: 40px 0 24px; }
  .hero h1 { font-size: 32px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-hero { grid-column: 1 / -1; }
  .stat { padding: 12px; }
  .stat-label { font-size: 10.5px; }
  .stat-mono { font-size: 12.5px; white-space: normal; }
  .dropzone.is-compact p { display: none; }
  .dropzone.is-compact .dz-inner { padding: 16px; }
  .dropzone.is-compact .dz-actions { flex-wrap: nowrap; width: 100%; }
  .dropzone.is-compact .dz-actions .btn { flex: 1; height: 38px; padding: 0 10px; font-size: 13px; }
  .dropzone.is-compact h2 { align-self: center; }
  .sort-select { flex: 1 1 160px; }
  .actions-bar #clearAll { flex: none; }
  .sort-select select { width: 100%; }
  .toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .toast { max-width: none; }
  .features, .partners, .steps { grid-template-columns: 1fr; }
  .file-row { grid-template-columns: 44px minmax(0, 1fr) auto auto; grid-template-areas: 't i i s' 'z z a a'; gap: 8px 10px; }
  .thumb { width: 44px; height: 44px; grid-area: t; }
  .file-info { grid-area: i; }
  .file-saving { grid-area: s; align-self: start; }
  .saving-pill { min-width: 0; }
  .file-sizes { grid-area: z; text-align: left; font-size: 12px; }
  .file-sizes br { display: none; }
  .file-sizes .muted { margin-left: 6px; }
  .file-actions { grid-area: a; justify-content: flex-end; }
  .file-actions .icon-btn { width: 32px; height: 32px; }
  .dropzone.is-compact .dz-inner { grid-template-columns: auto 1fr; }
  .dropzone.is-compact .dz-actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; margin-top: 10px; }
  .support-card { flex-direction: column; text-align: center; padding: 26px 20px; }
  .modal { padding: 0; }
  .modal-card { height: 100%; border-radius: 0; }
  .modal-head { flex-wrap: wrap; }
  .zoom-group { order: 3; width: 100%; justify-content: center; }
  .actions-bar .btn { flex: 1 1 auto; }
  .actions-bar .spacer { display: none; }
}

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