/* ==========================================================================
   Midilot — audio to MIDI, without the upload
   A dark studio console with editorial typography.
   ========================================================================== */

/* Typefaces (self-hosted, latin subset) ------------------------------------ */
@font-face {
  font-family: "Instrument Sans";
  src: url("/_a/instrument-sans-latin.6219bc4bfd.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/_a/instrument-sans-italic-latin.d228ca3e0d.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/_a/instrument-serif-latin.60c06664b5.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/_a/instrument-serif-italic-latin.6ee678c33f.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/_a/jetbrains-mono-latin.2c32b9b3ee.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* Tokens ------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #0a0c0b;
  --bg-raised: #0e1210;
  --panel: #111614;
  --panel-hi: #161c19;
  --bone: #ecefe3;
  --ink: #f1f3ec;
  --ink-soft: #c8cfc7;
  --muted: #93a098;
  --muted-2: #7b877f;
  --line: #252d28;
  --hairline: rgba(241, 243, 236, 0.09);
  --lime: #d9ff4a;
  --lime-hot: #e6ff7c;
  --lime-dim: rgba(217, 255, 74, 0.12);
  --coral: #ff9070;
  --amber: #ffc65c;
  --radius: 14px;
  --page: 1180px;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  min-width: 0;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(760px 540px at 82% -6%, rgba(217, 255, 74, 0.055), transparent 62%),
    radial-gradient(680px 520px at -8% 28%, rgba(120, 255, 214, 0.028), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--lime);
  color: #0a0c0b;
}

a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: var(--lime-hot); }

button,
input,
summary { font: inherit; }

button { color: inherit; }

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

:where(a, button, summary, input):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, p, dl, dd, ol, ul { margin-top: 0; }

code {
  padding: 0.12em 0.34em;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.86em;
}

.wrap {
  width: min(calc(100% - 64px), var(--page));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--lime);
  color: #0a0c0b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: none; }

/* Shared micro type -------------------------------------------------------- */
.micro {
  margin: 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: none;
  background: var(--lime);
}
.kicker-idx { color: var(--lime); }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--hairline);
  background: rgba(10, 12, 11, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--lime);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.brand-tag {
  margin-left: 2px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.16s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--lime); }

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.privacy-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(217, 255, 74, 0.12);
  animation: breathe 3.6s ease-in-out infinite;
}
@keyframes breathe {
  50% { box-shadow: 0 0 0 5px rgba(217, 255, 74, 0.04); }
}

/* Hero --------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(52px, 7vw, 92px);
  padding-bottom: clamp(52px, 7vw, 88px);
}

.hero-copy { padding-top: 6px; }

.hero h1 {
  margin: 0;
  font-size: clamp(45px, 5.7vw, 76px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}
.hero h1 em {
  display: block;
  margin-top: 0.04em;
  color: var(--lime);
  font-family: var(--serif);
  font-size: 1.03em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.hero-lede {
  max-width: 47ch;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.25vw, 17.5px);
  line-height: 1.68;
}

.hero-stats {
  display: flex;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--hairline);
}
.hero-stats > div {
  flex: 1;
  min-width: 0;
  padding-right: 18px;
}
.hero-stats > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--hairline);
}
.hero-stats dt {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero-stats dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}
.hero-note svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
}

/* Converter console -------------------------------------------------------- */
.hero-tool { position: relative; }

.hero-tool::before {
  content: "";
  position: absolute;
  top: -8%;
  right: 0;
  width: 72%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(217, 255, 74, 0.1), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.console {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #2a332d;
  border-radius: 18px;
  background: linear-gradient(180deg, #161c19 0%, #0e1311 74%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 34px 80px -34px rgba(0, 0, 0, 0.95);
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 45px;
  padding: 0 18px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.console-brand { display: inline-flex; align-items: center; gap: 9px; }
.console-slash { color: var(--muted-2); }
.console-led {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(217, 255, 74, 0.65);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.console-state { display: inline-flex; align-items: center; gap: 7px; }
.console-state-label { color: var(--ink-soft); }

.console[data-state="working"] .console-led {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 198, 92, 0.8);
  animation: led-pulse 1s ease-in-out infinite;
}
.console[data-state="working"] .console-state-label { color: var(--amber); }
.console[data-state="done"] .console-led { background: var(--lime); }
.console[data-state="loaded"] .console-led { background: var(--lime); }
.console[data-state="loaded"] .console-state-label { color: var(--lime); }
.console[data-state="error"] .console-led {
  background: var(--coral);
  box-shadow: 0 0 10px rgba(255, 144, 112, 0.75);
}
.console[data-state="error"] .console-state-label { color: var(--coral); }
@keyframes led-pulse {
  50% { opacity: 0.35; }
}

.console-body { padding: 22px 20px 20px; }

.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 20px;
  border-top: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.14);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.console-label {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.console-step {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* Drop zone */
.drop-zone {
  position: relative;
  display: flex;
  min-height: 220px;
  padding: 26px 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px dashed #3a443e;
  border-radius: 12px;
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(217, 255, 74, 0.05), transparent 58%),
    rgba(255, 255, 255, 0.012);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.drop-zone:hover,
.drop-zone:focus-within {
  border-color: rgba(217, 255, 74, 0.55);
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(217, 255, 74, 0.075), transparent 58%),
    rgba(255, 255, 255, 0.02);
}
.drop-zone.is-over {
  border-color: var(--lime);
  background: rgba(217, 255, 74, 0.075);
  transform: scale(0.994);
}
.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.drop-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 13px;
  place-items: center;
  border: 1px solid rgba(217, 255, 74, 0.24);
  border-radius: 50%;
  background: rgba(217, 255, 74, 0.06);
  color: var(--lime);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.drop-zone:hover .drop-icon {
  border-color: rgba(217, 255, 74, 0.5);
  background: rgba(217, 255, 74, 0.1);
}

.wave-icon {
  display: flex;
  height: 22px;
  align-items: center;
  gap: 3px;
}
.wave-icon i {
  width: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  animation: wave 1.8s ease-in-out infinite;
}
.wave-icon i:nth-child(1) { height: 8px; animation-delay: 0s; }
.wave-icon i:nth-child(2) { height: 16px; animation-delay: 0.12s; }
.wave-icon i:nth-child(3) { height: 22px; animation-delay: 0.24s; }
.wave-icon i:nth-child(4) { height: 14px; animation-delay: 0.36s; }
.wave-icon i:nth-child(5) { height: 7px; animation-delay: 0.48s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.62); }
  50% { transform: scaleY(1); }
}
.drop-check { display: none; width: 24px; height: 24px; }

.drop-title {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop-hint {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.drop-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 16px;
}
.drop-formats span {
  padding: 3px 6px;
  border: 1px solid #2c352f;
  border-radius: 4px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.drop-zone.has-file {
  min-height: 132px;
  border-style: solid;
  border-color: rgba(217, 255, 74, 0.4);
  background: rgba(217, 255, 74, 0.055);
}
.drop-zone.has-file .wave-icon { display: none; }
.drop-zone.has-file .drop-check { display: block; }
.drop-zone.has-file .drop-formats { display: none; }
.drop-zone.has-file .drop-title { font-size: 14px; }
.drop-zone.has-file .drop-hint { font-size: 11.5px; }

/* Selected file row */
.file-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
  padding: 9px 10px 9px 11px;
  border: 1px solid #2a332d;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}
.file-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  flex: none;
  padding: 0 7px;
  border: 1px solid rgba(217, 255, 74, 0.28);
  border-radius: 5px;
  background: rgba(217, 255, 74, 0.08);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.file-details {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}
.file-details strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-details small {
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.015em;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.icon-button svg { width: 14px; height: 14px; }
.icon-button:hover {
  border-color: var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

/* Actions */
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
}
.privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.4;
}
.privacy-note svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--muted);
}

.primary-button,
.cta-button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  background: var(--lime);
  color: #0a0c0b;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.primary-button {
  min-height: 48px;
  flex: none;
  padding: 0 18px;
  font-size: 12.5px;
  letter-spacing: 0.005em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 8px 22px -12px rgba(217, 255, 74, 0.7);
}
.primary-button svg { width: 15px; height: 15px; }
.primary-button:hover:not(:disabled) {
  background: var(--lime-hot);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 12px 26px -12px rgba(217, 255, 74, 0.8);
  transform: translateY(-1px);
}
.primary-button:active:not(:disabled) { transform: translateY(0); }
.primary-button:disabled {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
}
.primary-button:disabled svg { opacity: 0.45; }

