
    :root {
      --bg: #08090d;
      --panel: rgba(21, 23, 31, .84);
      --panel-strong: #15171f;
      --panel-dark: rgba(5, 6, 10, .54);
      --text: #f5f6fa;
      --muted: #9298a8;
      --border: rgba(255, 255, 255, .09);
      --accent: #ffcc00;
      --accent-strong: #ffd72d;
      --accent-soft: rgba(255, 204, 0, .13);
      --positive: #4be39b;
      --danger: #ff6b7a;
      --shadow: 0 22px 70px rgba(0, 0, 0, .38);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--text);
      background:
        radial-gradient(circle at 10% -10%, rgba(255, 204, 0, .12), transparent 34rem),
        radial-gradient(circle at 95% 10%, rgba(128, 78, 255, .13), transparent 31rem),
        var(--bg);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    button, input { font: inherit; }
    button { -webkit-tap-highlight-color: transparent; }
    a { color: inherit; text-decoration: none; }

    .container {
      width: min(1540px, calc(100% - 48px));
      margin: 0 auto;
      padding: 32px 0 56px;
    }

    .app-shell,
    .hero,
    .tool-panel,
    .track-card,
    .transport,
    .page-note {
      border: 1px solid var(--border);
      background: var(--panel);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }

    .app-shell {
      position: relative;
      overflow: hidden;
      padding: 17px;
      margin-bottom: 20px;
      border-radius: 25px;
      background: linear-gradient(135deg, rgba(27, 29, 38, .96), rgba(16, 18, 24, .94));
    }

    .app-shell::before {
      content: "";
      position: absolute;
      width: 310px;
      height: 310px;
      top: -225px;
      left: -90px;
      border-radius: 50%;
      background: rgba(255, 204, 0, .18);
      filter: blur(34px);
      pointer-events: none;
    }

    .topbar {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .brand-icon {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      border-radius: 13px;
      color: #151515;
      background: linear-gradient(145deg, #ffe04d, var(--accent));
      box-shadow: 0 10px 28px rgba(255, 204, 0, .24);
      font-size: 20px;
      font-weight: 950;
    }

    .brand-copy { display: grid; min-width: 0; gap: 2px; }
    .brand-title { font-size: 19px; font-weight: 850; letter-spacing: -.035em; }
    .brand-subtitle { color: var(--muted); font-size: 11px; }

    .topbar-actions { display: flex; align-items: center; gap: 9px; }

    .header-chip,
    .privacy-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 0 13px;
      border: 1px solid var(--border);
      border-radius: 12px;
      color: var(--muted);
      background: rgba(0, 0, 0, .18);
      font-size: 12px;
      font-weight: 750;
    }

    .header-chip { color: #f4dc75; border-color: rgba(255, 204, 0, .2); background: rgba(255, 204, 0, .055); }
    .privacy-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 5px rgba(75, 227, 155, .08); }

    .hero {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
      align-items: stretch;
      gap: 24px;
      margin-bottom: 18px;
      padding: 30px;
      border-radius: 25px;
      background:
        radial-gradient(circle at 92% 10%, rgba(255, 204, 0, .14), transparent 24rem),
        linear-gradient(145deg, rgba(24, 26, 35, .97), rgba(15, 17, 23, .97));
    }

    .hero::after {
      content: "";
      position: absolute;
      right: -90px;
      bottom: -180px;
      width: 340px;
      height: 340px;
      border-radius: 50%;
      background: rgba(128, 78, 255, .09);
      filter: blur(20px);
      pointer-events: none;
    }

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

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--accent);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: .14em;
      text-transform: uppercase;
    }

    .eyebrow::before {
      content: "";
      width: 18px;
      height: 2px;
      border-radius: 999px;
      background: var(--accent);
    }

    h1 {
      max-width: 920px;
      margin: 10px 0 14px;
      font-size: clamp(42px, 6vw, 76px);
      line-height: .98;
      letter-spacing: -.058em;
    }

    .hero-copy p {
      max-width: 810px;
      margin: 0;
      color: #abb1c0;
      font-size: clamp(15px, 1.5vw, 18px);
      line-height: 1.65;
    }

    .hero-features {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin-top: 22px;
    }

    .feature-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
      padding: 0 12px;
      border: 1px solid var(--border);
      border-radius: 11px;
      color: #d9dce4;
      background: rgba(255, 255, 255, .025);
      font-size: 12px;
      font-weight: 720;
    }

    .feature-pill svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

    .hero-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      align-content: center;
      padding: 13px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: rgba(5, 6, 10, .29);
    }

    .hero-stat {
      min-width: 0;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 15px;
      background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    }

    .hero-stat:first-child {
      grid-column: 1 / -1;
      border-color: rgba(255, 204, 0, .22);
      background: linear-gradient(145deg, rgba(255, 204, 0, .095), rgba(255, 204, 0, .025));
    }

    .hero-stat span { display: block; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
    .hero-stat strong { display: block; margin-top: 7px; font-size: 27px; line-height: 1; letter-spacing: -.045em; }
    .hero-stat small { display: block; margin-top: 7px; color: #9da4b4; font-size: 11px; line-height: 1.45; }

    .tool-panel {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 15px;
      padding: 15px 16px;
      border-radius: 19px;
      box-shadow: none;
    }

    .tool-panel-copy { display: flex; align-items: center; gap: 12px; min-width: 0; }

    .step-mark {
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      flex: 0 0 34px;
      border: 1px solid rgba(255, 204, 0, .25);
      border-radius: 11px;
      color: var(--accent);
      background: rgba(255, 204, 0, .06);
      font-size: 9px;
      font-weight: 950;
    }

    .tool-panel-copy strong { display: block; font-size: 15px; }
    .tool-panel-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }

    .add-btn,
    .play-btn,
    .small-btn,
    .main-btn {
      border: 0;
      cursor: pointer;
      transition: transform .18s ease, filter .18s ease, opacity .18s ease, border-color .18s ease, background .18s ease;
    }

    .add-btn {
      min-height: 44px;
      padding: 0 17px;
      border-radius: 13px;
      color: #171717;
      background: var(--accent);
      font-weight: 850;
      white-space: nowrap;
    }

    .add-btn:hover:not(:disabled),
    .main-btn:hover:not(:disabled),
    .play-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
    .add-btn:active:not(:disabled), .main-btn:active:not(:disabled), .play-btn:active:not(:disabled) { transform: translateY(0); }
    button:disabled { opacity: .38; cursor: not-allowed; transform: none !important; filter: none !important; }

    .tracks {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      align-items: start;
    }

    .track-card {
      --track-accent: var(--accent);
      position: relative;
      overflow: hidden;
      min-width: 0;
      padding: 15px;
      border-radius: 20px;
      background: linear-gradient(145deg, rgba(24,26,35,.97), rgba(14,16,22,.97));
      transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    }

    .track-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 2px;
      background: linear-gradient(90deg, var(--track-accent), transparent 68%);
      opacity: .85;
    }

    .track-card.active {
      border-color: var(--track-accent);
      box-shadow: 0 0 0 1px color-mix(in srgb, var(--track-accent), transparent 55%), var(--shadow);
      transform: translateY(-2px);
    }

    .track-card.has-file .drop-zone { border-style: solid; border-color: color-mix(in srgb, var(--track-accent), transparent 68%); }

    .track-head {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      min-width: 0;
    }

    .badge {
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      flex: 0 0 34px;
      border: 1px solid color-mix(in srgb, var(--track-accent), transparent 64%);
      border-radius: 11px;
      color: var(--track-accent);
      background: color-mix(in srgb, var(--track-accent), transparent 90%);
      font-size: 11px;
      font-weight: 950;
    }

    .track-info { min-width: 0; flex: 1; }
    .track-title { font-size: 17px; font-weight: 850; letter-spacing: -.025em; }
    .file-name { margin-top: 3px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .remove-btn {
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      flex: 0 0 34px;
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--muted);
      background: rgba(0, 0, 0, .18);
      cursor: pointer;
      font-size: 18px;
      font-weight: 700;
    }

    .remove-btn:hover { color: #ffc4cc; border-color: rgba(255, 107, 122, .34); background: rgba(255, 107, 122, .08); }

    .drop-zone {
      position: relative;
      display: grid;
      place-items: center;
      min-height: 260px;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      border: 1px dashed rgba(255, 255, 255, .16);
      border-radius: 15px;
      background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        #090c12;
      background-size: 30px 30px;
      cursor: pointer;
      isolation: isolate;
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .drop-zone:hover { border-color: color-mix(in srgb, var(--track-accent), transparent 48%); background-color: rgba(255, 255, 255, .015); }
    .drop-zone.dragover { border-color: var(--track-accent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--track-accent), transparent 55%); }

    .drop-zone canvas { display: block; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
    .track-card.has-file .drop-zone { cursor: crosshair; touch-action: none; user-select: none; }
    .track-card.has-file .drop-zone.selecting { cursor: ew-resize; }
    .drop-zone:focus-visible { outline: 2px solid var(--track-accent); outline-offset: 3px; }
    .replace-file-btn {
      position: absolute;
      z-index: 4;
      right: 10px;
      bottom: 10px;
      border: 1px solid rgba(255,255,255,.2);
      border-radius: 9px;
      padding: 7px 10px;
      color: #f5f6fa;
      background: rgba(7,9,15,.82);
      font-size: 11px;
      font-weight: 750;
      cursor: pointer;
      backdrop-filter: blur(7px);
    }
    .replace-file-btn:hover { background: rgba(40,42,50,.96); border-color: var(--track-accent); }
    .track-card:not(.has-file) .replace-file-btn { display: none; }
    .audio-metrics {
      display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 10px;
      min-height: 17px; margin: -3px 2px 12px; color: #969dad;
      font-size: 10px; font-variant-numeric: tabular-nums;
    }
    .gain-info { color: #b9eccc; }

    .empty-state {
      position: relative;
      z-index: 2;
      width: min(310px, 84%);
      text-align: center;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.55;
      pointer-events: none;
    }

    .empty-icon {
      display: grid;
      place-items: center;
      width: 52px;
      height: 52px;
      margin: 0 auto 11px;
      border: 1px solid color-mix(in srgb, var(--track-accent), transparent 70%);
      border-radius: 16px;
      color: var(--track-accent);
      background: color-mix(in srgb, var(--track-accent), transparent 89%);
      font-size: 23px;
    }

    .empty-state strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 15px; }
    .file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

    .loading {
      position: absolute;
      inset: 0;
      z-index: 5;
      display: none;
      place-items: center;
      background: rgba(8, 11, 16, .82);
      backdrop-filter: blur(7px);
      color: var(--text);
      font-size: 12px;
      font-weight: 750;
      text-align: center;
    }

    .loading.visible { display: grid; }

    .spinner {
      width: 31px;
      height: 31px;
      margin: 0 auto 10px;
      border: 3px solid rgba(255,255,255,.14);
      border-top-color: var(--track-accent);
      border-radius: 50%;
      animation: spin .8s linear infinite;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    .track-meta {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      min-height: 20px;
      margin: 10px 2px 12px;
      color: var(--muted);
      font-size: 10px;
      font-variant-numeric: tabular-nums;
    }

    .play-btn {
      width: 100%;
      min-height: 46px;
      padding: 0 15px;
      border: 1px solid color-mix(in srgb, var(--track-accent), transparent 55%);
      border-radius: 13px;
      color: var(--track-accent);
      background: color-mix(in srgb, var(--track-accent), transparent 91%);
      font-weight: 850;
    }

    .track-card.active .play-btn,
    .play-btn:hover:not(:disabled) {
      color: #171717;
      border-color: var(--track-accent);
      background: var(--track-accent);
    }

    .transport {
      position: sticky;
      bottom: 10px;
      z-index: 20;
      margin-top: 18px;
      padding: 17px;
      border-radius: 20px;
      background: rgba(19, 21, 29, .94);
      box-shadow: 0 18px 60px rgba(0,0,0,.48);
    }

    .transport-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 13px;
    }

    .transport-heading-copy { display: flex; align-items: center; gap: 11px; }
    .transport-heading strong { display: block; font-size: 14px; }
    .transport-heading small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }

    .transport-ready {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 31px;
      padding: 0 10px;
      border: 1px solid rgba(75, 227, 155, .17);
      border-radius: 10px;
      color: #bfeeda;
      background: rgba(75, 227, 155, .055);
      font-size: 10px;
      font-weight: 800;
    }

    .time-row { display: grid; grid-template-columns: 88px 1fr 88px; align-items: center; gap: 13px; }
    .time-row input[type="range"] { touch-action: none; }
    .transport { position: relative; bottom: auto; }
    .time { color: #b9bfcc; font-size: 13px; font-variant-numeric: tabular-nums; }
    .time:last-child { text-align: right; }

    input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; }
    input[type="range"]:disabled { cursor: not-allowed; opacity: .43; }

    .transport-actions { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
    .seek-hint { color: var(--muted); margin-top: 8px; font-size: 10px; text-align: center; }
    .compare-tools {
      display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
      gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
    }
    .loop-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .loop-controls .small-btn { min-height: 36px; padding: 0 12px; min-width: 0; font-size: 11px; }
    .small-btn.marked, .small-btn.loop-on {
      background: var(--accent-soft); border-color: rgba(255,204,0,.55); color: var(--accent);
    }
    .level-toggle { display: inline-flex; align-items: center; gap: 8px; color: #d6d9e3; font-size: 11px; cursor: pointer; }
    .level-toggle input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
    .level-toggle small { color: var(--muted); font-size: 10px; }
    .loop-caption { min-height: 15px; margin-top: 6px; color: var(--muted); font-size: 11px; }
    .loop-caption.selecting { color: #ffdc66; }

    .small-btn,
    .main-btn {
      min-height: 42px;
      padding: 0 15px;
      border: 1px solid var(--border);
      border-radius: 12px;
      color: var(--text);
      background: rgba(255, 255, 255, .035);
      font-weight: 800;
    }

    .small-btn { min-width: 66px; color: #c6cad4; }
    .main-btn { min-width: 190px; color: #171717; border-color: var(--accent); background: var(--accent); }
    .small-btn:hover:not(:disabled) { border-color: rgba(255, 204, 0, .26); background: rgba(255, 204, 0, .06); }

    .status { min-height: 20px; margin-top: 12px; color: var(--muted); font-size: 11px; text-align: center; }
    .status.error { color: var(--danger); }

    .tips {
      margin-top: 11px;
      padding-top: 11px;
      border-top: 1px solid var(--border);
      color: var(--muted);
      font-size: 10px;
      line-height: 1.6;
      text-align: center;
    }

    kbd {
      display: inline-block;
      min-width: 23px;
      padding: 2px 6px;
      border: 1px solid rgba(255,255,255,.15);
      border-bottom-width: 2px;
      border-radius: 6px;
      color: #dce0e8;
      background: rgba(255,255,255,.045);
      font: inherit;
      font-size: 9px;
      font-weight: 800;
      text-align: center;
    }

    .page-note {
      display: flex;
      align-items: center;
      gap: 13px;
      margin-top: 16px;
      padding: 15px 17px;
      border-radius: 18px;
      box-shadow: none;
    }

    .page-note-icon {
      display: grid;
      place-items: center;
      width: 39px;
      height: 39px;
      flex: 0 0 39px;
      border: 1px solid rgba(75, 227, 155, .18);
      border-radius: 12px;
      color: var(--positive);
      background: rgba(75, 227, 155, .055);
    }

    .page-note strong { display: block; font-size: 12px; }
    .page-note p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

    @media (min-width: 1280px) {
      .tracks:has(.track-card:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .tracks:has(.track-card:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .drop-zone { min-height: 220px; }
    }

    @media (max-width: 1040px) {
      .hero { grid-template-columns: 1fr; }
      .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .hero-stat:first-child { grid-column: auto; }
    }

    @media (max-width: 780px) {
      .container { width: min(100% - 24px, 1540px); padding: 14px 0 32px; }
      .topbar { align-items: flex-start; }
      .topbar-actions { flex-direction: column; align-items: flex-end; }
      .privacy-chip { display: none; }
      .hero { padding: 22px; }
      h1 { font-size: clamp(39px, 13vw, 58px); }
      .hero-stats { grid-template-columns: 1fr 1fr; }
      .hero-stat:first-child { grid-column: 1 / -1; }
      .tool-panel { align-items: stretch; flex-direction: column; }
      .add-btn { width: 100%; }
      .tracks { grid-template-columns: 1fr; }
      .drop-zone { min-height: 220px; }
      .transport { position: relative; bottom: auto; padding: 14px; }
      .transport-heading { align-items: flex-start; }
      .transport-ready { display: none; }
      .time-row { grid-template-columns: 68px 1fr 68px; gap: 8px; }
      .time { font-size: 11px; }
    }

    @media (max-width: 480px) {
      .brand-subtitle, .header-chip { display: none; }
      .hero { padding: 20px 17px; }
      .hero-stats { grid-template-columns: 1fr; }
      .hero-stat:first-child { grid-column: auto; }
      .hero-features { display: grid; grid-template-columns: 1fr; }
      .drop-zone { min-height: 190px; }
      .transport-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .transport-actions .main-btn { grid-column: 1 / -1; grid-row: 1; }
      .small-btn, .main-btn { min-width: 0; padding: 0 7px; }
      .compare-tools { align-items: stretch; }
      .loop-controls { width: 100%; }
      .level-toggle { padding: 5px 0; }
      .tips { text-align: left; }
    }
  