/* ============================================================
   Braise — lesbraises.fr
   A small design system for private audio tools.
   ============================================================ */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url('/assets/fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url('/assets/fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0a09;
  --bg-soft: #100f0d;
  --panel: #151310;
  --panel-2: #1b1814;
  --line: rgba(255, 246, 235, 0.1);
  --line-strong: rgba(255, 246, 235, 0.18);
  --text: #f7f2e9;
  --text-soft: #d8d1c6;
  --muted: #aaa298;
  --faint: #918a80;
  --ember: #ff6b2c;
  --ember-bright: #ffb15c;
  --ember-deep: #d43c00;
  --amber: #ffc46b;
  --ink: #180b04;
  --ok: #6ee7a8;
  --ok-bg: rgba(110, 231, 168, 0.1);
  --err: #ff7a7a;
  --err-bg: rgba(255, 122, 122, 0.1);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 74px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 72% -10%, rgba(255, 107, 44, 0.16), transparent 62%),
    radial-gradient(800px 500px at 8% 8%, rgba(255, 177, 92, 0.06), transparent 60%),
    linear-gradient(180deg, #0d0c0a 0%, var(--bg) 42%, #080807 100%);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 246, 235, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 246, 235, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.3; }
strong { font-weight: 600; color: var(--text); }
::selection { background: rgba(255, 107, 44, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--ember-bright); outline-offset: 3px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important;
  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: 16px; top: -100px; z-index: 200;
  background: var(--ember); color: var(--ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 10, 9, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s, background 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 10, 9, 0.9); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  letter-spacing: -0.03em;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-soft);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 246, 235, 0.06); }
.nav a.is-active { color: var(--text); background: rgba(255, 107, 44, 0.12); }
.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--ink);
  font-size: 0.86rem; font-weight: 650;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.header-cta:hover { transform: translateY(-1px); background: #fff; }
.header-cta .icon { width: 15px; height: 15px; }
.menu-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px;
  background: var(--text); transition: transform 0.25s var(--ease), top 0.25s;
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded='true'] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  border-top: 1px solid var(--line);
  background: rgba(11, 10, 9, 0.98);
  padding: 12px var(--gutter) 24px;
}
.mobile-menu nav { display: grid; gap: 2px; }
.mobile-menu a {
  padding: 13px 8px; border-radius: 8px;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 550;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--ember-bright), var(--ember) 55%, var(--ember-deep));
  color: var(--ink);
  box-shadow: 0 14px 30px -14px rgba(255, 107, 44, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(255, 107, 44, 0.85); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-soft); background: rgba(255, 246, 235, 0.05); }
.btn-sm { min-height: 38px; padding: 9px 14px; font-size: 0.85rem; }
.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 0.92rem; color: var(--ember-bright);
}
.text-link .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.link-btn {
  padding: 0; border: 0; background: none; color: var(--muted);
  font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--text); }

/* ---------- Type helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ember-bright);
}
.kicker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.14);
}
.section-eyebrow {
  margin: 0 0 12px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}
.page-title { max-width: 17ch; }
.page-hero { padding: clamp(56px, 7vw, 92px) 0 clamp(34px, 4vw, 52px); }
.page-hero--compact { padding-bottom: 24px; }
.page-lead {
  max-width: 62ch; margin: 20px 0 0;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 22px; font-size: 0.8rem; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumb-sep { color: var(--faint); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(38px, 5vw, 64px) 0 clamp(54px, 6vw, 76px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 5vw, 64px); align-items: center;
}
.hero-copy h1 { font-size: clamp(2.65rem, 5.3vw, 4.5rem); line-height: 0.97; letter-spacing: -0.045em; }
.hero-copy h1 .accent {
  background: linear-gradient(100deg, var(--amber), var(--ember) 55%, #ff4d00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  max-width: 47ch; margin: 22px 0 0;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: var(--muted);
}
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin-top: 24px; font-size: 0.82rem; color: var(--faint);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .icon { width: 15px; height: 15px; color: var(--ember-bright); }
.hero-tool { position: relative; }
.hero-tool::before {
  content: ''; position: absolute; inset: -22px -12px;
  background: radial-gradient(closest-side, rgba(255, 107, 44, 0.16), transparent 78%);
  filter: blur(10px); z-index: -1;
}
.hero-signal { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 30px; opacity: 0.8; }
.hero-signal i { display: block; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--ember-bright), var(--ember-deep)); animation: signal 2.4s ease-in-out infinite alternate; }
.hero-signal i:nth-child(1) { height: 8px; animation-delay: -0.2s; }
.hero-signal i:nth-child(2) { height: 16px; animation-delay: -0.7s; }
.hero-signal i:nth-child(3) { height: 11px; animation-delay: -1.1s; }
.hero-signal i:nth-child(4) { height: 22px; animation-delay: -0.4s; }
.hero-signal i:nth-child(5) { height: 14px; animation-delay: -0.9s; }
.hero-signal i:nth-child(6) { height: 19px; animation-delay: -1.4s; }
.hero-signal i:nth-child(7) { height: 9px; animation-delay: -0.6s; }
.hero-signal i:nth-child(8) { height: 24px; animation-delay: -1.2s; }
.hero-signal i:nth-child(9) { height: 12px; animation-delay: -0.3s; }
.hero-signal i:nth-child(10) { height: 17px; animation-delay: -1.5s; }
@keyframes signal { from { transform: scaleY(0.55); opacity: 0.5; } to { transform: scaleY(1); opacity: 1; } }

/* ---------- Converter ---------- */
.converter {
  background: linear-gradient(180deg, #191612 0%, #110f0d 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: clamp(16px, 2.2vw, 24px);
  position: relative;
  overflow: hidden;
}
.converter::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 177, 92, 0.5), transparent);
}
.converter-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.converter-title { display: flex; align-items: center; gap: 10px; }
.converter-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 11px;
  background: rgba(255, 107, 44, 0.14); color: var(--ember-bright);
  border: 1px solid rgba(255, 107, 44, 0.24);
}
.converter-title strong { display: block; font-size: 0.98rem; letter-spacing: -0.01em; }
.converter-title span { display: block; font-size: 0.76rem; color: var(--faint); }
.local-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 999px;
  background: var(--ok-bg); border: 1px solid rgba(110, 231, 168, 0.24);
  color: var(--ok); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.local-badge .icon { width: 12px; height: 12px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; text-align: center;
  min-height: 224px; padding: 28px 18px;
  border: 1.5px dashed rgba(255, 177, 92, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 107, 44, 0.08), transparent 65%),
    rgba(255, 246, 235, 0.018);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-dragover {
  border-color: var(--ember);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 107, 44, 0.14), transparent 65%),
    rgba(255, 246, 235, 0.03);
}
.dropzone.is-dragover { transform: scale(1.005); }
.dropzone-art {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin-bottom: 6px;
  border-radius: 50%; color: var(--ember-bright);
  background: rgba(255, 107, 44, 0.12);
  border: 1px solid rgba(255, 107, 44, 0.26);
}
.dropzone-art .icon { width: 24px; height: 24px; }
.dropzone-ring { position: absolute; inset: -7px; border: 1px solid rgba(255, 107, 44, 0.13); border-radius: 50%; }
.dropzone strong { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; }
.dropzone-sub { color: var(--muted); font-size: 0.94rem; }
.dropzone-sub u { color: var(--ember-bright); text-decoration-color: rgba(255, 177, 92, 0.5); text-underline-offset: 3px; }
.dropzone-note { margin-top: 7px; color: var(--faint); font-size: 0.72rem; line-height: 1.4; }
.converter--compact { padding: 16px; }
.converter--compact .dropzone { min-height: 180px; }

