:root {
  --bg: #eaf0f4;
  --panel: #f2f5f8;
  --card: #f4f6f9;
  --text: #0f2745;
  --muted: #6b7a8f;
  --border: #d7e1ea;
  --hero-a: #11496a;
  --hero-b: #106f64;
  --scan-a: #0f837b;
  --scan-b: #15746d;
  --clean-a: #ef2a2a;
  --clean-b: #d31822;
  --single-a: #dc8600;
  --single-b: #c56e00;
  --btn-gray: #8f99a8;
  --btn-pink: #da8f94;
  --progress-a: #137f77;
  --progress-b: #2f72f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", sans-serif;
}

.wrap {
  width: min(1320px, calc(100vw - 48px));
  margin: 14px auto 28px;
}

.hero {
  border-radius: 22px;
  background: linear-gradient(130deg, var(--hero-a), var(--hero-b));
  color: #f3f8fd;
  padding: 26px 30px 24px;
  box-shadow: 0 10px 24px rgba(16, 68, 101, 0.22);
}

.hero small {
  display: block;
  font-size: 14px;
  color: #c9deec;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: 50px;
  line-height: 1.12;
  font-weight: 900;
}

.hero p {
  margin: 12px 0 0;
  font-size: 18px;
  color: #d8e8f7;
  font-weight: 600;
}

.panel {
  margin-top: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 8px;
  transform: scale(0.36);
  transform-origin: left top;
  height: 14px;
}

input {
  width: 100%;
  height: 56px;
  border: 2px solid #d3dde8;
  border-radius: 15px;
  background: #f6f9fc;
  color: #1c2e4a;
  font-size: 17px;
  padding: 0 16px;
  outline: none;
}

input:focus {
  border-color: #7da2d2;
  box-shadow: 0 0 0 3px rgba(77, 130, 201, 0.14);
}

.actions3 {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.btn {
  height: 56px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  transform: scale(0.36);
  transform-origin: center;
  margin: -18px 0;
  cursor: pointer;
}

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

.green {
  background: linear-gradient(135deg, var(--scan-a), var(--scan-b));
}

.red {
  background: linear-gradient(135deg, var(--clean-a), var(--clean-b));
}

.orange {
  background: linear-gradient(135deg, var(--single-a), var(--single-b));
}

.gray {
  background: var(--btn-gray);
}

.pink {
  background: var(--btn-pink);
}

.tip {
  margin: 12px 2px 12px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 700;
}

.task-box {
  background: #eaf0f6;
  border: 1px solid #d5e0ec;
  border-radius: 16px;
  padding: 12px;
}

.task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 34px;
  font-weight: 900;
  transform: scale(0.42);
  transform-origin: left top;
  height: 16px;
}

.progress-track {
  margin-top: 10px;
  height: 16px;
  border-radius: 999px;
  background: #dce8f5;
  border: 1px solid #c2d4e7;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--progress-a), var(--progress-b));
  transition: width .22s ease;
}

.ctrl-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.task-id {
  margin-top: 8px;
  color: #5f728b;
  font-size: 30px;
  font-weight: 800;
  transform: scale(0.4);
  transform-origin: left top;
  height: 14px;
}

.cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  min-height: 90px;
}

.card span {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: #60748f;
  line-height: 1;
  transform: scale(0.35);
  transform-origin: left top;
  height: 13px;
}

.card b {
  display: block;
  margin-top: 8px;
  font-size: 56px;
  line-height: 1.05;
  color: #102a4d;
  transform: scale(0.38);
  transform-origin: left top;
  height: 22px;
}

.logs {
  margin-top: 16px;
}

.logs .log-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.logs .log-title strong {
  font-size: 16px;
}

.logs pre {
  margin: 0;
  height: 240px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #cfdae7;
  background: #0c1c36;
  color: #97f0c1;
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .wrap {
    width: calc(100vw - 24px);
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .grid2,
  .actions3,
  .ctrl-row,
  .cards {
    grid-template-columns: 1fr;
  }
}
