/* Clear Hub — partner vendor surface (isolated from Clear Market consumer UI) */
@font-face {
  font-family: "Chronicle Display";
  src: url("../fonts/chronicle-display/ChronicleDisplay-Roman.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chronicle Display";
  src: url("../fonts/chronicle-display/ChronicleDisplay-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Chronicle Display";
  src: url("../fonts/chronicle-display/ChronicleDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ch-bg: #f5f3ff;
  --ch-bg-card: #ffffff;
  --ch-ink: #1c1543;
  --ch-muted: #6d6890;
  --ch-line: #e7e3f8;
  --ch-navy: #5b3df5;
  --ch-navy-deep: #3f22d9;
  --ch-teal: #0ea47a;
  --ch-teal-soft: #dcf8ee;
  --ch-amber: #f59e0b;
  --ch-amber-soft: #fff4dc;
  --ch-coral: #ff5c7a;
  --ch-danger: #e5484d;
  --ch-radius: 20px;
  --ch-topbar-h: 52px;
  --ch-nav-h: 70px;
  --ch-shadow: 0 10px 30px rgba(76, 52, 200, 0.10);
  --ch-shadow-pop: 0 18px 40px rgba(91, 61, 245, 0.28);
  --ch-grad-hero: linear-gradient(135deg, #5b3df5 0%, #8b5cf6 38%, #ec4899 72%, #ff8a4c 100%);
  --ch-grad-primary: linear-gradient(135deg, #5b3df5, #8b5cf6);
  --ch-grad-go: linear-gradient(135deg, #10b981, #06b6d4);
  --ch-grad-hot: linear-gradient(135deg, #ff5c7a, #ff8a4c);
  /* Price tier accents */
  --ch-tier-50: #10b981;
  --ch-tier-100: #3b82f6;
  --ch-tier-150: #8b5cf6;
  --ch-tier-200: #ff5c7a;
  --ch-tier-300: #dc2626;
}

html.night-mode .ch-page,
body.night-mode.ch-page {
  --ch-bg: #0f0c22;
  --ch-bg-card: #1b1735;
  --ch-ink: #f1eeff;
  --ch-muted: #a49fc4;
  --ch-line: #2d2852;
  --ch-navy: #a48bff;
  --ch-navy-deep: #8b6dff;
  --ch-teal: #34d399;
  --ch-teal-soft: #123629;
  --ch-amber-soft: #3a2a0b;
  --ch-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  --ch-shadow-pop: 0 18px 44px rgba(0, 0, 0, 0.6);
  --ch-grad-hero: linear-gradient(135deg, #3b23b8 0%, #6d3fd6 40%, #b8337a 75%, #c4562d 100%);
}

* { box-sizing: border-box; }

.ch-page,
.ch-page button,
.ch-page input,
.ch-page select,
.ch-page textarea {
  font-family: "Chronicle Display", "Playfair Display", Georgia, serif;
}

.ch-page {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, #ec4899 10%, transparent), transparent 60%),
    radial-gradient(120% 60% at 0% 100%, color-mix(in srgb, #06b6d4 10%, transparent), transparent 60%),
    var(--ch-bg);
  background-attachment: fixed;
  color: var(--ch-ink);
  font-size: 15px;
  line-height: 1.45;
  padding-bottom: calc(var(--ch-nav-h) + 12px + env(safe-area-inset-bottom, 0px));
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Top bar ---------- */
.ch-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--ch-topbar-h);
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 8px;
  background: color-mix(in srgb, var(--ch-bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--ch-line) 70%, transparent);
}

.ch-topbar__brand {
  justify-self: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ch-grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ch-topbar__link {
  justify-self: start;
  border: none;
  background: color-mix(in srgb, var(--ch-navy) 10%, transparent);
  color: var(--ch-navy);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.ch-topbar__link--right { justify-self: end; }

.ch-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 14px 24px;
}

/* ---------- Hero ---------- */
.ch-hero {
  position: relative;
  margin-bottom: 20px;
  padding: 20px 18px 16px;
  border-radius: 26px;
  background: var(--ch-grad-hero);
  color: #fff;
  box-shadow: var(--ch-shadow-pop);
  overflow: hidden;
}

.ch-hero::before,
.ch-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.ch-hero::before { width: 180px; height: 180px; top: -70px; right: -50px; }
.ch-hero::after { width: 110px; height: 110px; bottom: -50px; left: -30px; background: rgba(255, 255, 255, 0.1); }

.ch-hero > * { position: relative; z-index: 1; }

.ch-hero__title {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
}

.ch-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ch-role-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
}

.ch-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  margin: 10px 0 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.ch-live-pill--on { background: rgba(16, 185, 129, 0.35); }
.ch-live-pill--on::first-letter { color: #6effc4; }
.ch-live-pill--off { background: rgba(255, 196, 0, 0.3); }

.ch-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.ch-hero__stats:empty { display: none; }

.ch-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font: inherit;
  backdrop-filter: blur(6px);
}

button.ch-hero-stat { cursor: pointer; }
.ch-hero-stat--waiting { background: rgba(255, 255, 255, 0.3); }

.ch-hero-stat__val {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.ch-hero-stat__label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.ch-location-switch {
  margin-top: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #1c1543;
  font: inherit;
}

/* ---------- Type ---------- */
.ch-section-title {
  margin: 24px 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.ch-subtitle {
  margin: 18px 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.ch-lede {
  margin: 0 0 14px;
  color: var(--ch-muted);
  font-size: 14px;
}

.ch-muted { color: var(--ch-muted); font-size: 13px; }

.ch-empty {
  color: var(--ch-muted);
  padding: 18px 12px;
  text-align: center;
  background: color-mix(in srgb, var(--ch-bg-card) 70%, transparent);
  border: 1.5px dashed var(--ch-line);
  border-radius: 18px;
}

.ch-empty--compact { padding: 10px; font-size: 14px; }

/* ---------- Cards ---------- */
.ch-slot-card,
.ch-pickup-card,
.ch-location-card {
  background: var(--ch-bg-card);
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  box-shadow: var(--ch-shadow);
  padding: 16px;
  margin-bottom: 14px;
}

.ch-slot-card {
  --tier: var(--ch-tier-100);
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--tier);
}

.ch-tier--bag_50 { --tier: var(--ch-tier-50); }
.ch-tier--bag_100 { --tier: var(--ch-tier-100); }
.ch-tier--bag_150 { --tier: var(--ch-tier-150); }
.ch-tier--bag_200 { --tier: var(--ch-tier-200); }
.ch-tier--bag_300 { --tier: var(--ch-tier-300); }

.ch-slot-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tier) 12%, transparent);
  pointer-events: none;
}

.ch-slot-card__price {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--tier);
}

.ch-slot-card__worth,
.ch-slot-card__time {
  margin: 4px 0 0;
  color: var(--ch-muted);
  font-size: 13px;
}

.ch-slot-card__note {
  display: inline-block;
  margin: 8px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--ch-bg);
  color: var(--ch-muted);
}

.ch-slot-card__note--warn { background: var(--ch-amber-soft); color: var(--ch-amber); }

.ch-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 8px;
}

.ch-list-toolbar .ch-counter {
  margin: 0;
}

.ch-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 16px 0 8px;
}

.ch-counter__btn {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: none;
  background: color-mix(in srgb, var(--tier) 14%, var(--ch-bg-card));
  color: var(--tier);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.ch-counter__btn[data-ch-delta="1"] {
  background: var(--tier);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tier) 40%, transparent);
}

.ch-counter__btn:active:not(:disabled) { transform: scale(0.92); }

.ch-counter__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

.ch-counter__val {
  font-size: 2.4rem;
  font-weight: 700;
  min-width: 2ch;
  text-align: center;
}

.ch-slot-card__meta {
  text-align: center;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ch-muted);
}

/* ---------- Buttons ---------- */
.ch-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.ch-btn:active:not(:disabled) { transform: scale(0.97); }

.ch-btn--primary {
  background: var(--ch-grad-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 61, 245, 0.3);
}

.ch-btn--ghost {
  background: var(--ch-bg-card);
  border: 1.5px solid var(--ch-line);
  color: var(--ch-ink);
}

.ch-btn--text {
  background: none;
  color: var(--ch-navy);
  padding: 6px 8px;
}

.ch-btn--block { width: 100%; }

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

/* ---------- Pickup ---------- */
.ch-pickup-section {
  margin-top: 26px;
  padding: 18px 16px;
  border-radius: 24px;
  background:
    linear-gradient(var(--ch-bg-card), var(--ch-bg-card)) padding-box,
    var(--ch-grad-hero) border-box;
  border: 2px solid transparent;
  box-shadow: var(--ch-shadow);
}

.ch-pickup-section > .ch-section-title { margin-top: 0; }

.ch-code-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.ch-code-input {
  flex: 1;
  min-width: 0;
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  text-align: center;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--ch-line);
  background: var(--ch-bg);
  color: var(--ch-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ch-code-input:focus {
  outline: none;
  border-color: var(--ch-navy);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ch-navy) 20%, transparent);
}

.ch-code-row .ch-btn--primary { background: var(--ch-grad-hot); box-shadow: 0 8px 20px rgba(255, 92, 122, 0.3); }

.ch-pickup-card {
  background: var(--ch-teal-soft);
  border-color: color-mix(in srgb, var(--ch-teal) 40%, transparent);
  animation: ch-pop 0.3s ease;
}

.ch-pickup-card .ch-btn--primary { background: var(--ch-grad-go); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35); }

