:root {
  color-scheme: dark;
  --bg: #111820;
  --panel: #20303f;
  --panel-2: #192633;
  --line: #425569;
  --text: #eef5ff;
  --muted: #9aaabd;
  --green: #36d787;
  --blue: #3f9dff;
  --error: #ff6b6b;
  --warning: #ffd166;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 420px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(73, 130, 190, 0.28), transparent 28%),
    linear-gradient(180deg, #182230 0%, #111820 100%);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  padding-bottom: 10px;
}

.titlebar {
  padding: 12px 18px;
  background: linear-gradient(180deg, #253244 0%, #172232 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand h1 {
  display: inline;
  margin: 0;
  font-size: 25px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0;
}

.brand span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 13px;
}

.rocket {
  width: 30px;
  height: 30px;
  fill: #a9bdd2;
}

.panel {
  margin: 14px 12px;
  padding: 15px 17px 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(42, 60, 78, 0.92), rgba(25, 38, 51, 0.94)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 18px rgba(0, 0, 0, 0.22);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: #f5f8fc;
  font-size: 19px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #7b8da1, transparent);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  color: #d9e6f2;
  font-size: 13px;
}

.field > span {
  color: #b5c5d7;
}

input,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 7px;
  color: #edf4fa;
  background: rgba(30, 46, 61, 0.92);
  outline: none;
}

input {
  padding: 0 11px;
}

select {
  padding: 0 10px;
  cursor: pointer;
}

input:focus,
select:focus {
  border-color: rgba(91, 178, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(63, 157, 255, 0.18);
}

.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 7px;
}

.file-row:has(#clear-reports) {
  grid-template-columns: minmax(0, 1fr) 42px 42px;
}

.icon-button,
.clear-button {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 7px;
  color: #edf4fa;
  background: rgba(30, 46, 61, 0.78);
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: #d8e4ef;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 3px 18px;
}

.step {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 70px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.12;
  position: relative;
}

.step::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 21px);
  width: calc(100% - 14px);
  height: 3px;
  background: var(--line);
  border-radius: 999px;
}

.step:nth-child(4)::after {
  display: none;
}

.step-dot {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #5b6470;
  color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.step-dot::before {
  content: "";
  width: 13px;
  height: 7px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.step.pending .step-dot::before {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.38;
  transform: none;
}

.step.running,
.step.done {
  color: #eefaf4;
}

.step.running .step-dot,
.step.done .step-dot {
  background: linear-gradient(180deg, #46d98b, #23b86a);
  color: #153927;
  box-shadow: 0 0 14px rgba(54, 215, 135, 0.45);
}

.step.running .step-dot {
  animation: pulse 900ms ease-in-out infinite;
}

.step.error .step-dot {
  background: var(--error);
  color: #391414;
}

.step.error .step-dot::before {
  width: 16px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  box-shadow: 0 0 0 0 currentColor;
}

.step.done::after,
.step.running::after {
  background: var(--green);
  box-shadow: 0 0 8px rgba(54, 215, 135, 0.28);
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 45px;
  border-radius: 7px;
  color: white;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
}

.primary-button {
  border: 1px solid rgba(180, 220, 255, 0.38);
  background: linear-gradient(180deg, #5bb2ff 0%, #267de1 100%);
  box-shadow: 0 0 12px rgba(63, 157, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.secondary-button {
  margin-top: 9px;
  border: 1px solid rgba(255, 107, 107, 0.44);
  background: rgba(86, 38, 44, 0.72);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.58;
  cursor: default;
}

.hidden {
  display: none;
}

.console {
  margin: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #1b1f22;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 10px 0 14px;
  color: #d4d7da;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.console-head::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #aab0b5;
  margin-right: 8px;
}

.console-head span {
  flex: 1;
}

.clear-button {
  width: 26px;
  min-width: 26px;
  min-height: 26px;
  border: 0;
  color: #b7bdc3;
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

#logs {
  min-height: 190px;
  max-height: 270px;
  margin: 0;
  padding: 10px 14px;
  overflow: auto;
  color: #d7d7d7;
  font: 12px/1.35 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
}

.log-success {
  color: #63dd8d;
}

.log-error {
  color: #ff8585;
}

.log-warning {
  color: var(--warning);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}
