/* ==========================================================================
   LAS CONVERT — Component Styles
   ========================================================================== */

/* 1. Target Distribution Banner */
.target-distribution-banner {
  background: linear-gradient(135deg, rgba(17, 20, 28, 0.9), rgba(24, 29, 40, 0.7));
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.target-distribution-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-emerald));
}

.dist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dist-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.dist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dist-card {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.dist-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.dist-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.dist-icon.windows { background: rgba(0, 240, 255, 0.1); color: var(--accent-cyan); }
.dist-icon.android { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); }
.dist-icon.iso { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }

.dist-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.dist-info p {
  color: var(--text-secondary);
  font-size: 11px;
  margin-bottom: 6px;
}

.dist-info code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-surface-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

/* 2. Dashboard Launchpad Tiles */
.dashboard-launchpad {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.launch-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.launch-tile:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}

.tile-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.tile-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.tile-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* 3. Dashboard Stats Grid */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-cyan);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 4. Dropzone Component */
.file-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(17, 20, 28, 0.4);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.04);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.hidden-file-input {
  display: none;
}

.dropzone-icon-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.file-dropzone h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.file-dropzone .browse-link {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.file-dropzone p {
  color: var(--text-muted);
  font-size: 12px;
  max-width: 500px;
  margin: 0 auto 14px;
}

.dropzone-badge-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dropzone-compact {
  padding: 20px 14px;
}

/* 5. Sub-Tabs Bar */
.sub-tabs {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 4px;
}

.sub-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.sub-tab-btn:hover {
  color: var(--text-primary);
}

.sub-tab-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--accent-cyan);
  box-shadow: var(--shadow-sm);
}

/* 6. Conversion Config Card */
.conversion-config-card, .va-controls-card, .comp-interactive-card, .dl-streams-card, .inspector-results-card, .editor-stage-card, .diagnostics-summary-card, .settings-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 18px;
}

.config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.file-meta-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.file-type-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-cyan);
}

.file-meta-summary h4 {
  font-size: 15px;
  font-weight: 700;
}

.file-detail {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.config-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* 7. Progress Panel */
.conversion-progress-panel {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 18px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.prog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.prog-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prog-percentage {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-cyan);
}

.progress-bar-container {
  height: 10px;
  background: var(--bg-base);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 6px;
  transition: width 0.1s linear;
}

.prog-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.prog-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* 8. Audio Waveform Canvas */
.audio-waveform-container {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 16px;
}

.waveform-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#va-waveform-canvas {
  width: 100%;
  height: 80px;
  display: block;
}

/* 9. Compressor Component */
.comp-stats-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

.comp-size-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comp-size-metric .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.comp-size-metric .value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.comp-arrow {
  color: var(--text-muted);
  font-size: 18px;
}

.slider-control-box {
  padding: 0 10px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.custom-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-base);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-orange);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  border: 2px solid #fff;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 10. Tables (Batch, Download, History) */
.batch-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 12px;
}

.batch-bulk-actions, .concurrency-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.batch-table, .stream-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.batch-table th, .stream-table th {
  background: var(--bg-surface-elevated);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.batch-table td, .stream-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.batch-table tr:hover, .stream-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 36px;
  margin-bottom: 10px;
}

/* 11. Download Center URL Box */
.url-input-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 18px;
}

.url-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.url-input-group .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
}

.url-box {
  padding-left: 40px;
  flex: 1;
}

.stream-media-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.stream-thumb {
  width: 60px;
  height: 45px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-cyan);
}

