/* ── [hidden] guard ── */
[hidden] { display: none !important; }

/* ── Nav fixes: keep + Add wedding always reachable ── */
.nav-inner {
  height: auto;
  min-height: 56px;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.nav-links { gap: 8px; flex-wrap: wrap; align-items: center; }
.nav-user-email { font-size: 0.75rem; color: var(--muted); font-family: 'Inter', sans-serif; }

/* hide export/import on small screens so add button is always visible */
@media (max-width: 600px) {
  #exportDropdown, #importBtn { display: none; }
  .app-wordmark { font-size: 0.62rem; }
}

/* ── Nav wordmark ── */
.app-wordmark {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

/* ── Hero ── */
.app-hero {
  padding: 22px 24px 20px;
  border-bottom: 1px solid var(--border-lt);
}

/* Headline + full-width squiggle under it */
.app-headline-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  margin-bottom: 8px;
}
.app-headline-wrap .app-headline { margin-bottom: 0; }
.app-headline-wrap .wavy-rule { width: 100%; height: 12px; }

.app-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.app-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 6vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
  white-space: nowrap;
}

.app-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0;
}

.app-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
}

/* ── Reminders (collapsible cards) ── */
.alerts-strip {
  background: transparent;
}

.alerts-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px 0;
}

.alerts-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: 99px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color .14s, background .14s;
}
.alerts-toggle:hover { border-color: var(--tan); }
.alerts-toggle.is-open { background: var(--sand); }

.alerts-chev { color: var(--muted); font-size: 0.6rem; line-height: 1; }
.alerts-note { font-size: 0.72rem; color: var(--muted); line-height: 1.5; margin: 10px 2px 0; }

.alerts-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.alerts-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--tan);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 600;
}

.alerts-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 12px;
  padding-bottom: 4px;
}
.alerts-track::-webkit-scrollbar { display: none; }

.alert-card {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-left: 3px solid var(--tan);
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow .14s, transform .14s;
}
.alert-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.alert-card.is-urgent { border-left-color: var(--sage); }

.alert-card-when {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tan-dk);
}
.alert-card.is-urgent .alert-card-when { color: var(--sage); }

.alert-card-couple {
  display: block;
  margin: 3px 0 8px;
  padding-right: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--ink);
}

.alert-card-pills { display: flex; flex-wrap: wrap; gap: 5px; }

.alert-pill {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--tan-dk);
  background: var(--tan-lt);
  border-radius: 99px;
  padding: 2px 9px;
}

.alert-card-x {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 50%;
  font-size: 1rem; line-height: 1; color: var(--muted);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.alert-card-x:hover { background: var(--sand); color: var(--ink); }

/* ── Summary panel ── */
/* ── Overview bar (under the hero) ── */
.overview-bar-wrap { max-width: 1100px; margin: 0 auto; padding: 18px 24px 0; }
.overview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: var(--tan-lt);                 /* soft sage tint, blends with the page */
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color .14s, background .14s;
}
.overview-bar:hover { border-color: var(--tan); }
.overview-bar-stats { font-size: 0.9rem; font-weight: 600; letter-spacing: .01em; color: var(--tan-dk); }
.overview-bar-arrow { color: var(--tan); font-size: 1.3rem; line-height: 1; }

.summary-modal {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  /* Cap height (accounting for status bar / tab bar) and scroll the body, so
     long couple/to-do lists are reachable. */
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 130px);
}
.summary-head { flex: 0 0 auto; }
.summary-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ── Map view ── */
.map-modal { max-width: 900px; }
.map-box {
  width: 100%;
  height: 60vh;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-lt);
  background: var(--sand);
}
.map-status {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.map-caption {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}
/* sage teardrop pin */
.wt-pin {
  display: block;
  width: 18px; height: 18px;
  border-radius: 50% 50% 50% 0;
  background: var(--sage);
  border: 2px solid var(--white);
  transform: rotate(-45deg);
  box-shadow: 0 1px 4px rgba(20, 14, 6, .4);
}
.leaflet-popup-content { font-family: 'Inter', sans-serif; font-size: 0.84rem; line-height: 1.45; color: var(--ink); }

/* Always-on couple-name label next to each pin */
.wt-pin-label.leaflet-tooltip {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(20, 14, 6, .18);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 1px 7px;
}
.wt-pin-label.leaflet-tooltip::before { display: none; }  /* hide the little arrow */

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-lt);
}
.summary-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400; color: var(--ink); }

.sum-stats {
  display: flex;
  margin-bottom: 24px;
}
.sum-stat {
  flex: 1;
  padding: 4px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sum-stat:first-child { padding-left: 0; }
.sum-stat + .sum-stat { border-left: 1px solid var(--border-lt); }
.sum-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 300; line-height: 1; color: var(--tan); }
.sum-stat-label { font-size: 0.64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.sum-exp-head-right { display: inline-flex; align-items: center; gap: 10px; }
.sum-toggle {
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 11px;
  border-radius: 99px;
}
.sum-toggle:hover { border-color: var(--tan); color: var(--tan-dk); }

.sum-section { margin-bottom: 22px; }
.sum-section:last-child { margin-bottom: 0; }

/* City/State autocomplete dropdown (custom — iOS datalist is unreliable) */
.city-ac { position: relative; }
.city-ac-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  z-index: 60;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  max-height: 244px;
  overflow-y: auto;
  padding: 4px;
}
.city-ac-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 12px;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}
.city-ac-item:hover, .city-ac-item.is-active { background: var(--tan-lt); }

/* Share-my-season card button (Overview panel) */
.sum-share { padding-bottom: 16px; border-bottom: 1px solid var(--border-lt); text-align: center; }
.sum-share-btn {
  display: inline-block;
  background: var(--tan-lt);
  color: var(--tan-dk);
  border: 1px solid var(--border-lt);
  border-radius: 99px;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .13s, border-color .13s;
}
.sum-share-btn:hover:not(:disabled) { background: var(--sage-lt); border-color: var(--tan); }
.sum-share-btn:disabled { opacity: 0.6; cursor: default; }
.sum-share .sum-section-note { margin: 7px 0 0; text-align: center; font-size: 0.72rem; }

.sum-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sum-section-note {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
  margin: -4px 0 12px;
}
.sum-count {
  background: var(--tan-lt);
  color: var(--tan-dk);
  border-radius: 99px;
  padding: 1px 9px;
  font-size: 0.68rem;
}
.sum-total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.sum-list { display: flex; flex-direction: column; gap: 2px; }