.ch-pickup-card__title {
  margin: 0 0 6px;
  font-weight: 700;
}

.ch-pickup-card__collect {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.ch-pickup-card__hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ch-muted);
}

.ch-pickup-card__hint--warn { color: var(--ch-amber); }

.ch-pickup-list { display: flex; flex-direction: column; gap: 10px; }

.ch-pickup-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--ch-bg);
  border: 1px solid var(--ch-line);
  border-left: 5px solid var(--ch-line);
}

.ch-pickup-row--confirmed { border-left-color: var(--ch-amber); }
.ch-pickup-row--picked_up { border-left-color: var(--ch-teal); opacity: 0.85; }
.ch-pickup-row--no_show { border-left-color: var(--ch-coral); opacity: 0.7; }

.ch-pickup-row--new {
  border-left-color: var(--ch-coral);
  background: color-mix(in srgb, var(--ch-coral) 10%, var(--ch-bg-card));
  animation: ch-glow 1.6s ease-in-out 3;
}

.ch-new-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ch-grad-hot);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.ch-pickup-row__ref {
  font-weight: 700;
  color: var(--ch-navy);
  margin-right: 6px;
}

.ch-pickup-row__title { font-weight: 600; }

.ch-pickup-row__meta {
  display: block;
  width: 100%;
  font-size: 12px;
  color: var(--ch-muted);
}

