* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #1e1f24;
  color: #e6e6ea;
  font-size: 14px;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

header {
  margin-bottom: 20px;
}

h1 {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 600;
}

.subtitle {
  margin: 0;
  color: #9ea0aa;
  font-size: 13px;
}

.card {
  background: #2a2c33;
  border: 1px solid #3a3c45;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.card h2 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #c8cad3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.row:last-child {
  margin-bottom: 0;
}

.btn {
  background: #3a3c45;
  color: #e6e6ea;
  border: 1px solid #4a4d57;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn:hover:not(:disabled) {
  background: #44464f;
  border-color: #5a5d68;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #3b6bd6;
  border-color: #3b6bd6;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #4a78dd;
  border-color: #4a78dd;
}

.btn-danger {
  background: #b8453a;
  border-color: #b8453a;
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #c95246;
  border-color: #c95246;
}

.path-display {
  flex: 1;
  min-width: 0;
  background: #1c1d22;
  border: 1px solid #3a3c45;
  border-radius: 6px;
  padding: 7px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #c8cad3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info {
  color: #9ea0aa;
  font-size: 12px;
  margin-top: 6px;
}

.checkbox,
.radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #d4d6df;
  cursor: pointer;
}

.checkbox code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #1c1d22;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

.num-input {
  background: #1c1d22;
  border: 1px solid #3a3c45;
  border-radius: 6px;
  padding: 6px 8px;
  color: #e6e6ea;
  width: 90px;
  font-family: inherit;
  font-size: 13px;
}

.progress-wrap {
  margin-top: 12px;
}

.progress-bar {
  height: 10px;
  background: #1c1d22;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #3a3c45;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b6bd6, #4a9fdd);
  transition: width 0.2s ease;
}

.progress-text {
  margin-top: 6px;
  font-size: 12px;
  color: #9ea0aa;
}

.log {
  background: #14151a;
  border: 1px solid #3a3c45;
  border-radius: 6px;
  padding: 10px 12px;
  height: 220px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.log-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.log-success {
  color: #6dd58c;
}

.log-error {
  color: #ed7567;
}

.log-info {
  color: #9aaad6;
}