/* Simple couple-name list (Total / Upcoming stat tiles) */
.sum-names { display: flex; flex-direction: column; }
.sum-name {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 2px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border-lt);
  text-decoration: none;
}
.sum-name:last-child { border-bottom: none; }
.sum-name-couple { font-family: 'Cormorant Garamond', serif; font-size: 1.18rem; color: var(--ink); }
.sum-name-date { font-family: 'Inter', sans-serif; font-size: 0.78rem; color: var(--muted); white-space: nowrap; flex: none; }
.sum-name:hover .sum-name-couple { color: var(--sage); }
.sum-name:active { background: var(--bg); }

.sum-todo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .12s;
}
.sum-todo:hover { background: var(--sand); }
.sum-todo-box {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  border: 1.5px solid var(--tan);
  border-radius: 5px;
}
.sum-todo-label { flex: 1; font-size: 0.9rem; color: var(--ink); }
.sum-todo-who { font-size: 0.78rem; color: var(--muted); }

.sum-exp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 8px;
  border-bottom: 1px solid var(--border-lt);
}
.sum-exp:last-child { border-bottom: none; }
.sum-exp-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sum-exp-desc { font-size: 0.9rem; color: var(--ink); }
.sum-exp-who { font-size: 0.76rem; color: var(--muted); }
.sum-exp-amt { font-size: 0.9rem; font-weight: 600; color: var(--ink); white-space: nowrap; }

.sum-empty {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 6px 2px;
}

/* ── Email auto-import ── */
.import-banner { margin-bottom: 14px; }
.import-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tan-lt);
  border: 1px solid var(--tan);
  border-radius: 12px;
  padding: 10px 10px 10px 14px;
}
.import-banner-text {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tan-dk);
}
.import-banner-btn {
  flex: 0 0 auto;
  border: none; cursor: pointer;
  background: var(--tan); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600;
  padding: 8px 16px; border-radius: 99px;
}
.import-banner-btn:hover { background: var(--tan-dk); }

/* "Check now" refresh in the Auto-import panel */
.import-head-end { display: inline-flex; align-items: center; gap: 8px; }
.import-refresh {
  font-family: 'Inter', sans-serif; font-size: 0.76rem; font-weight: 600;
  color: var(--sage); background: none; border: 1px solid var(--border);
  border-radius: 99px; padding: 4px 11px; cursor: pointer;
}
.import-refresh:hover { background: var(--tan-lt); }
.import-refresh:disabled { opacity: .6; cursor: default; }


