/*
Theme Name: AISoundTools v7
Theme URI: https://aisoundtools.com
Author: AISoundTools
Author URI: https://aisoundtools.com
Description: AISoundTools v7 — neon brain-headphones redesign (2026-10-25) of the Suno-song transcription app: upload AI songs or stems and get guitar tabs, bass, piano, drums and vocal melody as tabs, notation and MIDI.
Version: 7.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aisoundtools
Tags: music, audio, ai, guitar, tablature, one-column, custom-logo, dark
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/


/* ═══════════════════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Logo-derived palette */
  --ast-deep-purple: #3b1c6e;
  --ast-purple: #6c2ca5;
  --ast-magenta: #f040e0;
  --ast-pink: #e94f8a;
  --ast-blue: #2f8cff;
  --ast-light-blue: #56b4e9;
  --ast-orange: #f28c28;
  --ast-warm-orange: #e8742a;

  /* Functional colors */
  --ast-bg-primary: #0b0b1a;
  --ast-bg-secondary: #10102a;
  --ast-bg-card: #14143a;
  --ast-bg-elevated: #1a1a4a;
  --ast-text-primary: #eae8f0;
  --ast-text-secondary: #a09cb5;
  --ast-text-muted: #6b6580;
  --ast-border: rgba(139, 92, 255, 0.2);
  --ast-border-active: rgba(139, 92, 255, 0.5);

  /* Gradients */
  --ast-gradient-brand: linear-gradient(135deg, #6c2ca5 0%, #f040e0 35%, #2f8cff 65%, #f28c28 100%);
  --ast-gradient-hero: linear-gradient(135deg, #3b1c6e 0%, #6c2ca5 30%, #2f8cff 60%, #f040e0 100%);
  --ast-gradient-accent: linear-gradient(90deg, #6c2ca5, #f040e0, #f28c28);
  --ast-gradient-subtle: linear-gradient(180deg, #0b0b1a 0%, #10102a 100%);

  /* Spacing */
  --ast-space-xs: 4px;
  --ast-space-sm: 8px;
  --ast-space-md: 16px;
  --ast-space-lg: 24px;
  --ast-space-xl: 40px;
  --ast-space-2xl: 64px;
  --ast-space-3xl: 96px;

  /* Radius */
  --ast-radius-sm: 6px;
  --ast-radius-md: 12px;
  --ast-radius-lg: 20px;
  --ast-radius-xl: 28px;

  /* Shadows */
  --ast-shadow-card: 0 4px 24px rgba(10, 12, 40, 0.15), 0 1px 4px rgba(0,0,0,0.3);
  --ast-shadow-glow: 0 0 40px rgba(139, 92, 255, 0.25);
  --ast-shadow-intense: 0 8px 48px rgba(139, 92, 255, 0.3), 0 0 80px rgba(240, 64, 224, 0.15);

  /* Typography */
  --ast-font-display: 'Orbitron', sans-serif;
  --ast-font-body: 'Outfit', sans-serif;
  --ast-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ast-font-body);
  background: var(--ast-bg-primary);
  color: var(--ast-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--ast-light-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ast-pink); }

img { max-width: 100%; height: auto; display: block; }

::selection {
  background: var(--ast-purple);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ast-bg-primary); }
::-webkit-scrollbar-thumb { background: var(--ast-purple); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ast-magenta); }

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND
   ═══════════════════════════════════════════════════════════════════════════ */
.ast-bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(139, 92, 255, 0.5) 60px, rgba(139, 92, 255, 0.5) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(139, 92, 255, 0.5) 60px, rgba(139, 92, 255, 0.5) 61px);
}

.ast-bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ast-bg-orbs::before,
.ast-bg-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: ast-float 20s ease-in-out infinite;
}

.ast-bg-orbs::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 255, 0.15), transparent 70%);
  top: -200px; left: -100px;
}

.ast-bg-orbs::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(47, 140, 255, 0.12), transparent 70%);
  bottom: -150px; right: -100px;
  animation-delay: -10s;
  animation-direction: reverse;
}

@keyframes ast-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 30px) scale(0.95); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */
.ast-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 8, 22, 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--ast-border);
  padding: 0 var(--ast-space-lg);
}

.ast-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.ast-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ast-logo img {
  height: 46px;
  width: auto;
}

.ast-logo-text {
  font-family: var(--ast-font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--ast-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ast-nav {
  display: flex;
  align-items: center;
  gap: var(--ast-space-lg);
}

.ast-nav a {
  font-family: var(--ast-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ast-text-secondary);
  letter-spacing: 0.03em;
  transition: color 0.25s;
  position: relative;
}

.ast-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ast-gradient-accent);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.ast-nav a:hover {
  color: var(--ast-text-primary);
}

.ast-nav a:hover::after {
  width: 100%;
}

.ast-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ast-text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .ast-mobile-toggle { display: block; }
  .ast-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: rgba(7, 8, 22, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: var(--ast-space-lg);
    border-bottom: 1px solid var(--ast-border);
  }
  .ast-nav.ast-nav-open {
    display: flex;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO / UPLOAD ZONE
   ═══════════════════════════════════════════════════════════════════════════ */
.ast-hero {
  position: relative;
  z-index: 1;
  padding: var(--ast-space-3xl) var(--ast-space-lg);
  text-align: center;
}

.ast-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.ast-hero h1 {
  font-family: var(--ast-font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--ast-space-md);
  background: var(--ast-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ast-fadeUp 0.8s ease-out;
}

.ast-hero .ast-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ast-text-secondary);
  max-width: 560px;
  margin: 0 auto var(--ast-space-xl);
  line-height: 1.7;
  animation: ast-fadeUp 0.8s ease-out 0.15s both;
}

@keyframes ast-fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Upload Zone */
.ast-upload-zone {
  position: relative;
  border: 2px dashed rgba(139, 92, 255, 0.35);
  border-radius: var(--ast-radius-xl);
  padding: var(--ast-space-3xl) var(--ast-space-xl);
  cursor: pointer;
  background: rgba(17, 20, 47, 0.4);
  transition: all 0.4s ease;
  animation: ast-fadeUp 0.8s ease-out 0.3s both;
  overflow: hidden;
}

.ast-upload-zone::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--ast-radius-xl);
  background: var(--ast-gradient-brand);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
  filter: blur(20px);
}

.ast-upload-zone:hover,
.ast-upload-zone.ast-drag-over {
  border-color: var(--ast-purple);
  background: rgba(17, 20, 47, 0.7);
  transform: translateY(-2px);
  box-shadow: var(--ast-shadow-intense);
}

.ast-upload-zone:hover::before,
.ast-upload-zone.ast-drag-over::before {
  opacity: 0.15;
}

.ast-upload-icon {
  font-size: 64px;
  margin-bottom: var(--ast-space-md);
  display: block;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 255, 0.3));
}

.ast-upload-title {
  font-family: var(--ast-font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--ast-space-sm);
  background: var(--ast-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ast-upload-desc {
  font-size: 14px;
  color: var(--ast-text-muted);
  max-width: 400px;
  margin: 0 auto var(--ast-space-lg);
  line-height: 1.7;
}

.ast-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--ast-gradient-brand);
  color: #fff;
  border: none;
  border-radius: var(--ast-radius-md);
  font-family: var(--ast-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  text-transform: uppercase;
}

.ast-upload-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(139, 92, 255, 0.4);
}

/* ── Hero Preset Picker ─────────────────────────────────────────────────── */
.ast-hero-presets {
  margin-bottom: var(--ast-space-xl);
  animation: ast-fadeUp 0.8s ease-out 0.2s both;
}

.ast-hero-presets-label {
  font-family: var(--ast-font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ast-text-muted);
  margin-bottom: var(--ast-space-md);
}

.ast-hero-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 520px) {
  .ast-hero-presets-grid { grid-template-columns: repeat(2, 1fr); }
}

.ast-hero-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border-radius: var(--ast-radius-md);
  border: 2px solid var(--ast-border);
  background: var(--ast-bg-card);
  color: var(--ast-text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--ast-font-body);
}

.ast-hero-preset-btn:hover {
  border-color: var(--ast-purple);
  background: var(--ast-bg-elevated);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 255, 0.2);
}

.ast-hero-preset-btn.ast-active {
  border-color: var(--ast-purple);
  background: rgba(139, 92, 255, 0.15);
  color: var(--ast-text-primary);
  box-shadow: 0 0 20px rgba(139, 92, 255, 0.2), inset 0 0 20px rgba(139, 92, 255, 0.05);
}

.ast-hero-preset-icon {
  font-size: 24px;
  line-height: 1;
}

