/* ============================================================
   CampingScout — app (dashboard + create request)
   ============================================================ */

.app-body { min-height: 100vh; display: flex; flex-direction: column; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  padding: 32px 24px 18px;
}
.app-header .nav-bar {
  margin: 0 auto;
  background: var(--olive);
  box-shadow: var(--shadow);
}
.app-header .nav-bar .logo { color: var(--peach); }
.app-header .nav-links { display: flex; align-items: center; flex: 1; }
.app-header .nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 1; }
/* the header pill sits next to 42px round buttons — match their height */
.app-header .btn-pill {
  padding: 11px 22px;
  font-size: 14.5px;
  letter-spacing: .3px;
  white-space: nowrap;
}
/* text links directly on the olive bar (create page's log in / my alerts)
   — olive-on-olive is invisible, use peach like the wordmark */
.app-header .nav-right > .text-btn { color: var(--peach); white-space: nowrap; }
/* breathing room so the alarm chip never sits flush against the wordmark */
.app-header .logo { margin: 0 14px; }

.nav-back {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--olive-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
}
.nav-back:hover { background: #fff; transform: translateX(-2px); }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .15s;
}
.icon-btn:hover { box-shadow: var(--shadow); }

.profile-menu { position: relative; }
.profile-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  z-index: 50;
}
.profile-popup-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--peach);
  display: grid;
  place-items: center;
  font-size: 18px;
}
.profile-email { font-weight: 700; color: var(--ink); }
.profile-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.profile-toggle { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.profile-toggle label {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
}
.profile-toggle input { accent-color: var(--olive); }
.profile-popover .logout-btn {
  margin-top: 16px;
  width: 100%;
  justify-content: flex-start;
  padding-left: 0;
}

.view { width: 100%; max-width: 1242px; margin: 0 auto; padding: 40px 24px 120px; flex: 1; }
.view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.view-head h1, .create-head h1 { font-size: 34px; font-weight: 800; color: var(--ink); }
.view-head p, .create-head p { color: var(--muted); margin-top: 6px; font-size: 16.5px; }
.view-head p.keep-open-hint { font-size: 16px; margin-top: 10px; max-width: 730px; }
/* page-level controls (alarm, notification nudge) opposite the title */
.view-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; padding-top: 4px; }
.view-actions .text-btn { display: inline-flex; align-items: center; gap: 7px; }
.view-actions svg { flex-shrink: 0; }

