.admin-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.muted { color: #5c5c5c; font-size: 14px; }
.muted.small { font-size: 12.5px; }
.success { color: #0b6e4f; font-weight: 600; }

.admin-grid { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 720px) { .admin-grid { grid-template-columns: 1fr; } }

.venue-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.item-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  background: #fff;
}
.item-card-top { display: flex; align-items: center; gap: 10px; }
.item-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.item-label { flex: 1; font-size: 15px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.odds-badge { font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: #eef0ea; flex: none; }

.item-card-row { display: flex; flex-wrap: wrap; gap: 12px; }
label.mini { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 600; color: #333; flex: 1; min-width: 100px; }
label.mini input[type="number"], label.mini input[type="text"] { font-size: 14px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
label.check.mini { flex-direction: row; align-items: center; font-weight: 400; }
label.check.mini input { width: 16px; height: 16px; }

.item-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.item-card-actions button { padding: 8px 12px; font-size: 13px; }

.btn-secondary { background: #5c5c5c; }
.btn-danger { background: var(--error); }

.settings-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.settings-form textarea { font: inherit; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }

.inline-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stat-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.stat-num { font-size: 28px; font-weight: 800; }
.stat-label { font-size: 12.5px; color: #5c5c5c; }

.stat-table { width: 100%; border-collapse: collapse; }
.stat-table th, .stat-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 14px; }

.brand-fields { border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.brand-fields legend { font-weight: 700; padding: 0 6px; }
.journey-thumb { max-width: 240px; max-height: 120px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; }
.clear-image-form { margin-top: -6px; }
.clear-image-form button { font-size: 12.5px; padding: 6px 10px; }

/* ---- operator dashboard ---- */
.op-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-link {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 10px;
}
.btn-link-secondary { background: #5c5c5c; }
.notice { background: #fdf1d8; color: #6b4600; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin: 0; }

.status-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.status-filter a {
  text-decoration: none; color: var(--ink); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; background: #fff;
}
.status-filter a span { color: #5c5c5c; margin-left: 4px; }
.status-filter a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.status-filter a[aria-current="page"] span { color: #ddd; }

.op-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.op-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.op-table th { text-align: left; font-size: 12px; color: #5c5c5c; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.op-table td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.op-table tr:last-child td { border-bottom: 0; }
.op-table a { color: var(--ink); }

.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef0ea; color: #333; }
.tag-live, .tag-bill-active { background: #e3f3ea; color: #1d6b43; }
.tag-onboarding { background: #e6effc; color: #1e4f9a; }
.tag-lead { background: #efede6; color: #555; }
.tag-paused, .tag-bill-past_due { background: #fdf1d8; color: #7a4f00; }
.tag-archived { background: #eee; color: #777; }
.tag-bill-cancelled { background: #fbe7e5; color: #9b221b; }
.tag-bill-none { background: #efede6; color: #666; }

.mini-progress { width: 90px; height: 6px; background: #eeece5; border-radius: 3px; overflow: hidden; margin-bottom: 3px; }
.mini-progress span { display: block; height: 100%; background: var(--accent); }

.op-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.op-card h2 { font-size: 17px; margin: 0; }
.op-card h3 { font-size: 14px; margin: 8px 0 0; }
.op-card p { margin: 0; }
.op-danger { border-color: #e7b8b3; }

.op-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.op-stage-nav { display: flex; flex-direction: column; gap: 5px; position: sticky; top: 16px; }
.op-stage-nav button { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: transparent; font-size: 14px; font-weight: 600; }
.op-stage-nav button:hover, .op-stage-nav button:focus-visible { background: #f4f1e9; }
.op-stage-nav button[aria-current="step"] { background: #e7f4ee; color: #075a42; border-color: #bedfce; }
.op-stage-nav span { color: #5c6f66; }
.op-stage-content { min-width: 0; }
.op-stage-panel { display: flex; flex-direction: column; gap: 18px; }
.op-stage-panel[hidden] { display: none; }
@media (max-width: 820px) {
  .op-layout { grid-template-columns: 1fr; }
  .op-stage-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .op-stage-nav button { flex: 0 0 auto; width: auto; white-space: nowrap; }
}

.unmatched-row { border-top: 1px solid var(--border); padding-top: 10px; align-items: center; }
.unmatched-row > div { flex: 1; min-width: 180px; }

.flash { border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.flash p { margin: 0; }
.flash-ok { background: #e3f3ea; color: #174f33; }
.flash-warn { background: #fdf1d8; color: #6b4600; }
.flash-err { background: #fbe7e5; color: #8a1f19; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font: 13px ui-monospace, monospace; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.email-preview { white-space: pre-wrap; font: 13px/1.5 -apple-system, sans-serif; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin: 6px 0 0; color: #222; }

.checklist { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.checklist li { color: #5c5c5c; }
.checklist li.is-done { color: var(--ink); }
.tick { display: inline-block; width: 18px; font-weight: 700; color: var(--accent); }
.checklist li:not(.is-done) .tick { color: #aaa; }

.status-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.status-btn { background: #fff; color: var(--ink); border: 1px solid var(--border); padding: 7px 12px; font-size: 13px; }
.status-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.login-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.login-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.login-list button { padding: 6px 10px; font-size: 12.5px; }
.settings-form select, label.mini select { font-size: 14px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
button:disabled { cursor: not-allowed; }
.admin-wrap h1 { text-align: left; }

/* Per-venue operator workspace. The other admin pages retain their compact layout. */
.operator-venue-page { background: #fff; color: #172238; }
.operator-venue-page .admin-wrap { max-width: none; margin: 0 0 0 268px; padding: 20px clamp(20px, 2.65vw, 44px) 48px; gap: 22px; }
.operator-venue-page .op-back { margin: 0 0 10px; font-size: 17px; }
.operator-venue-page .op-back a, .operator-venue-page .op-quick-links a { color: #0647cf; text-decoration: underline; }
.operator-venue-page .admin-header { display: block; }
.operator-venue-page .op-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.operator-venue-page .op-title-row h1 { font-size: clamp(36px, 3.1vw, 48px); line-height: 1.1; letter-spacing: -.035em; }
.operator-venue-page .op-title-row .tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 17px; font-size: 16px; font-weight: 700; }
.operator-venue-page .op-title-row .tag::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
.operator-venue-page .op-quick-links { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 19px; color: #354762; font-size: 16px; line-height: 1.8; }
.operator-venue-page .op-layout { display: block; }
.operator-venue-page .op-stage-nav { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 268px; padding: 21px 9px; overflow-y: auto; background: #1b2a3d; color: #e7edf5; display: block; }
.operator-venue-page .op-brand { padding: 0 23px 33px; }
.operator-venue-page .op-brand-row { display: flex; gap: 17px; align-items: center; }
.operator-venue-page .op-brand-mark { width: 39px; height: 43px; flex: none; }
.operator-venue-page .op-brand strong { color: #fff; font-size: 21px; line-height: 1.05; letter-spacing: -.02em; }
.operator-venue-page .op-brand > span { display: block; margin-top: 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .19em; white-space: nowrap; }
.operator-venue-page .op-stage-nav nav { display: flex; flex-direction: column; gap: 3px; }
.operator-venue-page .op-stage-nav button { display: flex; justify-content: flex-start; align-items: center; gap: 19px; min-height: 58px; width: 100%; padding: 10px 21px; border: 0; border-radius: 0 12px 12px 0; color: #e7edf5; background: transparent; font-size: 16px; font-weight: 400; white-space: nowrap; }
.operator-venue-page .op-stage-nav button:hover, .operator-venue-page .op-stage-nav button:focus-visible { background: #2b4054; color: #fff; }
.operator-venue-page .op-stage-nav button[aria-current="step"] { background: #304357; color: #fff; font-weight: 700; position: relative; }
.operator-venue-page .op-stage-nav button[aria-current="step"]::before { content: ''; position: absolute; left: -9px; top: 0; bottom: 0; width: 9px; background: #16b489; }
.operator-venue-page .op-stage-nav button svg { width: 25px; height: 25px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.operator-venue-page .op-stage-nav button[aria-current="step"] svg { color: #42d7b2; }
.operator-venue-page .op-google-icon { width: 25px; flex: none; font-size: 26px; line-height: 1; font-weight: 750; }
.operator-venue-page .op-nav-label { color: inherit; overflow: hidden; text-overflow: ellipsis; }
.operator-venue-page .op-nav-count { margin-left: auto; color: inherit; font-size: 14px; font-weight: 400; }
.operator-venue-page .op-stage-content { width: 100%; }
.operator-venue-page .op-stage-panel { gap: 18px; }
.operator-venue-page .op-card { border-color: #d6dfeb; border-radius: 13px; padding: 27px 29px; }
.operator-venue-page .op-checklist-card { gap: 15px; }
.operator-venue-page .op-checklist-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: #64718a; font-size: 16px; }
.operator-venue-page .op-checklist-heading h2 { color: #172238; font-size: 29px; line-height: 1.15; letter-spacing: -.025em; }
.operator-venue-page .op-checklist-heading h2 span { color: #64718a; font-size: 17px; font-weight: 500; letter-spacing: 0; margin-left: 10px; }
.operator-venue-page .op-progress { height: 14px; border-radius: 999px; background: #e3e8f0; overflow: hidden; }
.operator-venue-page .op-progress span { display: block; height: 100%; border-radius: inherit; background: #0c8c65; }
.operator-venue-page .op-checklist-card form { gap: 15px; }
.operator-venue-page .checklist { margin: 0; gap: 5px; font-size: 16px; }
.operator-venue-page .checklist li { min-height: 40px; display: flex; align-items: center; gap: 25px; padding: 5px 15px; color: #172238; border: 1px solid #dce3ed; border-radius: 9px; background: #fff; }
.operator-venue-page .checklist li.is-done { background: #edfdf8; border-color: #bcebdd; }
.operator-venue-page .checklist .tick, .operator-venue-page .op-checklist-control input { flex: none; width: 27px; height: 27px; border: 2px solid #8c9bb2; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 21px; line-height: 1; font-weight: 500; }
.operator-venue-page .checklist li.is-done .tick { border-color: #0d7455; background: #0d7455; color: #fff; }
.operator-venue-page .op-checklist-control { width: 100%; display: flex; flex-direction: row; align-items: center; gap: 25px; font-size: 16px; font-weight: 400; cursor: pointer; }
.operator-venue-page .op-checklist-control input { appearance: none; margin: 0; cursor: pointer; }
.operator-venue-page .op-checklist-control input:checked { border-color: #0d7455; background: #0d7455; }
.operator-venue-page .op-checklist-control input:checked::after { content: '✓'; }
.operator-venue-page .op-checklist-control input:focus-visible { outline: 3px solid #64baff; outline-offset: 2px; }
.operator-venue-page .op-checklist-save { width: 100%; min-height: 56px; border-radius: 10px; background: #0c7052; font-size: 18px; }
.operator-venue-page .op-checklist-save:hover { background: #095b42; }
.operator-venue-page .flash-ok { position: relative; padding: 20px 22px 20px 82px; min-height: 67px; justify-content: center; border: 1px solid #b7e8d9; background: #e9fbf6; color: #0c5943; font-size: 16px; font-weight: 650; }
.operator-venue-page .flash-ok::before { content: '✓'; position: absolute; left: 22px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #0d7455; color: #fff; font-size: 25px; font-weight: 400; }
@media (max-width: 820px) {
  .operator-venue-page .admin-wrap { margin-left: 0; padding: 18px 16px 36px; }
  .operator-venue-page .op-stage-nav { position: static; width: auto; margin: 0 -16px; padding: 12px 16px; overflow: visible; border-radius: 0; }
  .operator-venue-page .op-brand { padding: 0 0 10px; }
  .operator-venue-page .op-brand-row { gap: 9px; }
  .operator-venue-page .op-brand-mark { width: 29px; height: 33px; }
  .operator-venue-page .op-brand strong { font-size: 15px; }
  .operator-venue-page .op-brand > span { display: none; }
  .operator-venue-page .op-stage-nav nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 3px; }
  .operator-venue-page .op-stage-nav button { flex: 0 0 auto; width: auto; min-height: 42px; padding: 8px 10px; gap: 7px; border-radius: 8px; font-size: 13px; }
  .operator-venue-page .op-stage-nav button svg, .operator-venue-page .op-google-icon { width: 18px; height: 18px; font-size: 18px; }
  .operator-venue-page .op-stage-nav button[aria-current="step"]::before { display: none; }
  .operator-venue-page .op-nav-count { margin-left: 2px; font-size: 12px; }
  .operator-venue-page .op-card { padding: 18px; }
}
@media (max-width: 480px) {
  .operator-venue-page .op-title-row h1 { font-size: 36px; }
  .operator-venue-page .op-quick-links { font-size: 14px; gap: 0 10px; }
  .operator-venue-page .op-checklist-heading h2 { font-size: 24px; }
  .operator-venue-page .op-checklist-heading h2 span, .operator-venue-page .op-checklist-heading > span { font-size: 13px; }
  .operator-venue-page .checklist { font-size: 14px; }
  .operator-venue-page .checklist li, .operator-venue-page .op-checklist-control { gap: 12px; }
  .operator-venue-page .op-checklist-control { font-size: 14px; }
}
