.sound-tool {
      width: 100%;
      max-width: 800px;
      min-height: 600px;
      margin: 30px auto;
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 18px;
      box-shadow: 0 12px 35px rgba(0,0,0,.09);
      overflow: hidden;
    }

    .tool-header {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 19px 23px;
      border-bottom: 1px solid #eee;
      background: linear-gradient(135deg,#fff,#f8f8f8);
    }

    .header-icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      border-radius: 14px;
      color: white;
      font-size: 23px;
      background: linear-gradient(135deg,#333,#000);
      box-shadow: 0 5px 12px #0002;
    }

    .tool-header h1 {
      margin: 0 0 3px;
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -.6px;
    }

    .tool-header p {
      margin: 0;
      color: #737373;
      font-size: 12px;
    }

    .tool-body { padding: 18px; }

    .two-columns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      align-items: stretch;
    }

    .column {
      display: flex;
      flex-direction: column;
      gap: 15px;
      min-width: 0;
    }

    .panel {
      padding: 16px;
      border: 1px solid #e8e8e8;
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 4px 13px rgba(0,0,0,.045);
    }

    .panel h2 {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 5px;
      font-size: 15px;
      font-weight: 750;
    }

    .panel h2 i { font-size: 18px; }

    .description {
      color: #737373;
      font-size: 11px;
      line-height: 1.5;
      margin: 0 0 13px;
    }

    .black-btn {
      color: #fff;
      background: linear-gradient(135deg,#333 0%,#000 100%);
      border: 1px solid #111;
      border-radius: 9px;
      padding: 10px 12px;
      font-size: 12px;
      font-weight: 700;
      box-shadow: 0 4px 9px #00000015;
      transition: .2s;
    }

    .black-btn:hover {
      color: #fff;
      background: linear-gradient(135deg,#484848,#171717);
      transform: translateY(-1px);
    }

    .black-btn:disabled {
      opacity: .45;
      transform: none;
    }

    .stop-btn {
      background: #fff;
      color: #b91c1c;
      border: 1px solid #fecaca;
      border-radius: 9px;
      padding: 10px 12px;
      font-size: 12px;
      font-weight: 700;
    }

    .stop-btn:hover { background: #fef2f2; }

    .channels {
      display: grid;
      grid-template-columns: repeat(3,minmax(0,1fr));
      gap: 7px;
      margin-bottom: 13px;
    }

    .channel {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 76px;
      padding: 7px 3px;
      border: 1px solid #e5e5e5;
      border-radius: 10px;
      color: #333;
      background: #fff;
      font-size: 10px;
      font-weight: 700;
      cursor: pointer;
    }

    .channel i { font-size: 21px; }

    .channel:hover, .channel.active {
      border-color: #222;
      background: #f5f5f5;
      box-shadow: inset 0 0 0 1px #222;
    }

    .button-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .button-row button { flex: 1; }

    .status {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      background: #f8fafc;
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      padding: 11px;
    }

    .status-dot {
      width: 9px;
      height: 9px;
      margin-top: 5px;
      border-radius: 50%;
      background: #9ca3af;
      flex-shrink: 0;
    }

    .status-dot.playing {
      background: #16a34a;
      box-shadow: 0 0 0 4px #dcfce7;
    }

    .status-title {
      font-size: 12px;
      font-weight: 750;
      margin-bottom: 2px;
    }

    .status-message {
      font-size: 11px;
      color: #737373;
      margin: 0;
      overflow-wrap: anywhere;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(3,minmax(0,1fr));
      gap: 7px;
      margin-top: 10px;
    }

    .stat {
      text-align: center;
      padding: 9px 3px;
      border-radius: 9px;
      background: #f8f8f8;
      border: 1px solid #eee;
      min-width: 0;
    }

    .stat span {
      display: block;
      color: #737373;
      font-size: 10px;
      margin-bottom: 3px;
    }

    .stat strong {
      display: block;
      font-size: 11px;
      overflow-wrap: anywhere;
    }

    .field-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      margin: 13px 0 5px;
    }

    .field-row label {
      font-size: 12px;
      font-weight: 700;
    }

    .value {
      background: #f3f4f6;
      padding: 3px 7px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 750;
      white-space: nowrap;
    }

    .form-range { accent-color: #111; }

    .range-labels {
      display: flex;
      justify-content: space-between;
      color: #888;
      font-size: 10px;
      margin-top: -5px;
    }

    .presets {
      display: flex;
      gap: 5px;
      flex-wrap: wrap;
      margin-top: 9px;
    }

    .preset {
      padding: 6px 8px;
      border: 1px solid #e5e5e5;
      border-radius: 7px;
      background: #fff;
      font-size: 10px;
      font-weight: 650;
    }

    .preset:hover, .preset.active {
      color: #fff;
      background: #171717;
      border-color: #171717;
    }

    .visualizer {
      position: relative;
      height: 105px;
      margin-top: 12px;
      overflow: hidden;
      border-radius: 10px;
      background: linear-gradient(135deg,#101010,#292929);
    }

    #waveCanvas {
      display: block;
      width: 100%;
      height: 100%;
    }

    .visualizer-label {
      position: absolute;
      top: 8px;
      left: 10px;
      color: #ccc;
      font-size: 9px;
      letter-spacing: 1px;
      pointer-events: none;
    }

    .notice {
      padding: 10px;
      border: 1px solid #fde68a;
      border-radius: 9px;
      background: #fffbeb;
      color: #854d0e;
      font-size: 10px;
      line-height: 1.5;
      margin-top: 12px;
    }

    .tool-footer {
      padding: 0 15px 15px;
      text-align: center;
      font-size: 10px;
      color: #888;
    }

    @media (max-width: 600px) {
      body { padding: 10px; }

      .sound-tool {
        min-height: 0;
        border-radius: 14px;
      }

      .tool-header { padding: 16px; }
      .tool-header h1 { font-size: 20px; }
      .tool-body { padding: 12px; }

      .two-columns { grid-template-columns: 1fr; }
      .panel { padding: 14px; }
      .column { gap: 12px; }
    }