.ast-hero-preset-name {
  font-family: var(--ast-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ast-hero-preset-detail {
  font-size: 10px;
  color: var(--ast-text-muted);
  letter-spacing: 0.03em;
}

.ast-hero-preset-btn.ast-active .ast-hero-preset-name {
  color: var(--ast-purple);
}

/* Upload selected preset label */
.ast-upload-selected-preset {
  font-family: var(--ast-font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ast-text-muted);
  margin-bottom: var(--ast-space-md);
  text-transform: uppercase;
}

.ast-upload-selected-preset strong {
  color: var(--ast-purple);
  font-weight: 700;
}

/* Footer subtitle */
.ast-footer-sub {
  font-size: 12px;
  color: var(--ast-text-muted);
  margin-top: 6px;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROCESSING OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */
.ast-processing {
  text-align: center;
  padding: var(--ast-space-3xl) var(--ast-space-lg);
  animation: ast-fadeUp 0.5s ease-out;
}

.ast-spinner {
  width: 64px; height: 64px;
  border: 3px solid rgba(139, 92, 255, 0.2);
  border-top-color: var(--ast-purple);
  border-radius: 50%;
  margin: 0 auto var(--ast-space-lg);
  animation: ast-spin 0.7s linear infinite;
}

@keyframes ast-spin { to { transform: rotate(360deg); } }

.ast-progress-bar {
  width: 100%;
  max-width: 420px;
  height: 6px;
  background: var(--ast-bg-card);
  border-radius: 3px;
  margin: var(--ast-space-md) auto 0;
  overflow: hidden;
}

.ast-progress-fill {
  height: 100%;
  background: var(--ast-gradient-accent);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN WORKSPACE
   ═══════════════════════════════════════════════════════════════════════════ */
.ast-workspace {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--ast-space-lg);
}

/* Song Title Input */
.ast-song-title-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ast-border-active);
  color: var(--ast-text-primary);
  font-family: var(--ast-font-display);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  width: 100%;
  padding: 8px 0;
  outline: none;
  margin-bottom: var(--ast-space-xs);
  transition: border-color 0.3s;
}

.ast-song-title-input:focus {
  border-color: var(--ast-magenta);
}

.ast-song-meta {
  font-size: 12px;
  color: var(--ast-text-muted);
  margin-bottom: var(--ast-space-xl);
  letter-spacing: 0.04em;
}

/* ─── Controls Bar ───────────────────────────────────────────────────────── */
.ast-controls {
  background: var(--ast-bg-card);
  border-radius: var(--ast-radius-lg);
  border: 1px solid var(--ast-border);
  padding: var(--ast-space-md) var(--ast-space-lg);
  margin-bottom: var(--ast-space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--ast-space-md);
  align-items: center;
  box-shadow: var(--ast-shadow-card);
}

.ast-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--ast-radius-sm);
  font-family: var(--ast-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
}

.ast-btn-play {
  background: var(--ast-gradient-brand);
  color: #fff;
}

.ast-btn-play:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(139, 92, 255, 0.4);
}

.ast-btn-stop {
  background: var(--ast-bg-elevated);
  color: var(--ast-text-secondary);
  border: 1px solid var(--ast-border);
}

.ast-btn-stop:hover {
  background: var(--ast-magenta);
  color: #fff;
}

.ast-btn-outline {
  background: transparent;
  color: var(--ast-text-secondary);
  border: 1px solid var(--ast-border);
}

.ast-btn-outline:hover {
  border-color: var(--ast-purple);
  color: var(--ast-text-primary);
}

.ast-btn-outline.ast-active {
  background: rgba(139, 92, 255, 0.15);
  border-color: var(--ast-purple);
  color: var(--ast-purple);
}

.ast-btn-ghost {
  background: transparent;
  border: 1px solid var(--ast-border);
  color: var(--ast-text-muted);
}

.ast-btn-ghost:hover {
  color: var(--ast-text-primary);
  border-color: var(--ast-text-muted);
}

.ast-control-sep {
  width: 1px;
  height: 28px;
  background: var(--ast-border);
}

.ast-slider-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ast-slider-label {
  font-family: var(--ast-font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ast-text-muted);
  text-transform: uppercase;
}

.ast-slider-val {
  font-family: var(--ast-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ast-purple);
  min-width: 30px;
  text-align: center;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--ast-bg-elevated);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ast-purple);
  border: 2px solid var(--ast-bg-primary);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 8px rgba(139, 92, 255, 0.5);
}

/* ─── Presets ────────────────────────────────────────────────────────────── */
.ast-presets {
  display: flex;
  gap: var(--ast-space-sm);
  margin-bottom: var(--ast-space-lg);
  flex-wrap: wrap;
  align-items: center;
}

.ast-presets-label {
  font-family: var(--ast-font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ast-text-muted);
  text-transform: uppercase;
  margin-right: var(--ast-space-xs);
}

.ast-preset-btn {
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid var(--ast-border);
  background: transparent;
  color: var(--ast-text-secondary);
  font-family: var(--ast-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}

.ast-preset-btn:hover {
  border-color: var(--ast-purple);
  color: var(--ast-text-primary);
}

.ast-preset-btn.ast-active {
  color: #fff;
  border-color: transparent;
}

/* ─── Sound Settings Grid ────────────────────────────────────────────────── */
.ast-sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--ast-space-md);
  margin-bottom: var(--ast-space-xl);
}

.ast-sound-card {
  background: var(--ast-bg-card);
  border-radius: var(--ast-radius-md);
  padding: var(--ast-space-md);
  border: 1px solid var(--ast-border);
}

.ast-sound-card-label {
  font-family: var(--ast-font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ast-text-muted);
  text-transform: uppercase;
  margin-bottom: var(--ast-space-sm);
}

.ast-select {
  width: 100%;
  background: var(--ast-bg-elevated);
  color: var(--ast-text-primary);
  border: 1px solid var(--ast-border);
  border-radius: var(--ast-radius-sm);
  padding: 10px 12px;
  font-family: var(--ast-font-body);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237fe3ff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s;
}

.ast-select:focus {
  border-color: var(--ast-purple);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLATURE DISPLAY
   ═══════════════════════════════════════════════════════════════════════════ */
.ast-tab-container {
  background: var(--ast-bg-secondary);
  border-radius: var(--ast-radius-lg);
  border: 1px solid var(--ast-border);
  padding: var(--ast-space-lg);
  overflow: auto;
  box-shadow: var(--ast-shadow-card);
}

.ast-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ast-space-lg);
  padding-bottom: var(--ast-space-md);
  border-bottom: 1px solid var(--ast-border);
}

.ast-tab-title {
  font-family: var(--ast-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--ast-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ast-tab-info {
  font-size: 12px;
  color: var(--ast-text-muted);
  letter-spacing: 0.03em;
}

/* Measure */
.ast-measure {
  margin-bottom: var(--ast-space-lg);
}

.ast-measure-lyric {
  margin-bottom: var(--ast-space-sm);
  min-height: 24px;
}

.ast-lyric-display {
  color: var(--ast-magenta);
  font-size: 14px;
  font-style: italic;
  cursor: pointer;
  padding: 2px 0;
  border-bottom: 1px dashed rgba(240, 64, 224, 0.3);
  transition: color 0.2s;
}

.ast-lyric-display:hover {
  color: var(--ast-pink);
}

.ast-lyric-hint {
  font-size: 10px;
  color: var(--ast-text-muted);
  margin-left: 8px;
}

.ast-lyric-input {
  background: var(--ast-bg-elevated);
  border: 1px solid var(--ast-purple);
  color: var(--ast-text-primary);
  padding: 4px 10px;
  border-radius: var(--ast-radius-sm);
  font-family: var(--ast-font-body);
  font-size: 13px;
  width: 100%;
  outline: none;
}

.ast-measure-header {
  font-family: var(--ast-font-mono);
  font-size: 10px;
  color: var(--ast-text-muted);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.ast-measure-header .active {
  color: var(--ast-purple);
  font-weight: 700;
}

/* Tab strings */
.ast-tab-strings {
  font-family: var(--ast-font-mono);
  font-size: 13px;
  line-height: 1.6;
  padding-left: 8px;
  border-left: 3px solid transparent;
  border-radius: var(--ast-radius-sm);
  transition: all 0.2s;
}

.ast-tab-strings.ast-playing {
  background: rgba(139, 92, 255, 0.06);
  border-left-color: var(--ast-purple);
}

.ast-tab-line {
  position: relative;
  color: var(--ast-text-secondary);
  white-space: pre;
}

.ast-tab-line .ast-fret-num {
  color: var(--ast-text-primary);
  font-weight: 600;
}

.ast-playhead {
  position: absolute;
  width: 2px;
  height: 100%;
  top: 0;
  background: var(--ast-magenta);
  opacity: 0.85;
  pointer-events: none;
  transition: left 0.08s linear;
}

/* ─── Notes Summary ──────────────────────────────────────────────────────── */
.ast-notes-summary {
  margin-top: var(--ast-space-lg);
  background: var(--ast-bg-card);
  border-radius: var(--ast-radius-md);
  padding: var(--ast-space-md);
  border: 1px solid var(--ast-border);
}

.ast-notes-summary-title {
  font-family: var(--ast-font-display);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ast-text-muted);
  text-transform: uppercase;
  margin-bottom: var(--ast-space-md);
}

.ast-note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ast-note-chip {
  background: rgba(139, 92, 255, 0.12);
  border: 1px solid rgba(139, 92, 255, 0.25);
  border-radius: var(--ast-radius-sm);
  padding: 4px 12px;
  font-family: var(--ast-font-mono);
  font-size: 12px;
}

.ast-note-chip-name {
  color: var(--ast-purple);
  font-weight: 700;
}

.ast-note-chip-count {
  color: var(--ast-text-muted);
  margin-left: 4px;
}

/* ─── Tips ────────────────────────────────────────────────────────────────── */
.ast-tips {
  margin-top: var(--ast-space-lg);
  background: var(--ast-bg-card);
  border-radius: var(--ast-radius-md);
  padding: var(--ast-space-md);
  border: 1px solid var(--ast-border);
  font-size: 13px;
  color: var(--ast-text-muted);
  line-height: 1.8;
}

.ast-tips strong {
  color: var(--ast-purple);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.ast-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--ast-border);
  padding: var(--ast-space-xl) var(--ast-space-lg);
  text-align: center;
  margin-top: var(--ast-space-3xl);
}

.ast-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.ast-footer p {
  font-size: 13px;
  color: var(--ast-text-muted);
}

.ast-footer-brand {
  font-family: var(--ast-font-display);
  font-weight: 700;
  background: var(--ast-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WORDPRESS DEFAULTS
   ═══════════════════════════════════════════════════════════════════════════ */
.wp-block-post-content,
.entry-content { max-width: 1320px; margin: 0 auto; padding: var(--ast-space-lg); }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

/* WordPress admin bar fix */
body.admin-bar .ast-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ast-header { top: 46px; } }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .ast-hero { padding: var(--ast-space-xl) var(--ast-space-md); }
  .ast-upload-zone { padding: var(--ast-space-xl) var(--ast-space-md); }
  .ast-upload-icon { font-size: 48px; }
  .ast-controls { padding: var(--ast-space-sm) var(--ast-space-md); gap: var(--ast-space-sm); }
  .ast-tab-container { padding: var(--ast-space-md); }
  .ast-tab-strings { font-size: 11px; overflow-x: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════ */
#ast-dashboard {
  padding-top: var(--ast-space-xl);
  animation: ast-fadeUp 0.5s ease-out;
}

.ast-project-card:hover {
  border-color: var(--ast-border-active) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--ast-shadow-card) !important;
}

.ast-project-card .ast-project-delete:hover {
  opacity: 1 !important;
  color: #e74c3c !important;
}

/* Save button pulse */
#ast-btn-save { position: relative; }
#ast-btn-save::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--ast-gradient-brand);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
  filter: blur(8px);
}
#ast-btn-save:hover::after { opacity: 0.3; }

