/* Layout: one top bar with two working views. Guest view is a single phone-width column;
   front desk view is a summary strip over a scrolling sites-by-dates grid with a side panel. */
:root {
  --bg: #f6efe1; --surface: #fbf7ee; --surface-2: #ffffff; --offset: #efe4cd; --offset-2: #e8dabb;
  --divider: #e0d3ae; --border: #cdb98a;
  --text: #2c2418; --muted: #6b5d45; --faint: #8f7d60; --inverse: #fbf7ee;
  --green: #2f5233; --green-hover: #223d27; --green-tint: #d9e2d3;
  --wood: #8a5a34; --wood-tint: #ecdbc6;
  --rust: #b5551f; --rust-hover: #954418; --rust-tint: #ecd3c0; --on-rust: #fff8ec;
  --ok: #3f6b2e; --ok-tint: #d7e2cd;
  --bad: #94332a; --bad-tint: #e6d2ce;
  --shadow: 0 6px 16px rgba(60, 45, 20, .16);
  --s1: #2a78d6; --s2: #eb6834; --chip: transparent;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --col: 36px; --row: 32px; --label: 132px; --head: 44px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171712; --surface: #1d1d16; --surface-2: #23231a; --offset: #26251a; --offset-2: #302e20;
    --divider: #322f21; --border: #4a4630;
    --text: #eae3d1; --muted: #b3a888; --faint: #8c8366; --inverse: #201f16;
    --green: #7fae7a; --green-hover: #9cc596; --green-tint: #2c3a29;
    --wood: #d3a06d; --wood-tint: #3c2f21;
    --rust: #e08a4f; --rust-hover: #e8a06e; --rust-tint: #3f2c1f; --on-rust: #201f16;
    --ok: #85b56e; --ok-tint: #2b3925;
    --bad: #c9776b; --bad-tint: #3f2823;
    --shadow: 0 6px 16px rgba(0, 0, 0, .45); --s1: #3987e5; --s2: #d95926; --chip: #f6efe1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171712; --surface: #1d1d16; --surface-2: #23231a; --offset: #26251a; --offset-2: #302e20;
  --divider: #322f21; --border: #4a4630;
  --text: #eae3d1; --muted: #b3a888; --faint: #8c8366; --inverse: #201f16;
  --green: #7fae7a; --green-hover: #9cc596; --green-tint: #2c3a29;
  --wood: #d3a06d; --wood-tint: #3c2f21;
  --rust: #e08a4f; --rust-hover: #e8a06e; --rust-tint: #3f2c1f; --on-rust: #201f16;
  --ok: #85b56e; --ok-tint: #2b3925;
  --bad: #c9776b; --bad-tint: #3f2823;
  --shadow: 0 6px 16px rgba(0, 0, 0, .45); --s1: #3987e5; --s2: #d95926; --chip: #f6efe1;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.wrap { padding-inline: 16px; padding-block: 0 48px; max-width: 1280px; margin-inline: auto; }

/* Top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 14px; border-bottom: 1px solid var(--divider); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .mark { width: 40px; height: auto; background: var(--chip); border-radius: 8px; padding: 3px; flex: none; }
.brand span { font-size: .78rem; color: var(--muted); display: block; margin-top: 4px; }
.wm { height: 22px; width: auto; display: block; }
.wm.d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wm.l { display: none; } :root:not([data-theme="light"]) .wm.d { display: block; } }
:root[data-theme="dark"] .wm.l { display: none; }
:root[data-theme="dark"] .wm.d { display: block; }
.tabs { display: flex; gap: 4px; background: var(--offset); padding: 4px; border-radius: 999px; margin-left: auto; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--muted); min-height: 38px; }
.tabs button[aria-selected="true"] { background: var(--green); color: var(--inverse); }
.notice { width: 100%; font-size: .82rem; color: var(--muted); background: var(--offset); border-radius: 8px; padding: 8px 12px; }
.notice b { color: var(--text); }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .9rem; cursor: pointer; background: var(--rust); color: var(--on-rust); }
.btn:hover { background: var(--rust-hover); }
.btn.line { background: transparent; border-color: var(--border); color: var(--text); }
.btn.line:hover { border-color: var(--green); color: var(--green); background: var(--green-tint); }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: .82rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
label.f { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); min-width: 0; }
label.f { min-width: 0; }
label.f input, label.f select, textarea { min-width: 0; max-width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font-weight: 500; font-size: .95rem; width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green); flex: none; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.muted { color: var(--muted); font-size: .86rem; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wood); }

/* Guest flow */
.guest { max-width: 560px; margin-inline: auto; padding-block: 24px 0; display: grid; gap: 18px; }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--offset-2); }
.steps i.on { background: var(--green); }
.panel { background: var(--surface); border: 1px solid var(--divider); border-radius: 12px; padding: 18px; display: grid; gap: 14px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.seg button { border: 1.5px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 10px 8px; cursor: pointer; font-weight: 600; font-size: .9rem; text-align: left; display: grid; gap: 2px; min-height: 58px; }
.seg button small { font-weight: 500; color: var(--muted); font-size: .76rem; }
.seg button[aria-pressed="true"] { border-color: var(--green); background: var(--green-tint); }
.nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mapbox { overflow-x: auto; border: 1px solid var(--divider); border-radius: 10px; background: var(--surface-2); }
.mapbox svg { display: block; width: 830px; height: 250px; }
.site { cursor: pointer; }
.site rect { fill: var(--surface); stroke: var(--ok); stroke-width: 1.5; }
.site text { fill: var(--text); font: 600 11px var(--font-body); }
.site.taken { cursor: not-allowed; }
.site.taken rect { fill: var(--offset-2); stroke: var(--border); }
.site.taken text { fill: var(--faint); }
.site.sel rect { fill: var(--green); stroke: var(--green); }
.site.sel text { fill: var(--inverse); }
.landmark rect { fill: var(--wood-tint); stroke: var(--wood); stroke-width: 1.2; }
.landmark text, .maplabel { fill: var(--muted); font: 600 10.5px var(--font-body); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--border); display: inline-block; flex: none; }
.cards { display: grid; gap: 12px; }
.card { display: grid; grid-template-columns: 112px 1fr; gap: 12px; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px; background: var(--surface-2); cursor: pointer; text-align: left; align-items: center; }
.card img, .card .ph { width: 112px; height: 84px; object-fit: cover; border-radius: 6px; background: var(--offset); display: grid; place-items: center; font-size: .72rem; color: var(--muted); text-align: center; }
.card[aria-pressed="true"] { border-color: var(--green); background: var(--green-tint); }
.card[disabled] { opacity: .5; cursor: not-allowed; }
.card b { display: block; }
.price { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.price div { display: flex; justify-content: space-between; gap: 12px; }
.price .tot { border-top: 1px solid var(--divider); padding-top: 8px; font-weight: 700; font-size: 1.05rem; }
.due { background: var(--green-tint); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; }
.due { border: 2px solid var(--green); }
.due b { font-size: 1.5rem; font-family: var(--font-body); font-weight: 800; letter-spacing: -.01em; }
.due .duelab { font-family: var(--font-body); font-weight: 800; font-size: 1.08rem; color: var(--text); }
.due .duelab + b ~ span, .due .note { font-family: var(--font-body); font-weight: 600; color: var(--text); }
.waiver { border: 1px solid var(--divider); border-radius: 10px; padding: 12px; display: grid; gap: 8px; background: var(--surface-2); }
.waiver .init { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.done { color: var(--ok); font-weight: 700; font-size: .85rem; }
.cardbox { border: 1.5px dashed var(--border); border-radius: 10px; padding: 16px; text-align: center; color: var(--muted); font-size: .86rem; background: var(--surface-2); }
.confirm-num { font-family: var(--font-display); font-size: 1.7rem; }
.dir { display: grid; gap: 8px; }
.dir div { background: var(--surface-2); border: 1px solid var(--divider); border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
a { color: var(--green); font-weight: 600; }
.err { color: var(--bad); font-size: .86rem; font-weight: 600; }

/* Front desk */
.desk { padding-block: 20px 0; display: grid; gap: 16px; }
.deskhead { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.deskhead .sp { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--divider); border-radius: 10px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.45rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat span { font-size: .76rem; color: var(--muted); font-weight: 600; }
.deskbody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .deskbody { grid-template-columns: minmax(0, 1fr); } }
.gridwrap { overflow: auto; max-height: 620px; border: 1px solid var(--divider); border-radius: 10px; background: var(--surface-2); position: relative; min-width: 0; }
.grid { position: relative; }
.ghead { position: sticky; top: 0; z-index: 5; display: flex; height: var(--head); background: var(--surface); border-bottom: 1px solid var(--border); }
.ghead .corner { position: sticky; left: 0; z-index: 6; width: var(--label); flex: none; background: var(--surface); border-right: 1px solid var(--border); display: grid; align-items: center; padding-left: 10px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.ghead .d { width: var(--col); flex: none; text-align: center; font-size: .68rem; color: var(--muted); display: grid; align-content: center; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ghead .d b { font-size: .82rem; color: var(--text); }
.ghead .d.we { background: var(--offset); }
.ghead .d.today { background: var(--green); color: var(--inverse); }
.ghead .d.today b { color: var(--inverse); }
.grow { display: flex; height: var(--row); border-bottom: 1px solid var(--divider); }
.grow .lab { position: sticky; left: 0; z-index: 3; width: var(--label); flex: none; background: var(--surface); border-right: 1px solid var(--border); padding: 0 8px 0 10px; display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.grow .lab small { font-weight: 500; color: var(--faint); font-size: .7rem; }
.grow .cells { flex: none; height: 100%; background-image: linear-gradient(to right, var(--divider) 1px, transparent 1px); background-size: var(--col) 100%; }
.grow.grp { height: 26px; background: var(--offset); }
.grow.grp .lab { background: var(--offset); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wood); }
.colmark { position: absolute; top: 0; bottom: 0; width: var(--col); pointer-events: none; z-index: 0; }
.colmark.we { background: var(--offset); opacity: .55; }
.colmark.today { background: var(--green-tint); opacity: .8; }
.bar { position: absolute; z-index: 2; height: calc(var(--row) - 8px); border-radius: 6px; padding: 0 8px; font-size: .74rem; font-weight: 600; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; cursor: grab; touch-action: none; user-select: none; background: var(--green-tint); color: var(--text); border: 1.5px solid var(--green); }
.bar.monthly { background: var(--wood-tint); border-color: var(--wood); }
.bar.comp { background: var(--offset-2); border-color: var(--border); border-style: dashed; }
.bar.arr { background: var(--green); color: var(--inverse); }
.bar.dep { background: var(--surface); border-color: var(--faint); color: var(--muted); }
.bar.new { box-shadow: 0 0 0 3px var(--rust); }
.bar.drag { cursor: grabbing; z-index: 4; box-shadow: var(--shadow); opacity: .92; }
.bar .flag { flex: none; min-width: 16px; height: 16px; border-radius: 8px; font-size: .64rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.flag.owe { background: var(--rust); color: var(--on-rust); }
.flag.wv { background: var(--bad); color: var(--inverse); }
.bar .grip { position: absolute; right: 0; top: 0; bottom: 0; width: 9px; cursor: ew-resize; }
.side { display: grid; gap: 14px; min-width: 0; }
.box { background: var(--surface); border: 1px solid var(--divider); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .84rem; }
.box li { display: flex; justify-content: space-between; gap: 8px; }
.box li span:last-child { color: var(--muted); white-space: nowrap; }
.log li { display: block; color: var(--text); }
.log time { color: var(--faint); font-size: .74rem; display: block; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1.5px solid var(--border); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 600; cursor: pointer; min-height: 34px; }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Mascot on the confirmation page: walks in, thumbs up, says something */
.mascot { position: relative; height: 304px; overflow: hidden; }
.mascot .ground { position: absolute; left: 50%; bottom: 6px; width: 190px; height: 22px; margin-left: -95px; border-radius: 50%; background: var(--offset-2); }
.mascot .walker { position: absolute; left: 50%; bottom: 10px; width: 150px; margin-left: -75px; animation: walkin 2.6s linear both; }
.mascot .walker img { display: block; width: 150px; height: auto; }
.mascot .walker .walk { animation: gone 0s 2.6s forwards; }
.mascot .walker .turn { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 387 / 520; background: url('img/squatchy-turn.webp') 0 0 / 1200% 100% no-repeat; visibility: hidden; animation: appear 0s 2.6s forwards, sqturn 3.59s step-end 2.6s both; }
@keyframes sqturn { 0.00% { background-position: 0.000% 0; } 5.01% { background-position: 9.091% 0; } 8.08% { background-position: 18.182% 0; } 11.14% { background-position: 27.273% 0; } 14.21% { background-position: 36.364% 0; } 17.27% { background-position: 45.455% 0; } 20.33% { background-position: 54.545% 0; } 23.40% { background-position: 63.636% 0; } 34.82% { background-position: 81.818% 0; } 38.44% { background-position: 90.909% 0; } 42.06% { background-position: 81.818% 0; } 45.68% { background-position: 63.636% 0; } 49.30% { background-position: 90.909% 0; } 52.92% { background-position: 100.000% 0; } 56.55% { background-position: 90.909% 0; } 60.17% { background-position: 81.818% 0; } 63.79% { background-position: 63.636% 0; } 67.41% { background-position: 81.818% 0; } 71.03% { background-position: 100.000% 0; } 74.65% { background-position: 90.909% 0; } 78.27% { background-position: 72.727% 0; } 81.89% { background-position: 81.818% 0; } 85.52% { background-position: 63.636% 0; } 89.14% { background-position: 90.909% 0; } 92.76% { background-position: 100.000% 0; } 96.38% { background-position: 81.818% 0; } 100% { background-position: 63.636% 0; } }
.mascot .thumb { position: absolute; left: 50%; bottom: 88px; margin-left: 36px; width: 46px; height: 46px; border-radius: 50%; background: var(--rust); display: grid; place-items: center; transform: scale(0); animation: thumbup .5s 2.7s cubic-bezier(.2, 1.7, .4, 1) forwards; box-shadow: var(--shadow); }
.mascot .thumb svg { width: 26px; height: 26px; fill: var(--on-rust); }
.mascot .bubble { position: absolute; top: 0; left: 50%; width: min(330px, 100%); transform: translateX(-50%); background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 14px; padding: 9px 14px; text-align: center; font-weight: 600; font-size: .95rem; line-height: 1.35; opacity: 0; animation: say .45s 3.6s ease-out forwards; }
.mascot .bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px; margin-left: -7px; background: var(--surface-2); border-right: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); transform: rotate(45deg); }
@keyframes walkin { from { transform: translateX(-340px); } to { transform: translateX(0); } }
@keyframes gone { to { visibility: hidden; } }
@keyframes appear { to { visibility: visible; } }
@keyframes thumbup { to { transform: scale(1); } }
@keyframes say { from { opacity: 0; transform: translateX(-50%) translateY(6px); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mascot .walker, .mascot .walker img, .mascot .walker .turn, .mascot .bubble { animation: none; } .mascot .walker .walk { visibility: hidden; } .mascot .walker .turn { visibility: visible; background-position: 63.636% 0; } .mascot .thumb { transform: scale(1); } .mascot .bubble { opacity: 1; } }

/* Reports */
.rep { padding-block: 20px 0; display: grid; gap: 18px; }
.repgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.stat em { font-style: normal; font-size: .76rem; color: var(--muted); display: block; }
.tblwrap { overflow-x: auto; min-width: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--divider); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { font-size: .74rem; color: var(--muted); font-weight: 700; }
.tbl tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--border); }
.chartbox { position: relative; min-width: 0; }
.chartbox svg { display: block; width: 100%; height: auto; }
.chartbox text { font-family: var(--font-body); }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--muted); }
.key span { display: inline-flex; align-items: center; gap: 7px; }
.key i { width: 18px; height: 0; border-top: 3px solid; display: inline-block; border-radius: 2px; }
.tip { position: absolute; top: 8px; pointer-events: none; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: .8rem; box-shadow: var(--shadow); min-width: 150px; font-variant-numeric: tabular-nums; }
.tip b { display: block; margin-bottom: 4px; }
.tip div { display: flex; align-items: center; gap: 7px; }
.tip div i { width: 14px; height: 0; border-top: 3px solid; display: inline-block; }
.tip div strong { margin-left: auto; padding-left: 12px; }
.bar.hold { border-style: dashed; background: var(--surface); }

/* Overlay */
.overlay { position: fixed; inset: 0; background: rgba(20, 16, 8, .5); display: grid; place-items: center; padding: 16px; z-index: 50; }
.sheet { background: var(--surface); border-radius: 14px; padding: 20px; width: min(460px, 100%); max-height: 88vh; overflow: auto; display: grid; gap: 14px; box-shadow: var(--shadow); border: 1px solid var(--divider); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: .88rem; font-weight: 600; z-index: 60; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.assume { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--divider); padding-top: 14px; margin-top: 8px; display: grid; gap: 4px; }

/* Extra adults who still need to sign */
.signer { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--divider); }
.signer .st { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--offset-2); color: var(--muted); }
.tag.ok { background: var(--ok-tint); color: var(--ok); }
.feat { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; font-size: .9rem; }
.mascot.still .walker, .mascot.still .walker img, .mascot.still .walker .turn, .mascot.still .bubble { animation: none; }
.mascot.still .walker .walk { visibility: hidden; } .mascot.still .walker .turn { visibility: visible; background-position: 63.636% 0; }
.mascot.still .thumb { transform: scale(1); } .mascot.still .bubble { opacity: 1; }

