/* ==========================================================================
   nesnalica.com — Image Compressor
   All design tokens live in :root. To match the main site exactly, copy the
   values (colors, font stack, radii) from the main stylesheet into here.
   ========================================================================== */

:root {
  /* Palette */
  --bg: #0d0916;
  --bg-2: #140e22;
  --surface: rgba(30, 21, 50, 0.72);
  --surface-solid: #1d1530;
  --surface-2: #261c3d;
  --line: rgba(196, 181, 253, 0.14);
  --line-strong: rgba(196, 181, 253, 0.28);
  --text: #f4f1fb;
  --muted: #a89fc0;
  --faint: #6f6788;
  --accent: #8b5cf6;          /* site theme color */
  --accent-hi: #a78bfa;
  --accent-lo: #6d28d9;
  --accent-soft: rgba(139, 92, 246, 0.16);
  --good: #5eead4;
  --warn: #fbbf24;
  --danger: #f87171;

  /* Type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
  --glow: 0 10px 34px -8px rgba(139, 92, 246, 0.6);

  /* Rhythm */
  --gap: clamp(16px, 2.4vw, 24px);
  --page: min(1180px, 100% - 2 * clamp(16px, 4vw, 40px));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 85% -10%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(50vmax 40vmax at -10% 110%, rgba(109, 40, 217, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

a { color: var(--accent-hi); }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  width: var(--page);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { color: var(--accent-hi); }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:hover { color: var(--text); background: var(--accent-soft); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-nav a.nav-button {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
}
.site-nav a.nav-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow);
}

main { flex: 1; width: 100%; }

/* ---------- Intro ---------- */

.intro {
  width: var(--page);
  margin: clamp(16px, 5vw, 56px) auto 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.lede {
  margin: 14px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 8px 14px 8px 10px;
  border-radius: var(--r-pill);
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.22);
  color: #c7f5ec;
  font-size: 0.9rem;
  line-height: 1.35;
}
.privacy-note svg { width: 20px; height: 20px; flex: none; color: var(--good); }

/* ---------- Marquee band (echoes the main site's section bands) ---------- */

.marquee {
  margin: clamp(28px, 5vw, 48px) 0 clamp(24px, 4vw, 40px);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.04));
  transform: rotate(-1.2deg) scale(1.02);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span {
  padding: 10px 22px;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(196, 181, 253, 0.55);
}
.marquee span:nth-child(odd) { color: var(--accent-hi); -webkit-text-stroke: 0; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Alerts ---------- */

.alert {
  width: var(--page);
  margin: 0 auto 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 18px;
  border-radius: var(--r-md);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  animation: rise 0.3s var(--ease);
}
.alert.is-info { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.3); }
.alert-body { flex: 1; display: grid; gap: 2px; }
.alert-body strong { color: #fecaca; }
.alert.is-info .alert-body strong { color: #fde68a; }
.alert-body span { color: var(--muted); font-size: 0.94rem; }

.icon-btn {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Drop zone ---------- */

.dropzone-wrap { width: var(--page); margin: 0 auto; }

.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: clamp(48px, 10vw, 104px) 24px;
  border-radius: var(--r-lg);
  border: 2px dashed var(--line-strong);
  background: var(--surface);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }
.dropzone.is-dragging {
  border-style: solid;
  border-color: var(--accent-hi);
  background: rgba(139, 92, 246, 0.14);
  transform: scale(1.01);
  box-shadow: 0 0 0 6px var(--accent-soft), var(--glow);
}

.dz-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 22px;
  background: var(--accent-soft);
  color: var(--accent-hi);
  transition: transform 0.3s var(--ease);
}
.dz-icon svg { width: 42px; height: 42px; }
.dropzone:hover .dz-icon,
.dropzone.is-dragging .dz-icon { transform: translateY(-4px) rotate(-4deg); }

.dz-title { margin: 0; font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 750; letter-spacing: -0.02em; }
.dz-active { display: none; }
.dropzone.is-dragging .dz-default { display: none; }
.dropzone.is-dragging .dz-active { display: inline; }

.dz-sub { margin: 0; color: var(--muted); }
.link-like { color: var(--accent-hi); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dz-formats { margin: 14px 0 0; color: var(--faint); font-size: 0.85rem; }

.dropzone.is-loading { pointer-events: none; }
.dropzone.is-loading .dz-icon { animation: pulse 1s ease-in-out infinite; }

/* ---------- Editor layout ---------- */

.editor {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--gap);
  align-items: start;
  animation: rise 0.4s var(--ease);
}

.panel {
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

/* ---------- Preview ---------- */

.preview-panel { padding: clamp(16px, 2.2vw, 24px); min-width: 0; }

.file-name-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.file-name {
  margin: 0;
  min-width: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 10px 0 18px;
}
.meta-list div { display: flex; gap: 8px; align-items: baseline; }
.meta-list dt { color: var(--faint); font-size: 0.85rem; }
.meta-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.stage {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: clamp(10px, 2vw, 20px);
  border-radius: var(--r-md);
  background-color: #17112a;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.035) 75%),
    linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.035) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
  overflow: hidden;
}

/* width/aspect-ratio are set from JS so small images are never upscaled */
.compare {
  --pos: 50%;
  position: relative;
  max-width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.8);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.compare img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  -webkit-user-drag: none;
}
.compare .img-original {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: var(--glow);
}
.compare-handle span::before,
.compare-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  transform: translateY(-50%);
}
.compare-handle span::before { left: 4px; border-right-color: #fff; }
.compare-handle span::after { right: 4px; border-left-color: #fff; }

.compare-label {
  position: absolute;
  top: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(13, 9, 22, 0.7);
  backdrop-filter: blur(6px);
  font-size: 0.78rem;
  font-weight: 600;
  pointer-events: none;
}
.compare-label-left { left: 10px; }
.compare-label-right { right: 10px; }

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100vh; }
.compare-range::-moz-range-thumb { width: 44px; height: 100vh; border: 0; }
.compare:has(.compare-range:focus-visible) .compare-handle span { outline: 3px solid var(--accent-hi); outline-offset: 3px; }

.busy {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(13, 9, 22, 0.8);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  white-space: nowrap;
  pointer-events: none;
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--accent-hi);
  animation: spin 0.7s linear infinite;
}

