:root {
  --bg: #f6f4ee;
  --card: #fffdf8;
  --ink: #13202f;
  --accent: #006d5b;
  --accent-soft: #d2eee7;
  --line: #d7d1c4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, #f4cfb3 0, transparent 35%),
    radial-gradient(circle at 80% 90%, #b7e2d9 0, transparent 35%),
    var(--bg);
}

.shell {
  max-width: 900px;
  margin: 24px auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

h1 {
  margin: 0;
}

.intro {
  margin-top: 8px;
}

.top-links {
  margin-top: 8px;
}

.top-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.top-links a:hover {
  text-decoration: underline;
}

form {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.row {
  display: grid;
  gap: 6px;
}

select,
textarea,
input[type="file"],
input[type="password"],
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px;
  font-size: 14px;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.output-wrap {
  margin-top: 18px;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}

.actions-row {
  margin-bottom: 10px;
}

.actions-row button {
  max-width: 260px;
  background: #0f3f5b;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 14px;
  min-height: 180px;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .shell {
    margin: 8px;
    padding: 14px;
  }
}