/* Background choices (preview control) */
.bgpick { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.bgpick select { min-height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); padding: 4px 10px; }
:root[data-bg="topo"], :root[data-bg="bluff"], :root[data-bg="fall"], :root[data-bg="winter"], :root[data-bg="winter2"], :root[data-bg="spring"] {
  --bg: #f6efe1; --surface: #fbf7ee; --surface-2: #ffffff; --offset: #efe4cd; --offset-2: #e8dabb;
  --divider: #e0d3ae; --border: #cdb98a;
  --text: #2c2418; --muted: #6b5d45; --faint: #8f7d60; --inverse: #fbf7ee;
  --green: #2f5233; --green-hover: #223d27; --green-tint: #d9e2d3;
  --wood: #8a5a34; --wood-tint: #ecdbc6;
  --rust: #b5551f; --rust-hover: #954418; --rust-tint: #ecd3c0; --on-rust: #fff8ec;
  --ok: #3f6b2e; --ok-tint: #d7e2cd;
  --bad: #94332a; --bad-tint: #e6d2ce;
  --shadow: 0 6px 16px rgba(60, 45, 20, .16);
  --s1: #2a78d6; --s2: #eb6834; --chip: transparent; color-scheme: light;
}
:root[data-bg="topo"] body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520' fill='none' stroke='%238a5a34' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M-20 80C60 30 140 120 230 70S400 20 540 90'/%3E%3Cpath d='M-20 120C70 75 150 165 240 112S410 70 540 135'/%3E%3Cpath d='M-20 165C80 125 160 205 250 158S420 122 540 182'/%3E%3Cpath d='M120 330c40-48 120-52 160-10s30 110-30 130-120-8-140-50 -10-50 10-70z'/%3E%3Cpath d='M150 345c30-34 86-36 114-6s20 78-22 92-86-6-100-36-6-36 8-50z'/%3E%3Cpath d='M182 362c18-20 50-20 66-3s11 44-13 52-49-4-57-21-4-20 4-28z'/%3E%3Cpath d='M-20 250C50 230 90 280 60 330S-10 420-20 440'/%3E%3Cpath d='M540 250C470 262 430 310 462 356S530 430 540 452'/%3E%3Cpath d='M-20 500C90 470 200 520 300 492S450 470 540 505'/%3E%3Cpath d='M380 200c26-22 66-16 80 12s-4 58-34 62-56-14-60-38 4-26 14-36z'/%3E%3Cpath d='M400 214c14-11 34-8 42 7s-2 30-18 32-29-7-31-20 2-13 7-19z'/%3E%3C/svg%3E"); background-size: 520px 520px; }
:root[data-bg="forest"], :root[data-bg="lake"] {
  --bg: #1c2f20; --surface: #233a28; --surface-2: #2a4530; --offset: #27402c; --offset-2: #335038;
  --divider: #38573d; --border: #567a5b;
  --text: #f3ecd9; --muted: #c2cdb3; --faint: #9aa98e; --inverse: #1c2f20;
  --green: #a9d49f; --green-hover: #c1e3b9; --green-tint: #2f4d34;
  --wood: #dcae7c; --wood-tint: #4a3d2a;
  --rust: #eb9a62; --rust-hover: #f2ad7c; --rust-tint: #4a3626; --on-rust: #1f2a1c;
  --ok: #9ccf86; --ok-tint: #2f4b2c;
  --bad: #e39a8f; --bad-tint: #4b2f2b;
  --shadow: 0 6px 16px rgba(0, 0, 0, .4); --s1: #3987e5; --s2: #d95926; --chip: #f6efe1; color-scheme: dark;
}
:root[data-bg="night"] {
  --bg: #10151f; --surface: #171e2b; --surface-2: #1d2636; --offset: #1b2332; --offset-2: #263146;
  --divider: #29344a; --border: #42526f;
  --text: #ebe7db; --muted: #aab2c3; --faint: #7f899e; --inverse: #131926;
  --green: #8fc08d; --green-hover: #a9d3a6; --green-tint: #22352c;
  --wood: #d3a06d; --wood-tint: #3a3026;
  --rust: #e8935a; --rust-hover: #f0a875; --rust-tint: #3f2f27; --on-rust: #171b22;
  --ok: #8fc27a; --ok-tint: #24382a;
  --bad: #d98679; --bad-tint: #40292a;
  --shadow: 0 6px 16px rgba(0, 0, 0, .5); --s1: #3987e5; --s2: #d95926; --chip: #f6efe1; color-scheme: dark;
}
:root[data-bg="night"] body { background-image: radial-gradient(1.4px 1.4px at 40px 60px, rgba(255,255,255,.75) 50%, transparent 51%), radial-gradient(1px 1px at 180px 130px, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(1.2px 1.2px at 300px 40px, rgba(255,255,255,.7) 50%, transparent 51%), radial-gradient(1px 1px at 110px 250px, rgba(255,255,255,.5) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 340px 290px, rgba(255,255,255,.65) 50%, transparent 51%), radial-gradient(1px 1px at 240px 360px, rgba(255,255,255,.55) 50%, transparent 51%); background-size: 400px 400px; }
:root[data-bg="fire"] {
  --bg: #171712; --surface: #1d1d16; --surface-2: #23231a; --offset: #26251a; --offset-2: #302e20;
  --divider: #322f21; --border: #4a4630;
  --text: #eae3d1; --muted: #b3a888; --faint: #8c8366; --inverse: #201f16;
  --green: #7fae7a; --green-hover: #9cc596; --green-tint: #2c3a29;
  --wood: #d3a06d; --wood-tint: #3c2f21;
  --rust: #e08a4f; --rust-hover: #e8a06e; --rust-tint: #3f2c1f; --on-rust: #201f16;
  --ok: #85b56e; --ok-tint: #2b3925;
  --bad: #c9776b; --bad-tint: #3f2823;
  --shadow: 0 6px 16px rgba(0, 0, 0, .45); --s1: #3987e5; --s2: #d95926; --chip: #f6efe1;
  color-scheme: dark;
}
:root[data-bg="bluff"] body { background-image: linear-gradient(rgba(246,239,225,.08), rgba(246,239,225,.30)), url("img/bg-bluff.jpg"); background-size: cover; background-position: center top; background-attachment: fixed; background-repeat: no-repeat; }
:root[data-bg="fall"] body { background-image: linear-gradient(rgba(246,239,225,.05), rgba(246,239,225,.22)), url("img/bg-fall.jpg"); background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; }
:root[data-bg="winter"] body { background-image: linear-gradient(rgba(246,239,225,.04), rgba(246,239,225,.16)), url("img/bg-winter.jpg"); background-size: cover; background-position: 45% center; background-attachment: fixed; background-repeat: no-repeat; }
:root[data-bg="winter2"] body { background-image: linear-gradient(rgba(246,239,225,.04), rgba(246,239,225,.18)), url("img/bg-winter2.jpg"); background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; }
:root[data-bg="spring"] body { background-image: linear-gradient(rgba(246,239,225,.04), rgba(246,239,225,.18)), url("img/bg-spring.jpg"); background-size: cover; background-position: center 35%; background-attachment: fixed; background-repeat: no-repeat; }
:root[data-bg="lake"] body { background-image: linear-gradient(rgba(28,47,32,.25), rgba(28,47,32,.5)), url("img/bg-lake.jpg"); background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; }
:root[data-bg="fire"] body { background-image: linear-gradient(rgba(23,23,18,.25), rgba(23,23,18,.55)), url("img/bg-fire.jpg"); background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; }
/* On a photo, every block of content sits on its own solid card so the picture can stay vivid */
:root[data-photo] .top { background: color-mix(in srgb, var(--bg) 56%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15); border: 1px solid var(--divider); border-radius: 14px; padding: 12px 16px; margin-top: 14px; box-shadow: var(--shadow); }
:root[data-photo] .guest { background: color-mix(in srgb, var(--bg) 52%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15); border: 1px solid var(--divider); border-radius: 16px; padding: 22px 18px; margin-top: 22px; box-shadow: var(--shadow); }
:root[data-photo] .desk, :root[data-photo] .rep { background: var(--bg); border: 1px solid var(--divider); border-radius: 16px; padding: 18px; margin-top: 22px; box-shadow: var(--shadow); }
:root[data-photo] .guest h2, :root[data-photo] .guest .eyebrow { text-shadow: 0 1px 0 color-mix(in srgb, var(--bg) 70%, transparent); }
:root[data-photo] .top .brand span, :root[data-photo] .bgpick { color: var(--text); }
:root[data-photo] .steps i:not(.on) { background: color-mix(in srgb, var(--text) 22%, transparent); }
@media (max-width: 520px) { :root[data-photo] .guest { padding: 18px 10px; } :root[data-photo] .guest .panel { padding: 14px; } }
:root[data-photo] .assume { background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--divider); border-radius: 12px; padding: 14px 16px; margin-top: 22px; }
:root[data-bg="topo"] .wm.l, :root[data-bg="bluff"] .wm.l, :root[data-bg="fall"] .wm.l, :root[data-bg="winter"] .wm.l, :root[data-bg="winter2"] .wm.l, :root[data-bg="spring"] .wm.l { display: block; } :root[data-bg="topo"] .wm.d, :root[data-bg="bluff"] .wm.d, :root[data-bg="fall"] .wm.d, :root[data-bg="winter"] .wm.d, :root[data-bg="winter2"] .wm.d, :root[data-bg="spring"] .wm.d { display: none; }
:root[data-bg="forest"] .wm.l, :root[data-bg="night"] .wm.l, :root[data-bg="lake"] .wm.l, :root[data-bg="fire"] .wm.l { display: none; } :root[data-bg="forest"] .wm.d, :root[data-bg="night"] .wm.d, :root[data-bg="lake"] .wm.d, :root[data-bg="fire"] .wm.d { display: block; }
.shots { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 6px; border-radius: 8px; }
.shots img { height: 190px; width: auto; max-width: none; flex: none; border-radius: 8px; scroll-snap-align: start; display: block; }
.shots.one img { width: 100%; height: auto; }

/* how a stay was booked: online, by hand at the desk, or on a channel */
.flag.src { min-width: 16px; height: 16px; padding: 0; border-radius: 4px; background: none; color: inherit; opacity: .85; }
.flag.src.ch { background: var(--text); color: var(--surface); opacity: 1; padding: 0 4px; font-size: .64rem; font-weight: 700; display: inline-grid; place-items: center; }
.legend .flag.src { display: inline-grid; place-items: center; color: var(--text); }
.legend .flag.src.ch { color: var(--surface); }

/* text guests */
.txseg { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.txto { margin: 0; line-height: 1.45; }
.txto b { color: var(--text); }
.txno { color: var(--bad); }

/* monthly requests and rent list on the front desk */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--green); text-decoration: underline; cursor: pointer; text-align: left; }
.side li.appli { display: grid; gap: 8px; }
.appbtns { display: flex; flex-wrap: wrap; gap: 6px; }

/* Authorize.net's card form */
.anetframe { width: 100%; height: 620px; border: 0; background: #fff; border-radius: 10px; display: block; }
.cardbox:has(.anetframe) { padding: 6px; text-align: left; border-style: solid; }