.ch-pickup-row__status {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  background: var(--ch-bg-card);
}

.ch-pickup-row--confirmed .ch-pickup-row__status { color: var(--ch-amber); background: var(--ch-amber-soft); }
.ch-pickup-row--picked_up .ch-pickup-row__status { color: var(--ch-teal); background: var(--ch-teal-soft); }

/* ---------- Totals ---------- */
.ch-totals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ch-stat {
  background: var(--ch-bg-card);
  border: 1px solid var(--ch-line);
  border-radius: 18px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--ch-shadow);
}

.ch-stat--feature {
  grid-column: 1 / -1;
  background: var(--ch-grad-go);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.3);
}

.ch-stat--feature .ch-stat__val { font-size: 2rem; }
.ch-stat--feature .ch-stat__label { color: rgba(255, 255, 255, 0.92); }

.ch-stat:nth-child(2) .ch-stat__val { color: var(--ch-tier-100); }
.ch-stat:nth-child(3) .ch-stat__val { color: var(--ch-teal); }
.ch-stat:nth-child(4) .ch-stat__val { color: var(--ch-tier-150); }
.ch-stat:nth-child(5) .ch-stat__val { color: var(--ch-amber); }

.ch-stat__val {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}

.ch-stat__label {
  font-size: 11px;
  color: var(--ch-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Bottom nav ---------- */
.ch-bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  justify-content: space-around;
  max-width: 496px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--ch-bg-card) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--ch-line);
  box-shadow: 0 12px 32px rgba(28, 21, 67, 0.18);
}

.ch-bottom-nav__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  border-radius: 18px;
  background: none;
  color: var(--ch-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ch-bottom-nav__btn[hidden] { display: none; }

.ch-bottom-nav__icon {
  position: relative;
  font-size: 18px;
  line-height: 1;
  filter: grayscale(0.7);
  opacity: 0.75;
}

.ch-bottom-nav__btn.is-active {
  color: #fff;
  background: var(--ch-grad-primary);
  box-shadow: 0 6px 16px rgba(91, 61, 245, 0.35);
}

.ch-bottom-nav__btn.is-active .ch-bottom-nav__icon { filter: none; opacity: 1; }

.ch-nav-badge {
  position: absolute;
  top: -6px;
  right: -12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ch-coral);
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--ch-bg-card);
  animation: ch-badge 1.2s ease-in-out infinite;
}