.import-setup {
  background: var(--sand);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.import-setup-lbl { font-size: 0.86rem; color: var(--ink); margin-bottom: 10px; }
.import-addr-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.import-addr {
  flex: 1; min-width: 0;
  font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem;
  background: var(--white); border: 1px solid var(--border-lt); border-radius: 8px;
  padding: 8px 10px; color: var(--ink); word-break: break-all;
}
.import-copy {
  flex: 0 0 auto; border: none; cursor: pointer;
  background: var(--tan); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
}
.import-hint { font-size: 0.76rem; color: var(--muted); line-height: 1.5; margin-top: 10px; }

.import-how { margin-bottom: 20px; }
.import-how-title {
  font-size: 0.72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.import-how-steps {
  margin: 0 0 0 1.1rem; padding: 0;
  display: flex; flex-direction: column; gap: 7px;
  font-size: 0.86rem; line-height: 1.45; color: var(--ink);
}
.import-how-steps li { padding-left: 4px; }
.import-how-steps b { font-weight: 600; }
.import-how .import-hint { margin-top: 12px; }

/* One-time Gmail auto-forward setup (collapsible) */
.import-auto {
  margin-top: 14px; border: 1px solid var(--border-lt); border-radius: 10px;
  background: var(--tan-lt); overflow: hidden;
}
.import-auto-summary {
  cursor: pointer; list-style: none; user-select: none;
  font-size: 0.82rem; font-weight: 600; color: var(--tan-dk);
  padding: 11px 14px;
}
.import-auto-summary::-webkit-details-marker { display: none; }
.import-auto[open] .import-auto-summary { border-bottom: 1px solid var(--border-lt); }
.import-auto-body { padding: 12px 14px 14px; }
.import-auto-body .import-how-steps { margin-top: 4px; }
.import-auto-body .import-hint:first-child { margin-top: 0; }
.import-inline {
  font-family: ui-monospace, Menlo, monospace; font-size: 0.78rem;
  background: var(--white); border: 1px solid var(--border-lt); border-radius: 5px;
  padding: 1px 5px; color: var(--ink); word-break: break-all;
}

/* Forwarding-verification suggestion */
.sug-card--verify { border-color: var(--tan); background: var(--tan-lt); }
.sug-type--verify { background: var(--tan); color: var(--white); }
.sug-code-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sug-code {
  flex: 1; font-family: ui-monospace, Menlo, monospace; font-weight: 700;
  font-size: 1.1rem; letter-spacing: .06em; color: var(--ink);
  background: var(--white); border: 1px solid var(--border-lt); border-radius: 8px;
  padding: 8px 12px; text-align: center;
}
a.sug-apply { text-align: center; text-decoration: none; line-height: 1.4; }

.sug-list { display: flex; flex-direction: column; gap: 10px; }
.sug-card {
  border: 1px solid var(--border-lt); border-radius: 12px;
  padding: 12px 14px; background: var(--white);
}
.sug-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sug-type {
  font-size: 0.64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px;
  background: var(--tan-lt); color: var(--tan-dk);
}
.sug-conf { font-size: 0.72rem; color: var(--muted); }
.sug-summary { font-size: 0.9rem; color: var(--ink); line-height: 1.4; margin-bottom: 10px; }
.sug-wed-lbl { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.sug-wed {
  width: 100%; margin-bottom: 10px;
  font-family: 'Inter', sans-serif; font-size: 0.86rem;
  padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); color: var(--ink);
}
.sug-actions { display: flex; gap: 8px; }
.sug-apply, .sug-dismiss {
  flex: 1; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.84rem; font-weight: 600;
  padding: 9px 12px; border-radius: 8px;
}
.sug-apply { background: var(--tan); color: var(--white); }
.sug-dismiss { background: var(--sand); color: var(--muted); }

/* ── Roster section ── */
.app-roster { padding: 48px 24px 80px; }

.app-roster-inner { max-width: 1100px; margin: 0 auto; }

.roster-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.roster-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 300;
  color: var(--ink);
}

/* Whimsical wavy divider — echoes the app-icon stamp edge */
.wavy-rule { display: block; color: var(--tan); }
.wavy-rule path {
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.roster-title-wrap { display: inline-flex; flex-direction: column; align-items: stretch; gap: 7px; }
.roster-title-wrap .wavy-rule { width: 100%; height: 9px; }
.wavy-rule--center { width: 170px; height: 11px; margin: 6px auto 14px; }

.roster-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Search ── */
.search-input {
  padding: 7px 12px 7px 30px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%237A7068' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E")
    no-repeat 9px center / 13px 13px;
  width: 180px;
  outline: none;
  transition: border-color .14s;
}

.search-input:focus { border-color: var(--tan); }
.search-input::-webkit-search-cancel-button { cursor: pointer; }

/* ── Filter tabs ── */
.dash-filters { display: flex; gap: 4px; }

.filter-btn {
  padding: 5px 13px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
}
.filter-btn:hover  { border-color: var(--sage); color: var(--sage); }
.filter-btn.active { background: var(--sage); border-color: var(--sage); color: var(--white); }

.sort-select {
  padding: 6px 13px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.sort-select:hover  { border-color: var(--sage); color: var(--sage); }
.sort-select:focus  { outline: none; border-color: var(--sage); }

/* Toggle switch (e.g. "Show related events") */
.switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px; height: 24px;
  border: none; border-radius: 999px;
  background: var(--border); cursor: pointer; padding: 0;
  transition: background .18s ease;
}
.switch.is-on { background: var(--tan); }
.switch-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: transform .18s ease;
}
.switch.is-on .switch-knob { transform: translateX(18px); }

/* Calendar */
.cal-btn {
  padding: 6px 13px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.cal-btn:hover { border-color: var(--sage); color: var(--sage); }

.cal-modal { max-width: 700px; max-height: calc(100dvh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  margin-bottom: 16px;
}
.cal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  min-width: 190px;
  text-align: center;
}
.cal-nav {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.cal-nav:hover { border-color: var(--sage); color: var(--sage); }
.cal-close { position: absolute; right: 0; top: 0; }

.cal-weekdays, .cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-weekdays { margin-bottom: 4px; }
.cal-wd {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 4px 0;
}
.cal-days { gap: 4px; }
.cal-cell {
  min-height: 64px;
  min-width: 0;
  border: 1px solid var(--border-lt);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--white);
  overflow: hidden;
}
.cal-cell--empty { border: none; background: transparent; }
.cal-cell--weekend { background: var(--sand); }
.cal-cell--wedding { background: var(--tan-lt); border-color: var(--tan); }
.cal-cell--event { border-color: var(--border); }
.cal-cell--today { box-shadow: inset 0 0 0 1.5px var(--sage); }
.cal-daynum { font-size: 0.7rem; font-weight: 500; color: var(--muted); }
.cal-cell--today .cal-daynum { color: var(--sage); font-weight: 700; }
.cal-event {
  display: block;
  font-size: 0.64rem;
  line-height: 1.25;
  border-radius: 4px;
  padding: 2px 5px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-event--wedding { background: var(--tan); color: var(--white); }
.cal-event--wedding:hover { background: var(--tan-dk); }
.cal-event--event {
  background: var(--tan-lt);
  color: var(--tan-dk);
  border: 1px solid var(--border);
}
.cal-event--event:hover { background: var(--sand); }
/* Multi-day (weekend) event: a continuous solid band — label on the first day,
   full-height bars on the rest, with squared inner corners so Fri–Sun read as
   one span. */
.cal-event--span-start { border-radius: 4px 0 0 4px; }
.cal-event--span-mid   { border-radius: 0; min-height: 16px; }
.cal-event--span-end   { border-radius: 0 4px 4px 0; min-height: 16px; }

/* Readable list of the month's events under the grid */
.cal-list {
  margin-top: 14px;
  border-top: 1px solid var(--border-lt);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cal-list-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 6px 6px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}
.cal-list-item:hover { background: var(--tan-lt); }
.cal-list-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; align-self: center; }
.cal-list-dot--wedding { background: var(--tan); }
.cal-list-dot--event   { background: var(--border); }
.cal-list-dot--bach    { background: var(--amber); }
.cal-list-date {
  font-family: 'Inter', sans-serif; font-size: 0.74rem; font-weight: 600;
  color: var(--muted); flex: none; min-width: 38px;
}
.cal-list-label { font-size: 0.86rem; color: var(--ink); line-height: 1.3; }
.cal-legend {
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cal-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--tan);
  display: inline-block;
}
.cal-legend-dot--event {
  background: var(--tan-lt);
  border: 1px solid var(--border);
}

/* ── View toggle ── */
.view-toggle { display: flex; gap: 0; border: 1.5px solid var(--border); border-radius: 7px; overflow: hidden; }

.view-btn {
  padding: 5px 13px;
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background .13s, color .13s;
  border-right: 1px solid var(--border);
}
.view-btn:last-child { border-right: none; }
.view-btn:hover  { background: var(--sand); color: var(--ink); }
.view-btn.active { background: var(--sage); color: var(--white); }

/* ── Card grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

/* ── Wedding card ── */
.w-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-top: 3px solid var(--sage);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
}

.w-card:hover {
  box-shadow: 0 4px 20px rgba(95,138,110,.12);
  transform: translateY(-2px);
}

/* Soft header — white with faint sage tint */
.w-card-top {
  background: var(--tan-dk);          /* darker green bar */
  padding: 8px 16px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.10);
}
.w-card-top-end { display: flex; align-items: center; gap: 9px; }

.w-card-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--bg);                   /* cream on green */
  position: relative;
  z-index: 1;
}

/* Couple monogram (e.g. "K & A") — cream, right side of the banner */
.w-card-initial {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(243,241,233,.85);       /* soft cream */
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.w-card-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(243,241,233,.7);        /* cream on green */
  position: relative;
  z-index: 1;
  letter-spacing: .04em;
}

.w-card-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

