
    .preview-banner {
      background: #C8102E;
      color: #fff;
      text-align: center;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.04em;
      padding: 8px 16px;
    }
    .preview-banner a { color: #fff; text-decoration: underline; }

    .page-hero.book-hero {
      background:
        linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.72) 100%),
        var(--black) center 62% / cover no-repeat url("assets/hero-grey.jpg");
    }

    .book-layout {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 40px;
      align-items: start;
    }

    .cal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
    }
    .cal-head h2 { margin: 0; }
    .cal-nav { display: flex; gap: 8px; }
    .icon-btn {
      width: 40px; height: 40px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: #fff;
      cursor: pointer;
      font-size: 18px;
      line-height: 1;
    }
    .icon-btn:hover { border-color: #bbb; }

    .week-strip {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 8px;
      margin-bottom: 22px;
    }
    .day-chip {
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 12px;
      padding: 10px 6px 12px;
      text-align: center;
      cursor: pointer;
      font-family: inherit;
    }
    .day-chip .dow {
      display: block;
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 4px;
    }
    .day-chip .num {
      font-family: Oswald, sans-serif;
      font-size: 22px;
      font-weight: 600;
    }
    .day-chip.is-selected {
      border-color: var(--accent-d);
      background: #fff5f6;
    }
    .day-chip.is-closed { opacity: 0.45; }
    .day-chip.has-open .dot {
      display: inline-block;
      width: 6px; height: 6px;
      background: #2f9e62;
      border-radius: 50%;
      margin-top: 6px;
    }

    .slot-list { display: flex; flex-direction: column; gap: 8px; }
    .slot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 12px;
      padding: 12px 14px;
      cursor: pointer;
      font-family: inherit;
      text-align: left;
      width: 100%;
    }
    .slot:hover:not(:disabled) { border-color: #c8c8c4; }
    .slot.is-selected { border-color: var(--accent-d); background: #fff5f6; }
    .slot:disabled, .slot.is-closed {
      cursor: not-allowed;
      opacity: 0.55;
      background: #f3f3f1;
    }
    .slot .when {
      font-family: Oswald, sans-serif;
      font-size: 18px;
      font-weight: 600;
      letter-spacing: 0.02em;
    }
    .slot .meta { font-size: 13px; color: var(--muted); }

    .book-panel {
      background: var(--paper);
      border-radius: 14px;
      padding: 24px;
      position: sticky;
      top: 88px;
    }
    .book-panel h3 {
      font-family: Oswald, sans-serif;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      font-size: 22px;
      margin: 0 0 8px;
    }
    .book-panel .hint { color: var(--soft); font-size: 14px; margin-bottom: 18px; }

    label.field[hidden] { display: none !important; }
    label.field {
      display: block;
      margin-bottom: 12px;
      font-size: 13px;
      font-weight: 600;
    }
    label.field span { display: block; margin-bottom: 6px; }
    input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="time"], input[type="date"], input[type="number"], select, textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 10px 12px;
      font-family: inherit;
      font-size: 15px;
      background: #fff;
    }
    textarea { min-height: 70px; resize: vertical; }
    .check {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-weight: 500;
      font-size: 14px;
      margin: 12px 0;
    }
    .check input { margin-top: 3px; }
    .policy {
      font-size: 13px;
      color: var(--soft);
      background: #fff;
      border-radius: 10px;
      padding: 12px 14px;
      margin: 14px 0;
    }
    .policy strong { color: var(--text); }
    .error {
      background: #fde8eb;
      color: #8B1524;
      border-radius: 10px;
      padding: 10px 12px;
      font-size: 14px;
      margin: 10px 0;
    }
    .success-box {
      background: #fff;
      border-radius: 12px;
      padding: 16px;
    }
    .success-box p { margin: 0 0 8px; }
    .ref { font-family: Oswald, sans-serif; letter-spacing: 0.04em; font-size: 18px; }

    /* Admin */
    .admin-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 16px 0 8px;
    }
    .admin-bar h1 {
      font-family: Oswald, sans-serif;
      text-transform: uppercase;
      font-size: 28px;
      margin: 0;
    }
    .who { font-size: 14px; color: var(--muted); }

    .grid-wrap { overflow-x: auto; }
    .cage-grid {
      min-width: 820px;
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden;
      background: #fff;
    }
    .cage-grid table { width: 100%; border-collapse: collapse; table-layout: fixed; }
    .cage-grid th, .cage-grid td {
      border: 1px solid var(--line);
      padding: 6px;
      vertical-align: top;
      font-size: 12px;
    }
    .cage-grid thead th {
      background: var(--char);
      color: #fff;
      font-weight: 600;
      text-align: center;
      padding: 8px 4px;
    }
    .cage-grid .cage-name {
      width: 78px;
      background: var(--paper);
      font-family: Oswald, sans-serif;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      font-size: 13px;
      text-align: center;
      vertical-align: middle;
    }
    .cell { min-height: 58px; }
    .cell.is-off { background: #efefed; }
    .cell.is-open { background: #f3faf6; cursor: pointer; }
    .cell.is-open:hover { background: #e7f6ee; }
    .pill {
      display: block;
      border-radius: 8px;
      padding: 6px 7px;
      margin-bottom: 4px;
      color: #fff;
      line-height: 1.25;
    }
    .pill.booking { background: #1c1c1e; }
    .pill.hold {
      background: #fff;
      color: #1a1a1a;
      border: 1px dashed #C8102E;
    }
    .pill .sub { display: block; opacity: 0.8; font-size: 11px; }
    .shift-row { font-size: 13px; color: var(--soft); margin: 8px 0 16px; }
    .shift-row b { color: var(--text); }

    .modal-back {
      position: fixed; inset: 0;
      background: rgba(11,11,12,0.5);
      display: flex; align-items: center; justify-content: center;
      z-index: 80; padding: 20px;
    }
    .modal {
      background: #fff;
      border-radius: 14px;
      width: min(480px, 100%);
      padding: 24px;
      max-height: 90vh;
      overflow: auto;
    }
    .modal h3 {
      font-family: Oswald, sans-serif;
      text-transform: uppercase;
      margin: 0 0 14px;
    }
    .login-card {
      max-width: 420px;
      margin: 48px auto;
      background: var(--paper);
      border-radius: 14px;
      padding: 28px;
    }

    .toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
    .btn-outline {
      background: #fff;
      color: var(--text);
      border: 1px solid var(--line);
      padding: 8px 14px;
      border-radius: 999px;
      font-size: 13px;
    }
    .btn-outline:hover { border-color: #999; }

    .section { padding: 36px 0 72px; }

    @media (max-width: 860px) {
      .book-layout { grid-template-columns: 1fr; }
      .book-panel { position: static; }
      .week-strip { gap: 6px; }
    }

    .dropin-note {
      margin: 28px 0 0;
      padding: 16px 20px;
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 12px;
      background: rgba(255,255,255,0.06);
      color: #f0f0f0;
      font-size: 16px;
      line-height: 1.5;
    }
    .dropin-note a {
      color: #fff;
      font-weight: 700;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .dropin-note a:hover { color: var(--accent); }

    .party-box {
      margin: 16px 0;
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fafafa;
    }
    .party-box .hint, .guardian-fields .hint { color: var(--soft, #555); font-size: 14px; margin: 6px 0 12px; }
    .guest-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
    .waiver-box { margin-top: 8px; }
    .waiver-legal {
      max-height: 260px;
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 14px 16px;
      background: #fff;
      font-size: 13px;
      line-height: 1.45;
      margin-bottom: 16px;
    }
    .waiver-legal h3 { font-size: 16px; margin: 0 0 10px; }
    .waiver-warn, .waiver-guardian { font-weight: 600; }
    .waiver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .waiver-grid .full { grid-column: 1 / -1; }
    .sig-pad {
      display: block;
      width: 100%;
      height: 120px;
      border: 1px dashed #aaa;
      border-radius: 10px;
      background: #fff;
      touch-action: none;
      cursor: crosshair;
    }
    .guardian-fields { margin: 12px 0; padding: 12px; background: #fff6f6; border-radius: 10px; }
    .pill.needs-waiver { background: #8B1524; color: #fff; }
    .pill.needs-waiver .sub { color: #ffd0d5; }
    .pill.machine-flag { box-shadow: inset 0 0 0 2px #C8102E; }
    .waiver-flag { color: #8B1524; font-weight: 700; font-size: 13px; }
    .sign-link { word-break: break-all; font-size: 13px; }
    @media (max-width: 640px) {
      .waiver-grid, .guest-row { grid-template-columns: 1fr; }
    }

    .checkin-page .checkin-bar { align-items: flex-start; }
    .checkin-search { display: block; margin: 8px 0 12px; }
    .checkin-search input { font-size: 18px; padding: 14px 16px; min-height: 52px; }
    .legend { font-size: 14px; color: var(--soft, #555); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
    .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
    .dot.green { background: #1f7a3f; }
    .dot.amber { background: #c47b00; }
    .dot.red { background: #8B1524; }
    .checkin-board { display: flex; flex-direction: column; gap: 12px; padding-bottom: 48px; }
    .hour-head { font-size: 18px; margin: 16px 0 4px; }
    .checkin-card {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 16px;
      background: #fff;
    }
    .checkin-card.needs-attention { border-color: #8B1524; }
    .checkin-card.is-checked { background: #f3faf5; border-color: #1f7a3f; }
    .checkin-card .card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; background: transparent; color: inherit; padding: 0; }
    .checkin-card h3 { margin: 0 0 4px; font-size: 20px; }
    .checkin-card .meta { margin: 0; color: #555; font-size: 14px; }
    .check-tick { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
    .check-tick input { width: 22px; height: 22px; }
    .people { list-style: none; padding: 0; margin: 14px 0 0; }
    .people .person { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid #eee; }
    .people .person .dot { margin-top: 6px; flex: 0 0 14px; width: 14px; height: 14px; }
    .people .role { color: #666; font-size: 13px; }
    .people .sub { color: #555; font-size: 13px; margin-top: 2px; }
    .card-actions { margin-top: 12px; }
    .tap { min-height: 44px; padding: 10px 16px; }
    @media (max-width: 700px) {
      .checkin-card .card-head { flex-direction: column; }
      .toolbar { flex-wrap: wrap; }
    }

    #pay-root { margin-top: 16px; }
    #card-container { min-height: 90px; margin: 12px 0; }
    .pay-box { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
    .pay-sandbox { font-size: 13px; color: #555; margin: 0 0 12px; }
    .pill.unpaid, .pill.needs-payment { outline: 2px solid #c47b00; }
    .pay-status { font-size: 13px; margin: 0 0 6px; }
    .pay-status.paid { color: #1f7a3f; font-weight: 600; }
    .pay-status.unpaid { color: #8B1524; font-weight: 600; }
    .pay-status.refunded, .pay-status.partial_refund { color: #333; }

    .email-preview { border: 1px dashed var(--line, #ddd); border-radius: 16px; padding: 16px; margin: 16px 0; background: #fafafa; text-align: left; }
    .email-preview .k { color: #555; }
    .email-preview .email-body { white-space: pre-wrap; font-family: inherit; font-size: 14px; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 12px; overflow: auto; }
    .pill.cancelled { background: #f3f3f3; color: #555; text-decoration: line-through; outline: 1px solid #ccc; }
    .pill.cancelled .sub { text-decoration: none; }
    .pay-opts { display: grid; gap: 10px; margin: 10px 0; }
    .pay-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #ddd; border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; text-align: left; }
    .pay-opt input { margin-top: 4px; }
    .pay-flag.paid_full { color: #1f7a3f; }
    .pay-flag.deposit { color: #8a5a00; }
    .pay-status.paid_full, .pay-status.paid { color: #1f7a3f; font-weight: 700; }
    .pay-status.deposit { color: #8a5a00; font-weight: 700; }
    .pay-status.member { color: #1d4f8c; font-weight: 600; }
    .pay-status.member_owes, .flag.member_owes { color: #8B1524; font-weight: 700; }
    .pay-status.desk { color: #333; font-weight: 600; }
    .pill.no_show { background: #5a1a22; color: #fff; outline: 1px solid #C8102E; }
    .flag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .03em; padding: 2px 7px; border-radius: 999px; margin-right: 4px; }
    .flag.paid_full { background: #1f7a3f; color: #fff; }
    .flag.deposit { background: #f5a300; color: #1c1c1e; }
    .flag.desk { background: #e6e6e6; color: #1c1c1e; }
    .flag.member { background: #1d4f8c; color: #fff; }
    .flag.member_owes { background: #8B1524; color: #fff; }
    .flag.unpaid { background: #8B1524; color: #fff; }
    .settings-grid { display: grid; gap: 8px; }
    .outbox-item { border: 1px solid #e3e3e3; border-radius: 10px; padding: 10px; margin: 8px 0; background: #fafafa; text-align: left; }
    .outbox-item pre { white-space: pre-wrap; font-family: inherit; font-size: 12px; margin: 6px 0 0; max-height: 160px; overflow: auto; }
    .pill .flag { font-size: 10px; padding: 1px 6px; }

.pill.yard{border-left:4px solid #1a73e8}
.pill.team{border-left:4px solid #7a3fd1}

    /* ---- people linked to a booking: waiver flags and per-person check-in (people.js) ---- */
    .pl-box { margin-top: 12px; }
    .pl-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
    .pl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 2px solid #999; background: #fff; color: #222; }
    .pl-pill.good { border-color: #1f7a3f; background: #e6f4ea; color: #14532d; }
    .pl-pill.bad { border-color: #8B1524; background: #fdeaec; color: #7a1020; }
    .pl-pill.neutral { border-color: #888; background: #f4f4f4; }
    .pl-people { list-style: none; margin: 0; padding: 0; }
    .pl-person { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; align-items: center; padding: 12px; margin-bottom: 8px; border: 2px solid #ddd; border-left-width: 8px; border-radius: 10px; background: #fff; }
    .pl-person.ok { border-left-color: #1f7a3f; }
    .pl-person.warn { border-left-color: #c47b00; background: #fff8e8; }
    .pl-person.none { border-left-color: #8B1524; background: #fff3f4; }
    .pl-person.arrived { background: #eef8f1; }
    .pl-flag { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; border-radius: 8px; font-weight: 800; font-size: 16px; letter-spacing: .02em; text-align: center; line-height: 1.15; }
    .pl-flag .ic { font-size: 22px; }
    .pl-flag.ok { background: #1f7a3f; color: #fff; }
    .pl-flag.warn { background: #c47b00; color: #fff; }
    .pl-flag.none { background: #8B1524; color: #fff; }
    .pl-flag.big { font-size: 22px; padding: 14px; }
    .pl-who strong { font-size: 18px; }
    .pl-who .role { color: #555; font-size: 13px; margin-left: 6px; }
    .pl-who .sub { color: #555; font-size: 13px; margin-top: 2px; }
    .pl-arrived { color: #14532d; font-weight: 700; margin-top: 4px; }
    .pl-override { color: #7a1020; font-size: 13px; margin-top: 2px; font-weight: 600; }
    .pl-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
    .pl-checkin { min-width: 150px; min-height: 56px; font-size: 18px; font-weight: 800; }
    .pl-undo { min-height: 48px; }
    .pl-remove { background: none; border: 0; color: #777; text-decoration: underline; cursor: pointer; font-size: 13px; padding: 8px; }
    .pl-year { color: #777; font-size: 12px; margin-top: 2px; }
    .pl-yearlink { background: none; border: 0; color: #777; text-decoration: underline; cursor: pointer; font-size: 12px; padding: 4px 2px; }
    .pl-roster-pointer { margin: 12px 0 0; padding: 10px 12px; border: 2px dashed #bbb; border-radius: 10px; color: #444; font-weight: 700; }
    .pl-footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
    .pl-warn h3 { margin: 12px 0 6px; }
    .pl-warn-actions { display: grid; gap: 10px; margin: 14px 0; }
    .pl-qr { text-align: center; padding: 12px; border: 2px dashed #999; border-radius: 10px; }
    .pl-qr-img { width: 240px; max-width: 70%; margin: 8px auto; }
    .pl-override-box { margin-top: 12px; padding: 12px; background: #fff3f4; border: 2px solid #8B1524; border-radius: 10px; }
    @media (max-width: 720px) { .pl-person { grid-template-columns: 1fr; } .pl-actions { justify-content: flex-start; } }
