:root {
  --paper: #eef1f4;
  --ink: #121417;
  --mist: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --copper: #ff6a1a;
  --olive: #1f8a4c;
  --night: #1c1c1e;
  --danger: #9b2c2c;
  --shadow: 0 10px 28px rgba(18, 20, 23, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.45 var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 280px at 100% -40px, rgba(255, 106, 26, 0.14), transparent 60%),
    var(--paper);
}

a { color: inherit; text-decoration: none; }

.top {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px auto 0;
  width: min(1100px, calc(100% - 24px));
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--night);
  color: #fff;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
}

.brand-logo {
  display: block;
  height: 32px;
  width: 32px;
  object-fit: cover;
  border-radius: 8px;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.top nav a {
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
}

.top nav a.active,
.top nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.top nav a.active { background: var(--copper); }

.who {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.quiet {
  color: #fff;
  font-weight: 650;
  font-size: 14px;
}

main {
  width: min(1100px, calc(100% - 24px));
  margin: 18px auto 40px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.lead, .mist, .hint { color: var(--mist); }
.lead { margin: 8px 0 0; }

.flash {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 12px 14px;
  border-radius: 14px;
  margin: 0 0 14px;
}

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 12px 14px;
  border-radius: 14px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

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

.grid .wide { grid-column: 1 / -1; }

.stack { display: grid; gap: 8px; margin-top: 8px; min-width: 220px; }
details.inline { display: inline-block; vertical-align: top; }
details.inline summary.tiny { list-style: none; display: inline-block; }
details.inline summary.tiny::-webkit-details-marker { display: none; }

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}

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

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

button, .tiny {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  padding: 12px 18px;
  cursor: pointer;
}

button.tiny, .tiny {
  padding: 7px 12px;
  font-size: 13px;
}

button.danger, .tiny.danger {
  background: var(--danger);
}

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

.check input { width: auto; }

.list {
  width: 100%;
  border-collapse: collapse;
}

.list th, .list td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}

.list th { color: var(--mist); font-size: 12px; }

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: lowercase;
  background: #f3f4f6;
}

.pill.confirmed { background: #e8f6ee; color: var(--olive); }
.pill.pending { background: #fff1e8; color: var(--copper); }
.pill.cancelled { background: #f8e8e8; color: var(--danger); }

.actions { white-space: nowrap; }
.inline { display: inline-block; margin-right: 6px; }

.person {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.person:last-child { border-bottom: 0; }

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 6px 0 10px;
}

.service-edit {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.service-edit:first-of-type { border-top: 0; padding-top: 0; }
.service-edit__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
  margin-bottom: 8px;
}
.service-edit__empty {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--mist);
  font-size: 13px;
  margin-bottom: 8px;
  background: #f8fafc;
}
.service-edit__fields { margin: 0; }
.service-edit .check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 0 0 8px; }
@media (max-width: 720px) {
  .service-edit { grid-template-columns: 1fr; }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.gallery figure {
  margin: 0;
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery img, .cover-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.cover-preview img { aspect-ratio: 16 / 9; border-radius: 14px; }

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gate .card {
  width: min(420px, 100%);
  background: var(--card);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.gate-brand img {
  height: 64px;
  width: 64px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
}

.gate h1 { margin: 4px 0 8px; }

.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}

.choice input { margin-top: 4px; width: auto; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .top nav a { padding: 8px 10px; font-size: 13px; }
  .who { width: 100%; order: 3; }
}