.queue { display: grid; gap: 16px; margin-top: 16px; }
.queue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: var(--muted); }
.file-list { display: grid; gap: 8px; max-height: 230px; overflow-y: auto; padding-right: 2px; }
.file-item {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto auto;
  align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  background: rgba(255, 246, 235, 0.035);
  border: 1px solid var(--line);
}
.file-item-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 107, 44, 0.1); color: var(--ember-bright); }
.file-item-icon .icon { width: 16px; height: 16px; }
.file-item-name { min-width: 0; font-size: 0.84rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item-size { font-size: 0.72rem; color: var(--faint); }
.file-item-remove { border: 0; background: none; color: var(--faint); padding: 4px; border-radius: 6px; }
.file-item-remove:hover { color: var(--err); background: var(--err-bg); }
.file-item-remove .icon { width: 15px; height: 15px; }
.file-item-state { font-size: 0.7rem; color: var(--faint); }
.file-item.is-done .file-item-state { color: var(--ok); }
.file-item.is-error .file-item-state { color: var(--err); }

.settings { display: grid; grid-template-columns: 1fr minmax(130px, 0.42fr); gap: 14px; align-items: end; }
.field-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-group legend, .field > span {
  display: block; margin-bottom: 7px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint);
}
.segmented { display: flex; gap: 4px; padding: 3px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); border-radius: 10px; }
.segment { flex: 1; position: relative; }
.segment input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segment span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 4px; border-radius: 7px;
  font-size: 0.84rem; font-weight: 600; color: var(--muted);
  transition: background 0.16s, color 0.16s;
}
.segment small { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.04em; color: var(--faint); }
.segment input:checked + span { background: var(--text); color: var(--ink); }
.segment input:checked + span small { color: rgba(24, 11, 4, 0.65); }
.segment input:focus-visible + span { outline: 2px solid var(--ember-bright); outline-offset: 1px; }
.field select, .field input, .field textarea {
  width: 100%; padding: 9px 11px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line); border-radius: 9px;
  color: var(--text); font-size: 0.85rem;
}
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--ember); outline: none; }
.convert-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.convert-actions .btn { flex: 1 1 auto; }
.estimate { font-size: 0.75rem; color: var(--faint); }
.progress-wrap { display: grid; gap: 7px; }
.progress { height: 6px; border-radius: 99px; background: rgba(255, 246, 235, 0.08); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ember-deep), var(--ember-bright)); transition: width 0.18s linear; }
.progress-label { margin: 0; font-size: 0.76rem; color: var(--muted); }

