:root {
  --bg: #f3f1eb;
  --paper: #fffcf8;
  --ink: #1c2420;
  --muted: #5c675f;
  --line: #e3ddd3;
  --green: #0f6e50;
  --green-dark: #0c5740;
  --soft: #e7f3ee;
  --full: #8c3030;
  --tight: #8a5a12;
  --shadow: 0 1px 2px rgba(28, 36, 32, 0.04);
}
* { box-sizing: border-box; }
html {
  overflow-x: clip;
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); }
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem 0.75rem;
  max-width: 100%;
  min-width: 0;
  padding: 0.85rem 1.35rem;
  background: var(--paper);
  border-top: 3px solid var(--green);
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.header-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
  min-width: 0;
  max-width: 100%;
}
.product-logo { line-height: 0; flex: 0 0 auto; }
.product-logo img { display: block; width: 120px; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: 0.35rem; min-width: 0; }
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
nav a.on, nav a:hover { color: var(--ink); background: var(--soft); }
main {
  width: 100%;
  max-width: 38rem;
  min-width: 0;
  margin: 0 auto;
  padding: 1.85rem 1.25rem 3.5rem;
}
body.wide main { max-width: 72rem; }
h1 {
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  font-weight: 640;
}
h2 {
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
  font-weight: 640;
  letter-spacing: -0.01em;
}
.lede, .note { color: var(--muted); }
.lede { margin: 0 0 1.35rem; }
section { margin: 0 0 2.4rem; }
.card, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}
label { display: block; font-size: 0.88rem; margin: 0.85rem 0 0.3rem; color: var(--muted); }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%;
  padding: 0.62rem 0.7rem;
  border: 1px solid #d8d2c8;
  border-radius: 10px;
  background: #fff;
}
input[readonly] { background: #fff; }
input:focus, select:focus, textarea:focus, button:focus { outline: 2px solid var(--green); outline-offset: 1px; }
button, .button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--green-dark); }
a.view-as-owner {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1.25rem;
  background: #1f3a2e;
  color: #f6f1e7;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid #1f3a2e;
  border-radius: 12px;
}
a.view-as-owner:hover { background: #16281f; color: #fff; }
a.view-as-owner:focus { outline: 2px solid #1f3a2e; outline-offset: 2px; }
.view-as-owner-line { margin: 0 0 0.75rem; font-size: 1.02rem; }
.demo-banner {
  margin: 0;
  max-width: 100%;
  padding: 0.28rem 0.75rem;
  background: #1f3a2e;
  color: #f6f1e7;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
.demo-banner p { margin: 0; overflow-wrap: anywhere; }
a.view-as-owner-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.45rem;
  padding: 0.12rem 0.65rem;
  background: #f6f1e7;
  color: #1f3a2e;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #f6f1e7;
  white-space: nowrap;
  vertical-align: middle;
}
a.view-as-owner-strip:hover { background: #fff; color: #16281f; }
a.view-as-owner-strip:focus { outline: 2px solid #f6f1e7; outline-offset: 2px; }
.owner-demo-note {
  margin: 0;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  background: #1f3a2e;
  color: #f6f1e7;
  text-align: center;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.owner-demo-note p { margin: 0; overflow-wrap: anywhere; }
.owner-demo-note a { color: #f6e7c4; font-weight: 700; }
button.ghost, .button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.ghost:hover, .button.ghost:hover { background: #fff; }
form.guest button { margin-top: 1rem; }
form.designer button { margin-top: 1rem; }
textarea { min-height: 4.5rem; resize: vertical; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.dates input.date-display { min-width: 11.5rem; }
form.editor.block-editor {
  grid-template-columns: minmax(14rem, 1.4fr) minmax(14rem, 1fr) auto;
}
form.editor.block-editor .dates {
  grid-column: 1 / -1;
  grid-template-columns: minmax(12rem, 16rem) minmax(12rem, 16rem);
  justify-content: start;
}
label.check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.4rem 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  cursor: pointer;
}
label.check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 1.15rem;
  margin: 0.15rem 0 0;
}
label.check span { display: block; flex: 1 1 auto; min-width: 0; }
form.pitchup-settings { max-width: 36rem; }
form.pitchup-settings button { margin-top: 0.85rem; }
form.pitchup-settings #pitchup-site { max-width: 22rem; }
.summary {
  background: var(--soft);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 0 0 0.85rem;
}
.price { font-size: 1.6rem; letter-spacing: -0.03em; margin: 0.1rem 0; font-weight: 640; }
ul.alts { list-style: none; padding: 0; margin: 0.7rem 0 0; display: flex; flex-direction: column; gap: 0.45rem; }
ul.alts a {
  display: block;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}
ul.alts a:hover { border-color: var(--green); }
.scroll,
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; }
.table-scroll table {
  width: max-content;
  min-width: 100%;
}
.table-scroll th,
.table-scroll td.stay,
.table-scroll td.money {
  white-space: nowrap;
}
.table-scroll td.who {
  white-space: normal;
  min-width: 7.5rem;
  max-width: 14rem;
}
.table-scroll td.who .sub { overflow-wrap: anywhere; }
.table-scroll button,
.table-scroll .button { white-space: nowrap; }
th, td { padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.guest { display: block; font-size: 0.92rem; }
.sub { display: block; color: var(--muted); font-size: 0.82rem; }
.tag {
  display: inline-block;
  margin: 0.2rem 0.25rem 0 0;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green-dark);
  font-size: 0.75rem;
}
form.inline { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: end; }
form.inline input, form.inline select { width: min(16rem, 100%); }
form.inline button, form.editor button { margin: 0; }
form.editor {
  display: grid;
  grid-template-columns: minmax(12rem, 1.6fr) 7.5rem 9rem auto;
  gap: 0.6rem;
  align-items: end;
  margin: 0 0 0.75rem;
}
form.editor label { margin: 0; }
.past, .cancelled { color: var(--muted); }
.empty { margin: 0.4rem 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.actions form { margin: 0; }
.pay-or { margin: 0.85rem 0 0.35rem; color: var(--muted); font-size: 0.85rem; }
.bacs {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.bacs h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.bacs dl {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.2rem 0.75rem;
  margin: 0.55rem 0 0;
}
.bacs dt { color: var(--muted); }
.bacs dd { margin: 0; font-variant-numeric: tabular-nums; }
.owner-cal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.75rem 0.85rem 1rem;
  box-shadow: var(--shadow);
}
.owner-cal-wrap {
  position: relative;
  min-height: 16rem;
}
.cal-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}
.owner-cal-wrap.is-ready .cal-status { display: none; }
.owner-cal-wrap.is-error .cal-status { color: var(--full); }
.owner-cal-wrap.is-error .cal-spinner { display: none; }
.cal-spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: cal-spin 0.7s linear infinite;
}
@keyframes cal-spin { to { transform: rotate(360deg); } }
.confirm-facts {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.28rem 0.85rem;
  margin: 0 0 1rem;
}
.confirm-facts dt { color: var(--muted); }
.confirm-facts dd { margin: 0; }
.confirm-next { margin: 0; }
.more-details { margin: 1.25rem 0 0; }
.more-details summary { cursor: pointer; font-weight: 650; }
.change-dates { margin: 0.85rem 0 0; }
a.change-dates-link { min-height: 2.5rem; }
.owner-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.45rem;
  margin: 0 0 1.25rem;
  max-width: 100%;
  min-width: 0;
}
.owner-subnav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.owner-subnav a.on, .owner-subnav a:hover {
  color: var(--ink);
  background: var(--soft);
}
.owner-nav-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
  width: 100%;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line, #ddd);
}
.owner-advanced {
  margin: 1.75rem 0 2rem;
}
.owner-advanced > summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.15rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}
.extras {
  display: grid;
  gap: 0.45rem;
  margin: 0.4rem 0 0.2rem;
}
label.extra {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
label.extra input { width: auto; margin-top: 0.2rem; }
label.extra span { display: block; }
ul.extras-lines { margin: 0.35rem 0; padding-left: 1.1rem; }
pre.snippet {
  overflow-x: auto;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.82rem;
}
.day-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 1rem;
}
.day-nav a,
.day-nav strong { white-space: nowrap; }
.month-nav { justify-content: flex-start; gap: 0.35rem 0.6rem; }
.month-sep { color: var(--muted); }
.occ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.6rem;
}
.occ {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.occ strong { display: block; font-size: 1.15rem; }
.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  min-width: 0;
}
.board > section,
section,
.product,
.designer-grid,
.designer-grid > * {
  min-width: 0;
  max-width: 100%;
}
p, h1, h2, h3, li, .lede, .note, .brand, .park-mark, .legal-line, .sub {
  overflow-wrap: anywhere;
}
pre.snippet {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
form.extra-editor {
  grid-template-columns: minmax(10rem, 1.4fr) 7rem 8rem 6.5rem auto;
}
form.export-filters {
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  margin: 0 0 1.15rem;
}
.import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.6rem 0.85rem;
  margin: 0 0 1rem;
}
tr.import-error { background: #fbeaea; }
tr.import-flag { background: #f8f1e0; }
input[type="file"] { padding: 0.4rem 0; }
.product { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; }
.park-mark {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
details.technical { margin: 0.6rem 0 1rem; }
details.technical summary { cursor: pointer; }
.help-list { margin: 0.2rem 0 1rem; padding-left: 1.2rem; color: var(--muted); }
.ical-type-help { max-width: 26rem; margin: 0.35rem 0 0; }
#ical-type { width: min(26rem, 100%); }
.feed-warn { color: var(--full); margin: 0.35rem 0 0.5rem; }
.flag-list { list-style: none; padding: 0; }
.flag-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 0 0 0.7rem;
}
.flag-list p { margin: 0.2rem 0; }
.what { margin-top: 0.45rem; }
@media (max-width: 720px) {
  header { align-items: center; flex-wrap: wrap; }
  .dates, form.editor, form.editor.block-editor, form.editor.block-editor .dates,
  form.extra-editor, .bacs dl, .board, .confirm-facts { grid-template-columns: 1fr; }
  .dates input.date-display { min-width: 0; width: 100%; }
  main { padding-top: 1.25rem; }
  h1 { font-size: 1.55rem; }
  a.change-dates-link { width: 100%; text-align: center; }
}
@media (max-width: 420px) {
  header { padding: 0.45rem 0.7rem; gap: 0.35rem 0.45rem; }
  .header-end { gap: 0.4rem; }
  .product-logo img { width: 64px; }
  nav { gap: 0.4rem; }
  nav a { padding: 0.2rem 0.15rem; }
  main { padding: 1.15rem 0.75rem 2.25rem; }
  .demo-banner, .owner-demo-note { padding: 0.45rem 0.7rem; }
}

/* Grendon: choose how to pay at checkout. */
fieldset.pay-choice { border: 0; padding: 0; margin: 1rem 0 0.4rem; display: grid; gap: 0.45rem; min-width: 0; }
fieldset.pay-choice legend { font-weight: 700; margin-bottom: 0.45rem; padding: 0; }
label.pay-option {
  display: flex; align-items: flex-start; gap: 0.55rem; margin: 0;
  padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); cursor: pointer; font-weight: 400;
}
label.pay-option input { width: auto; margin-top: 0.25rem; }
label.pay-option span { display: block; }
label.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
label.pay-option.is-off { opacity: 0.55; cursor: not-allowed; background: #f3f3f0; }
.email-note { padding: 0.55rem 0.75rem; border-radius: 10px; background: #e7f3ee; }
.email-note.warn { background: #fff1d6; }
.sample-bank { font-weight: 600; }
.tag.tag-hold { background: #fff1d6; color: #6b4a00; }
.unpaid-holds { padding: 0.55rem 0.75rem; border-radius: 10px; background: #fff1d6; }

/* Owner stay rules (27 Oct 2026) */
#stay-rules h3 { font-size: 1.02rem; margin: 0 0 0.2rem; }
form.rules-editor, form.season-editor {
  border: 1px solid var(--line, #e3e6e1);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin: 0 0 0.8rem;
}
.rules-now { margin: 0 0 0.6rem; }
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.6rem;
  align-items: end;
}
.rules-grid label { margin: 0; font-size: 0.85rem; }
.rules-save button { margin: 0; width: 100%; }
.people-row { display: grid; grid-template-columns: 8rem 1fr; gap: 0.75rem; align-items: end; }
.people-row .note { margin: 0 0 0.35rem; }
.rule-note { margin: 0.35rem 0 0; }
@media (max-width: 720px) {
  .rules-grid { grid-template-columns: 1fr 1fr; }
  .people-row { grid-template-columns: 1fr; }
}

/* Prices: weekends, seasons, adults and children (27 Oct 2026) */
table.price-lines { width: 100%; border-collapse: collapse; margin: 0.5rem 0 0.6rem; font-size: 0.95rem; }
table.price-lines caption { text-align: left; font-weight: 600; font-size: 0.9rem; padding: 0 0 0.25rem; }
table.price-lines th, table.price-lines td { padding: 0.32rem 0; border-top: 1px solid rgba(31, 58, 46, 0.1); vertical-align: top; }
table.price-lines th { text-align: left; font-weight: 450; padding-right: 0.8rem; }
table.price-lines td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.price-lines th .sub { display: block; font-size: 0.8rem; opacity: 0.7; }
table.price-lines tfoot th, table.price-lines tfoot td { font-weight: 650; border-top: 2px solid rgba(31, 58, 46, 0.25); }
fieldset.party { border: 0; padding: 0; margin: 0 0 0.6rem; }
fieldset.party legend { font-weight: 600; padding: 0; margin: 0 0 0.3rem; }
.party-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.party-grid label { margin: 0 0 0.2rem; }
.party-grid label .sub, .price-grid label .sub { display: block; font-size: 0.78rem; font-weight: 400; opacity: 0.75; }
.note.warn { background: #fff1d6; padding: 0.4rem 0.6rem; border-radius: 8px; }
#prices h3 { font-size: 1.02rem; margin: 0.4rem 0 0.2rem; }
form.price-editor, form.period-editor, form.ages-editor {
  border: 1px solid var(--line, #e3e6e1);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin: 0 0 0.8rem;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.6rem;
  align-items: end;
}
.price-grid label { margin: 0; font-size: 0.85rem; }
.price-grid button { margin: 0; width: 100%; }
.period-head { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.6rem; align-items: end; }
.period-head label { margin: 0; font-size: 0.85rem; }
.period-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 0.6rem; }
.period-actions button { margin: 0; }
.period-tag { display: inline-block; font-size: 0.8rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #e7f3ee; }
.period-tag.past { background: #eee; }
@media (max-width: 720px) {
  .party-grid { grid-template-columns: 1fr 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .period-head { grid-template-columns: 1fr; }
}

/* Calendar colours and occupancy (12 Nov 2026) */
.cal-legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: .2rem 0 .9rem; align-items: center; }
.cal-legend label { display: inline-flex !important; width: auto !important; align-items: center; gap: .35rem; font-size: .86rem; margin: 0 !important; cursor: pointer; white-space: nowrap; }
.cal-legend input[type=checkbox] { margin: 0 !important; width: auto !important; height: auto; flex: none; }
.swatch { display: inline-block; width: .95rem; height: .95rem; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); vertical-align: -2px; flex: none; }
.swatch.closed { background: repeating-linear-gradient(135deg, #8d8f8a 0 3px, #b9bbb6 3px 6px); }
.cal-legend .legend-actions { font-size: .85rem; }
.cal-legend .legend-actions button { background: none; border: 0; padding: 0 .2rem; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.occ-table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.occ-table th, .occ-table td { border: 1px solid #e4d9c6; padding: .3rem .35rem; text-align: center; white-space: nowrap; }
.occ-table th.type { text-align: left; white-space: normal; min-width: 12rem; font-weight: 500; }
.occ-table td.full { font-weight: 650; }
.occ-table td.closed { background: repeating-linear-gradient(135deg, #efeeea 0 4px, #dcdbd6 4px 8px); color: #555; }
.occ-table thead th { background: #f6f1e7; font-weight: 600; }
.occ-table td.wkend, .occ-table th.wkend { border-left-width: 2px; }

/* Diary (12 Nov 2026) */
.diary-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem; margin: .6rem 0 1rem; }
.diary-summary .stat { border: 1px solid #e4d9c6; border-radius: 12px; padding: .6rem .8rem; background: #fffdf8; }
.diary-summary .stat strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.diary-summary .stat .sub { display: block; }
.diary-tools { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin: .4rem 0 .8rem; }
.diary-tools form { display: flex; gap: .4rem; align-items: center; margin: 0; }
.diary-tools label { margin: 0; }
.diary-print-head { display: none; }
@media print {
  header, footer, nav, .owner-subnav, .diary-tools, .day-nav, .view-as-owner-strip, .no-print { display: none !important; }
  .diary-print-head { display: block; }
  body { background: #fff !important; font-size: 11pt; }
  main, .wrap { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .table-scroll { overflow: visible !important; }
  table { width: 100%; border-collapse: collapse; }
  th, td { border: 1px solid #999; padding: 3px 5px; }
  a { color: #000; text-decoration: none; }
  section { break-inside: avoid-page; }
  .swatch { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.occ-jump { display: flex; gap: .5rem; align-items: center; margin: .2rem 0 .6rem; flex-wrap: wrap; }
.occ-jump label { margin: 0; }
.occ-jump input, .diary-tools input[type=date] { width: auto !important; max-width: 12rem; }
.diary-table td:last-child form { display: flex; flex-wrap: wrap; gap: .25rem; }
.diary-table td:last-child button { padding: .3rem .6rem; font-size: .8rem; }

/* ---- Wide tables: visible scroll cue (edge fades + hint) ---- */
.table-scroll {
  background:
    linear-gradient(to right, var(--paper) 30%, rgba(255, 255, 255, 0)) left center / 2rem 100% no-repeat local,
    linear-gradient(to left, var(--paper) 30%, rgba(255, 255, 255, 0)) right center / 2rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0)) left center / 0.8rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0)) right center / 0.8rem 100% no-repeat scroll,
    var(--paper);
}
.table-scroll::-webkit-scrollbar { height: 10px; }
.table-scroll::-webkit-scrollbar-thumb { background: #b9ad98; border-radius: 6px; }
.scroll-hint { display: none; margin: 0.3rem 0 0.2rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); text-align: right; }

/* ---- Owner bookings: actions sit right after the guest; on phones each booking is a card ---- */
.bookings-table td.act { white-space: normal; min-width: 8.5rem; }
.bookings-table td.act form { display: block; margin: 0 0 0.35rem; }
.bookings-table td.act form:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .scroll.bookings-scroll {
    overflow: visible; border: 0; box-shadow: none; background: none; border-radius: 0;
  }
  .bookings-table, .bookings-table tbody { display: block; width: 100%; min-width: 0; }
  .table-scroll table.bookings-table, .scroll table.bookings-table { width: 100%; max-width: 100%; min-width: 0; }
  .bookings-table tr { box-sizing: border-box; }
  .bookings-table thead { display: none; }
  .bookings-table tr {
    display: flex; flex-direction: column;
    margin: 0 0 0.8rem; padding: 0.7rem 0.9rem;
    background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  }
  .bookings-table td { display: block; border: 0; padding: 0.15rem 0; white-space: normal; max-width: none; min-width: 0; }
  .bookings-table td.who { order: 1; font-size: 1.05rem; }
  .bookings-table td.unit { order: 2; }
  .bookings-table td.stay { order: 3; }
  .bookings-table td.money { order: 4; }
  .bookings-table td.act { order: 5; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
  .bookings-table td.act:empty { display: none; }
  .bookings-table td.act form { margin: 0; }
  .bookings-table td.act button, .bookings-table td.act .button, .bookings-table td.act a { min-height: 44px; display: inline-flex; align-items: center; }
  .table-scroll .bookings-table td.stay, .table-scroll .bookings-table td.money { white-space: normal; }
  .bookings-table td[data-label] { position: relative; padding-left: 4.6rem; }
  .bookings-table td[data-label]::before {
    content: attr(data-label); position: absolute; left: 0; top: 0.3rem;
    font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  }
  .bookings-table td.stay .sub, .bookings-table td.money .sub { display: inline-block; margin-left: 0.4rem; white-space: nowrap; }
}