/* Star toggle (cards + list) */
.star {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  color: var(--faint);
  transition: color .12s, transform .12s;
}
.star:hover { color: #E0A92E; transform: scale(1.12); }
.star.is-starred { color: #E0A92E; }
.w-card-star { font-size: 1.05rem; color: rgba(243,241,233,.7); }  /* visible on green */
.wl-star { font-size: 1rem; flex: none; }

/* Status accent colours */
.w-card--upcoming { border-top-color: var(--sage); }
.w-card--today    { border-top-color: #a3c47a; }
.w-card--past     { border-top-color: var(--border); opacity: .82; }
.w-card--declined { border-top-color: var(--border); opacity: .7; }

.w-card--today .w-card-top { background: var(--sage); }  /* deeper green for today */
.w-card--past .w-card-top,
.w-card--declined .w-card-top { background: var(--tan); }  /* lighter green for past */

/* Hero banner left side: star/number + date on one row */
.w-card-top-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.w-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}
.w-card-top-left .w-card-date { white-space: nowrap; }
.w-card-cd {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--tan-lt);
  color: var(--tan-dk);
  white-space: nowrap;
}
.w-card-cd--soon  { background: var(--bg); color: var(--tan-dk); }  /* cream pill on green */
.w-card-cd--today { background: #E0A92E; color: var(--white); }
.w-card-top--photo .w-card-cd { box-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* Readiness strip — small pills for RSVP / Gift / Outfit / Travel / Stay */
.w-ready {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border-lt);
}
.w-ready-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--sand);
  color: var(--faint);
  border: 1px solid transparent;
}
.w-ready-pill.is-done {
  background: var(--tan-lt);
  color: var(--tan-dk);
  border-color: var(--tan);
}
.w-ready-check { font-size: 0.58rem; line-height: 1; }
.w-ready--allset { margin-top: 14px; padding-top: 13px; }
.w-ready-allset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--sage);
}

/* Card body */
.w-card-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.w-card-body-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.w-couple {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.w-card-menu {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .14s;
  flex-shrink: 0;
  margin-left: 6px;
  margin-top: 3px;
}

.w-card:hover .w-card-menu { opacity: 1; }

.btn-bare {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.7rem;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .12s, color .12s;
}
.btn-bare:hover { background: var(--sand); color: var(--ink); }
.btn-bare.del:hover { background: #fdf0ef; color: #b03a2e; border-color: #e8b4b0; }
/* Share gets a soft sage accent so it reads as the friendly, primary action. */
.btn-bare.share { color: var(--tan); border-color: var(--border); }
.btn-bare.share:hover { background: var(--tan-lt); color: var(--tan-dk); border-color: var(--tan); }

.w-card-website {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--tan);
  text-decoration: none;
  letter-spacing: .02em;
  margin-bottom: 8px;
  transition: color .13s;
}
.w-card-website:hover { color: var(--tan-dk); text-decoration: underline; }

.w-location {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Card related events (collapsed behind a toggle by default) */
.w-card-events {
  margin-bottom: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-lt);
}
.w-events-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.w-detail-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.w-events-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--tan-dk);
  background: var(--tan-lt);
  border-radius: 99px;
  padding: 2px 7px;
}
.w-events-caret {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--faint);
  transition: transform .15s ease;
}
.w-card-events.is-open .w-events-caret { transform: rotate(180deg); }
.w-events-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 9px;
}
.w-event-row { display: flex; flex-direction: column; gap: 1px; }
.w-event-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.w-event-when {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.76rem;
}
.w-event-meta {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

/* Plus-one tag (list view) */
.plus-one-tag {
  color: #4a6b57;
  background: #e6f0e9;
  border-color: #c4ddcd;
}

/* Standalone related-event cards (tied to a wedding) */
.w-card--event { border-left: 3px solid var(--tan); }
.w-card-top--event {
  background: var(--tan-lt);
  align-items: center;
}
.w-event-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tan);
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: 999px;
  padding: 2px 8px;
  position: relative;
  z-index: 1;
}
/* ── Bach-trip accents (gold, to stand apart from the sage weddings) ── */
.w-event-row--bach .w-event-name { color: var(--amber); font-weight: 600; }
.w-event-bach { font-size: 0.9rem; }
.w-card--bach { border-left-color: var(--amber); }
.w-card--bach .w-card-top--event { background: var(--amber-lt); }
.w-event-badge--bach {
  color: var(--white);
  background: var(--amber);
  border-color: var(--amber);
  letter-spacing: .06em;
}
.cal-event--bach {
  background: var(--amber-lt);
  color: var(--amber);
}
.cal-event--bach:hover { background: #e7d9bd; }

/* ── Home: next bach trip glance ── */
.home-bach {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  margin-top: 10px;
  border-radius: 14px;
  background: var(--amber-lt);
  border: 1px solid #dbbf8a;
  text-decoration: none;
  transition: filter .12s;
}
.home-bach:hover { filter: brightness(0.98); }
.home-bach-emoji { font-size: 1.3rem; flex: none; }
.home-bach-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.home-bach-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
}
.home-bach-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}
.home-bach-meta {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 1px;
}
.home-bach-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  flex: none;
  text-align: right;
  align-self: flex-start;
}

.w-event-parent {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 4px;
}
.wl-num--event { color: var(--tan); text-align: center; font-size: 1rem; }
.wl-event-parent { color: var(--muted); font-style: italic; font-size: 0.82rem; }
.event-card-check { margin-top: 10px; }

/* Card footer: dress code · events */
.w-card-footer-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 10px;
  border-top: 1px solid var(--border-lt);
  margin-top: auto;
}

/* ── List view ── */
.list-view {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  overflow: hidden;
}

.w-list-row {
  display: grid;
  grid-template-columns: 32px 1fr 130px 130px 100px 110px 80px;
  align-items: center;
  gap: 0 16px;
  padding: 14px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--border-lt);
  cursor: pointer;
  transition: background .12s;
}

.w-list-row:last-child { border-bottom: none; }
.w-list-row:hover { background: #faf8f5; }

.wl-num {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--faint);
  font-family: 'Inter', sans-serif;
  letter-spacing: .04em;
}

.wl-couple {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  align-items: center;
  flex-wrap: wrap;          /* tags drop below the name when space is tight */
  gap: 6px;
}
.wl-couple-name {
  flex: 1 1 auto;           /* take the line; never collapse to nothing */
  min-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-website {
  flex: none;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1;
}
.wl-website:hover { opacity: 0.7; }

/* Wedding party tag + form checkbox */
.party-tag {
  display: block;
  width: fit-content;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a6d3b;
  background: #f6ecd8;
  border: 1px solid #e6d3a8;
  border-radius: 999px;
  padding: 3px 9px;
  margin: 0 0 8px;
  white-space: nowrap;
}
.party-tag--sm {
  flex: none;
  font-size: 0.55rem;
  padding: 2px 7px;
  margin: 0;
}
/* Plus-one tag — sage, to distinguish from the gold wedding-party tag */
.party-tag--plus { color: var(--tan-dk); background: var(--tan-lt); border-color: var(--tan); }

.checkbox-hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 6px 0 0 26px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--ink);
}
.checkbox-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--tan);
  cursor: pointer;
}