.stage-hint { margin: 12px 0 0; color: var(--faint); font-size: 0.85rem; text-align: center; }

/* ---------- Controls ---------- */

.controls {
  position: sticky;
  top: 16px;
  padding: 22px;
  display: grid;
  gap: 22px;
}

.group { margin: 0; padding: 0; border: 0; min-width: 0; }
.group legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.group legend + * { clear: both; }
.group + .group { padding-top: 22px; border-top: 1px solid var(--line); }

.help { margin: 10px 0 0; color: var(--faint); font-size: 0.84rem; line-height: 1.45; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.chip:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); }
.chip.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
.chip:disabled { opacity: 0.35; cursor: not-allowed; }

.dims {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 8px;
  margin-top: 16px;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field span { color: var(--muted); font-size: 0.84rem; }
.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.is-invalid { border-color: var(--danger); }

.times {
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 2px;
  color: var(--faint);
  font-size: 1.1rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.92rem;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

.segmented {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  padding: 4px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block;
  padding: 8px 6px;
  border-radius: var(--r-sm);
  text-align: center;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.segmented input:disabled + span { opacity: 0.35; cursor: not-allowed; }

.quality { margin-top: 18px; }
.quality-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.quality-head label { font-size: 0.92rem; color: var(--muted); }
.quality-head output { font-weight: 750; font-variant-numeric: tabular-nums; }
.quality-scale { display: flex; justify-content: space-between; margin-top: 4px; color: var(--faint); font-size: 0.78rem; }

input[type="range"]#in-quality {
  --fill: 80%;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
#in-quality::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) var(--fill), rgba(255, 255, 255, 0.12) var(--fill));
}
#in-quality::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
#in-quality::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
#in-quality::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 4px var(--accent-soft), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s;
}
#in-quality::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 4px var(--accent-soft), 0 2px 8px rgba(0, 0, 0, 0.4);
}
#in-quality:active::-webkit-slider-thumb { transform: scale(1.15); }

/* ---------- Result ---------- */

.result {
  padding: 18px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}
.result-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.result-title { font-weight: 700; }

.delta {
  font-family: var(--font-num);
  font-size: 1.9rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--good);
  transition: color 0.3s;
}
.result.is-bigger .delta { color: var(--warn); }
.result.is-pending .delta { opacity: 0.5; }

.bars {
  display: grid;
  grid-template-columns: max-content minmax(40px, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}
.bar-row { display: contents; }
.bar-label { color: var(--muted); }
.bar-value { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: rgba(196, 181, 253, 0.45);
  transition: width 0.5s var(--ease);
}
.bar-out span { background: linear-gradient(90deg, var(--good), #2dd4bf); }
.result.is-bigger .bar-out span { background: var(--warn); }

.result-meta { margin: 14px 0 0; color: var(--muted); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.result-note { margin: 8px 0 0; color: #fde68a; font-size: 0.84rem; line-height: 1.45; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent) 50%, var(--accent-lo));
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(139, 92, 246, 0.75); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[aria-disabled="true"] { opacity: 0.5; pointer-events: none; box-shadow: none; }

.btn-download { padding: 16px 20px; font-size: 1.05rem; }
.download-name {
  margin: -12px 0 0;
  text-align: center;
  color: var(--faint);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.btn-small { padding: 6px 12px 6px 10px; font-size: 0.85rem; font-weight: 600; flex: none; }
.btn-small svg { width: 16px; height: 16px; }
.btn-block { width: 100%; margin-top: -8px; }

/* ---------- Footer ---------- */

.site-footer {
  width: var(--page);
  margin: clamp(48px, 8vw, 96px) auto 0;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  color: var(--faint);
  font-size: 0.85rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
}

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.5; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .editor { grid-template-columns: 1fr; }
  .controls { position: static; }
}

@media (max-width: 560px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 8px; }
  .site-nav { justify-content: flex-start; margin-left: -14px; }
  .privacy-note { border-radius: var(--r-md); align-items: flex-start; }
  .stage { min-height: 180px; }
  .controls { padding: 18px; }
  .delta { font-size: 1.6rem; }
}