/* ═══════════════════════════════════════════════════════════════════════════
   TAB VIEW SWITCHER
   ═══════════════════════════════════════════════════════════════════════════ */
.ast-tab-switcher {
  display: flex;
  gap: 6px;
  margin-bottom: var(--ast-space-md);
  flex-wrap: wrap;
}

.ast-tab-switch-btn {
  padding: 8px 20px;
  border-radius: var(--ast-radius-sm);
  border: 1px solid var(--ast-border);
  background: var(--ast-bg-card);
  color: var(--ast-text-secondary);
  font-family: var(--ast-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.ast-tab-switch-btn:hover {
  border-color: var(--ast-purple);
  color: var(--ast-text-primary);
}

.ast-tab-switch-btn.ast-active {
  background: var(--ast-purple);
  border-color: var(--ast-purple);
  color: #fff;
}

/* ── Tone row ────────────────────────────────────────────────────────── */
.ast-tone-row {
  display: flex;
  align-items: center;
  gap: var(--ast-space-md);
  margin-bottom: var(--ast-space-lg);
  flex-wrap: wrap;
}

.ast-tone-label {
  font-family: var(--ast-font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ast-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIXED TRANSPORT BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.ast-transport {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(7, 8, 22, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--ast-border);
  padding: 10px 20px;
}

.ast-transport-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ast-transport-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ast-transport-play {
  background: var(--ast-gradient-brand);
  color: #fff;
}

.ast-transport-play:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(139, 92, 255, 0.4);
}

.ast-transport-play.ast-playing {
  background: var(--ast-magenta);
  animation: ast-pulse 1.5s ease-in-out infinite;
}

@keyframes ast-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 64, 224, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(240, 64, 224, 0); }
}

.ast-transport-stop {
  background: var(--ast-bg-elevated);
  color: var(--ast-text-secondary);
  border: 1px solid var(--ast-border);
}

.ast-transport-stop:hover {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

.ast-transport-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ast-transport-label {
  font-family: var(--ast-font-display);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ast-text-muted);
}

.ast-transport-val {
  font-family: var(--ast-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ast-purple);
  min-width: 28px;
}

.ast-transport-title {
  margin-left: auto;
  font-family: var(--ast-font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ast-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

/* Progress label */
.ast-progress-label {
  font-family: var(--ast-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ast-purple);
  margin-bottom: 8px;
}

.ast-progress-pct {
  font-size: 12px;
  color: var(--ast-text-muted);
  margin-top: 8px;
}

/* WP admin bar fix for fixed transport */
body.admin-bar .ast-transport { bottom: 0; }

@media (max-width: 640px) {
  .ast-transport-inner { gap: 10px; }
  .ast-transport-title { display: none; }
  .ast-transport-btn { width: 36px; height: 36px; font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v6.1 — SERVER TRANSCRIPTION (upload progress, results, alphaTab viewer)
   ═══════════════════════════════════════════════════════════════════════════ */
.ast-upload-fineprint {
  max-width: 560px;
  margin: var(--ast-space-lg) auto 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ast-text-muted);
}
.ast-upload-fineprint strong { color: var(--ast-text-secondary); }
.ast-quick-link {
  display: inline-block;
  margin-top: var(--ast-space-sm);
  font-size: 12px;
  color: var(--ast-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.8;
}
.ast-quick-link:hover { color: var(--ast-light-blue); opacity: 1; }

.ast-queue-info {
  margin-top: var(--ast-space-sm);
  font-size: 12px;
  color: var(--ast-text-muted);
  min-height: 18px;
}
.ast-btn-cancel { margin-top: var(--ast-space-lg); }
.ast-job-error {
  max-width: 480px;
  margin: var(--ast-space-lg) auto 0;
  padding: var(--ast-space-md) var(--ast-space-lg);
  background: var(--ast-bg-card);
  border: 1px solid rgba(255, 77, 166, 0.4);
  border-radius: var(--ast-radius-md);
  color: var(--ast-text-secondary);
}
.ast-job-error p { margin-bottom: var(--ast-space-md); }

.ast-res-title {
  font-family: var(--ast-font-display);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  background: var(--ast-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--ast-space-xs);
  word-break: break-word;
}
.ast-draft-note {
  background: rgba(255, 181, 71, 0.08);
  border: 1px solid rgba(255, 181, 71, 0.35);
  border-radius: var(--ast-radius-md);
  padding: var(--ast-space-md);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ast-text-secondary);
  margin-bottom: var(--ast-space-lg);
}
.ast-draft-note strong { color: var(--ast-orange); }
.ast-res-section-label {
  font-family: var(--ast-font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ast-text-muted);
  margin-bottom: var(--ast-space-sm);
}
.ast-res-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ast-space-sm);
  margin-bottom: var(--ast-space-lg);
}
.ast-dl-btn { text-decoration: none; font-size: 11px; padding: 8px 14px; }
.ast-res-warnings { font-size: 12px; color: var(--ast-orange); margin-bottom: var(--ast-space-md); }
.ast-res-instruments { margin-bottom: var(--ast-space-lg); }
.ast-res-muted { color: var(--ast-text-muted); font-size: 13px; }

.ast-at-play { min-width: 56px; justify-content: center; }
.ast-at-play:disabled { opacity: 0.45; cursor: wait; transform: none; }
.ast-at-time { font-family: var(--ast-font-mono); font-size: 12px; color: var(--ast-text-secondary); min-width: 110px; }

.ast-at-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ast-space-sm);
  margin-bottom: var(--ast-space-md);
}
.ast-at-track {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ast-bg-card);
  border: 1px solid var(--ast-border);
  border-radius: var(--ast-radius-sm);
  padding: 4px 6px 4px 12px;
}
.ast-at-track-name { font-size: 13px; font-weight: 600; color: var(--ast-text-primary); margin-right: 6px; }
.ast-at-tbtn {
  min-width: 30px;
  height: 28px;
  border: 1px solid var(--ast-border);
  border-radius: 4px;
  background: transparent;
  color: var(--ast-text-muted);
  font-family: var(--ast-font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.ast-at-tbtn:hover { color: var(--ast-text-primary); border-color: var(--ast-border-active); }
.ast-at-tbtn.ast-on { background: rgba(139, 92, 255, 0.25); border-color: var(--ast-purple); color: #fff; }
.ast-at-tbtn[data-act="mute"].ast-on { background: rgba(255, 77, 166, 0.3); border-color: var(--ast-pink); }
.ast-at-tbtn[data-act="solo"].ast-on { background: rgba(255, 181, 71, 0.3); border-color: var(--ast-orange); }

/* alphaTab draws black notation, so the score sits on a light "paper" card */
.ast-at-viewport {
  position: relative;
  background: #f7f5fb;
  max-height: 75vh;
  min-height: 240px;
  overflow: auto;
  padding: var(--ast-space-md);
}
.ast-at-status { color: #4a4560; font-size: 13px; text-align: center; padding: var(--ast-space-sm); }
.ast-at-status:empty { display: none; }
.ast-at-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  background: rgba(247, 245, 251, 0.7);
  z-index: 3;
}
.ast-alphatab { color: #1b1830; }
.ast-alphatab .at-cursor-bar { background: rgba(139, 92, 255, 0.12); }
.ast-alphatab .at-selection div { background: rgba(47, 140, 255, 0.15); }
.ast-alphatab .at-cursor-beat { background: var(--ast-magenta); width: 3px; }
.ast-alphatab .at-highlight * { fill: var(--ast-magenta); stroke: var(--ast-magenta); }
.ast-res-credits { margin-top: var(--ast-space-md); font-size: 11px; color: var(--ast-text-muted); line-height: 1.7; }
.ast-res-credits a { color: var(--ast-text-secondary); }

@media (max-width: 640px) {
  .ast-at-controls { gap: var(--ast-space-sm); }
  .ast-at-viewport { max-height: 65vh; padding: var(--ast-space-sm); }
  .ast-dl-btn { flex: 1 1 45%; justify-content: center; }
}

/* ── v6.2: upload mode toggle, stems picker, tuning line ── */
.ast-mode-toggle { display: inline-flex; gap: 4px; padding: 4px; margin: 0 auto var(--ast-space-lg); border-radius: 999px; background: rgba(17, 20, 47, 0.6); border: 1px solid rgba(139, 92, 255, 0.35); }
.ast-mode-btn { border: 0; border-radius: 999px; padding: 8px 18px; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; opacity: 0.75; transition: all 0.2s; }
.ast-mode-btn:hover { opacity: 1; }
.ast-mode-btn.ast-on { background: var(--ast-gradient-brand); color: #fff; opacity: 1; }
.ast-stems-panel { text-align: left; }
.ast-stems-drop { border: 2px dashed rgba(139, 92, 255, 0.35); border-radius: var(--ast-radius-xl); padding: var(--ast-space-xl); background: rgba(17, 20, 47, 0.4); text-align: center; cursor: pointer; transition: all 0.3s; }
.ast-stems-drop:hover, .ast-stems-drop.ast-drag-over { border-color: var(--ast-purple); background: rgba(17, 20, 47, 0.7); }
.ast-stems-list { margin-top: var(--ast-space-md); display: flex; flex-direction: column; gap: 8px; }
.ast-stem-row { display: grid; grid-template-columns: 1fr auto 170px auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(17, 20, 47, 0.55); border: 1px solid rgba(139, 92, 255, 0.25); }
.ast-stem-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ast-stem-size { opacity: 0.7; font-size: 13px; }
.ast-stem-label { padding: 6px 8px; border-radius: 8px; background: rgba(9, 11, 30, 0.8); color: inherit; border: 1px solid rgba(139, 92, 255, 0.45); font: inherit; font-size: 14px; }
.ast-stem-del { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 16px; opacity: 0.7; padding: 4px 8px; }
.ast-stem-del:hover { opacity: 1; color: #ff6b8a; }
.ast-stems-total { font-size: 13px; opacity: 0.7; text-align: right; }
.ast-stems-error { margin-top: var(--ast-space-sm); padding: 8px 12px; border-radius: 8px; background: rgba(255, 80, 120, 0.12); border: 1px solid rgba(255, 80, 120, 0.4); font-size: 14px; }
.ast-stems-go { display: block; margin: var(--ast-space-md) auto 0; }
.ast-stems-go:disabled { opacity: 0.45; cursor: not-allowed; }
.ast-res-tuning { margin: 6px 0 var(--ast-space-md); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; opacity: 0.95; }
.ast-res-tuning .ast-sep { opacity: 0.5; }
.ast-tuning-pick select { margin-left: 6px; padding: 4px 8px; border-radius: 8px; background: rgba(9, 11, 30, 0.8); color: inherit; border: 1px solid rgba(139, 92, 255, 0.45); font: inherit; font-size: 13px; }
/* v6.3: up to 16 stems with auto-labels */
.ast-stem-row { grid-template-columns: 22px minmax(0, 1fr) auto minmax(170px, 250px) auto; }
.ast-stem-num { font-size: 12px; opacity: 0.55; text-align: right; font-family: var(--ast-font-mono); }
.ast-stem-pick { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ast-stem-pick .ast-stem-label { flex: 1 1 auto; min-width: 0; }
.ast-stem-tag { flex: none; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 999px; background: rgba(0, 212, 170, 0.14); border: 1px solid rgba(0, 212, 170, 0.45); color: #7ff0d6; white-space: nowrap; }
.ast-stem-tag-sound { background: rgba(255, 200, 80, 0.12); border-color: rgba(255, 200, 80, 0.45); color: #ffd98a; }
.ast-stem-tag-user { background: rgba(139, 92, 255, 0.2); border-color: rgba(139, 92, 255, 0.5); color: inherit; }
.ast-stems-list { max-height: 70vh; overflow-y: auto; }
.ast-stems-total.ast-over { color: #ff8aa5; opacity: 1; }
.ast-stems-clear { border: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.ast-note-chip.ast-chip-off { opacity: 0.5; }
.ast-note-chip-name em { font-style: normal; opacity: 0.7; font-size: 0.9em; }
.ast-at-tracks { max-height: 168px; overflow-y: auto; }
.ast-at-track-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .ast-stem-row { grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 6px 8px; padding: 8px 10px; }
  .ast-stem-pick { grid-column: 2 / 4; grid-row: 2; }
  .ast-stem-del { grid-column: 4; grid-row: 1; }
  .ast-stem-size { grid-column: 3; grid-row: 1; }
  .ast-stem-label { font-size: 16px; } /* no iOS zoom */
  .ast-at-track-name { max-width: 120px; }
}

/* ── v6.4: per-track volume, loop / metronome / count-in toggles, account link ── */
.ast-at-vol { width: 74px; height: 4px; margin: 0 4px 0 6px; accent-color: var(--ast-purple); cursor: pointer; vertical-align: middle; }
.ast-at-toggle { font-size: 12px; padding: 8px 12px; }
.ast-at-toggle.ast-on { background: rgba(139, 92, 255, 0.3); border-color: var(--ast-purple); color: #fff; }
.ast-nav a.ast-nav-account { opacity: 0.85; }
@media (max-width: 640px) {
  .ast-at-controls { flex-wrap: wrap; }
  .ast-at-toggle { padding: 7px 9px; }
  .ast-at-time { min-width: 0; flex: 1 1 100%; order: 10; }
  .ast-at-track { padding: 4px 6px 4px 10px; }
  .ast-at-vol { width: 56px; }
}

/* ── v6.5: original-audio playback, position readout, seek bar with sections, sticky transport ── */
.ast-at-sticky {
  position: sticky;
  top: 72px;
  z-index: 20;
  background: var(--ast-bg-primary);
  padding-top: 6px;
  margin-bottom: var(--ast-space-md);
}
body.admin-bar .ast-at-sticky { top: 104px; }
.ast-at-sticky .ast-at-controls { margin-bottom: 6px; }
.ast-at-sound { max-width: 230px; }
.ast-at-sound:disabled { opacity: 0.6; cursor: not-allowed; }
.ast-at-toggle:disabled { opacity: 0.4; cursor: not-allowed; }
.ast-at-seekrow { display: flex; align-items: center; gap: var(--ast-space-md); padding: 0 4px 6px; }
.ast-at-seekbar { position: relative; flex: 1 1 auto; min-width: 0; padding-bottom: 20px; }
.ast-at-seek { width: 100%; margin: 0; accent-color: var(--ast-magenta); height: 22px; cursor: pointer; display: block; }
.ast-at-marks { position: absolute; left: 8px; right: 8px; bottom: 0; height: 18px; }
.ast-at-mark {
  position: absolute; top: 0; transform: translateX(-50%);
  min-width: 18px; height: 18px; padding: 0 4px;
  border: 1px solid var(--ast-border-active); border-radius: 4px;
  background: var(--ast-bg-card); color: var(--ast-text-secondary);
  font: 700 10px/16px var(--ast-font-mono); cursor: pointer;
}
.ast-at-mark::before { content: ""; position: absolute; left: 50%; top: -7px; width: 1px; height: 6px; background: var(--ast-border-active); }
.ast-at-mark:hover, .ast-at-mark.ast-on { background: rgba(240, 64, 224, 0.35); border-color: var(--ast-magenta); color: #fff; }
.ast-at-where { flex: 0 0 auto; font-family: var(--ast-font-mono); font-size: 12px; color: var(--ast-text-secondary); white-space: nowrap; }
.ast-at-tracks-audio .ast-at-tbtn:disabled, .ast-at-tracks-audio .ast-at-vol:disabled { opacity: 0.35; cursor: not-allowed; }
.ast-res-actions { margin-top: var(--ast-space-md); }
@media (max-width: 782px) { body.admin-bar .ast-at-sticky { top: 118px; } }
@media (max-width: 640px) {
  .ast-at-sticky .ast-at-controls { padding: 6px 8px; gap: 6px; }
  .ast-at-sound { max-width: none; flex: 1 1 140px; }
  .ast-at-seekrow { flex-wrap: wrap; gap: 2px; }
  .ast-at-where { flex: 1 1 100%; font-size: 11px; }
  .ast-at-sticky .ast-control-sep, .ast-at-sticky .ast-tone-label { display: none; }
}

/* ═══ v6.6: synth + original mix, match score, stems hint, note editor ═══ */
.ast-rec-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #2fbf71; color: #08140d; font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; vertical-align: 1px; }
.ast-stems-hint { max-width: 640px; margin: 10px auto 14px; padding: 8px 14px; border: 1px solid rgba(47, 191, 113, 0.45); border-radius: 10px; background: rgba(47, 191, 113, 0.08); font-size: 13px; color: var(--ast-text-secondary); }
.ast-stems-hint strong { color: var(--ast-text-primary); }
.ast-at-mix { display: inline-flex; align-items: center; gap: 8px; }
.ast-at-vox { padding: 4px 10px; font-size: 13px; }
.ast-at-vox.ast-on { background: var(--ast-magenta); color: #fff; border-color: var(--ast-magenta); }
.ast-at-mixvol { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; cursor: default; }
.ast-at-mixvol input { width: 72px; accent-color: var(--ast-magenta); }
.ast-at-mixvol.ast-off { opacity: 0.35; }
.ast-at-seekbar { padding-bottom: 27px; }
.ast-at-matchbar { position: absolute; left: 8px; right: 8px; top: 23px; height: 5px; border-radius: 3px; opacity: 0.9; pointer-events: none; }
.ast-at-mark.ast-m-good { border-color: #2fbf71; box-shadow: inset 0 -3px 0 #2fbf71; }
.ast-at-mark.ast-m-ok { border-color: #e8b931; box-shadow: inset 0 -3px 0 #e8b931; }
.ast-at-mark.ast-m-bad { border-color: #e5484d; box-shadow: inset 0 -3px 0 #e5484d; }
.ast-at-weak { flex: 0 0 auto; padding: 4px 10px; font-size: 12px; }
.ast-res-match { margin: 4px 0 10px; font-size: 13px; color: var(--ast-text-primary); }
.ast-m-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.ast-m-dot.ast-m-good { background: #2fbf71; } .ast-m-dot.ast-m-ok { background: #e8b931; } .ast-m-dot.ast-m-bad { background: #e5484d; }
.ast-ed { margin: 6px 0 12px; }
.ast-ed-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ast-ed-toggle.ast-on { background: var(--ast-gradient-brand); color: #fff; border-color: transparent; }
.ast-ed-status { font-size: 13px; color: var(--ast-text-secondary); }
.ast-ed-status.ast-ed-err { color: #ff8a8d; }
.ast-ed-panel { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--ast-border-active); border-radius: 10px; background: var(--ast-bg-card); }
.ast-ed-sel { font-size: 13px; margin-bottom: 8px; color: var(--ast-text-primary); }
.ast-ed-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.ast-ed-row label { display: inline-flex; align-items: center; gap: 4px; color: var(--ast-text-secondary); }
.ast-ed-row .ast-btn { padding: 5px 12px; font-size: 13px; }
.ast-ed-row .ast-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ast-ed-fret { width: 58px; padding: 5px 6px; border-radius: 6px; border: 1px solid var(--ast-border-active); background: var(--ast-bg-elevated); color: var(--ast-text-primary); font: inherit; }
.ast-ed-help { margin: 4px 0 0; font-size: 12px; color: var(--ast-text-muted); }
body.ast-editing .ast-alphatab { cursor: crosshair; }
.at-surface { position: relative; }
.ast-ed-hl { position: absolute; z-index: 5; border: 2px solid #f040e0; border-radius: 6px; background: rgba(240, 64, 224, 0.18); pointer-events: none; }
.ast-ed-hl.ast-ed-hl-add { border-style: dashed; border-color: #2f8cff; background: rgba(47, 140, 255, 0.15); }
@media (max-width: 640px) {
  .ast-at-mix { flex: 1 1 100%; justify-content: flex-start; }
  .ast-at-mixvol input { width: 90px; }
  .ast-at-weak { order: 3; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ███  v7 DESIGN LAYER (2026-10-25) — neon brain-headphones brand  ███
   Everything above is the v6.x app stylesheet (colours re-mapped to the new
   palette). Everything below restyles it; no selector the JS relies on was
   renamed. Palette sampled from the 2026-10-25 logo.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* brand (logo samples: brain #23E0FE, ".com" #16B7FE, "sound" #249CFE, "ai" #AE37FE, brain-right #BC7EFE) */
  --ast-cyan: #2fd3ff;
  --ast-cyan-soft: #7fe3ff;
  --ast-electric: #2f8cff;
  --ast-violet: #8b5cff;
  --ast-magenta-hot: #f040e0;
  --ast-pink-hot: #ff4fd8;

  /* legacy token names kept (app.js inline styles use them) */
  --ast-deep-purple: #1a1450;
  --ast-purple: #a58bff;        /* used as TEXT on dark cards → 7:1 */
  --ast-magenta: #f040e0;
  --ast-pink: #ff6fd8;
  --ast-blue: #2f8cff;
  --ast-light-blue: #6fdcff;
  --ast-orange: #ffb547;
  --ast-warm-orange: #ff9f43;
  --ast-green: #3ee6a8;

  --ast-bg-primary: #070816;
  --ast-bg-secondary: #0b0d22;
  --ast-bg-card: #11142f;
  --ast-bg-elevated: #191d43;
  --ast-glass: rgba(17, 20, 47, 0.62);
  --ast-glass-strong: rgba(14, 17, 40, 0.86);
  --ast-text-primary: #eef1ff;   /* 17.6:1 on bg */
  --ast-text-secondary: #b9c0e3; /* 10.6:1 on bg, 9.3:1 on card */
  --ast-text-muted: #9098c4;     /* 6.6:1 on bg, 5.9:1 on card */
  --ast-border: rgba(127, 150, 255, 0.16);
  --ast-border-active: rgba(47, 211, 255, 0.45);

  --ast-gradient-brand: linear-gradient(100deg, #2fd3ff 0%, #2f8cff 35%, #8b5cff 68%, #f040e0 100%);
  --ast-gradient-cta: linear-gradient(100deg, #1f64ff 0%, #6d4bff 55%, #a932e0 100%); /* white text ≥4.5:1 across */
  --ast-gradient-hero: var(--ast-gradient-brand);
  --ast-gradient-accent: linear-gradient(90deg, #2fd3ff, #8b5cff, #f040e0);
  --ast-gradient-subtle: linear-gradient(180deg, #070816 0%, #0b0d22 100%);

  --ast-radius-sm: 10px;
  --ast-radius-md: 14px;
  --ast-radius-lg: 20px;
  --ast-radius-xl: 26px;

  --ast-shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --ast-shadow-glow: 0 0 0 1px rgba(47, 211, 255, 0.25), 0 0 32px rgba(47, 211, 255, 0.18);
  --ast-shadow-intense: 0 0 0 1px rgba(47, 211, 255, 0.45), 0 0 48px rgba(47, 211, 255, 0.22), 0 0 90px rgba(240, 64, 224, 0.14);

  --ast-font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --ast-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ast-font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ast-header-h: 72px;
}

/* ── base ─────────────────────────────────────────────────────────────── */
html { scroll-padding-top: 90px; }
body { font-size: 16px; line-height: 1.6; background: var(--ast-bg-primary); overflow-x: clip; }
a { color: var(--ast-light-blue); }
a:hover { color: var(--ast-pink); }
::selection { background: rgba(139, 92, 255, 0.55); color: #fff; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--ast-electric), var(--ast-violet)); }
:focus-visible { outline: 2px solid var(--ast-cyan); outline-offset: 3px; border-radius: 6px; }
.ast-skip { position: absolute; left: 12px; top: -60px; z-index: 3000; padding: 10px 16px; border-radius: 10px; background: var(--ast-bg-elevated); color: var(--ast-text-primary); font-weight: 600; }
.ast-skip:focus { top: 12px; }
h1, h2, h3 { font-family: var(--ast-font-display); letter-spacing: -0.02em; }

/* ── ambient background: aurora + fading grid ─────────────────────────── */
.ast-bg-grid {
  opacity: 1;
  background-image:
    linear-gradient(rgba(127, 150, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 150, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}
.ast-bg-orbs::before {
  width: 760px; height: 760px; top: -340px; left: 50%; margin-left: -620px;
  background: radial-gradient(circle, rgba(47, 211, 255, 0.20), transparent 65%);
  filter: blur(80px);
}
.ast-bg-orbs::after {
  width: 700px; height: 700px; top: -260px; bottom: auto; right: 50%; margin-right: -640px;
  background: radial-gradient(circle, rgba(240, 64, 224, 0.16), rgba(139, 92, 255, 0.08) 45%, transparent 68%);
  filter: blur(90px);
}

/* ── header ───────────────────────────────────────────────────────────── */
.ast-header {
  background: rgba(7, 8, 22, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(127, 150, 255, 0.12);
  padding: 0 20px;
}
.ast-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(47,211,255,0.5), rgba(240,64,224,0.45), transparent); opacity: 0.6; pointer-events: none; }
.ast-header-inner { max-width: 1200px; height: var(--ast-header-h); gap: 16px; }
.ast-logo { flex: 0 1 auto; min-width: 0; }
.ast-logo picture { display: block; line-height: 0; }
.ast-logo img { height: 52px; width: auto; max-width: 100%; filter: drop-shadow(0 0 10px rgba(47, 160, 255, 0.25)); }
.ast-logo-text { display: none; }
.ast-nav { gap: 6px; }
.ast-nav a {
  font-size: 14.5px; font-weight: 500; letter-spacing: 0; color: var(--ast-text-secondary);
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s, box-shadow .2s;
}
.ast-nav a::after { display: none; }
.ast-nav a:hover, .ast-nav a[aria-current="page"] { color: var(--ast-text-primary); background: rgba(127, 150, 255, 0.10); }
.ast-nav a.ast-nav-account {
  opacity: 1; margin-left: 6px; color: var(--ast-text-primary); font-weight: 600;
  background: linear-gradient(var(--ast-bg-card), var(--ast-bg-card)) padding-box, var(--ast-gradient-brand) border-box;
  border: 1px solid transparent;
}
.ast-nav a.ast-nav-account:hover { box-shadow: 0 0 22px rgba(47, 211, 255, 0.28); background: linear-gradient(var(--ast-bg-elevated), var(--ast-bg-elevated)) padding-box, var(--ast-gradient-brand) border-box; }
.ast-mobile-toggle {
  width: 44px; height: 44px; padding: 0; border-radius: 12px; font-size: 20px; line-height: 1;
  color: var(--ast-text-primary); background: rgba(127, 150, 255, 0.08); border: 1px solid var(--ast-border);
  flex: none; align-items: center; justify-content: center;
}
@media (max-width: 768px) {
  :root { --ast-header-h: 64px; }
  .ast-header { padding: 0 14px; }
  .ast-logo img { height: 44px; }
  .ast-mobile-toggle { display: inline-flex; }
  .ast-nav {
    top: var(--ast-header-h); left: 10px; right: 10px; padding: 10px; gap: 4px; align-items: stretch;
    background: var(--ast-glass-strong); border: 1px solid var(--ast-border); border-radius: 18px;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8);
  }
  .ast-nav a { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .ast-nav a.ast-nav-account { margin: 6px 0 0; text-align: center; }
}
body.admin-bar .ast-at-sticky { top: calc(var(--ast-header-h) + 32px); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.ast-hero { padding: 72px 20px 40px; }
.ast-hero-inner { max-width: 820px; }
.ast-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 22px; padding: 6px 14px 6px 10px;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ast-cyan-soft);
  background: rgba(47, 211, 255, 0.08); border: 1px solid rgba(47, 211, 255, 0.28);
  animation: ast-fadeUp .7s ease-out both;
}
.ast-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ast-cyan); box-shadow: 0 0 10px var(--ast-cyan); }
.ast-hero h1 {
  font-size: clamp(34px, 6.2vw, 64px); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em;
  margin-bottom: 18px; color: var(--ast-text-primary);
  background: none; -webkit-text-fill-color: currentColor; text-wrap: balance;
}
.ast-h1-grad {
  background: var(--ast-gradient-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 22px rgba(47, 160, 255, 0.35));
}
.ast-hero .ast-subtitle { font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin-bottom: 34px; color: var(--ast-text-secondary); text-wrap: pretty; }

/* ── tool card (glass) ─────────────────────────────────────────────────── */
.ast-tool-card {
  position: relative; max-width: 760px; margin: 0 auto; padding: 22px; text-align: center;
  background: linear-gradient(180deg, rgba(25, 29, 67, 0.72), rgba(13, 16, 38, 0.72));
  border: 1px solid rgba(127, 150, 255, 0.18); border-radius: 28px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.85), 0 0 80px -30px rgba(47, 140, 255, 0.35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: ast-fadeUp .8s ease-out .2s both;
}
.ast-tool-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(47,211,255,0.55), rgba(139,92,255,0.15) 40%, rgba(240,64,224,0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* upload-type toggle */
.ast-mode-toggle {
  display: flex; width: 100%; max-width: 520px; margin: 0 auto 14px; padding: 5px; gap: 4px;
  background: rgba(7, 8, 22, 0.6); border: 1px solid var(--ast-border); border-radius: 16px;
}
.ast-mode-btn {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  min-height: 44px; padding: 8px 12px; border-radius: 12px; font-family: var(--ast-font-body); font-size: 14.5px; font-weight: 600;
  color: var(--ast-text-secondary); opacity: 1; transition: background-color .2s, color .2s, box-shadow .2s;
}
.ast-mode-btn:hover { color: var(--ast-text-primary); background: rgba(127, 150, 255, 0.08); }
.ast-mode-btn.ast-on { background: var(--ast-gradient-cta); color: #fff; box-shadow: 0 6px 24px -8px rgba(109, 75, 255, 0.75); }
.ast-rec-badge { margin-left: 0; background: var(--ast-cyan); color: #03121c; font-size: 10.5px; padding: 2px 8px; letter-spacing: .04em; }
.ast-mode-btn.ast-on .ast-rec-badge { background: rgba(255,255,255,0.92); color: #3b1a8a; }
.ast-stems-hint {
  display: flex; gap: 10px; align-items: flex-start; text-align: left; max-width: none; margin: 0 0 14px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid rgba(47, 211, 255, 0.28); background: rgba(47, 211, 255, 0.06);
  font-size: 14px; line-height: 1.55; color: var(--ast-text-secondary);
}
.ast-stems-hint[style*="none"] { display: none !important; }
.ast-hint-ico { flex: none; font-size: 16px; line-height: 1.4; }

/* dropzones: idle / hover / drag-over / focus */
.ast-upload-zone, .ast-stems-drop {
  border: 1.5px dashed rgba(47, 211, 255, 0.38); border-radius: 20px; padding: 40px 24px 34px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(47, 140, 255, 0.10), transparent 60%), rgba(7, 8, 22, 0.45);
  transition: border-color .25s, background-color .25s, box-shadow .25s, transform .25s; animation: none;
}
.ast-upload-zone::before { display: none; }
.ast-upload-zone:hover, .ast-stems-drop:hover { border-color: rgba(47, 211, 255, 0.7); transform: none; box-shadow: var(--ast-shadow-glow); background-color: rgba(11, 14, 36, 0.6); }
.ast-upload-zone:focus-visible, .ast-stems-drop:focus-visible { outline: none; border-style: solid; border-color: var(--ast-cyan); box-shadow: 0 0 0 4px rgba(47, 211, 255, 0.25); }
.ast-upload-zone.ast-drag-over, .ast-stems-drop.ast-drag-over {
  border-style: solid; border-color: var(--ast-cyan); transform: scale(1.01);
  background: radial-gradient(120% 100% at 50% 30%, rgba(47, 211, 255, 0.20), rgba(139, 92, 255, 0.10) 55%, rgba(7,8,22,0.5));
  box-shadow: var(--ast-shadow-intense);
}
.ast-upload-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin: 0 auto 16px;
  border-radius: 22px; font-size: 0; color: #fff; filter: none;
  background: var(--ast-gradient-cta); box-shadow: 0 10px 30px -8px rgba(109, 75, 255, 0.8), 0 0 0 1px rgba(255,255,255,0.12) inset;
  transition: transform .3s;
}
.ast-upload-icon-sm { width: 60px; height: 60px; border-radius: 18px; }
.ast-upload-zone.ast-drag-over .ast-upload-icon, .ast-stems-drop.ast-drag-over .ast-upload-icon { transform: translateY(-4px) scale(1.06); }
.ast-upload-title {
  font-family: var(--ast-font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px;
  color: var(--ast-text-primary); background: none; -webkit-text-fill-color: currentColor;
}
.ast-upload-desc { font-size: 14.5px; max-width: 470px; margin-bottom: 22px; color: var(--ast-text-muted); }
.ast-stems-drop .ast-upload-desc { max-width: 560px; }
.ast-drop-cue { display: none; margin-top: 14px; font-weight: 700; color: var(--ast-cyan-soft); }
.ast-upload-zone.ast-drag-over .ast-drop-cue { display: block; }
.ast-upload-zone.ast-drag-over .ast-upload-btn { visibility: hidden; height: 0; padding: 0; margin: 0; }

/* buttons */
.ast-upload-btn, .ast-btn {
  font-family: var(--ast-font-body); text-transform: none; letter-spacing: 0; font-weight: 600;
  border-radius: 12px; transition: transform .18s, box-shadow .25s, background-color .2s, border-color .2s, color .2s;
}
.ast-upload-btn {
  min-height: 48px; padding: 12px 26px; font-size: 15.5px; color: #fff; background: var(--ast-gradient-cta);
  box-shadow: 0 10px 30px -10px rgba(109, 75, 255, 0.9), 0 0 0 1px rgba(255,255,255,0.10) inset;
}
.ast-upload-btn:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 14px 36px -10px rgba(109, 75, 255, 1), 0 0 24px rgba(47, 211, 255, 0.35); }
.ast-btn { min-height: 40px; padding: 9px 18px; font-size: 14px; }
.ast-btn-play { background: var(--ast-gradient-cta); color: #fff; box-shadow: 0 8px 22px -10px rgba(109, 75, 255, 0.9); }
.ast-btn-play:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(109, 75, 255, 1), 0 0 18px rgba(47, 211, 255, 0.3); }
.ast-btn-stop { background: var(--ast-bg-elevated); color: var(--ast-text-primary); border: 1px solid var(--ast-border); }
.ast-btn-stop:hover { background: #3a1440; border-color: var(--ast-magenta); color: #fff; }
.ast-btn-outline { color: var(--ast-text-primary); border: 1px solid rgba(127, 150, 255, 0.3); background: rgba(127, 150, 255, 0.04); }
.ast-btn-outline:hover { border-color: var(--ast-cyan); color: #fff; background: rgba(47, 211, 255, 0.08); }
.ast-btn-outline.ast-active { background: rgba(47, 211, 255, 0.12); border-color: var(--ast-cyan); color: var(--ast-cyan-soft); }
.ast-btn-ghost { color: var(--ast-text-secondary); border: 1px solid var(--ast-border); background: transparent; }
.ast-btn-ghost:hover { color: var(--ast-text-primary); border-color: rgba(127, 150, 255, 0.4); background: rgba(127, 150, 255, 0.06); }
.ast-btn:disabled, .ast-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.ast-stems-go { min-height: 48px; padding: 12px 28px; font-size: 15.5px; }

/* fine print */
.ast-upload-fineprint { max-width: 620px; margin-top: 16px; font-size: 13px; line-height: 1.65; color: var(--ast-text-muted); }
.ast-quick-link { color: var(--ast-text-secondary); opacity: 1; font-size: 13px; }
.ast-quick-link:hover { color: var(--ast-cyan-soft); }

/* stems list */
.ast-stems-list { text-align: left; }
.ast-stem-row { background: rgba(7, 8, 22, 0.55); border: 1px solid var(--ast-border); border-radius: 12px; }
.ast-stem-label, .ast-tuning-pick select { background: var(--ast-bg-elevated); border: 1px solid rgba(127, 150, 255, 0.3); color: var(--ast-text-primary); border-radius: 10px; }
.ast-stem-tag { background: rgba(47, 211, 255, 0.12); border-color: rgba(47, 211, 255, 0.45); color: var(--ast-cyan-soft); }
.ast-stem-tag-user { background: rgba(139, 92, 255, 0.18); border-color: rgba(139, 92, 255, 0.5); color: #d8ccff; }
.ast-stems-error { border-radius: 12px; background: rgba(255, 77, 120, 0.10); border-color: rgba(255, 77, 120, 0.45); color: #ffc2d0; text-align: left; }

/* ── below-the-tool: how it works + features ───────────────────────────── */
.ast-below { max-width: 1080px; margin: 0 auto; padding-top: 72px; text-align: left; }
.ast-section-title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; text-align: center; margin-bottom: 28px; color: var(--ast-text-primary); }
.ast-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.ast-step {
  position: relative; padding: 26px 24px 24px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(25, 29, 67, 0.6), rgba(13, 16, 38, 0.5));
  border: 1px solid var(--ast-border); box-shadow: var(--ast-shadow-card);
}
.ast-step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 12px; font-family: var(--ast-font-display); font-weight: 800; font-size: 18px; color: #03121c;
  background: linear-gradient(135deg, var(--ast-cyan), #9aa8ff); box-shadow: 0 0 22px rgba(47, 211, 255, 0.35);
}
.ast-step:nth-child(2) .ast-step-num { background: linear-gradient(135deg, #7ab0ff, #b79bff); box-shadow: 0 0 22px rgba(139, 92, 255, 0.4); }
.ast-step:nth-child(3) .ast-step-num { background: linear-gradient(135deg, #c9a2ff, #ff8ae6); box-shadow: 0 0 22px rgba(240, 64, 224, 0.4); }
.ast-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--ast-text-primary); }
.ast-step p { font-size: 15px; color: var(--ast-text-secondary); }
.ast-features { margin-top: 64px; padding: 34px 26px; border-radius: 24px; text-align: center;
  background: radial-gradient(90% 120% at 50% 0%, rgba(47, 140, 255, 0.12), transparent 70%), rgba(11, 13, 34, 0.6);
  border: 1px solid var(--ast-border); }
.ast-features .ast-section-title { margin-bottom: 22px; }
.ast-flow { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ast-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ast-chips li { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.ast-chips-in li { color: var(--ast-text-primary); background: rgba(127, 150, 255, 0.08); border: 1px solid rgba(127, 150, 255, 0.22); }
.ast-chips-out li { color: #fff; background: var(--ast-gradient-cta); box-shadow: 0 6px 20px -8px rgba(109, 75, 255, 0.9); }
.ast-flow-arrow { color: var(--ast-cyan); display: inline-flex; filter: drop-shadow(0 0 8px rgba(47, 211, 255, 0.6)); }
.ast-features-note { margin-top: 18px; font-size: 14px; color: var(--ast-text-muted); }
@media (max-width: 820px) { .ast-steps { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ast-flow-arrow { transform: rotate(90deg); } }

/* ── processing / upload progress / error ──────────────────────────────── */
.ast-processing { padding: 72px 20px; }
.ast-proc-card {
  max-width: 560px; margin: 0 auto; padding: 40px 28px 32px; border-radius: 26px; text-align: center;
  background: linear-gradient(180deg, rgba(25, 29, 67, 0.72), rgba(13, 16, 38, 0.72));
  border: 1px solid rgba(127, 150, 255, 0.18); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.85), 0 0 80px -30px rgba(47, 140, 255, 0.4);
}
.ast-spinner {
  width: 72px; height: 72px; border: 0; border-radius: 50%; margin-bottom: 24px;
  background: conic-gradient(from 0deg, transparent 0 15%, var(--ast-cyan) 45%, var(--ast-violet) 75%, var(--ast-magenta-hot));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  filter: drop-shadow(0 0 12px rgba(47, 211, 255, 0.55));
  animation: ast-spin 0.9s linear infinite;
}
.ast-progress-label { font-family: var(--ast-font-display); font-size: 18px; font-weight: 600; color: var(--ast-text-primary); }
.ast-progress-bar { max-width: 440px; height: 10px; border-radius: 999px; background: rgba(127, 150, 255, 0.12); box-shadow: 0 0 0 1px rgba(127,150,255,0.12) inset; margin-top: 18px; }
.ast-progress-fill { position: relative; border-radius: 999px; background: var(--ast-gradient-brand); box-shadow: 0 0 16px rgba(47, 211, 255, 0.55); overflow: hidden; }
.ast-progress-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent); transform: translateX(-100%); animation: ast-shimmer 1.6s ease-in-out infinite; }
@keyframes ast-shimmer { to { transform: translateX(100%); } }
.ast-progress-pct { font-family: var(--ast-font-mono); font-size: 13px; color: var(--ast-cyan-soft); margin-top: 10px; }
.ast-queue-info { font-size: 13.5px; color: var(--ast-text-secondary); }
.ast-job-error { max-width: none; margin-top: 20px; padding: 18px 18px 16px; border-radius: 16px; text-align: center;
  background: rgba(255, 77, 120, 0.08); border: 1px solid rgba(255, 77, 120, 0.45); color: #ffd3dd; }
.ast-job-error p { font-size: 15px; }
.ast-job-error[style*="none"] { display: none !important; }

/* ── results / workspace ───────────────────────────────────────────────── */
.ast-workspace { max-width: 1240px; padding: 32px 20px; }
.ast-res-title, .ast-song-title-input { font-family: var(--ast-font-display); font-weight: 800; letter-spacing: -0.025em; }
.ast-res-title { background: none; -webkit-text-fill-color: currentColor; color: var(--ast-text-primary); }
.ast-song-meta { font-size: 13.5px; color: var(--ast-text-muted); margin-bottom: 22px; letter-spacing: 0; }
.ast-res-tuning { color: var(--ast-text-secondary); }
.ast-draft-note { border-radius: 14px; font-size: 14px; background: rgba(255, 181, 71, 0.07); border-color: rgba(255, 181, 71, 0.38); }
.ast-res-section-label, .ast-tone-label, .ast-notes-summary-title, .ast-tab-title, .ast-sound-card-label, .ast-slider-label, .ast-presets-label, .ast-transport-label {
  font-family: var(--ast-font-body); font-weight: 700; letter-spacing: 0.08em; color: var(--ast-text-muted);
  background: none; -webkit-text-fill-color: currentColor;
}
.ast-dl-btn { font-size: 13px; padding: 8px 14px; min-height: 38px; }
.ast-note-chip { background: rgba(127, 150, 255, 0.08); border-color: rgba(127, 150, 255, 0.22); border-radius: 999px; }
.ast-note-chip-name { color: var(--ast-cyan-soft); }
.ast-controls { background: var(--ast-glass); border-color: var(--ast-border); border-radius: 18px; box-shadow: var(--ast-shadow-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ast-control-sep { background: rgba(127, 150, 255, 0.18); }
.ast-at-sticky { top: var(--ast-header-h); background: linear-gradient(var(--ast-bg-primary) 70%, rgba(7, 8, 22, 0)); padding-top: 10px; }
.ast-at-time, .ast-at-where { color: var(--ast-cyan-soft); }
.ast-select { background-color: var(--ast-bg-elevated); border-color: rgba(127, 150, 255, 0.3); border-radius: 10px; min-height: 40px; padding-right: 32px; color: var(--ast-text-primary); }
.ast-select:focus { border-color: var(--ast-cyan); }
input[type="range"] { accent-color: var(--ast-cyan); background: rgba(127, 150, 255, 0.2); }
input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; background: #fff; border: 3px solid var(--ast-electric); box-shadow: 0 0 10px rgba(47, 211, 255, 0.6); }
.ast-at-seek { accent-color: var(--ast-cyan); }
.ast-at-mark { border-radius: 6px; background: var(--ast-bg-elevated); }
.ast-at-mark:hover, .ast-at-mark.ast-on { background: rgba(47, 211, 255, 0.25); border-color: var(--ast-cyan); }
.ast-at-track { background: var(--ast-glass); border-radius: 12px; }
.ast-at-tbtn { border-radius: 8px; }
.ast-at-tbtn.ast-on { background: rgba(47, 211, 255, 0.18); border-color: var(--ast-cyan); }
.ast-at-tbtn[data-act="mute"].ast-on { background: rgba(255, 77, 166, 0.28); border-color: var(--ast-pink); }
.ast-at-tbtn[data-act="solo"].ast-on { background: rgba(255, 181, 71, 0.26); border-color: var(--ast-orange); }
.ast-at-toggle.ast-on { background: rgba(47, 211, 255, 0.16); border-color: var(--ast-cyan); color: #fff; }
.ast-at-vox.ast-on, .ast-ed-toggle.ast-on { background: var(--ast-gradient-cta); border-color: transparent; color: #fff; }
.ast-tab-container { background: rgba(11, 13, 34, 0.7); border-color: var(--ast-border); border-radius: 20px; }
.ast-at-viewport { background: #f6f7fc; border: 1px solid rgba(127, 150, 255, 0.3); box-shadow: 0 0 0 4px rgba(127, 150, 255, 0.06), 0 30px 70px -30px rgba(0,0,0,0.8); }
.ast-at-status { color: #3c4060; }
.ast-alphatab .at-cursor-bar { background: rgba(47, 140, 255, 0.12); }
.ast-alphatab .at-selection div { background: rgba(139, 92, 255, 0.16); }
.ast-alphatab .at-cursor-beat { background: #d81fd0; }
.ast-alphatab .at-highlight * { fill: #c414c0; stroke: #c414c0; }
.ast-ed-panel { background: var(--ast-glass); border-color: var(--ast-border-active); border-radius: 14px; }
.ast-ed-fret { background: var(--ast-bg-elevated); border-radius: 8px; }
.ast-tips { background: var(--ast-glass); border-radius: 16px; color: var(--ast-text-secondary); font-size: 14px; }
.ast-tips strong { color: var(--ast-cyan-soft); }
.ast-res-credits { color: var(--ast-text-muted); font-size: 12px; }
.ast-lyric-display { color: var(--ast-pink); }
.ast-tab-strings.ast-playing { background: rgba(47, 211, 255, 0.06); border-left-color: var(--ast-cyan); }
.ast-measure-header .active { color: var(--ast-cyan-soft); }
.ast-tab-switch-btn { font-family: var(--ast-font-body); text-transform: none; letter-spacing: 0; font-size: 13.5px; border-radius: 10px; }
.ast-tab-switch-btn.ast-active { background: var(--ast-gradient-cta); border-color: transparent; }
.ast-transport { background: var(--ast-glass-strong); }
.ast-transport-play { background: var(--ast-gradient-cta); }
.ast-transport-val, .ast-slider-val { color: var(--ast-cyan-soft); }

/* ── My Projects (rendered by app.js with inline styles) ───────────────── */
#ast-dashboard { padding-top: 40px; }
#ast-dashboard h2 { color: var(--ast-text-primary); background: none !important; -webkit-text-fill-color: currentColor !important; letter-spacing: -0.025em; }
#ast-dashboard h2 + p { color: var(--ast-text-muted) !important; font-size: 14px !important; }
.ast-project-card {
  background: linear-gradient(180deg, rgba(25, 29, 67, 0.7), rgba(13, 16, 38, 0.6)) !important;
  border: 1px solid var(--ast-border) !important; border-radius: 18px !important;
  box-shadow: var(--ast-shadow-card);
}
.ast-project-card:hover { border-color: var(--ast-border-active) !important; box-shadow: var(--ast-shadow-glow) !important; }
.ast-project-card .ast-ptitle { font-size: 16px !important; color: var(--ast-text-primary); }
.ast-project-card .ast-pdel, .ast-project-card .ast-pren { opacity: 0.85 !important; min-width: 32px; min-height: 32px; border-radius: 8px !important; }
.ast-project-card .ast-pdel:hover { color: #ff7a9a !important; background: rgba(255, 77, 120, 0.12) !important; }
.ast-project-card .ast-pren:hover { color: var(--ast-cyan-soft) !important; background: rgba(47, 211, 255, 0.10) !important; }
.ast-project-card > div:last-child { opacity: 1 !important; }
#ast-dashboard > div[style*="text-align:center"] { background: var(--ast-glass) !important; border-radius: 22px !important; }

/* ── footer ───────────────────────────────────────────────────────────── */
.ast-footer { margin-top: 96px; padding: 40px 20px 34px; text-align: left; border-top: 1px solid rgba(127, 150, 255, 0.12); background: linear-gradient(180deg, rgba(11, 13, 34, 0), rgba(11, 13, 34, 0.8)); }
.ast-footer-inner { max-width: 1200px; display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.ast-footer-brandrow { display: flex; flex-direction: column; gap: 6px; }
.ast-footer-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ast-text-primary); }
.ast-footer-logo img { width: 40px; height: 40px; }
.ast-footer-brand { font-family: var(--ast-font-display); font-size: 18px; font-weight: 700; background: var(--ast-gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ast-footer-sub { margin: 0; opacity: 1; font-size: 14px; color: var(--ast-text-muted); }
.ast-footer-links { display: flex; flex-wrap: wrap; gap: 6px 4px; justify-content: flex-end; }
.ast-footer-links a { padding: 8px 12px; border-radius: 10px; color: var(--ast-text-secondary); font-size: 14.5px; }
.ast-footer-links a:hover { color: var(--ast-text-primary); background: rgba(127, 150, 255, 0.08); }
.ast-footer p.ast-footer-copy { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(127, 150, 255, 0.10); font-size: 13px; color: var(--ast-text-muted); }
@media (max-width: 640px) {
  .ast-footer-inner { grid-template-columns: 1fr; }
  .ast-footer-links { justify-content: flex-start; margin-left: -12px; }
}

/* ── generic pages (page / single / archive / search / 404) ─────────── */
.ast-page { position: relative; z-index: 1; }
.ast-page-inner { max-width: 780px; margin: 0 auto; padding: 64px 20px 24px; }
.ast-page-head { margin-bottom: 28px; }
.ast-page-kicker { font-size: 13.5px; font-weight: 600; color: var(--ast-cyan-soft); margin-bottom: 8px; }
.ast-page-title { font-size: clamp(30px, 5vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--ast-text-primary); text-wrap: balance; }
.ast-prose, .entry-content.ast-prose { max-width: none; margin: 0; padding: 0; font-size: 17px; line-height: 1.75; color: var(--ast-text-secondary); }
.ast-prose > * + * { margin-top: 1.1em; }
.ast-prose h2, .ast-prose h3 { color: var(--ast-text-primary); margin-top: 1.8em; line-height: 1.25; }
.ast-prose h2 { font-size: 26px; } .ast-prose h3 { font-size: 21px; }
.ast-prose a { color: var(--ast-light-blue); text-decoration: underline; text-underline-offset: 3px; }
.ast-prose ul, .ast-prose ol { padding-left: 1.3em; }
.ast-prose blockquote { padding: 14px 18px; border-left: 3px solid var(--ast-cyan); background: rgba(47, 211, 255, 0.05); border-radius: 0 12px 12px 0; }
.ast-prose code { font-family: var(--ast-font-mono); font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--ast-bg-elevated); color: var(--ast-text-primary); }
.ast-prose img { border-radius: 14px; }
.ast-post-list { display: grid; gap: 16px; }
.ast-post-card { padding: 22px 22px 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(25, 29, 67, 0.6), rgba(13, 16, 38, 0.5)); border: 1px solid var(--ast-border); transition: border-color .2s, box-shadow .2s; }
.ast-post-card:hover { border-color: var(--ast-border-active); box-shadow: var(--ast-shadow-glow); }
.ast-post-card h2 { font-size: 21px; margin-bottom: 6px; }
.ast-post-card h2 a { color: var(--ast-text-primary); }
.ast-post-excerpt { color: var(--ast-text-secondary); font-size: 15.5px; }
.ast-empty { color: var(--ast-text-muted); }
.ast-pagination .nav-links { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.ast-pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--ast-border); color: var(--ast-text-secondary); }
.ast-pagination .page-numbers.current { background: var(--ast-gradient-cta); color: #fff; border-color: transparent; }
.ast-search-form { margin-top: 18px; }
.ast-search-form form { display: flex; gap: 8px; flex-wrap: wrap; }
.ast-search-form input[type="search"] { flex: 1 1 220px; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(127, 150, 255, 0.3); background: var(--ast-bg-elevated); color: var(--ast-text-primary); font: inherit; }
.ast-search-form input[type="submit"] { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--ast-gradient-cta); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ast-404-inner { text-align: center; padding-top: 80px; }
.ast-404-mark { width: 120px; height: 120px; margin: 0 auto 6px; filter: drop-shadow(0 0 30px rgba(47, 160, 255, 0.45)); }
.ast-404-code { font-family: var(--ast-font-display); font-weight: 800; font-size: 15px; letter-spacing: .3em; color: var(--ast-cyan-soft); margin-bottom: 10px; }
.ast-404-text { margin: 14px auto 28px; max-width: 480px; color: var(--ast-text-secondary); font-size: 17px; }
.ast-404-btn { text-decoration: none; }

/* ── mobile tightening (375 px safe) ───────────────────────────────────── */
@media (max-width: 640px) {
  .ast-hero { padding: 40px 14px 28px; }
  .ast-eyebrow { font-size: 12.5px; margin-bottom: 16px; }
  .ast-hero .ast-subtitle { margin-bottom: 24px; }
  .ast-tool-card { padding: 14px; border-radius: 22px; }
  .ast-mode-btn { font-size: 13.5px; padding: 8px; }
  .ast-upload-zone, .ast-stems-drop { padding: 28px 16px 24px; }
  .ast-upload-icon { width: 64px; height: 64px; border-radius: 18px; }
  .ast-upload-title { font-size: 20px; }
  .ast-upload-btn { width: 100%; justify-content: center; }
  .ast-below { padding-top: 52px; }
  .ast-features { padding: 26px 16px; margin-top: 44px; }
  .ast-processing { padding: 40px 14px; }
  .ast-proc-card { padding: 30px 18px 24px; }
  .ast-workspace { padding: 22px 14px; }
  .ast-page-inner { padding-top: 40px; }
}

/* ── motion preferences ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .ast-spinner { animation: ast-spin 2.4s linear infinite !important; } /* keep a slow, essential "busy" cue */
  .ast-progress-fill::after { display: none; }
  .ast-upload-zone.ast-drag-over, .ast-stems-drop.ast-drag-over { transform: none; }
}

/* ── v7.0.1 fixes after first preview pass ─────────────────────────────── */
.ast-logo { flex: none; }
.ast-logo img { max-width: none; height: 52px; width: auto; }
@media (max-width: 768px) { .ast-logo img { height: 44px; } }
@media (max-width: 359px) { .ast-logo img { height: 38px; } }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
.ast-footer { margin-top: 64px; }
.ast-upload-zone.ast-drag-over .ast-upload-btn { display: none; visibility: visible; height: auto; padding: 12px 26px; }
.ast-upload-zone.ast-drag-over .ast-drop-cue { margin-top: 0; font-size: 17px; }
/* error state: hide the empty progress bar while the error card is showing */
.ast-proc-card:has(> .ast-job-error:not([style*="none"])) :is(.ast-progress-bar, .ast-progress-pct, .ast-queue-info) { display: none; }
.ast-proc-card:has(> .ast-job-error:not([style*="none"])) .ast-progress-label::before {
  content: '!'; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; font: 800 28px/1 var(--ast-font-display); color: #ffd3dd;
  background: rgba(255, 77, 120, 0.14); border: 1px solid rgba(255, 77, 120, 0.5); box-shadow: 0 0 30px rgba(255, 77, 120, 0.3);
}
@media (max-width: 640px) { .ast-flow { gap: 10px; } .ast-flow-arrow { flex-basis: 100%; justify-content: center; } }
/* neutralise the old theme's 72px-square logo rule (Additional CSS, post 13) if it is ever carried over */
.ast-header .ast-logo img { width: auto !important; height: 52px !important; object-fit: initial !important; }
@media (max-width: 768px) { .ast-header .ast-logo img { height: 44px !important; } }
@media (max-width: 359px) { .ast-header .ast-logo img { height: 38px !important; } }
