  :root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1c2128;
    --bg-elevated: #21262d;
    --border-color: #30363d;
    --border-hover: #484f58;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent: #58a6ff;
    --accent-hover: #79b8ff;
    --accent-glow: rgba(88,166,255,0.15);
    --accent-soft: rgba(88,166,255,0.08);
    --success: #3fb950;
    --warning: #d29922;
    --danger: #f85149;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.45);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.55);
    --shadow-glow: 0 0 24px rgba(88,166,255,0.12);
    --transition-fast: 0.12s ease;
    --transition-base: 0.22s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 0.35s cubic-bezier(0.4,0,0.2,1);
    --focus-ring: 0 0 0 3px rgba(88,166,255,0.35);
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  .waveform-studio {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
.waveform-studio * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
  .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
  .skip-link {
    position: absolute;
    top: -40px; left: 0;
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 0 0 var(--radius-sm) 0;
    text-decoration: none;
    transition: top var(--transition-fast);
  }
  .skip-link:focus { top: 0; }
  :focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
  }
  button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }
  .awg-container {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .awg-header {
  position: relative;
  text-align: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}

.awg-header-center h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.awg-header-center .awg-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(88,166,255,0.15);
  border-radius: 999px;
  vertical-align: middle;
}

.awg-header-center p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

.awg-header-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0.45;
  transition: all var(--transition-fast);
  padding: 0;
}

