:root {
  --font-sans: "Syne", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;

  --accent: #38bdf8;
  --accent-hot: #22d3ee;
  --accent-deep: #0284c7;
  --ink: #e8f4ff;
  --ink-soft: #9fb6d1;
  --muted: #84a0bc;
  --line: rgba(125, 211, 252, 0.14);
  --glass: rgba(8, 18, 32, 0.55);
  --header: rgba(6, 14, 24, 0.48);

  --editor-bg: #070e18;
  --editor-bar: #0b1422;
  --editor-text: #dceaf8;
  --editor-caret: #67e8f9;
  --editor-placeholder: #6f89a8;

  --preview-bar: rgba(244, 249, 255, 0.92);
  --preview-ink: #1e3a5f;

  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --header-h: 4rem;
  --panel-bar-h: 2.85rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

html.app-root,
body.app-page {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: #040a12;
  display: flex;
  flex-direction: column;
  position: relative;
}

body.app-page {
  height: 100dvh;
  max-height: 100dvh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
textarea {
  font: inherit;
}

.sr-only {
  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: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--accent-deep);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-3);
}

/* ——— Atmosphere ——— */
.ambiance {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #040a12;
}

.ambiance-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 12% -10%, rgba(14, 116, 144, 0.45), transparent 55%),
    radial-gradient(80% 60% at 88% 110%, rgba(37, 99, 235, 0.35), transparent 50%),
    linear-gradient(165deg, #07111d 0%, #050d18 48%, #081628 100%);
}

.ambiance-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: glow-drift 20s var(--ease) infinite alternate;
}

.ambiance-glow-a {
  width: min(62vw, 46rem);
  height: min(62vw, 46rem);
  left: -16%;
  top: -22%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.38), transparent 68%);
}

.ambiance-glow-b {
  width: min(54vw, 40rem);
  height: min(54vw, 40rem);
  right: -14%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.42), transparent 70%);
  animation-delay: -7s;
  animation-duration: 24s;
}

.ambiance-glow-c {
  width: min(34vw, 22rem);
  height: min(34vw, 22rem);
  left: 48%;
  top: 42%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.16), transparent 70%);
  animation-delay: -12s;
  animation-duration: 28s;
}

.ambiance-beam {
  position: absolute;
  inset: -20% -10%;
  background: linear-gradient(
    118deg,
    transparent 36%,
    rgba(103, 232, 249, 0.06) 48%,
    transparent 58%
  );
  transform: rotate(-8deg);
  animation: beam-sweep 14s var(--ease) infinite alternate;
}

.ambiance-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 42%, #000 15%, transparent 72%);
  opacity: 0.55;
}

.ambiance-noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}

.ambiance-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 40%, rgba(2, 6, 14, 0.72) 100%);
}

.site-header,
.workspace {
  position: relative;
  z-index: 1;
}

.app-chrome {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  transform: translateY(calc(-1 * var(--chrome-collapse, 0px)));
  margin-bottom: calc(-1 * var(--chrome-collapse, 0px));
  will-change: transform, margin-bottom;
}

/* FAQ panel lives inside .app-chrome; raise the whole chrome above the shutter strip */
body:has(.tool-faq[open]) .app-chrome {
  z-index: 8;
}

body.is-chrome-max .app-chrome {
  pointer-events: none;
  visibility: hidden;
}

.chrome-shutter {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  width: 100%;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  cursor: row-resize;
  touch-action: none;
  appearance: none;
  -webkit-appearance: none;
}

.chrome-shutter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(125, 211, 252, 0.38);
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease), height 0.15s var(--ease);
}

.chrome-shutter-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.15rem;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #67e8f9 45%, #a5f3fc 55%, #38bdf8);
  box-shadow:
    0 0 0 1px rgba(165, 243, 252, 0.55),
    0 0 10px rgba(34, 211, 238, 0.55),
    0 0 22px rgba(56, 189, 248, 0.35);
  animation: shutter-beckon 1.7s var(--ease) infinite;
  transition: width 0.15s var(--ease), height 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.chrome-shutter-grip::before,
.chrome-shutter-grip::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid rgba(224, 242, 254, 0.95);
  border-bottom: 2px solid rgba(224, 242, 254, 0.95);
  opacity: 0.85;
  animation: shutter-chevrons 1.7s var(--ease) infinite;
}

.chrome-shutter-grip::before {
  --chev-rot: -135deg;
  --chev-shift: -1px;
  top: -0.58rem;
  transform: translateX(-50%) rotate(-135deg);
}

.chrome-shutter-grip::after {
  --chev-rot: 45deg;
  --chev-shift: 1px;
  bottom: -0.58rem;
  transform: translateX(-50%) rotate(45deg);
  animation-delay: 0.15s;
}

.chrome-shutter:hover::before,
.chrome-shutter:focus-visible::before,
.chrome-shutter.is-active::before,
body.is-chrome-resizing .chrome-shutter::before {
  height: 2px;
  background: rgba(103, 232, 249, 0.85);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
}

.chrome-shutter:hover .chrome-shutter-grip,
.chrome-shutter:focus-visible .chrome-shutter-grip,
.chrome-shutter.is-active .chrome-shutter-grip,
body.is-chrome-resizing .chrome-shutter-grip {
  width: 3.6rem;
  height: 6px;
  animation: none;
  background: #ecfeff;
  box-shadow:
    0 0 0 1px rgba(165, 243, 252, 0.9),
    0 0 14px rgba(34, 211, 238, 0.75),
    0 0 28px rgba(56, 189, 248, 0.5);
}

.chrome-shutter:hover .chrome-shutter-grip::before,
.chrome-shutter:hover .chrome-shutter-grip::after,
.chrome-shutter:focus-visible .chrome-shutter-grip::before,
.chrome-shutter:focus-visible .chrome-shutter-grip::after,
.chrome-shutter.is-active .chrome-shutter-grip::before,
.chrome-shutter.is-active .chrome-shutter-grip::after,
body.is-chrome-resizing .chrome-shutter-grip::before,
body.is-chrome-resizing .chrome-shutter-grip::after {
  animation: none;
  opacity: 1;
  border-color: #f0f9ff;
}

.chrome-shutter:focus-visible {
  outline: none;
}

body.is-chrome-resizing {
  cursor: row-resize;
  user-select: none;
}

body.is-chrome-resizing iframe,
body.is-chrome-resizing .preview-stage {
  pointer-events: none;
}

body.is-chrome-max .workspace {
  margin-top: 0;
}

body.is-chrome-max .chrome-shutter {
  margin-top: 0.1rem;
}

@keyframes shutter-beckon {
  0%,
  100% {
    transform: translate(-50%, -50%) scaleX(1);
  }
  50% {
    transform: translate(-50%, -50%) scaleX(1.12);
  }
}

@keyframes shutter-chevrons {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(-50%) translateY(0) rotate(var(--chev-rot, 45deg));
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(var(--chev-shift, 0px)) rotate(var(--chev-rot, 45deg));
  }
}

/* ——— Header ——— */
.site-header {
  height: var(--header-h);
  flex: 0 0 auto;
  padding: 0 clamp(1rem, 2.5vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: 100%;
  min-width: 0;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.62), rgba(6, 14, 24, 0.38));
  backdrop-filter: blur(20px) saturate(1.25);
  border-bottom: 1px solid rgba(125, 211, 252, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  flex-shrink: 0;
  filter: drop-shadow(0 8px 22px rgba(34, 211, 238, 0.38));
  animation: brand-in 0.8s var(--ease) both;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-size: clamp(1.38rem, 2.5vw, 1.62rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #f5fbff;
  -webkit-text-fill-color: #f5fbff;
  animation: brand-in 0.75s var(--ease) 0.05s both;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-name {
    background: linear-gradient(118deg, #ffffff 8%, #e0f2fe 42%, #7dd3fc 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.brand-tagline {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6f8fad;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: brand-in 0.75s var(--ease) 0.12s both;
}

.brand-tagline-seo {
  max-width: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.25;
  color: #9bb6d0;
  white-space: nowrap;
}

.app-pitch {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.28rem clamp(1rem, 2.5vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid rgba(125, 211, 252, 0.07);
  background: rgba(5, 12, 22, 0.22);
  color: #8eabca;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.app-pitch-lead {
  min-width: 0;
  color: #8eabca;
}

.sample-chip {
  margin: 0;
  margin-left: 0.45rem;
  padding: 0.18rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.1);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.22);
  color: #9fd8f5;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.sample-chip:hover {
  color: #f0f9ff;
  background: rgba(125, 211, 252, 0.16);
}

.sample-chip[hidden] {
  display: none !important;
}

.noscript-note {
  position: relative;
  z-index: 2;
  margin: 0.75rem clamp(1rem, 2.5vw, 1.75rem);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: rgba(8, 18, 32, 0.9);
  color: #b6d4ef;
  font-size: 0.9rem;
  line-height: 1.55;
}

.noscript-note p {
  margin: 0;
}

.noscript-note p + p {
  margin-top: 0.65rem;
}

.noscript-note a {
  color: #7dd3fc;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 0 0 auto;
}

.header-sep {
  width: 1px;
  height: 1rem;
  background: rgba(148, 197, 232, 0.22);
  flex-shrink: 0;
}

.github-link {
  position: relative;
  z-index: 0;
  isolation: isolate;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.25rem;
  padding: 0 0.95rem 0 0.75rem;
  border-radius: 999px;
  color: #04111c;
  background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 48%, #38bdf8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 0 0 1px rgba(186, 230, 253, 0.45),
    0 8px 22px -10px rgba(14, 165, 233, 0.9);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  transition:
    color 0.18s var(--ease),
    background 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.github-link::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(56, 189, 248, 0.4);
  filter: blur(10px);
  opacity: 0.7;
  pointer-events: none;
}

.github-link svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.github-link:hover {
  color: #020617;
  background: linear-gradient(135deg, #f8fafc 0%, #bae6fd 42%, #38bdf8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 0 0 1px rgba(224, 242, 254, 0.55),
    0 10px 26px -8px rgba(34, 211, 238, 0.95);
  transform: translateY(-1px);
}

.github-link:hover::before {
  opacity: 0.9;
  filter: blur(12px);
}

.github-link:focus-visible {
  outline: 2px solid #a5f3fc;
  outline-offset: 2px;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.legal-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  flex-wrap: nowrap;
}

.legal-nav a {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: #7ea0c2;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  transition:
    color 0.18s var(--ease),
    background 0.18s var(--ease);
}

.legal-nav a:hover {
  color: #e8f4ff;
  background: rgba(148, 197, 232, 0.08);
}

.legal-nav a[aria-current="page"] {
  color: #ecfeff;
  background: rgba(34, 211, 238, 0.14);
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.28);
}

.legal-nav a:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
}

.mobile-legal {
  display: none;
}

.mobile-legal a {
  color: #8eb4d4;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.mobile-legal a:hover {
  color: #e8f4ff;
}

.mobile-legal a:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
  border-radius: 4px;
}