.results { display: grid; gap: 16px; margin-top: 18px; padding: 16px; border-radius: var(--radius); background: rgba(110, 231, 168, 0.05); border: 1px solid rgba(110, 231, 168, 0.2); }
.results-head { display: flex; align-items: center; gap: 11px; }
.results-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(110, 231, 168, 0.3); }
.results-head strong { display: block; font-size: 0.95rem; }
.results-head span { display: block; font-size: 0.75rem; color: var(--muted); }
.result-list { display: grid; gap: 7px; }
.result-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; background: rgba(0, 0, 0, 0.2); border-radius: 9px; border: 1px solid var(--line); }
.result-name { min-width: 0; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-meta { font-size: 0.7rem; color: var(--faint); }
.result-download { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 600; color: var(--ember-bright); flex: 0 0 auto; }
.result-download .icon { width: 14px; height: 14px; }
.results-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.results-actions .btn { flex: 1 1 auto; }
.tool-note { font-size: 0.78rem; color: var(--faint); }
.tool-footnote { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 0.72rem; color: var(--faint); }
.tool-footnote span { display: inline-flex; align-items: center; gap: 5px; }
.tool-footnote .icon { width: 13px; height: 13px; }

/* ---------- Trust row ---------- */
.trust-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--line); overflow: hidden;
}
.trust-row li {
  display: flex; align-items: center; gap: 9px;
  padding: 15px 16px; background: rgba(16, 15, 13, 0.9);
  font-size: 0.8rem; color: var(--text-soft);
}
.trust-row .icon { width: 17px; height: 17px; color: var(--ember-bright); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--soft { background: rgba(255, 246, 235, 0.018); border-block: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head > div { max-width: 62ch; }
.section-head h2 { margin: 0; }
.section-lead { margin: 14px 0 0; color: var(--muted); font-size: 1rem; max-width: 56ch; }
.section-head .text-link { flex: 0 0 auto; padding-bottom: 6px; }

/* ---------- Cards ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool-card {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 246, 235, 0.045), rgba(255, 246, 235, 0.012));
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
  overflow: hidden;
}
.tool-card::after {
  content: ''; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 177, 92, 0.35), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.tool-card:hover { transform: translateY(-3px); border-color: rgba(255, 177, 92, 0.28); background: linear-gradient(160deg, rgba(255, 246, 235, 0.06), rgba(255, 246, 235, 0.016)); }
.tool-card:hover::after { opacity: 1; }
.tool-card.is-current { border-color: rgba(255, 107, 44, 0.4); }
.tool-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 13px; background: rgba(255, 107, 44, 0.12);
  color: var(--ember-bright); border: 1px solid rgba(255, 107, 44, 0.22);
}
.tool-card-body { display: grid; gap: 3px; min-width: 0; }
.tool-card-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.tool-card-body strong { font-family: var(--font-display); font-size: 1.24rem; font-weight: 600; letter-spacing: -0.02em; }
.tool-card-copy { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.tool-card-arrow { margin-left: auto; color: var(--faint); transition: transform 0.2s, color 0.2s; flex: 0 0 auto; }
.tool-card:hover .tool-card-arrow { color: var(--ember-bright); transform: translateX(3px); }

.format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.format-card {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: 12px;
  background: rgba(255, 246, 235, 0.025);
  border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.format-card:hover { background: rgba(255, 246, 235, 0.05); border-color: var(--line-strong); transform: translateX(2px); }
.format-ext {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 54px; padding: 6px 8px; border-radius: 7px;
  background: rgba(255, 107, 44, 0.1); border: 1px solid rgba(255, 107, 44, 0.18);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--ember-bright);
  text-transform: uppercase;
}
.format-body { display: grid; min-width: 0; gap: 1px; }
.format-body strong { font-size: 0.88rem; }
.format-body span { font-size: 0.74rem; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.format-arrow { margin-left: auto; width: 15px; height: 15px; color: var(--faint); flex: 0 0 auto; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: var(--radius);
  background: rgba(255, 246, 235, 0.025);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.guide-card:hover { transform: translateY(-3px); border-color: rgba(255, 177, 92, 0.28); }
.guide-meta { display: flex; align-items: center; gap: 8px; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.guide-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.guide-card h3 { font-size: 1.18rem; line-height: 1.22; }
.guide-card p { margin: 0; font-size: 0.87rem; color: var(--muted); }
.guide-card .text-link { margin-top: auto; padding-top: 6px; }

/* ---------- Split feature / local-first ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.split h2 { max-width: 15ch; }
.split .lead { margin: 20px 0 0; color: var(--muted); font-size: 1.03rem; max-width: 46ch; }
.feature-list { display: grid; gap: 20px; margin-top: 30px; }
.feature-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 107, 44, 0.1); color: var(--ember-bright); border: 1px solid rgba(255, 107, 44, 0.18); }
.feature-icon .icon { width: 17px; height: 17px; }
.feature-list strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.feature-list p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.flow-diagram {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 44, 0.1), transparent 60%), rgba(255, 246, 235, 0.02);
  border: 1px solid var(--line); overflow: hidden;
}
.flow-row { display: flex; align-items: center; gap: 10px; }
.flow-node {
  flex: 1; display: grid; gap: 4px; justify-items: center; text-align: center;
  padding: 16px 8px; border-radius: 12px;
  background: rgba(11, 10, 9, 0.65); border: 1px solid var(--line);
}
.flow-node .icon { width: 22px; height: 22px; color: var(--ember-bright); }
.flow-node span { font-size: 0.72rem; color: var(--muted); }
.flow-node strong { font-size: 0.8rem; }
.flow-arrow { color: var(--faint); flex: 0 0 auto; }
.flow-arrow .icon { width: 18px; height: 18px; }
.flow-cloud {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 18px; padding: 10px; border-radius: 9px;
  border: 1px dashed rgba(255, 122, 122, 0.3); background: rgba(255, 122, 122, 0.04);
  color: #d8a0a0; font-size: 0.74rem; text-decoration: line-through;
  text-decoration-color: rgba(255, 122, 122, 0.6);
}
.flow-cloud .icon { width: 14px; height: 14px; }
.flow-caption { margin: 14px 0 0; font-size: 0.72rem; color: var(--faint); text-align: center; }

/* ---------- Stats strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 22px; background: rgba(16, 15, 13, 0.92); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; color: var(--ember-bright); }
.stat span { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--muted); }

/* ---------- Prose ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(36px, 5vw, 64px); align-items: start; }
.prose { max-width: 72ch; color: var(--text-soft); font-size: 1.02rem; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 2.1em 0 0.55em; color: var(--text); font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
.prose h3 { margin: 1.8em 0 0.45em; color: var(--text); }
.prose p { margin: 0 0 1.15em; }
.prose a { color: var(--ember-bright); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5em; padding-left: 0.15em; }
.prose li::marker { color: var(--ember); }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 22px;
  border-left: 2px solid var(--ember);
  background: rgba(255, 107, 44, 0.06);
  border-radius: 0 10px 10px 0; color: var(--text-soft);
}
.prose code {
  padding: 2px 6px; border-radius: 5px;
  background: rgba(255, 246, 235, 0.08); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.86em; color: var(--ember-bright);
}
.prose pre {
  margin: 1.4em 0; padding: 18px; border-radius: 12px;
  background: #0d0c0b; border: 1px solid var(--line);
  overflow-x: auto; font-size: 0.82rem; line-height: 1.6;
}
.prose pre code { padding: 0; border: 0; background: none; color: var(--text-soft); }
.prose hr { margin: 2.2em 0; }
.prose img { border-radius: 12px; border: 1px solid var(--line); }
.prose .lead { font-size: 1.14rem; color: var(--text-soft); }
.prose figcaption { margin-top: 8px; font-size: 0.78rem; color: var(--faint); }

.article-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.side-card { padding: 20px; border-radius: var(--radius); background: rgba(255, 246, 235, 0.025); border: 1px solid var(--line); }
.side-card h2, .side-card h3 { margin: 0 0 10px; font-size: 0.95rem; letter-spacing: 0; }
.side-card p { margin: 0 0 12px; font-size: 0.82rem; color: var(--muted); }
.side-card ul { display: grid; gap: 7px; }
.side-card li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.82rem; color: var(--muted); padding: 4px 0; }
.side-card li a:hover { color: var(--text); }
.side-card li a .icon { width: 13px; height: 13px; color: var(--faint); }
.toc { display: grid; gap: 2px; }
.toc a { padding: 6px 8px; border-radius: 6px; font-size: 0.8rem; color: var(--muted); border-left: 1px solid var(--line); }
.toc a:hover { color: var(--text); border-left-color: var(--ember); background: rgba(255, 246, 235, 0.03); }

/* ---------- Callouts / steps / tables ---------- */
.callout {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px;
  margin: 1.6em 0; padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 246, 235, 0.035); border: 1px solid var(--line);
  font-size: 0.9rem; color: var(--text-soft);
}
.callout-icon { color: var(--ember-bright); }
.callout-icon .icon { width: 19px; height: 19px; }
.callout strong { display: block; margin-bottom: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { background: rgba(255, 196, 107, 0.06); border-color: rgba(255, 196, 107, 0.24); }
.callout--warn .callout-icon { color: var(--amber); }
.callout--ok { background: rgba(110, 231, 168, 0.05); border-color: rgba(110, 231, 168, 0.2); }
.callout--ok .callout-icon { color: var(--ok); }

.step-list { display: grid; gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.step-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ember-bright); padding-top: 3px; }
.step-list strong { display: block; font-size: 0.98rem; margin-bottom: 3px; }
.step-list p { margin: 0; font-size: 0.87rem; color: var(--muted); }

.table-wrap { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.spec-table caption { padding: 12px 14px; text-align: left; font-size: 0.78rem; color: var(--faint); border-bottom: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 34%; color: var(--muted); font-weight: 500; }
.spec-table td { color: var(--text-soft); }
.spec-table strong { color: var(--text); }

.related { margin: 2.2em 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.related-title { margin: 0 0 10px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.related ul { display: flex; flex-wrap: wrap; gap: 8px; }
.related li a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 246, 235, 0.025);
  font-size: 0.82rem; color: var(--text-soft);
}
.related li a:hover { border-color: var(--line-strong); color: var(--text); }
.related li .icon { width: 13px; height: 13px; }

/* ---------- FAQ ---------- */
.faq-section { margin-top: 56px; }
.faq-head { margin-bottom: 22px; }
.faq-head h2 { margin: 0; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 550; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ember-bright); }
.faq-chevron { width: 18px; height: 18px; color: var(--faint); transition: transform 0.25s var(--ease); flex: 0 0 auto; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--ember-bright); }
.faq-answer { padding: 0 40px 22px 2px; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--ember-bright); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA ---------- */
.cta-band { position: relative; padding: clamp(56px, 8vw, 90px) 0; overflow: hidden; border-top: 1px solid var(--line); }
.cta-glow {
  position: absolute; inset: auto 0 -40%; height: 80%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 107, 44, 0.22), transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.cta-inner h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.cta-inner p { margin: 14px auto 0; max-width: 48ch; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 30px; background: rgba(5, 5, 4, 0.45); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin: 16px 0 0; max-width: 34ch; font-size: 0.82rem; color: var(--muted); }
