:root {
    --bg: #f5f9ff;
    --panel: #ffffff;
    --accent: #4449a6;
    --accent-soft: #dbeafe;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e5e7eb;
  }
#file{
    display: none;
}
  .app {
    background: var(--panel);
    width: 100%;
    max-width: 780px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(37,99,235,.18);
  }
  
  .subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
  }
  
  /* TOP CONTROLS */
  .top-controls {
    display: flex;
    margin-top: 20px;
    justify-content: space-between;
  }
  .top-controls > div {
    display: flex;
    gap: 10px;
  }
  #wavecontainerx{
    margin: 18px;
  }
  #wavecontainerx button {
    min-width: 134px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    font-size: 14px;
  }
  
  #wavecontainerx button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }
  
  #wavecontainerx button.primary {
    background: var(--accent);
    color: #fff;
  }
  
  #wavecontainerx button.secondary {
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--border);
  }
  
  #wavecontainerx button:hover {
    filter: brightness(1.05);
  }
  
  /* WAVE */
  .wave-section {
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 14px;
  }
  #fnamedisp{
    position: relative;
    top: -6px;
    font-size: 11px;
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  @media (max-width: 600px) {
    #upnewlbl{
      display: none!important;
    }
    .top-controls{
      justify-content: end;
    }
  }
  #upnewlbl{
    display: flex;
    border: 1px solid;
    align-items: center;
    height: max-content;
    padding: 6px 12px;
    color: var(--pcolor)!important;
  }
  
  .time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
  }
  
  /* GRID */
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .group {
    background: #f8fbff;
    padding: 5px 12px;
    border-radius: 2px;
    border: 1px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: center;
  }
  
  #wavecontainerx label {
    font-size: 12px;
    color: var(--muted);
    min-width: 38px;
  }
  
  .value {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
  }
  
  #wavecontainerx input[type="range"] {
    width: 100%;
  }
  
  @media (max-width: 640px) {
    .grid {
      grid-template-columns: 1fr;
    }
  }
  
  .result-actions {
    margin-top: 30px;
    padding: 4px;
    display: flex;
    border-radius: 3px;
    background: #f8fafc;
    border: 1px solid #e9e9e9;
    align-items: center;
    justify-content: space-between;
  }
  .result-actions audio {
    height: 30px;
    width: calc(100% - 170px);
}
.downbtnmrg {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  color: #3f51b5;
  text-decoration: underline;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}