.mobile-legal-sep {
  color: #5f7f9c;
  font-size: 0.72rem;
  user-select: none;
}

.article-breadcrumbs a:focus-visible,
.article-cta a:focus-visible,
.preview-empty-links a:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ——— Legal pages ——— */
body.legal-page {
  min-height: 100dvh;
  height: auto;
  max-height: none;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: auto;
}

.legal-shell {
  position: relative;
  z-index: 1;
  width: min(52rem, calc(100% - 2rem));
  max-width: 100%;
  margin: 1.25rem auto 2rem;
  min-width: 0;
  box-sizing: border-box;
}

.legal-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: linear-gradient(165deg, rgba(12, 24, 40, 0.82), rgba(6, 14, 24, 0.9));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 80px -40px rgba(0, 0, 0, 0.85),
    0 0 80px -48px rgba(34, 211, 238, 0.3);
  backdrop-filter: blur(16px);
  animation: workspace-in 0.7s var(--ease) both;
}

.legal-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.legal-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: #f5fbff;
}

.legal-lead {
  margin: 0 0 1rem;
  max-width: 42rem;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.legal-updated {
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.legal-grid {
  display: grid;
  gap: 1.85rem;
  max-width: 100%;
  min-width: 0;
}

.legal-grid section {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  max-width: 100%;
  min-width: 0;
}

.legal-grid h2 {
  margin: 0 0 0.7rem;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8f4ff;
}

.legal-grid h2::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  border-radius: 2px;
  background: linear-gradient(135deg, #67e8f9, #2563eb);
  vertical-align: 0.1em;
}

.legal-grid p,
.legal-grid li {
  margin: 0;
  max-width: 42rem;
  color: #a8c2da;
  font-size: 1.02rem;
  line-height: 1.85;
}

.legal-grid p + p {
  margin-top: 0.95rem;
}

.legal-grid ul,
.legal-grid ol {
  max-width: 42rem;
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.legal-grid li + li {
  margin-top: 0.55rem;
}

.legal-grid a {
  color: #7dd3fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
}

.legal-grid a:hover {
  color: #ecfeff;
  border-bottom-color: rgba(236, 254, 255, 0.55);
}

.legal-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 1rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.legal-footer a {
  color: #b6d4ef;
  text-decoration: none;
}

.legal-footer a:hover {
  color: #fff;
}

.legal-footer-sep {
  opacity: 0.5;
}

.legal-card-404 {
  text-align: left;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
}

.legal-actions .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: 0;
}

.legal-actions .btn-ghost {
  color: #b6d4ef;
}

.legal-grid a.btn-accent,
.legal-actions a.btn-accent,
.legal-grid a.btn-accent:visited,
.legal-actions a.btn-accent:visited {
  color: #031018;
  border-bottom: 0;
}

.legal-grid a.btn-accent:hover,
.legal-actions a.btn-accent:hover {
  color: #02080f;
  border-bottom: 0;
}

.article-cta {
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: linear-gradient(135deg, rgba(14, 58, 92, 0.38), rgba(6, 16, 24, 0.5));
}

.article-cta p {
  margin: 0 0 0.9rem;
  color: #b6d4ef;
  font-size: 0.98rem;
  line-height: 1.65;
}

.article-cta a:not(.btn) {
  color: #7dd3fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
}

.article-cta a:not(.btn):hover {
  color: #ecfeff;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  color: #041018;
  white-space: normal;
  line-height: 1.25;
  min-height: 2.45rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.78rem;
}

.article-cta .article-cta-btn {
  /* Keep the pill content-sized, not stretched to the card */
  width: fit-content;
}

.article-h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #d7ebff;
}

.article-byline {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0 0 1.5rem;
  padding: 0.9rem 0 0;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.article-breadcrumbs a {
  color: #7dd3fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.3);
}

.article-breadcrumbs a:hover {
  color: #ecfeff;
}

.article-breadcrumbs-sep {
  opacity: 0.45;
}

.article-breadcrumbs [aria-current="page"] {
  color: #9fb6d1;
}

.legal-grid h2[id] {
  scroll-margin-top: 5rem;
}

.article-byline-avatar {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  object-position: center top;
  border-radius: 999px;
  border: 1px solid rgba(165, 243, 252, 0.4);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
  background: #0b1b33;
}

.article-byline-text {
  min-width: 0;
}

.article-byline-name {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #e8f4ff;
}

.article-byline-name a {
  color: #7dd3fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
}

.article-byline-name a:hover {
  color: #ecfeff;
}

.article-byline-role {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #8eabca;
}

.article-byline-role a {
  color: #7dd3fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.3);
}

.article-toc {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem 1.05rem;
  max-width: 42rem;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(7, 21, 38, 0.65);
}

.article-toc-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-toc-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #a8c2da;
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-toc-list a {
  color: #7dd3fc;
  text-decoration: none;
}

.article-toc-list a:hover {
  text-decoration: underline;
}

.article-figure {
  margin: 0 0 1.75rem;
  max-width: 100%;
  min-width: 0;
}

.article-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: #071526;
}

.article-figure figcaption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
}

.article-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  max-width: 42rem;
  color: #a8c2da;
  font-size: 1.02rem;
  line-height: 1.85;
}

.article-steps li + li {
  margin-top: 0.55rem;
}

.legal-grid ol.article-howto {
  padding-left: 0;
  max-width: none;
}

.article-howto {
  margin: 0.85rem 0 1.35rem;
  padding: 0;
  list-style: none;
  counter-reset: howto;
  display: grid;
  gap: 1rem;
}

.article-howto > li {
  position: relative;
  margin: 0;
  padding: 0.95rem 1.1rem 1.05rem 3.2rem;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(8, 18, 32, 0.4);
  scroll-margin-top: 5rem;
  min-width: 0;
}

.article-howto > li::before {
  counter-increment: howto;
  content: counter(howto);
  position: absolute;
  left: 0.85rem;
  top: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #67e8f9, #38bdf8 55%, #2563eb);
  color: #031018;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.article-howto .article-h3 {
  margin: 0 0 0.45rem;
}

.article-howto p {
  margin: 0;
  color: #a8c2da;
  font-size: 1.02rem;
  line-height: 1.85;
}

@media (min-width: 900px) {
  .legal-lead {
    font-size: 1.18rem;
    line-height: 1.8;
  }

  .legal-grid p,
  .legal-grid li,
  .article-steps,
  .article-howto p {
    font-size: 1.06rem;
    line-height: 1.9;
  }

  .legal-grid p + p {
    margin-top: 1.05rem;
  }

  .legal-grid {
    gap: 2.1rem;
  }

  .article-howto {
    gap: 1.15rem;
  }

  .article-howto > li {
    padding: 1.1rem 1.25rem 1.2rem 3.35rem;
  }

  .article-h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.06rem;
  }
}

@media (max-width: 480px) {
  .article-howto > li {
    padding: 0.85rem 0.85rem 0.95rem 2.75rem;
  }

  .article-howto > li::before {
    left: 0.65rem;
    top: 0.9rem;
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.72rem;
  }

  .article-howto p {
    font-size: 0.98rem;
    line-height: 1.7;
  }
}

.article-steps code,
.legal-grid code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: #c8e7ff;
  background: rgba(8, 20, 36, 0.65);
  padding: 0.08em 0.35em;
  border-radius: 4px;
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.article-code {
  margin: 0.9rem 0 0;
  padding: 0.95rem 1rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(4, 12, 22, 0.85);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #c5ddf3;
}

.article-code code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  padding: 0;
  border: 0;
}

.article-h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #d7ebff;
}

.article-table-wrap {
  margin: 0.85rem 0 1.35rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(4, 12, 22, 0.55);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-table th,
.article-table td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  vertical-align: top;
  color: #a8c2da;
  border-bottom: 1px solid rgba(125, 211, 252, 0.1);
}

.article-table thead th {
  color: #d7ebff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(14, 58, 92, 0.35);
  border-bottom-color: rgba(125, 211, 252, 0.18);
}

.article-table tbody th {
  color: #c8e7ff;
  font-weight: 700;
  white-space: nowrap;
}

.article-table tbody tr:last-child th,
.article-table tbody tr:last-child td {
  border-bottom: 0;
}

.article-table code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: #c8e7ff;
  background: rgba(8, 20, 36, 0.65);
  padding: 0.08em 0.35em;
  border-radius: 4px;
  border: 1px solid rgba(125, 211, 252, 0.12);
}

/* ——— Workspace ——— */
.workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(14rem, var(--editor-split, 52%)) 6px minmax(14rem, 1fr);
  margin: 0.28rem 0.35rem 0.35rem;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 24, 40, 0.55), rgba(6, 12, 22, 0.72));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 0 0 1px rgba(8, 20, 36, 0.45),
    0 28px 70px -34px rgba(0, 0, 0, 0.88),
    0 0 90px -42px rgba(34, 211, 238, 0.28);
}

.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.panel-editor {
  background: var(--editor-bg);
  position: relative;
  z-index: 2;
}

.panel-editor::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.03), transparent 28%);
}

.splitter {
  position: relative;
  z-index: 5;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(4, 10, 18, 0.95);
  cursor: col-resize;
  touch-action: none;
}

