.edix-compressor-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 620px;
  margin: 0 auto;
}
.edix-topbar {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
}
.edix-logo { font-size: 15px; font-weight: 700; color: #e6edf3; }
.edix-logo span { color: #e8863a; }
.edix-topbar-divider { width: 1px; height: 18px; background: #30363d; margin: 0 4px; }
.edix-topbar-tool { font-size: 13px; color: #7d8590; }
.edix-card {
  background: #0d1117;
  border: 1px solid #30363d;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 24px;
  color: #e6edf3;
}
.edix-drop-zone {
  border: 2px dashed #30363d;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 20px;
}
.edix-drop-zone:hover, .edix-drop-zone.edix-drag-over {
  border-color: #e8863a;
  background: rgba(232,134,58,0.08);
}
.edix-drop-icon { width: 44px; height: 44px; margin: 0 auto 14px; display: block; }
.edix-drop-title { font-size: 15px; font-weight: 500; margin-bottom: 6px; color: #e6edf3; }
.edix-drop-sub { font-size: 13px; color: #7d8590; }
.edix-drop-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 20px;
  background: #e8863a;
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
  text-decoration: none;
}
.edix-drop-btn:hover { opacity: 0.85; }
.edix-settings-panel {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.edix-settings-title {
  font-size: 11px;
  color: #7d8590;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 600;
}
.edix-mode-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.edix-mode-tab {
  flex: 1;
  padding: 8px 10px;
  background: #1c2333;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  color: #7d8590;
  transition: all 0.15s;
}
.edix-mode-tab.active { background: rgba(232,134,58,0.15); border-color: #e8863a; color: #e8863a; }
.edix-quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.edix-quality-opt {
  background: #1c2333;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 13px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.edix-quality-opt:hover { border-color: #e8863a; }
.edix-quality-opt.edix-selected { border-color: #e8863a; background: rgba(232,134,58,0.15); }
.edix-q-label { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #e6edf3; }
.edix-q-desc { font-size: 11px; color: #7d8590; line-height: 1.4; }
.edix-target-section { display: none; }
.edix-target-section.edix-visible { display: block; }
.edix-target-label { font-size: 13px; color: #7d8590; margin-bottom: 10px; }
.edix-target-input-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.edix-target-input-wrap {
  display: flex;
  align-items: center;
  background: #1c2333;
  border: 1px solid #30363d;
  border-radius: 7px;
  overflow: hidden;
  flex: 1;
  min-width: 120px;
  transition: border-color 0.15s;
}
.edix-target-input-wrap:focus-within { border-color: #e8863a; }
.edix-target-input { background: none; border: none; color: #e6edf3; font-size: 15px; font-weight: 600; padding: 10px 12px; width: 100%; outline: none; box-shadow: none; }
.edix-target-unit { padding: 10px 12px 10px 0; font-size: 13px; color: #7d8590; font-weight: 500; }
.edix-quick-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.edix-quick-btn {
  padding: 5px 11px;
  background: #1c2333;
  border: 1px solid #30363d;
  border-radius: 5px;
  font-size: 12px;
  color: #7d8590;
  cursor: pointer;
  transition: all 0.12s;
}
.edix-quick-btn:hover { border-color: #e8863a; color: #e8863a; }
.edix-slider-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.edix-slider-side { font-size: 12px; color: #7d8590; white-space: nowrap; }
.edix-slider-row input[type=range] { flex: 1; accent-color: #e8863a; cursor: pointer; }
.edix-slider-val { font-size: 13px; font-weight: 600; color: #e8863a; min-width: 52px; text-align: right; }
.edix-file-panel {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 12px;
}
.edix-file-info { flex: 1; min-width: 0; }
.edix-file-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e6edf3; }
.edix-file-size { font-size: 12px; color: #7d8590; margin-top: 3px; }
.edix-file-remove { background: none; border: none; color: #7d8590; cursor: pointer; font-size: 18px; padding: 4px 6px; border-radius: 4px; line-height: 1; }
.edix-file-remove:hover { color: #e6edf3; background: #1c2333; }
.edix-compress-btn {
  width: 100%;
  padding: 13px;
  background: #e8863a;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  display: none;
}
.edix-compress-btn:hover { opacity: 0.88; }
.edix-compress-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.edix-result-panel {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 20px;
  display: none;
  margin-bottom: 18px;
}
.edix-result-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.edix-stat-card { background: #1c2333; border-radius: 8px; padding: 13px; text-align: center; }
.edix-stat-val { font-size: 18px; font-weight: 700; color: #e6edf3; }
.edix-stat-lbl { font-size: 11px; color: #7d8590; margin-top: 4px; }
.edix-stat-card.edix-highlight .edix-stat-val { color: #3fb950; }
.edix-progress-bar-wrap { background: #1c2333; border-radius: 4px; height: 6px; overflow: hidden; margin-bottom: 10px; }
.edix-progress-bar { height: 100%; background: #e8863a; border-radius: 4px; transition: width 0.3s; width: 0%; }
.edix-progress-status { font-size: 13px; color: #7d8590; margin-bottom: 8px; }
.edix-download-btn { width: 100%; padding: 12px; background: #3fb950; color: #fff !important; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.edix-download-btn:hover { opacity: 0.88; }
.edix-warning-note { font-size: 12px; color: #e3b341; background: rgba(227,179,65,0.1); border: 1px solid rgba(227,179,65,0.25); border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; display: none; }
.edix-privacy-note { font-size: 12px; color: #7d8590; text-align: center; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.edix-spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: edix-spin 0.7s linear infinite; vertical-align: middle; margin-right: 7px; }
@keyframes edix-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
  .edix-result-stats { grid-template-columns: 1fr 1fr; }
  .edix-quality-grid { grid-template-columns: 1fr; }
}
