:root {
  --bg: #f4f7f6;
  --bg-2: #e8f0ee;
  --panel: #ffffff;
  --ink: #12201c;
  --muted: #5b6b66;
  --line: #d5e0dc;
  --accent: #0d9488;
  --accent-ink: #043f3a;
  --danger: #b42318;
  --ok: #027a48;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 32, 28, 0.06);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 148, 136, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(3, 105, 161, 0.08), transparent),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

a {
  color: var(--accent-ink);
}

.shell {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.shell-narrow {
  width: min(520px, calc(100% - 2rem));
}

.banner {
  background: #12352f;
  color: #dff7f2;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.75rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(244, 247, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .banner {
  margin: 0;
}

.site-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.75rem 0;
}

.site-header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.site-header-nav a.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.site-header-nav a.nav-link:hover,
.site-header-nav a.nav-link.on {
  color: var(--accent-ink);
  background: rgba(13, 148, 136, 0.1);
}

body.has-fixed-header {
  padding-top: 5.75rem;
}

body.has-fixed-header.banner-hidden {
  padding-top: 4.25rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.site-header .brand small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: min(42rem, 58vw);
  line-height: 1.25;
}

@media (max-width: 640px) {
  .site-header-bar {
    align-items: flex-start;
  }

  .site-header .brand small {
    max-width: 48vw;
    font-size: 0.72rem;
  }

  body.has-fixed-header {
    padding-top: 6.5rem;
  }
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand .mark {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d9488, #0369a1);
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
}

.hero {
  margin: 1.5rem 0 1.75rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  max-width: 18ch;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.5;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

.panel + .panel {
  margin-top: 1rem;
}

.panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.grid-shops {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .grid-shops {
    grid-template-columns: 1fr 1fr;
  }
}

.shop-card {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--bg-2));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.shop-card:hover {
  border-color: rgba(13, 148, 136, 0.5);
  transform: translateY(-1px);
}

.shop-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
}

.shop-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 0.8rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn,
button.btn,
a.btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn.ghost,
a.btn.ghost,
button.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

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

.choice-grid {
  display: grid;
  gap: 0.55rem;
}

.choice {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  cursor: pointer;
}

.choice.on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.choice strong {
  display: block;
}

.choice span {
  color: var(--muted);
  font-size: 0.85rem;
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.slot {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.slot.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

label.field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

label.field input,
label.field select,
label.field textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
}

.steps {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.step-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
}

.step-pill.on {
  background: rgba(13, 148, 136, 0.15);
  color: var(--accent-ink);
  font-weight: 600;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--bg-2);
}

.badge.ok {
  background: #dcfae6;
  color: var(--ok);
}

.badge.danger {
  background: #fee4e2;
  color: var(--danger);
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.receipt-row span:first-child {
  color: var(--muted);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.admin-nav button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.admin-nav button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filters {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (min-width: 700px) {
  .filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
  }
}

@media print {
  .banner,
  .topbar,
  .site-header,
  .no-print {
    display: none !important;
  }
  body,
  body.has-fixed-header,
  body.has-fixed-header.banner-hidden {
    background: #fff;
    padding-top: 0 !important;
  }
  .panel {
    box-shadow: none;
  }
}