.splitter::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(125, 211, 252, 0.28);
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease), width 0.15s var(--ease);
}

.splitter::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 2.6rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.5);
  box-shadow: 0 0 0 1px rgba(8, 20, 36, 0.35);
  transition: height 0.15s var(--ease), background 0.15s var(--ease);
}

.splitter:hover::before,
.splitter:focus-visible::before,
body.is-resizing .splitter::before {
  width: 2px;
  background: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.4);
}

.splitter:hover::after,
.splitter:focus-visible::after,
body.is-resizing .splitter::after {
  height: 3.1rem;
  background: rgba(103, 232, 249, 0.85);
}

.splitter:focus-visible {
  outline: none;
}

body.is-resizing {
  cursor: col-resize;
  user-select: none;
}

body.is-resizing iframe,
body.is-resizing .preview-stage {
  pointer-events: none;
}

.panel-preview {
  background: #0a1420;
  position: relative;
  z-index: 1;
}

.panel-bar {
  height: var(--panel-bar-h);
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--editor-bar);
  border-bottom: 1px solid rgba(4, 10, 18, 0.95);
  flex-shrink: 0;
  position: relative;
  z-index: 6;
  overflow: visible;
}

.panel-bar-light {
  background: linear-gradient(180deg, rgba(14, 26, 42, 0.96), rgba(10, 20, 34, 0.94));
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  backdrop-filter: blur(12px);
}

.panel-bar-tabs {
  gap: 0.75rem;
  height: auto;
  min-height: var(--panel-bar-h);
  padding: 0.45rem 0.75rem;
}

.panel-bar-tabs .preview-status {
  margin-left: auto;
  flex-shrink: 0;
}

.export-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 100%;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.55);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.12);
}

.export-tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: transparent;
  color: #8eabca;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.export-tab:hover {
  color: #e8f4ff;
  background: rgba(125, 211, 252, 0.08);
}

.export-tab.is-active {
  color: #031018;
  background: linear-gradient(135deg, #67e8f9 0%, #38bdf8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 0 0 1px rgba(165, 243, 252, 0.25),
    0 4px 14px -6px rgba(34, 211, 238, 0.55);
}

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

.export-views {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.export-view {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
}

.export-view.is-active {
  display: flex;
  animation: view-in 0.28s var(--ease) both;
}

.export-view[hidden] {
  display: none !important;
}

.code-output-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.1);
  background: rgba(8, 18, 32, 0.92);
  flex-shrink: 0;
}

.code-output-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #8eabca;
}

.btn-copy {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(34, 211, 238, 0.12);
  color: #7dd3fc;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.22);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  border: 0;
}

.btn-copy:hover {
  background: rgba(34, 211, 238, 0.2);
  color: #e0f2fe;
}

.btn-copy.is-copied {
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
}

.code-output {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 1rem 1.1rem;
  overflow: auto;
  background: #0b1220;
  color: #dbeafe;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  white-space: pre;
  tab-size: 2;
}

.code-output-wrap {
  white-space: pre-wrap;
  word-break: break-all;
}

.data-uri-bar {
  align-items: center;
  gap: 0.85rem;
}

.data-uri-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.format-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.55);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.12);
}

.format-chip {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  background: transparent;
  color: #8eabca;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.format-chip:hover {
  color: #e8f4ff;
}

.format-chip.is-active {
  color: #031018;
  background: linear-gradient(135deg, #67e8f9 0%, #38bdf8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 0 0 1px rgba(165, 243, 252, 0.22);
}

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

.size-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.png-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background-color: #d7e3f0;
  background-image:
    linear-gradient(45deg, #c5d5e8 25%, transparent 25%),
    linear-gradient(-45deg, #c5d5e8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #c5d5e8 75%),
    linear-gradient(-45deg, transparent 75%, #c5d5e8 75%);
  background-size: 22px 22px;
  background-position:
    0 0,
    0 11px,
    11px -11px,
    -11px 0;
}

.png-canvas {
  max-width: min(100%, 36rem);
  max-height: min(70%, 28rem);
  width: auto;
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 16px 36px rgba(15, 23, 42, 0.18));
}

.panel-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.clean-tool-page .panel-bar-left {
  flex: 1 1 auto;
}

.clean-size-stat {
  margin: 0 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.22);
  color: #9fd8f5;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clean-size-stat[hidden] {
  display: none !important;
}

.clean-size-stat .clean-size-arrow {
  color: #67e8f9;
  opacity: 0.9;
}

.clean-size-stat .clean-size-pct {
  color: #5eead4;
}

.window-dots {
  display: none;
}

.panel-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #8eabca;
}

.panel-title::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
  flex-shrink: 0;
}

.panel-bar-light .panel-title {
  color: #9bb6d0;
}

.panel-bar-light .panel-title::before {
  display: none;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.panel-actions .btn-quiet {
  margin-left: 0.15rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.btn-ghost {
  background: rgba(125, 211, 252, 0.05);
  color: #8eb4d4;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.12);
}

.btn-ghost:hover {
  background: rgba(34, 211, 238, 0.12);
  color: #ecfeff;
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.32);
  transform: translateY(-1px);
}

.btn-ghost:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
}

.btn-accent {
  position: relative;
  z-index: 0;
  isolation: isolate;
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 40%, #0ea5e9 100%);
  color: #031018;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.48rem 1.1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 0 0 1px rgba(165, 243, 252, 0.28),
    0 6px 18px -8px rgba(34, 211, 238, 0.5);
}

/* Soft glow — brand mark stays brighter than Share */
.btn-accent::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(34, 211, 238, 0.28);
  filter: blur(9px);
  opacity: 0.4;
  pointer-events: none;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #a5f3fc 0%, #22d3ee 45%, #38bdf8 100%);
  color: #02080f;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 0 0 1px rgba(186, 230, 253, 0.4),
    0 8px 22px -8px rgba(34, 211, 238, 0.65);
  transform: translateY(-1px);
}

.btn-accent:hover::before {
  opacity: 0.55;
  filter: blur(11px);
}

.btn-accent:focus-visible {
  outline: 2px solid #a5f3fc;
  outline-offset: 2px;
}

.btn-quiet {
  color: #8eabca;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.06);
}

.btn-quiet:hover {
  color: #fecaca;
  background: rgba(251, 113, 133, 0.1);
  box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.28);
}

.btn-quiet:focus-visible {
  outline: 2px solid #fb7185;
  outline-offset: 2px;
}

.btn-ghost.is-copied,
.share-menu-item.is-copied {
  background: rgba(52, 211, 153, 0.16);
  color: #d1fae5;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
  transform: none;
}

.share-menu {
  position: relative;
  margin-left: 0.35rem;
  margin-right: 0.15rem;
}

.share-menu-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
  min-height: 2.15rem;
  padding-inline: 1.1rem;
}

.share-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  opacity: 1;
  shape-rendering: geometricPrecision;
}

.share-menu-toggle::-webkit-details-marker {
  display: none;
}

.share-menu-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid currentColor;
  opacity: 0.8;
  transition: transform 0.18s var(--ease);
}

.share-menu[open] .share-menu-toggle::after {
  transform: rotate(180deg);
}

.share-menu[open] .share-menu-toggle {
  background: linear-gradient(135deg, #ecfeff 0%, #67e8f9 45%, #22d3ee 100%);
  color: #031018;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 0 0 1px rgba(186, 230, 253, 0.6),
    0 12px 32px -6px rgba(34, 211, 238, 1);
}

.share-menu[open] .share-menu-toggle::before {
  opacity: 1;
  filter: blur(16px);
}

.share-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 12;
  min-width: 12.5rem;
  padding: 0.4rem;
  border-radius: 14px;
  background: rgba(6, 14, 26, 0.97);
  box-shadow:
    inset 0 0 0 1px rgba(125, 211, 252, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 44px -16px rgba(0, 0, 0, 0.9);
  animation: menu-in 0.2s var(--ease) both;
}

.share-menu-item {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: transparent;
  color: #d7ebfb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.share-menu-item-label {
  display: block;
}

.share-menu-item-meta {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f8fad;
}

.share-menu-item:hover {
  background: rgba(56, 189, 248, 0.14);
  color: #fff;
}

.share-menu-item:hover .share-menu-item-meta {
  color: #9ec9e8;
}

.share-menu-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.share-menu-item.is-copied .share-menu-item-meta {
  color: #a7f3d0;
}

.code-editor {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  background: transparent;
}

.line-numbers {
  margin: 0;
  padding: 0.65rem 0.4rem 0.75rem 0.4rem;
  border-right: 1px solid rgba(125, 211, 252, 0.06);
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.45), rgba(4, 10, 18, 0.2));
  color: #40576f;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  text-align: right;
  user-select: none;
  overflow: hidden;
  white-space: pre;
  min-width: 2.35rem;
}

.editor-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.editor-highlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0.65rem 0.7rem 0.75rem 0.55rem;
  overflow: auto;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--editor-text);
  scrollbar-width: none;
}

.editor-highlight::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.editor-highlight .tok-punct {
  color: #7dd3fc;
}

.editor-highlight .tok-tag {
  color: #fb7185;
}

.editor-highlight .tok-attr {
  color: #fdba74;
}

.editor-highlight .tok-string {
  color: #5eead4;
}

.editor-highlight .tok-comment {
  color: #64748b;
  font-style: italic;
}

.editor-highlight .tok-text {
  color: #94a3b8;
}

.editor {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0.65rem 0.7rem 0.75rem 0.55rem;
  border: 0;
  resize: none;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: var(--editor-caret);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  tab-size: 2;
  outline: none;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, 0.28) transparent;
}

.editor::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.editor::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.22);
}

.editor::-webkit-scrollbar-thumb:hover {
  background: rgba(103, 232, 249, 0.4);
}

.editor::placeholder {
  color: var(--editor-placeholder);
  -webkit-text-fill-color: var(--editor-placeholder);
}

.editor::selection {
  background: rgba(34, 211, 238, 0.28);
  color: transparent;
}