/* Status */
.status {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.5;
}
.status-line { display: flex; align-items: center; gap: 8px; }
.status-indicator {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
}
.status.is-working .status-indicator {
  background: var(--amber);
  animation: led-pulse 1s ease-in-out infinite;
}
.status.is-error {
  border-color: rgba(255, 144, 112, 0.28);
  background: rgba(255, 144, 112, 0.06);
  color: #ffb7a4;
}
.status.is-error .status-indicator { background: var(--coral); }
.status-track {
  display: none;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: #232b26;
}
.status.is-working .status-track { display: block; }
.status-fill {
  display: block;
  width: var(--progress, 8%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), #f7ffd0);
  transition: width 0.25s ease;
}

/* Result */
.result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.result-head .micro { margin-bottom: 3px; color: var(--lime); font-size: 8.5px; }
.result h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.download-button {
  min-height: 38px;
  flex: none;
  padding: 0 12px;
  font-size: 11px;
}
.download-button svg { width: 14px; height: 14px; }
.download-button:hover {
  background: var(--lime-hot);
  transform: translateY(-1px);
}
.result-meta {
  margin: 12px 0 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.01em;
  line-height: 1.65;
}
.roll-wrap {
  overflow: hidden;
  border: 1px solid #28312c;
  border-radius: 9px;
  background: #0b100e;
}
#pianoRoll { display: block; width: 100%; height: 228px; }
.note-list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 7px;
}
.note-list-header h3 {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.note-list-header span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
}
.table-wrap:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.table-wrap {
  max-height: 214px;
  overflow: auto;
  border: 1px solid #28312c;
  border-radius: 8px;
  scrollbar-color: #35403a transparent;
  scrollbar-width: thin;
}
.table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { border-radius: 4px; background: #35403a; }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 10.5px;
  text-align: left;
}
th, td { padding: 7px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #141a17;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
td { color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--muted-2); }
table.note-table td:nth-child(2) { color: var(--lime); }
.result-footnote {
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
}

/* Capability band ---------------------------------------------------------- */
.capability {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.capability > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 17px 22px;
}
.capability > div + div { border-left: 1px solid var(--hairline); }
.capability dt {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.capability dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12.5px;
  letter-spacing: -0.005em;
  line-height: 1.45;
  text-overflow: ellipsis;
}

/* Sections ----------------------------------------------------------------- */
.section, .result, #converter { scroll-margin-top: 96px; }

.section {
  padding-top: clamp(64px, 7.5vw, 104px);
  padding-bottom: clamp(64px, 7.5vw, 104px);
  border-top: 1px solid var(--hairline);
}