/* Related events editor (modal form) */
.form-events-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.4;
}
.form-more-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.45;
}
.form-events-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.form-events-empty { font-size: 0.82rem; color: var(--faint); padding: 4px 0; }
.form-event-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: 8px;
}
.form-event-name { font-size: 0.86rem; color: var(--ink); flex: 1; min-width: 0; }
.form-event-date { font-size: 0.76rem; color: var(--muted); white-space: nowrap; }
.form-event-del {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--faint);
  padding: 0 2px;
}
.form-event-del:hover { color: #b03a2e; }
.form-events-add { display: flex; gap: 8px; align-items: center; }
.form-events-add #formEventName { flex: 1; }
.form-events-add #formEventDate { flex: 0 0 auto; width: 150px; }

.wl-date, .wl-loc {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wl-countdown {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.wl-countdown--future { background: var(--sage-lt); color: var(--sage); }
.wl-countdown--today  { background: var(--tan-lt);  color: var(--tan); }
.wl-countdown--past   { background: var(--sand);    color: var(--muted); }

.wl-rsvp {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.wl-rsvp--attending { color: var(--sage); }
.wl-rsvp--not_sent  { color: var(--amber); }

.wl-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .13s;
}
.w-list-row:hover .wl-actions { opacity: 1; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  max-width: 360px;
  margin: 0 auto;
}
.empty-icon  { font-size: 2.4rem; margin-bottom: 20px; opacity: .6; }
.empty-state h2 { font-size: 1.4rem; margin-bottom: 10px; }
.empty-state p  { color: var(--muted); font-size: 0.88rem; margin-bottom: 28px; line-height: 1.65; }

/* ── Small button ── */
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }

/* ── Export dropdown ── */
.export-dropdown { position: relative; }

.export-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 4px;
  z-index: 300;
  min-width: 155px;
}
.export-menu button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; padding: 8px 13px;
  font-family: 'Inter', sans-serif; font-size: 0.84rem;
  color: var(--ink); border-radius: 5px; cursor: pointer;
  transition: background .12s;
}
.export-menu button:hover { background: var(--sand); }

/* ── Filters dropdown ── */
.filters-dd { position: relative; }
.filters-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.filters-chev { font-size: 0.58rem; color: var(--muted); }

/* Dot shown when a non-default filter is active */
.filters-dot {
  position: absolute;
  top: -3px; right: -3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--tan);
  border: 1.5px solid var(--bg);
  opacity: 0;
}
.filters-btn.has-filter .filters-dot { opacity: 1; }

.filters-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;                        /* anchor to the button's right edge so it stays on-screen */
  left: auto;
  width: 248px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
  z-index: 300;
}

.filters-group { margin-bottom: 16px; }
.filters-group:last-child { margin-bottom: 0; }

.filters-group-label {
  display: block;
  font-size: 0.62rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}

.filters-hint { font-size: 0.7rem; color: var(--faint); line-height: 1.4; margin-top: 8px; }

.filters-group--row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.filters-group--row .filters-group-label { margin-bottom: 0; }

/* Controls fill the menu width */
.filters-menu .dash-filters { gap: 6px; flex-wrap: wrap; }
.filters-menu .dash-filters .filter-btn { flex: 0 1 auto; white-space: nowrap; }
.filters-menu .sort-select { width: 100%; }
/* In the Filters menu there are several layouts — wrap them as pills instead of
   a single segmented row (which overflowed and clipped the last options). */
.filters-menu .view-toggle {
  width: 100%; flex-wrap: wrap; gap: 6px;
  border: none; border-radius: 0; overflow: visible;
}
.filters-menu .view-toggle .view-btn {
  flex: 0 0 auto;
  border: 1px solid var(--border); border-radius: 99px; padding: 6px 13px;
}

/* Compact the Filters menu (smaller controls/spacing) */
.filters-menu { padding: 13px; }
.filters-menu .filters-group { margin-bottom: 11px; }
.filters-menu .filters-group-label { margin-bottom: 5px; font-size: 0.58rem; }
.filters-menu .dash-filters { gap: 5px; }
.filters-menu .view-toggle { gap: 5px; }
.filters-menu .filter-btn,
.filters-menu .view-toggle .view-btn { padding: 4px 10px; font-size: 0.72rem; }
.filters-menu .sort-select { padding: 6px 10px; font-size: 0.76rem; }
.filters-menu .filters-hint { font-size: 0.64rem; margin-top: 6px; }

/* ── Modal overlay ── */
/* ── Paywall modal ── */
.paywall-modal { text-align: center; position: relative; }
.paywall-emoji { font-size: 2.4rem; margin: 4px 0 6px; }
.paywall-title { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--ink); margin: 0 0 8px; }
.paywall-sub { font-size: 0.92rem; color: var(--muted); line-height: 1.5; margin: 0 auto 18px; max-width: 360px; }
.paywall-actions { display: flex; flex-direction: column; gap: 10px; }
.paywall-actions .btn { width: 100%; }
.paywall-note { font-size: 0.84rem; color: var(--muted); margin: 0 0 4px; }
.paywall-restore {
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600;
  color: var(--tan-dk); text-decoration: underline; padding: 4px;
}
.paywall-terms { font-size: 0.72rem; color: var(--faint); line-height: 1.45; margin: 14px 0 0; }
.paywall-terms a { color: var(--tan-dk); }

/* ── Add chooser (scan a save-the-date vs. enter manually) ── */
.add-chooser { text-align: center; border: 3.5px solid var(--tan-dk); }
.add-chooser-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; margin: 4px 0 6px; color: var(--ink); }
.add-chooser-sub { font-size: 0.88rem; color: var(--muted); margin: 0 0 16px; }
.add-choices { display: flex; gap: 12px; }
.add-choice {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  text-align: center; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--tan);
  border-radius: 16px; padding: 20px 12px;
  transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}
.add-choice:hover { background: var(--tan-lt); box-shadow: var(--shadow-sm); }
.add-choice:active { transform: scale(0.985); }
.add-choice-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--tan-lt); color: var(--tan-dk);
}
.add-choice:hover .add-choice-ico { background: var(--white); }
.add-choice-ico svg { width: 22px; height: 22px; }
.add-choice-h {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.82rem;
  line-height: 1.3; letter-spacing: .01em; color: var(--ink);
}

/* Stop the page-level pull-to-refresh (a pull-down reload would wipe an
   in-progress form). overscroll-behavior caps it; modal-open locks the
   background scroll entirely while any overlay is open. */
html, body { overscroll-behavior-y: contain; }
body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,14,8,.45);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  animation: fadeIn .14s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: min(620px, calc(100vw - 32px)); /* never wider than the screen on mobile */
  margin: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: slideUp .16s ease;
  overflow-x: hidden;
}

