    /* CA2: Find a dealer, Admin › Batting order, Admin › Dealer levels (G-Find-Dealer, G-Batting-Order) */

    .find-dealer-sheet { max-width: 760px; }

    .find-dealer-body {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 4px 2px 8px;
      max-height: min(72vh, 760px);
      overflow-y: auto;
    }

    .fd-premium {
      padding: 10px 12px;
      border-radius: 12px;
      background: #FFF4D6;
      color: #5E3E00;
      font-size: 14px;
    }

    .fd-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
    }

    .fd-override {
      margin-left: auto;
      font-size: 13px;
      color: var(--muted);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .fd-count { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }

    .fd-list { display: flex; flex-direction: column; gap: 10px; }

    .fd-card {
      display: grid;
      grid-template-columns: 28px 40px minmax(0, 1fr) auto;
      align-items: start;
      gap: 12px;
      padding: 12px 14px;
      border: 1.5px solid var(--border);
      border-radius: 16px;
      background: #fff;
    }

    .fd-card.is-first {
      border-color: #E8A400;
      background: #FFFBEF;
    }

    .fd-card.is-unavailable { background: #F7F6FB; }

    .fd-rank {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 800;
      color: var(--muted);
      text-align: center;
      line-height: 40px;
    }

    .fd-main { min-width: 0; }

    .fd-first {
      display: block;
      margin-bottom: 2px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.04em;
      color: #7A5300;
    }

    .fd-name {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 8px;
      font-size: 16px;
    }

    .fd-level {
      display: inline-flex;
      align-items: center;
      height: 22px;
      padding: 0 8px;
      border-radius: 11px;
      background: color-mix(in srgb, var(--level, #4B2EDB) 14%, white);
      color: var(--level, #4B2EDB);
      font: 800 11px var(--font-body);
      letter-spacing: 0.02em;
    }

    .fd-level.is-none { background: var(--bg); color: var(--muted); }

    .fd-reason { margin: 4px 0 0; font-size: 14px; font-weight: 600; }

    .fd-day { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

    .fd-nums {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 14px;
      margin-top: 6px;
      font-size: 12px;
      color: var(--muted);
    }

    .fd-num b { color: var(--text); font-size: 13px; }

    .fd-side {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 4px;
    }

    .fd-score {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 800;
      line-height: 1;
    }

    .fd-score-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }

    .fd-missing summary {
      cursor: pointer;
      font-size: 14px;
      font-weight: 700;
      color: var(--accent);
    }

    .fd-missing-line {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 10px;
      padding: 6px 0;
      border-top: 1px solid var(--border);
      font-size: 14px;
    }

    .fd-missing-line span { color: var(--muted); }

    /* Admin › Batting order */
    .bo-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 16px;
      align-items: start;
      margin: -50px 32px 24px;
      position: relative;
      z-index: 1;
    }

    .bo-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

    .bo-side { position: sticky; top: 16px; }

    .bo-total { margin: 0 0 10px; font-weight: 800; color: var(--ok); }

    .bo-total.is-off { color: var(--attention); }

    .bo-slider {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(120px, 1fr) 52px;
      align-items: center;
      gap: 12px;
      padding: 10px 0;
      border-top: 1px solid var(--border);
    }

    .setup-page .setup-card .bo-slider .bo-slider-label { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; }

    .setup-page .setup-card .bo-slider .bo-slider-label input { width: auto; margin: 3px 0 0; flex: none; accent-color: var(--accent); }

    .bo-slider-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

    .bo-slider-label b { font-size: 15px; }

    .bo-slider-label span span { font-size: 12px; color: var(--muted); font-weight: 500; }

    .bo-slider.is-off { grid-template-columns: minmax(0, 1fr); }

    .bo-slider.is-off .bo-slider-label b { color: var(--muted); font-weight: 600; }

    .bo-slider input[type="range"] { width: 100%; margin: 0; accent-color: var(--accent); }

    .bo-slider-value { font-weight: 800; text-align: right; }

    .bo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }

    .bo-newrule input { max-width: 120px; }

    .setup-page .setup-card .bo-check { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; font-size: 14px; }

    .setup-page .setup-card .bo-check input { width: auto; margin: 3px 0 0; flex: none; }

    .bo-prev-row {
      display: grid;
      grid-template-columns: 22px 32px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      padding: 8px 0;
      border-top: 1px solid var(--border);
    }

    .bo-prev-row.is-hidden { grid-template-columns: 22px minmax(0, 1fr); opacity: 0.7; }

    .bo-prev-row .fd-rank { line-height: 1; font-size: 16px; }

    .bo-prev-text { display: flex; flex-direction: column; min-width: 0; }

    .bo-prev-text .fd-name { font-size: 14px; }

    .bo-prev-why { font-size: 12px; color: var(--muted); }

    .bo-msg { margin: 0 32px 24px; }

    /* CA2b: tiers */
    .bo-tab-add { opacity: 0.8; }

    .bo-tier-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }

    .setup-page .setup-card .bo-tier-name { flex: 1 1 220px; max-width: 320px; margin: 0; }

    .bo-tier-tools { display: flex; flex-wrap: wrap; gap: 6px; }

    .bo-small { height: 32px; padding: 0 12px; font-size: 13px; }

    .setup-card .bo-sub-h { margin: 18px 0 6px; font-size: 15px; }

    .bo-match { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 8px; }

    .setup-page .setup-card .bo-match select { width: auto; margin: 0; height: 34px; }

    .bo-rules { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

    .bo-rule { padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; }

    .bo-rule-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

    .bo-rule-head .bo-small { height: 28px; padding: 0 10px; font-size: 16px; }

    .bo-rule .bo-chips { margin: 8px 0 4px; }

    .setup-page .setup-card .bo-rule select,
    .setup-page .setup-card .bo-rule input[type="text"] { margin: 8px 0 0; }

    .setup-page .setup-card .bo-add-rule,
    .setup-page .setup-card .bo-copy { width: auto; max-width: 100%; margin: 0 0 8px; }

    .bo-check-table { width: 100%; border-collapse: collapse; font-size: 14px; }

    .bo-check-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 4px 6px; }

    .bo-check-table td { padding: 8px 6px; border-top: 1px solid var(--border); }

    .bo-check-table th:not(:first-child), .bo-check-table td:not(:first-child) { text-align: right; }

    .bo-check-table tr.is-on td { background: color-mix(in srgb, var(--accent) 6%, white); }

    /* The tier badge: Find a dealer, the calendar and the tray */
    .bo-tier-badge {
      display: inline-flex;
      align-items: center;
      height: 20px;
      padding: 0 8px;
      border-radius: 10px;
      background: #FFF1C7;
      color: #6B4500;
      font: 800 11px var(--font-body);
      letter-spacing: 0.02em;
      white-space: nowrap;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .bo-tier-badge[data-tier="2"] { background: #EDE7FF; color: #3A22B0; }
    .bo-tier-badge[data-tier="3"] { background: #DDF3EC; color: #0B5E49; }
    .bo-tier-badge[data-tier="4"] { background: #FFE4E0; color: #8E2A1C; }
    .bo-tier-badge.is-standard { background: var(--bg); color: var(--muted); }

    .fd-tier { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

    .fd-tier.is-standard { background: var(--bg); color: var(--text); }

    .cal-tier-badge { height: 16px; padding: 0 6px; font-size: 10px; align-self: flex-start; }

    .cal-tray-tier { margin-top: 4px; align-self: flex-start; font-weight: 700; }

    /* Admin › Dealer levels and the Staff page */
    .dl-step {
      flex: none;
      width: 24px;
      text-align: center;
      font-weight: 800;
      color: var(--muted);
    }

    .dl-row .setup-row-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

    .dl-row .pr-name { flex: 1 1 200px; max-width: 280px; margin: 0; }

    .dl-row .pr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }

    .dl-row .pr-colour { width: auto; margin: 0; }

    .dl-row.is-off .pr-name { color: var(--muted); }

    .setup-card .dl-row .dl-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }

    .dl-row .dl-check input { width: auto; margin: 0; }

    .dl-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0 12px; }

    .dl-empty p { margin: 0; }

    .staff-level {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 6px;
      font-size: 13px;
      color: var(--muted);
    }

    .staff-level select {
      width: auto;
      height: 32px;
      margin: 0;
      padding: 0 8px;
      border: 1.5px solid var(--border-strong);
      border-radius: var(--radius-sm);
      background: #fff;
      font: inherit;
    }

    .book-demo-find { margin: 6px 0 2px; font-size: 13px; }

    @media (max-width: 1100px) {
      .bo-layout { grid-template-columns: minmax(0, 1fr); margin: -36px 16px 20px; }
      .bo-side { position: static; }
      .bo-msg { margin: 0 16px 20px; }
    }

    @media (max-width: 640px) {
      .fd-card { grid-template-columns: 24px minmax(0, 1fr); }
      .fd-card > .person-avatar { display: none; }
      .fd-side { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 6px; }
      .fd-score-label { margin: 0 auto 0 0; }
      .fd-side .btn-primary, .fd-side button { align-self: center; }
      .find-dealer-body { padding: 4px 14px 12px; }
      .bo-slider { grid-template-columns: minmax(0, 1fr) 52px; }
      .bo-slider input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
    }

    /* DT1: Offer by text */
    .fd-offer { border: 1.5px solid var(--accent); border-radius: 14px; padding: 12px 14px; margin: 10px 0; display: grid; gap: 8px; background: var(--soft); }
    .fd-offer h3 { margin: 0; font-size: 15px; }
    .fd-offer-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
    .fd-offer .btn-primary { justify-self: start; }