.code-editor:focus-within {
  box-shadow: inset 3px 0 0 var(--accent-hot);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.035), transparent 18%);
}

.preview-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #8eabca;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.preview-status::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
  flex-shrink: 0;
  transition:
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.preview-status[data-state="ok"] {
  color: #5eead4;
}

.preview-status[data-state="ok"]::before {
  background: #2dd4bf;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.preview-status[data-state="empty"] {
  color: #8eabca;
  opacity: 0.9;
}

.preview-status[data-state="empty"]::before {
  opacity: 0.45;
}

.preview-status[data-state="error"] {
  color: #fb7185;
}

.preview-status[data-state="error"]::before {
  background: #f43f5e;
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2);
}

.preview-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  isolation: isolate;
  background-color: #dbe5f0;
  background-image:
    linear-gradient(45deg, #c8d6e6 25%, transparent 25%),
    linear-gradient(-45deg, #c8d6e6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #c8d6e6 75%),
    linear-gradient(-45deg, transparent 75%, #c8d6e6 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
}

.preview-stage[data-bg="black"] {
  background-color: #0a0a0a;
  background-image: none;
}

.preview-stage[data-bg="white"] {
  background-color: #ffffff;
  background-image: none;
}

.preview-stage[data-bg="black"] .preview-empty {
  color: #94a3b8;
}

.preview-stage[data-bg="black"] .preview-empty-title {
  color: #b6c5d6;
}

.preview-stage[data-bg="black"] .preview-empty-body {
  color: #8fa3b8;
}

.preview-stage[data-bg="white"] .preview-empty {
  color: #64748b;
}

.preview-stage[data-bg="white"] .preview-empty-title {
  color: #475569;
}

.preview-stage[data-bg="white"] .preview-empty-body {
  color: #64748b;
}

.preview-stage[data-bg="white"] .preview-empty-links a {
  color: #0369a1;
  border-bottom-color: rgba(3, 105, 161, 0.4);
}

.preview-stage[data-bg="white"] .preview-empty-links a:hover {
  color: #0c4a6e;
  border-bottom-color: rgba(12, 74, 110, 0.55);
}

.preview-canvas {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  padding-bottom: 4.5rem;
  cursor: grab;
  touch-action: none;
}

.preview-stage.is-panning,
.preview-canvas.is-panning {
  cursor: grabbing;
  user-select: none;
}

.preview-canvas > svg {
  max-width: min(100%, 28rem);
  max-height: min(100%, 28rem);
  width: auto;
  height: auto;
  filter: drop-shadow(0 16px 36px rgba(15, 23, 42, 0.22));
  animation: svg-fade 0.4s var(--ease);
  transform: translate(var(--preview-x, 0px), var(--preview-y, 0px)) scale(var(--preview-zoom, 1));
  transform-origin: center center;
  transition: transform 0.18s var(--ease);
}

.preview-canvas.is-panning > svg {
  transition: none;
}

.preview-canvas > svg.is-inspecting .is-selected {
  outline: none;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.9))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.95));
}

.svg-highlight-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.svg-highlight {
  position: absolute;
  border: 3px solid #67e8f9;
  border-radius: 10px;
  background: rgba(103, 232, 249, 0.12);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 30px 4px rgba(34, 211, 238, 0.55),
    0 0 0 9999px rgba(4, 10, 18, 0.64);
  animation: highlight-pulse 1.35s var(--ease) infinite;
}

@keyframes highlight-pulse {
  0%,
  100% {
    border-color: #67e8f9;
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.95),
      0 0 30px 4px rgba(34, 211, 238, 0.55),
      0 0 0 9999px rgba(4, 10, 18, 0.64);
  }
  50% {
    border-color: #a5f3fc;
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 1),
      0 0 40px 8px rgba(103, 232, 249, 0.7),
      0 0 0 9999px rgba(4, 10, 18, 0.72);
  }
}

.preview-empty {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  display: grid;
  place-items: center;
  place-content: center;
  gap: 0.55rem;
  padding: var(--space-5);
  padding-bottom: 4.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #64748b;
  pointer-events: none;
  text-align: center;
}

.preview-empty::before {
  content: "SVG";
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #94a3b8;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.preview-empty-inner {
  display: grid;
  gap: 0.45rem;
  max-width: 22rem;
  justify-items: center;
}

.preview-empty-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #7c92a8;
}

.preview-empty-body {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  color: #6b8299;
}