.footer-brand .footer-small { color: var(--faint); font-size: 0.74rem; margin-top: 10px; }
.footer-col h2 { margin: 0 0 12px; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.footer-col ul { display: grid; gap: 7px; }
.footer-col a { font-size: 0.8rem; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: 0.72rem; color: var(--faint); }
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.toast {
  position: fixed; z-index: 300; left: 50%; bottom: 24px; transform: translate(-50%, 12px);
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 16px; border-radius: 10px;
  background: #201c17; border: 1px solid var(--line-strong); color: var(--text);
  font-size: 0.84rem; box-shadow: var(--shadow-soft); opacity: 0; transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Home extras ---------- */
.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.home-intro h2 { max-width: 18ch; }
.home-intro p { max-width: 44ch; margin: 0; color: var(--muted); }
.home-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 34px; }
.mosaic-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: rgba(255, 246, 235, 0.022); }
.mosaic-card--wide { grid-column: span 7; }
.mosaic-card--narrow { grid-column: span 5; }
.mosaic-card h3 { margin-bottom: 8px; }
.mosaic-card p { font-size: 0.87rem; color: var(--muted); }
.mosaic-waves { display: flex; align-items: flex-end; gap: 4px; height: 60px; margin-top: 22px; }
.mosaic-waves i { display: block; flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--ember), rgba(255, 107, 44, 0.12)); opacity: 0.85; }
.mosaic-waves i:nth-child(3n) { opacity: 0.5; }
.mosaic-waves i:nth-child(4n) { opacity: 0.7; }

