      @import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Unbounded:wght@400;600;700&display=swap");

      :root {
        --bg-1: #0f0f12;
        --bg-2: #1c1b24;
        --bg-3: #2b1d2d;
        --ink-1: #f8f6f2;
        --ink-2: #c8c0b5;
        --accent-1: #ff8a3d;
        --accent-2: #f2c94c;
        --accent-3: #5cf0d3;
        --card: rgba(255, 255, 255, 0.06);
        --card-border: rgba(41, 15, 15, 0.08);
        --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
      }

      * {
        box-sizing: border-box;
      }

      html {
        height: 100%;
      }

      body {
        margin: 0;
        font-family: "Space Grotesk", system-ui, sans-serif;
        color: var(--ink-1);
        background-color: var(--bg-1);
        background-image: radial-gradient(1200px 800px at 10% 10%, rgba(47, 45, 63, 0.75) 0%, transparent 60%),
          radial-gradient(900px 600px at 90% 20%, rgba(61, 37, 50, 0.7) 0%, transparent 60%),
          linear-gradient(120deg, rgba(15, 15, 18, 0.85), rgba(28, 27, 36, 0.85) 40%, rgba(43, 29, 45, 0.85)),
          url("../../ieeuMfon.png");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
      }

      .hero {
        padding: 22px 6vw 12px;
        display: grid;
        gap: 14px;
        text-align: center;
        align-items: center;
      }

      .hero h1 {
        font-family: "Unbounded", sans-serif;
        font-size: clamp(1.1rem, 1.45vw, 1.6rem);
        margin: 0;
        letter-spacing: 0.02em;
        line-height: 1.18;
      }

      .hero p {
        max-width: 620px;
        color: var(--ink-2);
        margin: 0 auto;
        font-size: 0.78rem;
      }

      .grid {
        padding: 0 6vw 20px;
        display: grid;
        gap: 14px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        flex: 1;
        align-items: start;
        align-content: start;
        min-height: 0;
      }

      .card {
        background: var(--card);
        border: 1px solid var(--card-border);
        border-radius: 20px;
        padding: 14px;
        box-shadow: var(--shadow);
        backdrop-filter: blur(12px);
        transform: translateY(10px);
        opacity: 0;
        animation: rise 0.9s ease forwards;
        min-height: 0;
        max-height: calc(100vh - 210px);
        overflow-y: auto;
      }

      .card:nth-child(2) {
        animation-delay: 0.1s;
      }

      .card:nth-child(3) {
        animation-delay: 0.2s;
      }

      .card,
      .mastering-card .tab-panel[data-panel="manual"] {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 149, 71, 0.8) rgba(255, 255, 255, 0.08);
      }

      .card::-webkit-scrollbar,
      .mastering-card .tab-panel[data-panel="manual"]::-webkit-scrollbar {
        width: 10px;
        height: 10px;
      }

      .card::-webkit-scrollbar-track,
      .mastering-card .tab-panel[data-panel="manual"]::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 999px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
      }

      .card::-webkit-scrollbar-thumb,
      .mastering-card .tab-panel[data-panel="manual"]::-webkit-scrollbar-thumb {
        border-radius: 999px;
        border: 1px solid rgba(18, 12, 22, 0.7);
        background: linear-gradient(180deg, rgba(255, 138, 61, 0.95), rgba(242, 201, 76, 0.92));
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
      }

      .card::-webkit-scrollbar-thumb:hover,
      .mastering-card .tab-panel[data-panel="manual"]::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(255, 165, 94, 0.98), rgba(92, 240, 211, 0.9));
      }

      .card h2 {
        margin: 0 0 8px;
        font-size: 1rem;
        letter-spacing: 0.02em;
      }

      .card .hint {
        color: var(--ink-2);
        font-size: 0.82rem;
        margin-bottom: 10px;
      }

      .upload-area {
        border: 1px dashed rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 14px;
        display: grid;
        gap: 10px;
        background: rgba(10, 10, 16, 0.4);
      }

      .upload-area input[type="file"],
      .reference-tools input[type="file"] {
        width: 100%;
        padding: 5px 7px;
        border-radius: 11px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(8, 10, 18, 0.52);
        color: var(--ink-2);
        font-size: 0.72rem;
      }

      .upload-area input[type="file"]:focus-visible,
      .reference-tools input[type="file"]:focus-visible {
        outline: none;
        border-color: rgba(92, 240, 211, 0.55);
        box-shadow: 0 0 0 2px rgba(92, 240, 211, 0.22);
      }

      .upload-area input[type="file"]::file-selector-button,
      .reference-tools input[type="file"]::file-selector-button,
      .upload-area input[type="file"]::-webkit-file-upload-button,
      .reference-tools input[type="file"]::-webkit-file-upload-button {
        margin-right: 10px;
        padding: 7px 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 187, 116, 0.62);
        background: linear-gradient(135deg, rgba(255, 146, 67, 0.96), rgba(242, 201, 76, 0.94));
        color: #17131c;
        font-weight: 700;
        font-size: 0.72rem;
        letter-spacing: 0.01em;
        cursor: pointer;
        box-shadow: inset 0 1px 0 rgba(255, 241, 207, 0.34), 0 3px 10px rgba(0, 0, 0, 0.26);
        transition:
          transform 0.16s ease,
          box-shadow 0.16s ease,
          filter 0.16s ease;
      }

      .upload-area input[type="file"]:hover::file-selector-button,
      .reference-tools input[type="file"]:hover::file-selector-button,
      .upload-area input[type="file"]:hover::-webkit-file-upload-button,
      .reference-tools input[type="file"]:hover::-webkit-file-upload-button {
        transform: translateY(-1px);
        filter: saturate(1.08) brightness(1.03);
        box-shadow: inset 0 1px 0 rgba(255, 246, 219, 0.4), 0 6px 14px rgba(0, 0, 0, 0.32);
      }

      .meta {
        display: grid;
        gap: 6px;
        font-size: 0.86rem;
        color: var(--ink-2);
      }

      .meta strong {
        color: var(--ink-1);
      }

      .controls {
        display: grid;
        gap: 8px;
      }

      .mastering-card .hint {
        font-size: 0.74rem;
        margin-bottom: 6px;
      }

      .mastering-card .controls {
        gap: 5px;
      }

      .mastering-card label {
        font-size: 0.76rem;
        gap: 2px;
        line-height: 1.1;
      }

      .mastering-card select,
      .mastering-card input[type="number"] {
        padding: 7px 10px;
        border-radius: 10px;
        font-size: 0.76rem;
      }

      .mastering-card .range-row {
        grid-template-columns: 1fr 52px;
        gap: 6px;
      }

      .mastering-card label.inline-toggle-control {
        display: grid;
        grid-template-columns: minmax(118px, 160px) 1fr 20px;
        align-items: center;
        gap: 8px;
        min-height: 24px;
      }

      .mastering-card label.inline-toggle-control .inline-label {
        color: var(--ink-2);
        text-align: left;
      }

      .mastering-card label.inline-toggle-control .range-row {
        grid-template-columns: 1fr 50px;
        gap: 6px;
      }

      .mastering-card label.inline-toggle-control .hint-toggle {
        justify-self: center;
      }

      .hint-toggle {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        margin: 0;
        position: relative;
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        background: rgba(255, 255, 255, 0.05);
        box-shadow: inset 0 0 0 1px rgba(10, 14, 23, 0.52), 0 0 0 1px rgba(10, 16, 26, 0.4);
        cursor: help;
        transition:
          border-color 0.18s ease,
          background 0.18s ease,
          box-shadow 0.18s ease,
          opacity 0.18s ease;
      }

      .hint-toggle::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 2px;
        width: 4px;
        height: 8px;
        border-right: 2px solid rgba(13, 18, 26, 0.92);
        border-bottom: 2px solid rgba(13, 18, 26, 0.92);
        transform: rotate(45deg) scale(0.85);
        opacity: 0;
      }

      .hint-toggle:checked {
        border-color: rgba(255, 178, 102, 0.68);
        background: linear-gradient(180deg, rgba(255, 186, 110, 0.96) 0%, rgba(255, 146, 58, 0.92) 100%);
      }

      .hint-toggle:checked::after {
        opacity: 1;
        transform: rotate(45deg) scale(1);
      }

      .hint-toggle:focus-visible {
        outline: none;
        box-shadow:
          0 0 0 2px rgba(6, 10, 18, 0.9),
          0 0 0 4px rgba(92, 240, 211, 0.42),
          inset 0 0 0 1px rgba(10, 14, 23, 0.52);
      }

      .hint-toggle:disabled {
        opacity: 0.45;
        cursor: not-allowed;
      }

      .mastering-card label.inline-toggle-control .toggle-slot {
        width: 16px;
        height: 16px;
        justify-self: center;
        position: relative;
        border-radius: 4px;
        border: 1px solid rgba(255, 178, 102, 0.55);
        background: linear-gradient(180deg, rgba(255, 186, 110, 0.95) 0%, rgba(255, 146, 58, 0.9) 100%);
        box-shadow: inset 0 0 0 1px rgba(10, 14, 23, 0.52), 0 0 0 1px rgba(10, 16, 26, 0.4);
      }

      .mastering-card label.inline-toggle-control .toggle-slot::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 2px;
        width: 4px;
        height: 8px;
        border-right: 2px solid rgba(13, 18, 26, 0.9);
        border-bottom: 2px solid rgba(13, 18, 26, 0.9);
        transform: rotate(45deg);
      }

      .mastering-card label.inline-toggle-control.no-toggle .toggle-slot {
        opacity: 0.76;
      }

      .valve-culture-panel {
        display: grid;
        gap: 6px;
        margin: 5px 0;
        padding: 10px;
        border: 1px solid rgba(255, 170, 82, 0.3);
        border-radius: 13px;
        background:
          radial-gradient(circle at 8% 0%, rgba(255, 137, 50, 0.12), transparent 42%),
          rgba(8, 10, 14, 0.42);
        box-shadow: inset 0 1px 0 rgba(255, 226, 187, 0.05);
      }

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

      .valve-culture-heading > div {
        display: grid;
        gap: 2px;
      }

      .valve-culture-heading strong {
        color: #ffd39c;
        font-size: 0.78rem;
      }

      .valve-culture-panel .valve-enable-label {
        grid-template-columns: auto 20px;
        min-width: 62px;
      }

      .valve-culture-panel select {
        width: 100%;
      }

      .valve-culture-panel.is-disabled > label:not(.valve-enable-label) {
        opacity: 0.48;
      }

      label.toggle-inline {
        display: grid;
        grid-template-columns: 1fr 20px;
        align-items: center;
        gap: 8px;
        min-height: 24px;
      }

      label.toggle-inline span {
        color: var(--ink-2);
      }

      label.toggle-inline .hint-toggle {
        justify-self: center;
      }

      .toggle-hint-mini {
        min-height: 24px;
        border-radius: 10px;
        border: 1px dashed rgba(255, 255, 255, 0.16);
        background: rgba(6, 8, 15, 0.35);
        color: var(--ink-2);
        font-size: 0.68rem;
        line-height: 1.2;
        padding: 6px 8px;
        display: flex;
        align-items: center;
        transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
      }

      .toggle-hint-mini.active {
        border-color: rgba(92, 240, 211, 0.45);
        color: #c7fff4;
        background: rgba(92, 240, 211, 0.12);
      }

      .reference-tools {
        display: grid;
        gap: 6px;
        padding: 8px;
        border-radius: 10px;
        border: 1px dashed rgba(255, 255, 255, 0.14);
        background: rgba(8, 9, 16, 0.24);
      }

      .reference-tools input[type="file"] {
        font-size: 0.72rem;
      }

      .reference-tools select {
        width: 100%;
      }

      .reference-meta {
        margin: 0;
        font-size: 0.68rem;
        color: var(--ink-2);
      }

      .reference-tools button {
        justify-self: start;
      }

      .source-card .reference-tools {
        margin-top: 10px;
      }

      .source-card .reference-tools label {
        text-align: left;
        font-size: 0.74rem;
        color: var(--ink-2);
      }

      .source-card .reference-tools select {
        width: 100%;
      }

      .source-card .reference-tools .reference-meta {
        text-align: left;
      }

      .mastering-card .tab-bar {
        padding: 4px;
        margin-bottom: 8px;
      }

      .mastering-card .mastering-top-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 2px 0 8px;
      }

      .mastering-card .mastering-top-controls label {
        text-align: left;
        font-size: 0.74rem;
        color: var(--ink-2);
      }

      .mastering-card .mastering-top-controls select {
        width: 100%;
      }

      .mastering-card .mastering-top-controls .toggle-hint-mini {
        grid-column: 1 / -1;
        margin: 0;
      }

      .mastering-card .device-profile-hint.active {
        color: #ffe4a0;
      }

      .mastering-card .reference-tools {
        margin: 0 0 8px;
      }

      .mastering-card .reference-tools label {
        text-align: left;
        font-size: 0.74rem;
        color: var(--ink-2);
      }

      .mastering-card .reference-tools .reference-meta {
        text-align: left;
      }

      .mastering-card .tab-button {
        padding: 6px 12px;
        font-size: 0.7rem;
      }

      .mastering-card {
        padding: 12px;
        max-height: calc(100vh - 210px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }

      .mastering-card h2 {
        font-size: 0.95rem;
        margin-bottom: 6px;
      }

      .mastering-card .toggle-row {
        gap: 6px;
      }

      .mastering-card .tab-panel {
        min-height: 0;
      }

      .mastering-card .tab-panel[data-panel="manual"] {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding-right: 4px;
      }

      .source-card h3 {
        margin: 12px 0 6px;
        font-size: 0.88rem;
        letter-spacing: 0.02em;
      }

      .source-card .controls {
        gap: 6px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: end;
      }

      .source-card .controls > label {
        font-size: 0.72rem;
        gap: 6px;
        text-align: center;
      }

      .source-card .range-row {
        grid-template-columns: 1fr;
        gap: 8px;
        justify-items: center;
        align-items: end;
      }

      .source-card .range-row input[type="range"] {
        width: 14px;
        height: 132px;
        margin: 0;
        padding: 0;
        border: 0;
        direction: rtl;
        writing-mode: vertical-lr;
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        cursor: pointer;
      }

      .source-card .range-row input[type="range"]::-webkit-slider-runnable-track {
        width: 8px;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(92, 240, 211, 0.92), rgba(242, 201, 76, 0.92), rgba(255, 138, 61, 0.96));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(14, 10, 20, 0.45);
      }

      .source-card .range-row input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        margin-top: 0;
        border-radius: 50%;
        border: 1px solid rgba(18, 12, 24, 0.75);
        background: radial-gradient(
          circle at 35% 30%,
          #fff6de 0%,
          #ffd9a3 38%,
          #ff9f4e 72%,
          #ea6d2d 100%
        );
        transform: translateX(-4px);
        box-shadow: 0 0 0 2px rgba(255, 171, 94, 0.3), 0 4px 10px rgba(0, 0, 0, 0.34);
      }

      .source-card .range-row input[type="range"]::-moz-range-track {
        width: 8px;
        border: none;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(92, 240, 211, 0.92), rgba(242, 201, 76, 0.92), rgba(255, 138, 61, 0.96));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(14, 10, 20, 0.45);
      }

      .source-card .range-row input[type="range"]::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border: 1px solid rgba(18, 12, 24, 0.75);
        border-radius: 50%;
        background: radial-gradient(
          circle at 35% 30%,
          #fff6de 0%,
          #ffd9a3 38%,
          #ff9f4e 72%,
          #ea6d2d 100%
        );
        transform: translateX(-4px);
        box-shadow: 0 0 0 2px rgba(255, 171, 94, 0.3), 0 4px 10px rgba(0, 0, 0, 0.34);
      }

      .source-card .range-row input[type="number"] {
        width: 52px;
        justify-self: center;
        text-align: center;
        padding: 6px 6px;
        font-size: 0.78rem;
      }

      label {
        font-size: 0.82rem;
        color: var(--ink-2);
        display: grid;
        gap: 4px;
      }

      select,
      input[type="range"],
      input[type="number"],
      button {
        font-family: inherit;
      }

      select,
      input[type="number"] {
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.08);
        color: var(--ink-1);
        text-align: center;
        appearance: textfield;
        -moz-appearance: textfield;
      }

      input[type="number"]::-webkit-outer-spin-button,
      input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
      }

      .range-row {
        display: grid;
        grid-template-columns: 1fr 80px;
        gap: 10px;
        align-items: center;
      }

      input[type="range"] {
        width: 100%;
        accent-color: var(--accent-1);
      }

      .mastering-card input[type="range"] {
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        cursor: pointer;
      }

      .mastering-card input[type="range"]::-webkit-slider-runnable-track {
        height: 8px;
        border-radius: 999px;
        background: linear-gradient(
          90deg,
          rgba(255, 138, 61, 0.95) 0%,
          rgba(242, 201, 76, 0.92) 45%,
          rgba(92, 240, 211, 0.9) 100%
        );
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(14, 10, 20, 0.4);
      }

      .mastering-card input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        margin-top: -4px;
        border-radius: 50%;
        border: 1px solid rgba(20, 12, 26, 0.72);
        background: radial-gradient(
          circle at 35% 30%,
          #fff6de 0%,
          #ffd9a3 38%,
          #ff9f4e 72%,
          #ea6d2d 100%
        );
        box-shadow: 0 0 0 2px rgba(255, 171, 94, 0.28), 0 4px 10px rgba(0, 0, 0, 0.34);
      }

      .mastering-card input[type="range"]::-moz-range-track {
        height: 8px;
        border: none;
        border-radius: 999px;
        background: linear-gradient(
          90deg,
          rgba(255, 138, 61, 0.95) 0%,
          rgba(242, 201, 76, 0.92) 45%,
          rgba(92, 240, 211, 0.9) 100%
        );
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(14, 10, 20, 0.4);
      }

      .mastering-card input[type="range"]::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border: 1px solid rgba(20, 12, 26, 0.72);
        border-radius: 50%;
        background: radial-gradient(
          circle at 35% 30%,
          #fff6de 0%,
          #ffd9a3 38%,
          #ff9f4e 72%,
          #ea6d2d 100%
        );
        box-shadow: 0 0 0 2px rgba(255, 171, 94, 0.28), 0 4px 10px rgba(0, 0, 0, 0.34);
      }

      .mastering-card input[type="range"]:disabled {
        opacity: 0.45;
        cursor: not-allowed;
      }

      .buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
      }

      .tab-bar {
        display: inline-flex;
        gap: 6px;
        padding: 6px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(0, 0, 0, 0.35);
        margin-bottom: 10px;
      }

      .tab-button {
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: transparent;
        color: var(--ink-2);
        font-size: 0.74rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        font-weight: 600;
      }

      .tab-button.active {
        background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
        color: #1c1a1f;
        border: none;
      }

      .tab-panel[hidden] {
        display: none;
      }

      .auto-status {
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 0.8rem;
        color: var(--ink-2);
      }

      .auto-readout {
        display: grid;
        gap: 6px;
        margin: 10px 0;
        font-size: 0.78rem;
        color: var(--ink-2);
      }

      .auto-readout strong {
        color: var(--ink-1);
      }

      .auto-chip {
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 0.6rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        background: rgba(255, 255, 255, 0.1);
        color: var(--ink-2);
        border: 1px solid rgba(255, 255, 255, 0.12);
      }

      .auto-chip.bright {
        background: rgba(92, 240, 211, 0.2);
        color: #7ff3da;
        border-color: rgba(92, 240, 211, 0.35);
      }

      .auto-chip.warm {
        background: rgba(255, 138, 61, 0.2);
        color: #ffb37d;
        border-color: rgba(255, 138, 61, 0.35);
      }

      .auto-chip.balanced {
        background: rgba(242, 201, 76, 0.2);
        color: #f2c94c;
        border-color: rgba(242, 201, 76, 0.35);
      }

      .auto-chip.rock {
        background: rgba(108, 178, 255, 0.2);
        color: #a8d2ff;
        border-color: rgba(108, 178, 255, 0.35);
      }

      button {
        padding: 10px 12px;
        border-radius: 14px;
        border: none;
        color: #1c1a1f;
        font-weight: 600;
        cursor: pointer;
        background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }

      button.secondary {
        background: linear-gradient(135deg, #2fe5ba, var(--accent-3));
      }

      button.ghost {
        background: rgba(255, 255, 255, 0.08);
        color: var(--ink-1);
        border: 1px solid rgba(255, 255, 255, 0.12);
      }

      button.ghost.active {
        background: linear-gradient(135deg, rgba(255, 149, 71, 0.9), rgba(242, 201, 76, 0.9));
        color: #1c1a1f;
        border-color: rgba(255, 176, 101, 0.62);
      }

      button.tiny {
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 0.78rem;
      }

      button.tiny.active {
        background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
        color: #1c1a1f;
        border: none;
      }

      button:disabled {
        cursor: not-allowed;
        opacity: 0.4;
        transform: none;
        box-shadow: none;
      }

      button:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
      }

      .status {
        padding: 8px 10px;
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.82rem;
        color: var(--ink-2);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
      }

      .status strong {
        color: var(--accent-2);
      }

      .qc-badge {
        padding: 3px 9px;
        border-radius: 999px;
        font-size: 0.62rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.08);
        color: var(--ink-2);
      }

      .qc-badge.pass {
        background: rgba(92, 240, 211, 0.16);
        border-color: rgba(92, 240, 211, 0.42);
        color: #b7fff1;
      }

      .qc-badge.warn {
        background: rgba(242, 201, 76, 0.16);
        border-color: rgba(242, 201, 76, 0.44);
        color: #f7dd87;
      }

      .qc-badge.fail {
        background: rgba(255, 92, 77, 0.16);
        border-color: rgba(255, 92, 77, 0.45);
        color: #ffb0a8;
      }

      .meter {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.72rem;
        color: var(--ink-2);
        flex: 0 0 220px;
      }

      .meter-bar {
        position: relative;
        width: 120px;
        height: 8px;
        border-radius: 999px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.12);
      }

      .meter-fill {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #65f0d4, #f2c94c 60%, #ff5c4d);
        transition: width 0.06s linear;
      }

      .meter-clip {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.6rem;
        letter-spacing: 0.08em;
        color: #ff5c4d;
        opacity: 0;
      }

      .meter-clip.active {
        opacity: 1;
      }

      .toggle-row {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .toggle-row span {
        color: var(--ink-2);
        font-size: 0.78rem;
      }

      #peakValue,
      #phaseValue {
        display: inline-block;
        min-width: 60px;
        text-align: right;
        font-variant-numeric: tabular-nums;
      }

      .meter.phase .meter-fill {
        background: linear-gradient(90deg, #ff5c4d, #f2c94c 50%, #65f0d4);
      }

      .meter.phase .meter-center {
        position: absolute;
        top: -2px;
        left: 50%;
        width: 1px;
        height: 12px;
        background: rgba(255, 255, 255, 0.35);
      }

      .phase-status {
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 0.6rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        background: rgba(101, 240, 212, 0.18);
        color: #65f0d4;
        border: 1px solid rgba(101, 240, 212, 0.3);
      }

      .phase-status.risk {
        background: rgba(255, 92, 77, 0.18);
        color: #ff5c4d;
        border-color: rgba(255, 92, 77, 0.3);
      }

      .phase-status.mono {
        background: rgba(242, 201, 76, 0.18);
        color: #f2c94c;
        border-color: rgba(242, 201, 76, 0.3);
      }

      .meter.gr {
        flex: 1 1 260px;
        align-items: flex-start;
      }

      .gr-stack {
        display: grid;
        gap: 4px;
        min-width: 160px;
      }

      .gr-row {
        display: grid;
        grid-template-columns: 30px 1fr 46px;
        align-items: center;
        gap: 6px;
      }

      .gr-label {
        font-size: 0.62rem;
        color: var(--ink-2);
      }

      .gr-bar {
        width: 100%;
        height: 7px;
      }

      .gr-fill {
        background: linear-gradient(90deg, rgba(92, 240, 211, 0.92), rgba(242, 201, 76, 0.92), rgba(255, 138, 61, 0.96));
      }

      #grCompValue,
      #grLimiterValue {
        min-width: 46px;
        text-align: right;
        font-variant-numeric: tabular-nums;
      }

      .gr-chip {
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 0.58rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        background: rgba(255, 255, 255, 0.08);
        color: var(--ink-2);
        border: 1px solid rgba(255, 255, 255, 0.18);
      }

      .gr-chip.live {
        background: rgba(92, 240, 211, 0.16);
        color: #bffef0;
        border-color: rgba(92, 240, 211, 0.42);
      }

      .gr-chip.hot {
        background: rgba(255, 92, 77, 0.16);
        color: #ffb3ac;
        border-color: rgba(255, 92, 77, 0.45);
      }

      #previewAudio {
        display: none;
      }

      .player-shell {
        margin-top: 12px;
        padding: 12px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(
          145deg,
          rgba(11, 16, 30, 0.78) 0%,
          rgba(26, 21, 37, 0.72) 55%,
          rgba(18, 26, 34, 0.72) 100%
        );
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 12px 26px rgba(0, 0, 0, 0.25);
        display: grid;
        gap: 10px;
      }

      .player-shell.ready {
        border-color: rgba(92, 240, 211, 0.36);
      }

      .player-main {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .player-sub {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: flex-end;
      }

      .player-cta,
      .player-mini {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 999px;
        font-size: 0.72rem;
        letter-spacing: 0.02em;
        border: 1px solid rgba(255, 255, 255, 0.16);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
      }

      .player-cta {
        background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
        color: #17141d;
        border: none;
      }

      .player-mini {
        background: rgba(255, 255, 255, 0.08);
        color: var(--ink-1);
      }

      .player-mini.active {
        background: rgba(92, 240, 211, 0.18);
        border-color: rgba(92, 240, 211, 0.45);
        color: #c7fff4;
      }

      .player-icon {
        width: 14px;
        height: 14px;
        display: block;
      }

      .player-time {
        color: var(--ink-1);
        font-size: 0.76rem;
        font-variant-numeric: tabular-nums;
        display: inline-flex;
        align-items: center;
        gap: 4px;
      }

      .player-mode {
        margin-left: auto;
        padding: 4px 9px;
        border-radius: 999px;
        font-size: 0.62rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        border: 1px solid rgba(92, 240, 211, 0.35);
        background: rgba(92, 240, 211, 0.16);
        color: #93f6e2;
      }

      .player-seek,
      .player-volume {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 10px;
        border-radius: 999px;
        background: transparent;
        cursor: pointer;
      }

      .player-volume {
        width: 130px;
      }

      .player-seek::-webkit-slider-runnable-track {
        height: 8px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(255, 138, 61, 0.96), rgba(242, 201, 76, 0.92), rgba(92, 240, 211, 0.9));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(14, 10, 20, 0.42);
      }

      .player-volume::-webkit-slider-runnable-track {
        height: 8px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(255, 138, 61, 0.96), rgba(92, 240, 211, 0.9));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(14, 10, 20, 0.42);
      }

      .player-seek::-webkit-slider-thumb,
      .player-volume::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        margin-top: -4px;
        border-radius: 50%;
        border: 1px solid rgba(18, 12, 24, 0.75);
        background: radial-gradient(
          circle at 35% 30%,
          #fff6de 0%,
          #ffd9a3 38%,
          #ff9f4e 72%,
          #ea6d2d 100%
        );
        box-shadow: 0 0 0 2px rgba(255, 171, 94, 0.32), 0 4px 10px rgba(0, 0, 0, 0.34);
      }

      .player-seek::-moz-range-track {
        height: 8px;
        border: none;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(255, 138, 61, 0.96), rgba(242, 201, 76, 0.92), rgba(92, 240, 211, 0.9));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(14, 10, 20, 0.42);
      }

      .player-volume::-moz-range-track {
        height: 8px;
        border: none;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(255, 138, 61, 0.96), rgba(92, 240, 211, 0.9));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(14, 10, 20, 0.42);
      }

      .player-seek::-moz-range-thumb,
      .player-volume::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 1px solid rgba(18, 12, 24, 0.75);
        background: radial-gradient(
          circle at 35% 30%,
          #fff6de 0%,
          #ffd9a3 38%,
          #ff9f4e 72%,
          #ea6d2d 100%
        );
        box-shadow: 0 0 0 2px rgba(255, 171, 94, 0.32), 0 4px 10px rgba(0, 0, 0, 0.34);
      }

      .player-shell button:disabled,
      .player-shell input:disabled {
        opacity: 0.45;
        cursor: not-allowed;
      }

      .player-shell button:not(:disabled):hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
      }

      .tag {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        color: var(--ink-2);
        font-size: 0.64rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .guide-fab {
        position: fixed;
        top: 20px;
        right: 6vw;
        z-index: 40;
        padding: 7px 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 187, 116, 0.62);
        background: linear-gradient(135deg, rgba(255, 146, 67, 0.96), rgba(242, 201, 76, 0.94));
        color: #17131c;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.02em;
      }

      .guide-overlay {
        position: fixed;
        inset: 0;
        z-index: 120;
        background: rgba(5, 7, 13, 0.84);
        backdrop-filter: blur(8px);
        padding: 16px 6vw;
        display: grid;
      }

      .guide-overlay[hidden] {
        display: none !important;
      }

      .guide-window {
        width: min(1120px, 100%);
        height: 100%;
        margin: 0 auto;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: linear-gradient(
          155deg,
          rgba(13, 20, 34, 0.95) 0%,
          rgba(20, 19, 30, 0.94) 45%,
          rgba(23, 18, 30, 0.95) 100%
        );
        box-shadow: 0 22px 64px rgba(0, 0, 0, 0.48);
        overflow: hidden;
        display: grid;
        grid-template-rows: auto 1fr;
      }

      .guide-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(90deg, rgba(255, 138, 61, 0.16), rgba(92, 240, 211, 0.12));
      }

      .guide-title {
        display: grid;
        gap: 4px;
      }

      .guide-title strong {
        font-family: "Unbounded", sans-serif;
        font-size: 0.86rem;
        font-weight: 600;
        letter-spacing: 0.02em;
      }

      .guide-title span {
        color: var(--ink-2);
        font-size: 0.72rem;
      }

      .guide-close {
        min-width: 38px;
        height: 34px;
        padding: 0 12px;
        border-radius: 10px;
      }

      .guide-content {
        overflow-y: auto;
        padding: 14px;
        display: grid;
        gap: 12px;
      }

      .guide-content::-webkit-scrollbar {
        width: 10px;
      }

      .guide-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 999px;
      }

      .guide-content::-webkit-scrollbar-thumb {
        border-radius: 999px;
        border: 1px solid rgba(18, 12, 22, 0.7);
        background: linear-gradient(180deg, rgba(255, 138, 61, 0.95), rgba(242, 201, 76, 0.92));
      }

      .guide-section {
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
        padding: 10px 12px;
        display: grid;
        gap: 8px;
      }

      .guide-section h3 {
        margin: 0;
        font-size: 0.86rem;
        letter-spacing: 0.02em;
      }

      .guide-section p {
        margin: 0;
        font-size: 0.78rem;
        color: var(--ink-2);
        line-height: 1.45;
      }

      .guide-list {
        margin: 0;
        padding-left: 18px;
        color: var(--ink-2);
        font-size: 0.78rem;
        display: grid;
        gap: 5px;
      }

      body.guide-open {
        overflow: hidden;
      }

      @keyframes rise {
        from {
          opacity: 0;
          transform: translateY(16px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      @media (max-width: 720px) {
        body {
          height: auto;
          overflow-y: auto;
          overflow-x: hidden;
        }

        .hero {
          padding: 20px 6vw 12px;
        }

        .guide-fab {
          top: 16px;
          right: 5vw;
          padding: 7px 10px;
          font-size: 0.68rem;
        }

        .guide-overlay {
          padding: 10px 4vw;
        }

        .guide-window {
          border-radius: 14px;
        }

        .grid {
          padding: 0 5vw 18px;
          flex: 0 0 auto;
        }

        .player-main {
          flex-wrap: wrap;
        }

        .player-mode {
          margin-left: 0;
        }

        .player-sub {
          justify-content: stretch;
        }

        .player-volume {
          width: 100%;
        }

        .source-card .controls {
          grid-template-columns: repeat(3, minmax(76px, 1fr));
        }

        .source-card .range-row input[type="range"] {
          height: 124px;
        }

        .mastering-card .mastering-top-controls {
          grid-template-columns: 1fr;
        }

        .card {
          max-height: none;
          overflow: visible;
        }

        .mastering-card {
          max-height: none;
        }

        .mastering-card .tab-panel[data-panel="manual"] {
          overflow: visible;
          padding-right: 0;
        }
      }

      @media (max-height: 900px) {
        .hero {
          padding: 20px 6vw 10px;
        }

        .grid {
          padding: 0 5vw 16px;
          gap: 12px;
          align-content: start;
        }

        .card {
          padding: 12px;
        }
      }