.section-head {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(34px, 4.5vw, 52px);
}
.section-label {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 5px 0 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-label span { color: var(--lime); }
.section-head h2 {
  max-width: 21ch;
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 1.02;
}
.section-head h2 em {
  color: var(--lime);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.section-head p {
  max-width: 60ch;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* Steps -------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--hairline);
  list-style: none;
}
.steps li {
  padding: 26px 26px 28px;
  background: var(--bg);
  transition: background 0.2s ease;
}
.steps li:hover { background: #0d1210; }
.step-num {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.steps h3 {
  margin: 38px 0 7px;
  font-size: 18.5px;
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.steps p {
  max-width: 33ch;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.step-meta {
  display: block;
  margin-top: 28px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Formats ------------------------------------------------------------------ */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--hairline);
}
.spec-card {
  padding: 26px;
  background: var(--bg);
}
.spec-card > .micro { margin-bottom: 18px; color: var(--muted-2); }
.format-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.format-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.065);
}
.format-list li:last-child { border-bottom: 0; }
.format-list strong {
  width: 46px;
  flex: none;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.format-list span { color: var(--ink-soft); font-size: 13px; }
.format-list small {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.spec-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.65;
}
.spec-sheet { margin: 0; }
.spec-sheet > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.spec-sheet > div:last-child { border-bottom: 0; }
.spec-sheet dt {
  padding-top: 1px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.6;
  text-transform: uppercase;
}
.spec-sheet dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.55;
}
.spec-sheet .is-warning dt { color: rgba(255, 144, 112, 0.75); }
.spec-sheet .is-warning dd { color: #e8b2a4; }

/* Honest limits panel ------------------------------------------------------ */
.limits-section { border-top: 0; }
.limit-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4.4vw, 52px);
  border-radius: 20px;
  background: var(--bone);
  color: #0b0f0c;
}
.limit-panel::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -10%;
  width: 46%;
  height: 92%;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(90deg, rgba(11, 15, 12, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(11, 15, 12, 0.09) 1px, transparent 1px);
  background-size: 46px 38px;
  -webkit-mask-image: radial-gradient(closest-side at 70% 70%, #000, transparent 75%);
  mask-image: radial-gradient(closest-side at 70% 70%, #000, transparent 75%);
  transform: rotate(-6deg);
}
.limit-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 46px);
}
.limit-panel .section-label { margin: 0; color: #6c786d; }
.limit-panel .section-label span { color: #0b0f0c; }
.limit-badge {
  padding: 5px 9px;
  border: 1px solid rgba(11, 15, 12, 0.18);
  border-radius: 999px;
  color: #4c584d;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.limit-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}
.limit-panel h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(34px, 4.1vw, 54px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.99;
}
.limit-panel h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.limit-copy p {
  max-width: 48ch;
  margin: 0 0 22px;
  color: #3e4a40;
  font-size: 13.5px;
  line-height: 1.7;
}
.limit-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid rgba(11, 15, 12, 0.14);
  border-bottom: 1px solid rgba(11, 15, 12, 0.14);
}
.limit-cols h3 {
  margin: 0 0 10px;
  color: #3e4a40;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.limit-cols ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.limit-cols li {
  display: flex;
  gap: 8px;
  color: #3e4a40;
  font-size: 11.5px;
  line-height: 1.5;
}
.limit-cols li::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  margin-top: 6px;
  border-radius: 50%;
  background: #0b0f0c;
}
.limit-cols .is-muted h3 { color: #5f6b60; }
.limit-cols .is-muted li { color: #4f5b51; }
.limit-cols .is-muted li::before {
  background: transparent;
  box-shadow: inset 0 0 0 1px #99a29a;
}
.limit-footnote {
  margin: 18px 0 0;
  color: #5c685e;
  font-size: 11px;
  line-height: 1.6;
}

/* FAQ ---------------------------------------------------------------------- */
.faq-list { border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 2px;
  color: var(--ink);
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.45;
  list-style: none;
  transition: color 0.16s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--lime); }
.faq-num {
  width: 22px;
  flex: none;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.faq-q { flex: 1; padding-right: 12px; }
.faq-icon {
  position: relative;
  width: 27px;
  height: 27px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink-soft);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.18s ease;
}
.faq-icon::before {
  width: 10px;
  height: 1px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 1px;
  height: 10px;
  transform: translate(-50%, -50%);
}
.faq-list details[open] .faq-icon {
  border-color: var(--lime);
  background: var(--lime);
}
.faq-list details[open] .faq-icon::before,
.faq-list details[open] .faq-icon::after { background: #0a0c0b; }
.faq-list details[open] .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-list details p {
  max-width: 74ch;
  margin: 0;
  padding: 0 52px 22px 38px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

/* Next step card ----------------------------------------------------------- */
.next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(217, 255, 74, 0.035), transparent 55%);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.next-step:hover {
  border-color: rgba(217, 255, 74, 0.38);
  background: linear-gradient(120deg, rgba(217, 255, 74, 0.07), transparent 60%);
  color: var(--ink);
  transform: translateY(-2px);
}
.next-step > span { display: flex; flex-direction: column; gap: 3px; }
.next-step .micro { color: var(--lime); font-size: 9px; }
.next-step strong {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.next-step-copy { color: var(--muted); font-size: 12px; line-height: 1.5; }
.next-step svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--lime);
  transition: transform 0.18s ease;
}
.next-step:hover svg { transform: translateX(3px); }

/* CTA ---------------------------------------------------------------------- */
.cta {
  position: relative;
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80%;
  pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%, rgba(217, 255, 74, 0.075), transparent 70%);
}
.cta > * { position: relative; }
.cta .micro { color: var(--muted-2); }
.cta h2 {
  margin: 16px 0 0;
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1;
}
.cta h2 em {
  color: var(--lime);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.cta-button {
  min-height: 52px;
  margin-top: 32px;
  padding: 0 22px;
  font-size: 13.5px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 14px 34px -16px rgba(217, 255, 74, 0.75);
}
.cta-button svg { width: 16px; height: 16px; }
.cta-button:hover {
  background: var(--lime-hot);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 18px 38px -16px rgba(217, 255, 74, 0.85);
}
.cta-meta {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

/* Sponsored placement ----------------------------------------------------- */
.sponsor-wrap { padding-bottom: clamp(52px, 7vw, 88px); }
.sponsor-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}
.sponsor-label { margin: 0; color: var(--lime); }
.sponsor-card h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -0.04em; }
.sponsor-copy { max-width: 54ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.sponsor-banner { width: min(250px, 100%); min-height: 250px; display: grid; place-items: center; overflow: hidden; }
.sponsor-banner a { display: block; max-width: 100%; line-height: 0; }
.sponsor-banner img { display: block; width: min(250px, 100%); height: auto; max-height: 250px; object-fit: contain; }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-top: 46px;
  padding-bottom: 28px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr auto;
  gap: 36px;
  align-items: start;
}
.footer-brand p {
  max-width: 32ch;
  margin: 15px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.65;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .micro { margin-bottom: 4px; color: var(--muted-2); font-size: 9px; }
.footer-col a {
  color: var(--ink-soft);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.16s ease;
}
.footer-col a:hover { color: var(--lime); }
.footer-end { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer-end p {
  margin: 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-align: right;
  text-transform: uppercase;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ==========================================================================
   Secondary pages
   ========================================================================== */
.page-main {
  padding-top: clamp(44px, 6vw, 78px);
  padding-bottom: clamp(56px, 7vw, 88px);
}
.page-shell {
  width: min(calc(100% - 64px), 860px);
  margin-inline: auto;
}
.page-intro { margin-bottom: 34px; }
.page-intro .kicker { margin-bottom: 22px; }
.page-intro h1 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 66px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.98;
}
.page-intro h1 em {
  display: block;
  margin-top: 0.05em;
  color: var(--lime);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.page-lede {
  max-width: 56ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.content-card {
  padding: clamp(24px, 4.2vw, 46px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #121715 0%, #0d1110 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
.content-card > :first-child { margin-top: 0; }
.content-card > :last-child { margin-bottom: 0; }
.content-card h2 {
  margin: 36px 0 10px;
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.032em;
  line-height: 1.25;
}
.content-card h2:first-child { margin-top: 0; }
.content-card h3 {
  margin: 26px 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.015em;
}
.content-card p,
.content-card li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}
.content-card p { margin: 0 0 14px; }
.content-card ul,
.content-card ol { display: grid; gap: 7px; margin: 0 0 18px; padding-left: 22px; }
.content-card li::marker { color: var(--lime); font-family: var(--mono); font-size: 0.82em; }
.content-card strong { color: var(--ink); font-weight: 600; }
.content-card .page-lead {
  margin-bottom: 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 2.5vw, 26px);
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.content-card code { font-size: 0.85em; }
.content-card a { color: var(--lime); }
.content-card a:hover { color: var(--lime-hot); }

.content-card details {
  border-top: 1px solid var(--hairline);
  margin-top: 22px;
}
.content-card details:last-of-type { border-bottom: 1px solid var(--hairline); }
.content-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.5;
  list-style: none;
}
.content-card summary::-webkit-details-marker { display: none; }
.content-card summary::after {
  content: "+";
  flex: none;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.content-card details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}
.content-card details p {
  margin: -2px 0 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}
.content-card details + p { margin-top: 24px; }

.callout {
  margin: 0 0 26px;
  padding: 15px 18px;
  border-left: 2px solid var(--lime);
  border-radius: 0 9px 9px 0;
  background: rgba(217, 255, 74, 0.05);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.callout strong { color: var(--ink); }

.policy-meta {
  margin: 16px 0 26px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.guide-list {
  counter-reset: guide;
  display: grid;
  gap: 18px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.guide-list li {
  position: relative;
  padding: 16px 18px 16px 56px;
  border: 1px solid var(--hairline);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  counter-increment: guide;
}
.guide-list li::before {
  content: "0" counter(guide);
  position: absolute;
  top: 17px;
  left: 18px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.guide-list strong { display: block; margin-bottom: 2px; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 28px 0 0;
  border: 1px solid var(--hairline);
  border-radius: 11px;
  background: var(--hairline);
}
.mini-stats > div { padding: 14px 16px; background: var(--bg-raised); }
.mini-stats dt {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mini-stats dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.contact-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  margin: 4px 0 20px;
  padding: 0 20px;
  border-radius: 9px;
  background: var(--lime);
  color: #0a0c0b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 10px 26px -14px rgba(217, 255, 74, 0.7);
  transition: background 0.16s ease, transform 0.16s ease;
}
.contact-link:hover {
  background: var(--lime-hot);
  color: #0a0c0b;
  transform: translateY(-1px);
}
.content-card a.contact-link { color: #0a0c0b; }
.content-card a.primary-button,
.content-card a.primary-button:hover { color: #0a0c0b; }
.content-card a.contact-link:hover { color: #0a0c0b; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.16s ease;
}
.back-link:hover { color: var(--lime); }

/* ==========================================================================
   Latest site components
   Dark studio system shared by tools, tutorials, evidence pages and content.
   ========================================================================== */

/* Shared eyebrow ---------------------------------------------------------- */
.eyebrow {
  margin: 0 0 8px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

/* Page shells ------------------------------------------------------------- */
.content-main {
  width: min(calc(100% - 64px), 1000px);
  margin: 0 auto;
  padding-top: clamp(46px, 6vw, 76px);
  padding-bottom: clamp(64px, 8vw, 100px);
}
.content-main > .content-card,
.content-main > .tool-card,
.content-main > .workspace,
.content-main > .details {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.content-main > .workspace { margin-bottom: 18px; }
.content-main > .details + .details { margin-top: 18px; }
.content-main > .content-card { margin-top: 18px; }
.content-main > .workspace + .content-card { margin-top: 18px; }

/* Tool card --------------------------------------------------------------- */
.tool-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #2a332d;
  border-radius: 18px;
  background: linear-gradient(180deg, #151b18 0%, #0e1311 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), transparent 44%);
  opacity: 0.72;
}
.workspace { display: block; }

.tool-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 2px;
}
.tool-heading h1,
.tool-heading h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.local-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 6px 9px;
  border: 1px solid rgba(217, 255, 74, 0.24);
  border-radius: 999px;
  background: rgba(217, 255, 74, 0.06);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.converter-intro {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.converter-scope {
  max-width: 64ch;
  margin: 12px 0 20px;
  padding: 10px 13px;
  border-left: 2px solid var(--lime);
  border-radius: 0 8px 8px 0;
  background: rgba(217, 255, 74, 0.045);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}
.converter-scope strong { color: var(--ink); }
.converter-scope a { color: var(--lime); }

/* Converter cards on WAV / voice pages sit inside the dark console shell */
.workspace > .console { max-width: 820px; margin: 0 auto; }
.console .tool-heading { margin-bottom: 2px; }
.console .tool-heading h1 {
  max-width: 22ch;
  font-size: clamp(27px, 3.4vw, 38px);
}
.console .converter-intro { max-width: 60ch; }
.console .converter-scope { margin-bottom: 18px; }
.console-body > .console-scope { margin-top: 0; }

/* Legacy detail cards (WAV / voice pages) --------------------------------- */
.details { width: 100%; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.detail-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}
.detail-card > .eyebrow { margin-bottom: 9px; }
.detail-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.detail-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.detail-card p:last-child { margin-bottom: 0; }
.detail-card .steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: none;
}
.detail-card .steps li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 0;
  background: transparent;
}
.detail-card .steps li:hover { background: transparent; }
.detail-card .steps li > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: none;
  place-items: center;
  border-radius: 7px;
  color: var(--lime);
  background: rgba(217, 255, 74, 0.08);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}
.detail-card .steps p { margin: 0; font-size: 12.5px; }
.detail-card .steps strong { color: var(--ink); font-size: 13px; }
.unsupported strong { color: var(--coral); }
.limit-note { padding-top: 10px; border-top: 1px solid var(--hairline); }
.limit-note strong { color: var(--ink); }
.expectations { margin-top: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.018); }
.expectations > .eyebrow { margin-bottom: 9px; }
.expectations h2 { margin: 0 0 10px; font-size: 20px; font-weight: 550; letter-spacing: -0.03em; }
.expectations p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.details > p { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.details > p a { color: var(--lime); }

/* Legacy FAQ blocks ------------------------------------------------------- */
.faq {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}
.faq > .eyebrow { margin-bottom: 9px; }
.faq h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.03em;
}
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.5;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

/* Content cards ----------------------------------------------------------- */
.content-card {
  position: relative;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), transparent);
  opacity: 0.8;
}
.content-card > .eyebrow {
  margin-bottom: 13px;
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.content-card h1 {
  max-width: 23ch;
  margin: 0 0 22px;
  font-size: clamp(38px, 4.7vw, 56px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1.02;
}
.content-card .page-lead { max-width: 62ch; }
.content-card p,
.content-card li { font-size: 15px; line-height: 1.78; }
.content-card p { max-width: 78ch; }
.content-card h2 { margin-top: 38px; font-size: 25px; }
.content-card h3 { margin-top: 26px; font-size: 17.5px; }
.content-card summary { max-width: none; }
.content-card .policy-meta { margin-top: 14px; }
.content-card > section > h2:first-child { margin-top: 30px; }

/* Figures ----------------------------------------------------------------- */
.guide-figure { margin: 28px 0; }
.guide-figure > a,
.guide-figure > img {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f3f5ec;
  box-shadow: 0 22px 54px -40px rgba(0, 0, 0, 0.95);
}
.guide-figure > a:hover { border-color: rgba(217, 255, 74, 0.5); }
.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.guide-figure figcaption {
  max-width: 74ch;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.65;
}
.guide-figure figcaption a { color: var(--muted); }
.sample-figure img { width: 360px; max-width: 100%; }
.case-chart {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3f5ec;
}
.case-chart img {
  display: block;
  width: 100%;
  min-width: 560px;
  height: auto;
}

/* Tables ------------------------------------------------------------------ */
.guide-table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
}
.guide-table-wrap:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.guide-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13.5px;
}
.guide-table caption {
  caption-side: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}
.guide-table th,
.guide-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.guide-table th {
  position: static;
  background: transparent;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.guide-table td {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}
.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table th[scope="row"] {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.guide-table td:nth-child(2) { color: var(--ink-soft); font-weight: 400; }
.guide-table th:first-child { width: 30%; }
.guide-table.observed-notes-table th:first-child { width: 20%; }

/* Reference cards --------------------------------------------------------- */
.reference-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.reference-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}
.reference-card h3 { margin: 0 0 8px; font-size: 16px; }
.reference-card p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.reference-card a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--lime);
  font-size: 12.5px;
}

/* Tutorial pages ---------------------------------------------------------- */
.tutorial-article { max-width: 900px; }
.tutorial-lead {
  max-width: 65ch;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}
.tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.tutorial-actions a:not(.primary-button) {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.tutorial-actions a:not(.primary-button):hover {
  border-color: rgba(217, 255, 74, 0.45);
  background: rgba(217, 255, 74, 0.05);
  color: var(--lime);
}
.tutorial-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.tutorial-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.tutorial-toc a:hover { color: var(--lime); }
.guide-steps {
  counter-reset: guide-step;
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.guide-steps li {
  position: relative;
  padding: 18px 20px 18px 54px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  counter-increment: guide-step;
}
.guide-steps li::before {
  content: "0" counter(guide-step);
  position: absolute;
  top: 19px;
  left: 18px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}
.guide-steps h3 { margin: 0 0 4px; font-size: 16px; }
.guide-steps p { margin: 0; }
.tutorial-note {
  padding: 15px 18px;
  border-left: 2px solid var(--lime);
  border-radius: 0 9px 9px 0;
  background: rgba(217, 255, 74, 0.045);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
}
.tutorial-file-list {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}
.tutorial-file-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.sample-check { padding: 16px 0; border-top: 1px solid var(--hairline); }
.small-data { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.case-label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.reference-download-status { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* WAV / voice evidence ---------------------------------------------------- */
.wav-guide { margin-top: 18px; }
.stereo-case {
  margin: 26px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}
.stereo-case > .eyebrow { margin-bottom: 10px; font-size: 10px; }
.stereo-case h2 { margin-top: 0; }
.voice-stress-case {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.voice-stress-case figure { margin: 22px 0; }
.voice-stress-case figcaption {
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.65;
}
.voice-stress-case .case-note {
  padding: 14px 16px;
  border-left: 2px solid var(--lime);
  border-radius: 0 8px 8px 0;
  background: rgba(217, 255, 74, 0.04);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.voice-stress-case .case-links {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}
.voice-stress-case .case-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.chart-scroll-hint {
  margin: 18px 0 8px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.case-table th:first-child { width: 28%; }
.case-table td,
.case-table th { padding: 12px 8px; overflow-wrap: anywhere; }

/* Duration boundary evidence (WAV page) ----------------------------------- */
#duration-check {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
#duration-check .duration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
#duration-check .duration-actions button {
  min-height: 44px;
  max-width: 100%;
  padding: 0 16px;
  border: 1px solid rgba(217, 255, 74, 0.35);
  border-radius: 8px;
  background: rgba(217, 255, 74, 0.05);
  color: var(--lime);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: normal;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
#duration-check .duration-actions button:hover {
  border-color: var(--lime);
  background: rgba(217, 255, 74, 0.1);
  color: var(--lime-hot);
}
#durationBuildStatus {
  min-height: 1.5em;
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
}
#duration-check .guide-figure > img {
  width: 360px;
  max-width: 100%;
  margin-inline: auto;
}
@media (max-width: 640px) {
  #duration-check .duration-actions { flex-direction: column; }
  #duration-check .duration-actions button { width: 100%; }
}

/* Tool forms (MIDI / MusicXML / YouTube) ---------------------------------- */
.conversion-tool { padding: clamp(24px, 4vw, 38px); }
.conversion-tool > .eyebrow { margin-bottom: 11px; color: var(--lime); }
.conversion-tool h1 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 1.04;
}
.file-picker {
  display: grid;
  gap: 9px;
  margin: 22px 0 18px;
  padding: 20px;
  border: 1px dashed #3a443e;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}
.file-picker label {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}
.file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.file-picker label {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border-radius: 8px;
  background: var(--lime);
  color: #0a0c0b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease;
}
.file-picker label:hover { background: var(--lime-hot); }
.file-picker:focus-within label { outline: 2px solid var(--lime); outline-offset: 3px; }
.file-picker span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.field-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--ink-soft);
  font-size: 12.5px;
}
.field-label select,
.url-field,
#youtubeUrl {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b100e;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  color-scheme: dark;
}
#youtubeUrl {
  display: block;
  width: 100%;
  margin: 10px 0;
}
#youtubeUrl::placeholder { color: var(--muted-2); }
#loadVideo { margin-top: 4px; }
.score-options { display: grid; gap: 12px; margin-top: 18px; }
.score-options label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}
.score-options select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b100e;
  color: var(--ink);
  font: inherit;
  color-scheme: dark;
}
.tool-buttons,
.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.tool-buttons button,
.download-links a,
#printScore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.tool-buttons button:hover:not(:disabled),
.download-links a:hover,
#printScore:hover {
  border-color: rgba(217, 255, 74, 0.45);
  background: rgba(217, 255, 74, 0.05);
  color: var(--lime);
}
.tool-buttons .primary-button {
  border: 0;
  background: var(--lime);
  color: #0a0c0b;
}
.tool-buttons .primary-button:hover:not(:disabled) {
  background: var(--lime-hot);
  color: #0a0c0b;
}
.tool-buttons button:disabled { opacity: 0.35; cursor: not-allowed; }
.tool-buttons .primary-button:disabled {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  opacity: 1;
}
#toolStatus {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
#toolStatus.is-error { color: #ffb7a4; }
#eventCount {
  margin: 10px 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}
.conversion-tool .table-wrap { max-height: 320px; margin-top: 14px; }
.conversion-tool table { font-size: 11.5px; }
.conversion-tool .table-wrap td:first-child {
  color: var(--lime);
  font-weight: 500;
}
.conversion-tool .table-wrap td:nth-child(2) {
  color: var(--ink-soft);
  font-weight: 400;
}
#scoreArea {
  margin: 16px 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3f5ec;
  color: #0b0f0c;
}
#scoreArea svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
#scoreArea:empty { display: none; }
#scoreArea:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
#scoreArea { scrollbar-width: thin; scrollbar-color: #35403a transparent; }
@media (max-width: 640px) {
  #scoreArea svg { width: 620px; max-width: none; }
}
audio,
#capturePreview {
  width: 100%;
  max-width: 100%;
  margin-top: 14px;
  color-scheme: dark;
}
#mp3Download,
#wavDownload,
#midiDownload,
#svgDownload,
#abcDownload,
#captureDownload { color: var(--lime); border-color: rgba(217, 255, 74, 0.35); }
#printScore { margin: 0; }

/* Captured-audio converter (YouTube) -------------------------------------- */
.workspace .tool-card {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 36px);
}
.workspace .tool-card .tool-heading h2 { font-size: clamp(26px, 3.1vw, 34px); }
#recordingPanel { margin-top: 22px; }
#recordingPanel > audio { margin-top: 12px; }
#recordingPanel .workspace { margin-top: 18px; }
#capturePreview { display: block; }