.modal--sm { max-width: 380px; }

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-lt);
}

.modal-header h2 { font-size: 1.35rem; }

.modal-close {
  background: none; border: none; font-size: 1.3rem;
  color: var(--muted); cursor: pointer; line-height: 1;
  padding: 4px 6px; border-radius: 5px; transition: background .12s;
}
.modal-close:hover { background: var(--sand); color: var(--ink); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-lt);
}

/* ── Form ── */
.modal-form { display: flex; flex-direction: column; }

.form-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 18px 0 10px;
}
.form-section-label:first-of-type { margin-top: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field label { font-size: 0.8rem; font-weight: 500; color: var(--ink); }
.field-hint { font-size: 0.73rem; color: var(--faint); font-weight: 400; }
.field-hint-text { font-size: 0.73rem; color: var(--faint); margin-top: 4px; }
.req { color: var(--tan); }

.field input,
.field select,
.field textarea {
  padding: 9px 11px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .14s;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--tan); }
.field input.invalid,
.field select.invalid { border-color: #b03a2e; }
.field-imported { border-color: var(--sage) !important; background: #f6fbf8 !important; }

.form-error {
  background: #fdf0ef; border: 1px solid #e8b4b0;
  border-radius: 7px; padding: 9px 13px;
  font-size: 0.83rem; color: #b03a2e; margin-bottom: 10px;
}

/* ── Colour palette picker ── */
.color-palette-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.color-swatch-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.color-swatch-wrap input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.color-swatch-preview {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: block;
  cursor: pointer;
  transition: opacity .14s, border-color .14s;
}
.color-swatch-wrap:hover .color-swatch-preview { border-color: var(--tan); }

.color-clear-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--faint);
  cursor: pointer;
  padding: 0 3px;
  line-height: 1;
  transition: color .12s;
}
.color-clear-btn:hover { color: #b03a2e; }

/* ── Zola import ── */
.zola-import {
  background: var(--sand);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.zola-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 9px;
}
.zola-row { display: flex; gap: 8px; }
.zola-row input[type="url"] {
  flex: 1; padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: 7px; font-size: 0.86rem; font-family: 'Inter', sans-serif;
  color: var(--ink); background: var(--white); outline: none;
  transition: border-color .14s; min-width: 0;
}
.zola-row input[type="url"]:focus { border-color: var(--tan); }

.zola-status {
  margin-top: 9px; font-size: 0.8rem; border-radius: 6px;
  padding: 7px 11px; line-height: 1.5;
}
.zola-status--loading { color: var(--muted);  background: var(--white);    border: 1px solid var(--border); }
.zola-status--success { color: var(--sage);   background: var(--sage-lt);  border: 1px solid #b8d9c5; }
.zola-status--partial { color: var(--amber);  background: var(--amber-lt); border: 1px solid #dbbf8a; }
.zola-status--error   { color: #b03a2e;       background: #fdf0ef;         border: 1px solid #e8b4b0; }

/* ── Photo upload ── */
.photo-upload-area {
  position: relative; border: 2px dashed var(--border); border-radius: 8px;
  overflow: hidden; background: var(--sand); min-height: 76px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .14s;
}
.photo-upload-area:hover { border-color: var(--tan); }
#photoInput { display: none; }
.photo-preview-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.photo-upload-label {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; cursor: pointer; z-index: 1;
}
.photo-preview-img:not([hidden]) ~ .photo-upload-label {
  inset: auto 0 0; height: 34px; background: rgba(0,0,0,.32);
}
.photo-upload-label span { font-size: 0.82rem; color: var(--muted); text-align: center; padding: 8px; pointer-events: none; }
.photo-preview-img:not([hidden]) ~ .photo-upload-label span { color: rgba(255,255,255,.9); font-size: 0.76rem; }
.photo-remove-btn { margin-top: 6px; }

/* ── Couple photo upload (form) ── */
.couple-photo-upload-area {
  position: relative; border: 2px dashed var(--border); border-radius: 8px;
  overflow: hidden; background: var(--sand); height: 52px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .14s;
}
.couple-photo-upload-area:hover { border-color: var(--tan); }
#couplePhotoInput { display: none; }
.couple-photo-preview-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.couple-photo-upload-label {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; gap: 6px; cursor: pointer; z-index: 1;
}
.couple-photo-preview-img:not([hidden]) ~ .couple-photo-upload-label {
  inset: auto 0 0; height: 24px; background: rgba(0,0,0,.32);
}
.couple-photo-upload-icon { font-size: 0.85rem; pointer-events: none; }
#couplePhotoUploadText { font-size: 0.78rem; color: var(--muted); pointer-events: none; }
.couple-photo-preview-img:not([hidden]) ~ .couple-photo-upload-label .couple-photo-upload-icon,
.couple-photo-preview-img:not([hidden]) ~ .couple-photo-upload-label #couplePhotoUploadText {
  color: rgba(255,255,255,.9); font-size: 0.72rem;
}

/* ── Card couple photo ── */
.w-card-top--photo {
  background-size: cover;
  background-position: center 20%;
  min-height: 130px;
  position: relative;
}
.w-card-top--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
.w-card-top--photo .w-card-date,
.w-card-top--photo .w-card-num {
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  position: relative;
  z-index: 1;
}

/* ── New modal styles ── */
.modal-header--clean {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 6px;
  align-items: flex-start;
}

.modal-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Filled input style */
.fi {
  display: block;
  width: 100%;
  padding: 11px 14px;
  background: var(--sand);
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color .14s, background .14s;
  resize: vertical;
}

.fi:focus {
  background: var(--white);
  border-color: var(--sage);
}

.fi.invalid { border-color: #b03a2e !important; }

/* Bold form labels */
.flabel {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
  display: block;
}

.fopt {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Zola block */
.zola-block {
  background: var(--sand);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.zola-block-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.zola-spark { color: var(--sage); margin-right: 3px; }

.std-scan-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: -2px 0 10px;
  line-height: 1.4;
}

.zola-input-row { display: flex; gap: 10px; align-items: center; }

.zola-url-wrap { position: relative; flex: 1; }

.zola-url-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
}

.zola-url-input {
  width: 100%;
  padding: 9px 12px 9px 32px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.86rem;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color .14s;
}

.zola-url-input:focus { border-color: var(--sage); }

.zola-autofill-btn {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color .12s, background .12s;
}

.zola-autofill-btn:hover { color: var(--sage); background: rgba(95,138,110,.08); }
.zola-autofill-btn:disabled { opacity: .5; }

/* More details toggle */
.more-details-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 0 6px;
  transition: color .12s;
}

.more-details-toggle:hover { color: var(--ink); }
.more-details-arrow { font-size: 0.7rem; }

/* Form action buttons */
.modal-actions--form {
  border-top: 1px solid var(--border-lt);
  padding-top: 18px;
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-form-cancel {
  padding: 10px 22px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .13s;
}

.btn-form-cancel:hover { border-color: var(--muted); }

.btn-form-submit {
  padding: 10px 26px;
  border-radius: 7px;
  border: none;
  background: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  cursor: pointer;
  transition: background .13s;
}

.btn-form-submit:hover { background: var(--tan-dk); }

/* ── Delete confirm ── */
.delete-msg { font-size: 0.92rem; color: var(--muted); margin-bottom: 20px; line-height: 1.55; }
.btn-danger { background: #b03a2e; color: var(--white); border: none; }
.btn-danger:hover { background: #922f25; }

/* ── Responsive ── */

@media (max-width: 560px) {
  .app-hero { padding: 22px 16px 28px; }
  .app-hero-inner { flex-direction: column; align-items: flex-start; }
  .app-roster { padding: 32px 16px 60px; }
  .roster-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  /* Search + Filters share one row to keep more weddings in view. */
  .roster-controls { gap: 8px; width: 100%; flex-wrap: nowrap; }
  .search-input { flex: 1 1 auto; width: auto; min-width: 0; }
  .filters-dd { flex: 0 0 auto; }
  .filters-btn { width: auto; white-space: nowrap; }
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 20px 16px; }
  .zola-row { flex-direction: column; }
  /* Two-line list row: couple + countdown on top, date · city · RSVP below */
  .w-list-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "couple couple countdown"
      "date   loc    rsvp";
    gap: 3px 8px;
    padding: 12px 16px;
  }
  .wl-num { display: none; }
  .wl-couple { grid-area: couple; font-size: 1.12rem; flex-wrap: wrap; }
  .wl-countdown { grid-area: countdown; align-self: center; justify-self: end; }
  .wl-date { grid-area: date; display: block; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
  .wl-loc  { grid-area: loc;  display: block; font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wl-rsvp { grid-area: rsvp; display: block; font-size: 0.72rem; justify-self: end; white-space: nowrap; }
  .wl-actions { display: none; }
  .btn-sm { font-size: 0.75rem; padding: 6px 10px; }

  /* Touch has no hover: keep the card menu visible, but pared down to just
     Share (Edit/Remove still live on the detail page) so cards stay clean. */
  .w-card-menu { opacity: 1; }
  .w-card-menu .edit, .w-card-menu .del { display: none; }

  /* Calendar fits a phone width */
  .cal-modal { padding: 20px 12px; }
  .cal-cell { min-height: 50px; padding: 3px; }
  .cal-daynum { font-size: 0.62rem; }
  .cal-event { font-size: 0.55rem; padding: 1px 3px; }
  .cal-days { gap: 3px; }
}

/* ── Home view (landing) ── */
.home-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Greeting */
.home-greeting {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: var(--tan-dk);
  margin: -2px 0 0;
}

/* Next-up spotlight */
.home-spotlight { display: block; }
.home-spot-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--tan-lt);
  border: 1px solid var(--border-lt);
  text-decoration: none;
  transition: box-shadow .15s, transform .12s;
}
.home-spot-photo {
  width: 62px; height: 62px; border-radius: 14px; margin-bottom: 8px;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(20,14,6,.06);
}
.home-spot-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.home-spot-count { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.home-spot-count-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  font-weight: 500; line-height: 1; color: var(--sage);
}
.home-spot-count-unit {
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}

/* Cities → map link (elegant italic serif) */
.home-map-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  align-self: center; margin-top: -2px;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  font-size: 1.25rem; color: var(--tan-dk);
  background: none; border: none; cursor: pointer; padding: 4px 8px;
  transition: color .14s;
}
.home-map-btn:hover { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }

/* Fun fact */
.home-funfact {
  font-size: 0.82rem; color: var(--muted); line-height: 1.45; text-align: center;
  background: var(--sand); border-radius: 12px; padding: 9px 14px;
}

/* Confetti */
.confetti-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.confetti-piece {
  position: absolute; top: -16px; width: 9px; height: 14px; border-radius: 2px; opacity: .92;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(108vh) rotate(720deg); }
}
@media (prefers-reduced-motion: reduce) { .confetti-wrap { display: none; } }
.home-spot-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.home-spot-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tan-dk);
}
.home-spot-couple {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 300; line-height: 1.05; color: var(--ink);
}
.home-spot-date { font-size: 0.86rem; color: var(--muted); }
.home-spot-ready { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.home-spot-empty {
  text-align: center; padding: 36px 24px; border-radius: 16px;
  background: var(--tan-lt); border: 1px solid var(--border-lt);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.home-spot-emoji { font-size: 2rem; }
.home-spot-empty p { color: var(--muted); font-size: 0.92rem; }

/* Quick stats */
.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.home-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 10px; border-radius: 14px; cursor: pointer;
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color .14s, box-shadow .14s, transform .1s;
}
.home-stat:hover { border-color: var(--tan); box-shadow: var(--shadow); transform: translateY(-1px); }
.home-stat-ico { display: flex; align-items: center; justify-content: center; color: var(--tan-dk); }
.home-stat-ico svg { width: 19px; height: 19px; }
.home-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 500; line-height: 1; color: var(--tan); }
.home-stat-label { font-size: 0.62rem; font-weight: 600; color: var(--tan-dk); text-align: center; letter-spacing: .07em; text-transform: uppercase; }

