/* Design supplied by Maxim: allstars_studio_site_v6.html. */

    @font-face {
      font-family: "Benzin";
      src: url("/static/brand/fonts/Benzin-Regular.woff2") format("woff2");
      font-style: normal;
      font-weight: 400;
      font-display: swap;
    }

    @font-face {
      font-family: "Benzin";
      src: url("/static/brand/fonts/Benzin-Medium.woff2") format("woff2");
      font-style: normal;
      font-weight: 500;
      font-display: swap;
    }

    @font-face {
      font-family: "Benzin";
      src: url("/static/brand/fonts/Benzin-Semibold.woff2") format("woff2");
      font-style: normal;
      font-weight: 600;
      font-display: swap;
    }

    @font-face {
      font-family: "Benzin";
      src: url("/static/brand/fonts/Benzin-ExtraBold.woff2") format("woff2");
      font-style: normal;
      font-weight: 800;
      font-display: swap;
    }

    :root {
      --navy: #001630;
      --navy-2: #06264a;
      --navy-3: #0a386d;
      --blue: #5c95ff;
      --blue-bright: #76a7ff;
      --blue-pale: #e9f1ff;
      --blue-wash: #f3f7ff;
      --white: #ffffff;
      --ink: #001630;
      --ink-soft: #31445d;
      --muted: #718096;
      --page: #f4f7fb;
      --surface: #ffffff;
      --surface-2: #edf3fb;
      --surface-3: #f8faff;
      --line: rgba(0, 22, 48, .10);
      --line-strong: rgba(0, 22, 48, .16);
      --shadow-soft: 0 14px 45px rgba(0, 22, 48, .08);
      --shadow-card: 0 32px 90px rgba(0, 22, 48, .18);
      --header: rgba(255, 255, 255, .84);
      --success: #177a60;
      --success-soft: #e8f7f1;
      --warning: #a96813;
      --warning-soft: #fff4dc;
      --danger: #c95656;
      --danger-soft: #fff0f0;
      --on-dark: #ffffff;
      --on-dark-soft: rgba(255, 255, 255, .70);
    }

    html[data-theme="dark"] {
      --ink: #ffffff;
      --ink-soft: #d4deeb;
      --muted: #93a5bb;
      --page: #000d1d;
      --surface: #071b33;
      --surface-2: #0c2441;
      --surface-3: #091e38;
      --line: rgba(255, 255, 255, .09);
      --line-strong: rgba(255, 255, 255, .16);
      --shadow-soft: 0 14px 45px rgba(0, 0, 0, .18);
      --shadow-card: 0 32px 90px rgba(0, 0, 0, .30);
      --header: rgba(0, 13, 29, .84);
      --blue-pale: #102e54;
      --blue-wash: #0a203b;
      --success: #76d8b7;
      --success-soft: #123c35;
      --warning: #f4bd65;
      --warning-soft: #3a2c16;
      --danger: #ff9a9a;
      --danger-soft: #3d2028;
    }

    * { box-sizing: border-box; }
    [hidden] { display: none !important; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      min-width: 320px;
      min-height: 100vh;
      color: var(--ink);
      background:
        radial-gradient(circle at 86% 7%, rgba(92, 149, 255, .12), transparent 28rem),
        radial-gradient(circle at 7% 44%, rgba(141, 181, 255, .07), transparent 26rem),
        var(--page);
      font-family: "Benzin", sans-serif;
      font-size: 14px;
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
      transition: color .2s ease, background-color .2s ease;
    }

    body.modal-open { overflow: hidden; }

    button,
    input,
    textarea,
    select { font: inherit; }

    button { color: inherit; }
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible {
      outline: 3px solid rgba(92, 149, 255, .35);
      outline-offset: 2px;
    }

    h1, h2, h3, p { margin-top: 0; }
    svg { display: block; }

    .icon {
      width: 22px;
      height: 22px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .star {
      display: inline-block;
      flex: 0 0 auto;
      background: currentColor;
      -webkit-mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%20624%20624%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M288.889%20326.443L223.285%20401.615L298.457%20336.011L312.45%20541.9L326.443%20336.011L401.615%20401.615L336.011%20326.443L541.9%20312.45L336.011%20298.457L401.615%20223.285L326.443%20288.889L312.45%2083L298.457%20288.889L223.285%20223.285L288.889%20298.457L83%20312.45L288.889%20326.443Z%27/%3E%3C/svg%3E") center / contain no-repeat;
      mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%20624%20624%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M288.889%20326.443L223.285%20401.615L298.457%20336.011L312.45%20541.9L326.443%20336.011L401.615%20401.615L336.011%20326.443L541.9%20312.45L336.011%20298.457L401.615%20223.285L326.443%20288.889L312.45%2083L298.457%20288.889L223.285%20223.285L288.889%20298.457L83%20312.45L288.889%20326.443Z%27/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .eyebrow {
      margin-bottom: 11px;
      color: var(--blue);
      font-size: 9px;
      font-weight: 600;
      letter-spacing: .07em;
      text-transform: uppercase;
    }

    .muted { color: var(--muted); }

    .button,
    .icon-button,
    .nav-button,
    .brand,
    .project-card,
    .tool-tab,
    .result-card,
    .mode-button,
    .picker-project,
    .upload-zone,
    .modal-tab,
    .mobile-nav-button {
      border: 0;
      cursor: pointer;
      transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
    }

    .button:hover:not(:disabled),
    .icon-button:hover:not(:disabled),
    .project-card:hover:not(:disabled),
    .result-card:hover:not(:disabled),
    .picker-project:hover:not(:disabled) { transform: translateY(-2px); }

    .button:disabled,
    .tool-tab:disabled,
    .result-card:disabled { cursor: default; }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 46px;
      padding: 0 18px;
      border-radius: 15px;
      font-size: 11px;
      font-weight: 600;
      white-space: nowrap;
    }

    .button.primary {
      color: var(--navy);
      background: var(--blue);
      box-shadow: 0 10px 26px rgba(92, 149, 255, .24);
    }

    .button.primary:hover:not(:disabled) { background: var(--blue-bright); }

    .button.secondary {
      border: 1px solid var(--line-strong);
      background: var(--surface);
    }

    .button.ghost {
      color: var(--muted);
      background: transparent;
    }

    .button.danger {
      border: 1px solid rgba(201, 86, 86, .28);
      color: var(--danger);
      background: var(--danger-soft);
    }

    .button.small {
      min-height: 39px;
      padding: 0 13px;
      border-radius: 12px;
      font-size: 9px;
    }

    .icon-button {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      padding: 0;
      border: 1px solid var(--line-strong);
      border-radius: 14px;
      background: var(--surface);
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      height: 76px;
      border-bottom: 1px solid var(--line);
      background: var(--header);
      backdrop-filter: blur(18px);
    }

    .header-inner {
      display: grid;
      grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
      align-items: center;
      width: min(1320px, calc(100% - 48px));
      height: 100%;
      margin: 0 auto;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      justify-self: start;
      gap: 9px;
      padding: 0;
      color: var(--ink);
      background: transparent;
    }

    .brand .star {
      width: 27px;
      height: 27px;
      color: var(--blue);
    }

    .brand-word {
      font-size: 16px;
      font-weight: 800;
      letter-spacing: -.045em;
      line-height: 1;
    }

    .main-nav {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 5px;
      border: 1px solid var(--line);
      border-radius: 15px;
      background: var(--surface);
    }

    .nav-button {
      min-height: 38px;
      padding: 0 15px;
      border-radius: 11px;
      color: var(--muted);
      background: transparent;
      font-size: 11px;
    }

    .nav-button:hover,
    .nav-button.active {
      color: var(--ink);
      background: var(--surface-2);
    }

    .nav-lock {
      display: inline-grid;
      place-items: center;
      width: 18px;
      height: 18px;
      margin-left: 3px;
      border-radius: 6px;
      background: var(--surface-2);
    }

    .nav-lock .icon { width: 10px; height: 10px; }

    .header-actions {
      display: flex;
      align-items: center;
      justify-self: end;
      gap: 8px;
    }

    .login-button {
      min-height: 42px;
      padding: 0 12px;
      border: 0;
      color: var(--ink);
      background: transparent;
      font-size: 11px;
      font-weight: 500;
      cursor: pointer;
    }

    .wallet-button {
      display: none;
      align-items: center;
      gap: 10px;
      min-height: 44px;
      padding: 0 13px;
      border: 1px solid var(--line-strong);
      border-radius: 14px;
      background: var(--surface);
      cursor: pointer;
    }

    .wallet-button .icon { width: 17px; height: 17px; color: var(--blue); }
    .wallet-copy { display: grid; gap: 2px; text-align: left; }
    .wallet-copy span { color: var(--muted); font-size: 7px; }
    .wallet-copy strong { font-size: 10px; font-weight: 600; }

    .account-button {
      display: none;
      place-items: center;
      width: 44px;
      height: 44px;
      border: 0;
      border-radius: 15px;
      color: var(--navy);
      background: var(--blue);
      font-size: 10px;
      font-weight: 700;
      cursor: pointer;
    }

    body.authenticated .wallet-button { display: flex; }
    body.authenticated .account-button { display: grid; }
    body.authenticated .guest-only { display: none !important; }
    body:not(.authenticated) .auth-only { display: none !important; }
    body.authenticated .nav-lock { display: none; }

    .app-main {
      width: min(1320px, calc(100% - 48px));
      margin: 0 auto;
      padding: 30px 0 92px;
    }

    .view { display: none; animation: view-in .28s ease both; }
    .view.active { display: block; }

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

    /* Главная инструментов */
    .platform-intro {
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
      align-items: end;
      gap: 56px;
      padding: 13px 8px 28px;
    }

    .platform-intro h1 {
      max-width: 860px;
      margin-bottom: 0;
      font-size: clamp(34px, 3.3vw, 46px);
      font-weight: 800;
      letter-spacing: -.05em;
      line-height: 1.03;
    }

    .platform-intro h1 span { color: var(--blue); }

    .platform-copy {
      max-width: 470px;
      margin-bottom: 3px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.65;
    }

    .tool-switcher {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 9px;
      margin-bottom: 14px;
    }

    .tool-tab {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      min-height: 68px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 21px;
      color: var(--muted);
      background: rgba(255, 255, 255, .45);
      text-align: left;
    }

    html[data-theme="dark"] .tool-tab { background: rgba(7, 27, 51, .58); }

    .tool-tab.active {
      border-color: rgba(92, 149, 255, .46);
      color: var(--ink);
      background: var(--surface);
      box-shadow: var(--shadow-soft);
    }

    .tool-tab-icon {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: var(--surface-2);
    }

    .tool-tab.active .tool-tab-icon {
      color: var(--navy);
      background: var(--blue);
    }

    .tool-tab-copy { min-width: 0; }
    .tool-tab-copy strong { display: block; margin-bottom: 4px; color: inherit; font-size: 10px; font-weight: 600; }
    .tool-tab-copy span { display: block; overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }

    .hero {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, .96fr) minmax(500px, 1.04fr);
      min-height: 650px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, .09);
      border-radius: 40px;
      color: var(--on-dark);
      background:
        radial-gradient(circle at 90% 8%, rgba(118, 167, 255, .36), transparent 30rem),
        linear-gradient(145deg, #001630 0%, #031d3d 56%, #07356e 100%);
      box-shadow: var(--shadow-card);
      isolation: isolate;
    }

    .hero::before {
      position: absolute;
      right: -120px;
      bottom: -230px;
      z-index: -1;
      width: 610px;
      height: 610px;
      border-radius: 50%;
      background: rgba(92, 149, 255, .18);
      content: "";
    }

    .hero::after {
      position: absolute;
      top: 45px;
      right: 46px;
      z-index: -1;
      width: 170px;
      height: 170px;
      color: rgba(255, 255, 255, .035);
      background: currentColor;
      -webkit-mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%20624%20624%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M288.889%20326.443L223.285%20401.615L298.457%20336.011L312.45%20541.9L326.443%20336.011L401.615%20401.615L336.011%20326.443L541.9%20312.45L336.011%20298.457L401.615%20223.285L326.443%20288.889L312.45%2083L298.457%20288.889L223.285%20223.285L288.889%20298.457L83%20312.45L288.889%20326.443Z%27/%3E%3C/svg%3E") center / contain no-repeat;
      mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%270%200%20624%20624%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M288.889%20326.443L223.285%20401.615L298.457%20336.011L312.45%20541.9L326.443%20336.011L401.615%20401.615L336.011%20326.443L541.9%20312.45L336.011%20298.457L401.615%20223.285L326.443%20288.889L312.45%2083L298.457%20288.889L223.285%20223.285L288.889%20298.457L83%20312.45L288.889%20326.443Z%27/%3E%3C/svg%3E") center / contain no-repeat;
      content: "";
    }

    .hero-copy {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-width: 0;
      padding: 66px 24px 66px 64px;
    }

    .hero-kicker {
      display: inline-flex;
      align-items: center;
      align-self: flex-start;
      gap: 9px;
      min-height: 34px;
      margin-bottom: 24px;
      padding: 0 13px 0 8px;
      border: 1px solid rgba(255, 255, 255, .14);
      border-radius: 999px;
      color: rgba(255,255,255,.84);
      background: rgba(255,255,255,.08);
      font-size: 8px;
    }

    .hero-kicker .star-wrap {
      display: grid;
      place-items: center;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      color: var(--navy);
      background: var(--blue);
    }

    .hero-kicker .star { width: 14px; height: 14px; }

    .hero h2 {
      max-width: 630px;
      margin-bottom: 20px;
      font-size: clamp(42px, 4.7vw, 69px);
      font-weight: 800;
      letter-spacing: -.06em;
      line-height: .98;
    }

    .hero h2 span { color: var(--blue-bright); }

    .hero-lead {
      max-width: 570px;
      margin-bottom: 29px;
      color: var(--on-dark-soft);
      font-size: 12px;
      line-height: 1.65;
    }

    .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
    .hero .button.secondary { border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.08); }

    .hero-trust {
      display: flex;
      flex-wrap: wrap;
      gap: 13px 20px;
      margin: 0;
      padding: 0;
      color: rgba(255,255,255,.62);
      font-size: 8px;
      list-style: none;
    }

    .hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
    .hero-trust li::before { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); content: ""; }

    .hero-visual {
      position: relative;
      display: grid;
      place-items: center;
      min-width: 0;
      min-height: 650px;
      padding: 42px 48px 50px 34px;
    }

    .sound-rings {
      position: absolute;
      width: 540px;
      height: 540px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 50%;
    }

    .sound-rings::before,
    .sound-rings::after {
      position: absolute;
      inset: 62px;
      border: 1px solid rgba(255,255,255,.07);
      border-radius: 50%;
      content: "";
    }

    .sound-rings::after { inset: 130px; }

    .editor-preview {
      position: relative;
      z-index: 2;
      width: min(100%, 610px);
      padding: 11px;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 31px;
      background: rgba(255,255,255,.12);
      box-shadow: 0 30px 70px rgba(0,0,0,.25);
      transform: rotate(1deg);
      backdrop-filter: blur(10px);
    }

    .editor-preview-inner {
      min-height: 472px;
      overflow: hidden;
      border-radius: 22px;
      color: var(--navy);
      background: #f7faff;
    }

    .preview-top {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 15px 16px;
      border-bottom: 1px solid rgba(0,22,48,.08);
    }

    .preview-dot { width: 7px; height: 7px; border-radius: 50%; background: #d9e2ee; }
    .preview-top strong { margin-left: 7px; font-size: 8px; font-weight: 600; }
    .preview-save { margin-left: auto; color: var(--success); font-size: 7px; }

    .preview-track {
      display: grid;
      grid-template-columns: 52px minmax(0, 1fr) auto;
      align-items: center;
      gap: 11px;
      padding: 16px;
    }

    .preview-cover {
      display: grid;
      place-items: center;
      width: 52px;
      height: 52px;
      border-radius: 16px;
      color: #fff;
      background: linear-gradient(145deg, #001630, #5c95ff);
    }

    .preview-cover .star { width: 26px; height: 26px; }
    .preview-meta strong { display: block; margin-bottom: 6px; font-size: 9px; }
    .preview-meta span { display: block; color: #718096; font-size: 7px; }

    .preview-mode {
      padding: 8px 9px;
      border-radius: 9px;
      color: #285690;
      background: #e9f1ff;
      font-size: 6px;
      white-space: nowrap;
    }

    .mini-wave {
      position: relative;
      height: 96px;
      margin: 0 16px 14px;
      overflow: hidden;
      border-radius: 15px;
      background: #eaf0f7;
    }

    .mini-wave::before {
      position: absolute;
      inset: 15px 10px;
      background: repeating-linear-gradient(90deg, #8fa6be 0 2px, transparent 2px 6px);
      clip-path: polygon(0 46%, 3% 32%, 7% 58%, 11% 23%, 16% 70%, 21% 35%, 27% 52%, 33% 18%, 39% 68%, 45% 27%, 51% 57%, 58% 15%, 64% 62%, 71% 33%, 77% 74%, 83% 28%, 89% 55%, 94% 39%, 100% 49%, 100% 58%, 94% 63%, 89% 47%, 83% 72%, 77% 36%, 71% 67%, 64% 42%, 58% 78%, 51% 45%, 45% 70%, 39% 36%, 33% 82%, 27% 48%, 21% 66%, 16% 30%, 11% 76%, 7% 42%, 3% 68%, 0 54%);
      content: "";
    }

    .mini-playhead { position: absolute; top: 0; bottom: 0; left: 46%; width: 2px; background: #5c95ff; }

    .preview-lines { display: grid; gap: 7px; padding: 0 16px; }
    .preview-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; align-items: center; gap: 9px; min-height: 43px; padding: 7px 10px; border-radius: 11px; color: #42546a; background: #edf3fb; font-size: 7px; }
    .preview-line.active { color: #001630; background: #dbe8ff; box-shadow: inset 3px 0 #5c95ff; }
    .preview-line time { color: #718096; }

    .preview-controls { display: flex; align-items: center; gap: 8px; padding: 14px 16px 17px; }
    .preview-play { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #001630; background: #5c95ff; }
    .preview-space { padding: 9px 12px; border: 1px solid rgba(0,22,48,.10); border-radius: 10px; color: #718096; font-size: 6px; }
    .preview-export { margin-left: auto; padding: 10px 12px; border-radius: 10px; color: #fff; background: #001630; font-size: 6px; }

    .floating-file,
    .floating-result {
      position: absolute;
      z-index: 4;
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 11px 13px;
      border: 1px solid rgba(255,255,255,.20);
      border-radius: 15px;
      color: #fff;
      background: rgba(0,22,48,.76);
      box-shadow: 0 18px 38px rgba(0,0,0,.24);
      backdrop-filter: blur(12px);
    }

    .floating-file { top: 88px; left: 7px; transform: rotate(-2deg); }
    .floating-result { right: 22px; bottom: 58px; transform: rotate(1.5deg); }
    .floating-file .icon, .floating-result .icon { width: 18px; height: 18px; color: var(--blue-bright); }
    .floating-file strong, .floating-result strong { display: block; margin-bottom: 3px; font-size: 7px; }
    .floating-file span, .floating-result span { display: block; color: rgba(255,255,255,.58); font-size: 6px; }

    .benefit-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 14px;
    }

    .benefit-card {
      display: grid;
      grid-template-columns: 50px minmax(0, 1fr);
      align-items: center;
      gap: 14px;
      min-height: 112px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: var(--surface);
      box-shadow: var(--shadow-soft);
    }

    .benefit-icon {
      display: grid;
      place-items: center;
      width: 50px;
      height: 50px;
      border-radius: 17px;
      color: var(--blue);
      background: var(--blue-pale);
    }

    .benefit-card strong { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 600; }
    .benefit-card p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }

    .utility-section { margin-top: 58px; }
    .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 21px; }
    .section-heading h2 { margin-bottom: 0; font-size: 34px; font-weight: 800; letter-spacing: -.045em; }
    .section-heading p { max-width: 500px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

    .utility-card {
      position: relative;
      display: grid;
      grid-template-columns: 64px minmax(0, 1fr) auto;
      align-items: center;
      gap: 17px;
      width: 100%;
      min-height: 118px;
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 25px;
      color: var(--muted);
      background: var(--surface);
      text-align: left;
    }

    .utility-card .benefit-icon { width: 64px; height: 64px; border-radius: 20px; }
    .utility-copy strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 12px; font-weight: 600; }
    .utility-copy span { display: block; max-width: 720px; font-size: 9px; line-height: 1.5; }
    .soon-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 7px; white-space: nowrap; }

    /* Общие заголовки внутренних страниц */
    .page-top {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 30px;
      padding: 14px 5px 26px;
    }

    .page-top h1 { margin-bottom: 9px; font-size: clamp(34px, 4vw, 50px); font-weight: 800; letter-spacing: -.05em; }
    .page-top p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
    .page-actions { display: flex; flex-wrap: wrap; gap: 9px; }

    .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--muted); font-size: 8px; }
    .breadcrumb button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
    .breadcrumb i { opacity: .45; font-style: normal; }

    /* Проекты */
    .project-toolbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 15px;
      margin-bottom: 16px;
    }

    .search-field { position: relative; max-width: 620px; }
    .search-field .icon { position: absolute; top: 50%; left: 16px; width: 18px; height: 18px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }

    input,
    textarea,
    select {
      width: 100%;
      border: 1px solid var(--line-strong);
      border-radius: 14px;
      color: var(--ink);
      background: var(--surface);
    }

    input,
    select { min-height: 46px; padding: 0 14px; }
    textarea { min-height: 138px; padding: 14px; resize: vertical; line-height: 1.55; }
    .search-field input { padding-left: 45px; }
    input::placeholder, textarea::placeholder { color: var(--muted); opacity: .72; }

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

    .project-card {
      position: relative;
      display: grid;
      grid-template-columns: 112px minmax(0, 1fr) auto;
      align-items: center;
      gap: 19px;
      min-height: 160px;
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: 28px;
      color: var(--ink);
      background: var(--surface);
      box-shadow: var(--shadow-soft);
      text-align: left;
    }

    .project-card:hover { border-color: rgba(92,149,255,.42); }

    .project-cover {
      position: relative;
      display: grid;
      place-items: center;
      width: 112px;
      aspect-ratio: 1;
      overflow: hidden;
      border-radius: 25px;
      color: #fff;
      background: linear-gradient(145deg, #001630, #5c95ff);
    }

    .project-cover.warm { background: radial-gradient(circle at 72% 22%, #ffd8b7, transparent 34%), linear-gradient(145deg, #815887, #253b66); }
    .project-cover .star { width: 48px; height: 48px; opacity: .88; }
    .project-cover .cover-type { position: absolute; right: 9px; bottom: 9px; padding: 5px 7px; border-radius: 8px; background: rgba(0,0,0,.22); font-size: 6px; }

    .project-card-copy { min-width: 0; }
    .project-card-copy h2 { overflow: hidden; margin-bottom: 8px; font-size: 20px; font-weight: 600; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
    .project-card-copy > p { margin-bottom: 17px; color: var(--muted); font-size: 9px; }
    .status-row { display: flex; flex-wrap: wrap; gap: 7px; }
    .status-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 27px; padding: 0 9px; border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 7px; }
    .status-chip.ready { color: var(--success); background: var(--success-soft); }
    .status-chip.warning { color: var(--warning); background: var(--warning-soft); }
    .project-arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: var(--blue); background: var(--blue-pale); }

    /* Страница проекта */
    .project-state { display: none; }
    .project-state.active { display: block; }

    .project-identity {
      display: grid;
      grid-template-columns: 230px minmax(0, 1fr);
      gap: 24px;
      margin-bottom: 15px;
      padding: 23px;
      border: 1px solid var(--line);
      border-radius: 30px;
      background: var(--surface);
      box-shadow: var(--shadow-soft);
    }

    .cover-slot {
      position: relative;
      display: grid;
      place-items: center;
      width: 100%;
      aspect-ratio: 1;
      overflow: hidden;
      border: 1px dashed rgba(92,149,255,.50);
      border-radius: 25px;
      color: var(--muted);
      background: var(--blue-wash);
      text-align: center;
    }

    .cover-slot.ready { border-style: solid; color: #fff; background: radial-gradient(circle at 70% 21%, #adc9ff, transparent 31%), linear-gradient(145deg, #001630, #4e79ba); }
    .cover-slot .star { width: 74px; height: 74px; margin-bottom: 12px; color: var(--blue); opacity: .65; }
    .cover-slot.ready .star { color: #fff; opacity: .92; }
    .cover-slot strong { display: block; margin-bottom: 7px; font-size: 10px; }
    .cover-slot span { display: block; max-width: 150px; font-size: 7px; line-height: 1.45; }

    .identity-content { min-width: 0; padding: 7px 2px; }
    .card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
    .card-title-row h2 { margin: 0; font-size: 18px; font-weight: 600; }
    .save-status { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-size: 8px; }
    .save-status::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
    .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
    .field { display: grid; gap: 8px; }
    .field.full { grid-column: 1 / -1; }
    .field label { color: var(--muted); font-size: 8px; }
    .field-note { color: var(--muted); font-size: 7px; line-height: 1.45; }

    .project-section {
      margin-bottom: 15px;
      padding: 25px;
      border: 1px solid var(--line);
      border-radius: 30px;
      background: var(--surface);
      box-shadow: var(--shadow-soft);
    }

    .project-section h2 { margin-bottom: 20px; font-size: 18px; font-weight: 600; }
    .source-list { display: grid; }
    .source-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 15px; min-height: 82px; padding: 12px 0; border-top: 1px solid var(--line); }
    .source-row:first-child { border-top: 0; }
    .source-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; color: var(--blue); background: var(--blue-pale); }
    .source-copy { min-width: 0; }
    .source-copy span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 7px; }
    .source-copy strong { display: block; overflow: hidden; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
    .source-copy small { display: block; margin-top: 6px; color: var(--muted); font-size: 7px; }
    .source-actions { display: flex; gap: 8px; }

    .materials-heading { margin: 36px 4px 17px; }
    .materials-heading h2 { margin-bottom: 7px; font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
    .materials-heading p { margin: 0; color: var(--muted); font-size: 9px; }
    .materials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }

    .result-card {
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 240px;
      padding: 22px;
      border: 1px dashed rgba(92,149,255,.38);
      border-radius: 27px;
      color: var(--ink);
      background: rgba(255,255,255,.40);
      text-align: left;
    }

    html[data-theme="dark"] .result-card { background: rgba(7,27,51,.52); }
    .result-card.ready { border-style: solid; border-color: rgba(92,149,255,.38); background: var(--surface); box-shadow: var(--shadow-soft); }
    .result-card.future { border-color: var(--line); color: var(--muted); }
    .result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 27px; }
    .result-icon { display: grid; place-items: center; width: 51px; height: 51px; border-radius: 17px; color: var(--blue); background: var(--blue-pale); }
    .result-status { padding: 7px 9px; border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 7px; }
    .result-status.ready { color: var(--success); background: var(--success-soft); }
    .result-card h3 { margin-bottom: 9px; font-size: 17px; font-weight: 600; }
    .result-card p { max-width: 440px; margin-bottom: 22px; color: var(--muted); font-size: 8px; line-height: 1.55; }
    .result-file { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 11px; border-radius: 13px; background: var(--surface-2); font-size: 8px; }
    .result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

    /* Редактор караоке — только визуальный макет */
    .editor-page-top { align-items: center; }
    .editor-mode-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
    .mode-button { min-height: 44px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--muted); background: var(--surface); font-size: 9px; }
    .mode-button.active { border-color: rgba(92,149,255,.52); color: var(--ink); background: var(--blue-pale); }

    .editor-shell {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 31px;
      background: var(--surface);
      box-shadow: var(--shadow-soft);
    }

    .editor-statusbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 54px; padding: 0 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; }
    .mode-explainer { display: inline-flex; align-items: center; gap: 8px; }
    .mode-explainer::before { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); content: ""; }
    .editor-save { color: var(--success); }

    .transport {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      padding: 14px 20px;
      border-bottom: 1px solid var(--line);
    }

    .transport .timecode { min-width: 145px; font-size: 10px; font-weight: 600; }
    .transport .timecode span { color: var(--muted); font-weight: 400; }
    .transport-spacer { flex: 1; }
    .key-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 8px; }
    .keycap { padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--surface-2); font-size: 7px; }

    .wave-panel { position: relative; margin: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-3); }
    .wave-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 7px; }
    .zoom { display: flex; align-items: center; gap: 9px; }
    .zoom-track { width: 110px; height: 5px; border-radius: 999px; background: var(--surface-2); }
    .zoom-track i { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--blue); }

    .large-wave { position: relative; height: 180px; overflow: hidden; }
    .large-wave::before {
      position: absolute;
      inset: 27px 14px;
      background: repeating-linear-gradient(90deg, #8299b2 0 2px, transparent 2px 7px);
      clip-path: polygon(0 48%, 3% 36%, 7% 58%, 11% 24%, 16% 70%, 21% 35%, 27% 54%, 33% 18%, 39% 66%, 45% 28%, 51% 59%, 58% 15%, 64% 61%, 71% 34%, 77% 75%, 83% 27%, 89% 56%, 94% 38%, 100% 49%, 100% 56%, 94% 64%, 89% 46%, 83% 73%, 77% 35%, 71% 66%, 64% 41%, 58% 80%, 51% 43%, 45% 72%, 39% 34%, 33% 83%, 27% 46%, 21% 65%, 16% 29%, 11% 77%, 7% 40%, 3% 66%, 0 53%);
      opacity: .86;
      content: "";
    }

    .large-wave .selection { position: absolute; top: 0; bottom: 0; left: 24%; width: 24%; background: rgba(92,149,255,.12); border-right: 2px solid var(--blue); border-left: 2px solid var(--blue); }
    .large-wave .playhead { position: absolute; top: 0; bottom: 0; left: 41%; width: 2px; background: var(--danger); }

    .lyrics-panel { margin: 0 20px 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; }
    .lyrics-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 15px; border-bottom: 1px solid var(--line); }
    .lyrics-toolbar strong { font-size: 9px; }
    .lyrics-toolbar span { margin-left: 7px; color: var(--muted); font-size: 7px; font-weight: 400; }
    .lyrics-toolbar-actions { display: flex; gap: 8px; }
    .lyrics-row { display: grid; grid-template-columns: 94px minmax(0, 1fr) 72px; align-items: center; gap: 14px; min-height: 64px; padding: 8px 13px; border-top: 1px solid var(--line); }
    .lyrics-row:first-of-type { border-top: 0; }
    .lyrics-row.active { background: var(--blue-pale); box-shadow: inset 4px 0 var(--blue); }
    .lyric-time { padding: 9px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); background: var(--surface); font-size: 8px; }
    .lyric-copy { min-width: 0; font-size: 9px; line-height: 1.45; }
    .lyric-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 7px; }
    .row-actions { display: flex; justify-content: flex-end; gap: 6px; }
    .row-actions .icon-button { width: 32px; height: 32px; border-radius: 10px; }
    .row-actions .icon { width: 15px; height: 15px; }

    .editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px 20px; }
    .editor-footer p { margin: 0; color: var(--muted); font-size: 8px; }

    /* Нижний плеер */
    .audio-dock {
      position: fixed;
      right: 20px;
      bottom: 18px;
      left: 20px;
      z-index: 35;
      display: none;
      grid-template-columns: auto minmax(200px, 1fr) auto;
      align-items: center;
      gap: 18px;
      max-width: 1180px;
      min-height: 72px;
      margin: 0 auto;
      padding: 10px 13px;
      border: 1px solid rgba(92,149,255,.24);
      border-radius: 22px;
      background: var(--header);
      box-shadow: 0 18px 55px rgba(0,22,48,.18);
      backdrop-filter: blur(18px);
    }

    .audio-dock.visible { display: grid; }
    .audio-meta { display: grid; grid-template-columns: 44px auto; align-items: center; gap: 10px; }
    .audio-cover { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--blue); background: var(--blue-pale); }
    .audio-meta strong { display: block; margin-bottom: 4px; font-size: 8px; }
    .audio-meta span { display: block; color: var(--muted); font-size: 7px; }
    .audio-timeline { display: grid; grid-template-columns: auto minmax(80px,1fr) auto; align-items: center; gap: 11px; }
    .audio-timeline span { color: var(--muted); font-size: 7px; }
    .timeline-track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
    .timeline-track i { display: block; width: 36%; height: 100%; background: var(--blue); }
    .audio-actions { display: flex; gap: 7px; }

    /* Модальные окна */
    .modal-layer {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: none;
      place-items: center;
      padding: 24px;
      background: rgba(0, 15, 31, .66);
      backdrop-filter: blur(10px);
    }

    .modal-layer.open { display: grid; }

    .modal {
      position: relative;
      width: min(100%, 700px);
      max-height: min(900px, calc(100vh - 48px));
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 30px;
      color: var(--ink);
      background: var(--surface);
      box-shadow: 0 35px 100px rgba(0, 13, 29, .38);
    }

    .modal.wide { width: min(100%, 860px); }
    .modal.narrow { width: min(100%, 540px); }
    .modal-close { position: absolute; top: 17px; right: 17px; z-index: 2; }
    .modal-head { padding: 29px 31px 20px; border-bottom: 1px solid var(--line); }
    .modal-head h2 { margin-bottom: 9px; padding-right: 54px; font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
    .modal-head p { max-width: 600px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
    .modal-body { padding: 25px 31px 30px; }
    .modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 31px 27px; border-top: 1px solid var(--line); }
    .modal-footer p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }

    .auth-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--ink); }
    .auth-brand .star { width: 24px; height: 24px; color: var(--blue); }
    .auth-brand strong { font-size: 12px; font-weight: 800; letter-spacing: -.04em; }
    .auth-context { margin-bottom: 22px; padding: 13px 14px; border-radius: 15px; color: var(--ink-soft); background: var(--blue-pale); font-size: 8px; line-height: 1.5; }
    .auth-switch { display: flex; gap: 5px; margin-bottom: 23px; padding: 5px; border-radius: 15px; background: var(--surface-2); }
    .modal-tab { flex: 1; min-height: 40px; border-radius: 11px; color: var(--muted); background: transparent; font-size: 9px; }
    .modal-tab.active { color: var(--ink); background: var(--surface); box-shadow: 0 6px 18px rgba(0,22,48,.08); }
    .auth-panel { display: none; }
    .auth-panel.active { display: block; }
    .auth-panel h2 { margin-bottom: 9px; font-size: 28px; font-weight: 800; letter-spacing: -.045em; }
    .auth-panel > p { margin-bottom: 22px; color: var(--muted); font-size: 9px; line-height: 1.55; }
    .auth-form { display: grid; gap: 14px; }
    .auth-form .button { width: 100%; margin-top: 4px; }
    .free-tokens { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 13px; border-radius: 16px; color: var(--success); background: var(--success-soft); font-size: 8px; line-height: 1.45; }
    .free-tokens .icon { flex: 0 0 auto; }

    .picker-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
    .picker-action { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 19px; color: var(--ink); background: var(--surface); text-align: left; cursor: pointer; }
    .picker-action .benefit-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 15px; }
    .picker-action strong { display: block; margin-bottom: 5px; font-size: 9px; }
    .picker-action span { display: block; color: var(--muted); font-size: 7px; line-height: 1.4; }
    .picker-label { margin: 0 0 10px; color: var(--muted); font-size: 8px; }
    .picker-list { display: grid; gap: 9px; }
    .picker-project { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 68px; padding: 11px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: var(--surface-3); text-align: left; }
    .picker-project .source-icon { width: 44px; height: 44px; border-radius: 14px; }
    .picker-project strong { display: block; margin-bottom: 5px; font-size: 9px; }
    .picker-project span { display: block; color: var(--muted); font-size: 7px; }

    .setup-modes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-bottom: 20px; }
    .setup-mode { min-height: 66px; padding: 11px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); background: var(--surface-3); text-align: left; cursor: pointer; }
    .setup-mode.active { border-color: rgba(92,149,255,.48); color: var(--ink); background: var(--blue-pale); }
    .setup-mode strong { display: block; margin-bottom: 6px; font-size: 8px; }
    .setup-mode span { display: block; font-size: 6px; line-height: 1.4; }

    .upload-zone {
      display: grid;
      place-items: center;
      width: 100%;
      min-height: 150px;
      margin-bottom: 17px;
      padding: 20px;
      border: 1px dashed rgba(92,149,255,.50);
      border-radius: 21px;
      color: var(--muted);
      background: var(--blue-wash);
      text-align: center;
    }

    .upload-zone .benefit-icon { margin-bottom: 12px; }
    .upload-zone strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 9px; }
    .upload-zone span { display: block; max-width: 560px; font-size: 7px; line-height: 1.45; }
    .setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .lyrics-upload { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 9px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); font-size: 7px; }

    .account-tabs { display: flex; gap: 5px; padding: 0 31px; border-bottom: 1px solid var(--line); }
    .account-tabs .modal-tab { flex: 0 1 190px; border-radius: 12px 12px 0 0; }
    .account-tabs .modal-tab.active { color: var(--blue); box-shadow: inset 0 -2px var(--blue); }
    .account-panel { display: none; }
    .account-panel.active { display: block; }
    .nickname-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-bottom: 10px; }
    .token-balance { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; padding: 20px; border-radius: 19px; background: var(--blue-pale); }
    .token-balance span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; }
    .token-balance strong { font-size: 34px; font-weight: 800; }
    .token-balance p { margin: 0; color: var(--muted); font-size: 8px; }
    .ledger { width: 100%; border-collapse: collapse; font-size: 8px; }
    .ledger th, .ledger td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
    .ledger th { color: var(--muted); font-size: 7px; font-weight: 500; }
    .ledger td:last-child, .ledger th:last-child { text-align: right; }
    .plus-token { color: var(--success); }

    .help-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: help; }
    .help-list li { position: relative; padding: 15px 15px 15px 55px; border-radius: 17px; background: var(--surface-2); color: var(--ink-soft); font-size: 8px; line-height: 1.55; counter-increment: help; }
    .help-list li::before { position: absolute; top: 13px; left: 13px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 10px; color: var(--navy); background: var(--blue); font-size: 8px; font-weight: 600; content: counter(help, decimal-leading-zero); }

    .toast {
      position: fixed;
      right: 24px;
      bottom: 24px;
      z-index: 150;
      max-width: min(390px, calc(100% - 32px));
      padding: 15px 18px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 16px;
      color: #fff;
      background: var(--navy);
      box-shadow: 0 18px 55px rgba(0,22,48,.25);
      font-size: 8px;
      line-height: 1.5;
      opacity: 0;
      pointer-events: none;
      transform: translateY(10px);
      transition: opacity .2s ease, transform .2s ease;
    }

    .toast.visible { opacity: 1; transform: translateY(0); }

    .mobile-nav {
      position: fixed;
      right: 10px;
      bottom: 10px;
      left: 10px;
      z-index: 40;
      display: none;
      grid-template-columns: repeat(3, 1fr);
      gap: 5px;
      padding: 6px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: var(--header);
      box-shadow: 0 14px 46px rgba(0,22,48,.18);
      backdrop-filter: blur(18px);
    }

    .mobile-nav-button { display: grid; place-items: center; gap: 4px; min-height: 50px; border-radius: 15px; color: var(--muted); background: transparent; font-size: 6px; }
    .mobile-nav-button .icon { width: 18px; height: 18px; }
    .mobile-nav-button.active { color: var(--ink); background: var(--surface-2); }

    @media (max-width: 1120px) {
      .header-inner { grid-template-columns: minmax(0,1fr) auto; }
      .main-nav { display: none; }
      .platform-intro { grid-template-columns: 1fr; gap: 15px; }
      .platform-copy { max-width: 720px; }
      .tool-switcher { display: flex; margin-right: -24px; padding-right: 24px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
      .tool-switcher::-webkit-scrollbar { display: none; }
      .tool-tab { flex: 0 0 235px; scroll-snap-align: start; }
      .hero { grid-template-columns: minmax(0,1fr); }
      .hero-copy { padding: 58px 58px 30px; }
      .hero-visual { min-height: 590px; padding: 30px 80px 55px; }
      .floating-file { left: 38px; }
      .floating-result { right: 48px; }
      .project-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 840px) {
      .benefit-grid { grid-template-columns: 1fr; }
      .project-identity { grid-template-columns: 190px minmax(0,1fr); }
      .materials-grid { grid-template-columns: 1fr; }
      .audio-dock { grid-template-columns: auto minmax(100px,1fr); }
      .audio-actions { display: none; }
      .setup-modes { grid-template-columns: 1fr; }
    }

    @media (max-width: 760px) {
      body { padding-bottom: 76px; }
      body.has-audio { padding-bottom: 156px; }
      .site-header { height: 68px; }
      .header-inner,
      .app-main { width: min(1320px, calc(100% - 28px)); }
      .header-inner { grid-template-columns: minmax(0,1fr) auto; }
      .brand-word { font-size: 13px; }
      .brand .star { width: 23px; height: 23px; }
      .login-button { display: none; }
      .header-actions .button.primary { min-height: 40px; padding: 0 12px; font-size: 8px; }
      .icon-button { width: 39px; height: 39px; border-radius: 13px; }
      .wallet-copy span { display: none; }
      .wallet-button { min-height: 39px; padding: 0 10px; }
      .account-button { width: 39px; height: 39px; border-radius: 13px; }
      .app-main { padding-top: 15px; padding-bottom: 38px; }
      .platform-intro { gap: 12px; padding: 14px 3px 22px; }
      .platform-intro h1 { font-size: 29px; }
      .platform-copy { display: none; }
      .tool-switcher { margin-right: -14px; padding-right: 14px; }
      .hero { min-height: 0; border-radius: 28px; }
      .hero-copy { padding: 35px 23px 26px; }
      .hero h2 { font-size: clamp(38px, 11vw, 52px); }
      .hero-lead { font-size: 10px; }
      .hero-actions { align-items: stretch; flex-direction: column; }
      .hero-actions .button { width: 100%; min-height: 52px; }
      .hero-trust { display: grid; }
      .hero-visual { min-height: 470px; padding: 26px 14px 42px; }
      .editor-preview { width: 94%; padding: 9px; border-radius: 23px; transform: rotate(.6deg); }
      .editor-preview-inner { min-height: 392px; border-radius: 16px; }
      .preview-mode { display: none; }
      .preview-track { grid-template-columns: 47px minmax(0,1fr); }
      .floating-file { top: 7px; left: 4px; transform: scale(.86) rotate(-2deg); transform-origin: left center; }
      .floating-result { right: 2px; bottom: 7px; transform: scale(.86) rotate(1deg); transform-origin: right center; }
      .benefit-card { min-height: 104px; }
      .utility-section { margin-top: 49px; }
      .section-heading, .page-top { align-items: flex-start; flex-direction: column; }
      .section-heading h2 { font-size: 29px; }
      .utility-card { grid-template-columns: 55px minmax(0,1fr); min-height: 145px; padding: 18px; }
      .utility-card .benefit-icon { width: 55px; height: 55px; border-radius: 18px; }
      .utility-card .soon-badge { position: absolute; top: 16px; right: 16px; }
      .page-top { gap: 17px; padding-top: 10px; }
      .page-top h1 { font-size: 34px; }
      .page-actions { width: 100%; }
      .page-actions .button { flex: 1; }
      .project-toolbar { grid-template-columns: 1fr; }
      .project-toolbar .button { width: 100%; }
      .project-card { grid-template-columns: 78px minmax(0,1fr); min-height: 132px; padding: 16px; border-radius: 23px; }
      .project-cover { width: 78px; border-radius: 20px; }
      .project-cover .star { width: 34px; height: 34px; }
      .project-arrow { display: none; }
      .project-card-copy h2 { font-size: 16px; }
      .project-identity { grid-template-columns: 1fr; padding: 17px; border-radius: 25px; }
      .cover-slot { width: min(100%, 230px); }
      .form-grid { grid-template-columns: 1fr; }
      .field.full { grid-column: auto; }
      .project-section { padding: 18px; border-radius: 25px; }
      .source-row { grid-template-columns: 47px minmax(0,1fr); }
      .source-icon { width: 47px; height: 47px; border-radius: 15px; }
      .source-actions { grid-column: 1 / -1; }
      .source-actions .button { flex: 1; }
      .result-card { min-height: 225px; padding: 18px; border-radius: 23px; }
      .editor-page-top { align-items: flex-start; }
      .editor-mode-nav { display: grid; grid-template-columns: 1fr; }
      .mode-button { width: 100%; text-align: left; }
      .editor-shell { border-radius: 24px; }
      .editor-statusbar { align-items: flex-start; flex-direction: column; gap: 7px; padding: 13px 16px; }
      .transport { padding: 12px; }
      .transport .timecode { min-width: 120px; }
      .transport-spacer { display: none; }
      .key-hint { width: 100%; }
      .wave-panel { margin: 12px; }
      .large-wave { height: 135px; }
      .lyrics-panel { margin: 0 12px 12px; }
      .lyrics-toolbar { align-items: flex-start; flex-direction: column; }
      .lyrics-row { grid-template-columns: 74px minmax(0,1fr); gap: 10px; }
      .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
      .editor-footer { align-items: stretch; flex-direction: column; padding: 4px 12px 16px; }
      .editor-footer .button { width: 100%; }
      .audio-dock { right: 10px; bottom: 75px; left: 10px; grid-template-columns: 1fr auto; min-height: 66px; padding: 8px; border-radius: 19px; }
      .audio-timeline { display: none; }
      .audio-actions { display: flex; }
      .mobile-nav { display: grid; }
      .modal-layer { align-items: end; padding: 0; }
      .modal { width: 100% !important; max-height: calc(100vh - 20px); border-radius: 27px 27px 0 0; }
      .modal-head { padding: 25px 20px 18px; }
      .modal-body { padding: 21px 20px 24px; }
      .modal-footer { align-items: stretch; flex-direction: column; padding: 17px 20px 22px; }
      .modal-footer .button { width: 100%; }
      .modal-close { top: 13px; right: 13px; }
      .picker-actions, .setup-grid { grid-template-columns: 1fr; }
      .account-tabs { padding: 0 20px; overflow-x: auto; }
      .account-tabs .modal-tab { flex: 0 0 150px; }
      .token-balance { align-items: flex-start; flex-direction: column; }
      .ledger { font-size: 7px; }
      .toast { right: 16px; bottom: 88px; left: 16px; max-width: none; }
    }

    @media (max-width: 420px) {
      body.authenticated #theme-toggle { display: none; }
    }

    @media (max-width: 380px) {
      .header-inner,
      .app-main { width: calc(100% - 20px); }
      .brand { gap: 6px; }
      .brand-word { font-size: 11px; }
      .brand .star { width: 19px; height: 19px; }
      #theme-toggle { display: none; }
      .header-actions .button.primary { padding: 0 10px; }
      .wallet-button { display: none !important; }
      .tool-switcher { margin-right: -10px; padding-right: 10px; }
      .hero-copy { padding-right: 18px; padding-left: 18px; }
      .hero h2 { font-size: 34px; }
      .preview-track { padding-right: 10px; padding-left: 10px; }
      .project-card { grid-template-columns: 65px minmax(0,1fr); gap: 13px; }
      .project-cover { width: 65px; }
      .status-chip:nth-child(n+2) { display: none; }
    }

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