/* 12. Inspector Grid */
.inspector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.inspect-panel {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.inspect-panel h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.meta-row .k { color: var(--text-muted); }
.meta-row .v { font-family: var(--font-mono); font-weight: 600; color: var(--text-primary); }

.raw-meta-box {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.raw-meta-box pre {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(0,0,0,0.5);
  padding: 12px;
  border-radius: var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  margin-top: 8px;
}

/* 13. Subtitles & Code Editor */
.subtitles-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 20px;
}

.sub-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.code-editor {
  width: 100%;
  height: 380px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
  background: var(--bg-base);
}

.input-with-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 14. Android Mockup Frame */
.android-phone-mockup-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

.phone-frame {
  width: 300px;
  height: 540px;
  background: #000;
  border: 4px solid #2a2e3d;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  position: relative;
  margin: 0 auto;
}

.phone-notch {
  width: 100px;
  height: 14px;
  background: #2a2e3d;
  border-radius: 10px;
  margin: 0 auto 6px;
}

.phone-screen {
  background: var(--bg-base);
  border-radius: 26px;
  height: calc(100% - 20px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-top-bar {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-family: var(--font-display);
}

.phone-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.phone-action-card {
  background: var(--bg-surface-elevated);
  border: 1px dashed var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.phone-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.phone-link-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.apk-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.permissions-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* 15. ISO Boot Screen Simulator */
.iso-screen-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.boot-screen-box {
  background: #020617;
  border: 2px solid var(--accent-purple);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.2);
  display: flex;
  flex-direction: column;
}

.boot-screen-header {
  background: #1e1b4b;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #c084fc;
}

.boot-menu-entries {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.boot-entry {
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.boot-entry:hover, .boot-entry.active {
  background: #4338ca;
  color: #fff;
  font-weight: 700;
}

.boot-screen-footer {
  background: #0f172a;
  padding: 8px 14px;
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.iso-tools-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.iso-tools-card p {
  color: var(--text-secondary);
  font-size: 12px;
  margin: 6px 0 16px;
}

/* 16. Telemetry & Terminal Stream */
.telemetry-gauges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.gauge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gauge-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.gauge-circle-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--bg-surface-elevated);
  border-top-color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.gauge-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.gauge-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.terminal-log-card {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.terminal-header {
  background: var(--bg-surface-elevated);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.terminal-body {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-line.info { color: var(--text-secondary); }
.log-line.success { color: var(--accent-emerald); }
.log-line.error { color: var(--accent-danger); }
.log-line.warn { color: var(--accent-orange); }

/* 17. Diagnostics Summary */
.diagnostics-summary-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diag-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
}

.diag-item.ok i { color: var(--accent-emerald); font-size: 18px; margin-top: 2px; }
.diag-item strong { display: block; font-size: 13px; }
.diag-item p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* 18. Settings Toggles */
.setting-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.setting-toggle-row strong {
  display: block;
  font-size: 13px;
}

.setting-toggle-row p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent-cyan);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background-color: #000;
}

/* 19. Modals & Toasts */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.modal-header {
  background: var(--bg-surface-elevated);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  padding: 22px;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.2s ease-out;
}

.toast-item.success { border-left-color: var(--accent-emerald); }
.toast-item.error { border-left-color: var(--accent-danger); }
.toast-item.warning { border-left-color: var(--accent-orange); }

/* 20. Speech / Audio to Text Workbench */
.speech-workbench {
  width: 100%;
}

.speech-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
}

@media (max-width: 1024px) {
  .speech-grid {
    grid-template-columns: 1fr;
  }
}

.speech-input-panel, .speech-output-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.speech-selected-card, .speech-player-card, .speech-output-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.speech-output-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.output-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.output-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.word-stats-badge {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.speech-words-interactive-box {
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  line-height: 1.4;
}

.speech-word-chip {
  display: inline-flex;
  flex-direction: column;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  min-width: 60px;
  position: relative;
}

.speech-word-chip .chip-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.speech-word-chip .chip-spoken {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.speech-word-chip .chip-trans {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-top: 2px;
}

.speech-word-chip:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.speech-word-chip:hover .chip-meta {
  color: var(--accent-cyan);
}

.speech-word-chip.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(139, 92, 246, 0.28));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.55), 0 0 2px #fff;
  transform: scale(1.06);
  z-index: 2;
}

.speech-word-chip.active .chip-spoken {
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.8);
}

.speech-word-chip.active .chip-trans {
  color: #5eead4;
  font-weight: 600;
}

.speech-dual-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .speech-dual-editor-grid {
    grid-template-columns: 1fr;
  }
}

.speech-editable-area label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.speech-speed-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-speed-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-speed-chip:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-speed-chip.active {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  font-weight: 700;
}

/* 21. iPhone Frame & Dynamic Island */
.iphone-frame {
  border-color: #2a2a30;
  background: #000;
  box-shadow: 0 25px 60px rgba(139, 92, 246, 0.2), 0 0 0 4px #1a1a20;
}

.iphone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 6px rgba(0,0,0,0.8);
}