/* ---------- Cutter ---------- */
.editor { display: grid; gap: 18px; }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.file-chip { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-size: 0.84rem; color: var(--muted); }
.file-chip strong { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
.wave-wrap { position: relative; border-radius: 12px; border: 1px solid var(--line); background: #0c0b0a; overflow: hidden; touch-action: none; user-select: none; }
.wave-canvas { width: 100%; height: 180px; cursor: crosshair; }
.wave-selection {
  position: absolute; top: 0; bottom: 0;
  background: transparent;
  border-left: 1px solid var(--ember); border-right: 1px solid var(--ember);
  pointer-events: none;
}
.wave-handle {
  position: absolute; top: 50%; width: 18px; height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 6px; background: var(--ember); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: ew-resize; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}
.wave-handle::after { content: ''; width: 2px; height: 18px; border-left: 1px solid rgba(0, 0, 0, 0.5); border-right: 1px solid rgba(0, 0, 0, 0.5); }
.wave-playhead { position: absolute; top: 0; bottom: 0; width: 1px; background: #fff; opacity: 0.8; pointer-events: none; }
.wave-empty { display: flex; align-items: center; justify-content: center; height: 180px; color: var(--faint); font-size: 0.84rem; }
.time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.time-field span { display: block; margin-bottom: 5px; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.time-field input { width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); font-family: var(--font-mono); font-size: 0.84rem; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.editor-actions .btn { flex: 1 1 auto; }
.editor-hint { font-size: 0.74rem; color: var(--faint); }

/* ---------- Tag editor ---------- */
.tag-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.tag-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tag-fields .field--full { grid-column: 1 / -1; }
.cover-box { display: grid; gap: 10px; justify-items: center; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.cover-preview { width: 180px; height: 180px; border-radius: 10px; background: rgba(255, 246, 235, 0.05); display: flex; align-items: center; justify-content: center; color: var(--faint); overflow: hidden; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-box p { margin: 0; font-size: 0.7rem; color: var(--faint); text-align: center; }
.tag-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Size calculator ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.calc-card { padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 246, 235, 0.045), rgba(255, 246, 235, 0.012)); border: 1px solid var(--line); }
.calc-card h2 { margin-top: 0; font-size: 1.3rem; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-result { display: grid; gap: 2px; padding: 20px; border-radius: 12px; background: rgba(255, 107, 44, 0.07); border: 1px solid rgba(255, 107, 44, 0.22); }
.calc-result strong { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; color: var(--ember-bright); line-height: 1.1; }
.calc-result span { font-size: 0.76rem; color: var(--muted); }
.calc-note { margin: 14px 0 0; font-size: 0.74rem; color: var(--faint); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin-top: 16px; }
.mini-table th, .mini-table td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.mini-table th:first-child, .mini-table td:first-child { text-align: left; }
.mini-table th { color: var(--faint); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; }
.mini-table td { color: var(--text-soft); font-variant-numeric: tabular-nums; }

/* ---------- Music directory ---------- */
.source-list { display: grid; gap: 12px; margin-top: 26px; }
.source-card {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 16px;
  padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255, 246, 235, 0.022);
}
.source-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 107, 44, 0.1); color: var(--ember-bright); border: 1px solid rgba(255, 107, 44, 0.2); }
.source-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.source-card p { margin: 0 0 8px; font-size: 0.84rem; color: var(--muted); }
.source-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 246, 235, 0.04); font-size: 0.64rem; color: var(--muted); }
.source-link { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--ember-bright); white-space: nowrap; }
.source-link .icon { width: 14px; height: 14px; }