/* ------------------------------------------------ install banner */
.install-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.install-icon { font-size: 26px; line-height: 1; }
.install-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.install-text strong { color: var(--ink); font-size: 15.5px; }
.install-text span { color: var(--muted); font-size: 13.5px; }
/* outline variant: the banner is a nudge, not the page's primary action */
.install-banner .btn-pill {
  padding: 10px 21px; /* 1.5px border keeps the filled pill's footprint */
  font-size: 14px;
  white-space: nowrap;
  background: transparent;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  transition: background .15s, color .15s;
}
.install-banner .btn-pill:hover { background: var(--orange); color: #fff; }
/* already installed: confirmation, not a call to action — sage instead of orange */
.install-banner.is-installed { border-left-color: var(--sage); }
.install-banner.is-installed .btn-pill { border-color: var(--sage); color: var(--sage); }
.install-banner.is-installed .btn-pill:hover { background: var(--sage); color: #fff; }
@media (max-width: 640px) {
  .install-banner { flex-wrap: wrap; }
  .install-text { flex-basis: 100%; }
}

/* ------------------------------------------------ dashboard */
.request-list { margin-top: 4px; }

/* site.css pads bare <section> for the landing page — undo it here */
.alert-section { margin-top: 28px; padding: 0; }
.alert-section + .alert-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed var(--line-strong);
}
.alert-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.alert-section-head h2 { font-size: 18px; font-weight: 800; color: var(--ink); }
.section-count {
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 66px;
  background: #EDF2E0;
  color: var(--olive);
}
.paused-section .alert-section-head h2 { color: #7a7461; }
.paused-section .section-count { background: #ECE8DA; color: #7a7461; }
.section-cards { display: flex; flex-direction: column; gap: 20px; }

.req-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  border-left: 6px solid var(--olive);
}
.req-card.found { border-left-color: var(--orange); }
.req-card.paused, .req-card.expired { border-left-color: #b9b3a0; opacity: .82; }

.req-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.req-title { font-size: 20px; font-weight: 800; color: var(--ink); }
.req-title small { font-weight: 600; color: var(--muted); font-size: 15px; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 66px;
  background: #EDF2E0;
  color: var(--olive);
}
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #5a7326; }
.status-chip.watching .dot { animation: pulse 1.6s infinite; }
.status-chip.found { background: #FEE9DE; color: var(--orange-dark); }
.status-chip.found .dot { background: var(--orange); }
.status-chip.paused, .status-chip.expired { background: #ECE8DA; color: #7a7461; }
.status-chip.paused .dot, .status-chip.expired .dot { background: #a49d85; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.req-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.meta-chip {
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 66px;
}
.req-checked { font-size: 12.5px; color: #9a947f; margin-top: 12px; }
.req-error { font-size: 13px; color: #b3400b; margin-top: 8px; }

.req-matches { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.req-matches h4 { font-size: 14px; font-weight: 700; color: var(--orange-dark); margin-bottom: 10px; }
.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.match-row span { font-size: 15px; color: var(--ink); }
.btn-reserve {
  background: var(--orange);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 66px;
  text-decoration: none;
  transition: background .15s;
}
.btn-reserve:hover { background: var(--orange-dark); }

.req-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
/* .text-btn base style lives in site.css */
.text-btn.danger { color: #b3400b; }

.empty-state { text-align: center; padding: 90px 20px; }
.empty-emoji { font-size: 56px; margin-bottom: 16px; }
.empty-state h2 { font-size: 26px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

.activity { margin-top: 44px; }
.activity summary { color: var(--muted); font-size: 14px; cursor: pointer; }
.activity-list {
  margin-top: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  list-style: none;
  max-height: 320px;
  overflow: auto;
}
.activity-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.activity-item:last-child { border-bottom: 0; }
.activity-icon { flex-shrink: 0; font-size: 15px; line-height: 1.4; }
.activity-item > div { flex: 1; min-width: 0; }
.activity-text { color: var(--ink); display: block; }
.activity-item.found .activity-text { font-weight: 700; color: var(--orange-dark); }
.activity-item.error .activity-text { color: #b3400b; }
.activity-detail { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.activity-time { flex-shrink: 0; color: var(--muted); font-size: 12.5px; }
.activity-empty { padding: 18px 16px; color: var(--muted); font-size: 14px; }

/* live status — the dashboard's proof the monitor is running */
.view-head p.live-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
  animation: live-pulse 2s ease-in-out infinite;
}
.live-strip.stale .live-dot { background: #E0A32E; }
.live-strip.idle .live-dot { background: var(--line-strong); animation: none; }
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(138, 154, 91, .45); }
  50%      { opacity: .55; box-shadow: 0 0 0 5px rgba(138, 154, 91, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

/* ------------------------------------------------ alarm */
/* sits on the cream page next to the title: armed = solid olive chip,
   off = white outlined ghost */
.alarm-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 0 16px;
  border-radius: 66px;
  white-space: nowrap;
  transition: all .15s;
}
.alarm-btn:hover { border-color: var(--olive); }
.alarm-btn.armed { background: var(--olive); border-color: var(--olive); color: var(--peach); }

.alarm-overlay[hidden] { display: none; }
.alarm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 40, 24, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}
.alarm-panel {
  background: var(--cream);
  border: 3px solid var(--orange);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
  animation: alarm-flash 1s infinite;
}
@keyframes alarm-flash {
  0%, 100% { box-shadow: 0 0 0 6px rgba(248, 72, 9, .45); }
  50% { box-shadow: 0 0 0 18px rgba(248, 72, 9, .12); }
}
/* fixed header — never scrolls away */
.alarm-head { flex: 0 0 auto; padding: 28px 32px 16px; }
.alarm-emoji { font-size: 48px; line-height: 1; }
.alarm-panel h2 { font-size: 26px; font-weight: 800; color: var(--ink); margin: 10px 0 0; }
.alarm-count { font-size: 14px; font-weight: 700; color: var(--orange-dark); margin-top: 6px; }
/* scrollable match list — takes the leftover height, never pushes the footer off-screen */
.alarm-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.alarm-match {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  text-align: left;
}
.alarm-match + .alarm-match { border-top: 1px dashed var(--line); }
.alarm-match span { font-size: 15px; color: var(--ink); }
.alarm-match .btn-reserve { flex: 0 0 auto; font-size: 14px; padding: 10px 22px; }
/* fixed footer — Stop alarm always reachable */
.alarm-foot { flex: 0 0 auto; padding: 18px 32px 26px; }
.alarm-hint { font-size: 13.5px; color: var(--orange-dark); margin-bottom: 14px; }
.alarm-stop { margin-top: 0; }

@media (max-width: 560px) {
  .alarm-btn { padding: 0 12px; font-size: 13px; }
  .alarm-head { padding: 22px 20px 14px; }
  .alarm-scroll { padding: 0 20px; }
  .alarm-foot { padding: 16px 20px 22px; }
  /* stack site + button so neither gets crushed on a phone */
  .alarm-match { flex-direction: column; align-items: stretch; gap: 8px; }
  .alarm-match .btn-reserve { text-align: center; }
}

/* ------------------------------------------------ create form */
.back-link {
  background: none;
  border: none;
  color: var(--olive);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
}
.create-head { margin-bottom: 28px; }

/* Airbnb-style two-column: steps left, sticky summary right */
.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 48px;
  align-items: start;
}
.create-steps { display: flex; flex-direction: column; gap: 24px; }

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 30px;
}
.step-card-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.step-card-head h2 { font-size: 20px; font-weight: 800; color: var(--ink); }
.step-card-head p { font-size: 14.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.step-badge {
  flex-shrink: 0;
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--peach);
  font-weight: 700;
  font-size: 15px;
  align-items: center;
  justify-content: center;
}

/* summary card */
.create-summary { position: sticky; top: 149px; }
.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.summary-top { display: flex; gap: 16px; align-items: center; }
.summary-thumb {
  width: 104px;
  height: 84px;
  border-radius: 12px;
  background: var(--cream) center / cover no-repeat;
  flex-shrink: 0;
}
.summary-title strong { display: block; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.summary-title span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }

.summary-rows { margin-top: 22px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.summary-label { font-size: 14.5px; color: var(--muted); flex-shrink: 0; }
.summary-value { font-size: 14.5px; color: var(--ink); font-weight: 600; text-align: right; }

.summary-total {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 18px;
  font-size: 14px;
  color: var(--olive);
  font-weight: 600;
  line-height: 1.5;
}
.summary-card .btn-create { width: 100%; margin-top: 20px; padding: 15px; font-size: 16px; }

.minstay-warn {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #b26a00;
  line-height: 1.5;
}

.field-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.field-label em { color: var(--orange); font-style: normal; }
.mini-note { font-size: 12.5px; color: #9a947f; margin-top: 10px; line-height: 1.5; }

.park-search { position: relative; }
.park-search input, .text-input, select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.park-search input:focus, .text-input:focus, select:focus { border-color: var(--olive); }

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
}

/* custom select dropdown — same look as the park autocomplete list */
.select-dd { position: relative; }
.select-trigger {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color .15s;
}
.select-trigger:hover { border-color: var(--olive); }
.select-dd.open .select-trigger { border-color: var(--olive); }
.select-trigger .chev { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink); transition: transform .15s; }
.select-dd.open .select-trigger .chev { transform: rotate(180deg); }

.select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  padding: 8px;
  z-index: 50;
}
.select-option {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.select-option:hover, .select-option.active { background: var(--cream); }

.park-picked {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 16px;
}
.park-picked img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.park-picked strong { display: block; font-size: 16px; color: var(--ink); }
.park-picked span { font-size: 13px; color: var(--muted); }
.park-picked .text-btn { margin-left: auto; }

#campgroundWrap, #equipmentWrap { margin-top: 20px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 66px;
  transition: all .12s;
}
.chip:hover { border-color: var(--olive); }
.chip.selected { background: var(--peach); border-color: var(--peach); color: var(--olive-deep); }
.chip small { font-weight: 500; color: var(--muted); }
.chip.selected small { color: var(--olive); }

/* calendar */
.cal-question { font-size: 15.5px; color: var(--ink); margin-bottom: 18px; }
.cal-question em { color: var(--orange); font-style: normal; }
#calCount { color: var(--muted); font-size: 14px; }
.calendar { max-width: 420px; margin: 0 auto; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { font-size: 17px; color: var(--ink); }
.cal-nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  color: var(--ink);
  margin-left: 6px;
}
.cal-nav button:hover:not(:disabled) { background: var(--cream); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow span {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 0;
  background: var(--cream);
  border-radius: 8px;
}
.cal-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  transition: all .1s;
}
.cal-day:hover:not(:disabled):not(.selected) { background: var(--cream); }
.cal-day:disabled { color: #c9c3ae; cursor: default; }
.cal-day.selected { background: var(--olive); color: var(--peach); }
/* long-weekend nights with a 3-night minimum stay (see /api/minstay) */
.cal-day.holiday { position: relative; }
.cal-day.holiday::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #b26a00;
}
.cal-day.holiday.selected::after { background: var(--peach); }
.cal-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 12px;
}
.cal-legend::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b26a00;
}
.cal-hint { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* stepper */
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 20px;
  color: var(--ink);
}
.stepper button:hover:not(:disabled) { border-color: var(--olive); }
.stepper button:disabled { opacity: .3; }
.stepper-value {
  min-width: 120px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 16px;
  color: var(--ink);
}

/* sites */
.sites-placeholder { color: var(--muted); font-size: 15px; padding: 8px 0; }
.sites-master { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
#sitesSummary { font-size: 15px; font-weight: 600; color: var(--ink); flex: 1; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: #d4cfba;
  border-radius: 26px;
  transition: .18s;
}
.slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: .18s;
}
.switch input:checked + .slider { background: var(--olive); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.site-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}
.site-tile {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  transition: all .12s;
}
.site-group-label {
  grid-column: 1 / -1;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 4px 0 -2px;
}
.site-group-label:first-child { margin-top: 0; }
.site-tile:hover { border-color: var(--olive); }
.site-tile.selected { border-color: var(--olive); background: #EFF3E3; }
.site-tile strong { display: block; font-size: 14.5px; color: var(--ink); }
.site-tile span { font-size: 11.5px; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }

.btn-create {
  background: var(--orange);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 17px;
  padding: 16px 44px;
  border-radius: 66px;
  box-shadow: 0 6px 22px rgba(248, 72, 9, .35);
  transition: all .15s;
}
.btn-create:hover:not(:disabled) { background: var(--orange-dark); }
.btn-create:disabled { opacity: .45; cursor: default; box-shadow: none; }

/* ------------------------------------------------ modal / toast */
.modal-backdrop[hidden], .toast[hidden] { display: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(34, 40, 24, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: var(--cream);
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 20px; font-weight: 800; color: var(--ink); }
.modal-body { padding: 22px 28px; overflow-y: auto; }
.modal-body h3 { font-size: 15px; font-weight: 800; color: var(--olive); margin: 18px 0 12px; }
.modal-body h3:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-2 label { font-size: 13px; font-weight: 700; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.grid-2 input, .grid-2 select {
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
}
.grid-2 input:focus, .grid-2 select:focus { border-color: var(--olive); outline: none; }
.modal-body .mini-note { margin: 8px 0 4px; }
.nav-right .meta-chip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-line { flex-direction: row !important; align-items: center; gap: 10px !important; align-self: end; padding-bottom: 12px; }
.modal-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
}
.modal-foot-center { justify-content: center; }
#settingsStatus { flex: 1; font-size: 13px; color: var(--olive); text-align: right; }

/* delete confirmation */
.confirm-modal { max-width: 430px; padding: 26px 28px; }
.confirm-modal h2 { font-size: 20px; font-weight: 800; color: var(--ink); }
.confirm-modal p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 8px; }
.confirm-actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin-top: 26px; }
.confirm-actions .btn-pill { border: none; padding: 12px 24px; font-size: 14.5px; }

.notify-guide-steps { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.notify-guide-steps li { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.notify-guide-steps strong { color: var(--ink); font-weight: 700; }

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--olive-deep);
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 66px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  z-index: 200;
}
.toast.error { background: #8a2f05; }

@media (max-width: 980px) {
  .create-layout { grid-template-columns: 1fr; gap: 24px; }
  .create-summary { position: static; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* keep the back arrow visible on mobile even though site.css
   hides .nav-links (the landing page's Home/FAQ) below 900px */
@media (max-width: 900px) {
  .app-header .nav-links { display: flex; }
  .app-header .nav-bar { max-width: 100%; }
}

/* small screens: not enough bar for the full wordmark next to the pill */
@media (max-width: 460px) {
  .app-header .logo span { display: none; }
}

/* phones: the app bar carries back arrow + wordmark + profile + pill, so
   drop the flex:1 side-balancing and tighten spacing to stop items squishing */
@media (max-width: 560px) {
  .app-header { padding: 20px 14px 14px; }
  .app-header .nav-bar { padding: 0 12px; gap: 8px; }
  .app-header .nav-links,
  .app-header .nav-right { flex: 0 0 auto; }
  .app-header .nav-right { gap: 8px; }
  .app-header .btn-pill { padding: 11px 16px; font-size: 13.5px; letter-spacing: 0; }
}
