body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f1116;
  color: #e5e7f0;
}

.app {
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 8px;
}

.card {
  background: #1c1f26;
  border-radius: 16px;
  border: 1px solid #252835;
  padding: 16px 20px;
}

.header {
  margin-bottom: 12px;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.tab-button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #343846;
  background: #22252e;
  color: #e5e7f0;
  cursor: pointer;
  font-size: 13px;
}

.tab-button.active {
  background: #5865f2;
  border-color: #5865f2;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}

.field-inline .inline-group {
  display: flex;
  gap: 6px;
}

label {
  font-size: 11px;
  color: #979ba8;
}

input {
  height: 32px;
  border-radius: 10px;
  border: 1px solid #343846;
  background: #22252e;
  color: #e5e7f0;
  padding: 4px 8px;
  font-size: 13px;
}

select {
  height: 32px;
  border-radius: 10px;
  border: 1px solid #343846;
  background: #22252e;
  color: #e5e7f0;
  padding: 4px 8px;
  font-size: 13px;
}

input:focus {
  outline: none;
  border-color: #5865f2;
}

select:focus {
  outline: none;
  border-color: #5865f2;
}

small {
  font-size: 11px;
  color: #979ba8;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.actions button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #5865f2;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.actions button:disabled {
  opacity: 0.6;
  cursor: default;
}

.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #22252e;
  overflow: hidden;
  margin-bottom: 6px;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: #5865f2;
  transition: width 0.15s linear;
}

.log-card {
  margin-top: 4px;
}

.log {
  max-height: 260px;
  overflow-y: auto;
  font-size: 12px;
}

.log div {
  margin-bottom: 2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips button {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #343846;
  background: #22252e;
  color: #e5e7f0;
  font-size: 12px;
  cursor: pointer;
}

.chips button.selected {
  background: #5865f2;
  border-color: #5865f2;
  color: white;
}

#stats {
  width: 100%;
  min-height: 320px;
  border-radius: 12px;
  border: 1px solid #343846;
  background: #16171d;
  color: #e5e7f0;
  padding: 10px;
  font-family: Consolas, monospace;
  font-size: 13px;
  resize: vertical;
}

#report-actions {
  justify-content: flex-start;
}