.preview-empty-links {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.preview-empty-links a {
  pointer-events: auto;
  position: relative;
  z-index: 1;
  color: #0369a1;
  text-decoration: none;
  border-bottom: 1px solid rgba(3, 105, 161, 0.4);
}

.preview-empty-links a:hover {
  color: #0c4a6e;
  border-bottom-color: rgba(12, 74, 110, 0.55);
}

.preview-stage[data-bg="black"] .preview-empty-links a {
  color: #7dd3fc;
  border-bottom-color: rgba(125, 211, 252, 0.4);
}

.preview-stage[data-bg="black"] .preview-empty-links a:hover {
  color: #e0f2fe;
  border-bottom-color: rgba(224, 242, 254, 0.55);
}

.preview-stage[data-bg="white"] .preview-empty-links a {
  color: #0369a1;
  border-bottom-color: rgba(3, 105, 161, 0.4);
}

.preview-stage[data-bg="white"] .preview-empty-links a:hover {
  color: #0c4a6e;
  border-bottom-color: rgba(12, 74, 110, 0.55);
}

.preview-empty.is-message::before {
  content: "!";
  letter-spacing: 0;
}

.preview-empty.is-message .preview-empty-title {
  color: #94a3b8;
}

.preview-empty[hidden] {
  display: none !important;
}

.preview-toolbar {
  position: absolute;
  left: 50%;
  bottom: 0.95rem;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem;
  border-radius: 999px;
  background: rgba(6, 14, 26, 0.82);
  border: 1px solid rgba(148, 197, 232, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 14px 36px rgba(2, 8, 18, 0.4);
  backdrop-filter: blur(16px) saturate(1.15);
  animation: toolbar-in 0.7s var(--ease) 0.28s both;
}

.toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.toolbar-divider {
  width: 1px;
  height: 1.2rem;
  margin: 0 0.2rem;
  background: rgba(148, 197, 232, 0.22);
}

.toolbar-btn {
  appearance: none;
  border: 0;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: transparent;
  color: #d7e9f8;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.toolbar-btn:hover {
  background: rgba(125, 211, 252, 0.14);
  color: #fff;
}

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

.toolbar-zoom-value {
  min-width: 3.6rem;
  color: #9ec9e8;
}

.toolbar-swatch {
  padding: 0;
}

.toolbar-swatch.is-active {
  background: rgba(34, 211, 238, 0.18);
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.55);
  transform: scale(1.04);
}

.swatch {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 4px;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.swatch-checker {
  background-color: #e2e8f0;
  background-image:
    linear-gradient(45deg, #94a3b8 25%, transparent 25%),
    linear-gradient(-45deg, #94a3b8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #94a3b8 75%),
    linear-gradient(-45deg, transparent 75%, #94a3b8 75%);
  background-size: 6px 6px;
  background-position:
    0 0,
    0 3px,
    3px -3px,
    -3px 0;
}

.swatch-black {
  background: #0a0a0a;
}

.swatch-white {
  background: #ffffff;
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes workspace-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes svg-fade {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glow-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 4%, 0) scale(1.08);
  }
}

@keyframes beam-sweep {
  from {
    opacity: 0.55;
    transform: rotate(-8deg) translateX(-2%);
  }
  to {
    opacity: 1;
    transform: rotate(-8deg) translateX(3%);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toolbar-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
  }
  40% {
    opacity: 0.55;
  }
}

.preview-status[data-state="ok"],
.preview-status[data-state="error"] {
  opacity: 1;
}

.preview-status.is-flashing {
  animation: status-pulse 0.55s var(--ease) 1;
}

.tab-label-short {
  display: none;
}

.mobile-mode-switch {
  display: none;
}

@media (max-width: 1100px) {
  .panel-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.3rem;
  }
}

@media (max-width: 900px) {
  .ambiance-beam,
  .ambiance-noise,
  .ambiance-grid {
    display: none;
  }

  .ambiance-glow {
    opacity: 0.45;
    filter: blur(56px);
  }

  .site-header {
    backdrop-filter: blur(12px) saturate(1.1);
  }

  .brand-mark,
  .brand-name,
  .brand-tagline,
  .workspace,
  .preview-toolbar,
  .github-link {
    animation: none !important;
  }

  .mobile-mode-switch {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.18rem;
    flex: 0 0 auto;
    margin: 0.28rem 0.5rem 0;
    padding: 0.16rem;
    border-radius: 11px;
    background: rgba(8, 18, 32, 0.72);
    box-shadow:
      inset 0 0 0 1px rgba(125, 211, 252, 0.14),
      0 10px 28px -18px rgba(0, 0, 0, 0.8);
  }

  .mobile-mode-btn {
    appearance: none;
    border: 0;
    border-radius: 9px;
    min-height: 2.05rem;
    padding: 0.28rem 0.65rem;
    background: transparent;
    color: #8eb4d4;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    cursor: pointer;
    transition:
      background 0.18s var(--ease),
      color 0.18s var(--ease),
      box-shadow 0.18s var(--ease);
  }

  .mobile-mode-btn:hover {
    color: #e8f4ff;
    background: rgba(125, 211, 252, 0.06);
  }

  .mobile-mode-btn.is-active {
    color: #031018;
    background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 45%, #0ea5e9 100%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.35) inset,
      0 6px 16px -10px rgba(34, 211, 238, 0.55);
  }

  .mobile-mode-btn:focus-visible {
    outline: 2px solid #67e8f9;
    outline-offset: 2px;
  }

  .workspace {
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, 1fr);
    margin: 0.28rem;
    border-radius: 14px;
  }

  .splitter {
    display: none;
  }

  body[data-mobile-mode="edit"] .panel-preview {
    display: none !important;
  }

  body[data-mobile-mode="preview"] .panel-editor {
    display: none !important;
  }

  body[data-mobile-mode="edit"] .panel-editor,
  body[data-mobile-mode="preview"] .panel-preview {
    min-height: 0;
    height: 100%;
  }

  .panel-editor {
    border-bottom: 0;
  }

  .site-header {
    height: 3.25rem;
    padding: 0 0.7rem;
    gap: 0.5rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand-mark svg {
    width: 28px;
    height: 28px;
  }

  .brand-tagline:not(.brand-tagline-seo) {
    display: none;
  }

  .brand-tagline-seo {
    display: block;
    max-width: none;
    font-size: 0.55rem;
    line-height: 1.2;
    color: #7f9bb8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-pitch {
    padding: 0.3rem 0.65rem 0.36rem;
    font-size: 0.66rem;
  }

  .header-sep {
    display: none;
  }

  .legal-nav a {
    padding: 0.35rem 0.35rem;
    font-size: 0.6rem;
  }

  .github-link span {
    display: none;
  }

  .github-link {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    padding: 0;
    flex-shrink: 0;
  }

  /* Keep GitHub + tool links; Privacy/Terms stay in FAQ (tool pages) / desktop nav */
  .legal-nav a[href="/privacy"],
  .legal-nav a[href="/terms"] {
    display: none;
  }

  .mobile-legal {
    display: none !important;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  /* Source bar: title row + full-width action row */
  .panel-bar {
    height: auto;
    min-height: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.55rem;
  }

  .panel-bar-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .panel-actions {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: stretch;
    align-items: stretch;
    box-sizing: border-box;
  }

  /* Clear is easy to fat-finger next to Share; desktop still has it */
  .panel-actions #btn-clear {
    display: none;
  }

  /* Sample chip adds chrome; on phone paste/select-all is enough */
  .sample-chip {
    display: none !important;
  }

  .panel-actions .btn-quiet {
    margin-left: 0;
  }

  .panel-actions .share-menu {
    margin-left: 0;
    margin-right: 0;
    min-width: 0;
  }

  .panel-actions .btn,
  .panel-actions .share-menu-toggle {
    width: 100%;
    justify-content: center;
    min-width: 0;
    min-height: 2.15rem;
    padding: 0.32rem 0.28rem;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    overflow: hidden;
  }

  .panel-actions .btn-accent,
  .panel-actions .share-menu-toggle {
    font-size: 0.6rem;
    padding-inline: 0.28rem;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.3) inset,
      0 0 0 1px rgba(165, 243, 252, 0.22),
      0 3px 10px -6px rgba(34, 211, 238, 0.4);
  }

  /* Soften Share glow so it does not blow out the bar */
  .panel-actions .btn-accent::before,
  .panel-actions .share-menu-toggle::before {
    inset: 0;
    filter: blur(5px);
    opacity: 0.22;
  }

  .panel-actions .share-menu-toggle {
    gap: 0.25rem;
  }

  .panel-actions .share-menu-toggle::after {
    display: none;
  }

  .panel-actions .share-menu-toggle .share-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .panel-bar {
    overflow: hidden;
  }

  .share-menu-panel {
    right: 0;
    left: auto;
    min-width: min(16rem, calc(100vw - 1.5rem));
  }

  .legal-shell {
    width: min(52rem, calc(100% - 1.25rem));
    margin-top: 0.85rem;
  }

  .panel-bar-tabs {
    padding: 0.22rem 0.35rem;
    overflow: hidden;
  }

  .export-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 10px;
    gap: 0.14rem;
  }

  .export-tabs::-webkit-scrollbar {
    display: none;
  }

  .export-tab {
    flex: 0 0 auto;
    min-height: 1.95rem;
    padding: 0.28rem 0.62rem;
    font-size: 0.66rem;
  }

  .tab-label-full {
    display: none;
  }

  .tab-label-short {
    display: inline;
  }

  .panel-bar-tabs .preview-status {
    display: block;
    max-width: 100%;
    margin-top: 0.2rem;
    font-size: 0.62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .panel-bar-tabs {
    flex-wrap: wrap;
    row-gap: 0.2rem;
  }

  .app-pitch {
    justify-content: center;
  }

  .app-pitch-lead {
    text-align: center;
    width: 100%;
  }

  .preview-toolbar {
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
  }

  .toolbar-btn {
    min-width: 2.2rem;
    min-height: 2.2rem;
  }

  .code-editor {
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  .mobile-mode-switch {
    margin: 0.22rem 0.28rem 0;
    padding: 0.12rem;
  }

  .mobile-mode-btn {
    min-height: 1.9rem;
    padding: 0.22rem 0.5rem;
    font-size: 0.72rem;
  }

  .workspace {
    margin: 0.22rem;
    border-radius: 12px;
  }

  .site-header {
    padding: 0 0.55rem;
    gap: 0.35rem;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .legal-nav a {
    padding: 0.3rem 0.28rem;
  }

  .article-cta {
    padding: 0.85rem 0.9rem;
  }

  .article-cta p {
    font-size: 0.88rem;
  }

  .article-cta-btn,
  .legal-actions .btn-accent {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding: 0.58rem 1rem;
    line-height: 1.25;
    width: fit-content;
    max-width: 100%;
    min-height: 2.4rem;
  }

  .panel-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
  }

  .panel-actions .btn,
  .panel-actions .share-menu-toggle {
    min-width: 0;
    font-size: 0.56rem;
    min-height: 2.35rem;
    padding: 0.38rem 0.18rem;
    letter-spacing: 0.01em;
  }

  .export-tab {
    padding: 0.38rem 0.62rem;
    font-size: 0.64rem;
  }
}

@media (max-width: 360px) {
  .brand-name {
    display: none;
  }

  .panel-bar {
    padding: 0.35rem 0.4rem;
  }

  .panel-actions {
    gap: 0.18rem;
  }

  .panel-actions .btn,
  .panel-actions .share-menu-toggle {
    font-size: 0.5rem;
    min-height: 2.05rem;
    padding: 0.28rem 0.1rem;
  }

  .panel-actions .share-menu-toggle .share-icon {
    display: none;
  }
}

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

/* ——— Shared SVG notice ——— */
.share-notice {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.45rem clamp(1rem, 2.5vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(90deg, rgba(14, 58, 92, 0.95), rgba(8, 28, 48, 0.92));
  color: #d7ecff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
}

.share-notice-text {
  min-width: 0;
}

.share-notice-dismiss {
  flex-shrink: 0;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.28);
  color: #e0f2fe;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.share-notice-dismiss:hover {
  background: rgba(255, 255, 255, 0.14);
}

.share-notice[hidden] {
  display: none !important;
}

/* ——— Tool page (/svg-to-react) — same one-screen layout as home ——— */
/* cache-bust: tool banner styles must ship with HTML */
.tool-banner {
  --tool-cache: 3;
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.18rem clamp(1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid rgba(125, 211, 252, 0.1);
  background: linear-gradient(180deg, rgba(8, 20, 36, 0.35), rgba(6, 14, 24, 0.12));
}

.tool-banner-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.85rem;
}

.tool-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.15;
  color: var(--muted);
}

.tool-breadcrumbs a {
  color: #7dd3fc;
  text-decoration: none;
}

.tool-breadcrumbs a:hover {
  color: #ecfeff;
}

.tool-breadcrumbs a:focus-visible {
  outline: 2px solid #a5f3fc;
  outline-offset: 2px;
  border-radius: 2px;
}

.tool-breadcrumbs-sep {
  opacity: 0.45;
}

.tool-breadcrumbs [aria-current="page"] {
  color: #9fb6d1;
}

.tool-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #f5fbff;
}

.tool-sub {
  margin: 0.08rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: #9fb6d1;
}

.tool-note {
  margin: 0.18rem 0 0;
  max-width: none;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #6f89a8;
}

.tool-note-pair {
  white-space: nowrap;
}

.tool-note-sep {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .tool-note-pair {
    white-space: normal;
  }
}

.tool-steps {
  margin: 0.16rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem 0.1rem;
  counter-reset: tool-step;
}

.tool-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 600;
  color: #9fb6d1;
  counter-increment: tool-step;
}

.tool-steps li::before {
  content: counter(tool-step);
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #031018;
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 55%, #0ea5e9 100%);
  flex-shrink: 0;
}

.tool-steps li:not(:last-child)::after {
  content: "";
  width: 0.85rem;
  height: 1px;
  margin: 0 0.25rem 0 0.1rem;
  background: rgba(125, 211, 252, 0.28);
}

.tool-banner-link {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #7dd3fc;
  white-space: nowrap;
}

.tool-banner-link:hover {
  color: #e0f2fe;
}

.tool-banner-link:focus-visible {
  outline: 2px solid #a5f3fc;
  outline-offset: 3px;
  border-radius: 4px;
}

.tool-banner-actions {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-faq {
  position: relative;
}

.tool-faq-toggle {
  list-style: none;
  cursor: pointer;
  appearance: none;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  padding: 0.26rem 0.6rem;
  background: rgba(8, 20, 36, 0.55);
  color: #9fb6d1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    background 0.18s var(--ease);
}

.tool-faq-toggle::-webkit-details-marker {
  display: none;
}

.tool-faq-toggle:hover {
  color: #e8f4ff;
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(14, 58, 92, 0.45);
}

.tool-faq-toggle:focus-visible {
  outline: 2px solid #a5f3fc;
  outline-offset: 2px;
}

.tool-faq[open] .tool-faq-toggle {
  color: #031018;
  border-color: transparent;
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 55%, #0ea5e9 100%);
}

.tool-faq-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 30;
  width: min(22.5rem, calc(100vw - 1.5rem));
  max-height: min(70dvh, 26rem);
  overflow: auto;
  padding: 0.95rem 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background:
    linear-gradient(180deg, rgba(12, 24, 40, 0.98), rgba(6, 14, 24, 0.98));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 50px -24px rgba(0, 0, 0, 0.9),
    0 0 40px -20px rgba(34, 211, 238, 0.35);
  animation: tool-faq-in 0.22s var(--ease) both;
}

