:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #677087;
  --accent: #0f766e;
  --accent-hover: #0d645e;
  --border: #d6deec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #e6f3f1, var(--bg) 45%);
}

.container {
  max-width: 860px;
  margin: 40px auto;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

h1 {
  margin: 0;
}

.subtitle {
  color: var(--muted);
  margin-top: 6px;
}

form {
  margin-top: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select,
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
}

input,
select {
  padding: 10px 12px;
  margin-bottom: 14px;
  background: #fff;
}

.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.checkbox input {
  width: auto;
  margin: 0;
}

button {
  margin-top: 16px;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border: none;
  font-weight: 600;
}

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

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

section {
  margin-top: 24px;
}

.progress-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfe;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
}

.progress-track {
  margin-top: 10px;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #dce8e7;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0f766e, #1ea39a);
  transition: width 0.25s ease;
}

.details {
  margin: 10px 0 0;
  color: var(--muted);
  min-height: 20px;
}

.files-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.files-list li {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.files-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.files-list a:hover {
  text-decoration: underline;
}

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

.zapret-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfe;
}

.zapret-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.state.running {
  color: #0f766e;
}

.state.stopped {
  color: #b45309;
}

.state.error,
.state.unknown {
  color: #b91c1c;
}

#zapret-output {
  margin-top: 10px;
  min-height: 90px;
}

pre {
  background: #111827;
  color: #d1fae5;
  min-height: 120px;
  border-radius: 10px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 760px) {
  .container {
    margin: 12px;
    padding: 14px;
  }

  .row {
    grid-template-columns: 1fr;
  }
}