/* YouTube capture --------------------------------------------------------- */
.capture-requirements {
  margin: 16px 0;
  padding: 13px 15px;
  border: 1px solid rgba(217, 255, 74, 0.22);
  border-left: 3px solid var(--lime);
  border-radius: 0 10px 10px 0;
  background: rgba(217, 255, 74, 0.045);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
}
.capture-requirements strong { display: block; margin-bottom: 3px; color: var(--ink); }
.capture-fallback {
  padding: 13px 15px;
  border: 1px solid rgba(255, 144, 112, 0.28);
  border-radius: 10px;
  background: rgba(255, 144, 112, 0.05);
  color: #ffb7a4;
  font-size: 12.5px;
  line-height: 1.7;
}
.capture-fallback strong { display: block; margin-bottom: 3px; color: #ffd0c2; }
.rights-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.65;
}
.rights-check input { flex: none; margin-top: 3px; accent-color: var(--lime); }
#playerPanel {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}
#playerPanel > p { color: var(--muted); font-size: 12px; line-height: 1.65; }
#youtubePlayer {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 8px;
  background: #000;
}
#playerPanel .tool-buttons { margin-bottom: 8px; }

/* Workflow guide / tools hub --------------------------------------------- */
.workflow-guide {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(217, 255, 74, 0.035), transparent 52%), rgba(255, 255, 255, 0.012);
}
.workflow-guide h2 {
  max-width: 21ch;
  margin: 0;
  font-size: clamp(28px, 3.7vw, 42px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.workflow-choices {
  counter-reset: workflow;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.workflow-choices li {
  position: relative;
  padding: 20px 20px 20px 50px;
  border: 1px solid var(--hairline);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  counter-increment: workflow;
}
.workflow-choices li::before {
  content: "0" counter(workflow);
  position: absolute;
  top: 20px;
  left: 18px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}
.workflow-choices strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}
.workflow-choices a { color: var(--lime); }
.workflow-evidence {
  margin: 20px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.7;
}
.workflow-evidence a { color: var(--muted); }

.tools-hub > .eyebrow { margin-bottom: 12px; }
.tools-hub h2 {
  margin: 0;
  font-size: clamp(28px, 3.7vw, 42px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.tools-hub > p {
  max-width: 65ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.tool-link {
  position: relative;
  display: flex;
  min-height: 132px;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.tool-link::after {
  content: "↗";
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
  transition: color 0.18s ease;
}
.tool-link strong {
  padding-right: 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.tool-link span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.tool-link:hover {
  border-color: rgba(217, 255, 74, 0.42);
  background: rgba(217, 255, 74, 0.045);
  color: var(--ink);
  transform: translateY(-2px);
}
.tool-link:hover::after { color: var(--lime); }
.tool-grid,
.tutorial-grid { counter-reset: tool-card; }
.tool-grid .tool-link,
.tutorial-grid .tool-link { counter-increment: tool-card; padding-bottom: 36px; }
.tool-grid .tool-link::before,
.tutorial-grid .tool-link::before {
  content: "0" counter(tool-card);
  position: absolute;
  bottom: 15px;
  left: 18px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  line-height: 1;
  transition: color 0.18s ease;
}
.tool-grid .tool-link:hover::before,
.tutorial-grid .tool-link:hover::before { color: var(--lime); }

.tutorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.tutorial-grid .tool-link { min-height: 118px; }

.section-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.section-foot-links a { color: var(--lime); text-decoration: none; }
.section-foot-links a:hover { color: var(--lime-hot); }

/* Study / evidence card --------------------------------------------------- */
.study-card { max-width: 900px; margin: 0 auto; }
.study-card > .eyebrow { color: var(--lime); }
.study-card h2 { margin-top: 0; }
.study-card .guide-figure { margin: 26px 0; }
.study-card details { margin-top: 20px; }

/* Footer extended --------------------------------------------------------- */
.footer-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.15fr) minmax(0, 0.62fr) auto;
  gap: 32px;
}
.footer-col-wide { min-width: 0; }
.footer-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}
.footer-link-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--ink-soft);
  font-size: 12.5px;
  text-decoration: none;
}
.footer-link-grid a:hover { color: var(--lime); }
.footer-end { align-items: flex-end; }
.footer-bottom { flex-wrap: wrap; }

/* Print the notation draft on white paper --------------------------------- */
@media print {
  body[data-tool="midi-to-sheet-music"] {
    background: #fff;
    color: #000;
  }
  body[data-tool="midi-to-sheet-music"] .site-header,
  body[data-tool="midi-to-sheet-music"] .site-footer,
  body[data-tool="midi-to-sheet-music"] .tool-guide,
  body[data-tool="midi-to-sheet-music"] .conversion-tool > :not(#toolResults),
  body[data-tool="midi-to-sheet-music"] #toolResults > :not(#scoreArea) {
    display: none !important;
  }
  body[data-tool="midi-to-sheet-music"] .content-main {
    width: 100%;
    padding: 0;
  }
  body[data-tool="midi-to-sheet-music"] .conversion-tool,
  body[data-tool="midi-to-sheet-music"] .tool-card {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  body[data-tool="midi-to-sheet-music"] .conversion-tool::before { display: none; }
  body[data-tool="midi-to-sheet-music"] #scoreArea {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
  }
}

/* Responsive --------------------------------------------------------------- */
@media (min-width: 981px) {
  .hero-copy {
    position: sticky;
    top: 100px;
  }
}

@media (max-width: 1080px) {
  .brand-tag { display: none; }
  .hero { gap: 44px; }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
    padding-top: 54px;
  }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(45px, 8.4vw, 70px); }
  .hero-lede { max-width: 54ch; }
  .hero-stats { max-width: 520px; }
  .hero-tool { width: min(100%, 620px); }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .section-label { margin-top: 0; }
  .limit-grid { grid-template-columns: 1fr; gap: 26px; }
  .limit-panel h2 { max-width: 20ch; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-inner .privacy-pill { margin-left: auto; }
  .capability { grid-template-columns: 1fr 1fr; }
  .capability > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--hairline); }
  .capability > div:nth-child(4) { border-top: 1px solid var(--hairline); }
  .steps { grid-template-columns: 1fr; }
  .steps h3 { margin-top: 20px; }
  .step-meta { margin-top: 16px; }
  .steps p { max-width: 52ch; }
  .spec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-end { grid-column: 1 / -1; align-items: flex-start; }
  .footer-end p { text-align: left; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { height: 64px; gap: 14px; }
  .brand-mark { width: 25px; height: 25px; }
  .brand-name { font-size: 11.5px; }
  .header-inner .privacy-pill { padding: 6px 9px; font-size: 8.5px; letter-spacing: 0.05em; }
  .header-inner .privacy-dot { width: 5px; height: 5px; }

  .hero { gap: 36px; padding-top: 38px; padding-bottom: 48px; }
  .kicker { margin-bottom: 20px; font-size: 9.5px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 54px); }
  .hero-lede { margin-top: 20px; font-size: 15.5px; }
  .hero-stats { margin-top: 26px; padding-top: 18px; }
  .hero-stats > div { padding-right: 12px; }
  .hero-stats > div + div { padding-left: 14px; }
  .hero-stats dt { font-size: 8px; }
  .hero-stats dd { margin-top: 6px; font-size: 25px; }
  .hero-note { font-size: 11px; }

  .console { border-radius: 15px; }
  .console-top { height: 41px; padding: 0 14px; font-size: 8.5px; }
  .console-body { padding: 15px; }
  .console-head { margin-bottom: 10px; }
  .drop-zone { min-height: 190px; padding: 22px 12px; border-radius: 10px; }
  .drop-title { font-size: 15.5px; }
  .drop-hint { font-size: 11.5px; }
  .drop-icon { width: 48px; height: 48px; margin-bottom: 11px; }
  .drop-formats { margin-top: 13px; gap: 4px; }
  .drop-formats span { font-size: 8px; padding: 2px 5px; }
  .drop-zone.has-file { min-height: 116px; }
  .file-type { min-width: 40px; height: 26px; font-size: 8px; }
  .file-details strong { font-size: 11.5px; }
  .file-details small { font-size: 8.5px; }
  .action-row { flex-direction: column; align-items: stretch; gap: 11px; }
  .privacy-note { order: 2; justify-content: center; font-size: 10px; }
  .primary-button { width: 100%; min-height: 50px; font-size: 13px; }
  .result-head { flex-wrap: wrap; }
  .download-button { width: 100%; min-height: 42px; }
  #pianoRoll { height: 196px; }
  .table-wrap { max-height: 190px; }
  table { font-size: 9.5px; }
  th, td { padding: 7px 8px; }

  .capability > div { padding: 13px 14px; }
  .capability dd { font-size: 10.5px; }
  .capability dt { font-size: 7.5px; }

  .section { padding-top: 52px; padding-bottom: 52px; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(29px, 8.4vw, 38px); }
  .section-head p { font-size: 13.5px; }
  .steps li { padding: 22px 20px 24px; }
  .steps h3 { font-size: 17px; }
  .spec-card { padding: 20px; }
  .format-list small { display: none; }
  .spec-sheet > div { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; }

  .limit-panel { padding: 24px 20px 26px; border-radius: 16px; }
  .limit-panel h2 { font-size: clamp(32px, 9.6vw, 42px); }
  .limit-copy p { font-size: 13px; }
  .limit-cols { grid-template-columns: 1fr; gap: 18px; }

  .faq-list summary { gap: 12px; padding: 16px 0; font-size: 14.5px; }
  .faq-num { width: 18px; font-size: 8.5px; }
  .faq-list details p { padding: 0 0 18px 30px; font-size: 13px; }
  .faq-icon { width: 24px; height: 24px; }

  .next-step { padding: 17px 18px; align-items: flex-start; }
  .next-step strong { font-size: 14.5px; }

  .cta { padding-top: 62px; padding-bottom: 68px; }
  .cta h2 { font-size: clamp(36px, 10.5vw, 48px); }
  .cta-button { width: 100%; max-width: 320px; }

  .site-footer { padding-top: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid .footer-col:nth-of-type(2) { border-left: 1px solid var(--hairline); padding-left: 20px; }
  .footer-end { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  .page-shell { width: calc(100% - 36px); }
  .page-main { padding-top: 34px; padding-bottom: 52px; }
  .page-intro { margin-bottom: 24px; }
  .page-intro h1 { font-size: clamp(36px, 10.4vw, 48px); }
  .page-lede { font-size: 14.5px; }
  .content-card { padding: 22px 18px; border-radius: 14px; }
  .content-card h2 { font-size: 20px; margin-top: 30px; }
  .content-card p, .content-card li { font-size: 14.5px; }
  .content-card .page-lead { font-size: 20px; }
  .mini-stats { grid-template-columns: 1fr; }
  .mini-stats > div + div { border-top: 1px solid var(--hairline); }
  .guide-list li { padding: 14px 15px 14px 49px; }
  .guide-list li::before { left: 15px; }
}

@media (max-width: 340px) {
  .header-inner .privacy-pill { font-size: 0; gap: 0; padding: 8px; }
  .header-inner .privacy-pill .privacy-dot { width: 6px; height: 6px; }
  .hero h1 { font-size: 38px; }
}

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

/* ==========================================================================
   Latest component responsive rules
   ========================================================================== */
@media (max-width: 1100px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12.5px; }
  .footer-grid { gap: 26px; }
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col-wide { grid-column: 1 / -1; }
  .footer-link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-end { grid-column: auto; align-items: flex-start; }
  .footer-end p { text-align: left; }
}

