:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #1c2430;
  --muted: #647083;
  --line: #dce2ea;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --good: #0f766e;
  --bad: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.query-panel,
.result-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.brand {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 750;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label span,
.label {
  color: var(--muted);
  font-size: 13px;
}

input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

.progress-value {
  min-width: 64px;
  text-align: right;
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 800;
}

.progress-track {
  height: 10px;
  margin: 18px 0 20px;
  overflow: hidden;
  background: #e8edf4;
  border-radius: 999px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 180ms ease;
}

.report {
  min-height: 420px;
  max-height: calc(100vh - 190px);
  overflow: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.report.empty {
  color: var(--muted);
}

.report.failed {
  color: var(--bad);
}

@media (max-width: 860px) {
  .workspace,
  .split {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100vw - 24px, 680px);
    padding: 16px 0;
  }

  .report {
    max-height: none;
  }
}