/* View-your-roster button */
.home-roster-btn {
  align-self: center; margin-top: 4px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  color: var(--white); background: var(--sage); border: none; border-radius: 99px;
  padding: 13px 28px; cursor: pointer; transition: background .14s;
}
.home-roster-btn:hover { background: var(--tan-dk); }

/* Back-to-home link on the roster */
.back-home-btn {
  display: inline-flex; align-items: center;
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 500;
  color: var(--muted); background: none; border: none; cursor: pointer; padding: 4px 0;
}
.back-home-btn:hover { color: var(--ink); }

/* Top row: back-home (left) · Due-soon pill (right) */
.roster-toprow {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px;
}
.alerts-toggle-slot { flex: 0 0 auto; }
/* Expanded reminder cards sit full-width within the roster column */
.app-roster-inner #alertsStrip { margin: 0 0 18px; }
.app-roster-inner .alerts-inner { max-width: none; margin: 0; padding: 0; }

@media (max-width: 560px) {
  .home-main { padding: 16px 16px 28px; gap: 14px; }
  .home-stat { padding: 12px 6px; }
  .home-stat-num { font-size: 1.9rem; }
}

/* One-time "add your name in Account" tip on Home */
.home-name-tip {
  display: flex; align-items: center; gap: 8px;
  background: var(--tan-lt);
  border: 1px solid var(--border-lt);
  border-radius: 12px;
  padding: 4px 6px 4px 12px;
}
.home-name-tip-text {
  flex: 1; text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.82rem; color: var(--ink); line-height: 1.4;
}
.home-name-tip-text b { color: var(--tan-dk); font-weight: 600; }
.home-name-tip-x {
  flex: 0 0 auto; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.25rem; line-height: 1; padding: 4px 8px; border-radius: 6px;
}
.home-name-tip-x:hover { color: var(--ink); background: var(--sand); }