/* ---------- Minimal shell (embed) ---------- */
body.is-embed { background: #0b0a09; }
body.is-embed::before, body.is-embed::after { display: none; }
.embed-shell { padding: 14px; }
.embed-foot { margin-top: 10px; text-align: center; font-size: 0.68rem; color: var(--faint); }
.embed-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:nth-child(4), .footer-col:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy h1 { max-width: 16ch; }
  .hero-tool { max-width: 620px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split h2 { max-width: 20ch; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; grid-template-columns: 1fr 1fr; }
  .tag-layout { grid-template-columns: 1fr; }
  .calc-layout { grid-template-columns: 1fr; }
  .mosaic-card--wide, .mosaic-card--narrow { grid-column: span 6; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .tool-grid, .format-grid, .guide-grid, .stat-strip { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .home-intro { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .settings { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: 1fr 1fr 1fr; }
  .article-side { grid-template-columns: 1fr; }
  .mosaic-card--wide, .mosaic-card--narrow { grid-column: 1 / -1; }
  .tag-fields { grid-template-columns: 1fr; }
  .source-card { grid-template-columns: 40px minmax(0, 1fr); }
  .source-link { grid-column: 2; justify-self: start; }
  .footer-bottom { flex-direction: column; }
  .wave-canvas, .wave-empty { height: 140px; }
  .hero-signal { display: none; }
  .convert-actions .btn { width: 100%; }
  .dropzone { min-height: 200px; }
}
@media (max-width: 420px) {
  .header-inner { gap: 12px; }
  .brand-name { font-size: 1.1rem; }
  .page-title { max-width: none; }
  .footer-top { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: 1fr; }
  .segmented { flex-wrap: wrap; }
  .segment { flex: 1 1 40%; }
}

/* ---------- New component additions ---------- */
[hidden] { display: none !important; }

.tool-wrap { width: 100%; max-width: 800px; margin-inline: auto; }
.mt-24 { margin-top: 24px; }
.mt-34 { margin-top: 34px; }
.mt-44 { margin-top: 44px; }

/* Article header meta */
.article-meta-wrap { max-width: 72ch; margin: 0 0 24px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--faint); font-size: 0.78rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 14px; height: 14px; color: var(--ember-bright); }

/* Sidebar refinements */
.side-card h2 { font-family: var(--font-display); font-weight: 600; }
.side-card ul { display: grid; gap: 7px; }
.side-card li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.side-card li > .icon { width: 14px; height: 14px; margin-top: 3px; color: var(--ember-bright); }
.side-card li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 2px 0; color: var(--muted); }
.side-card li a:hover { color: var(--text); }
.side-card li a .icon { width: 13px; height: 13px; color: var(--faint); }
.side-card--tool {
  background: radial-gradient(ellipse at 100% 0%, rgba(255, 107, 44, 0.14), transparent 60%), rgba(255, 246, 235, 0.03);
  border-color: rgba(255, 177, 92, 0.24);
}
.side-tool-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 12px;
  border-radius: 11px; background: rgba(255, 107, 44, 0.14);
  border: 1px solid rgba(255, 107, 44, 0.26); color: var(--ember-bright);
}
.side-card--tool .btn { width: 100%; }

/* Guide card heading that is an h2 on the hub */
.guide-card h2 { margin: 0; font-size: 1.18rem; line-height: 1.22; letter-spacing: -0.02em; }

/* Table header cells must not inherit the 34% row-label width */
.spec-table thead th {
  width: auto; padding: 10px 14px;
  background: rgba(255, 246, 235, 0.04);
  color: var(--faint); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.spec-table tbody th { width: 34%; color: var(--muted); font-weight: 500; }
.spec-table tbody th, .spec-table tbody td { font-size: 0.86rem; }

/* Music directory */
.source-licence { margin: 8px 0 0; font-size: 0.72rem; color: var(--faint); }
.source-licence strong { color: var(--muted); font-weight: 600; }

/* Embed code block */
.embed-code { border: 1px solid var(--line); border-radius: var(--radius); background: #0c0b0a; overflow: hidden; }
.embed-code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 246, 235, 0.03); }
.embed-code-head span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.embed-code-head .icon { width: 14px; height: 14px; }
.embed-code pre { margin: 0; padding: 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.6; color: var(--text-soft); }
.embed-code code { white-space: pre; }

/* Article section spacing */
.section--article { padding-top: clamp(8px, 2vw, 18px); }

/* Small fixes */
.wave-handle { border: 0; padding: 0; }
.cover-preview .icon { width: 44px; height: 44px; opacity: 0.5; }
.tag-actions { align-items: center; }
.tag-actions .editor-hint { flex: 1 1 220px; }
.source-card h3 { letter-spacing: -0.02em; }

@media (max-width: 760px) {
  .file-item { grid-template-columns: 32px minmax(0, 1fr) auto auto; }
  .file-item-size { display: none; }
  .article-meta { font-size: 0.72rem; }
  .embed-code pre { font-size: 0.7rem; }
}

/* Gone page */
.gone-card { max-width: 720px; margin: 0 auto 34px; }

/* Compact converter header on small phones */
@media (max-width: 420px) {
  .converter-title span { font-size: 0.7rem; }
  .converter-top { gap: 8px; }
  .local-badge { padding: 4px 7px; font-size: 0.6rem; }
  .local-badge .icon { width: 11px; height: 11px; }
}

/* Sponsor slot (renders only when monetization is enabled) */
.ad-slot {
  margin-top: 26px; padding: 20px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: rgba(255, 246, 235, 0.02);
}
.ad-label {
  display: inline-block; margin-bottom: 8px;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint);
}
.ad-slot p { margin: 0 0 8px; font-size: 0.86rem; color: var(--muted); }
.ad-slot p strong { color: var(--text); }

/* Spacing utilities */
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-26 { margin-top: 26px; }
.mt-28 { margin-top: 28px; }
.mt-44 { margin-top: 44px; }

.embed-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  display: block;
  width: 100%;
}

@media (max-width: 360px) {
  .converter-title strong { white-space: nowrap; }
  .converter-title span { display: none; }
  .converter-icon { width: 30px; height: 30px; }
  .local-badge { padding: 4px 7px; font-size: 0.58rem; gap: 3px; }
  .local-badge .icon { display: none; }
}

