body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
}
.hero-gradient {
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent),
  radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.05), transparent);
}
.feature-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid currentColor;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.65);
}
.feature-icon .material-icons-outlined {
  font-size: 21px;
  line-height: 1;
}
.feature-icon-blue {
  color: #2563eb;
  background: #eef5ff;
}
.feature-icon-indigo {
  color: #635bff;
  background: #f0efff;
}
.feature-icon-purple {
  color: #a855f7;
  background: #faf0ff;
}
.feature-icon-orange {
  color: #f97316;
  background: #fff3e6;
}
.feature-icon-pink {
  color: #db2777;
  background: #fff0f7;
}
.feature-icon-green {
  color: #16a34a;
  background: #ecfdf3;
}
.editor-shell {
  background: linear-gradient(180deg, #0b3e79 0%, #1b2c63 100%);
  border-radius: 0;
  position: relative;
  min-height: 360px;
}
.editor-shell.resetting #editor-status {
  opacity: 0;
  visibility: hidden;
}
.wave-wrap {
  position: relative;
  overflow: hidden;
  background: rgba(12, 62, 120, 0.7);
  border: 1px solid rgba(54, 164, 255, 0.3);
}
#wave-canvas {
  width: 100%;
  height: 190px;
  display: block;
}
.wave-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%);
  left: 0%;
  z-index: 7;
  pointer-events: none;
}
.trim-time-label {
  position: absolute;
  top: 8px;
  left: 0;
  transform: translateX(-8%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 6;
}
.trim-time-label.right {
  left: auto;
  right: 0;
  transform: translateX(8%);
}
.booster-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 12px;
}
.control-btn {
  width: 124px;
  height: 60px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(15, 23, 42, 0.5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gain-rail {
  min-height: 60px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}
.gain-rail .icon-muted {
  color: rgba(203, 213, 225, 0.75);
}
#gain-slider {
  width: 100%;
  height: 4px;
  appearance: none;
  background: rgba(148, 163, 184, 0.55);
  border-radius: 999px;
  outline: none;
}
#gain-slider::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid #0b3e79;
  background: #1ef3a6;
  box-shadow: 0 0 0 3px rgba(30, 243, 166, 0.25);
}
#gain-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid #0b3e79;
  background: #1ef3a6;
  box-shadow: 0 0 0 3px rgba(30, 243, 166, 0.25);
}
.gain-value {
  color: #1ef3a6;
  font-weight: 800;
  font-size: 30px;
  min-width: 88px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.action-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.format-menu {
  position: relative;
}
.format-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  background: #0b1224;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  display: none;
  z-index: 20;
}
.format-panel.active {
  display: block;
}
.format-item {
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
}
.format-item:hover {
  background: rgba(59,130,246,0.2);
}
.btn-soft {
  border-radius: 4px !important;
}
.btn-pill {
  border-radius: 4px !important;
}
button {
  border-radius: 4px !important;
}
#btn-save-audio {
  width: 150px;
}
.file-picker {
  display: inline-flex;
  align-items: stretch;
  background: #2f5fec;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(47, 95, 236, 0.25);
}
.file-picker-main {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.file-picker-main:hover {
  background: #2a55d8;
  border-radius:4px;
}
.file-picker-main .material-icons-outlined {
  font-size: 22px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 800;
  color: rgba(15,23,42,0.9);
}
.dark .nav-item {
  color: rgba(226,232,240,0.92);
}
.nav-item:hover {
  background: rgba(37,99,235,0.10);
}
.mobile-link {
  display: block;
  padding: 10px 2px;
  font-weight: 800;
  color: rgba(15,23,42,0.9);
}
.dark .mobile-link {
  color: rgba(226,232,240,0.95);
}
.mobile-link:hover {
  color: #2563eb;
}
.reset-modal {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 32, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.reset-modal.hidden {
  display: none;
}
.reset-card {
  background: linear-gradient(180deg, #123a73 0%, #1b2f63 100%);
  padding: 28px;
  border-radius: 18px;
  width: min(90vw, 360px);
  text-align: center;
  color: #fff;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}
.reset-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.reset-actions button {
  padding: 12px 16px;
  border-radius: 18px;
  border: none;
  font-weight: 600;
}
.reset-yes {
  background: #fff;
  color: #0f172a;
}
.reset-no {
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
}
@media (max-width: 1024px) {
  .booster-controls {
    grid-template-columns: 1fr;
  }
  .action-right {
    width: 100%;
    justify-content: space-between;
  }
  .control-btn {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .editor-shell {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  #btn-save-audio {
    width: 138px;
  }
  .gain-value {
    font-size: 20px;
    min-width: 70px;
  }
  .file-picker-main {
    padding: 12px 22px;
  }
}