.ch-nav-badge[hidden] { display: none; }

/* ---------- New reservation alert ---------- */
.ch-alert {
  position: fixed;
  top: calc(var(--ch-topbar-h) + env(safe-area-inset-top, 0px) + 10px);
  left: 12px;
  right: 12px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 496px;
  margin: 0 auto;
  padding: 12px 12px 12px 14px;
  border-radius: 20px;
  background: var(--ch-grad-hot);
  color: #fff;
  box-shadow: 0 16px 36px rgba(255, 92, 122, 0.45);
}

.ch-alert[hidden] { display: none !important; }
.ch-alert.is-in { animation: ch-drop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }

.ch-alert__icon { font-size: 26px; }

.ch-alert__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ch-alert__title { font-size: 15px; }

.ch-alert__sub {
  font-size: 12px;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-alert__btn {
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  padding: 9px 14px;
  background: #fff;
  color: #e23d60;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Misc screens ---------- */
.ch-tab-panel[hidden] { display: none !important; }

.ch-gate,
.ch-loading {
  max-width: 420px;
  margin: 40px auto;
  padding: 24px;
  text-align: center;
}

.ch-location-picker {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 16px;
}

.ch-location-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  margin-bottom: 10px;
  color: inherit;
  font: inherit;
}

.ch-location-card__name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.ch-location-card__meta {
  display: block;
  margin-top: 4px;
  color: var(--ch-muted);
  font-size: 13px;
}

.ch-slot-row,
.ch-team-row,
.ch-invoice-row,
.ch-earn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--ch-bg-card);
  border: 1px solid var(--ch-line);
  border-radius: 18px;
  box-shadow: var(--ch-shadow);
}

.ch-slot-row { border-left: 5px solid var(--ch-navy); }

.ch-slot-row__title,
.ch-earn-row__day { font-weight: 700; }

.ch-slot-row__meta {
  font-size: 12px;
  color: var(--ch-muted);
  margin-top: 4px;
}

.ch-range-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.ch-chip {
  border: 1.5px solid var(--ch-line);
  background: var(--ch-bg-card);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--ch-ink);
  cursor: pointer;
}

.ch-chip.is-active {
  background: var(--ch-grad-primary);
  color: #fff;
  border-color: transparent;
}

.ch-earn-table { margin-bottom: 12px; }

.ch-earn-row {
  flex-wrap: wrap;
  font-size: 13px;
}

.ch-earn-row__fee { color: var(--ch-muted); }

.ch-earn-summary {
  padding: 16px;
  border-radius: 20px;
  margin-bottom: 18px;
  background: var(--ch-grad-go);
  color: #fff;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.3);
}

.ch-earn-summary p { margin: 0; }

.ch-team-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ch-input,
.ch-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--ch-line);
  background: var(--ch-bg-card);
  color: var(--ch-ink);
  font: inherit;
}

.ch-input:focus,
.ch-textarea:focus {
  outline: none;
  border-color: var(--ch-navy);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ch-navy) 16%, transparent);
}

.ch-label {
  display: block;
  margin: 10px 0 5px;
  font-size: 13px;
  font-weight: 700;
}

.ch-settings-block { margin-top: 26px; }
.ch-settings-block .ch-btn { margin-top: 12px; }

/* ---------- Slot editor sheet ---------- */
.ch-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.ch-sheet[hidden] { display: none !important; }

.ch-sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 60, 0.5);
  backdrop-filter: blur(3px);
}

.ch-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92dvh;
  overflow: auto;
  padding: 22px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--ch-bg-card);
  border-radius: 28px 28px 0 0;
  animation: ch-rise 0.3s ease;
}

.ch-sheet__panel .ch-btn--block + .ch-btn--block { margin-top: 10px; }

.ch-btn--danger {
  background: color-mix(in srgb, var(--ch-danger) 12%, var(--ch-bg-card));
  color: var(--ch-danger);
  border: 1.5px solid color-mix(in srgb, var(--ch-danger) 35%, transparent);
}

