: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;
}

* { 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%, #2d5840 0%, #1f3d2b 42%, #14291c 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- 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: #18331f; }
.ridges svg:nth-child(2) path { fill: #102619; }

/* ---- 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: rgba(20, 41, 28, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.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-right { display: flex; align-items: center; gap: 12px; }
.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); }

.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; }
.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); }

/* ---- 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: 10px; }
.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; }
.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 { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.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: 14px 18px 4px; text-align: center; }
.tb-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px; color: var(--paper); }
.tb-meta { color: rgba(246,240,226,0.72); font-size: 13.5px; font-weight: 500; margin-top: 2px; }
.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: none; font-family: inherit; font-size: 17px; color: rgba(246,240,226,.6);
  padding: 8px 4px; border-radius: 10px; transition: all .12s; }
.tab span { font-size: 11.5px; font-weight: 600; }
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--pine-800); }
.tab[aria-selected="true"] span { color: var(--pine-800); }

.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) ===== */
.sched-slot { margin-bottom: 12px; }
.sched-slot .fam-card { margin-bottom: 0; }
.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; }
.slot-open { background: var(--paper); border-radius: 15px; box-shadow: var(--shadow); padding: 14px 16px;
  border-left: 5px solid var(--ember-2); display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; }
.slot-open .open-tag { color: var(--ember); font-weight: 600; font-size: 14px; }
.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 (right-column module) ===== */
.trip-cal { order: -1; margin-bottom: 16px; }
.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); }
.cal-peek { margin-top: 11px; padding: 11px 12px; background: var(--paper-2);
  border-radius: 12px; border: 1px solid var(--line); }
.cal-peek[hidden] { display: none; }
.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-row { font-size: 12.5px; color: var(--ink-soft); margin: 2px 0; }
.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); }
.cal-add { width: 100%; margin-top: 11px; border: 1.5px dashed var(--moss); background: none; color: var(--pine-700);
  font-family: inherit; font-weight: 600; font-size: 13px; padding: 9px; border-radius: 11px; cursor: pointer; transition: all .12s; }
.cal-add:hover { background: rgba(111,157,107,.12); }

/* 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; }
.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; }

/* ===== responsive: 2-column on desktop ===== */
.app-grid { display: flex; flex-direction: column; }   /* phones: single column; calendar pinned on top via order */
.col { display: contents; } /* phones: panels flow normally, tabs toggle them */
.rtabbar { display: none; } /* right-column sub-tabs: desktop only */
.rtab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  background: none; border: none; font-family: inherit; font-weight: 600;
  color: rgba(246,240,226,.6); padding: 9px 6px; border-radius: 10px; transition: all .12s; }
.rtab span { font-size: 13.5px; }
.rtab:hover { color: var(--paper); }
.rtab[aria-selected="true"] { background: var(--paper); color: var(--pine-800); }
@media (min-width: 880px) {
  .tabbar { display: none; }
  .topbar-inner { max-width: 1080px; }
  .trip-banner { max-width: 1080px; }
  .app-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; max-width: 1080px; align-items: start; }
  .col { display: flex; flex-direction: column; }
  .col-left, .col-right { min-width: 0; }
  .col-left .tab-panel { display: block !important; }   /* schedule always shown on the left */
  .tab-panel { padding-top: 0; }
  .rtabbar { display: flex; gap: 4px; padding: 6px; background: rgba(20,41,28,.45); border-radius: 14px; margin-bottom: 14px; }
  .foot { grid-column: 1 / -1; }
}

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