:root {
  --bg-start: #f4fbf8;
  --bg-end: #edf5ff;
  --panel: #ffffffee;
  --ink: #143124;
  --muted: #4d6a5b;
  --line: #c7e2d0;
  --brand: #007d62;
  --brand-strong: #00614c;
  --accent: #ff7b39;
  --danger: #ab1d39;
  --success: #0a7b4f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #c8f0e0 0, transparent 40%),
    radial-gradient(circle at 95% 10%, #ffe0cd 0, transparent 35%),
    linear-gradient(130deg, var(--bg-start), var(--bg-end));
  padding: 28px 16px 40px;
}

.shell {
  width: min(1050px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--panel);
  backdrop-filter: blur(6px);
  border: 1px solid #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px #1942361d;
  padding: 20px;
  animation: rise 500ms ease both;
}

.headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  letter-spacing: 0.01em;
}

h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

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

.route-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.9rem;
  color: var(--brand-strong);
  background: #f4fff9;
  white-space: nowrap;
}

form {
  display: grid;
  gap: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #23483a;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #00a37f22;
}

textarea {
  min-height: 120px;
  resize: vertical;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.88rem;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn.primary {
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 8px 18px #00614c30;
}

.btn.secondary {
  background: #fff4ee;
  color: #8b3f00;
  border: 1px solid #ffc4a0;
}

.btn.accent {
  background: #fff1e8;
  color: #7f3b00;
  border: 1px solid #f9b98f;
}

.btn.ghost {
  background: #fff;
  color: #31584a;
  border: 1px solid var(--line);
}

.btn:active {
  transform: translateY(1px);
}

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

.meta {
  display: grid;
  gap: 8px;
}

.status {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fffc;
  padding: 10px 12px;
  font-weight: 700;
  color: #23483a;
}

.status.ok {
  color: var(--success);
  border-color: #bce8cf;
  background: #effcf4;
}

.status.error {
  color: var(--danger);
  border-color: #f5c5d1;
  background: #fff2f5;
}

pre {
  margin: 0;
  border-radius: 12px;
  border: 1px solid #d8e8de;
  background: #f9fcfb;
  padding: 12px;
  overflow: auto;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #173528;
}

.hint {
  font-size: 0.86rem;
  color: var(--muted);
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.shot-card {
  border: 1px solid #d8e8de;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: grid;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.shot-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px #1942361d;
}

.shot-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #f3f8f6;
}

.shot-meta {
  padding: 10px;
  display: grid;
  gap: 4px;
}

.shot-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #193b2e;
  word-break: break-all;
}

.shot-details {
  font-size: 0.8rem;
  color: #537063;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .headline {
    flex-direction: column;
    align-items: start;
  }
}
