:root {
  --pine-900: #14291c;
  --pine-800: #1f3d2b;
  --pine-700: #2d5840;
  --pine-600: #3d7355;
  --moss:     #6f9d6b;
  --paper:    #f6f0e2;
  --paper-2:  #efe6d2;
  --bark:     #5c4633;
  --ink:      #2a2419;
  --ink-soft: #6b6151;
  --ember:    #e07a3c;
  --ember-2:  #f0a04b;
  --sky:      #cfe0e6;
  --line:     #e3d8c0;
  --danger:   #b8442e;
  --shadow:   0 12px 30px -12px rgba(31, 61, 43, 0.35);
  --radius:   18px;
  /* Themable backdrop (overridden per event by body[data-theme=…] packs below) */
  --bg-a: #2d5840;
  --bg-b: #1f3d2b;
  --bg-c: #14291c;
  --ridge-1: #18331f;
  --ridge-2: #102619;
  --topbar-bg: rgba(20, 41, 28, 0.92);
}

/* ---- event themes: holidays carry their vibe; camping follows the location's biome ---- */
body[data-theme="theme-christmas"]   { --bg-a:#274d36; --bg-b:#1a3a26; --bg-c:#0f2417; --ridge-1:#1d3b28; --ridge-2:#12281a; --ember:#c64545; --ember-2:#e06a5a; --topbar-bg:rgba(15,36,23,.93); }
body[data-theme="theme-july4"]       { --bg-a:#2b3a67; --bg-b:#1d2a4d; --bg-c:#101a33; --ridge-1:#22305a; --ridge-2:#16224a; --ember:#d64545; --ember-2:#e8765f; --topbar-bg:rgba(16,26,51,.93); }
body[data-theme="theme-thanksgiving"]{ --bg-a:#6b4423; --bg-b:#4a2f18; --bg-c:#2e1d0e; --ridge-1:#54371c; --ridge-2:#3a2613; --ember:#d98e32; --ember-2:#e8a84c; --topbar-bg:rgba(46,29,14,.93); }
body[data-theme="theme-halloween"]   { --bg-a:#3a2d4d; --bg-b:#241b33; --bg-c:#120d1d; --ridge-1:#2d2240; --ridge-2:#1a1330; --ember:#ee7518; --ember-2:#f7931e; --topbar-bg:rgba(18,13,29,.93); }
body[data-theme="theme-easter"]      { --bg-a:#5b8a68; --bg-b:#41684e; --bg-c:#2a4636; --ridge-1:#4a7257; --ridge-2:#365441; --ember:#d88aa8; --ember-2:#e9b1c6; --topbar-bg:rgba(42,70,54,.93); }
body[data-theme="theme-newyear"]     { --bg-a:#232946; --bg-b:#161b33; --bg-c:#0c1022; --ridge-1:#1c2240; --ridge-2:#121733; --ember:#d4af37; --ember-2:#e9cb6b; --topbar-bg:rgba(12,16,34,.93); }
body[data-theme="theme-valentine"]   { --bg-a:#5d2438; --bg-b:#431a29; --bg-c:#2a0f1a; --ridge-1:#4c1e2e; --ridge-2:#331422; --ember:#e0567a; --ember-2:#ef8fa9; --topbar-bg:rgba(42,15,26,.93); }
body[data-theme="theme-generic-holiday"] { --bg-a:#4a3a5c; --bg-b:#352947; --bg-c:#201830; --ridge-1:#3c2f4d; --ridge-2:#281f3d; --topbar-bg:rgba(32,24,48,.93); }
body[data-theme="biome-desert"]      { --bg-a:#8a5a36; --bg-b:#6b3f26; --bg-c:#3f2517; --ridge-1:#74492c; --ridge-2:#54341f; --topbar-bg:rgba(63,37,23,.93); }
body[data-theme="biome-coast"]       { --bg-a:#1f5d63; --bg-b:#15454c; --bg-c:#0c2b31; --ridge-1:#1a4d54; --ridge-2:#103840; --topbar-bg:rgba(12,43,49,.93); }
body[data-theme="biome-mountain"]    { --bg-a:#44566b; --bg-b:#2e3d51; --bg-c:#1b2636; --ridge-1:#394a5e; --ridge-2:#26344a; --topbar-bg:rgba(27,38,54,.93); }
body[data-theme="biome-lake"]        { --bg-a:#2a5f6e; --bg-b:#1d4754; --bg-c:#102e38; --ridge-1:#235260; --ridge-2:#153c48; --topbar-bg:rgba(16,46,56,.93); }
body[data-theme="biome-plains"]      { --bg-a:#7a6a36; --bg-b:#5a4d24; --bg-c:#383014; --ridge-1:#685a2c; --ridge-2:#4a3f1e; --topbar-bg:rgba(56,48,20,.93); }
/* biome-forest = the app's native look; no override needed */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 50% -10%, var(--bg-a) 0%, var(--bg-b) 42%, var(--bg-c) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s ease;
}

/* ---- ridge backdrop ---- */
.ridges { position: fixed; inset: auto 0 0 0; height: 38vh; z-index: 0; pointer-events: none; opacity: 0.6; }
.ridges svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
.ridges svg:nth-child(1) path { fill: var(--ridge-1); transition: fill 0.6s ease; }
.ridges svg:nth-child(2) path { fill: var(--ridge-2); transition: fill 0.6s ease; }

/* ---- screens ---- */
.screen { display: none; position: relative; z-index: 1; }
body[data-view="app"] [data-screen="app"],
body[data-view="landing"] [data-screen="landing"] { display: block; }
body[data-view="loading"] [data-screen="loading"],
body[data-view="gate"]    [data-screen="gate"],
body[data-view="choose"]  [data-screen="choose"] { display: grid; }

.card-wrap {
  min-height: 100vh; place-items: center; padding: 24px 18px 14vh;
}

/* ---- spinner ---- */
body[data-view="loading"] [data-screen="loading"] { min-height: 100vh; display: grid; place-items: center; }
.spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2); border-top-color: var(--ember-2);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- cards ---- */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}
.auth-card { width: 100%; max-width: 420px; padding: 30px 26px 24px; }

/* ---- brand ---- */
.brand { text-align: center; margin-bottom: 22px; }
.brand-mark { font-size: 44px; display: block; line-height: 1; }
.brand h1 {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 30px;
  line-height: 1.05; margin: 12px 0 8px; color: var(--pine-800); letter-spacing: -0.01em;
}
.brand.small h1 { font-size: 24px; }
.tagline { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---- forms ---- */
form { display: flex; flex-direction: column; }
label {
  font-size: 13px; font-weight: 600; color: var(--bark);
  margin: 14px 0 6px; display: block;
}
label .opt { font-weight: 400; color: var(--ink-soft); }
input, textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: #fffdf8; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.4; }
input:focus, textarea:focus {
  outline: none; border-color: var(--pine-600);
  box-shadow: 0 0 0 3px rgba(61, 115, 85, 0.16);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row label { margin-top: 14px; }

.btn-primary {
  margin-top: 20px; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 16px; color: #fff;
  background: linear-gradient(180deg, var(--ember-2), var(--ember));
  border-radius: 12px; padding: 14px 18px;
  box-shadow: 0 8px 18px -8px rgba(224, 122, 60, 0.7);
  transition: transform .08s, filter .15s;
}
.btn-primary.slim { margin-top: 0; padding: 11px 18px; font-size: 15px; }
.btn-primary:hover { filter: brightness(1.04); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary .arrow { transition: transform .15s; display: inline-block; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-primary:disabled { opacity: .6; cursor: default; }

.btn-ghost {
  border: 1.5px solid var(--line); background: #fffdf8; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 14px; color: var(--bark);
  border-radius: 10px; padding: 9px 14px; transition: background .15s, border-color .15s;
}
.btn-ghost:hover { background: var(--paper-2); }
.btn-ghost.danger { color: var(--danger); border-color: #e8c4bb; }
.btn-ghost.danger:hover { background: #f7e7e2; }

.form-error {
  color: var(--danger); font-size: 13.5px; font-weight: 500;
  margin: 12px 0 0; min-height: 1px;
}
.form-error:empty { margin: 0; }

.switch { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }
.switch a { color: var(--pine-700); font-weight: 600; text-decoration: none; }
.switch a:hover { text-decoration: underline; }

/* ===== app ===== */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--topbar-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.6s ease;
}
.topbar-inner {
  max-width: 720px; margin: 0 auto; padding: 13px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-family: 'Fraunces', serif; font-weight: 600; color: var(--paper); font-size: 18px; }
.topbar-trip { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; margin-right: 12px; }
.tt-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 16px; color: var(--paper);
  line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-tent { font-family: 'DM Sans', sans-serif; }
.tt-meta { font-size: 11.5px; color: rgba(246,240,226,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-meta #tb-going { color: var(--ember-2); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.whoami { color: var(--sky); font-size: 13.5px; font-weight: 500; }
.topbar .btn-ghost { background: rgba(255,255,255,0.08); color: var(--paper); border-color: rgba(255,255,255,0.18); }
.topbar .btn-ghost:hover { background: rgba(255,255,255,0.16); }
/* The unlock button is the anonymous visitor's door in — make it pop. */
.topbar .btn-ghost.attn { background: var(--ember); border-color: var(--ember); color: #fff; font-weight: 600; }
.topbar .btn-ghost.attn:hover { background: var(--ember-2); }
/* Phones: icon-only topbar buttons (44px tap targets) so the event name never collapses. */
@media (max-width: 640px) {
  .topbar .btn-ghost .bl { display: none; }
  .topbar .btn-ghost { min-width: 44px; min-height: 40px; padding: 8px 10px; font-size: 17px; }
  .topbar-right { gap: 7px; }
  .topbar-inner { padding: 10px 14px; }
}

.container { max-width: 720px; margin: 0 auto; padding: 20px 18px 40px; }
section { margin-top: 26px; }
.section-head h2, .summary-head h2 {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px;
  color: var(--paper); margin: 0;
}
.section-sub { margin: 5px 0 14px; color: rgba(246,240,226,0.72); font-size: 14px; line-height: 1.45; }

/* summary */
.summary { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-top: 22px; }
.summary-head { display: flex; align-items: center; justify-content: space-between; }
.summary-head h2 { color: var(--pine-800); }
.dates-pill { background: var(--pine-700); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.stat { text-align: center; background: var(--paper-2); border-radius: 14px; padding: 12px 6px; }
.stat-num { display: block; font-family: 'Fraunces', serif; font-weight: 700; font-size: 26px; color: var(--ember); line-height: 1; }
.stat-label { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

/* meal board */
.meal-board { display: flex; flex-direction: column; gap: 12px; }
.day-group { margin-top: 4px; }
.day-label { color: rgba(246,240,226,0.6); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 10px 2px 8px; }
.meal {
  background: var(--paper); border-radius: 15px; padding: 15px 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
  border-left: 5px solid var(--line); transition: transform .1s;
}
.meal.open { border-left-color: var(--ember-2); cursor: pointer; }
.meal.mine { border-left-color: var(--pine-600); background: #f0f4e9; }
.meal.taken { border-left-color: var(--bark); }
.meal.open:hover, .meal.mine:hover { transform: translateY(-1px); }
.meal-icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.meal-body { flex: 1; min-width: 0; }
.meal-when { font-weight: 600; font-size: 15px; color: var(--pine-800); }
.meal-when .meal-date { color: var(--ink-soft); font-weight: 500; font-size: 13px; margin-left: 6px; }
.meal-status { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; line-height: 1.35; }
.meal-status .cook { color: var(--pine-700); font-weight: 600; }
.meal-status .dish { color: var(--ink); }
.meal-cta { font-size: 13px; font-weight: 600; color: var(--ember); white-space: nowrap; }
.meal.mine .meal-cta { color: var(--pine-700); }
.tag-you { background: var(--pine-600); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

/* family card */
.family-card { padding: 18px 20px; }
.save-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.saved-flag { color: var(--pine-600); font-weight: 600; font-size: 14px; opacity: 0; transition: opacity .2s; }
.saved-flag.show { opacity: 1; }

/* roster */
.roster { display: flex; flex-direction: column; gap: 10px; }
.roster-item {
  background: var(--paper); border-radius: 14px; padding: 13px 16px;
  box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 12px;
}
.roster-avatar { width: 38px; height: 38px; border-radius: 11px; background: var(--pine-700); color: #fff;
  display: grid; place-items: center; font-family: 'Fraunces', serif; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.roster-main { flex: 1; min-width: 0; }
.roster-name { font-weight: 600; color: var(--pine-800); font-size: 15.5px; }
.roster-count { color: var(--ink-soft); font-size: 13.5px; }
.roster-diet { margin-top: 5px; font-size: 13px; color: var(--bark); background: #fbeede; border-radius: 8px; padding: 5px 9px; display: inline-block; }
.roster-diet::before { content: "⚠ "; }

.foot { text-align: center; color: rgba(246,240,226,0.5); font-size: 13px; margin-top: 36px; }

/* modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 20; background: rgba(20, 41, 28, 0.55);
  display: grid; place-items: center; padding: 18px; backdrop-filter: blur(3px);
}
.modal-backdrop[hidden] { display: none; }
.modal { width: 100%; max-width: 420px; padding: 24px 22px; max-height: 90vh; overflow-y: auto; position: relative; }
/* Framed modals (long forms): the body scrolls, the actions stay visible. */
.modal.modal-framed { display: flex; flex-direction: column; overflow: hidden; }
.modal-framed .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -6px 0 0; padding-right: 6px; }
.modal-framed .modal-actions { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.modal-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 16px; color: var(--ink-soft); cursor: pointer; padding: 8px; line-height: 1; }
.modal-x:hover { color: var(--ink); }
.modal-hint { font-size: 12.5px; color: var(--ink-soft); margin: 8px 0 0; }
.modal h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; color: var(--pine-800); margin: 0 0 4px; }
.modal-sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 6px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; flex-wrap: wrap; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(10px);
  background: var(--pine-800); color: var(--paper); padding: 12px 20px; border-radius: 12px;
  font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow); z-index: 30;
  opacity: 0; transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-action { margin-left: 12px; background: none; border: 0; color: var(--ember-2); font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: underline; padding: 2px 4px; }

/* ---------- custom time picker (event form) ---------- */
.timepick-wrap { position: relative; }
.timepick-btn { width: 100%; text-align: left; font: inherit; font-size: 16px; color: var(--ink-soft);
  background: #fffdf8; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.timepick-btn.set { color: var(--ink); font-weight: 600; }
.timepick-pop { margin-top: 6px; background: #fffdf8; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px; box-shadow: var(--shadow); }
.tp-grid { display: grid; gap: 6px; margin-bottom: 8px; }
.tp-hours { grid-template-columns: repeat(6, 1fr); }
.tp-mins, .tp-ampm { grid-template-columns: repeat(4, 1fr); }
.tp-ampm { grid-template-columns: repeat(2, 1fr); }
.tp-chip { font: inherit; font-size: 14.5px; font-weight: 600; padding: 9px 0; min-height: 40px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.tp-chip.on { background: var(--pine-700); border-color: var(--pine-700); color: #fff; }
.tp-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }

/* ---------- anonymous welcome card (Home tab, logged-out) ---------- */
.welcome-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; margin-bottom: 14px;
}
.welcome-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.welcome-card .btn-primary { width: 100%; }

/* family-card editor sub-line + tap-to-edit affordance */
.ed-sub { font-size: 12px; color: var(--ink-soft); margin: -4px 0 10px; }
.ov-chev { font-size: 14px; }

/* Events tab: projected (TBD) camping years sit under a divider, visually quieter */
.tbd-divider { margin: 18px 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(246,240,226,0.55); }
.trip-card.tbd { opacity: 0.75; }
.pl-paid-row { margin-top: 10px; display: flex; align-items: center; gap: 9px; font-size: 14.5px; }
.pl-paid-row input { width: auto; }

/* ---- select + choose screen ---- */
select {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: #fffdf8; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; width: 100%; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c4633' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select:focus { outline: none; border-color: var(--pine-600); box-shadow: 0 0 0 3px rgba(61,115,85,.16); }
.hint { font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 0; }
.family-preview {
  margin: 14px 0 4px; padding: 12px 14px; background: var(--paper-2); border-radius: 12px; font-size: 13.5px;
}
.prev-label { color: var(--ink-soft); font-weight: 600; display: block; margin-bottom: 7px; }
.prev-chip { display: inline-block; background: #fffdf8; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px; margin: 0 4px 4px 0; font-weight: 500; color: var(--pine-800); }

/* who-are-you chips */
#who-block { margin-top: 6px; }
.who-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.who-chip { font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: #fffdf8; border: 1.5px solid var(--line); color: var(--pine-800);
  border-radius: 999px; padding: 8px 15px; transition: all .12s; }
.who-chip:hover { border-color: var(--pine-600); }
.who-chip.active { background: var(--pine-600); border-color: var(--pine-600); color: #fff; }
.who-chip.add { color: var(--ember); border-style: dashed; border-color: #f0c79e; }
.who-chip.add.active { background: var(--ember); border-color: var(--ember); color: #fff; }
.m-you, .r-you { color: var(--pine-600); font-weight: 700; }
.m-you { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em;
  background: #e1ecdb; padding: 2px 7px; border-radius: 999px; }
.r-you { font-size: 12px; }

/* ---- rich meal cards ---- */
.meal { align-items: flex-start; }
.meal-time { color: var(--ink-soft); font-weight: 500; font-size: 13px; margin-left: 4px; }
.open-tag { color: var(--ember); font-weight: 600; font-size: 13.5px; }
.meal-cook { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.meal-cook .cook { color: var(--pine-700); font-weight: 600; }
.meal-entree { font-weight: 600; color: var(--ink); font-size: 14.5px; margin-top: 2px; }
.meal-sides { font-size: 13px; color: var(--bark); margin-top: 1px; }
.meal-cta { align-self: center; }

/* ---- member checklist ---- */
.member-list { display: flex; flex-direction: column; }
.member { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: none; }
.member.away { opacity: .5; }
.m-check { position: relative; display: inline-flex; cursor: pointer; }
.m-check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.checkmark { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); background: #fffdf8; transition: all .15s; }
.m-check input:checked + .checkmark { background: var(--pine-600); border-color: var(--pine-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M2.5 7.5l3 3 6-6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; }
.m-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.m-name { font-weight: 600; color: var(--pine-800); font-size: 15px; }
.m-guest { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: #efe1cf; color: var(--bark); padding: 2px 7px; border-radius: 999px; }
.m-note { font-size: 12px; color: var(--ink-soft); }
.role-pill { border: 1.5px solid var(--line); background: #fffdf8; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 11px; transition: all .12s; }
.role-pill.adult { color: var(--pine-700); }
.role-pill.child { color: var(--ember); border-color: #f0d3b8; background: #fbeede; }
.role-pill:hover { transform: translateY(-1px); }
.m-remove { border: none; background: none; color: var(--ink-soft); font-size: 22px; line-height: 1;
  cursor: pointer; padding: 0 2px; }
.m-remove:hover { color: var(--danger); }
.add-member { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.add-member input { flex: 1; }
.add-member select { width: auto; }
.family-sub em { font-style: normal; color: var(--ember); font-weight: 600; }

/* ---- roster ---- */
.roster-people { color: var(--bark); font-size: 13.5px; margin-top: 3px; line-height: 1.5; }
.roster-count { font-size: 12px; font-weight: 600; color: var(--pine-600); margin-left: 8px;
  background: #e9f0e4; padding: 2px 9px; border-radius: 999px; }
.r-kid { font-size: 10px; font-weight: 700; color: var(--ember); margin-left: 3px; vertical-align: 1px; }
.r-none { color: var(--ink-soft); font-style: italic; }

/* ---- quantity helper ---- */
.quantity-box { background: #eef4e8; border: 1px solid #d6e4cc; border-radius: 13px; padding: 13px 15px; margin: 4px 0 8px; }
.qty-head { font-size: 13.5px; color: var(--pine-800); }
.qty-head b { color: var(--ember); font-size: 16px; }
.qty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 8px; }
.qty-grid > div { background: #fffdf8; border-radius: 9px; padding: 8px 6px; text-align: center; }
.qty-grid span { display: block; font-size: 11px; color: var(--ink-soft); margin-bottom: 2px; }
.qty-grid b { font-size: 14px; color: var(--pine-800); }
.qty-note { font-size: 11.5px; color: var(--ink-soft); }

/* ===== landing / splash ===== */
.landing { min-height: 100vh; }
.hero { position: relative; height: 78vh; min-height: 540px; max-height: 820px; overflow: hidden; }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,33,46,.55) 0%, rgba(20,33,46,.05) 32%, rgba(20,41,28,0) 55%, rgba(20,41,28,.35) 100%); }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px; }
.hero-eyebrow { color: #fbe9cf; font-weight: 600; font-size: 14px; letter-spacing: .03em;
  text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 58px; line-height: .96;
  color: #fff; margin: 12px 0 14px; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero-dates { color: #fff; font-weight: 500; font-size: 16px; margin: 0 0 26px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero-cta { margin-top: 0; font-size: 17px; padding: 15px 30px; box-shadow: 0 10px 26px -8px rgba(224,122,60,.8); }
.hero-sub { color: #f3e7d4; font-size: 13px; margin: 14px 0 0; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

.landing-body { max-width: 640px; margin: 0 auto; padding: 22px 18px 40px; margin-top: -34px; position: relative; z-index: 3; }
.land-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; margin-bottom: 16px; }
.land-card h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; color: var(--pine-800); margin: 0 0 10px; }
.land-card p { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.6; }
.land-card.know { background: #fbf3e6; border: 1px solid #f0e2c8; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.fact { background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 15px;
  display: flex; gap: 11px; align-items: flex-start; }
.fact-ic { font-size: 22px; line-height: 1; }
.fact b { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.fact span { font-size: 13.5px; color: var(--pine-800); font-weight: 500; }

.map-wrap { border-radius: 13px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px; line-height: 0; }
.map-wrap iframe { width: 100%; height: 240px; border: 0; }
.btn-ghost.wide { display: block; width: 100%; text-align: center; }
.map-note { margin-top: 12px !important; font-size: 13px !important; color: var(--ink-soft) !important; }

/* inline source links inside info cards */
.land-card .bullets a, .land-card p a, .card-note a {
  color: var(--pine-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}
.land-card .bullets a:hover, .land-card p a:hover, .card-note a:hover { color: var(--ember); }
.src { font-size: 11px; color: var(--ink-soft); font-weight: 600; }

.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li { font-size: 14.5px; color: var(--ink); padding: 8px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.bullets li:last-child { border-bottom: none; }

.final-cta { text-align: center; padding: 26px 18px 10px; }
.final-cta h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 24px; color: var(--paper); margin: 0 0 16px; }

/* ===== keyboard focus (visible for keyboard users, not on mouse click) ===== */
:focus-visible { outline: 3px solid var(--pine-600); outline-offset: 2px; }
.btn-primary:focus-visible, .hero-cta:focus-visible { outline-color: #fff; }

/* ===== communal people board ===== */
.fam-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px 8px; margin-bottom: 14px; }
.fam-card.mine { box-shadow: 0 0 0 2px var(--pine-600), var(--shadow); }
.fam-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px 9px; border-bottom: 2px solid var(--paper-2); }
.fam-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; color: var(--pine-800); }
.fam-count { font-size: 12.5px; font-weight: 600; color: var(--pine-600); background: #e9f0e4; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }

.person { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.person:last-of-type { border-bottom: none; }
.person.coming { background: #f1f6ec; border-radius: 10px; border-bottom-color: transparent; }
.p-toggle { flex: 1; display: flex; align-items: center; gap: 13px; cursor: pointer;
  padding: 11px 6px; min-height: 30px; border-radius: 10px; }
.p-toggle:hover { background: rgba(0,0,0,.03); }
.p-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.p-box { width: 28px; height: 28px; flex-shrink: 0; border-radius: 9px; border: 2.5px solid #cbb892;
  background: #fffdf8; transition: all .12s; }
.p-toggle input:checked + .p-box { background: var(--pine-600); border-color: var(--pine-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 7.5l3 3 6-6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; }
.p-toggle input:focus-visible + .p-box { outline: 3px solid var(--pine-600); outline-offset: 2px; }
.p-name { font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.person.coming .p-name { color: var(--pine-800); }
.p-you { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--pine-600); background: #e1ecdb; padding: 2px 7px; border-radius: 999px; margin-left: 7px; }
.p-type { font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
  border-radius: 999px; padding: 6px 12px; border: 1.5px solid var(--line); background: #fffdf8; transition: all .12s; }
.p-type:hover { transform: translateY(-1px); }
.p-type.adult { color: var(--pine-700); }
.p-type.child { color: var(--ember); background: #fbeede; border-color: #f0d3b8; }
.p-type.fun { color: #8a5cc4; background: #f1eafb; border-color: #ddc9f5; }
.p-x { border: none; background: none; color: var(--ink-soft); font-size: 24px; line-height: 1;
  cursor: pointer; padding: 2px 6px; border-radius: 7px; }
.p-x:hover { color: var(--danger); background: #f7e7e2; }

.add-person { display: flex; gap: 8px; padding: 11px 0 5px; }
.add-person .ap-name { flex: 1; font-size: 15px; padding: 11px 13px; }
.add-person .ap-type { width: auto; font-size: 14px; padding: 11px 30px 11px 12px; }
.add-person .ap-go { white-space: nowrap; }

/* ===== accordion: overview cards ===== */
.fam-card { padding: 0; overflow: hidden; }
.ov-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: none; cursor: pointer; font-family: inherit; text-align: left;
  padding: 15px 16px 11px; }
.ov-head:hover { background: rgba(0,0,0,.02); }
.ov-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; color: var(--pine-800); }
.ov-right { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.ov-chev { font-size: 13px; color: var(--ink-soft); }
.ov-body { padding: 0 16px 14px; cursor: pointer; }
.ov-people { display: flex; flex-wrap: wrap; gap: 6px; }
.ov-dishes { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ov-dishes-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 5px; }
.dish-list { list-style: none; margin: 0; padding: 0; column-width: 150px; column-gap: 22px; }
.dish-list li { font-size: 13px; color: var(--bark); line-height: 1.45; margin-bottom: 4px;
  padding-left: 14px; position: relative; break-inside: avoid; -webkit-column-break-inside: avoid; }
.dish-list li::before { content: '•'; position: absolute; left: 2px; color: var(--moss); font-weight: 700; }
.ov-dishes .dish-who { color: var(--ink-soft); }
.ov-chip { font-size: 13px; font-weight: 500; color: var(--pine-800); background: #eef4e8;
  border-radius: 999px; padding: 4px 11px; }
.ov-chip.kid { color: var(--ember); background: #fbeede; }
.ov-chip.pet { color: #8a5cc4; background: #f1eafb; }
.ov-none { font-size: 13.5px; color: var(--ink-soft); font-style: italic; }

/* ===== accordion: editor ===== */
.fam-card.editing { padding: 4px 16px 14px; box-shadow: 0 0 0 2px var(--ember-2), var(--shadow); }
.ed-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: none; border-bottom: 2px solid var(--paper-2); cursor: pointer;
  font-family: inherit; text-align: left; padding: 13px 2px 9px; margin-bottom: 2px; }
.ed-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--bark); margin: 16px 2px 2px; }
.ed-hint { font-size: 11.5px; color: var(--ink-soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
.ed-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line); }

.dish-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.dish-row .dish-name { flex: 1; font-size: 15px; padding: 10px 12px; }
/* drag handles for reordering dishes + people (works with mouse + touch) */
.dish-drag, .p-drag { flex: 0 0 auto; border: none; background: none; cursor: grab; touch-action: none;
  color: var(--ink-soft); font-size: 17px; line-height: 1; padding: 6px 4px; border-radius: 7px; }
.dish-drag:hover, .p-drag:hover { background: rgba(0,0,0,.05); color: var(--bark); }
.dish-drag:active, .p-drag:active { cursor: grabbing; }
.dish-row.dragging, .person.dragging { opacity: .65; background: var(--paper-2); border-radius: 10px; }
.dish-row.add .dish-drag, .add-person .p-drag { visibility: hidden; } /* the add-row has no handle */
.dish-who-sel { width: auto; max-width: 44%; font-size: 13.5px; padding: 10px 26px 10px 10px; }

/* ===== AI shopping list ===== */
.ai-btn { width: 100%; margin-top: 16px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 14.5px;
  color: var(--pine-700); background: #eef4e8; border: 1.5px dashed #b8d0ac; border-radius: 12px; padding: 12px;
  transition: background .15s; }
.ai-btn:hover { background: #e4eedb; }
.ai-btn:disabled { opacity: .7; cursor: default; }
.ai-result { margin-top: 12px; background: #fbf6ec; border: 1px solid #ecdcc0; border-radius: 12px; padding: 14px 15px; }
.ai-loading { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.ai-spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,.15);
  border-top-color: var(--ember); animation: spin .8s linear infinite; flex-shrink: 0; }
.ai-head { font-weight: 700; color: var(--pine-800); font-size: 14px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-result.saved { margin-top: 12px; }
.ai-print { background: var(--pine-700); color: #fff; border: none; font-family: inherit; font-weight: 600;
  font-size: 12.5px; border-radius: 9px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.ai-print:hover { filter: brightness(1.08); }
.ai-text { font-size: 13.5px; line-height: 1.5; color: var(--ink); }
/* categorized shopping list */
.sl-head { font-weight: 700; color: var(--pine-700); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .04em; margin: 11px 0 4px; }
.sl-head:first-child { margin-top: 0; }
.sl-item { padding-left: 15px; position: relative; margin: 2px 0; }
.sl-item::before { content: '•'; position: absolute; left: 3px; color: var(--moss); font-weight: 700; }
.ai-err { color: var(--danger); font-size: 13.5px; }
.ed-done { font-size: 12.5px; font-weight: 700; color: var(--pine-600); }
.ai-cta { margin-top: 16px; padding: 14px; background: #eef4e8; border: 1.5px solid #cfe0c5; border-radius: 14px; text-align: center; }
.ai-cta .fam-ai-btn { margin: 0; width: 100%; border-style: solid; border-color: var(--pine-600); background: var(--pine-600); color: #fff; font-size: 15.5px; padding: 13px; }
.ai-cta .fam-ai-btn:hover { filter: brightness(1.06); background: var(--pine-600); }
.ai-cta-hint { margin: 9px 2px 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.fam-ai-btn { margin-top: 14px; }

/* ===== app tabs + banner ===== */
.trip-banner { max-width: 720px; margin: 0 auto; padding: 18px 18px 6px; text-align: center; }
.tb-kicker { display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ember-2); margin-bottom: 7px; }
.tb-kicker span { flex: 0 0 26px; height: 1px; background: linear-gradient(90deg, transparent, rgba(240,160,75,.7)); }
.tb-kicker span:last-child { background: linear-gradient(90deg, rgba(240,160,75,.7), transparent); }
.tb-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 27px; line-height: 1.08;
  color: var(--paper); margin: 0; letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.tb-meta { color: rgba(246,240,226,0.78); font-size: 13.5px; font-weight: 500; margin-top: 8px; }
.tb-meta #tb-title { color: var(--paper); font-weight: 600; }
.tb-meta #tb-going { color: var(--ember-2); font-weight: 600; }

.tabbar { display: flex; gap: 4px; max-width: 720px; margin: 10px auto 0; padding: 6px;
  background: rgba(20,41,28,.45); border-radius: 14px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
  background: none; border: 1px solid rgba(246,240,226,.22); font-family: inherit; font-size: 17px; color: rgba(246,240,226,.62);
  padding: 8px 4px; border-radius: 10px; transition: all .12s; }
.tab span { font-size: 11.5px; font-weight: 600; }
.tab:hover { color: var(--paper); border-color: rgba(246,240,226,.5); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--pine-800); border-color: var(--paper); }
.tab[aria-selected="true"] span { color: var(--pine-800); }

/* ===== section-tab shimmer — a gentle cue that the tabs are tappable ===== */
/* sweeps a soft sheen across the NOT-currently-open tabs (~once per 10s); active one stays calm */
.tab, .rtab { position: relative; overflow: hidden; }
.tab[aria-selected="false"]::after, .rtab[aria-selected="false"]::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(246,240,226,.22) 50%, transparent 60%);
  transform: translateX(-160%);
  animation: tab-shimmer 10s ease-in-out infinite;
}
/* stagger so they ripple left-to-right instead of blinking together */
.tab:nth-of-type(2)::after, .rtab:nth-of-type(2)::after { animation-delay: .4s; }
.tab:nth-of-type(3)::after, .rtab:nth-of-type(3)::after { animation-delay: .8s; }
.tab:nth-of-type(4)::after, .rtab:nth-of-type(4)::after { animation-delay: 1.2s; }
@keyframes tab-shimmer {
  0%, 84% { transform: translateX(-160%); }
  95%, 100% { transform: translateX(160%); }
}
/* respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  .tab::after, .rtab::after { animation: none; content: none; }
}

.tab-panel { padding-top: 18px; }
.panel-intro { color: rgba(246,240,226,0.74); font-size: 14px; line-height: 1.5; margin: 0 2px 14px; }
.panel-intro em { font-style: normal; color: var(--ember-2); font-weight: 600; }
.panel-intro b { color: var(--paper); }
.tab-panel .stat-row { margin-bottom: 14px; }

.card-note { font-size: 11px; font-weight: 600; color: var(--ink-soft); background: var(--paper-2);
  padding: 2px 9px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: none; }
.links a { display: block; padding: 12px 2px; color: var(--pine-700); font-weight: 600; font-size: 15px; text-decoration: none; }
.links a:hover { color: var(--ember); }

.claim-note { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 6px;
  background: var(--paper-2); padding: 10px 13px; border-radius: 10px; }
.meal-tbd { font-size: 13px; color: var(--ink-soft); font-style: italic; margin-top: 2px; }

/* campground map */
.campmap { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }

/* live weather strip */
.weather-live { margin-bottom: 12px; }
.wx-label { font-size: 12px; font-weight: 700; color: var(--pine-700); margin-bottom: 7px; }
.wx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wx-day { background: #fffdf8; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; }
.wx-day.night { background: #f2f0ea; }
.wx-name { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.wx-temp { display: block; font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px; color: var(--ember); line-height: 1.1; }
.wx-short { display: block; font-size: 11.5px; color: var(--bark); line-height: 1.3; }
.wx-typical-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin: 0 0 6px; }

/* site # + card meta */
.ov-meta { font-size: 13px; color: var(--pine-700); font-weight: 600; margin-bottom: 7px; }
.ov-meta .dish-sep { color: var(--line); margin: 0 7px; }
.meal-site { color: var(--ink-soft); font-weight: 500; }
.ed-site { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; }
.ed-site-label { font-size: 13px; font-weight: 600; color: var(--bark); white-space: nowrap; }
.ed-site-input { max-width: 130px; padding: 9px 12px; font-size: 15px; }
.ed-meal { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; }
.ed-meal-sel { flex: 1; max-width: 230px; }
.ed-meal-time { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; }

/* ===== integrated schedule (families sit at their meal) ===== */
/* a day's meals sit side-by-side (morning | evening); the editor spans full width.
   Rows stretch so paired cards are the SAME height (filled card ↔ open placeholder). */
.day-meals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: stretch; }
.day-meals .sched-slot { margin-bottom: 0; }
.sched-slot.span-full { grid-column: 1 / -1; }
@media (max-width: 540px) { .day-meals { grid-template-columns: 1fr; } }
.sched-slot { margin-bottom: 12px; display: flex; flex-direction: column; }
.sched-slot .fam-card { margin-bottom: 0; }
.sched-slot > .fam-card, .sched-slot > .slot-open { flex: 1 1 auto; } /* fill the slot → match sibling height */
.slot-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 7px; }
.slot-icon { font-size: 18px; line-height: 1; }
.slot-when { font-weight: 600; font-size: 14.5px; color: var(--paper); }
.slot-time { color: rgba(246,240,226,0.55); font-weight: 500; font-size: 12.5px; margin-left: 4px; }
/* open meal = a dashed silhouette placeholder, like the "+ Add a family" button */
.slot-open { background: none; border: 1.5px dashed var(--moss); border-radius: 14px; box-shadow: none;
  padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; min-height: 78px; transition: background .12s; }
.slot-open:hover { background: rgba(255,255,255,.05); }
.slot-open .open-tag { color: rgba(246,240,226,0.72); font-weight: 600; font-size: 13.5px; }
.slot-open .open-assign { max-width: 100%; }
.open-claim { background: linear-gradient(180deg, var(--ember-2), var(--ember)); color: #fff; border: none;
  font-family: inherit; font-weight: 600; font-size: 13.5px; border-radius: 10px; padding: 9px 14px; cursor: pointer; }
.open-claim:hover { filter: brightness(1.04); }
.sched-unassigned { color: rgba(246,240,226,0.6); font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; margin: 22px 2px 11px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.open-assign { width: auto; max-width: 56%; font-size: 13.5px; padding: 8px 26px 8px 10px; }

/* family name edit + remove + add */
.ed-namerow { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; }
.ed-name-input { flex: 1; max-width: 240px; padding: 9px 12px; font-size: 15px; }
.ed-danger { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); text-align: right; }
.ed-remove-fam { background: none; border: 1.5px solid #e8c4bb; color: var(--danger); font-family: inherit;
  font-weight: 600; font-size: 13px; border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.ed-remove-fam:hover { background: #f7e7e2; }
.add-family-btn { display: block; width: 100%; margin-top: 8px; background: none; border: 1.5px dashed var(--moss);
  color: var(--paper); font-family: inherit; font-weight: 600; font-size: 14.5px; border-radius: 12px; padding: 13px; cursor: pointer; }
.add-family-btn:hover { background: rgba(255,255,255,.06); }
#lock-btn { white-space: nowrap; }
#me-btn { white-space: nowrap; }
#me-btn.set { color: var(--pine-800); background: var(--paper); border-color: var(--paper); }
.you-badge { display: inline-block; margin-left: 8px; font-family: 'DM Sans', sans-serif; font-size: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle;
  background: var(--ember); color: #fff; padding: 2px 7px; border-radius: 20px; }

/* ===== trips calendar (its own tab) ===== */
.trip-cal { display: block; max-width: 460px; margin: 0 auto; }
.cal-card { background: var(--paper); border-radius: 16px; padding: 12px 12px 14px; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px; color: var(--pine-800); }
.cal-nav { width: 30px; height: 30px; border: none; border-radius: 8px; background: var(--paper-2);
  color: var(--pine-700); font-size: 18px; line-height: 1; cursor: pointer; transition: background .12s; }
.cal-nav:hover { background: var(--line); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--ink-soft); padding-bottom: 2px; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; border: none; background: none; border-radius: 9px; cursor: default;
  font-family: inherit; font-size: 13px; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.cal-day.blank { visibility: hidden; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--ember); font-weight: 700; }
.cal-day.is-trip { cursor: pointer; background: var(--moss); color: #fff; font-weight: 600; }
.cal-day.is-trip.current { background: var(--pine-600); }
.cal-day.is-trip:hover { filter: brightness(1.07); }
.cal-day.is-trip.start { border-top-left-radius: 13px; border-bottom-left-radius: 13px; }
.cal-day.is-trip.end { border-top-right-radius: 13px; border-bottom-right-radius: 13px; }
.cal-day.is-trip.viewing { box-shadow: inset 0 0 0 2px var(--pine-900); }
/* projected annual trip (not booked yet) — hollow/dashed, not filled */
.cal-day.is-trip.tbd { background: transparent; color: var(--moss);
  box-shadow: inset 0 0 0 1.5px var(--moss); opacity: .9; }
.cal-day.is-trip.tbd:hover { background: rgba(111,157,107,.16); filter: none; }
/* clicking the calendar to create a trip (unlocked users): pick start, then end */
body:not(.locked) .cal-grid .cal-day:not(.blank) { cursor: pointer; }
.cal-day.pending-start { background: var(--pine-600); color: #fff; box-shadow: inset 0 0 0 2px var(--ember); font-weight: 700; }
.cal-day.in-range { background: rgba(111,157,107,.4); color: var(--pine-900); }
/* the expanded card's days get a subtle ring; the trip being edited shows as a live draft */
.cal-day.is-trip.expanded { box-shadow: inset 0 0 0 2px var(--ember); }
.cal-day.is-trip.editing { background: var(--ember); color: #fff; }
.cal-edit-hint { margin: 9px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--moss); font-weight: 600; }

/* "+ Add a camping trip" at the top of the Trips page is view-only when locked */
body.locked #trips-add { display: none; }

/* trip cards below the month grid */
.trip-list { max-width: 460px; margin: 13px auto 0; display: flex; flex-direction: column; gap: 9px; }
.trip-card { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow);
  overflow: hidden; transition: border-color .12s; }
.trip-card.open { border-color: var(--moss); }
.trip-card.viewing { border-color: var(--pine-600); }
.trip-card-head { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: none;
  background: none; cursor: pointer; font-family: inherit; padding: 11px 13px; }
.trip-card-head:hover { background: var(--paper-2); }
.tc-head-main { flex: 1 1 auto; min-width: 0; }
.tc-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 14.5px; color: var(--pine-800);
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tc-dates { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.tc-chev { flex: 0 0 auto; color: var(--moss); font-size: 13px; transition: transform .15s; }
.trip-card.open .tc-chev { transform: rotate(180deg); }
.trip-card-body { padding: 0 13px 13px; }
.trip-card.tbd .tc-name { color: var(--moss); }
/* inline edit form inside a card */
.tc-edit-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-soft); margin: 9px 0 3px; }
.tc-input { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-2);
  font-family: inherit; font-size: 13px; color: var(--ink); padding: 8px 10px; }
.tc-input:focus { outline: none; border-color: var(--moss); background: var(--paper); }
.tc-edit-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tc-edit-hint { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-soft); }
.tc-edit-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.tc-edit-actions .tc-save { margin-left: auto; }
.tc-edit-actions .tc-remove { margin-right: auto; }

/* address autocomplete dropdown for the "Where" field */
.geo-wrap { position: relative; }
.geo-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  overflow: hidden; max-height: 230px; overflow-y: auto; }
.geo-suggest[hidden] { display: none; }
.geo-item { display: block; width: 100%; text-align: left; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; color: var(--ink); padding: 9px 11px; line-height: 1.35;
  border-bottom: 1px solid var(--line); }
.geo-item:last-child { border-bottom: none; }
.geo-item:hover { background: var(--paper-2); }
.peek-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 15px; color: var(--pine-800);
  display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.peek-badge { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; background: var(--pine-600); color: #fff; padding: 2px 7px; border-radius: 20px; }
.peek-badge.tbd { background: var(--moss); }
.peek-row { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0; }
.peek-est { color: var(--moss); font-style: italic; }
.peek-note { margin-top: 6px; font-size: 11.5px; line-height: 1.4; }
.peek-setup { border: none; background: var(--moss); color: #fff; font-family: inherit; font-weight: 600;
  font-size: 12.5px; padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.peek-setup:hover { background: var(--pine-600); }
.peek-actions { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.peek-view { border: none; background: var(--pine-700); color: #fff; font-family: inherit; font-weight: 600;
  font-size: 12.5px; padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.peek-view:hover { background: var(--pine-800); }
.peek-edit { border: 1px solid var(--line); background: var(--paper); color: var(--pine-700); font-family: inherit;
  font-weight: 600; font-size: 12.5px; padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.peek-viewing { font-size: 12px; font-weight: 600; color: var(--pine-600); }

/* return-to-current banner above the board */
.return-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: rgba(224,122,60,.16); border: 1px solid rgba(224,122,60,.4); color: var(--paper);
  padding: 9px 13px; border-radius: 12px; margin-bottom: 14px; font-size: 13px; }
.return-bar b { color: #fff; }
.return-btn { border: none; background: var(--ember); color: #fff; font-family: inherit; font-weight: 600;
  font-size: 12.5px; padding: 7px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.return-btn:hover { background: var(--ember-2); }

/* trip add/edit modal extras */
.tf-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tf-dates input { width: 100%; }
.tf-danger { margin-top: 14px; text-align: center; }
.cf-when { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.cf-when[hidden], #cf-where-row[hidden] { display: none; }
.cf-opt { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
#contrib-modal textarea { width: 100%; }

/* ===== family-contributed Activities & Safety ===== */
.contrib-mount:empty { display: none; }
/* auto-gathered (free-API) park info blocks */
.auto-info[hidden] { display: none; }
.alert-card { border-left: 5px solid var(--danger); }
.contrib-add { width: 100%; margin-bottom: 12px; border: 1.5px dashed var(--moss); background: rgba(111,157,107,.10);
  color: var(--paper); font-family: inherit; font-weight: 700; font-size: 14px; padding: 12px;
  border-radius: 12px; cursor: pointer; transition: all .12s; }
.contrib-add:hover { background: rgba(111,157,107,.2); }
.contrib-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.contrib-card { background: var(--paper); border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow); }
.contrib-card.safety { background: #fbf3e8; border-left: 4px solid var(--ember); }
.contrib-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.contrib-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px; color: var(--pine-800); line-height: 1.25; }
.contrib-tools { display: flex; gap: 4px; flex-shrink: 0; }
.contrib-edit, .contrib-remove { border: none; background: none; cursor: pointer; font-size: 14px;
  padding: 3px 5px; border-radius: 7px; opacity: .65; }
.contrib-edit:hover, .contrib-remove:hover { opacity: 1; background: var(--paper-2); }
.contrib-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.contrib-when, .contrib-where { font-size: 12.5px; font-weight: 600; color: var(--pine-600); }
.contrib-details { margin: 8px 0 0; font-size: 13.5px; color: var(--bark); line-height: 1.5; }
.contrib-author { margin-top: 7px; font-size: 12px; font-style: italic; color: var(--ink-soft); }
.contrib-curated-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: rgba(246,240,226,.55); margin: 2px 0 10px; }
.contrib-mount:empty + .contrib-curated-label { margin-top: 0; }

/* ===== single-column tabbed layout (same on phone + desktop) ===== */
.app-single { max-width: 720px; margin: 0 auto; }

@media (min-width: 880px) {
  .topbar-inner, .tabbar, .app-single { max-width: 860px; }
}

@media (max-width: 420px) {
  .stat-num { font-size: 22px; }
  .brand h1 { font-size: 26px; }
  .hero-title { font-size: 46px; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- member rename button ---------- */
.p-edit { border: none; background: none; font-size: 14px; line-height: 1; cursor: pointer;
  padding: 4px 6px; border-radius: 7px; opacity: .55; transition: opacity .12s, background .12s; }
.p-edit:hover { opacity: 1; background: rgba(0,0,0,.05); }

/* ---------- activity logs (admin) ---------- */
.logs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logs-head .panel-intro { margin-bottom: 8px; flex: 1; min-width: 200px; }
#logs-list { background: #fffdf8; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.logs-empty { color: var(--ink-soft); text-align: center; padding: 26px 16px; margin: 0; }

/* ---------- password field with eye toggle (camp key unlock) ---------- */
.pw-field { position: relative; display: flex; align-items: center; }
.pw-field input { flex: 1; padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: none; cursor: pointer; font-size: 17px; line-height: 1;
  padding: 6px 7px; border-radius: 8px; opacity: .7; transition: opacity .12s, background .12s; }
.pw-toggle:hover { opacity: 1; background: rgba(0,0,0,.06); }

/* ---------- last-year silhouette + repeat ---------- */
.slot-last { font-size: 12px; color: var(--ink-soft); opacity: .75; font-style: italic; margin-top: 4px; }
.slot-last-fam { font-style: normal; font-weight: 600; color: var(--bark, #4a4234); }
.slot-repeat { margin-top: 6px; font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; border: 1.5px dashed var(--moss); background: rgba(111,157,107,.10);
  color: var(--pine-700); border-radius: 999px; padding: 5px 12px; transition: background .12s; }
.slot-repeat:hover { background: rgba(111,157,107,.22); }
.repeat-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; background: rgba(111,157,107,.12); border: 1.5px solid var(--moss);
  border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; font-size: 14px; color: var(--pine-800); }
.repeat-all-btn { font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  border: none; background: var(--moss); color: #fff; border-radius: 999px; padding: 8px 15px; transition: filter .12s; }
.repeat-all-btn:hover { filter: brightness(1.06); }

/* ---------- meal history (lifetime stats) ---------- */
.meal-history { margin-top: 22px; background: #fffdf8; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.mh-head { font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; color: var(--pine-800); }
.mh-sub { font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 12.5px; color: var(--ink-soft); margin-left: 6px; }
.mh-list { list-style: none; margin: 12px 0 0; padding: 0; }
.mh-row { display: flex; flex-direction: column; gap: 1px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mh-row:last-child { border-bottom: none; }
.mh-fam { font-weight: 700; color: var(--pine-700); font-size: 14.5px; }
.mh-stat { font-size: 13px; color: var(--ink-soft); }
.mh-stat b { color: var(--bark, #4a4234); }

/* ---------- trip-range weather card ---------- */
.trip-weather { margin-bottom: 12px; }
.tw-loading { color: var(--ink-soft); font-size: 13px; font-style: italic; padding: 6px 0; }
.tw-label { font-size: 13px; font-weight: 700; color: var(--pine-700); margin-bottom: 9px; }
.tw-sub-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin: 12px 0 7px; }
.tw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tw-day { background: #fffdf8; border: 1px solid var(--line); border-radius: 11px; padding: 9px 7px; text-align: center; }
.tw-dow { display: block; font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.tw-emoji { display: block; font-size: 21px; margin: 3px 0 2px; }
.tw-temp { display: block; font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; color: var(--ember); line-height: 1.1; }
.tw-lo { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.tw-rain { display: block; font-size: 11px; color: #3a78b5; font-weight: 600; margin-top: 2px; }
.tw-typical { background: rgba(111,157,107,.10); border: 1px solid var(--moss); border-radius: 12px; padding: 11px 13px; margin-bottom: 4px; }
.tw-typical-main { display: block; font-size: 16px; color: var(--pine-800); }
.tw-typical-main b { font-family: 'Fraunces', serif; color: var(--ember); }
.tw-typical-sub { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.tw-note { font-size: 11.5px; color: var(--ink-soft); font-style: italic; margin: 8px 0 0; }
@media (max-width: 480px) { .tw-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- activity log category chips ---------- */
.log-cat { display: inline-block; white-space: nowrap; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.log-cat.cat-visit  { color: #3a6ea5; background: #e8f0fa; border-color: #cfe0f3; }
.log-cat.cat-edit   { color: var(--pine-700); background: #eef5e9; border-color: #d8e8cf; }
.log-cat.cat-unlock { color: #8a5cc4; background: #f1eafb; border-color: #ddc9f5; }
.log-cat.cat-fail   { color: var(--danger); background: #f9e7e2; border-color: #f0cfc4; }

/* ---------- AI "ideas nearby" (Activities tab) ---------- */
.ai-ideas { margin-top: 14px; }
.ai-ideas-label { color: rgba(246,240,226,0.6); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 2px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ai-ideas-label .btn-ghost { font-size: 11.5px; padding: 4px 9px; }
.ai-idea { background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 9px; overflow: hidden; }
.ai-idea-head { display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit; padding: 12px 15px; }
.ai-idea-head:hover { background: #f1f6ec; }
.ai-idea-top { display: flex; align-items: baseline; gap: 8px; }
.ai-idea-title { font-weight: 700; color: var(--pine-800); font-size: 14.5px; }
.ai-idea-kind { font-size: 11px; color: var(--ink-soft); }
.ai-idea p { margin: 4px 0 0; font-size: 13px; color: var(--bark); line-height: 1.45; }
.ai-idea-more { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--ember); }
.ai-idea-head[aria-expanded="true"] .ai-idea-more { display: none; }
.ai-idea-detail { padding: 0 15px 13px; border-top: 1px dashed var(--line); }
.ai-d-what { margin: 10px 0 0; font-size: 13px; color: var(--ink); line-height: 1.5; }
.ai-d-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; color: var(--bark); font-weight: 600; }
.ai-d-tips { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.ai-d-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.ai-d-links .btn-ghost { font-size: 12.5px; padding: 8px 12px; text-decoration: none; }
.ai-d-note { margin: 8px 0 0; font-size: 11px; color: var(--ink-soft); font-style: italic; }
.ai-finding { background: var(--paper); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 13px; margin-top: 14px; }
.ai-finding .spinner { width: 26px; height: 26px; border-width: 3px; border-color: rgba(0,0,0,.12); border-top-color: var(--ember); flex: 0 0 auto; }
.ai-finding p { margin: 0; font-size: 13.5px; color: var(--bark); }

/* ---------- logs summary strip (attack / bot overview) ---------- */
.logs-summary { background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 15px; margin-bottom: 12px; }
.ls-verdict { font-weight: 700; font-size: 14px; color: var(--pine-800); }
.ls-verdict.warn { color: var(--danger); }
.ls-stats { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); }

/* visitor badges + per-visitor breakdown */
.lv-badge { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.lv-badge.b-bot  { color: #7a6a36; background: #f5efd8; border-color: #e5dab2; }
.lv-badge.b-dc   { color: #3a6ea5; background: #e8f0fa; border-color: #cfe0f3; }
.lv-badge.b-sus  { color: var(--danger); background: #f9e7e2; border-color: #f0cfc4; }
.lv-break { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }

/* undo controls in the expanded history */
.le-undo { border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--pine-700); padding: 2px 9px; cursor: pointer; justify-self: start; }
.le-undo:hover { background: #eef5e9; }
.le-undone { font-size: 11px; color: var(--ink-soft); font-style: italic; }
.ld-events li.has-undo { grid-template-columns: 72px 92px 1fr auto; }

/* ---------- activity log: one row per unique visitor ---------- */
.logs-list { display: flex; flex-direction: column; }
.log-group { border-bottom: 1px solid var(--line); }
.log-group:last-child { border-bottom: none; }
.log-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer; font: inherit; padding: 12px 14px;
  color: var(--bark, #4a4234); }
.log-row:hover { background: #f1f6ec; }
.lv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lv-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.lv-who { font-weight: 700; color: var(--pine-700); font-size: 14.5px; }
.lv-anon { color: var(--ink-soft); font-weight: 600; font-style: italic; }
.lv-more { font-size: 10px; color: var(--ink-soft); }
.lv-bot { font-size: 10.5px; color: var(--ember); font-weight: 600; }
.lv-meta { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-count { flex: 0 0 auto; min-width: 34px; text-align: center; font-family: 'Fraunces', serif;
  font-weight: 700; font-size: 15px; color: var(--pine-700); background: var(--paper-2);
  border-radius: 999px; padding: 4px 8px; }
.lv-chev { flex: 0 0 auto; color: var(--ink-soft); transition: transform .15s; }
.log-row[aria-expanded="true"] .lv-chev { transform: rotate(180deg); }
.log-row[aria-expanded="true"] { background: #f1f6ec; }
.log-detail { padding: 4px 14px 14px; background: #f7f9f3; }
.ld-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-soft); padding: 8px 0 10px; }
.ld-events { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--line); }
.ld-events li { display: grid; grid-template-columns: 72px 92px 1fr; gap: 10px; align-items: center; padding: 6px 0; font-size: 12.5px; }
.ld-events li.ld-day { display: block; padding: 10px 0 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft);
  border-bottom: 1px dashed var(--line); }
.le-time { color: var(--ink-soft); white-space: nowrap; }
.le-detail { color: var(--bark, #4a4234); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .ld-events li { grid-template-columns: 60px 80px 1fr; gap: 7px; }
}

/* ---------- event details card (Plan tab) ---------- */
.event-details-card { background: #fbf3e6; border: 1px solid #f0e2c8; border-radius: 14px; padding: 12px 15px; margin-bottom: 14px; box-shadow: var(--shadow); }
.event-details-card .edc-head { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--bark); margin-bottom: 4px; }
.event-details-card p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.55; }

/* ---------- creation feature picker (add-event modal) ---------- */
.tf-features { margin-top: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(111,157,107,.07); }
.tf-feat-label { display: block; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 6px; }
.tf-features .feat { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink); padding: 5px 0; cursor: pointer; }
.tf-features .feat input { width: 17px; height: 17px; accent-color: var(--moss); }
.feat-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px 27px; }
.feat-sub label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.feat-sub input[type="text"], .feat-sub input[type="number"] { flex: 1; min-width: 130px; margin: 0; }

/* ---------- funds (shared money pools + pledges) ---------- */
.funds-empty { color: rgba(246,240,226,0.62); font-size: 14px; text-align: center; padding: 16px 0; }
.funds-grid { display: grid; gap: 12px; }
.fund-card { background: var(--paper); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.fund-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fund-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; color: var(--pine-800); }
.fund-bar { height: 9px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 10px 0 6px; }
.fund-bar span { display: block; height: 100%; background: var(--moss); border-radius: 6px; transition: width .4s ease; }
.fund-nums { font-size: 12.5px; color: var(--ink-soft); }
.pledge-list { list-style: none; margin: 11px 0 0; padding: 0; display: grid; }
.pledge { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink); padding: 5px 0; border-top: 1px solid var(--line); }
.pledge.paid .pl-amt { color: var(--moss); font-weight: 700; }
.fund-notes { margin: 9px 0 0; font-size: 13px; color: var(--ink-soft); }
.fund-pledge-btn { margin-top: 11px; width: 100%; padding: 7px; font-size: 13px; }

/* ---------- app wordmark (topbar) ---------- */
.tt-brand { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(246,240,226,0.6); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Tabs are gated via the [hidden] attribute (feature modules + admin-only Logs). The
   .tab { display:flex } rule above would otherwise override [hidden], so honor it here. */
.tabbar[hidden], .tab[hidden] { display: none !important; }

/* event-form: holiday picker + feature hints */
#tf-holiday-row { margin-top: 4px; }
.feat-hint { font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.feat-auto-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-soft); font-style: italic; }
