/* Dog Lake operations panel.
 *
 * This is an extension of the site stylesheet, not a replacement for it. The
 * tokens below are the same values declared in src/assets/css/style.css; they
 * are repeated here only so the panel still renders correctly if the site
 * stylesheet fails to load. Nothing here introduces a new colour or typeface.
 *
 * No emojis anywhere. State is carried by colour and by words.
 */

:root {
  --birch: #F4ECDC; --birch-2: #EADFC6; --paper: #FBF6EB;
  --night: #141E19; --night-2: #1C2A22; --night-3: #25382D;
  --rust: #A8331A; --rust-deep: #7E2411;
  --ember: #D9622B; --gold: #E7B03A; --gold-soft: #F2CE78;
  --pine: #4B6340; --pine-soft: #7C9463;
  --ink: #241A10; --muted: #6E6046; --muted-2: #8C7C5E;
  --line: rgba(36, 26, 16, .14);
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

/* ---------------------------------------------------------------- shell */

.panel {
  min-height: 100vh;
  background: var(--birch);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

.panel-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: stretch; gap: 2px;
  padding: 0 12px;
  background: var(--night);
  border-bottom: 3px solid var(--rust);
  flex-wrap: wrap;
}
.panel-bar .pb-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--paper); text-decoration: none;
  padding: 0 14px 0 0; margin-right: 4px;
  white-space: nowrap; flex: 0 0 auto;
}
.panel-bar .pb-brand b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.panel-bar .pb-brand span {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold-soft);
}

/* Every section along the bar is a full-height target. On the counter's touch
 * screen these are what get pressed all day, so they are deliberately large. */
.panel-bar .pb-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(244, 236, 220, .88); text-decoration: none;
  padding: 0 15px; min-height: 56px; font-size: 15px; font-weight: 600;
  border: 0; border-bottom: 4px solid transparent; margin-bottom: -3px;
  background: none; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.panel-bar .pb-link:hover { color: var(--paper); background: rgba(244, 236, 220, .07); }
.panel-bar .pb-link.on { color: var(--gold); border-bottom-color: var(--gold); }
.panel-bar .pb-more[aria-expanded="true"] { background: rgba(244, 236, 220, .12); color: var(--paper); }

.panel-bar .pb-right {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  padding-left: 14px; flex: 0 0 auto;
}
.panel-bar .pb-who { color: var(--muted-2); font-size: 13px; white-space: nowrap; }
.panel-bar form { margin: 0; }
.panel-bar button.pb-out {
  background: none; border: 1px solid rgba(244, 236, 220, .3); color: rgba(244, 236, 220, .82);
  border-radius: 999px; padding: 9px 15px; font-size: 13px; cursor: pointer;
  font-family: inherit; min-height: 40px;
}
.pb-toggle { display: none; }
.pb-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--rust); color: #fff; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}
.pb-count.warn { background: var(--gold); color: var(--night); }

/* Everything that is not an hourly job lives behind More. Opened with a thumb,
 * so each one is a card rather than a line of text. */
.more-sheet {
  position: sticky; top: 56px; z-index: 49;
  background: var(--night-2); border-bottom: 3px solid var(--rust);
  padding: 14px 12px 16px;
}
.more-sheet[hidden] { display: none; }
.more-grid {
  display: grid; gap: 10px; max-width: 1500px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.more-item {
  display: block; text-decoration: none; border-radius: 11px;
  background: rgba(244, 236, 220, .07); border: 1px solid rgba(244, 236, 220, .16);
  padding: 14px 16px; min-height: 68px;
}
.more-item:hover, .more-item.on { background: var(--rust); border-color: var(--rust); }
.more-item b { display: block; color: var(--paper); font-size: 15.5px; font-weight: 700; }
.more-item span { display: block; color: rgba(244, 236, 220, .6); font-size: 13px; margin-top: 3px; }
.more-item:hover span, .more-item.on span { color: rgba(255, 255, 255, .8); }

.panel-main { max-width: 1500px; margin: 0 auto; padding: 22px 20px 80px; }
.panel-main.wide { max-width: none; }

/* ---------------------------------------------------------------- type */

.panel h1 {
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  letter-spacing: -.02em; margin: 0 0 4px;
}
.panel h2 {
  font-family: var(--font-display); font-size: 17px; font-weight: 800;
  letter-spacing: -.01em; margin: 0 0 10px;
}
.panel h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.panel p { margin: 0 0 10px; }
.eyebrow-s {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--rust); font-weight: 600;
}
.sub { color: var(--muted); font-size: 13.5px; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 18px;
}
.card.tight { padding: 12px 14px; }
.card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Four big numbers across the top of Today. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; text-decoration: none; color: inherit; display: block;
}
.tile:hover { border-color: var(--rust); }
.tile .t-n {
  display: block;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.03em;
}
.tile .t-l { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.tile.alert { border-color: var(--rust); background: #FCEFEA; }
.tile.alert .t-n { color: var(--rust); }

/* ---------------------------------------------------------------- tables */

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); font-family: var(--font-mono); font-weight: 600;
  padding: 0 10px 7px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(231, 176, 58, .07); }
.tbl td.n, .tbl th.n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tbl a { color: var(--rust); text-decoration: none; font-weight: 600; }
.tbl a:hover { text-decoration: underline; }
.scroll-x { overflow-x: auto; }
.empty { color: var(--muted); font-size: 13.5px; padding: 14px 2px; }

/* ---------------------------------------------------------------- chips */

.chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  border: 1px solid transparent; white-space: nowrap;
}
.chip.ready   { background: #E7F0E3; color: #33552B; border-color: #BFD5B6; }
.chip.dirty   { background: #FBE9E4; color: var(--rust-deep); border-color: #EFC6B8; }
.chip.cleaning{ background: #FCF3DC; color: #7A5B10; border-color: #E8D6A0; }
.chip.occupied{ background: #E6EAF0; color: #2B3D55; border-color: #C0CBD9; }
.chip.ooo     { background: var(--night); color: var(--gold-soft); }
.chip.hold    { background: #EFE7F2; color: #503A5C; border-color: #D5C4DC; }
.chip.plain   { background: var(--birch-2); color: var(--muted); }
.chip.rust    { background: var(--rust); color: #fff; }
.chip.gold    { background: var(--gold); color: var(--night); }

/* ---------------------------------------------------------------- forms */

/* Scoped to both the panel and the guest booking pages: the booking pages sit
 * inside the site's own body rather than .panel, so they need the same rules. */
.panel label, .bk label {
  display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; color: var(--muted);
}
.panel input[type=text], .panel input[type=email], .panel input[type=password],
.panel input[type=tel], .panel input[type=number], .panel input[type=date],
.panel input[type=time], .panel input[type=search], .panel select, .panel textarea,
.bk input[type=text], .bk input[type=email], .bk input[type=tel],
.bk input[type=number], .bk input[type=date], .bk select,
.bk textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  padding: 9px 11px; min-height: 42px;
}
.panel input:focus, .panel select:focus, .panel textarea:focus,
.bk input:focus, .bk select:focus, .bk textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.panel textarea, .bk textarea { min-height: 76px; resize: vertical; }
.panel .field, .bk .field { margin-bottom: 12px; }
.bk .check { font-weight: 500; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 150px; }
.row > .shrink { flex: 0 0 auto; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.check input { width: 20px; height: 20px; min-height: 0; flex: 0 0 auto; }

.btn-p, .btn-s, .btn-q {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
  border-radius: 999px; padding: 10px 18px; border: 1px solid transparent;
  text-decoration: none; min-height: 44px; white-space: nowrap;
}
.btn-p { background: var(--rust); color: #fff; }
.btn-p:hover { background: var(--rust-deep); }
.btn-s { background: var(--birch-2); color: var(--ink); border-color: var(--line); }
.btn-s:hover { background: var(--birch); }
.btn-q { background: none; color: var(--rust); padding: 6px 10px; min-height: 0; font-size: 13px; }
.btn-q:hover { text-decoration: underline; }
.btn-big { font-size: 18px; padding: 18px 24px; width: 100%; min-height: 62px; }
.btn-danger { background: var(--night); color: var(--gold-soft); }

.flash {
  background: #FCF3DC; border: 1px solid #E8D6A0; border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 11px 14px; margin-bottom: 16px; font-size: 14px;
}
.flash.bad { background: #FBE9E4; border-color: #EFC6B8; border-left-color: var(--rust); }

/* ---------------------------------------------------------------- help tips */

/* Every explanation in the panel hides behind one of these. Nothing on the
 * screen moves when it opens. */
.help { position: relative; display: inline-block; margin-left: 5px; vertical-align: baseline; }
.help-mark {
  width: 17px; height: 17px; padding: 0; border-radius: 50%; cursor: help;
  border: 1px solid var(--muted-2); background: transparent; color: var(--muted);
  font-family: var(--font-body); font-size: 11px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.help-mark:hover, .help-mark[aria-expanded="true"] {
  background: var(--rust); border-color: var(--rust); color: #fff;
}
.help-body {
  position: absolute; z-index: 100; left: 0; top: calc(100% + 7px);
  width: max-content; max-width: 320px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 10px 12px;
  font-size: 13px; font-weight: 400; line-height: 1.5; text-transform: none;
  letter-spacing: normal; text-align: left;
  box-shadow: 0 8px 24px -8px rgba(36, 26, 16, .35);
  /* display:none rather than hidden: a hidden tip still counts toward the
     page's scrollable width, which made wide screens scroll sideways. */
  display: none;
}
.help:hover .help-body, .help-body.open { display: block; }
@media (max-width: 700px) {
  .help-body { max-width: min(76vw, 260px); }
  .help:hover .help-body { display: none; }
  .help-body.open { display: block; }
}

/* ---------------------------------------------------------------- the board */

.board-wrap { overflow: auto; max-height: 78vh; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
table.board { border-collapse: separate; border-spacing: 0; font-size: 12px; }
table.board th, table.board td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table.board thead th {
  position: sticky; top: 0; z-index: 3; background: var(--birch-2);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  padding: 7px 6px; white-space: nowrap; text-align: center; color: var(--muted);
}
table.board tbody th {
  position: sticky; left: 0; z-index: 2; background: var(--paper);
  text-align: left; padding: 0 10px; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; min-width: 118px;
  border-right: 2px solid var(--line);
}
table.board thead th:first-child { left: 0; z-index: 4; }
table.board td { padding: 0; height: 30px; min-width: 66px; }
table.board td a, table.board td span.cell {
  display: block; height: 100%; padding: 7px 6px; text-decoration: none;
  color: inherit; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.cell-open      { background: var(--paper); }
.cell-open a:hover { background: rgba(231, 176, 58, .25); }
.cell-confirmed { background: #E7F0E3; }
.cell-inhouse   { background: #CFE0C6; font-weight: 700; }
.cell-offered   { background: #FCF3DC; }
.cell-hold      { background: #EFE7F2; color: #503A5C; font-style: italic; }
.cell-lease     { background: var(--birch-2); color: var(--muted-2); }
.cell-other     { background: #F0EAE0; color: var(--muted); }
.board-key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.board-key i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); vertical-align: -2px; margin-right: 5px; }

/* ---------------------------------------------------------------- readiness wall */

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.wall .w-unit {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px;
  background: var(--paper); text-decoration: none; color: inherit; display: block;
}
.wall .w-unit b { display: block; font-size: 13.5px; }
.wall .w-unit small { font-size: 11px; color: var(--muted); }
.wall .w-unit.is-ready { background: #E7F0E3; border-color: #BFD5B6; }
.wall .w-unit.is-dirty { background: #FBE9E4; border-color: #EFC6B8; }
.wall .w-unit.is-cleaning { background: #FCF3DC; border-color: #E8D6A0; }
.wall .w-unit.is-occupied { background: #E6EAF0; border-color: #C0CBD9; }
.wall .w-unit.is-ooo { background: var(--night); border-color: var(--night); color: var(--gold-soft); }
.wall .w-unit.is-ooo small { color: var(--gold-soft); opacity: .8; }

/* ---------------------------------------------------------------- overdue */

.overdue {
  background: #FBE9E4; border: 1px solid #EFC6B8; border-left: 4px solid var(--rust);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 12px;
}
.overdue b { color: var(--rust-deep); }

/* ---------------------------------------------------------------- housekeeping */

.clean-page { background: var(--birch); min-height: 100vh; font-family: var(--font-body); color: var(--ink); }
.clean-head {
  background: var(--night); color: var(--paper); padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-bottom: 3px solid var(--rust);
}
.clean-head b { font-size: 18px; }
.clean-head span { font-size: 12.5px; color: var(--gold-soft); }
.clean-body { max-width: 620px; margin: 0 auto; padding: 16px 14px 60px; }
.job {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin-bottom: 12px;
}
.job.next { border-color: var(--rust); border-width: 2px; }
.job .j-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.job .j-code { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.job .j-who { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.job .j-who b { color: var(--rust); }
.job form { margin: 0; }
.job details { margin-top: 10px; }
.job summary { font-size: 13.5px; color: var(--rust); cursor: pointer; padding: 8px 0; font-weight: 600; }

/* ================================================================ THE GUEST SIDE
 *
 * Same palette, same typefaces, same buttons as the rest of the site — the
 * booking pages should feel like another room in the same building, not a form
 * bolted onto the end. Everything below is built from the tokens already in
 * style.css; nothing new is invented.
 */

.bk { background: var(--birch); }

/* ---- the band at the top of each step ---- */
.bk-head {
  background: var(--night);
  border-bottom: 3px solid var(--rust);
  padding: clamp(34px, 6vw, 62px) 22px 0;
  position: relative; overflow: hidden;
}
.bk-head::after {
  /* a faint sweep of lake light across the band */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 82% 0%, rgba(231, 176, 58, .16), transparent 60%);
}
.bk-head-in { max-width: 940px; margin: 0 auto; position: relative; z-index: 1; }
.bk-head h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.02; color: var(--paper);
  font-size: clamp(32px, 5.4vw, 56px); margin: .3em 0 0;
}
.bk-lede {
  color: #E4DCCB; max-width: 60ch; margin: 1em 0 0;
  font-size: clamp(15px, 1.5vw, 17.5px); line-height: 1.6;
}
.bk-head-done { padding-bottom: clamp(34px, 6vw, 62px); }

/* ---- the step rail ---- */
.bk-rail {
  display: flex; gap: 0; list-style: none; margin: clamp(26px, 4vw, 40px) auto 0;
  padding: 0; max-width: 940px; position: relative; z-index: 1;
  overflow-x: auto; scrollbar-width: none;
}
.bk-rail::-webkit-scrollbar { display: none; }
.bk-rail li {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px 16px 0; white-space: nowrap;
  color: rgba(244, 236, 220, .45); font-size: 13px; font-weight: 600;
}
.bk-rail li .bk-dot {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  border: 1px solid rgba(244, 236, 220, .3); background: transparent;
}
.bk-rail li.done { color: var(--gold-soft); }
.bk-rail li.done .bk-dot { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.bk-rail li.now { color: var(--paper); }
.bk-rail li.now .bk-dot { background: var(--rust); border-color: var(--rust); color: #fff; }
@media (max-width: 640px) { .bk-rail li .bk-label { display: none; } .bk-rail li { padding-right: 10px; } }

/* ---- the page body ---- */
.bk-body { max-width: 1120px; margin: 0 auto; padding: clamp(26px, 4vw, 44px) 22px 90px; }
.bk-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.bk-wide { max-width: 1120px; }
.bk-h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em;
  font-size: 21px; margin: 34px 0 14px;
}
.bk-sec {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.015em;
  font-size: 19px; margin: 0 0 4px;
}
.bk-say { color: var(--muted); font-size: 14.5px; max-width: 62ch; margin: 0 0 16px; }
.hint { color: var(--muted-2); font-size: 12.5px; margin: 6px 0 0; line-height: 1.5; }

.bk-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(20px, 3vw, 30px); margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 30px -22px rgba(36, 26, 16, .5);
}
.bk-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .bk-split { grid-template-columns: 1fr; } }

.bk-alert {
  background: #FBE9E4; border: 1px solid #EFC6B8; border-left: 4px solid var(--rust);
  border-radius: 10px; padding: 13px 16px; margin-bottom: 18px; font-size: 14.5px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.bk-note {
  background: var(--birch-2); border-radius: 12px; padding: 15px 18px;
  font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 18px;
}
.bk-note a { color: var(--rust); font-weight: 600; }
.bk-note-good { background: #E7F0E3; color: #33552B; }

.bk-welcome {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--birch-2); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 18px; font-size: 14.5px; line-height: 1.6;
}
.bk-welcome-mark {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); color: var(--rust);
  display: inline-flex; align-items: center; justify-content: center;
}
.bk-same { margin-top: 10px; }
.bk-chip-go {
  background: var(--paper); border: 1px solid var(--rust); color: var(--rust);
  border-radius: 999px; padding: 8px 16px; font-family: inherit; font-size: 13.5px;
  font-weight: 700; cursor: pointer;
}
.bk-chip-go:hover { background: var(--rust); color: #fff; }

/* ---- buttons ---- */
.bk-go, .bk-alt, .bk-quietbtn, .bk-back-btn, .bk-go-small {
  font-family: inherit; font-weight: 700; cursor: pointer; border: 1px solid transparent;
  border-radius: 999px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
}
.bk-go {
  background: var(--rust); color: #fff; font-size: 16px;
  padding: 15px 28px; min-height: 54px; width: 100%;
  box-shadow: 0 10px 24px -12px rgba(168, 51, 26, .8);
}
.bk-go:hover { background: var(--rust-deep); }
.bk-go span { transition: transform .15s; }
.bk-go:hover span { transform: translateX(3px); }
.bk-go-small { width: auto; font-size: 14px; padding: 11px 20px; min-height: 44px; background: var(--rust); color: #fff; }
.bk-send { font-size: 17px; min-height: 60px; }
.bk-alt {
  background: var(--birch-2); color: var(--ink); border-color: var(--line);
  font-size: 15px; padding: 13px 24px; min-height: 48px;
}
.bk-alt:hover { background: var(--birch); }
.bk-quietbtn, .bk-back-btn {
  background: none; color: var(--muted); font-size: 14px; padding: 12px 18px;
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.bk-quietbtn:hover, .bk-back-btn:hover { color: var(--rust); }
.bk-back { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; display: inline-block; margin-top: 14px; }
.bk-back:hover { color: var(--rust); }
.bk-actions { margin-top: 22px; }
.bk-actions.bk-quiet { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.bk-aside { margin-top: 26px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bk-aside-item h2 { font-size: 15.5px; font-weight: 800; margin: 0 0 6px; font-family: var(--font-display); }
.bk-aside-item p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.bk-aside-item a { color: var(--rust); font-weight: 600; }

.input-xl { font-size: 21px !important; min-height: 60px !important; letter-spacing: .01em; }
.input-code { font-family: var(--font-mono); font-size: 18px !important; letter-spacing: .12em; text-transform: uppercase; }

/* ---- the calendar ---- */
.cal-card { padding: clamp(16px, 2.4vw, 24px); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.cal-nav {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-size: 20px; cursor: pointer; line-height: 1;
}
.cal-nav:hover:not(:disabled) { background: var(--birch-2); border-color: var(--rust); color: var(--rust); }
.cal-nav:disabled { opacity: .3; cursor: default; }

.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); text-align: center;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.cal-day {
  position: relative; aspect-ratio: 1 / .92; min-height: 46px;
  border: 1px solid transparent; border-radius: 9px; background: transparent;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 15px; color: var(--ink); cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cal-day:hover:not(.off) { background: var(--birch-2); }
.cal-day.off { color: rgba(36, 26, 16, .2); cursor: default; background: transparent; }
.cal-day.turn::after {
  content: ""; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 15px; height: 2px; border-radius: 2px; background: var(--gold);
}
.cal-tag { display: none; }
/* the chosen range */
.cal-day.in { background: var(--birch-2); border-radius: 0; }
.cal-day.hovering:not(.start):not(.end) { background: var(--birch-2); }
.cal-day.start, .cal-day.end { background: var(--rust); color: #fff; border-color: var(--rust); }
.cal-day.start { border-radius: 9px 0 0 9px; }
.cal-day.end { border-radius: 0 9px 9px 0; }
.cal-day.start.end { border-radius: 9px; }
.cal-day.start::after, .cal-day.end::after { background: var(--gold-soft); }

.cal-key {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px; margin: 16px 0 0; line-height: 1.5;
}
.k-turn { width: 15px; height: 2px; border-radius: 2px; background: var(--gold); flex: 0 0 auto; }

/* ---- the stay summary beside it ---- */
.cal-side h2 { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin: 0 0 14px; }
.stay-box { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; margin-bottom: 14px; }
.stay-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.stay-line:last-child { border-bottom: 0; }
.stay-lab { color: var(--muted); font-size: 12.5px; }
.stay-total { background: var(--birch-2); }
.stay-total b { color: var(--rust); }
.stay-note { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; min-height: 3em; }

/* ---- a switch that reads as a switch ---- */
.switch { display: flex; align-items: center; gap: 11px; cursor: pointer; margin: 4px 0 18px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 46px; height: 27px; border-radius: 999px; background: var(--birch-2);
  border: 1px solid var(--line); position: relative; flex: 0 0 auto; transition: background .16s;
}
.switch-knob {
  position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 1px 3px rgba(36, 26, 16, .3); transition: transform .16s;
}
.switch input:checked + .switch-track { background: var(--pine); border-color: var(--pine); }
.switch input:checked + .switch-track .switch-knob { transform: translateX(19px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch-label { font-size: 14.5px; font-weight: 600; }

/* ---- counters ---- */
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.count-lab { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.count-unit { display: block; font-size: 12px; color: var(--muted-2); margin-bottom: 8px; }
.count-lab + .stepper { margin-top: 8px; }
.stepper {
  display: inline-flex; align-items: stretch; border: 1px solid var(--line);
  border-radius: 999px; background: var(--paper); overflow: hidden;
}
.stepper input {
  width: 58px; text-align: center; border: 0 !important; background: transparent !important;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 17px !important; font-weight: 700; min-height: 46px !important; padding: 0 !important;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.stepper input:focus { outline: none !important; }
.st-btn {
  width: 46px; border: 0; background: var(--birch-2); color: var(--ink);
  font-size: 20px; line-height: 1; cursor: pointer; font-family: inherit;
}
.st-btn:hover { background: var(--rust); color: #fff; }

/* ---- the picks bar ---- */
.picks {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--night); color: var(--paper); border-radius: 12px;
  padding: 13px 18px; margin-bottom: 18px;
}
.picks-lab {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-soft);
}
.picks-list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.picks-list li {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(244, 236, 220, .12); border-radius: 999px; padding: 6px 8px 6px 6px;
  font-size: 13.5px; font-weight: 700;
}
.picks-list li.empty { background: none; color: rgba(244, 236, 220, .5); font-weight: 400; padding-left: 0; }
.picks-list .pk-n {
  width: 21px; height: 21px; border-radius: 50%; background: var(--rust); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px;
}
.picks-list .pk-x {
  border: 0; background: none; color: rgba(244, 236, 220, .6); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 0 4px; font-family: inherit;
}
.picks-list .pk-x:hover { color: var(--gold); }

/* ---- the drone map ---- */
.mapwrap { margin-bottom: 8px; position: relative; }
.map-view {
  position: relative; overflow: hidden; border-radius: 14px;
  background: var(--night); border: 1px solid var(--line);
  height: clamp(320px, 56vh, 620px); cursor: grab; touch-action: none;
}
.map-view.dragging { cursor: grabbing; }
.map-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; }
.map-canvas img { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-svg .hot {
  fill: rgba(231, 176, 58, .13); stroke: rgba(244, 236, 220, .75); stroke-width: .18;
  vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .12s;
}
.map-svg .hot:hover, .map-svg .hot.hot-on { fill: rgba(168, 51, 26, .55); stroke: var(--gold); }
.map-svg .hot.picked { fill: rgba(168, 51, 26, .75); stroke: var(--gold); }
.map-pins { position: absolute; inset: 0; }
.map-pin {
  position: absolute; transform: translate(-50%, -50%);
  background: rgba(20, 30, 25, .82); color: var(--paper); border: 1px solid rgba(244, 236, 220, .35);
  border-radius: 999px; padding: 3px 9px; font-family: var(--font-body);
  font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.map-pin:hover { background: var(--rust); border-color: var(--gold); }
.map-pin.picked { background: var(--rust); border-color: var(--gold); }
.map-pin .pin-rank { display: none; }
.map-pin.picked .pin-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color: var(--night);
  font-family: var(--font-mono); font-size: 10px;
}
.map-tools { position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.map-btn {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid rgba(244, 236, 220, .3);
  background: rgba(20, 30, 25, .8); color: var(--paper); font-size: 17px; cursor: pointer;
  font-family: inherit; line-height: 1;
}
.map-btn:hover { background: var(--rust); }
.map-cap { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* ---- cabin cards ---- */
.cabins { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cabin {
  position: relative; border: 1px solid var(--line); border-radius: 13px; background: var(--paper);
  overflow: hidden; cursor: pointer; transition: border-color .14s, transform .14s;
}
.cabin:hover { border-color: var(--rust); transform: translateY(-2px); }
.cabin:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cabin.picked { border-color: var(--rust); border-width: 2px; }
.cabin img { width: 100%; height: 132px; object-fit: cover; display: block; }
.cabin .c-body { padding: 13px 15px 15px; }
.cabin b { font-size: 16.5px; display: block; font-family: var(--font-display); letter-spacing: -.01em; }
.c-meta { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.c-blurb { display: block; color: var(--muted-2); font-size: 12.5px; margin-top: 7px; line-height: 1.5; }
.c-fav { display: inline-block; font-size: 11px; color: var(--rust); font-weight: 700; margin-top: 8px; }
.cabin .c-rank {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--rust); color: #fff; font-family: var(--font-mono); font-size: 13px;
  font-weight: 700; display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(36, 26, 16, .4);
}
.cabin.picked .c-rank { display: flex; }

/* ---- review ---- */
.review { padding: 0; overflow: hidden; }
.rev-row { display: flex; gap: 18px; padding: 16px clamp(18px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.rev-row:last-child { border-bottom: 0; }
.rev-lab {
  flex: 0 0 108px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted-2); padding-top: 3px;
}
.rev-val { font-size: 14.5px; line-height: 1.6; }
.rev-alt { color: var(--muted); font-size: 13px; }
.rev-picks { margin: 0; padding-left: 18px; }
.rev-picks li { margin-bottom: 2px; }
@media (max-width: 560px) { .rev-row { flex-direction: column; gap: 4px; } .rev-lab { flex: none; } }

/* ---- the confirmation ticket ---- */
.ticket { padding: 0; overflow: hidden; }
.tk-code {
  background: var(--night); color: var(--paper); padding: 22px clamp(18px, 3vw, 28px);
  text-align: center;
}
.tk-lab {
  display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px;
}
.tk-code b { font-size: clamp(28px, 6vw, 40px); letter-spacing: .06em; color: var(--gold); }
.tk-rows { padding: 6px clamp(18px, 3vw, 28px) 18px; }
.tk-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.tk-row:last-child { border-bottom: 0; }
.tk-row span { color: var(--muted); font-size: 13px; }

/* ---- the account ---- */
.stay-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.stay-row:last-of-type { border-bottom: 0; }
.stay-row b { font-size: 15.5px; }
.stay-sub { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.stay-row.past b { color: var(--muted); }
.pill {
  border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700;
  background: var(--birch-2); color: var(--muted); white-space: nowrap;
}
.pill-ok { background: #E7F0E3; color: #33552B; }
.pill-wait { background: #FCF3DC; color: #7A5B10; }
.hold-card { border-color: var(--rust); border-width: 2px; }
.hold-flag {
  display: inline-block; background: var(--rust); color: #fff; border-radius: 999px;
  padding: 4px 12px; font-size: 11.5px; font-weight: 700; margin-bottom: 12px;
}
.hold-card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.hold-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hold-actions .bk-go { width: auto; }

/* ---- the map editor, on the desk side ---- */
.mapedit { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .mapedit { grid-template-columns: 1fr; } }
.me-steps { margin: 0 0 12px; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.me-stage {
  position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--night); cursor: crosshair;
}
.me-stage img { display: block; width: 100%; user-select: none; -webkit-user-drag: none; }
.me-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.me-svg .me-done { fill: rgba(75, 99, 64, .35); stroke: var(--gold); stroke-width: .18; vector-effect: non-scaling-stroke; }
.me-svg .me-draft { fill: rgba(168, 51, 26, .45); stroke: var(--gold); stroke-width: .25; vector-effect: non-scaling-stroke; }
.me-svg circle { fill: var(--gold); stroke: var(--night); stroke-width: .12; vector-effect: non-scaling-stroke; }
.me-labels { position: absolute; inset: 0; pointer-events: none; }
.me-label {
  position: absolute; transform: translate(-50%, -50%);
  background: rgba(20, 30, 25, .8); color: var(--paper); border-radius: 999px;
  padding: 2px 8px; font-size: 11px; font-weight: 700; white-space: nowrap;
}

/* ---------------------------------------------------------------- public booking */

/* The site header is built to sit over the dark hero photo, so its wordmark and
 * links are paper-coloured and it is positioned absolutely. The booking pages
 * have no hero behind it, so they give it a solid band of its own and take it
 * out of the overlay. This file is only ever loaded by the booking pages and the
 * panel, never by the marketing pages, so the rule cannot reach the hero. */
header.site {
  position: static;
  background: var(--night);
  border-bottom: 3px solid var(--rust);
}

/* ---------------------------------------------------------------- print */

@media print {
  .panel-bar, .no-print, .btn-p, .btn-s, .btn-q { display: none !important; }
  .panel, .panel-main { background: #fff; padding: 0; max-width: none; }
  .card { border: 0; padding: 0; box-shadow: none; background: #fff; }
  .tbl { font-size: 11pt; }
  .tbl th { color: #000; }
  .tbl td, .tbl th { border-color: #999; }
  a { color: #000 !important; text-decoration: none !important; }
  .print-head { display: block !important; margin-bottom: 12pt; }
  table.board { font-size: 8pt; }
  .board-wrap { max-height: none; overflow: visible; border: 0; }
}
.print-head { display: none; }

/* ================================================================ SMALL SCREENS
 *
 * The desk runs on a laptop, housekeeping on whatever phone somebody has, and
 * guests book from the cab of a truck at the side of Highway 651 with one bar of
 * signal. Every screen here has to work on all of them.
 *
 * Two rules run through the whole of this section:
 *   nothing may scroll the page sideways, and
 *   nothing you have to tap may be smaller than a thumb.
 */

/* No page, anywhere, scrolls sideways. Wide things scroll inside their own box. */
html, body { max-width: 100%; overflow-x: hidden; }
.scroll-x, .board-wrap, .panel-bar, .bk-rail { -webkit-overflow-scrolling: touch; }
img, svg, video, table { max-width: 100%; }

/* ---------------------------------------------------------------- ~1100px */
@media (max-width: 1100px) {
  .panel-main { padding: 18px 16px 70px; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- ~900px */
@media (max-width: 900px) {
  .bk-split { grid-template-columns: 1fr; }
  .mapedit { grid-template-columns: 1fr; }
  .map-view { height: clamp(280px, 46vh, 420px); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------- ~760px:
 * the point where a laptop becomes a phone. Tables stop being tables. */
@media (max-width: 760px) {

  /* --- the desk's own navigation folds into a menu --- */
  .panel-bar { flex-wrap: wrap; padding: 0 14px; }
  .panel-bar .pb-brand { padding: 12px 0; margin-right: auto; }
  .pb-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin: 4px -8px 4px 0; padding: 0;
    background: none; border: 0; cursor: pointer;
  }
  .pb-toggle .bars, .pb-toggle .bars::before, .pb-toggle .bars::after {
    content: ""; display: block; width: 24px; height: 2px; border-radius: 2px;
    background: var(--paper); transition: transform .25s, opacity .2s;
  }
  .pb-toggle .bars { position: relative; }
  .pb-toggle .bars::before { position: absolute; left: 0; top: -7px; }
  .pb-toggle .bars::after { position: absolute; left: 0; top: 7px; }
  .panel-bar.open .pb-toggle .bars { background: transparent; }
  .panel-bar.open .pb-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
  .panel-bar.open .pb-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

  .panel-bar a.pb-link, .panel-bar .pb-right { display: none; }
  .panel-bar.open { padding-bottom: 12px; }
  .panel-bar.open a.pb-link {
    display: block; width: 100%; padding: 13px 4px; margin: 0;
    border-bottom: 1px solid rgba(244, 236, 220, .12);
    font-size: 16px;
  }
  .panel-bar.open a.pb-link.on { border-bottom-color: var(--gold); }
  .panel-bar.open .pb-right {
    display: flex; width: 100%; padding: 12px 0 0; margin: 0;
    justify-content: space-between; flex-wrap: wrap; gap: 10px;
  }
  .panel-bar.open .pb-right .btn-p { flex: 1 1 100%; justify-content: center; }

  /* --- tables become stacked records --- */
  .tbl, .tbl thead, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr {
    border: 1px solid var(--line); border-radius: 10px;
    padding: 4px 12px; margin-bottom: 10px; background: var(--paper);
  }
  .tbl tr:hover td { background: transparent; }
  .tbl td {
    border-bottom: 1px solid var(--line); padding: 9px 0;
    display: flex; gap: 12px; align-items: baseline; justify-content: space-between;
    text-align: right;
  }
  .tbl tr td:last-child { border-bottom: 0; }
  /* The column heading is copied onto each cell by panel.js, so this works for
     every table in the panel without touching the markup. */
  .tbl td[data-l]::before {
    content: attr(data-l); flex: 0 0 auto; text-align: left;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted-2); font-weight: 600;
    padding-top: 2px;
  }
  .tbl td:empty { display: none; }
  .tbl td form { justify-content: flex-end; }
  .tbl td .row { justify-content: flex-end; }

  /* --- everything else --- */
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile .t-n { font-size: 28px; }
  .card { padding: 14px 15px; }
  .card-head { gap: 8px; }
  .panel h1 { font-size: 22px; }
  .wall { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .row > * { flex: 1 1 100%; }
  .row > .shrink { flex: 1 1 100%; }
  .row > .shrink .btn-p, .row > .shrink .btn-s { width: 100%; }
  .board-wrap { max-height: 64vh; }
  table.board tbody th { min-width: 92px; font-size: 11.5px; }
  table.board td { min-width: 54px; }

  /* --- the guest side --- */
  .bk-head { padding-left: 16px; padding-right: 16px; }
  .bk-body { padding: 20px 16px 70px; }
  .bk-card { padding: 18px 16px; border-radius: 12px; }
  .cabins { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .cabin img { height: 96px; }
  .cabin b { font-size: 15px; }
  .c-blurb { display: none; }
  .counts { grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 12px; }
  .picks { position: sticky; bottom: 0; top: auto; border-radius: 12px 12px 0 0; margin: 0 -16px; padding: 12px 16px; }
  .hold-actions { flex-direction: column; align-items: stretch; }
  .hold-actions .bk-go, .hold-actions .bk-alt { width: 100%; }
  .stay-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tk-row { flex-direction: column; gap: 2px; align-items: flex-start; }
  .bk-actions.bk-quiet { flex-direction: column; }
  .bk-actions.bk-quiet .bk-back-btn { width: 100%; }
}

/* ---------------------------------------------------------------- ~560px */
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .cal-day { min-height: 42px; font-size: 14px; }
  .cal-dow { font-size: 9.5px; }
  .cal-card { padding: 14px 10px; }
  .cal-grid, .cal-dow { gap: 2px; }
  .cabins { grid-template-columns: 1fr 1fr; }
  .bk-head h1 { font-size: 29px; }
  .map-tools { top: 8px; right: 8px; }
  .map-btn { width: 34px; height: 34px; }
  .stepper input { width: 46px; }
  .st-btn { width: 42px; }
  .help-body { max-width: min(80vw, 260px); }
}

/* ---------------------------------------------------------------- ~380px */
@media (max-width: 380px) {
  .tiles { grid-template-columns: 1fr; }
  .cabins { grid-template-columns: 1fr; }
  .cabin img { height: 130px; }
  .cal-day { min-height: 38px; font-size: 13px; }
  .bk-go { font-size: 15px; padding: 14px 20px; }
}

/* Landscape on a phone: the map should not take the whole screen. */
@media (max-height: 520px) and (orientation: landscape) {
  .map-view { height: 78vh; }
  .bk-head { padding-top: 20px; }
}

/* A pointer that is not a mouse gets no hover-only behaviour: help tips open on
 * tap instead, and cabin cards do not lift. */
@media (hover: none) {
  .help:hover .help-body { visibility: hidden; opacity: 0; }
  .help-body.open { visibility: visible; opacity: 1; }
  .cabin:hover { transform: none; }
}

/* Somebody who would rather things did not move. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------- touch sizes
 * A finger is about 9mm across. Anything you tap has to allow for that, even
 * where a mouse would manage something smaller. */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .help-mark { width: 26px; height: 26px; font-size: 13px; }
  .check input, .switch input + .switch-track { min-width: 24px; }
  .check input { width: 24px; height: 24px; }
  .btn-q { min-height: 44px; padding: 10px 12px; font-size: 14px; }
  .tbl td .btn-q { min-height: 40px; }
  .cal-nav { width: 46px; height: 46px; }
  .pk-x { min-width: 32px; min-height: 32px; }
  .map-pin { padding: 6px 11px; font-size: 12.5px; }
  .cal-day { min-height: 48px; }
  .pb-out { min-height: 40px; padding: 8px 14px; }
  select, input, textarea { font-size: 16px !important; }  /* iOS stops zooming in */
}

/* A small marker can still be an easy target: the visible circle stays 26px so
 * it sits neatly beside a label, while the part that responds to a finger is
 * 44px square and centred on it. */
.help { position: relative; }
.help-mark::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}
@media (hover: hover) and (pointer: fine) {
  .help-mark::after { width: 26px; height: 26px; }
}

/* Same idea for a tick box: the box stays the size it looks, and the label
 * beside it is part of the target, which is how people actually tap them. */
.check, .switch { min-height: 44px; }
.check input::after {
  content: ""; position: absolute; width: 44px; height: 44px;
  transform: translate(-25%, -42%);
}
.check { position: relative; }

/* The calendar squares are sized by the grid, not by a ratio: forcing a ratio
 * made each cell 52px wide, and seven of those will not fit across a phone. */
@media (max-width: 620px) {
  .cal-day { aspect-ratio: auto; min-height: 46px; }
  .cal-grid, .cal-dow { gap: 3px; }
  .cal-card { padding: 14px 12px; }
  .bk-head h1 br { display: none; }
  .bk-head h1 { font-size: 30px; }
}

/* ---------------------------------------------------------------- live
 * A small light that says the screen is keeping itself up to date, and a
 * flicker whenever it just has. Quiet enough to ignore, there when you look. */
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: var(--pine-soft); box-shadow: 0 0 0 0 rgba(124, 148, 99, .6);
}
.live-dot[data-state="off"] { background: var(--muted-2); opacity: .5; }
.live-dot[data-state="waiting"] { background: var(--gold); }
.live-dot.beat { animation: liveBeat 1s ease-out; }
@keyframes liveBeat {
  0% { box-shadow: 0 0 0 0 rgba(231, 176, 58, .75); background: var(--gold); }
  100% { box-shadow: 0 0 0 12px rgba(231, 176, 58, 0); background: var(--pine-soft); }
}

/* While a page is being fetched. Deliberately understated — a spinner on every
 * click would be worse than the wait. */
body.is-loading { cursor: progress; }
body.is-loading .panel-main, body.is-loading .bk-body { opacity: .82; transition: opacity .12s .1s; }

/* ================================================================ THE DESK
 *
 * The screen at the counter is a small, not very bright touch monitor, and
 * whoever is in front of it is often standing up, holding a phone in the other
 * hand, with somebody waiting. So: bigger type than a desk app would normally
 * use, bigger targets than a mouse would need, and less packed in.
 *
 * This is written as the default rather than as a special case, because that
 * screen is the one this is actually used on.
 */
.panel { font-size: 16px; }
.panel h1 { font-size: 27px; }
.panel h2 { font-size: 18.5px; }
.panel h3 { font-size: 15px; }
.sub { font-size: 14.5px; }
.hint { font-size: 13.5px; }

/* Tables: fewer rows on screen, but every one readable across a counter. */
.tbl { font-size: 15.5px; }
.tbl th { font-size: 11px; padding-bottom: 9px; }
.tbl td { padding: 13px 10px; }

/* Anything you press. 48px is about a fingertip; nothing goes under it. */
.btn-p, .btn-s { min-height: 48px; padding: 12px 22px; font-size: 15.5px; }
.btn-q { min-height: 44px; padding: 10px 14px; font-size: 14.5px; }
.btn-big { min-height: 64px; font-size: 19px; }
.panel input[type=text], .panel input[type=email], .panel input[type=password],
.panel input[type=tel], .panel input[type=number], .panel input[type=date],
.panel input[type=time], .panel input[type=search], .panel select, .panel textarea {
  min-height: 48px; font-size: 16px; padding: 11px 13px;
}
.panel label { font-size: 13px; margin-bottom: 5px; }
.check input { width: 24px; height: 24px; }
.chip { font-size: 12.5px; padding: 4px 11px; }

/* The four numbers on Today, readable from the other side of the counter. */
.tile { padding: 16px 18px; }
.tile .t-n { font-size: 40px; }
.tile .t-l { font-size: 13.5px; }

/* The readiness wall is the thing most often poked at, so its squares are big. */
.wall { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.wall .w-unit { padding: 12px 13px; min-height: 62px; }
.wall .w-unit b { font-size: 15.5px; }
.wall .w-unit small { font-size: 12.5px; }

/* A short screen: 720 pixels tall leaves very little once the chrome is on, so
 * give the content back as much of it as possible. */
@media (max-height: 800px) {
  .panel-main { padding-top: 16px; }
  .card { margin-bottom: 14px; }
  .board-wrap { max-height: 52vh; }
}

/* ---------------------------------------------------------------- confirming
 * Anything that cannot be undone asks first, in words, with the thing it is
 * about to do spelled out. */
.confirm-card { border-color: var(--rust); border-width: 2px; }
.lead-line { font-size: 16.5px; line-height: 1.55; margin-bottom: 10px; }

/* ---------------------------------------------------------------- cabin photos */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.photo-cell { border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: var(--paper); }
.photo-cell > b { display: block; font-size: 15.5px; margin-bottom: 8px; }
.photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.photo-thumb { position: relative; display: inline-block; }
.photo-thumb img { width: 84px; height: 62px; object-fit: cover; border-radius: 7px; display: block; }
.photo-thumb form { position: absolute; top: -7px; right: -7px; margin: 0; }
.photo-x {
  width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--night); color: var(--gold-soft); font-size: 15px; line-height: 1;
  font-family: inherit;
}
.photo-none { display: block; color: var(--muted-2); font-size: 13.5px; margin-bottom: 10px; }
.photo-add { margin: 0; }
.photo-pick {
  display: block; text-align: center; cursor: pointer; margin: 0;
  border: 1px dashed var(--line); border-radius: 9px; padding: 11px;
  color: var(--rust); font-size: 14px; font-weight: 700; min-height: 44px;
}
.photo-pick:hover { border-color: var(--rust); background: var(--birch-2); }
.photo-pick input { position: absolute; opacity: 0; width: 0; height: 0; }

/* ---------------------------------------------------------------- narrow again
 * Below the counter screen the bar folds into a menu, as before. */
@media (max-width: 900px) {
  .panel-bar .pb-link, .panel-bar .pb-right { display: none; }
  .pb-toggle { display: inline-flex; }
  .panel-bar.open .pb-link {
    display: flex; width: 100%; min-height: 52px;
    border-bottom: 1px solid rgba(244, 236, 220, .12); border-top: 0;
    margin-bottom: 0; justify-content: flex-start;
  }
  .panel-bar.open .pb-right {
    display: flex; width: 100%; padding: 12px 0 4px; margin: 0;
    justify-content: space-between;
  }
  .more-sheet { top: 0; }
  .more-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .more-grid { grid-template-columns: 1fr; }
}

/* Quiet links beside a page heading, for the things printed once a shift. They
 * are in the More menu too; up here they are one tap rather than two, without
 * taking a hundred pixels off a short screen. */
.head-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.head-links a {
  color: var(--rust); font-size: 14.5px; font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; padding: 10px 0; min-height: 44px;
  display: inline-flex; align-items: center;
}
.head-links a:hover { color: var(--rust-deep); }

/* Narrow fields inside a table row. Still tall enough to press. */
.w-narrow { width: 96px; }
.w-mid { width: 168px; }
.tbl .w-narrow, .tbl .w-mid, .tbl input, .tbl select { min-height: 44px; }

/* ---------------------------------------------------------------- cabin states
 * Four buttons that each say what they mean. No cycling: somebody who wants
 * "ready" presses Ready. */
.state-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.state-choices form { margin: 0; }
.state-btn {
  width: 100%; text-align: left; cursor: pointer; font-family: inherit;
  border: 2px solid var(--line); border-radius: 11px; padding: 14px 16px;
  min-height: 74px; background: var(--paper); color: var(--ink);
}
.state-btn b { display: block; font-size: 16.5px; font-weight: 800; }
.state-btn span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.state-btn:disabled { opacity: .45; cursor: default; }
.state-btn.is-ready { background: #E7F0E3; border-color: #BFD5B6; }
.state-btn.is-cleaning { background: #FCF3DC; border-color: #E8D6A0; }
.state-btn.is-dirty { background: #FBE9E4; border-color: #EFC6B8; }
.state-btn.is-ooo { background: var(--night); border-color: var(--night); color: var(--paper); }
.state-btn.is-ooo span { color: var(--gold-soft); }
.state-btn:hover:not(:disabled) { border-color: var(--rust); }
.state-ooo input { margin-top: 8px; }

/* The wall tiles are links now, so they need to look like the buttons they are. */
.wall a.w-unit { display: block; text-decoration: none; color: inherit; }
.wall a.w-unit:hover { border-color: var(--rust); }
.ooo-note { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ooo-note input { margin-top: 5px; }

/* A small form living inside a table cell: a fixed-width field and a button
 * that keeps its size. Without this the field stretched to fill the column and
 * squeezed the button to nothing. */
.panel .tbl form.row { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; margin: 0; }
.panel .tbl form.row > input[type=number],
.panel .tbl form.row > input[type=text] { flex: 0 0 96px; width: 96px; }
.panel .tbl form.row > .btn-q, .panel .tbl form.row > button { flex: 0 0 auto; }
.panel input.w-mid { width: 168px; }

/* Compact actions inside a table still have to look pressable on a touch
 * screen, where there is no cursor change to tell you it is a button. */
.btn-q {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; text-decoration: none;
}
.btn-q:hover { background: var(--birch-2); border-color: var(--rust); text-decoration: none; }
.head-links a { border: 0; background: none; }

/* A button that cannot be pressed yet has to look like one. */
.btn-p:disabled, .btn-s:disabled, .btn-q:disabled, .bk-go:disabled {
  opacity: .4; cursor: default; box-shadow: none;
}
.btn-p:disabled:hover { background: var(--rust); }

/* ---------------------------------------------------------------- the tab
 * The page in the receipt book, laid out so it can be read across a counter and
 * added to without hunting for a field. */
.tab-card {
  border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; margin-bottom: 14px;
  background: var(--paper);
}
.tab-card.is-settled { background: var(--birch-2); }
.tab-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.tab-head b { font-size: 17px; }
.tab-total {
  margin-left: auto; font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 21px; font-weight: 700;
}
.tab-lines td { padding: 9px 8px; }
.tab-add { margin-top: 10px; }

/* One press puts a common line on the tab. */
.price-buttons { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.price-btn {
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  padding: 11px 12px; text-align: left; cursor: pointer; font-family: inherit;
  color: var(--ink); min-height: 56px;
}
.price-btn:hover { border-color: var(--rust); background: var(--birch-2); }
.price-btn b { display: block; font-size: 14.5px; }
.price-btn span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.owed-note {
  background: #FCF3DC; border: 1px solid #E8D6A0; border-left: 4px solid var(--gold);
  border-radius: 9px; padding: 11px 14px; margin-bottom: 12px; font-size: 15px;
}

/* Days the camp is not taking. Struck through rather than simply missing, so it
 * is plain that the date exists and is not on offer. */
.cal-day.shut {
  color: rgba(36, 26, 16, .3); cursor: not-allowed; background: repeating-linear-gradient(
    -45deg, transparent, transparent 4px, rgba(36, 26, 16, .07) 4px, rgba(36, 26, 16, .07) 8px);
}
.k-shut {
  width: 15px; height: 10px; border-radius: 2px; flex: 0 0 auto;
  background: repeating-linear-gradient(-45deg, transparent, transparent 3px,
    rgba(36, 26, 16, .25) 3px, rgba(36, 26, 16, .25) 6px);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- editors
 * A form cannot live inside a table row — the browser lifts it out and the
 * fields end up belonging to nothing, so Save saves nothing. Each editable
 * thing is its own small form instead, which is also far easier to work on a
 * touch screen than a row of thumbnail-sized inputs. */
.editor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.editor-grid.tight { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.editor-card {
  border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px;
  background: var(--paper); margin: 0;
}
.editor-card h3 { font-size: 15.5px; margin: 0 0 10px; }
.editor-card.open { border-color: var(--rust); border-width: 2px; margin-bottom: 16px; }

/* A long list of things to pick from — cabins, mostly. Tap to open one. */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pick-item {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px;
  background: var(--paper); min-height: 62px;
}
.pick-item:hover { border-color: var(--rust); }
.pick-item b { display: block; font-size: 15px; }
.pick-item span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.pick-item.is-off { opacity: .55; }