@media (max-width: 860px) {
  .content-main { width: calc(100% - 44px); }
  .detail-grid { grid-template-columns: 1fr; }
  .workflow-choices { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-cards { grid-template-columns: 1fr; }
  .tutorial-grid { grid-template-columns: 1fr; }
  .tool-link { min-height: 120px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col-wide { grid-column: 1 / -1; }
  .footer-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-end { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .tool-heading { flex-direction: column; gap: 10px; }
  .tools-hub h2,
  .workflow-guide h2 { font-size: clamp(28px, 8vw, 38px); }
  .tool-link { min-height: 0; padding: 16px; }
  .footer-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .content-main {
    width: calc(100% - 36px);
    padding-top: 34px;
    padding-bottom: 58px;
  }
  .tool-card,
  .workspace .tool-card,
  .conversion-tool { padding: 20px 16px; border-radius: 15px; }
  .tool-heading h1,
  .tool-heading h2 { font-size: clamp(26px, 8vw, 33px); }
  .conversion-tool h1 { font-size: clamp(28px, 8.4vw, 36px); }
  .converter-intro { font-size: 13px; }
  .converter-scope { margin-bottom: 16px; font-size: 11.5px; }
  .local-chip { font-size: 8px; }
  .content-card { padding: 24px 18px; border-radius: 15px; }
  .content-card h1 { font-size: clamp(32px, 9.4vw, 42px); margin-bottom: 18px; }
  .content-card h2 { margin-top: 32px; font-size: 22px; }
  .content-card h3 { font-size: 16.5px; }
  .content-card p,
  .content-card li { font-size: 14.5px; }
  .content-card .page-lead { font-size: 20px; }
  .guide-figure > a,
  .guide-figure > img { padding: 9px; border-radius: 11px; }
  .guide-table { min-width: 480px; font-size: 12.5px; }
  .guide-table th,
  .guide-table td { padding: 10px 9px; }
  .guide-table th { font-size: 8.5px; }
  .guide-table td { font-size: 12px; }
  .guide-table th[scope="row"] { font-size: 12px; }
  .reference-card { padding: 16px; }
  .tutorial-lead { font-size: 16.5px; }
  .tutorial-actions { align-items: stretch; flex-direction: column; }
  .tutorial-actions a { justify-content: center; width: 100%; }
  .guide-steps li { padding: 16px 15px 16px 48px; }
  .guide-steps li::before { top: 17px; left: 15px; }
  .file-picker { padding: 15px; }
  .tool-buttons button,
  .download-links a,
  #printScore { width: 100%; }
  #loadVideo { width: 100%; }
  .conversion-tool .table-wrap { max-height: 300px; }
  #playerPanel { padding: 10px; }
  .capture-requirements,
  .capture-fallback { font-size: 12px; }
  .detail-card,
  .expectations,
  .faq { padding: 18px 16px; }
  .detail-card h2,
  .expectations h2,
  .faq h2 { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-brand,
  .footer-col-wide,
  .footer-end { grid-column: 1 / -1; }
  .site-footer .footer-grid .footer-col { border-left: 0; padding-left: 0; }
  .footer-link-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .case-chart img { min-width: 480px; }
}

@media (max-width: 480px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tool-link { min-height: 0; }
  .content-card h1 { font-size: clamp(30px, 9.6vw, 38px); }
  .footer-link-grid { grid-template-columns: 1fr 1fr; }
  .footer-link-grid a { min-height: 34px; }
  .case-chart img { min-width: 420px; }
}

@media (max-width: 360px) {
  .tool-grid { grid-template-columns: 1fr; }
  .footer-link-grid { grid-template-columns: 1fr; }
}

/* Measured short-input reference downloads. */
#minimum-duration-check .minimum-downloads{list-style:none;padding:0;margin:16px 0}
#minimum-duration-check .minimum-downloads a{display:inline-flex;align-items:center;min-height:44px;padding:8px 0}
#minimum-duration-check figcaption{font-size:14px;color:var(--ink-soft)}

/* Measured-loop guide card */
.tempo-guide-link{border-color:rgba(217,255,74,.3);background:linear-gradient(135deg,rgba(217,255,74,.055),rgba(255,255,255,.012))}
.tempo-guide-link .tempo-card-label{display:flex;align-items:center;min-height:20px;color:var(--lime);font:9px var(--mono);letter-spacing:.08em;text-transform:uppercase}
.tempo-guide-link:hover{border-color:rgba(217,255,74,.52);background:linear-gradient(135deg,rgba(217,255,74,.09),rgba(255,255,255,.018))}

/* Responsive article video players. */
.article-video{margin:32px 0;scroll-margin-top:88px}
.article-video-frame{position:relative;width:100%;min-width:0;aspect-ratio:16/9;min-height:202px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#000}
.article-video-frame iframe{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}
.article-video>p:last-child{margin-top:12px;font-size:14px}


/* ==== amplitude-check.css ==== */
/* Scope only the measured amplitude section. */
#amplitude-check .amplitude-files{list-style:none;padding:0;margin:16px 0}
#amplitude-check .amplitude-files a{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;overflow-wrap:anywhere}
#amplitude-check figure img{width:360px;max-width:100%;height:auto}
#amplitude-check figcaption{font-size:14px;line-height:1.65;color:var(--ink-soft)}


/* ==== converter-comparison.css ==== */
/* Midilot comparison: existing dark UI, narrow cards, locally scrolling data table. */
.comparison-page .comparison-lead { font-size:18px; line-height:1.65; color:var(--ink-soft); }
.comparison-page .comparison-meta { color:var(--ink-soft); font-family:inherit; font-size:13px; line-height:1.6; }
.comparison-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:22px 0; }
.comparison-page .comparison-card { min-width:0; border:1px solid var(--hairline); background:var(--surface); padding:18px; border-radius:12px; }
.comparison-page .comparison-card h3 { margin:0 0 10px; }
.comparison-page .comparison-card p { margin:0 0 10px; }
.comparison-page .comparison-card a { display:inline-flex; align-items:center; min-height:44px; }
.comparison-page .evidence-label { font-family:var(--mono); font-size:10px; letter-spacing:.08em; color:var(--lime); }
.comparison-page .comparison-figure { margin:24px 0; }
.comparison-page .comparison-figure img { display:block; width:360px; max-width:100%; height:auto; border:1px solid var(--hairline); border-radius:12px; }
.comparison-page .comparison-figure figcaption { color:var(--ink-soft); font-size:14px; line-height:1.65; margin-top:12px; max-width:65ch; }
.comparison-page .comparison-files { list-style:none; padding:0; gap:4px; }
.comparison-page .comparison-files a { display:inline-flex; align-items:center; min-height:44px; overflow-wrap:anywhere; }
.comparison-page .guide-table { min-width:520px; }
.comparison-page .table-hint { font-family:var(--mono); font-size:11px; color:var(--muted); }
.comparison-page code { white-space:normal; overflow-wrap:anywhere; }
.comparison-page .comparison-note { padding:16px; border-left:2px solid var(--lime); background:var(--lime-dim); border-radius:0 8px 8px 0; }
@media(max-width:600px) { .comparison-cards { grid-template-columns:1fr; } .comparison-page .comparison-lead { font-size:16px; } .comparison-page .tutorial-actions { align-items:stretch; } .comparison-page .tutorial-actions .primary-button { width:100%; white-space:normal; text-align:center; } }


/* ==== drum-render-check.css ==== */
#drum-render-check .drum-figure{margin:24px 0}#drum-render-check .drum-figure img{width:360px;max-width:100%;height:auto}#drum-render-check figcaption{font-size:14px;line-height:1.6;color:var(--ink-soft)}#drum-render-check .drum-downloads{display:grid;gap:10px;list-style:none;padding:0;margin:24px 0}#drum-render-check .drum-downloads a{display:flex;align-items:center;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;overflow-wrap:anywhere}


/* ==== melody-transpose.css ==== */
.transpose-panel{margin:24px 0;padding:clamp(18px,4vw,30px);border:1px solid var(--hairline);border-radius:18px;background:rgba(255,255,255,.025)}
.transpose-panel label{display:block;margin:16px 0 8px;font-weight:600}.transpose-panel input,.transpose-panel select{max-width:100%;min-height:44px;font:inherit}.transpose-panel select{background:#121812;color:#f4f3e7;border:1px solid #6d7768;padding:8px 12px;border-radius:8px}
.transpose-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.transpose-actions button,.transpose-actions a{min-height:48px;padding:12px 18px;border-radius:9px;border:1px solid #789464;background:#c6f381;color:#10200d;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}.transpose-actions button:disabled{opacity:.45;cursor:default}.transpose-actions [hidden]{display:none}
.transpose-panel input[type=file]{width:100%}.transpose-status{font-size:15px;line-height:1.65;overflow-wrap:anywhere}.transpose-figure{max-width:380px;margin:28px auto}.transpose-figure img{width:100%;height:auto}.transpose-figure figcaption{font-size:14px;line-height:1.65;color:#b7c0ac;margin-top:12px}.transpose-table{overflow-x:auto;max-width:100%;border:1px solid var(--hairline);border-radius:10px}.transpose-table table{width:100%;border-collapse:collapse;min-width:450px}.transpose-table td,.transpose-table th{padding:12px 14px;text-align:left;border-bottom:1px solid var(--hairline);font-size:14px;white-space:nowrap}.transpose-note{font-size:14px;line-height:1.7;color:#bdc4b2}.transpose-article code{overflow-wrap:anywhere}.transpose-article h1{max-width:20ch}.transpose-article [data-original]{scroll-margin-top:28px}
@media(max-width:480px){.transpose-actions>*{width:100%;text-align:center}.transpose-panel{padding:18px}.transpose-article h1{font-size:34px;line-height:1.13}.transpose-table td,.transpose-table th{padding:11px 12px}}


/* ==== silence-check.css ==== */
#silence-check .silence-figure{margin:24px 0}#silence-check .silence-downloads{display:grid;gap:10px;list-style:none;padding:0;margin:24px 0}#silence-check .silence-downloads a{display:flex;align-items:center;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;overflow-wrap:anywhere}#silence-check .silence-figure img{width:360px;max-width:100%;height:auto}#silence-check figcaption{font-size:14px;line-height:1.6;color:var(--ink-soft)}