@keyframes tool-faq-in {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-faq-heading {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f89a8;
}

.tool-faq-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.tool-faq-list dt {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  color: #e8f4ff;
}

.tool-faq-list dd {
  margin: 0.28rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #9fb6d1;
}

.tool-faq-list a {
  color: #7dd3fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
}

.tool-faq-list a:hover {
  color: #e0f2fe;
  border-bottom-color: rgba(224, 242, 254, 0.55);
}

.tool-sub code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: #c8e7ff;
}

.tool-faq-list code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: #c8e7ff;
  background: rgba(8, 20, 36, 0.65);
  padding: 0.08em 0.3em;
  border-radius: 4px;
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.tool-faq-guide {
  display: inline-block;
  margin-top: 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #7dd3fc;
  text-decoration: none;
}

.tool-faq-guide + .tool-faq-guide {
  display: block;
  margin-top: 0.45rem;
}

.tool-note a {
  color: #7dd3fc;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
  white-space: nowrap;
}

.tool-note a:hover {
  color: #e0f2fe;
  border-bottom-color: rgba(224, 242, 254, 0.55);
}

.tool-faq-guide:hover {
  color: #e0f2fe;
}

.tool-faq-guide:focus-visible {
  outline: 2px solid #a5f3fc;
  outline-offset: 2px;
  border-radius: 4px;
}

.tool-faq-legal {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  font-size: 0.72rem;
  font-weight: 600;
  color: #6f89a8;
}

.tool-faq-legal a {
  color: #8eb4d4;
  text-decoration: none;
}

.tool-faq-legal a:hover {
  color: #e8f4ff;
}

.tool-faq-legal a:focus-visible {
  outline: 2px solid #a5f3fc;
  outline-offset: 2px;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .tool-banner {
    flex-wrap: wrap;
    gap: 0.12rem 0.75rem;
    padding-top: 0.14rem;
    padding-bottom: 0.14rem;
  }

  .tool-banner-actions {
    width: 100%;
    justify-content: space-between;
  }

  .tool-faq-toggle {
    padding: 0.18rem 0.5rem;
    font-size: 0.66rem;
  }

  .tool-banner-link {
    font-size: 0.62rem;
  }

  .chrome-shutter {
    height: 0.95rem;
  }

  .tool-faq-panel {
    right: auto;
    left: 0;
    width: min(22.5rem, calc(100vw - 1.25rem));
  }

  .tool-faq-legal {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-faq-panel {
    animation: none;
  }
}

/* ——— SVG editor download landing page ——— */
body.download-page {
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow-x: clip;
  overflow-y: auto;
}

.download-shell {
  position: relative;
  z-index: 1;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.download-breadcrumbs {
  display: flex;
  gap: .5rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .7rem;
}

.download-breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.download-breadcrumbs a:hover {
  color: var(--ink);
}

.download-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  border: 1px solid rgba(125, 211, 252, .2);
  border-radius: clamp(1.3rem, 3vw, 2rem);
  background: linear-gradient(135deg, rgba(9, 34, 56, .72), rgba(5, 13, 24, .85));
  box-shadow: 0 1px rgba(255,255,255,.06) inset, 0 30px 80px -45px #000, 0 0 80px -35px rgba(34,211,238,.35);
  overflow: hidden;
}

.download-hero::after {
  content: "";
  position: absolute;
  width: 30rem;
  height: 30rem;
  right: -12rem;
  top: -14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.16), transparent 68%);
  pointer-events: none;
}

.download-hero-copy,
.download-window {
  position: relative;
  z-index: 1;
}

.download-kicker {
  margin: 0 0 .8rem;
  color: var(--accent-hot);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.download-hero h1 {
  max-width: 29rem;
  margin: 0 0 1.15rem;
  color: #f5fbff;
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.05;
  text-wrap: balance;
}

.download-lead {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.75;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.65rem;
}

.download-actions a {
  text-decoration: none;
}

.download-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.5;
}

.download-window {
  border: 1px solid rgba(165, 243, 252, .3);
  border-radius: 1.1rem;
  background: #07111d;
  box-shadow: 0 24px 60px -32px #000, 0 0 40px -24px #22d3ee;
  transform: rotate(1.4deg);
}

.download-window-bar,
.download-window-footer {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.35rem;
  padding: .55rem .8rem;
  border-bottom: 1px solid rgba(125,211,252,.12);
  color: #8eabca;
  font-family: var(--font-mono);
  font-size: .62rem;
}

.download-window-bar span {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: #fb7185;
}

