: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;
  padding: 0.28rem 1rem;
  background: #1f3a2e;
  color: #f6f1e7;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}
.demo-banner p { margin: 0; }
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;
  padding: 0.7rem 1.15rem;
  background: #1f3a2e;
  color: #f6f1e7;
  text-align: center;
  font-size: 0.95rem;
}
.owner-demo-note p { margin: 0; }
.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 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 {
  max-width: 100%;
  min-width: 0;
  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;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.diary-scroll,
.diary-tools {
  max-width: 100%;
  min-width: 0;
}
.diary-board {
  display: flex;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}
.diary-col {
  flex: 1 0 12rem;
  min-width: 12rem;
  max-width: 100%;
}
.diary-artist {
  min-width: 0;
  max-width: 100%;
}
.board-today {
  grid-template-columns: 1fr;
}
.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);
}
.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; overflow-wrap: anywhere; min-width: 0; }
form.id-check {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.4rem 0 0;
  max-width: 16rem;
}
form.id-check label.extra { width: 100%; min-width: 0; }
ul.extras-lines { margin: 0.35rem 0; padding-left: 1.1rem; }
pre.snippet {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  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.75rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem;
}
.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;
}
/* Grid and section children default to min-width: auto, so a wide table
   stretches the page. min-width: 0 lets .table-scroll scroll instead. */
.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;
}
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; }
.day-strip, .slot-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.day-chip, .time-chip {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.day-chip.on, .time-chip:hover, .day-chip:hover { background: var(--soft); }
.hour-list { margin: 0.4rem 0; padding-left: 1.1rem; color: var(--muted); }
.hour-row { display: grid; grid-template-columns: 6.5rem 1fr 1fr 1fr 1fr; gap: 0.35rem; margin: 0.25rem 0; align-items: center; }
.hour-row input { width: 100%; }
.artist-card { margin: 0 0 1rem; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0.8rem 0; }
form.inline > div,
.upload-setting {
  min-width: 0;
  max-width: 100%;
}
.upload-panel { min-width: 0; max-width: 100%; }
.upload-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
}
.upload-card {
  flex: 1 1 8rem;
  max-width: 12rem;
  min-width: 0;
  margin: 0;
}
.upload-card img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
}
.upload-card form { margin: 0.2rem 0 0; }
.upload-notes { padding-left: 1.1rem; margin: 0.4rem 0 1rem; }
label, figcaption, .upload-notice { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .hour-row { grid-template-columns: 1fr 1fr; }

  header { align-items: center; }
  .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; }
}