/* ---------- MP3 download library ---------- */
.dl-hero { position: relative; padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); }
.dl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(34px, 5vw, 64px); align-items: center; }
.dl-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 0.97; letter-spacing: -0.045em; }
.dl-hero h1 .accent {
  background: linear-gradient(100deg, var(--amber), var(--ember) 55%, #ff4d00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dl-hero-lead { max-width: 50ch; margin: 20px 0 0; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.14rem); }
.dl-search {
  position: relative; display: flex; align-items: center; gap: 8px;
  margin-top: 26px; padding: 7px;
  background: linear-gradient(180deg, #1a1713, #110f0d);
  border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.dl-search:focus-within { border-color: rgba(255, 177, 92, 0.55); }
.dl-search-icon { position: absolute; left: 22px; color: var(--faint); pointer-events: none; }
.dl-search-icon .icon { width: 19px; height: 19px; }
.dl-search input {
  flex: 1 1 auto; min-width: 0;
  padding: 12px 10px 12px 40px;
  background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 1rem;
}
.dl-search input::placeholder { color: var(--faint); }
.dl-search .btn { flex: 0 0 auto; min-height: 44px; }
.dl-search--compact { margin-top: 18px; }
.dl-search--compact input { font-size: 0.92rem; }
.dl-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.76rem; color: var(--faint); }
.dl-quick button {
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 246, 235, 0.03);
  color: var(--muted); font-size: 0.72rem;
}
.dl-quick button:hover { color: var(--text); border-color: var(--line-strong); }
.dl-hero-aside { position: relative; }
.dl-stack { display: grid; gap: 10px; }
.dl-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 246, 235, 0.06), rgba(255, 246, 235, 0.015));
  border: 1px solid var(--line);
}
.dl-mini-art { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(255, 107, 44, 0.12); color: var(--ember-bright); border: 1px solid rgba(255, 107, 44, 0.2); }
.dl-mini-art .icon { width: 19px; height: 19px; }
.dl-mini strong { display: block; font-size: 0.88rem; }
.dl-mini span { display: block; font-size: 0.72rem; color: var(--faint); }
.dl-mini-badge { margin-left: auto; font-size: 0.62rem; color: var(--ok); border: 1px solid rgba(110, 231, 168, 0.24); background: var(--ok-bg); padding: 3px 6px; border-radius: 999px; white-space: nowrap; }
.dl-hero-note { margin: 14px 0 0; font-size: 0.72rem; color: var(--faint); }
.dl-tabs { display: flex; gap: 6px; margin: 0 0 22px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.dl-tabs::-webkit-scrollbar { display: none; }
.dl-tab {
  flex: 0 0 auto; padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 246, 235, 0.025);
  color: var(--muted); font-size: 0.8rem; font-weight: 500;
  white-space: nowrap;
}
.dl-tab:hover { color: var(--text); border-color: var(--line-strong); }
.dl-tab.is-active { color: var(--ink); background: var(--text); border-color: var(--text); }
.dl-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dl-results-head h2 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.dl-status { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); min-height: 1.2em; }
.dl-status.is-error { color: var(--err); }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dl-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 246, 235, 0.045), rgba(255, 246, 235, 0.012));
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.dl-card:hover { border-color: rgba(255, 177, 92, 0.3); transform: translateY(-2px); }
.dl-art {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between;
  min-height: 96px; padding: 14px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(140deg, #3a2417, #1b1410);
  border-bottom: 1px solid var(--line);
}
.dl-card--live .dl-art { background: radial-gradient(ellipse at 80% 0%, rgba(255, 177, 92, 0.3), transparent 62%), linear-gradient(140deg, #3d2a1a, #17110d); }
.dl-card--publicdomain .dl-art { background: radial-gradient(ellipse at 80% 0%, rgba(255, 196, 107, 0.26), transparent 62%), linear-gradient(140deg, #2b2a22, #14130f); }
.dl-card--creativecommons .dl-art { background: radial-gradient(ellipse at 80% 0%, rgba(255, 107, 44, 0.3), transparent 62%), linear-gradient(140deg, #3a1f1a, #17100e); }
.dl-card--audiobooks .dl-art { background: radial-gradient(ellipse at 80% 0%, rgba(255, 246, 235, 0.18), transparent 62%), linear-gradient(140deg, #26221d, #12100d); }
.dl-art-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(11, 10, 9, 0.55); color: var(--text); border: 1px solid rgba(255, 246, 235, 0.18); }
.dl-art-icon .icon { width: 20px; height: 20px; }
.dl-art-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247, 242, 233, 0.72); }
.dl-body { display: flex; flex-direction: column; gap: 3px; padding: 16px 16px 12px; flex: 1 1 auto; }
.dl-kicker { margin: 0; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.dl-body h3 { margin: 2px 0 0; font-size: 1.15rem; line-height: 1.18; }
.dl-creator { margin: 2px 0 0; font-size: 0.86rem; color: var(--text-soft); }
.dl-context { margin: 0 0 8px; font-size: 0.74rem; color: var(--faint); }
.dl-license { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: 0.68rem; color: var(--ok); width: fit-content; }
.dl-license .icon { width: 11px; height: 11px; }
.dl-license:hover { color: var(--text); }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 16px 16px; }
.dl-actions .btn { flex: 1 1 auto; }
.dl-source { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; color: var(--faint); }
.dl-source .icon { width: 12px; height: 12px; }
.dl-source:hover { color: var(--text); }
.dl-note { margin: 18px 0 0; font-size: 0.74rem; color: var(--faint); }
.dl-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.collection-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 246, 235, 0.025);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.collection-card:hover { border-color: rgba(255, 177, 92, 0.3); background: rgba(255, 246, 235, 0.045); transform: translateX(2px); }
.collection-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px; background: rgba(255, 107, 44, 0.1); border: 1px solid rgba(255, 107, 44, 0.18); color: var(--ember-bright); }
.collection-icon .icon { width: 19px; height: 19px; }
.collection-body { display: grid; gap: 2px; min-width: 0; }
.collection-body strong { font-size: 0.92rem; }
.collection-body span { font-size: 0.76rem; color: var(--muted); line-height: 1.45; }
.collection-arrow { margin-left: auto; color: var(--faint); flex: 0 0 auto; }
.collection-card:hover .collection-arrow { color: var(--ember-bright); }
.dl-empty { grid-column: 1 / -1; padding: 32px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--muted); }
.dl-empty a { color: var(--ember-bright); text-decoration: underline; text-underline-offset: 3px; }
.tracklist { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.tracklist a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 6px; font-size: 0.74rem; color: var(--muted); background: rgba(0, 0, 0, 0.18); }
.tracklist a:hover { color: var(--text); background: rgba(255, 246, 235, 0.05); }
.tracklist span { color: var(--faint); font-size: 0.66rem; }
.tracklist .icon { width: 12px; height: 12px; }

@media (max-width: 980px) {
  .dl-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-hero-aside { display: none; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dl-search { flex-wrap: wrap; padding: 8px; }
  .dl-search-icon { top: 24px; }
  .dl-search input { flex: 1 1 100%; }
  .dl-search .btn { width: 100%; }
  .dl-grid, .collection-grid { grid-template-columns: 1fr; }
  .dl-results-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dl-art { min-height: 78px; }
}

.dl-results-tools { display: flex; align-items: center; gap: 14px; }
.dl-count { font-size: 0.72rem; color: var(--faint); white-space: nowrap; }
.dl-result {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 246, 235, 0.025);
}
.dl-result-body { min-width: 0; }
.dl-result-body h3 { margin: 2px 0 3px; font-size: 1.05rem; line-height: 1.25; }
.dl-result-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dl-result-actions .btn { min-height: 36px; padding: 8px 12px; font-size: 0.78rem; }
.dl-result-tracks { grid-column: 1 / -1; }
.dl-tracks-label { margin: 4px 0 2px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
@media (max-width: 640px) {
  .dl-result { grid-template-columns: 1fr; }
  .dl-result-actions { justify-content: flex-start; }
}

.dl-tabs { flex-wrap: wrap; overflow: visible; }
@media (max-width: 640px) {
  .dl-tabs { flex-wrap: nowrap; overflow-x: auto; }
}

.dl-hero { padding-bottom: clamp(28px, 3.5vw, 48px); }
@media (max-width: 640px) {
  .dl-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    overflow: visible;
  }
  .dl-tab { text-align: center; padding: 9px 8px; }
}

.section--flat { padding: 8px 0 0; }
.page-hero + .section { padding-top: clamp(12px, 2vw, 24px); }

.dl-hero { padding-bottom: 16px; }

a[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

.dl-tabs { margin-top: 10px; }

.dl-art { justify-content: flex-start; }
.dl-actions { justify-content: space-between; }
.dl-actions .btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .dl-actions .btn { flex: 1 1 auto; }
}

.dl-art { min-height: 72px; align-items: center; justify-content: center; }

.dl-more { display: flex; justify-content: center; margin-top: 18px; }
.dl-more .btn { min-width: 220px; }

/* Direct MP3 link downloader */
.link-tool {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 246, 235, 0.035);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.link-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.link-tool-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.link-tool-label .icon { width: 15px; height: 15px; color: var(--ember-bright); }
.link-tool-badge {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: var(--bg);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.link-row:focus-within {
  border-color: rgba(255, 177, 92, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.12);
}
.link-row-icon { display: grid; place-items: center; padding-left: 8px; color: var(--faint); }
.link-row-icon .icon { width: 18px; height: 18px; }
.link-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  outline: 0;
}
.link-row input::placeholder { color: var(--faint); }
.link-row .btn { flex: 0 0 auto; min-height: 44px; }
.link-rights {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}
.link-rights input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--ember);
  flex: 0 0 auto;
}
.link-hint {
  margin: 10px 0 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--faint);
}
.link-hint code { color: var(--muted); }
.link-hint a { color: var(--ember-bright); text-decoration: underline; text-underline-offset: 3px; }
.link-progress { margin-top: 14px; }
.link-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}
.link-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 246, 235, 0.08);
}
.link-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ember-deep), var(--ember-bright));
  transition: width 160ms linear;
}
.link-result {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 177, 92, 0.3);
  border-radius: 10px;
  background: rgba(255, 107, 44, 0.08);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.link-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 120, 100, 0.35);
  border-radius: 10px;
  background: rgba(255, 80, 60, 0.08);
  color: #ffb4a8;
  font-size: 0.8rem;
  line-height: 1.5;
}
.link-error a { color: #ffd0c7; text-decoration: underline; text-underline-offset: 3px; }
.link-works-card .check-list,
.link-works-card .x-list { gap: 8px; margin: 0 0 16px; }
.link-works-card .check-list li,
.link-works-card .x-list li { align-items: flex-start; }
.link-works-card .check-list .icon { color: #7fd0a8; }
.link-works-card .x-list .icon { color: #ff9a86; }
.link-works-card .check-list .icon,
.link-works-card .x-list .icon { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 3px; }
.link-works-note { margin: 0 !important; font-size: 0.72rem !important; color: var(--faint) !important; }
.dl-hero-secondary { margin: 16px 0 0; font-size: 0.82rem; color: var(--faint); }
.dl-hero-secondary a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dl-hero-secondary a:hover { color: var(--text); }
.link-tool + .hero-meta { margin-top: 18px; }
@media (max-width: 640px) {
  .link-row { flex-wrap: wrap; }
  .link-row input { flex: 1 1 100%; }
  .link-row .btn { width: 100%; }
  .link-tool { padding: 12px; }
}

@media (max-width: 640px) {
  .link-row-icon { display: none; }
  .link-row input { padding-left: 12px; }
}