.ch-info-box,
.ch-warn-box {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
}

.ch-info-box p,
.ch-warn-box p { margin: 0; }
.ch-info-box p + p { margin-top: 8px; }

.ch-info-box { background: color-mix(in srgb, var(--ch-navy) 10%, var(--ch-bg-card)); }

.ch-tier-value-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.ch-tier-value-note p { margin: 0; }

.ch-warn-box {
  margin-top: 20px;
  background: var(--ch-amber-soft);
  color: var(--ch-ink);
}
.ch-sheet__panel #ch-slot-save { margin-top: 18px; }

body.ch-sheet-open,
body.ch-tier-pack-modal-open { overflow: hidden; }

.ch-sheet-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ch-sheet-toolbar .ch-sheet__title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.ch-tier-pack-tip {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--ch-amber-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--ch-ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ch-amber) 40%, transparent);
}

.ch-tier-pack-tip:active { transform: scale(0.94); }

.ch-tier-pack-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ch-tier-pack-modal[hidden] { display: none !important; }

.ch-tier-pack-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 60, 0.55);
}

.ch-tier-pack-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 88dvh;
  overflow-y: auto;
  margin: 0 auto;
  padding: 20px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  background: var(--ch-bg-card);
  border-radius: 22px 22px 0 0;
  animation: ch-rise 0.28s ease;
}

.ch-tier-pack-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--ch-bg);
  font-size: 22px;
  cursor: pointer;
  color: var(--ch-ink);
}

.ch-tier-pack-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ch-muted);
}

.ch-tier-pack-modal__title {
  margin: 0 32px 14px 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.ch-tier-pack-modal__list {
  margin: 0 0 18px;
  padding-left: 1.2rem;
  font-size: 13px;
  line-height: 1.5;
}

.ch-tier-pack-modal__list li { margin-bottom: 8px; }

.ch-sheet__title {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.ch-tier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ch-tier-btn,
.ch-veg-btn {
  border: 1.5px solid var(--ch-line);
  background: var(--ch-bg);
  color: var(--ch-ink);
  border-radius: 14px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ch-tier-btn.is-active,
.ch-veg-btn.is-active {
  border-color: transparent;
  background: var(--ch-grad-primary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(91, 61, 245, 0.3);
}

.ch-tier-btn[data-tier="bag_50"].is-active { background: var(--ch-tier-50); }
.ch-tier-btn[data-tier="bag_100"].is-active { background: var(--ch-tier-100); }
.ch-tier-btn[data-tier="bag_150"].is-active { background: var(--ch-tier-150); }
.ch-tier-btn[data-tier="bag_200"].is-active { background: var(--ch-tier-200); }
.ch-tier-btn[data-tier="bag_300"].is-active { background: var(--ch-tier-300); }

.ch-days-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}

.ch-day-label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ch-bg);
  border: 1px solid var(--ch-line);
  font-size: 13px;
}

.ch-day-label input { accent-color: var(--ch-navy); }

/* ---------- Toast ---------- */
.ch-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--ch-nav-h) + 22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  max-width: 90%;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--ch-ink);
  color: var(--ch-bg-card);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--ch-shadow-pop);
  animation: ch-pop 0.25s ease;
}