/* First-run welcome card (brand-new users, Home) */
.home-welcome {
  position: relative;
  background: var(--tan-lt);
  border: 1px solid var(--border-lt);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
}
.home-welcome-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 8px;
}
.home-welcome-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-welcome-list li {
  position: relative;
  padding-left: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.45;
}
.home-welcome-list li::before {
  content: '\2022';
  position: absolute;
  left: 4px;
  color: var(--tan);
  font-weight: 700;
}
.home-welcome-list b { color: var(--tan-dk); font-weight: 600; }
.home-welcome-btn {
  background: var(--tan-dk);
  color: var(--white);
  border: none;
  border-radius: 99px;
  padding: 7px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.home-welcome-btn:hover { background: var(--ink); }
.home-welcome-x {
  position: absolute;
  top: 8px; right: 10px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.25rem; line-height: 1; padding: 2px 7px; border-radius: 6px;
}
.home-welcome-x:hover { color: var(--ink); background: var(--sand); }

/* One-time "set your defaults in Account" tip on the roster */
.roster-tip {
  display: flex; align-items: center; gap: 10px;
  background: var(--tan-lt);
  border: 1px solid var(--border-lt);
  border-radius: 12px;
  padding: 10px 10px 10px 14px;
  margin-bottom: 16px;
}
.roster-tip-text { flex: 1; font-size: 0.82rem; color: var(--ink); line-height: 1.4; }
.roster-tip-text b { color: var(--tan-dk); font-weight: 600; }
.roster-tip-x {
  flex: 0 0 auto; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.25rem; line-height: 1; padding: 2px 7px; border-radius: 6px;
}
.roster-tip-x:hover { color: var(--ink); background: var(--sand); }

/* ── Agenda view (compact, month-grouped) ── */
.agenda-view { display: block; max-width: 760px; margin: 0 auto; }
.agenda-month {
  font-family: 'Inter', sans-serif; font-size: 0.66rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tan-dk);
  margin: 24px 0 4px; padding-bottom: 7px; border-bottom: 1px solid var(--border-lt);
}
.agenda-month:first-child { margin-top: 0; }
.agenda-row {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 6px; border-bottom: 1px solid var(--border-lt);
  text-decoration: none; color: var(--ink); transition: background .12s;
}
.agenda-row:last-child { border-bottom: none; }
.agenda-row:hover { background: var(--tan-lt); }
.agenda-date { flex: 0 0 auto; width: 42px; text-align: center; display: flex; flex-direction: column; line-height: 1; }
.agenda-dow { font-size: 0.58rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.agenda-day { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; color: var(--ink); }
.agenda-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.agenda-couple { font-size: 0.95rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-city { font-size: 0.76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.agenda-cd { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.agenda-tag {
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--tan-dk); background: var(--tan-lt); border-radius: 99px; padding: 2px 8px;
}
.agenda-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.agenda-dot.is-done    { background: var(--sage); }
.agenda-dot.is-partial { background: var(--amber); }
.agenda-dot.is-none    { background: transparent; border: 1.5px solid var(--border); }
.agenda-dot.is-na      { background: var(--border-lt); }

/* ── Timeline view ── */
.timeline-view { display: block; max-width: 680px; margin: 0 auto; }
.tl-month { font-family: 'Inter', sans-serif; font-size: 0.66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tan-dk); margin: 22px 0 4px; }
.tl-month:first-child { margin-top: 0; }
.tl-row { display: flex; gap: 14px; text-decoration: none; color: var(--ink); }
.tl-node { position: relative; flex: 0 0 auto; width: 22px; display: flex; justify-content: center; }
.tl-node::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: var(--border-lt); }
.tl-dot { position: relative; z-index: 1; width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 2px solid var(--tan); margin-top: 15px; }
.tl-dot--done { background: var(--sage); border-color: var(--sage); }
.tl-dot--partial { background: var(--amber); border-color: var(--amber); }
.tl-body { flex: 1 1 auto; min-width: 0; padding: 11px 0 15px; }
.tl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tl-name { font-size: 1rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-cd { font-size: 0.72rem; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.tl-sub { font-size: 0.78rem; color: var(--muted); }
.tl-row:hover .tl-name { color: var(--tan-dk); }

/* ── Gallery view ── */
.gallery-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gal-tile {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden;
  background: var(--tan-dk); background-size: cover; background-position: center;
  display: flex; align-items: flex-end; text-decoration: none;
}
.gal-tile--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 42%, rgba(0,0,0,.6)); }
.gal-mono {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.9rem; color: rgba(243,241,233,.85);
}
.gal-overlay { position: relative; z-index: 1; padding: 12px; width: 100%; color: var(--white); }
.gal-couple { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; line-height: 1.12; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.gal-date { display: block; font-size: 0.72rem; opacity: .92; margin-top: 2px; text-shadow: 0 1px 4px rgba(0,0,0,.45); }

/* ── Readiness board ── */
.readiness-view { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.rb-col { background: var(--sand); border-radius: 12px; padding: 12px; }
.rb-head { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.rb-col--none .rb-head { color: var(--muted); }
.rb-col--partial .rb-head { color: var(--amber); }
.rb-col--done .rb-head { color: var(--sage); }
.rb-count { font-size: 0.62rem; font-weight: 700; background: var(--white); border-radius: 99px; padding: 1px 7px; color: var(--muted); }
.rb-card { display: block; background: var(--white); border: 1px solid var(--border-lt); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; text-decoration: none; transition: border-color .12s; }
.rb-card:hover { border-color: var(--tan); }
.rb-couple { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.rb-meta { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.rb-empty { font-size: 0.78rem; color: var(--faint); padding: 6px 2px; }
@media (max-width: 640px) { .readiness-view { grid-template-columns: 1fr; } }