.awg-header-btn:hover {
  opacity: 0.85;
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.awg-header-btn svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 640px) {
  .awg-header { padding: 14px 0; }
  .awg-header-center h1 { font-size: 1.25rem; gap: 8px; }
  .awg-header-center p { font-size: 0.875rem; }
  .awg-header-btn {
    width: 30px;
    height: 30px;
    right: 0;
    top: 10px;
    transform: none;
    opacity: 0.35;
  }
}
  .awg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
    position: relative;
  }
  .awg-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
  }
  .awg-btn:active { transform: translateY(0); }
  .awg-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
  }
  .awg-btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  .awg-btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 18px rgba(88,166,255,0.25);
  }
  .awg-btn-danger {
    background: rgba(248,81,73,0.1);
    border-color: rgba(248,81,73,0.3);
    color: var(--danger);
  }
  .awg-btn-danger:hover {
    background: rgba(248,81,73,0.18);
    border-color: var(--danger);
  }
  .awg-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-secondary);
  }
  .awg-btn-ghost:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
  }
  .awg-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
  .awg-btn-sm { padding: 6px 12px; font-size: 0.75rem; }
  .awg-btn-lg { padding: 10px 20px; font-size: 0.9rem; }
  .awg-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 56px 28px;
    text-align: center;
    background: var(--bg-secondary);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .awg-upload-zone:hover, .awg-upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
  }
  .awg-upload-zone.dragover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(88,166,255,0.04);
    pointer-events: none;
  }
  .awg-upload-zone.hidden { display: none; }
  .awg-upload-icon {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-base);
  }
  .awg-upload-zone:hover .awg-upload-icon { transform: scale(1.05); }
  .awg-upload-icon svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
  .awg-upload-zone h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
  .awg-upload-zone p { font-size: 0.85rem; color: var(--text-secondary); }
  .awg-upload-zone .awg-formats {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-family: 'SF Mono', Monaco, monospace;
    letter-spacing: 0.02em;
  }
  .awg-upload-zone .awg-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
  }
  .awg-file-input { display: none; }
  .awg-audio-bar {
    display: none;
    align-items: center;
    gap: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 16px 22px;
    flex-wrap: wrap;
  }
  .awg-audio-bar.active { display: flex; }
  .awg-audio-info { flex: 1; min-width: 200px; }
  .awg-audio-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
  }
  .awg-audio-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }
  .awg-audio-meta span { display: flex; align-items: center; gap: 4px; }
  .awg-audio-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .awg-progress {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
  }
  .awg-progress.active { display: flex; }
  .awg-progress-bar {
    flex: 1;
    height: 5px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
  }
  .awg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #a371f7);
    border-radius: 3px;
    width: 0%;
    transition: width 0.15s linear;
  }
  .awg-progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
    white-space: nowrap;
    min-width: 42px;
    text-align: right;
    font-family: 'SF Mono', Monaco, monospace;
  }
  .awg-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
  }
  .awg-main > .awg-canvas-area { order: -1; }
  @media (min-width: 960px) {
    .awg-main {
      display: grid;
      grid-template-columns: 300px 1fr;
      gap: 16px;
    }
    .awg-main > .awg-canvas-area { order: 0; }
  }
  .awg-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
  }
  .awg-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
  }
  .awg-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast);
  }
  .awg-panel-header:hover { background: rgba(255,255,255,0.02); }
  .awg-panel-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .awg-panel-title svg { width: 15px; height: 15px; stroke: var(--text-secondary); fill: none; stroke-width: 2; }
  .awg-panel-chevron {
    width: 18px; height: 18px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2.5;
    transition: transform var(--transition-base);
    flex-shrink: 0;
  }
  .awg-panel.collapsed .awg-panel-chevron { transform: rotate(-90deg); }
  .awg-panel.collapsed .awg-panel-header { padding-bottom: 14px; }
  .awg-panel-body {
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .awg-panel.collapsed .awg-panel-body { display: none; }
  .awg-field { margin-bottom: 14px; }
  .awg-field:last-child { margin-bottom: 0; }
  .awg-field label, .awg-field .awg-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
  }
  .awg-field input[type="text"],
  .awg-field input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  }
  .awg-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
  }
  .awg-field input[type="color"] {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    cursor: pointer;
    padding: 3px;
  }
  .awg-field input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: var(--bg-elevated);
    border-radius: 3px;
    outline: none;
    margin: 10px 0 6px;
  }
  .awg-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px rgba(88,166,255,0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  }
  .awg-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.25); }
  .awg-field input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px rgba(88,166,255,0.35);
  }
  .awg-range-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .awg-range-value {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    font-family: 'SF Mono', Monaco, monospace;
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    min-width: 36px;
    text-align: center;
  }
  .awg-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .awg-field-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .awg-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 0;
  }
  .awg-toggle-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
  }
  .awg-toggle-switch {
    width: 42px; height: 24px;
    background: var(--bg-elevated);
    border-radius: 12px;
    position: relative;
    transition: background var(--transition-fast);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
  }
  .awg-toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    top: 2px; left: 2px;
    transition: all var(--transition-fast);
  }
  .awg-toggle input:checked + .awg-toggle-switch {
    background: var(--accent);
    border-color: var(--accent);
  }
  .awg-toggle input:checked + .awg-toggle-switch::after {
    left: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
  .awg-toggle input:focus-visible + .awg-toggle-switch { box-shadow: var(--focus-ring); }
  .awg-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
  .awg-select {
    width: 100%;
    padding: 8px 32px 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color var(--transition-fast);
  }
  .awg-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
  }

  .awg-style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  @media (min-width: 400px) and (max-width: 959px) {
    .awg-style-grid { grid-template-columns: repeat(4, 1fr); }
  }
  .awg-style-card {
    padding: 10px 6px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
    position: relative;
  }
  .awg-style-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
    transform: translateY(-1px);
  }
  .awg-style-card.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent), 0 0 16px rgba(88,166,255,0.1);
  }
  .awg-style-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
  .awg-style-preview {
    width: 100%;
    height: 32px;
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    overflow: hidden;
    position: relative;
  }
  .awg-style-card span {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
  }
  .awg-style-card.active span { color: var(--accent); }
  .awg-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .awg-preset {
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
  }
  .awg-preset:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
  }
  .awg-preset.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 12px rgba(88,166,255,0.12);
  }
  .awg-preset:focus-visible { outline: none; box-shadow: var(--focus-ring); }
  .awg-canvas-area {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 420px;
    flex-shrink: 0;
  }
  @media (max-width: 640px) {
    .awg-canvas-area { height: 340px; padding: 14px; }
  }
  .awg-canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .awg-canvas-dims {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, monospace;
    font-weight: 600;
  }
  .awg-canvas-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: auto;
    padding: 16px;
    position: relative;
    min-height: 0;
  }
  .awg-canvas-wrapper.empty::before {
    content: 'Upload an audio file to generate waveform';
    position: absolute;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 0 24px;
    font-weight: 500;
  }
  .awg-canvas-wrapper.empty canvas { display: none; }
  .awg-canvas-wrapper canvas {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
    display: block;
  }
  .awg-canvas-wrapper canvas:hover { transform: scale(1.008); }
  .awg-canvas-wrapper:focus-within canvas { box-shadow: var(--focus-ring); }
  .awg-tooltip {
    position: fixed;
    z-index: 9999;
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    max-width: 260px;
    line-height: 1.4;
    white-space: normal;
  }
  .awg-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .awg-tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent var(--border-color) transparent;
  }
  .awg-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
  }
  .awg-toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 0.88rem;
    font-weight: 500;
    animation: toastIn 0.35s cubic-bezier(0.175,0.885,0.32,1.275), toastOut 0.3s ease 3.2s forwards;
    pointer-events: auto;
    max-width: 360px;
    line-height: 1.4;
  }
  .awg-toast.success { border-left: 3px solid var(--success); }
  .awg-toast.error { border-left: 3px solid var(--danger); }
  .awg-toast.info { border-left: 3px solid var(--accent); }
  .awg-toast.warning { border-left: 3px solid var(--warning); }
  @keyframes toastIn {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
  }
  @keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
  }
  .awg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .awg-modal-overlay.active { display: flex; }
  .awg-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease;
  }
  @keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .awg-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
  }
  .awg-modal-header h3 { font-size: 1.05rem; font-weight: 700; }
  .awg-modal-close {
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .awg-modal-close:hover { color: var(--text-primary); background: var(--bg-elevated); }
  .awg-modal-close svg { width: 20px; height: 20px; }
  .awg-modal-body { padding: 18px 22px; }
  .awg-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
  }
  .awg-kb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
  }
  .awg-kb-table th, .awg-kb-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
  }
  .awg-kb-table th {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .awg-kb-table td:first-child {
    font-family: 'SF Mono', Monaco, monospace;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
  }
  .awg-kb-table tr:last-child th, .awg-kb-table tr:last-child td { border-bottom: none; }
  .awg-footer {
    text-align: center;
    padding: 18px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.6;
  }
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: var(--bg-primary); }
  ::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; border: 2px solid var(--bg-primary); }
  ::-webkit-scrollbar-thumb:hover { background: var(--border-color); }
  @media (max-width: 640px) {
    .awg-container { padding: 12px; gap: 12px; }
    .awg-upload-zone { padding: 40px 20px; }
    .awg-canvas-area { padding: 14px; }
    .awg-panel-body { padding: 0 14px 14px; }
    .awg-header { padding: 8px 0; }
    .awg-brand-text h1 { font-size: 1.1rem; }
    .awg-style-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 380px) {
    .awg-field-row, .awg-field-row-3 { grid-template-columns: 1fr; }
    .awg-presets { grid-template-columns: repeat(2, 1fr); }
  }
  .breadcrumb {
  background: #0d1117 !important;
  border-bottom: 1px solid #30363d !important;
  margin: 0 !important;
}
.breadcrumb ol {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 14px 16px !important;
}
.breadcrumb li { color: #6e7681 !important; }
.breadcrumb li a { color: #8b949e !important; }
.breadcrumb li a:hover { color: #58a6ff !important; }
.breadcrumb li.active, .breadcrumb li.active span { color: #e6edf3 !important; }
.breadcrumb li + li::before { color: #30363d !important; }
.ad-container.ad-top {
  background: #0d1117 !important;
  border-bottom: 1px solid #30363d !important;
}
  /* ---- SEO Base ---- */
  .ws-seo {
    padding: 8px 0 32px;
    max-width: 100%;
  }
  .ws-seo-section {
    margin-bottom: 56px;
  }
  .ws-seo-section:last-child { margin-bottom: 0; }
  .ws-seo-h2 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--text-primary);
  }
  .ws-seo-lead {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 28px;
  }
  .ws-seo-rule {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 48px 0;
  }

  /* ---- Hero Card ---- */
  .ws-hero {
    background: linear-gradient(145deg, var(--bg-secondary), rgba(88,166,255,0.04));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .ws-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(88,166,255,0.08), transparent 70%);
    pointer-events: none;
  }
  .ws-hero-h2 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--accent), #a371f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .ws-hero-p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
  }

  /* ---- Steps ---- */
  .ws-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  @media (min-width: 640px) { .ws-steps { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 960px) { .ws-steps { grid-template-columns: repeat(4, 1fr); } }
  .ws-step {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    transition: all var(--transition-base);
    position: relative;
  }
  .ws-step:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(88,166,255,0.06);
  }
  .ws-step-num {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a371f7);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 16px rgba(88,166,255,0.2);
  }
  .ws-step h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
  }
  .ws-step p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.6;
  }

  /* ---- Features ---- */
  .ws-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  @media (min-width: 640px) { .ws-features { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 960px) { .ws-features { grid-template-columns: repeat(3, 1fr); } }
  .ws-feature {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-fast);
  }
  .ws-feature:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
  }
  .ws-feature-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    border: 1px solid rgba(88,166,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }
  .ws-feature-icon svg {
    width: 20px; height: 20px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
  }
  .ws-feature h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
  }
  .ws-feature p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
  }

  /* ---- Comparison Table ---- */
  .ws-table-wrap {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    overflow-x: auto;
  }
  .ws-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
  }
  .ws-table th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
  }
  .ws-table td {
    padding: 13px 18px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
  }
  .ws-table tr:last-child td { border-bottom: none; }
  .ws-table tr:hover td { background: rgba(88,166,255,0.03); }
  .ws-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .ws-tag-ok {
    background: rgba(63,185,80,0.12);
    color: var(--success);
    border: 1px solid rgba(63,185,80,0.2);
  }
  .ws-tag-info {
    background: rgba(88,166,255,0.12);
    color: var(--accent);
    border: 1px solid rgba(88,166,255,0.2);
  }

  /* ---- Use Cases ---- */
  .ws-cases {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  @media (min-width: 640px) { .ws-cases { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 960px) { .ws-cases { grid-template-columns: repeat(4, 1fr); } }
  .ws-case {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px 20px;
    text-align: center;
    transition: all var(--transition-fast);
  }
  .ws-case:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  .ws-case svg {
    width: 34px; height: 34px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 14px;
  }
  .ws-case h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .ws-case p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
  }

  /* ---- FAQ ---- */
  .ws-faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
  }
  .ws-faq-item:hover { border-color: var(--border-hover); }
  .ws-faq-item.open { border-color: var(--accent); }
  .ws-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 22px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    line-height: 1.45;
  }
  .ws-faq-q svg {
    width: 18px; height: 18px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2.5;
    flex-shrink: 0;
    margin-left: 14px;
    transition: transform var(--transition-base);
  }
  .ws-faq-item.open .ws-faq-q svg { transform: rotate(180deg); stroke: var(--accent); }
  .ws-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
    padding: 0 22px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.7;
  }
  .ws-faq-item.open .ws-faq-a {
    max-height: 400px;
    padding: 0 22px 20px;
  }

  /* ---- CTA ---- */
  .ws-cta {
    background: linear-gradient(145deg, rgba(88,166,255,0.06), rgba(163,113,247,0.06));
    border: 1px solid rgba(88,166,255,0.12);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    position: relative;
  }
  .ws-cta::before {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(163,113,247,0.06), transparent 70%);
    pointer-events: none;
  }
  .ws-cta h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
  }
  .ws-cta p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 22px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
  }
  .ws-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    z-index: 1;
  }
  .ws-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(88,166,255,0.2);
  }

  /* ---- Stats Bar ---- */
  .ws-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  @media (min-width: 640px) { .ws-stats { grid-template-columns: repeat(4, 1fr); } }
  .ws-stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px 16px;
    text-align: center;
  }
  .ws-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #a371f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
  }
  .ws-stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
  }

  @media (max-width: 640px) {
    .ws-hero { padding: 28px 20px; }
    .ws-hero-h2 { font-size: 1.3rem; }
    .ws-seo-h2 { font-size: 1.15rem; }
    .ws-step { padding: 20px 16px; }
    .ws-faq-q { padding: 14px 16px; font-size: 0.86rem; }
    .ws-faq-item.open .ws-faq-a { padding: 0 16px 16px; }
    .ws-cta { padding: 28px 20px; }
    .ws-stat-num { font-size: 1.3rem; }
  }