.ch-toast--error { background: var(--ch-danger); color: #fff; }

.ch-toast.ch-toast--note {
  max-width: min(22rem, 92vw);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.ch-toast[hidden] { display: none !important; }

/* ---------- Motion ---------- */
@keyframes ch-pop {
  from { transform: translateX(var(--ch-pop-x, 0)) scale(0.94); opacity: 0; }
  to { transform: translateX(var(--ch-pop-x, 0)) scale(1); opacity: 1; }
}

.ch-toast { --ch-pop-x: -50%; }

@keyframes ch-drop {
  from { transform: translateY(-120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes ch-rise {
  from { transform: translateY(40px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes ch-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 122, 0); }
  50% { box-shadow: 0 0 0 6px rgba(255, 92, 122, 0.25); }
}

@keyframes ch-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .ch-alert.is-in,
  .ch-pickup-row--new,
  .ch-nav-badge,
  .ch-sheet__panel,
  .ch-toast,
  .ch-pickup-card { animation: none; }
}
/* Partner application (vendor/partner.html) — no bottom nav */
.ch-page--partner,
.ch-page--partner button,
.ch-page--partner input,
.ch-page--partner select,
.ch-page--partner textarea {
  font-family: "Playfair Display", Georgia, serif;
}
.ch-page--partner { padding-bottom: env(safe-area-inset-bottom, 0px); }
.ch-page--partner .ch-toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.ch-page--partner .ch-main { padding-bottom: 40px; }
.ch-page--partner .ch-btn--block + .ch-btn--block { margin-top: 10px; }

.cp-hero { margin-bottom: 18px; }
.cp-hero .ch-hero__title { font-size: 1.55rem; }

.cp-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

.cp-hero__lede {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.95;
}

.cp-tier-chips {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cp-tier-chip {
  flex: 1;
  padding: 8px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.cp-tier-chip--50 { color: var(--ch-tier-50); }
.cp-tier-chip--100 { color: var(--ch-tier-100); }
.cp-tier-chip--150 { color: var(--ch-tier-150); }
.cp-tier-chip--200 { color: var(--ch-tier-200); }
.cp-tier-chip--300 { color: var(--ch-tier-300); }

.cp-hero--pending { text-align: center; }
.cp-hero--pending .ch-live-pill { margin-top: 6px; }

.cp-hero__emoji {
  margin: 0 0 4px;
  font-size: 44px;
  line-height: 1;
}

.cp-points {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.cp-point {
  --accent: var(--ch-navy);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--ch-bg-card);
  border: 1px solid var(--ch-line);
  border-left: 5px solid var(--accent);
  border-radius: 18px;
  box-shadow: var(--ch-shadow);
  font-size: 14px;
}

.cp-point--1 { --accent: var(--ch-tier-100); }
.cp-point--2 { --accent: var(--ch-tier-50); }
.cp-point--3 { --accent: var(--ch-tier-150); }
.cp-point--4 { --accent: var(--ch-tier-200); }

.cp-point strong { color: var(--accent); }

.cp-point__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, var(--ch-bg-card));
  font-size: 20px;
}

.cp-need {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--ch-amber-soft);
  font-size: 13px;
}

.cp-card {
  padding: 4px 16px 18px;
  background: var(--ch-bg-card);
  border: 1px solid var(--ch-line);
  border-radius: 24px;
  box-shadow: var(--ch-shadow);
}

.cp-card .ch-input,
.cp-card .ch-textarea { background: var(--ch-bg); }

.cp-progress {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.cp-progress li {
  flex: 1;
  padding-top: 8px;
  border-top: 4px solid var(--ch-line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ch-muted);
}

.cp-progress li.is-done { border-image: var(--ch-grad-go) 1; color: var(--ch-teal); }
.cp-progress li.is-current { border-image: var(--ch-grad-primary) 1; color: var(--ch-navy); }

.cp-timeline {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.cp-timeline li {
  position: relative;
  padding: 0 0 18px 34px;
  display: flex;
  flex-direction: column;
}

.cp-timeline li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ch-bg-card);
  border: 3px solid var(--ch-line);
}

.cp-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 22px;
  bottom: 2px;
  width: 2px;
  background: var(--ch-line);
}

.cp-timeline li.is-done::before { background: var(--ch-teal); border-color: var(--ch-teal); }
.cp-timeline li.is-current::before {
  border-color: var(--ch-navy);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ch-navy) 18%, transparent);
  animation: ch-badge 1.6s ease-in-out infinite;
}

.cp-timeline strong { font-size: 15px; }
.cp-timeline li:not(.is-done):not(.is-current) strong { color: var(--ch-muted); }
.cp-timeline span { font-size: 13px; color: var(--ch-muted); }

@media (prefers-reduced-motion: reduce) {
  .cp-timeline li.is-current::before { animation: none; }
}

.cp-btn-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.cp-footnote { margin-top: 14px; text-align: center; }

.cp-terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 12px;
  font-size: 13px;
  color: var(--ch-muted);
}

.cp-terms input { margin-top: 3px; flex-shrink: 0; }

.cp-error {
  margin: 0 0 12px;
  color: var(--ch-danger);
  font-size: 14px;
}

.cp-notice {
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ch-amber) 14%, var(--ch-bg-card));
  font-size: 14px;
}

.cp-summary { cursor: default; margin: 14px 0; }
.cp-summary .ch-location-card__meta { margin-top: 6px; }

.ch-page--partner .ch-textarea { resize: vertical; }
