:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: #050608;
  color: #f5f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(70, 120, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #050608 0%, #111319 55%, #07080b 100%);
}

.shell {
  width: min(1180px, calc(100vw - 36px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 34px 0;
}

.panel {
  min-height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(20, 22, 29, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px);
}

.input-panel {
  padding: 38px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.orb {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fafc, #7aa2ff 55%, #2528ff);
  box-shadow: 0 16px 38px rgba(78, 118, 255, 0.35);
}

.eyebrow {
  margin: 0 0 6px;
  color: #8ea0bd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 44px;
  line-height: 1.05;
}

h2 {
  font-size: 30px;
}

.form {
  margin-top: 72px;
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 9px;
}

label span {
  color: #cad3e5;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #f9fbff;
  font: inherit;
  outline: none;
}

input:focus {
  border-color: #7aa2ff;
  box-shadow: 0 0 0 4px rgba(122, 162, 255, 0.14);
}

input[aria-invalid="true"] {
  border-color: #ff6b7a;
  box-shadow: 0 0 0 4px rgba(255, 107, 122, 0.14);
}

.field-error {
  min-height: 18px;
  color: #ff8b98;
  font-size: 12px;
  font-weight: 700;
}

button {
  height: 54px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  color: #07101f;
  background: #f5f7fb;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.hint {
  margin: auto 0 0;
  color: #7f8da7;
  font-size: 14px;
  line-height: 1.6;
}

.status-panel {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.status-head,
.task-meta,
.result-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ghost {
  width: 84px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7fb;
}

.summary {
  min-height: 58px;
  border-radius: 18px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #dfe6f5;
  font-weight: 800;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8ea0bd;
}

.summary.running .dot {
  background: #ffd166;
}

.summary.completed .dot {
  background: #5ee39b;
}

.summary.failed .dot {
  background: #ff6b7a;
}

.task-meta > div {
  flex: 1;
  min-height: 78px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.task-meta span {
  display: block;
  color: #8796b3;
  font-size: 12px;
  font-weight: 700;
}

.task-meta strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 13px;
  word-break: break-all;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.steps li {
  min-height: 48px;
  border-radius: 15px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.steps b {
  color: #f8fafc;
  font-size: 13px;
}

.steps em {
  color: #8ea0bd;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.result {
  flex: 1;
  min-height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #07101f;
  background: #f5f7fb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.result.disabled {
  pointer-events: none;
  opacity: 0.35;
}

.log {
  flex: 1;
  min-height: 120px;
  margin: 0;
  border-radius: 18px;
  padding: 14px;
  overflow: auto;
  color: #aebbd3;
  background: rgba(0, 0, 0, 0.24);
  font: 12px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .panel {
    min-height: auto;
  }

  .input-panel {
    padding: 26px;
  }

  h1 {
    font-size: 34px;
  }
}
