/* Not No — night tiles. Archivo (wide display) + Inter. */
[hidden] { display: none !important; }
:root {
  --night: #0c0d0d;      /* page */
  --tile: #17181a;       /* tiles, cards */
  --tile-2: #202124;     /* inputs, chips on tiles */
  --rule: #26272a;
  --text: #f2efe9;
  --soft: #b9b3a8;       /* secondary text, 8.9:1 on night */
  --dim: #8d877d;
  --sand: #e9dcc6;       /* buttons, donate band */
  --gold: #f0c987;       /* location tile, highlights */
  --coral: #ff7a59;      /* small accent from the TikiVision lights */
  --good: #8fcf99;
  --warn: #ff9b7a;

  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --r: 28px;             /* tile radius */
  --gap: 24px;
  --pad: clamp(16px, 3vw, 40px);
  --wrap: 1360px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--night); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sand); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; line-height: 1; color: var(--text); }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sand); color: var(--night); padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.soft, .muted { color: var(--soft); }

/* type scale */
.mega { font-weight: 900; font-stretch: 125%; font-size: clamp(64px, 13vw, 200px); line-height: .86; letter-spacing: -.03em; color: #fff; }
.display-xl { font-weight: 900; font-stretch: 125%; font-size: clamp(52px, 6vw, 96px); line-height: .9; letter-spacing: -.03em; }
.display-l { font-size: clamp(44px, 5vw, 76px); line-height: .95; letter-spacing: -.025em; }
.display-m { font-size: clamp(32px, 4vw, 52px); }
.display-s { font-size: 32px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; font: 600 16px/1.1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn, .btn-white { background: #fff; color: var(--night); }
.btn:hover, .btn-white:hover { background: var(--sand); color: var(--night); }
.btn-ghost, .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover, .btn-line:hover { background: #fff; color: var(--night); }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: #2b2c30; color: #fff; }
.btn-small { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: progress; }

/* ---------- home: hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; flex-direction: column; justify-content: space-between; padding: 20px var(--pad) clamp(48px, 7vw, 80px); overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,13,13,.55) 0%, rgba(12,13,13,.05) 28%, rgba(12,13,13,.2) 58%, var(--night) 100%); }
.topnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wordmark { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 800 18px/1 var(--display); font-stretch: 125%; letter-spacing: .02em; }
.wordmark img { width: 40px; height: 40px; border-radius: 50%; }
.pillnav { display: flex; gap: 4px; flex-wrap: wrap; padding: 5px; border-radius: 999px; background: rgba(12,13,13,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); }
.pillnav a { padding: 10px 16px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.pillnav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.pillnav a[aria-current] { background: rgba(255,255,255,.14); color: #fff; }
.pillnav .pill-cta { background: var(--sand); color: var(--night); font-weight: 600; }
.pillnav .pill-cta:hover { background: #fff; color: var(--night); }
.hero-body { max-width: 1200px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-top: 28px; }
.hero-row p { max-width: 520px; font-size: 20px; line-height: 1.45; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
  .mega { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
}

/* ---------- home: tiles ---------- */
.tiles { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--pad) 0; display: flex; flex-direction: column; gap: var(--gap); }
.tile-row { display: flex; flex-wrap: wrap; gap: var(--gap); }
.tile { border-radius: var(--r); background: var(--tile); padding: clamp(28px, 4vw, 48px); }
.tile-about { flex: 2 1 560px; min-height: 380px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.about-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; align-self: stretch; }
.badge { flex: 0 0 auto; width: clamp(180px, 20vw, 280px); height: auto; border-radius: 50%; box-shadow: 0 0 0 1px rgba(233,220,198,.08), 0 30px 80px rgba(240,201,135,.12); }
.tile-about .soft { font-size: 19px; max-width: 560px; }
.tile-gold { flex: 1 1 320px; min-height: 380px; background: var(--gold); color: var(--night); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.kicker-dark { font-size: 15px; font-weight: 600; }
.address { font: 900 clamp(72px, 7vw, 104px)/.88 var(--display); font-stretch: 115%; letter-spacing: -.04em; }
.address-sub { margin-top: 14px; font-size: 17px; font-weight: 500; }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; background: var(--tile-2); }
.tile-tiki { padding: 0; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.tiki-copy { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.tiki-copy .soft { font-size: 19px; max-width: 440px; }
.kicker-coral { font-size: 15px; font-weight: 600; color: var(--coral); }
.tiki-small { width: 100%; max-width: 460px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.tiki-big { width: 100%; height: 100%; min-height: 560px; max-height: 780px; object-fit: cover; }
.tile-events { flex: 1 1 340px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; }
.tile-events .tile-head { align-items: center; }
.chip { font-size: 13px; font-weight: 600; background: var(--tile-2); padding: 7px 12px; border-radius: 999px; }
.events-empty { font: 600 28px/1.15 var(--display); letter-spacing: -.01em; }
.tile-photo { flex: 2 1 560px; min-height: 300px; padding: 0; overflow: hidden; position: relative; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-tag { position: absolute; left: 24px; bottom: 24px; background: rgba(12,13,13,.75); backdrop-filter: blur(8px); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
#events.has-events .tile-events { flex: 3 1 560px; }
#events.has-events .tile-photo { flex: 1 1 300px; }
.ev-day { padding: 18px 0; border-top: 1px solid var(--rule); }
.ev-day h3 { font-size: 20px; margin-bottom: 10px; }
.ev { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 6px 0; }
.ev time { color: var(--gold); font-weight: 600; font-size: 15px; }
.ev-title { font-weight: 600; }
.ev-desc { color: var(--soft); font-size: 15px; }
.ev-where { color: var(--sand); font-size: 14px; margin-top: 2px; }
.section-title { margin: 48px 4px 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.card { padding: 0; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; background: var(--tile-2); }
.card-body { padding: 24px 28px 30px; }
.card h3 { font: 600 22px/1.2 var(--body); letter-spacing: -.01em; margin-bottom: 8px; }
.card p { color: var(--soft); font-size: 16px; line-height: 1.55; }
.tile-sand { background: var(--sand); color: var(--night); }
.tile-sand h2 { color: var(--night); margin-bottom: 10px; }
.donate { margin-top: var(--gap); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.donate p { color: #3a352d; max-width: 560px; }

/* footer */
.site-footer { margin-top: 72px; padding: 32px var(--pad); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--dim); font-size: 14px; }

/* ---------- app pages: header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(12,13,13,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 800 17px/1 var(--display); font-stretch: 125%; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.site-nav { display: flex; gap: 4px; align-items: center; padding: 4px; border-radius: 999px; background: var(--tile); border: 1px solid var(--rule); }
.site-nav a { padding: 9px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { background: var(--tile-2); color: #fff; }
.site-nav a[aria-current] { background: var(--sand); color: var(--night); font-weight: 600; }
.site-nav .btn { min-height: 36px; padding: 8px 14px; font-size: 14px; border-color: var(--rule); color: var(--text); }
.site-nav .btn:hover { background: var(--tile-2); color: #fff; }

/* forms */
label { display: grid; gap: .4rem; font-size: 14px; font-weight: 500; color: var(--soft); }
input, textarea, select { font: 400 16px var(--body); color: var(--text); background: var(--tile-2); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; width: 100%; }
input::placeholder, textarea::placeholder { color: #77726a; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,201,135,.25); }

/* app layout */
.app-main { padding: 56px 0 96px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.page-head h1 { font-weight: 900; font-stretch: 120%; letter-spacing: -.03em; font-size: clamp(40px, 6vw, 72px) !important; line-height: .95; }
.page-head p { margin-top: 10px; color: var(--soft); }
.empty { border: 1px dashed var(--rule); border-radius: var(--r); padding: 40px; text-align: center; color: var(--soft); }
.empty p { max-width: 36em; margin: 0 auto; }
.error { color: var(--warn); font-size: 15px; min-height: 1.4em; }
.callout { background: var(--tile); border-radius: 18px; padding: 18px 22px; margin-bottom: 32px; color: var(--text); border-left: 4px solid var(--gold); }

/* login */
.login { max-width: 400px; margin: 6vh auto; padding: 40px 32px; border-radius: var(--r); background: var(--tile); text-align: center; display: grid; gap: 24px; justify-items: center; }
.login img { width: 104px; height: 104px; border-radius: 50%; }
.login h1 { font-weight: 900; font-stretch: 120%; font-size: 36px !important; }
.login .muted { margin-top: 8px !important; }
.login form { display: grid; gap: 14px; width: 100%; text-align: left; }
.login .btn { width: 100%; background: var(--sand); }
.login .btn:hover { background: #fff; }

/* tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tile); border: 1px solid var(--rule); margin-bottom: 32px; flex-wrap: wrap; }
.tabs button { font: 500 15px var(--body); background: none; border: 0; color: var(--soft); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: var(--sand); color: var(--night); font-weight: 600; }

/* meal plan */
.meal-days { display: grid; gap: 16px; }
.meal-day { background: var(--tile); border-radius: var(--r); padding: 28px; }
.meal-day h3 { font-size: 26px; margin-bottom: 18px; }
.meals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.meal { background: var(--tile-2); border-radius: 18px; padding: 16px 18px; }
.meal .slot { color: var(--gold); font-size: 13px; font-weight: 600; }
.meal .menu { font-size: 17px; font-weight: 500; margin: 4px 0; }
.meal .crew, .meal .notes { font-size: 14px; color: var(--soft); }

/* budget + editors */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--tile); border-radius: 22px; padding: 20px 22px; }
.stat:first-child { background: var(--gold); }
.stat:first-child .k, .stat:first-child .v { color: var(--night); }
.stat .k { font-size: 14px; color: var(--soft); font-weight: 500; }
.stat .v { font: 800 34px/1.15 var(--display); font-stretch: 110%; letter-spacing: -.02em; margin-top: 6px; }
.stat .v.neg { color: var(--warn); }
.bar { height: 8px; background: var(--tile-2); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.bar span.over { background: var(--warn); }
#s-gap { margin: 0 0 8px !important; }
.section-gap { margin-top: 48px; }
.table-wrap { overflow-x: auto; background: var(--tile); border-radius: 22px; padding: 8px 12px; }
table.edit { width: 100%; border-collapse: collapse; font-size: 15px; }
table.edit th { text-align: left; font-weight: 500; color: var(--soft); padding: 10px 6px; border-bottom: 1px solid var(--rule); white-space: nowrap; font-size: 13px; }
table.edit td { padding: 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.edit tr:last-child td { border-bottom: 0; }
table.edit td.num input { text-align: right; }
table.edit input, table.edit textarea, table.edit select { padding: 9px 10px; font-size: 15px; border-radius: 10px; }
table.edit textarea { min-height: 2.6rem; resize: vertical; }
table.edit tfoot td { font-weight: 600; color: var(--gold); padding: 12px 6px; text-align: right; border-top: 1px solid var(--rule); }
.row-del { background: none; border: 0; color: var(--dim); font-size: 22px; cursor: pointer; padding: 6px 10px; line-height: 1; border-radius: 8px; min-width: 40px; min-height: 40px; }
.row-del:hover { color: var(--warn); background: var(--tile-2); }
.editor-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.editor-actions .save { background: var(--sand); }
.save-state { color: var(--soft); font-size: 14px; }
.cat-totals { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.cat-totals span { background: var(--tile); border-radius: 99px; padding: 7px 14px; font-size: 13px; color: var(--soft); }
.cat-totals b { color: var(--text); font-weight: 600; }
.day-editor { background: var(--tile); border-radius: var(--r); padding: 24px; margin-bottom: 16px; }
.day-editor .table-wrap { background: transparent; padding: 0; }
.day-editor .day-top { display: flex; gap: 12px; align-items: end; margin-bottom: 12px; }
.day-editor .day-top label { flex: 1; }

/* camp photos */
.up-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.up-controls label.sr-label { width: 12rem; }
#pick { position: relative; cursor: pointer; background: var(--sand); }
#pick:hover { background: #fff; }
#pick:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.uploads { display: grid; gap: 6px; margin-bottom: 24px; }
.up-row { display: grid; grid-template-columns: minmax(0, 1fr) 8rem 9rem; gap: 16px; align-items: center; font-size: 14px; color: var(--soft); background: var(--tile); border-radius: 14px; padding: 10px 16px; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.up-bar { height: 6px; background: var(--tile-2); border-radius: 99px; overflow: hidden; }
.up-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.up-row.ok .up-state { color: var(--good); }
.up-row.bad .up-state { color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chips button { font: 500 14px var(--body); color: var(--soft); background: var(--tile); border: 1px solid var(--rule); border-radius: 999px; padding: 9px 16px; cursor: pointer; min-height: 40px; }
.chips button:hover { color: #fff; }
.chips button[aria-pressed="true"] { color: var(--night); background: var(--sand); border-color: var(--sand); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 8px; }
.ptile { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--tile); cursor: zoom-in; }
.ptile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ptile:hover img { transform: scale(1.03); }
.pfallback { display: grid; place-items: center; height: 100%; color: var(--soft); font-size: 13px; font-weight: 600; }
.play { position: absolute; right: 10px; bottom: 8px; color: #fff; font-size: 14px; text-shadow: 0 1px 4px #000; }
#app.dropping { outline: 2px dashed var(--gold); outline-offset: 12px; border-radius: 16px; }
#viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,8,9,.97); color: var(--text); }
#viewer::backdrop { background: rgba(0,0,0,.85); }
.v-top { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--pad); z-index: 2; }
.v-meta { color: var(--soft); font-size: 14px; }
.v-actions { display: flex; gap: 10px; align-items: center; }
.v-actions .v-dl { background: var(--sand); }
.v-x { background: var(--tile); border: 0; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; }
.v-stage { position: absolute; inset: 72px 0 16px; display: grid; place-items: center; text-align: center; }
.v-stage img, .v-stage video { max-width: calc(100vw - 2rem); max-height: calc(100vh - 6rem); object-fit: contain; border-radius: 10px; }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(23,24,26,.8); color: var(--text); border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; }
.v-prev { left: 16px; } .v-next { right: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hide-sm { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .meals { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --r: 22px; --gap: 14px; }
  body { font-size: 16px; }
  .hero { min-height: 88svh; }
  .pillnav a { padding: 9px 12px; font-size: 13px; }
  .wordmark { font-size: 0; gap: 0; } .wordmark img { width: 36px; height: 36px; }
  .tiles { padding-top: 40px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .photo-grid img { border-radius: 12px; }
  .tile-about, .tile-gold { min-height: 0; }
  .tile-about { flex-direction: column-reverse; align-items: flex-start; } .badge { width: 132px; }
  .tiki-big { min-height: 420px; }
  .ev { grid-template-columns: 1fr; gap: 2px; }
  .brand { font-size: 0; gap: 0; }
  .site-nav a { padding: 8px 11px; font-size: 13px; }
  .up-controls { width: 100%; } .up-controls label.sr-label { flex: 1; width: auto; } #pick { width: 100%; }
  .up-row { grid-template-columns: minmax(0, 1fr) 5rem; } .up-state { grid-column: 1 / -1; }
  .pgrid { grid-template-columns: repeat(3, 1fr); gap: 3px; } .ptile { border-radius: 4px; }
  .v-nav, .v-meta { display: none; }
  .login { padding: 32px 20px; }
}

/* camp layout planner */
.layout-main .wrap { max-width: 1500px; }
.lay-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.lay-tools select { min-width: 150px; padding: 9px 12px; }
.zoom { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; background: var(--tile); }
.zoom button { background: none; border: 0; color: var(--text); font: 600 14px var(--body); min-width: 44px; min-height: 40px; padding: 0 12px; cursor: pointer; }
.zoom button:hover { background: var(--tile-2); }
.lay-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.lay-canvas { flex: 999 1 560px; min-width: 0; max-height: calc(100vh - 96px); overflow: auto; background: #0f1011; border-radius: var(--r); border: 1px solid var(--rule); touch-action: none; }
.lay-canvas svg { display: block; width: 100%; height: auto; margin: 0 auto; max-width: none; user-select: none; -webkit-user-select: none; }
.piece { outline: none; }
.piece.movable { cursor: grab; }
.piece.movable:active { cursor: grabbing; }
.piece:focus-visible rect:first-of-type { stroke: #f0c987; stroke-width: .4; }
.lay-panel { flex: 1 1 300px; background: var(--tile); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; position: sticky; top: 84px; }
.lay-panel h2 { font-size: 24px; }
.lay-panel .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.lay-panel fieldset { border: 1px solid var(--rule); border-radius: 16px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; }
.lay-panel legend { font-size: 13px; font-weight: 600; color: var(--gold); padding: 0 6px; }
.lay-panel input[type=range] { padding: 0; accent-color: var(--gold); background: none; border: 0; }
.lay-panel .check { display: flex; align-items: center; gap: 10px; color: var(--text); }
.lay-panel .check input { width: 20px; height: 20px; accent-color: var(--gold); }
.rot-btns { display: flex; gap: 6px; }
.pop-row { display: grid; grid-template-columns: 1fr 70px auto auto; gap: 8px; align-items: end; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.panel-actions .btn:not(.btn-line) { background: var(--sand); }
.btn.danger:hover { background: #ff5a4f; border-color: #ff5a4f; color: #fff; }
.hint { color: var(--soft); font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; font-size: 13px; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.lg-door { background: #5ee38a; border-radius: 3px !important; height: 6px !important; width: 18px !important; }
.lg-black { background: #111; border: 2px solid #fff; }
.lg-gray { background: #a3a3a3; border: 2px solid #fff; }
.lg-hitch { width: 0 !important; height: 0 !important; border-radius: 0 !important; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-right: 12px solid var(--sand); }
.lg-pop { background: #3d6fe0; opacity: .7; border-radius: 3px !important; }
.lg-warn { border: 2px solid #ff5a4f; border-radius: 3px !important; }
@media (max-width: 700px) { .lay-panel { position: static; } .lay-canvas { max-height: 70vh; } .pop-row { grid-template-columns: 1fr 64px; } }
@media print {
  .site-header, .lay-tools, .lay-panel, .editor-actions, .page-head p { display: none !important; }
  body, .lay-canvas { background: #fff !important; }
  .lay-canvas { max-height: none; overflow: visible; border: 0; }
  .lay-canvas svg { width: 100% !important; }
  .legend { color: #333; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- harmonized tiles (v3) ---------- */
.mega { font-stretch: 118%; }
.topnav { align-items: center; }
.topnav > .pill-cta { padding: 12px 20px; border-radius: 999px; background: var(--sand); color: var(--night); text-decoration: none; font-size: 14px; font-weight: 600; }
.topnav > .pill-cta:hover { background: #fff; color: var(--night); }
.hero-row p { max-width: 600px; }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 24px; }
.tile-title { font: 800 32px/1.05 var(--display); font-stretch: 110%; letter-spacing: -.02em; }
.tile-sub { color: var(--soft); font-size: 16px; }
.tile-foot { color: var(--soft); font-size: 16px; margin-top: 20px; }
.tile-badge { flex: 1 1 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; min-height: 0; }
.tile-badge .badge { width: clamp(200px, 22vw, 300px); }
.badge-line { font: 800 26px/1.15 var(--display); font-stretch: 110%; letter-spacing: -.015em; }
.tile-map { flex: 2 1 560px; background: var(--sand); color: var(--night); }
.tile-map .tile-title { color: var(--night); }
.tile-map .tile-sub { color: #3a352d; font-weight: 600; }
.brc-map { display: block; width: 100%; height: auto; max-height: 440px; }
.photo-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.photo-grid-2 img { aspect-ratio: 4 / 3; }
.card { background: var(--tile-2); border-radius: 20px; }
.donate .tile-title { margin-bottom: 10px; color: var(--night); }
@media (max-width: 700px) {
  .topnav > .pill-cta { padding: 10px 14px; font-size: 13px; }
  .tile-title { font-size: 26px; }
  .tile-badge .badge { width: 180px; }
  .photo-grid-2 { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* camp calendar */
.cal-settings, .cal-me, .cal-people { margin-bottom: 16px; }
.cal-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; align-items: end; }
.cal-form .wide { grid-column: span 2; }
.cal-form .btn { background: var(--sand); }
.cal-msg { margin-bottom: 16px; color: var(--sand); font-weight: 500; }
.cal-name { max-width: 280px; margin-bottom: 16px; }
.day-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.day-chips button { font: 500 14px var(--body); color: var(--soft); background: var(--tile-2); border: 1px solid var(--rule); border-radius: 14px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.day-chips button b { color: var(--text); font-weight: 600; }
.day-chips button[aria-pressed="true"] { background: var(--sand); border-color: var(--sand); color: #3a352d; }
.day-chips button[aria-pressed="true"] b { color: var(--night); }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-bottom: 16px; }
.cal-day { background: var(--tile); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cal-day header { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.cal-wk { color: var(--soft); font-size: 13px; font-weight: 500; }
.cal-day h3 { font-size: 26px; margin-top: 2px; }
.count { background: var(--tile-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.count.peak { background: var(--sand); color: var(--night); }
.cal-note { background: var(--tile-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.names { display: flex; flex-wrap: wrap; gap: 6px; }
.names span { font-size: 13px; background: var(--tile-2); border-radius: 999px; padding: 5px 10px; }
.names span.me { background: var(--sand); color: var(--night); font-weight: 600; }
.names .none { background: none !important; color: var(--dim); padding-left: 0 !important; }
.dinner { margin-top: auto; border-top: 1px solid var(--rule); padding-top: 14px; display: grid; gap: 6px; justify-items: start; }
.dinner-label { font-size: 13px; font-weight: 600; color: var(--soft); }
.cook { font-weight: 600; font-size: 16px; }
.menu-line { color: var(--soft); font-size: 14px; }
.linkish { background: none; border: 0; padding: 4px 0; color: var(--sand); font: 500 13px var(--body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; min-height: 32px; }
.mini { display: grid; gap: 10px; width: 100%; }
.mini input, .mini textarea { font-size: 15px; padding: 10px 12px; }
.mini-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mini .save { background: var(--sand); }
.people-list { display: flex; flex-wrap: wrap; gap: 8px; }
.people-list span { display: inline-flex; align-items: center; gap: 4px; background: var(--tile-2); border-radius: 999px; padding: 2px 2px 2px 14px; font-size: 14px; }
.people-list small { color: var(--dim); }
.people-list .row-del { min-width: 32px; min-height: 32px; font-size: 18px; }
@media (max-width: 700px) { .cal-form .wide { grid-column: auto; } }

/* burn countdown */
.countdown { display: inline-flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; margin-bottom: 22px; padding: 12px 20px 12px 18px; border-radius: 20px; background: rgba(12,13,13,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); }
.cd-unit { display: grid; justify-items: center; min-width: 44px; }
.cd-unit b { font: 800 30px/1 var(--display); font-stretch: 110%; font-variant-numeric: tabular-nums; color: #fff; }
.cd-unit small { font-size: 11px; font-weight: 600; color: var(--sand); margin-top: 4px; letter-spacing: .02em; }
.cd-label { font-size: 14px; line-height: 1.35; color: var(--text); padding-left: 16px; border-left: 1px solid rgba(255,255,255,.2); }
.cd-label em { font-style: normal; color: var(--soft); }
@media (max-width: 700px) { .countdown { gap: 4px 12px; padding: 10px 14px; } .cd-unit b { font-size: 24px; } .cd-unit { min-width: 34px; } .cd-label { flex-basis: 100%; border-left: 0; padding: 6px 0 0; font-size: 13px; } }
.tile-map { flex: 1 1 100%; }
.map-title { text-align: center; color: var(--night); font: 800 clamp(30px, 4vw, 48px)/1.05 var(--display); font-stretch: 110%; letter-spacing: -.02em; margin: 8px 0 28px; }
.brc-map { max-width: 900px; max-height: 620px; margin: 0 auto; }
.map-title { margin-bottom: 10px; }
.map-addr { text-align: center; font: 800 clamp(22px, 2.8vw, 34px)/1.1 var(--display); font-stretch: 110%; letter-spacing: -.015em; color: #3a352d; margin-bottom: 24px; }
