.ate-shell,.ate-hub{
  --ate-accent:var(--accent,#8b5cf6);
  --ate-accent-2:#a855f7;
  --ate-blue:#3b82f6;
  --ate-contrast:var(--contrast,#111827);
  --ate-base:var(--base,#e5e7eb);
  --ate-muted:color-mix(in srgb,var(--ate-contrast) 62%,transparent);
  --ate-soft:color-mix(in srgb,var(--ate-contrast) 45%,transparent);
  --ate-tint:color-mix(in srgb,var(--ate-accent) 5%,#fff);
  width:100%;max-width:none;margin:0;box-sizing:border-box;color:var(--ate-contrast);font-family:inherit;
}
.ate-shell *,.ate-hub *{box-sizing:border-box}.ate-head,.ate-toolbar{display:none!important}
.ate-card,.ate-hub{border:1px solid color-mix(in srgb,var(--ate-accent) 12%,var(--ate-base));border-radius:30px;background:radial-gradient(circle at 50% 0%,color-mix(in srgb,var(--ate-accent) 8%,transparent),transparent 42%),linear-gradient(180deg,#fff,var(--ate-tint));}
.ate-card{padding:28px;display:grid;gap:18px;overflow:hidden}.ate-card:has(.ate-workspace:not([hidden])) .ate-dropzone{display:none!important}
.ate-dropzone{display:flex;min-height:260px;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:14px;border:1.5px dashed color-mix(in srgb,var(--ate-accent) 34%,var(--ate-base));border-radius:26px;padding:30px;cursor:pointer;background:linear-gradient(180deg,color-mix(in srgb,var(--ate-accent) 5%,#fff),#fff);transition:.22s ease;position:relative}.ate-dropzone:hover,.ate-dropzone.is-dragover{border-color:color-mix(in srgb,var(--ate-accent) 68%,var(--ate-base));box-shadow:0 0 0 5px color-mix(in srgb,var(--ate-accent) 10%,transparent);transform:translateY(-1px)}.ate-dropzone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.ate-upload-icon{width:64px;height:64px;border-radius:20px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,color-mix(in srgb,var(--ate-accent) 13%,#fff),#fff);color:var(--ate-accent);font-size:32px;font-weight:600;box-shadow:0 14px 32px color-mix(in srgb,var(--ate-accent) 13%,transparent)}.ate-drop-title{font-size:clamp(22px, 2vw, 28px);line-height:1.1;font-weight:600;color:var(--ate-contrast);letter-spacing:-.045em}.ate-drop-sub{max-width:560px;color:var(--ate-muted);font-size:14px;line-height:1.55}.ate-browse-btn{display:inline-flex;align-items:center;justify-content:center;min-width:178px;padding:15px 24px;border-radius:999px;font-weight:600;color:#fff;background:linear-gradient(135deg,var(--ate-accent),var(--ate-accent-2));border:1px solid color-mix(in srgb,var(--ate-accent) 18%,#fff);box-shadow:0 16px 38px color-mix(in srgb,var(--ate-accent) 25%,transparent);transition:.22s ease}.ate-dropzone:hover .ate-browse-btn{transform:translateY(-2px);box-shadow:0 19px 45px color-mix(in srgb,var(--ate-accent) 30%,transparent)}
.ate-workspace{display:grid;gap:16px}.ate-workspace[hidden],.ate-result[hidden],.ate-controls[hidden],.ate-actions[hidden],.ate-state[hidden],.ate-selection[hidden],.ate-dim[hidden]{display:none!important}
.ate-file-card,.ate-player-card,.ate-result,.ate-controls{border:1px solid color-mix(in srgb,var(--ate-accent) 10%,var(--ate-base));border-radius:24px;background:rgba(255,255,255,.96);box-shadow:0 12px 30px color-mix(in srgb,var(--ate-contrast) 5%,transparent)}
.ate-file-card{display:flex;align-items:center;gap:16px;min-height:84px;padding:16px 18px}.ate-file-icon{width:54px;height:54px;border-radius:17px;display:flex;align-items:center;justify-content:center;font-size:26px;color:var(--ate-accent);background:color-mix(in srgb,var(--ate-accent) 10%,#fff);flex:0 0 54px;font-weight:600}.ate-file-meta{min-width:0;flex:1}.ate-file-name{font-size:17px;font-weight:600;color:var(--ate-contrast);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ate-file-sub{margin-top:6px;color:var(--ate-muted);font-size:14px}.ate-icon-btn{width:38px;height:38px;border-radius:999px;border:1px solid var(--ate-base);background:#fff;color:var(--ate-soft);font-size:22px;line-height:1;cursor:pointer}.ate-icon-btn:hover{background:color-mix(in srgb,var(--ate-accent) 5%,#fff);color:var(--ate-accent)}
.ate-player-card,.ate-result{padding:22px}.ate-player-row,.ate-mini-player{display:flex;align-items:center;gap:18px}.ate-player-main{flex:1;min-width:0}.ate-player-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.ate-section-label{color:var(--ate-contrast);font-weight:600;font-size:15px;letter-spacing:-.01em}.ate-time-row{display:flex;align-items:center;gap:7px;color:var(--ate-soft);font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}.ate-result-sub,.ate-wave-help{color:var(--ate-muted);font-size:13px;line-height:1.5}.ate-wave-help{margin:12px 0 0;padding-left:72px}
.ate-play-btn{appearance:none;width:58px;height:58px;border:1px solid color-mix(in srgb,var(--ate-accent) 22%,var(--ate-base));border-radius:21px;background:linear-gradient(135deg,var(--ate-accent),var(--ate-accent-2));color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;line-height:1;cursor:pointer;transition:.22s ease;flex:0 0 58px}.ate-play-btn:hover{transform:translateY(-2px);box-shadow:0 19px 40px color-mix(in srgb,var(--ate-accent) 30%,transparent)}.ate-play-btn.is-playing{background:linear-gradient(135deg,#6d28d9,var(--ate-accent-2))}.ate-play-btn span{display:block;transform:translateX(1px)}
.ate-wave-editor{position:relative;width:100%;height:132px;border-radius:24px;border:1px solid color-mix(in srgb,var(--ate-accent) 18%,var(--ate-base));background:#fff;overflow:hidden;cursor:pointer;touch-action:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 10px 22px color-mix(in srgb,var(--ate-accent) 8%,transparent)}.ate-result-wave-wrap{height:104px;border-radius:20px}.ate-waveform{display:block;width:100%;height:100%;position:relative;z-index:1}.ate-playhead{position:absolute;top:10px;bottom:10px;width:3px;left:0;background:#ff3b30;opacity:.96;border-radius:999px;pointer-events:none;transform:translateX(-1.5px);box-shadow:0 0 0 4px color-mix(in srgb,var(--ate-accent) 10%,transparent);z-index:7}.ate-dim{position:absolute;top:0;bottom:0;background:rgba(17,24,39,.18);z-index:3;pointer-events:none}.ate-selection{position:absolute;top:0;bottom:0;left:0;right:0;background:linear-gradient(90deg,color-mix(in srgb,var(--ate-accent) 12%,transparent),color-mix(in srgb,var(--ate-accent-2) 10%,transparent));border-left:2px solid var(--ate-accent);border-right:2px solid var(--ate-accent);pointer-events:none;z-index:5}.ate-handle{position:absolute;top:50%;width:24px;height:66px;background:#fff;border:2px solid var(--ate-accent);border-radius:999px;box-shadow:0 10px 24px color-mix(in srgb,var(--ate-accent) 24%,transparent);transform:translateY(-50%);pointer-events:auto;cursor:ew-resize;z-index:8}.ate-handle:after{content:"";position:absolute;left:50%;top:15px;bottom:15px;width:2px;background:color-mix(in srgb,var(--ate-accent) 65%,#fff);border-radius:99px;transform:translateX(-50%)}.ate-handle-start{left:-13px}.ate-handle-end{right:-13px}
.ate-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px}.ate-field{display:grid;gap:9px}.ate-field-wide{grid-column:1/-1}.ate-field label{font-weight:600;font-size:14px;color:var(--ate-contrast)}.ate-field input,.ate-field select{width:100%;border:1px solid color-mix(in srgb,var(--ate-accent) 12%,var(--ate-base));background:#fff;border-radius:16px;padding:14px 14px;color:var(--ate-contrast);font:inherit;outline:none}.ate-field input:focus,.ate-field select:focus{border-color:color-mix(in srgb,var(--ate-accent) 55%,var(--ate-base));box-shadow:0 0 0 4px color-mix(in srgb,var(--ate-accent) 10%,transparent)}.ate-field-hint{color:var(--ate-muted);font-size:13px;line-height:1.55}.ate-mini-actions{display:flex;gap:8px;flex-wrap:wrap}.ate-chip{appearance:none;border:1px solid color-mix(in srgb,var(--ate-accent) 18%,var(--ate-base));background:color-mix(in srgb,var(--ate-accent) 6%,#fff);color:var(--ate-accent);border-radius:999px;padding:8px 12px;font-weight:600;font-size:12px;cursor:pointer}.ate-chip:hover{background:color-mix(in srgb,var(--ate-accent) 10%,#fff)}
.ate-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ate-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid color-mix(in srgb,var(--ate-accent) 12%,var(--ate-base));background:#fff;color:var(--ate-contrast);border-radius:999px;padding:14px 22px;font-weight:600;text-decoration:none;cursor:pointer;line-height:1.1;transition:.2s ease}.ate-btn:hover{transform:translateY(-1px);box-shadow:0 12px 26px color-mix(in srgb,var(--ate-contrast) 8%,transparent)}.ate-btn-primary{color:#fff;background:linear-gradient(135deg,var(--ate-accent),var(--ate-accent-2));border-color:transparent;box-shadow:0 14px 32px color-mix(in srgb,var(--ate-accent) 24%,transparent)}
.ate-state{border:1px solid color-mix(in srgb,var(--ate-accent) 14%,var(--ate-base));border-radius:18px;padding:14px 16px;background:color-mix(in srgb,var(--ate-accent) 5%,#fff);color:var(--ate-muted);font-size:14px}.ate-result{display:grid;gap:16px;background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--ate-accent) 4%,#fff))}.ate-result-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.ate-result .ate-btn-primary{white-space:nowrap}.ate-result audio[hidden],.ate-player-card audio[hidden]{display:none!important}
.ate-tap-area{text-align:center;display:grid;gap:16px;padding:34px 20px}.ate-meter{font-size:clamp(36px,6vw,64px);font-weight:700;letter-spacing:-.06em;color:var(--ate-accent)}.ate-tap-area p,.ate-rec-status{color:var(--ate-muted);margin:0}
.ate-hub{padding:24px}.ate-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ate-hub a{display:block;padding:18px;border-radius:20px;text-decoration:none;color:var(--ate-contrast);background:#fff;border:1px solid var(--ate-base);font-weight:600}.ate-hub a:hover{border-color:color-mix(in srgb,var(--ate-accent) 30%,var(--ate-base));box-shadow:0 12px 30px color-mix(in srgb,var(--ate-contrast) 8%,transparent)}
@media(max-width:760px){.ate-card{padding:18px;border-radius:24px}.ate-player-row,.ate-mini-player{align-items:stretch;gap:12px}.ate-play-btn{width:52px;height:52px;flex-basis:52px;border-radius:18px}.ate-wave-editor{height:108px;border-radius:20px}.ate-result-wave-wrap{height:92px}.ate-controls{grid-template-columns:1fr}.ate-wave-help{padding-left:0}.ate-result-head{align-items:flex-start;flex-direction:column}.ate-result .ate-btn-primary{width:100%}.ate-hub-grid{grid-template-columns:1fr}}


/* Compact pro inline player refinements */
.ate-player-card,.ate-result{padding:18px}
.ate-player-row,.ate-mini-player{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:14px}
.ate-play-btn{width:64px!important;height:64px!important;flex:0 0 64px!important;border-radius:20px;font-size:0;padding:0}
.ate-play-btn span{display:flex;align-items:center;justify-content:center;width:100%;height:100%;transform:none!important}
.ate-play-btn svg{width:23px;height:23px;display:block;fill:currentColor}
.ate-player-head{margin:0 0 8px;min-height:20px}
.ate-wave-editor{height:64px!important;border-radius:20px}
.ate-result-wave-wrap{height:64px!important;border-radius:20px}
.ate-wave-help{margin:10px 0 0;padding-left:78px;font-size:12.5px}
.ate-playhead{top:8px;bottom:8px;width:2px;transform:translateX(-1px)}
.ate-handle{width:22px;height:52px;box-shadow:0 8px 18px color-mix(in srgb,var(--ate-accent) 20%,transparent)}
.ate-handle:after{top:12px;bottom:12px}
.ate-result-head{align-items:center;margin-bottom:0}
.ate-result{gap:14px}
@media(max-width:760px){.ate-player-row,.ate-mini-player{grid-template-columns:56px minmax(0,1fr);gap:10px}.ate-play-btn{width:56px!important;height:56px!important;flex-basis:56px!important;border-radius:18px}.ate-wave-editor,.ate-result-wave-wrap{height:56px!important;border-radius:18px}.ate-wave-help{padding-left:0}.ate-player-head{margin-bottom:6px}.ate-play-btn svg{width:21px;height:21px}}

/* Final alignment fix: header above, play button and waveform on one exact row */
.ate-player-card{display:grid;gap:10px}
.ate-player-card>.ate-player-head,.ate-result-preview-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px;margin:0!important;min-height:auto!important;padding:0 2px}
.ate-player-row,.ate-mini-player{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;align-items:center!important;gap:14px!important}
.ate-player-main{display:block;min-width:0;width:100%}
.ate-play-btn{width:64px!important;height:64px!important;min-width:64px!important;flex:0 0 64px!important;border-radius:20px!important;margin:0!important;padding:0!important;align-self:center!important;font-size:0!important}
.ate-play-btn span{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;transform:none!important}
.ate-play-btn svg{width:22px!important;height:22px!important;display:block!important;fill:currentColor!important}
.ate-wave-editor,.ate-result-wave-wrap{height:64px!important;min-height:64px!important;border-radius:20px!important}
.ate-wave-help{margin:0!important;padding-left:78px!important;font-size:12.5px!important;line-height:1.45!important}
.ate-result{gap:12px!important}
.ate-result-head{margin-bottom:0!important}
.ate-result-preview-head{margin-top:2px!important}
.ate-handle{height:52px!important;width:20px!important}
.ate-handle-start{left:-10px!important}.ate-handle-end{right:-10px!important}
@media(max-width:760px){.ate-player-row,.ate-mini-player{grid-template-columns:56px minmax(0,1fr)!important;gap:10px!important}.ate-play-btn{width:56px!important;height:56px!important;min-width:56px!important;border-radius:18px!important}.ate-wave-editor,.ate-result-wave-wrap{height:56px!important;min-height:56px!important;border-radius:18px!important}.ate-wave-help{padding-left:0!important}}


/* User requested responsive player + button visibility fixes */
.ate-icon-btn{padding:0!important;}
.ate-play-btn svg{width:28px!important;height:28px!important;}
.ate-play-btn:hover,.ate-play-btn:focus,.ate-play-btn:focus-visible{color:#fff!important;outline:none!important;}
.ate-btn-primary:hover,.ate-btn-primary:focus,.ate-btn-primary:focus-visible,
.ate-browse-btn:hover,.ate-browse-btn:focus,.ate-browse-btn:focus-visible{color:#fff!important;text-decoration:none!important;outline:none!important;}
.ate-btn:hover,.ate-btn:focus,.ate-btn:focus-visible{color:var(--ate-contrast)!important;text-decoration:none!important;}
.ate-btn-primary:hover,.ate-btn-primary:focus,.ate-btn-primary:focus-visible{color:#fff!important;}
.ate-player-row,.ate-mini-player{width:100%!important;min-width:0!important;}
.ate-player-main,.ate-wave-editor,.ate-result-wave-wrap{min-width:0!important;max-width:100%!important;}
.ate-waveform{max-width:100%!important;}
.ate-actions .ate-btn-primary{min-width:190px;}
@media(max-width:760px){
  .ate-card{padding:14px!important;gap:14px!important;}
  .ate-file-card{padding:14px!important;gap:12px!important;}
  .ate-player-card,.ate-result,.ate-controls{padding:14px!important;border-radius:22px!important;}
  .ate-player-row,.ate-mini-player{grid-template-columns:54px minmax(0,1fr)!important;gap:10px!important;}
  .ate-play-btn{width:54px!important;height:54px!important;min-width:54px!important;border-radius:17px!important;}
  .ate-play-btn svg{width:28px!important;height:28px!important;}
  .ate-wave-editor,.ate-result-wave-wrap{height:54px!important;min-height:54px!important;border-radius:17px!important;}
  .ate-player-card>.ate-player-head,.ate-result-preview-head{gap:8px!important;align-items:flex-start!important;}
  .ate-section-label{font-size:14px!important;}
  .ate-time-row{font-size:12.5px!important;gap:5px!important;}
  .ate-wave-help{display:none!important;}
  .ate-actions{display:grid!important;grid-template-columns:1fr!important;}
  .ate-actions .ate-btn,.ate-actions .ate-btn-primary{width:100%!important;min-width:0!important;}
  .ate-result-head{display:grid!important;grid-template-columns:1fr!important;align-items:start!important;}
  .ate-result .ate-btn-primary{width:100%!important;}
  .ate-controls{grid-template-columns:1fr!important;}
}
@media(max-width:420px){
  .ate-player-row,.ate-mini-player{grid-template-columns:48px minmax(0,1fr)!important;gap:8px!important;}
  .ate-play-btn{width:48px!important;height:48px!important;min-width:48px!important;border-radius:16px!important;}
  .ate-play-btn svg{width:26px!important;height:26px!important;}
  .ate-wave-editor,.ate-result-wave-wrap{height:48px!important;min-height:48px!important;border-radius:16px!important;}
  .ate-card{padding:12px!important;}
}

/* Mobile overflow and compact waveform fixes */
.ate-shell,.ate-card,.ate-workspace,.ate-file-card,.ate-player-card,.ate-result,.ate-controls{max-width:100%!important;min-width:0!important;overflow-wrap:break-word;}
.ate-shell{overflow-x:hidden!important;}
.ate-card{width:100%!important;}
.ate-player-row,.ate-mini-player{max-width:100%!important;overflow:hidden!important;}
.ate-wave-editor,.ate-result-wave-wrap{width:100%!important;overflow:hidden!important;}
.ate-waveform{width:100%!important;max-width:100%!important;height:100%!important;display:block!important;}
.ate-file-name{max-width:100%!important;}
@media(max-width:600px){
  .ate-shell{width:100%!important;max-width:100%!important;}
  .ate-card{padding:12px!important;border-radius:22px!important;gap:12px!important;}
  .ate-file-card{display:grid!important;grid-template-columns:48px minmax(0,1fr) 34px!important;gap:10px!important;padding:12px!important;min-height:auto!important;}
  .ate-file-icon{width:48px!important;height:48px!important;flex-basis:48px!important;border-radius:16px!important;font-size:22px!important;}
  .ate-file-name{font-size:15px!important;line-height:1.25!important;}
  .ate-file-sub{font-size:12.5px!important;margin-top:4px!important;}
  .ate-icon-btn{width:34px!important;height:34px!important;min-width:34px!important;}
  .ate-player-card,.ate-result,.ate-controls{padding:12px!important;border-radius:20px!important;}
  .ate-player-card>.ate-player-head,.ate-result-preview-head{padding:0!important;}
  .ate-player-row,.ate-mini-player{grid-template-columns:48px minmax(0,1fr)!important;gap:8px!important;}
  .ate-play-btn{width:48px!important;height:48px!important;min-width:48px!important;border-radius:16px!important;}
  .ate-play-btn svg{width:26px!important;height:26px!important;}
  .ate-wave-editor,.ate-result-wave-wrap{height:48px!important;min-height:48px!important;border-radius:16px!important;}
  .ate-handle{width:16px!important;height:42px!important;}
  .ate-handle-start{left:-8px!important;}
  .ate-handle-end{right:-8px!important;}
  .ate-playhead{top:6px!important;bottom:6px!important;}
}
@media(max-width:380px){
  .ate-player-row,.ate-mini-player{grid-template-columns:44px minmax(0,1fr)!important;gap:7px!important;}
  .ate-play-btn{width:44px!important;height:44px!important;min-width:44px!important;border-radius:15px!important;}
  .ate-play-btn svg{width:24px!important;height:24px!important;}
  .ate-wave-editor,.ate-result-wave-wrap{height:44px!important;min-height:44px!important;border-radius:15px!important;}
}

/* Pro audio tools hub */
.ate-tools-hub{
  padding:28px!important;
  border-radius:30px!important;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb,var(--ate-accent) 12%,transparent), transparent 34%),
    radial-gradient(circle at 88% 8%, color-mix(in srgb,var(--ate-blue) 8%,transparent), transparent 30%),
    linear-gradient(180deg,#fff,color-mix(in srgb,var(--ate-accent) 4%,#fff))!important;
  border:1px solid color-mix(in srgb,var(--ate-accent) 14%,var(--ate-base))!important;
  box-shadow:0 24px 60px color-mix(in srgb,var(--ate-contrast) 7%,transparent)!important;
  overflow:hidden!important;
}
.ate-hub-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:18px!important;
}
.ate-hub-badge{
  display:inline-flex!important;
  align-items:center!important;
  min-height:38px!important;
  padding:9px 14px!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--ate-accent) 8%,#fff)!important;
  border:1px solid color-mix(in srgb,var(--ate-accent) 16%,var(--ate-base))!important;
  color:var(--ate-accent)!important;
  font-size:13px!important;
  font-weight:600!important;
  white-space:nowrap!important;
}
.ate-hub-copy{
  display:grid!important;
  gap:3px!important;
  text-align:right!important;
  min-width:0!important;
}
.ate-hub-copy strong{
  font-size:18px!important;
  line-height:1.2!important;
  letter-spacing:-.025em!important;
  color:var(--ate-contrast)!important;
  font-weight:650!important;
}
.ate-hub-copy span{
  font-size:13.5px!important;
  line-height:1.45!important;
  color:var(--ate-muted)!important;
}
.ate-tools-hub .ate-hub-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
.ate-tools-hub .ate-hub-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr)!important;
  gap:14px!important;
  align-items:start!important;
  min-height:172px!important;
  padding:18px!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.92)!important;
  border:1px solid color-mix(in srgb,var(--ate-accent) 10%,var(--ate-base))!important;
  color:var(--ate-contrast)!important;
  text-decoration:none!important;
  box-shadow:0 12px 28px color-mix(in srgb,var(--ate-contrast) 5%,transparent)!important;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease!important;
  overflow:hidden!important;
}
.ate-tools-hub .ate-hub-card:before{
  content:"";
  position:absolute;
  inset:auto -30px -40px auto;
  width:110px;
  height:110px;
  border-radius:999px;
  background:color-mix(in srgb,var(--ate-accent) 8%,transparent);
  pointer-events:none;
}
.ate-tools-hub .ate-hub-card:hover,
.ate-tools-hub .ate-hub-card:focus-visible{
  transform:translateY(-3px)!important;
  border-color:color-mix(in srgb,var(--ate-accent) 32%,var(--ate-base))!important;
  box-shadow:0 18px 42px color-mix(in srgb,var(--ate-contrast) 8%,transparent)!important;
  background:#fff!important;
  outline:none!important;
}
.ate-hub-icon{
  width:52px!important;
  height:52px!important;
  border-radius:18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:var(--ate-accent)!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--ate-accent) 12%,#fff),#fff)!important;
  border:1px solid color-mix(in srgb,var(--ate-accent) 12%,var(--ate-base))!important;
  box-shadow:0 12px 24px color-mix(in srgb,var(--ate-accent) 10%,transparent)!important;
}
.ate-hub-icon svg{
  width:27px!important;
  height:27px!important;
  display:block!important;
  fill:currentColor!important;
}
.ate-hub-card-body{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
  position:relative!important;
  z-index:2!important;
}
.ate-hub-label{
  width:max-content!important;
  max-width:100%!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--ate-accent) 7%,#fff)!important;
  color:var(--ate-accent)!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:650!important;
}
.ate-hub-title{
  color:var(--ate-contrast)!important;
  font-size:17px!important;
  line-height:1.18!important;
  letter-spacing:-.025em!important;
  font-weight:650!important;
}
.ate-hub-desc{
  color:var(--ate-muted)!important;
  font-size:13px!important;
  line-height:1.5!important;
  font-weight:400!important;
}
.ate-hub-arrow{
  position:absolute!important;
  right:14px!important;
  bottom:14px!important;
  width:34px!important;
  height:34px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:color-mix(in srgb,var(--ate-accent) 7%,#fff)!important;
  color:var(--ate-accent)!important;
  opacity:.9!important;
  transition:transform .2s ease, background .2s ease!important;
}
.ate-hub-arrow svg{width:18px!important;height:18px!important;fill:currentColor!important;display:block!important}
.ate-hub-card:hover .ate-hub-arrow,.ate-hub-card:focus-visible .ate-hub-arrow{transform:translateX(2px)!important;background:color-mix(in srgb,var(--ate-accent) 12%,#fff)!important}
@media(max-width:1100px){
  .ate-tools-hub .ate-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:820px){
  .ate-tools-hub{padding:20px!important;border-radius:26px!important;}
  .ate-tools-hub .ate-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  .ate-tools-hub .ate-hub-card{min-height:164px!important;padding:16px!important;border-radius:22px!important;grid-template-columns:48px minmax(0,1fr)!important;gap:12px!important;}
  .ate-hub-icon{width:48px!important;height:48px!important;border-radius:16px!important;}
  .ate-hub-icon svg{width:25px!important;height:25px!important;}
}
@media(max-width:560px){
  .ate-tools-hub{padding:14px!important;border-radius:22px!important;}
  .ate-hub-top{display:grid!important;gap:10px!important;margin-bottom:14px!important;}
  .ate-hub-copy{text-align:left!important;}
  .ate-hub-badge{width:max-content!important;max-width:100%!important;min-height:34px!important;font-size:12px!important;padding:8px 12px!important;}
  .ate-hub-copy strong{font-size:16px!important;}
  .ate-hub-copy span{font-size:12.5px!important;}
  .ate-tools-hub .ate-hub-grid{grid-template-columns:1fr!important;gap:10px!important;}
  .ate-tools-hub .ate-hub-card{min-height:auto!important;grid-template-columns:46px minmax(0,1fr) 30px!important;padding:14px!important;border-radius:20px!important;align-items:center!important;}
  .ate-hub-icon{width:46px!important;height:46px!important;border-radius:15px!important;}
  .ate-hub-icon svg{width:24px!important;height:24px!important;}
  .ate-hub-label{font-size:10.5px!important;padding:5px 8px!important;}
  .ate-hub-title{font-size:16px!important;}
  .ate-hub-desc{font-size:12.5px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
  .ate-hub-arrow{position:static!important;width:30px!important;height:30px!important;align-self:center!important;}
}

/* FreeSongFinder-style audio tools grid */
.ate-tools-grid{
  --ate-accent:var(--accent,#8b5cf6);
  --ate-contrast:var(--contrast,#111827);
  --ate-base:var(--base,#e5e7eb);
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  font-family:inherit!important;
}
.ate-tools-grid *{box-sizing:border-box!important;}
.ate-tool-card{
  position:relative!important;
  min-height:210px!important;
  padding:26px!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  text-decoration:none!important;
  color:var(--ate-contrast)!important;
  background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--ate-accent) 3%,#fff))!important;
  border:1px solid var(--ate-base)!important;
  border-radius:24px!important;
  box-shadow:none!important;
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease!important;
}
.ate-tool-card:before{
  content:""!important;
  position:absolute!important;
  inset:-1px!important;
  background:
    radial-gradient(circle at 85% 0%,color-mix(in srgb,var(--ate-accent) 16%,transparent),transparent 34%),
    radial-gradient(circle at 0% 100%,color-mix(in srgb,var(--ate-accent) 7%,transparent),transparent 38%)!important;
  opacity:0!important;
  transition:opacity .25s ease!important;
  pointer-events:none!important;
}
.ate-tool-card:after{
  content:"→"!important;
  position:absolute!important;
  right:24px!important;
  bottom:24px!important;
  width:40px!important;
  height:40px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--ate-accent) 8%,#fff)!important;
  color:var(--ate-accent)!important;
  font-size:22px!important;
  line-height:1!important;
  transform:translateX(-6px)!important;
  opacity:0!important;
  transition:transform .25s ease,opacity .25s ease!important;
}
.ate-tool-card:hover,.ate-tool-card:focus-visible{
  transform:translateY(-4px)!important;
  border-color:color-mix(in srgb,var(--ate-accent) 28%,var(--ate-base))!important;
  box-shadow:0 18px 45px color-mix(in srgb,var(--ate-contrast) 9%,transparent)!important;
  outline:none!important;
  color:var(--ate-contrast)!important;
  text-decoration:none!important;
}
.ate-tool-card:hover:before,.ate-tool-card:focus-visible:before{opacity:1!important;}
.ate-tool-card:hover:after,.ate-tool-card:focus-visible:after{transform:translateX(0)!important;opacity:1!important;}
.ate-tool-label,.ate-tool-card h2,.ate-tool-desc,.ate-tool-link{position:relative!important;z-index:1!important;}
.ate-tool-label{
  width:fit-content!important;
  margin-bottom:44px!important;
  padding:7px 11px!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--ate-accent) 8%,#fff)!important;
  color:var(--ate-accent)!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:500!important;
}



.ate-tool-desc{
  display:block!important;
  max-width:270px!important;
  margin:0!important;
  font-size:15.5px!important;
  line-height:1.55!important;
  font-weight:400!important;
  color:color-mix(in srgb,var(--ate-contrast) 68%,transparent)!important;
}
.ate-tool-link{
  display:block!important;
  margin-top:auto!important;
  padding-top:34px!important;
  color:var(--ate-accent)!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:500!important;
  opacity:.85!important;
}
.ate-tool-card:hover .ate-tool-link,.ate-tool-card:focus-visible .ate-tool-link{opacity:1!important;color:var(--ate-accent)!important;}
@media(max-width:1024px){
  .ate-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;}
  .ate-tool-card{min-height:190px!important;}
}
@media(max-width:640px){
  .ate-tools-grid{grid-template-columns:1fr!important;gap:14px!important;}
  .ate-tool-card{min-height:auto!important;padding:22px!important;border-radius:20px!important;}
  .ate-tool-label{margin-bottom:34px!important;}
.ate-tool-desc{font-size:15px!important;}
}


/* Requested cleanup */
.ate-play-btn{
  box-shadow:none!important;
}
.ate-card,
.ate-hub{
  box-shadow:none!important;
}
.ate-btn:hover,
.ate-btn:focus,
.ate-btn-primary:hover,
.ate-btn-primary:focus,
.ate-play-btn:hover,
.ate-play-btn:focus{
  color:#fff!important;
}
.ate-btn:not(.ate-btn-primary):hover,
.ate-btn:not(.ate-btn-primary):focus{
  color:var(--ate-contrast)!important;
}
.ate-rec-button{
  min-width:190px;
}
.ate-rec-button.is-recording{
  background:linear-gradient(135deg,#ef4444,#f97316)!important;
  border-color:transparent!important;
  color:#fff!important;
  position:relative;
}
.ate-rec-button.is-recording::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:#fff;
  margin-right:10px;
  box-shadow:0 0 0 0 rgba(255,255,255,.72);
  animation:ateRecPulse 1.15s infinite;
}
@keyframes ateRecPulse{
  0%{box-shadow:0 0 0 0 rgba(255,255,255,.72)}
  70%{box-shadow:0 0 0 12px rgba(255,255,255,0)}
  100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}
}
.ate-rec-timer{
  font-size:clamp(36px,6vw,58px);
  font-weight:700;
  letter-spacing:-.06em;
  color:var(--ate-accent);
  font-variant-numeric:tabular-nums;
}
.ate-volume-note{
  grid-column:1/-1;
  margin-top:-2px;
}


/* Pro metadata viewer */
.ate-meta-field{
  grid-column:1/-1!important;
}
.ate-meta-loading{
  color:var(--ate-muted);
  font-size:14px;
  line-height:1.5;
}
.ate-meta-viewer{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-top:10px;
}
.ate-meta-section{
  border:1px solid color-mix(in srgb,var(--ate-accent) 10%,var(--ate-base));
  border-radius:20px;
  background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--ate-accent) 2%,#fff));
  overflow:hidden;
}
.ate-meta-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 16px;
  border-bottom:1px solid color-mix(in srgb,var(--ate-accent) 8%,var(--ate-base));
}
.ate-meta-section-head span{
  font-size:15px;
  font-weight:600;
  color:var(--ate-contrast);
  letter-spacing:-.01em;
}
.ate-meta-rows{
  display:grid;
  gap:6px;
  padding:12px;
}
.ate-meta-row{
  display:grid;
  grid-template-columns:minmax(105px,.75fr) minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border-radius:13px;
  background:color-mix(in srgb,var(--ate-contrast) 3%,#fff);
}
.ate-meta-row span{
  min-width:0;
  color:color-mix(in srgb,var(--ate-contrast) 62%,transparent);
  font-size:13px;
  line-height:1.35;
}
.ate-meta-row strong{
  min-width:0;
  color:var(--ate-contrast);
  font-size:13px;
  line-height:1.35;
  font-weight:500;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ate-meta-empty{
  padding:12px;
  color:var(--ate-muted);
  font-size:13px;
  line-height:1.5;
}
@media(max-width:780px){
  .ate-meta-viewer{
    grid-template-columns:1fr;
  }
}
@media(max-width:520px){
  .ate-meta-row{
    grid-template-columns:1fr;
    gap:4px;
  }
  .ate-meta-row strong{
    white-space:normal;
    word-break:break-word;
  }
}



/* Multi-section Audio Cutter */
.ate-cutter-builder{grid-column:1/-1!important;gap:14px!important;}
.ate-cutter-top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;}
.ate-cutter-top label{display:block;margin:0 0 4px;}
.ate-add-segment{min-height:40px;}
.ate-segment-list{display:grid;gap:10px;}
.ate-segment-empty{padding:14px 16px;border:1px dashed color-mix(in srgb,var(--ate-accent) 22%,var(--ate-base));border-radius:16px;background:color-mix(in srgb,var(--ate-accent) 4%,#fff);color:var(--ate-muted);font-size:14px;line-height:1.45;}
.ate-segment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--ate-accent) 12%,var(--ate-base));border-radius:16px;background:#fff;}
.ate-segment-row strong{display:block;margin:0 0 3px;color:var(--ate-contrast);font-size:14px;line-height:1.2;}
.ate-segment-row span{display:block;color:var(--ate-muted);font-size:13px;line-height:1.35;}
.ate-segment-remove{flex-shrink:0;}
@media(max-width:640px){.ate-cutter-top{align-items:stretch;}.ate-add-segment{width:100%;}.ate-segment-row{align-items:flex-start;flex-direction:column;}.ate-segment-remove{width:100%;}}


.ate-loader-inline{
display:inline-block;
width:16px;
height:16px;
border:2px solid rgba(124,58,237,.2);
border-top-color:#7c3aed;
border-radius:50%;
animation:ateSpin .8s linear infinite;
margin-right:8px;
vertical-align:-3px;
}
@keyframes ateSpin{
to{transform:rotate(360deg);}
}

.ate-joiner-list{display:grid;gap:10px;margin-top:12px;}
.ate-joiner-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--ate-accent) 12%,var(--ate-base));border-radius:16px;background:#fff;transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease;}
.ate-joiner-info{min-width:0;flex:1;}
.ate-joiner-row strong{display:block;margin:0 0 3px;color:var(--ate-contrast);font-size:14px;line-height:1.25;word-break:break-word;}
.ate-joiner-row span{display:block;color:var(--ate-muted);font-size:13px;line-height:1.35;}
.ate-joiner-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.ate-order-btn{width:34px;height:34px;border:1px solid color-mix(in srgb,var(--ate-accent) 16%,var(--ate-base));border-radius:12px;background:color-mix(in srgb,var(--ate-accent) 5%,#fff);color:var(--ate-accent);font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;}
.ate-order-btn:hover:not(:disabled){border-color:color-mix(in srgb,var(--ate-accent) 45%,var(--ate-base));box-shadow:0 0 0 4px color-mix(in srgb,var(--ate-accent) 8%,transparent);}
.ate-order-btn:disabled{opacity:.35;cursor:not-allowed;}
.ate-joiner-remove{flex-shrink:0;}
.ate-btn:disabled{opacity:.55;cursor:not-allowed;}
@media(max-width:640px){.ate-joiner-row{align-items:flex-start;flex-direction:column;}.ate-joiner-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;}.ate-joiner-remove,.ate-add-joiner-files{width:100%;}.ate-joiner-remove{grid-column:1 / -1;}.ate-order-btn{width:100%;height:38px;}}

/* Audio Joiner: hide the source preview card before joining. */
.ate-source-player[hidden]{display:none!important;}
