:root {
  --ink: #0c1730;
  --muted: #5a6b86;
  --paper: #e8eefb;
  --card: #f6f8ff;
  --line: #c5d2ee;
  --accent: #1a4cff;
  --danger: #c81e3a;
  --ok: #1a4cff;
  --shadow: 0 10px 30px rgba(12, 28, 72, 0.1);
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(26, 76, 255, 0.14), transparent 42%),
    linear-gradient(165deg, #f4f7ff 0%, #e8eefb 55%, #dce6f6 100%);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.top h1, .card h1, .card h2 { font-family: var(--serif); }
.top h1 { font-size: 1.7rem; }
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.sub, .hint { color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }
.back { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.92rem; }

.stack { display: grid; gap: 0.85rem; max-width: 32rem; margin: 0 auto; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; margin-top: 0.7rem; }
label:first-child { margin-top: 0; }
input, select {
  width: 100%;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  background: #fff;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn.ghost { background: rgba(255,255,255,0.6); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.file-btn { width: 100%; }
.shoot-actions { display: grid; gap: 0.5rem; margin-top: 0.85rem; }

.preview-wrap {
  min-height: 180px;
  border: 1px dashed rgba(26, 76, 255, 0.35);
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preview-wrap img { width: 100%; max-height: 320px; object-fit: contain; display: block; }
.preview-empty { padding: 1.4rem; text-align: center; color: var(--muted); }

.status { margin-top: 0.65rem; font-size: 0.9rem; color: var(--muted); min-height: 1.2em; }
.error { color: var(--danger); font-size: 0.9rem; margin-top: 0.6rem; }
.ok { color: var(--ok); font-size: 0.9rem; margin-top: 0.6rem; font-weight: 600; }

.recent { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.6rem; }
.recent li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.recent .amt { font-weight: 700; color: var(--danger); }

#form-ticket .btn.primary { width: 100%; margin-top: 1rem; }
.byline { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }
