:root {
  --bg: #07110f;
  --panel: rgba(12, 28, 24, 0.88);
  --line: rgba(255, 255, 255, 0.1);
  --teal: #1ec8a5;
  --amber: #f0b429;
  --fog: rgba(232, 244, 240, 0.9);
  --muted: rgba(180, 210, 200, 0.62);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 70% 40% at 20% -10%, rgba(30, 200, 165, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 10%, rgba(240, 180, 41, 0.1), transparent 50%),
    linear-gradient(165deg, #061512, #0a1a16 45%, #07110f);
  color: var(--fog);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.back-btn {
  position: fixed;
  z-index: 20;
  top: max(12px, var(--safe-top));
  left: max(12px, var(--safe-left));
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 20, 18, 0.75);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
}

.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: calc(72px + var(--safe-top)) 20px 12px;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--teal);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 750;
  letter-spacing: 0.02em;
}

.lead {
  margin: 12px 0 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.layout {
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 20px 64px;
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  backdrop-filter: blur(10px);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.panel-head h2 {
  margin: 0;
}

.badge {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(30, 200, 165, 0.35);
  color: var(--teal);
}

textarea,
input[type="text"],
input[type="number"],
select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--fog);
  font: inherit;
  resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
  outline: 1px solid rgba(30, 200, 165, 0.45);
}

.grid-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .grid-opts {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--fog);
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #169e82, #1ec8a5);
  color: #04221c;
  font-weight: 650;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--fog);
}

.btn-sm {
  min-height: 34px;
  font-size: 0.82rem;
}

.hint,
.meta-row {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.hint.is-error {
  color: #ff8f7a;
}

.hint.is-ok {
  color: var(--teal);
}

.shots {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.shot__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.shot__top strong {
  color: var(--amber);
}

.shot textarea {
  min-height: 64px;
  font-size: 0.85rem;
}

.shot__narr {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: pre-wrap;
  max-height: 4.8em;
  overflow: auto;
}

.shot__status {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.shot.is-done {
  border-color: rgba(30, 200, 165, 0.4);
}

.shot.is-fail {
  border-color: rgba(255, 107, 74, 0.45);
}

.shot.is-run {
  border-color: rgba(240, 180, 41, 0.5);
}

.progress {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width 0.25s ease;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a1a16;
}

.card__body {
  padding: 10px 12px 12px;
}

.card__body h3 {
  margin: 0 0 6px;
  font-size: 0.88rem;
}

.card__body p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__body a {
  display: inline-block;
  margin-top: 8px;
  color: var(--teal);
  font-size: 0.8rem;
}