.download-window-bar span:nth-child(2) { background: #fbbf24; }
.download-window-bar span:nth-child(3) { background: #34d399; }
.download-window-bar strong { margin-left: .5rem; color: #d7ebff; font-family: var(--font-sans); font-size: .7rem; }
.download-window-bar em { margin-left: auto; color: #5eead4; font-style: normal; font-size: .56rem; }

.download-window-body {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  min-height: 17rem;
  padding: 1.1rem;
  background: linear-gradient(135deg, #06101b, #0b1d30);
}

.download-code-lines {
  display: grid;
  gap: .75rem;
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: clamp(.58rem, 1.2vw, .72rem);
  line-height: 1.5;
  white-space: nowrap;
}

.download-code-lines i:nth-child(2) { color: #5eead4; }
.download-code-lines i:nth-child(3) { color: #fdba74; }
.download-code-lines i { overflow: hidden; text-overflow: ellipsis; font-style: normal; }

.download-preview-art {
  display: grid;
  place-items: center;
  min-height: 10rem;
  border-left: 1px solid rgba(125,211,252,.12);
}

.download-preview-art svg {
  width: min(100%, 10rem);
  filter: drop-shadow(0 0 24px rgba(34,211,238,.35));
}

.download-window-footer {
  justify-content: space-between;
  border-top: 1px solid rgba(125,211,252,.12);
  border-bottom: 0;
}

.download-window-footer span:last-child { color: #67e8f9; }

.download-section {
  padding: clamp(3rem, 7vw, 5.5rem) .5rem 0;
}

.download-section-heading {
  max-width: 44rem;
  margin-bottom: 1.65rem;
}

.download-section h2,
.download-faq h2 {
  max-width: 36rem;
  margin: 0 0 .7rem;
  color: #f5fbff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.download-section-heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.download-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.download-card {
  padding: 1.35rem;
  border: 1px solid rgba(125,211,252,.15);
  border-radius: var(--radius-md);
  background: rgba(8,18,32,.58);
  box-shadow: 0 1px rgba(255,255,255,.04) inset;
}

.download-card-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: .65rem;
  background: linear-gradient(135deg, #67e8f9, #2563eb);
  color: #031018;
  font-weight: 800;
}

.download-card h3 {
  margin: 0 0 .5rem;
  color: #e8f4ff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.015em;
}

.download-card p {
  min-height: 4.3rem;
  margin: 0 0 1rem;
  color: #9fb6d1;
  font-size: .9rem;
  line-height: 1.65;
}

.download-card a {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}

.download-card a:hover { color: #ecfeff; }

.download-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(125,211,252,.15);
  border-radius: var(--radius-md);
  background: rgba(125,211,252,.15);
}

.download-benefits div {
  display: grid;
  gap: .45rem;
  min-height: 9rem;
  padding: 1.2rem;
  background: rgba(8,18,32,.88);
}

.download-benefits strong { color: #e8f4ff; font-size: .95rem; }
.download-benefits span { color: #9fb6d1; font-size: .82rem; line-height: 1.55; }

.download-howto > ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.download-howto li {
  display: flex;
  gap: .9rem;
  padding: 1.2rem;
  border: 1px solid rgba(125,211,252,.15);
  border-radius: var(--radius-md);
  background: rgba(8,18,32,.55);
}

.download-howto li > span {
  display: grid;
  place-items: center;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #67e8f9, #2563eb);
  color: #031018;
  font-weight: 800;
}

.download-howto strong { color: #e8f4ff; font-size: .95rem; }
.download-howto p { margin: .4rem 0 0; color: #9fb6d1; font-size: .82rem; line-height: 1.55; }

.download-faq {
  max-width: 52rem;
  margin: clamp(3rem, 7vw, 5.5rem) auto 0;
  padding: 1.5rem;
  border: 1px solid rgba(125,211,252,.15);
  border-radius: var(--radius-lg);
  background: rgba(8,18,32,.58);
}

.download-faq details {
  padding: 1rem 0;
  border-top: 1px solid rgba(125,211,252,.12);
}

.download-faq summary {
  cursor: pointer;
  color: #d7ebff;
  font-size: .95rem;
  font-weight: 700;
}

.download-faq summary::marker { color: var(--accent); }
.download-faq details p { max-width: 44rem; margin: .65rem 0 0; color: #9fb6d1; font-size: .88rem; line-height: 1.7; }

.download-footer {
  display: flex;
  justify-content: center;
  gap: .65rem;
  padding: 3rem 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.download-footer a { color: #b6d4ef; text-decoration: none; }
.download-footer a:hover { color: #fff; }

@media (max-width: 800px) {
  .download-hero { grid-template-columns: 1fr; }
  .download-window { max-width: 38rem; width: 100%; margin: 0 auto; }
  .download-card-grid,
  .download-howto > ol { grid-template-columns: 1fr; }
  .download-card p { min-height: 0; }
  .download-benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .download-shell { width: min(100% - 1.25rem, 72rem); padding-top: .8rem; }
  .download-hero { padding: 1.7rem 1rem 1.4rem; border-radius: 1.1rem; }
  .download-hero h1 { font-size: clamp(2.25rem, 12vw, 3.6rem); }
  .download-lead { font-size: .96rem; }
  .download-window-body { grid-template-columns: 1fr; gap: 1rem; }
  .download-preview-art { min-height: 8rem; border-top: 1px solid rgba(125,211,252,.12); border-left: 0; }
  .download-benefits { grid-template-columns: 1fr; }
  .download-benefits div { min-height: 0; }
  .download-faq { padding: 1.1rem; }
  .download-footer { flex-wrap: wrap; }
}

/* ——— SVG icon editor landing content ——— */
body.icon-editor-page {
  overflow: hidden;
}

/* Keep the source icon at its real UI size, while making the canvas preview readable. */
.icon-editor-page .preview-canvas > svg {
  width: min(100%, 14rem);
  height: auto;
}

.icon-editor-guide {
  position: relative;
  z-index: 1;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0 4rem;
}

.icon-editor-eyebrow {
  margin: 0 0 .65rem;
  color: var(--accent-hot);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.icon-editor-guide h2 {
  max-width: 42rem;
  margin: 0 0 .85rem;
  color: #f5fbff;
  font-size: clamp(1.65rem, 3.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.icon-editor-guide > p:not(.icon-editor-eyebrow) {
  max-width: 48rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.icon-editor-guide code {
  padding: .08em .3em;
  border: 1px solid rgba(125, 211, 252, .14);
  border-radius: 4px;
  background: rgba(8, 20, 36, .7);
  color: #c8e7ff;
  font-family: var(--font-mono);
  font-size: .86em;
}

.icon-editor-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.icon-editor-guide-grid article {
  padding: 1.25rem;
  border: 1px solid rgba(125, 211, 252, .15);
  border-radius: var(--radius-md);
  background: rgba(8, 18, 32, .58);
  box-shadow: 0 1px rgba(255, 255, 255, .04) inset;
}

.icon-editor-guide-grid h3 {
  margin: 0 0 .45rem;
  color: #e8f4ff;
  font-size: 1rem;
}

.icon-editor-guide-grid p {
  margin: 0;
  color: #9fb6d1;
  font-size: .88rem;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .icon-editor-guide {
    width: min(100% - 1.25rem, 72rem);
  }

  .icon-editor-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— SVG animation editor landing page ——— */
body.animation-editor-page {
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow-x: clip;
  overflow-y: auto;
}

.animation-shell {
  position: relative;
  z-index: 1;
  width: min(76rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0 3rem;
}

.animation-header {
  position: relative;
  z-index: 2;
}

.animation-breadcrumbs {
  display: flex;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font: .7rem var(--font-mono);
}

.animation-breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.animation-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(13rem, .75fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(125, 211, 252, .2);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(135deg, rgba(9, 34, 56, .75), rgba(5, 13, 24, .88));
  box-shadow: 0 1px rgba(255,255,255,.06) inset, 0 30px 80px -45px #000, 0 0 80px -35px rgba(34,211,238,.35);
  overflow: hidden;
}

.animation-hero-copy { position: relative; z-index: 1; }
.animation-kicker,.animation-eyebrow {
  margin: 0 0 .7rem;
  color: var(--accent-hot);
  font: 700 .7rem var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.animation-hero h1 {
  max-width: 43rem;
  margin: 0 0 1rem;
  color: #f5fbff;
  font-size: clamp(2.25rem, 5vw, 4.45rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .98;
  text-wrap: balance;
}

.animation-lead {
  max-width: 44rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.animation-lead code,.animation-features code {
  color: #c8e7ff;
  font-family: var(--font-mono);
  font-size: .86em;
}

.animation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.4rem;
}

.animation-pills span {
  padding: .38rem .65rem;
  border: 1px solid rgba(125,211,252,.22);
  border-radius: 999px;
  color: #a9d9f5;
  background: rgba(125,211,252,.08);
  font-size: .72rem;
  font-weight: 700;
}

.animation-orbit-art {
  display: grid;
  place-items: center;
  min-height: 14rem;
}

.animation-orbit-art svg {
  width: min(100%, 15rem);
  overflow: visible;
  filter: drop-shadow(0 0 25px rgba(34,211,238,.35));
}

.orbit-ring {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 2;
  stroke-dasharray: 12 8;
  transform-origin: center;
  animation: animation-spin 6s linear infinite;
}

.orbit-dot { fill: #a5f3fc; animation: animation-pulse 1.4s ease-in-out infinite; transform-origin: center; }
.orbit-star { fill: #67e8f9; opacity: .85; animation: animation-pulse 1.4s ease-in-out .2s infinite; transform-origin: center; }
@keyframes animation-spin { to { transform: rotate(360deg); } }
@keyframes animation-pulse { 0%,100% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1.1); opacity: 1; } }

.animation-workspace {
  margin-top: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid rgba(125,211,252,.16);
  border-radius: var(--radius-lg);
  background: rgba(6,14,24,.72);
  box-shadow: 0 1px rgba(255,255,255,.05) inset, 0 24px 60px -38px #000;
}

.animation-workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.animation-workspace-heading h2 { margin: 0; color: #f5fbff; font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -.04em; }
.animation-eyebrow { margin-bottom: .35rem; font-size: .62rem; }
.animation-controls { display: flex; flex-wrap: wrap; gap: .45rem; }
.animation-btn { border: 0; border-radius: 999px; padding: .55rem .9rem; background: linear-gradient(135deg,#67e8f9,#0ea5e9); color: #031018; font-size: .72rem; font-weight: 800; cursor: pointer; }
.animation-btn-ghost { color: #b9d8ed; background: rgba(125,211,252,.08); box-shadow: inset 0 0 0 1px rgba(125,211,252,.2); }
.animation-btn:hover { filter: brightness(1.12); }

.animation-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; min-height: 31rem; }
.animation-code-panel,.animation-preview-panel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid rgba(125,211,252,.16); border-radius: var(--radius-md); background: #070e18; }
.animation-panel-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem .9rem; border-bottom: 1px solid rgba(125,211,252,.12); background: #0b1422; }
.animation-panel-bar h3 { margin: 0; color: #d7ebff; font-size: .76rem; }
.animation-panel-bar span { color: #5eead4; font: .64rem var(--font-mono); }
.animation-code-panel textarea { flex: 1; min-height: 25rem; width: 100%; resize: vertical; padding: 1rem; border: 0; outline: 0; background: #050b13; color: #bfe4fa; caret-color: #67e8f9; font: .78rem/1.65 var(--font-mono); tab-size: 2; }
.animation-code-panel textarea:focus { box-shadow: inset 3px 0 #22d3ee; }
.animation-preview { position: relative; display: grid; place-items: center; flex: 1; min-height: 25rem; padding: 1.5rem; background-color: #dbe5f0; background-image: linear-gradient(45deg,#c8d6e6 25%,transparent 25%),linear-gradient(-45deg,#c8d6e6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#c8d6e6 75%),linear-gradient(-45deg,transparent 75%,#c8d6e6 75%); background-size: 20px 20px; }
.animation-preview svg { max-width: 100%; max-height: 100%; width: min(100%, 28rem); height: auto; filter: drop-shadow(0 16px 32px rgba(15,23,42,.24)); }
.animation-preview-paused svg * { animation-play-state: paused !important; }
.animation-preview-empty { max-width: 20rem; margin: 0; color: #64748b; text-align: center; font-size: .9rem; font-weight: 700; }

.animation-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1rem; }
.animation-features article { padding: 1.3rem; border: 1px solid rgba(125,211,252,.15); border-radius: var(--radius-md); background: rgba(8,18,32,.64); }
.animation-feature-icon { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: .9rem; border-radius: .7rem; background: linear-gradient(135deg,#67e8f9,#2563eb); color: #031018; font: 800 .8rem var(--font-mono); }
.animation-features h2 { margin: 0 0 .45rem; color: #e8f4ff; font-size: 1rem; }
.animation-features p { margin: 0; color: #9fb6d1; font-size: .87rem; line-height: 1.65; }
.animation-faq { max-width: 54rem; margin: 3rem auto 0; padding: 1.4rem; border: 1px solid rgba(125,211,252,.15); border-radius: var(--radius-lg); background: rgba(8,18,32,.58); }
.animation-faq h2 { margin: 0 0 .6rem; color: #f5fbff; font-size: 1.4rem; }
.animation-faq details { padding: .9rem 0; border-top: 1px solid rgba(125,211,252,.12); }
.animation-faq summary { cursor: pointer; color: #d7ebff; font-weight: 700; }
.animation-faq p { max-width: 44rem; margin: .55rem 0 0; color: #9fb6d1; font-size: .88rem; line-height: 1.7; }
.animation-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; padding: 2.5rem 0 0; color: var(--muted); font-size: .8rem; }
.animation-footer a { color: #b6d4ef; text-decoration: none; }

@media (max-width: 800px) {
  .animation-shell { width: min(100% - 1.25rem, 76rem); }
  .animation-hero { grid-template-columns: 1fr; padding: 1.7rem 1.1rem; }
  .animation-orbit-art { min-height: 9rem; }
  .animation-grid,.animation-features { grid-template-columns: 1fr; }
  .animation-grid { min-height: 0; }
  .animation-code-panel textarea,.animation-preview { min-height: 22rem; }
}

@media (max-width: 520px) {
  .animation-header { height: 3.25rem; padding: 0 .65rem; }
  .animation-header .legal-nav a:nth-child(n+2) { display: none; }
  .animation-workspace-heading { align-items: flex-start; flex-direction: column; }
  .animation-controls { width: 100%; }
  .animation-btn { flex: 1; }
}

/* The animation route is a standalone editor page. */
body.animation-editor-page {
  display: flex;
  overflow-x: clip;
  overflow-y: auto;
}

.animation-editor-page .tool-banner-copy {
  display: block;
}

.animation-editor-page .tool-breadcrumbs {
  margin-bottom: .3rem;
}

.animation-editor-page .tool-title {
  display: block;
}

.animation-editor-page .tool-sub {
  margin-top: .3rem;
}

.mirror-path-page .tool-banner-copy {
  display: block;
}

.mirror-path-page .tool-breadcrumbs {
  margin-bottom: .25rem;
}

.mirror-path-page .tool-title {
  display: block;
}

.mirror-path-page .tool-sub {
  margin-top: .2rem;
}

.mirror-path-page #btn-mirror-h,
.mirror-path-page #btn-mirror-v {
  letter-spacing: .02em;
}

.rotate-tool-page .tool-banner-copy {
  display: block;
}

.rotate-tool-page .tool-breadcrumbs {
  margin-bottom: .25rem;
}

.rotate-tool-page .tool-title {
  display: block;
}

.rotate-tool-page .tool-sub {
  margin-top: .2rem;
}

.rotate-tool-page #btn-rotate-action {
  letter-spacing: .02em;
}

.rotate-angle-group {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  max-width: 100%;
  padding: .18rem .18rem .18rem .55rem;
  border-radius: 999px;
  background: rgba(125, 211, 252, .08);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .18);
}

.rotate-angle-label {
  flex: 0 0 auto;
  margin: 0;
  color: #8eb4d4;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rotate-degrees-input {
  width: 3.5rem;
  min-width: 3.5rem;
  max-width: 3.5rem;
  margin: 0;
  padding: .28rem .2rem;
  border: 0;
  border-radius: 8px;
  background: rgba(4, 10, 18, .55);
  color: #e8f4ff;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}

.rotate-degrees-input::-webkit-outer-spin-button,
.rotate-degrees-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.rotate-degrees-input:focus {
  outline: 2px solid #67e8f9;
  outline-offset: 1px;
}

.rotate-angle-unit {
  flex: 0 0 auto;
  margin: 0 .1rem 0 0;
  color: #9fb6d1;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
}

.rotate-angle-group #btn-rotate-action {
  flex: 0 0 auto;
  width: 9.25rem;
  min-width: 9.25rem;
  max-width: 9.25rem;
  justify-content: center;
  padding-inline: .45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .rotate-tool-page .panel-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rotate-tool-page .rotate-angle-group {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    row-gap: .28rem;
    justify-content: flex-start;
    padding: .22rem .22rem .22rem .65rem;
  }

  /* Do not inherit width:100% from .panel-actions .btn — that overflows beside inputs */
  .rotate-tool-page .rotate-angle-group #btn-rotate-action {
    flex: 1 1 6.5rem;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    min-height: 2.15rem;
  }
}

.viewbox-tool-page .tool-banner-copy {
  display: block;
}

.viewbox-tool-page .tool-breadcrumbs {
  margin-bottom: .25rem;
}

.viewbox-tool-page .tool-title {
  display: block;
}

.viewbox-tool-page .tool-sub {
  margin-top: .2rem;
}

.viewbox-tool-page #btn-viewbox-action {
  letter-spacing: .02em;
}

.clean-tool-page .tool-banner-copy {
  display: block;
}

.clean-tool-page .tool-breadcrumbs {
  margin-bottom: .25rem;
}

.clean-tool-page .tool-title {
  display: block;
}

.clean-tool-page .tool-sub {
  margin-top: .2rem;
}

.clean-tool-page #btn-clean-action {
  letter-spacing: .02em;
}

.base64-tool-page .tool-banner-copy {
  display: block;
}

.base64-tool-page .tool-breadcrumbs {
  margin-bottom: .25rem;
}

.base64-tool-page .tool-title {
  display: block;
}

.base64-tool-page .tool-sub {
  margin-top: .2rem;
}

.base64-tool-page #btn-base64-action {
  letter-spacing: .02em;
}

.bg-remove-tool-page .tool-banner-copy {
  display: block;
}

.bg-remove-tool-page .tool-breadcrumbs {
  margin-bottom: .25rem;
}

.bg-remove-tool-page .tool-title {
  display: block;
}

.bg-remove-tool-page .tool-sub {
  margin-top: .2rem;
}

.bg-remove-tool-page #btn-bg-remove-action {
  letter-spacing: .02em;
}

.stroke-tool-page .tool-banner-copy,
.scale-path-tool-page .tool-banner-copy,
.path-edit-tool-page .tool-banner-copy,
.translate-path-tool-page .tool-banner-copy,
.gradient-tool-page .tool-banner-copy,
.vue-tool-page .tool-banner-copy,
.anim-tool-page .tool-banner-copy,
.style-tool-page .tool-banner-copy,
.aspect-tool-page .tool-banner-copy,
.svelte-tool-page .tool-banner-copy,
.rn-tool-page .tool-banner-copy,
.craft-tool-page .tool-banner-copy {
  display: block;
}

.stroke-tool-page .tool-breadcrumbs,
.scale-path-tool-page .tool-breadcrumbs,
.path-edit-tool-page .tool-breadcrumbs,
.translate-path-tool-page .tool-breadcrumbs,
.gradient-tool-page .tool-breadcrumbs,
.vue-tool-page .tool-breadcrumbs,
.anim-tool-page .tool-breadcrumbs,
.style-tool-page .tool-breadcrumbs,
.aspect-tool-page .tool-breadcrumbs,
.svelte-tool-page .tool-breadcrumbs,
.rn-tool-page .tool-breadcrumbs,
.craft-tool-page .tool-breadcrumbs {
  margin-bottom: .25rem;
}

.stroke-tool-page .tool-title,
.scale-path-tool-page .tool-title,
.path-edit-tool-page .tool-title,
.translate-path-tool-page .tool-title,
.gradient-tool-page .tool-title,
.vue-tool-page .tool-title,
.anim-tool-page .tool-title,
.style-tool-page .tool-title,
.aspect-tool-page .tool-title,
.svelte-tool-page .tool-title,
.rn-tool-page .tool-title,
.craft-tool-page .tool-title {
  display: block;
}

.stroke-tool-page .tool-sub,
.scale-path-tool-page .tool-sub,
.path-edit-tool-page .tool-sub,
.translate-path-tool-page .tool-sub,
.gradient-tool-page .tool-sub,
.vue-tool-page .tool-sub,
.anim-tool-page .tool-sub,
.style-tool-page .tool-sub,
.aspect-tool-page .tool-sub,
.svelte-tool-page .tool-sub,
.rn-tool-page .tool-sub,
.craft-tool-page .tool-sub {
  margin-top: .2rem;
}

.stroke-tool-page #btn-stroke-action,
.scale-path-tool-page #btn-scale-path-action,
.path-edit-tool-page #btn-path-edit-action,
.translate-path-tool-page #btn-translate-path-action,
.gradient-tool-page #btn-gradient-action,
.vue-tool-page #btn-vue-action,
.anim-tool-page #btn-anim-action,
.style-tool-page #btn-style-action,
.aspect-tool-page #btn-aspect-action,
.svelte-tool-page #btn-svelte-action,
.rn-tool-page #btn-rn-action,
.craft-tool-page #btn-craft-action {
  letter-spacing: .02em;
}

.translate-path-offset-group {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  max-width: 100%;
  padding: .18rem .18rem .18rem .55rem;
  border-radius: 999px;
  background: #7dd3fc14;
  box-shadow: inset 0 0 0 1px #7dd3fc2e;
}

.translate-path-offset-group .scale-path-factor-label {
  flex: 0 0 auto;
}

.translate-path-offset-group #btn-translate-path-action {
  flex: 0 0 auto;
  min-width: 7.5rem;
  justify-content: center;
  padding-inline: .55rem;
  white-space: nowrap;
}

.scale-path-factor-group {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  max-width: 100%;
  padding: .18rem .18rem .18rem .55rem;
  border-radius: 999px;
  background: #7dd3fc14;
  box-shadow: inset 0 0 0 1px #7dd3fc2e;
}

.scale-path-factor-label {
  flex: 0 0 auto;
  margin: 0;
  color: #8eb4d4;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.scale-path-factor-input {
  width: 3.5rem;
  min-width: 3.5rem;
  max-width: 3.5rem;
  margin: 0;
  padding: .28rem .2rem;
  border: 0;
  border-radius: 8px;
  background: #040a128c;
  color: #e8f4ff;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}

.scale-path-factor-input::-webkit-outer-spin-button,
.scale-path-factor-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.scale-path-factor-input:focus {
  outline: 2px solid #67e8f9;
  outline-offset: 1px;
}

.scale-path-factor-unit {
  flex: 0 0 auto;
  margin: 0 .1rem 0 0;
  color: #9fb6d1;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
}

.scale-path-factor-group #btn-scale-path-action,
.scale-path-factor-group #btn-path-edit-action,
.scale-path-factor-group #btn-png-action {
  flex: 0 0 auto;
  min-width: 8.5rem;
  justify-content: center;
  padding-inline: .55rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .scale-path-tool-page .panel-actions,
  .path-edit-tool-page .panel-actions,
  .translate-path-tool-page .panel-actions,
  .gradient-tool-page .panel-actions,
  .vue-tool-page .panel-actions,
  .anim-tool-page .panel-actions,
  .style-tool-page .panel-actions,
  .aspect-tool-page .panel-actions,
  .svelte-tool-page .panel-actions,
  .rn-tool-page .panel-actions,
  .craft-tool-page .panel-actions,
  .png-tool-page .panel-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scale-path-tool-page .scale-path-factor-group,
  .path-edit-tool-page .scale-path-factor-group,
  .translate-path-tool-page .scale-path-factor-group,
  .translate-path-tool-page .translate-path-offset-group,
  .gradient-tool-page .scale-path-factor-group,
  .png-tool-page .scale-path-factor-group {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    row-gap: .28rem;
    justify-content: flex-start;
    padding: .22rem .22rem .22rem .65rem;
  }
  /* Do not inherit width:100% from .panel-actions .btn — that overflows beside inputs */
  .scale-path-tool-page .scale-path-factor-group #btn-scale-path-action,
  .path-edit-tool-page .scale-path-factor-group #btn-path-edit-action,
  .translate-path-tool-page .translate-path-offset-group #btn-translate-path-action,
  .translate-path-tool-page .scale-path-factor-group #btn-translate-path-action,
  .gradient-tool-page .scale-path-factor-group #btn-gradient-action,
  .png-tool-page .scale-path-factor-group #btn-png-action {
    flex: 1 1 6.5rem;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    min-height: 2.15rem;
  }
}

.animation-editor-page .site-header {
  height: 3.35rem;
}

.animation-editor-page .app-pitch {
  padding-top: .18rem;
  padding-bottom: .18rem;
}

.animation-editor-page .tool-banner {
  padding-top: .12rem;
  padding-bottom: .12rem;
}

.animation-editor-page .chrome-shutter {
  height: .8rem;
}
