:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-muted: #eef2f7;
  --text: #1f2937;
  --muted: #697386;
  --line: #dbe3ee;
  --line-strong: #c7d2e2;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #edf4ff;
  --success: #047857;
  --success-soft: #e9f8f1;
  --warning: #b45309;
  --warning-soft: #fff4df;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --ink: #111827;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, .05);
  --radius: 7px;
  --control-height: 42px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body.admin-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a { color: inherit; }

code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  color: #344054;
  font-size: .9em;
}

.admin-shell {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.admin-sidebar {
  min-width: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
}

.admin-brand {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  padding: 0 8px;
}

.admin-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.admin-nav {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  padding: 0 2px 104px 0;
}

.admin-nav-group {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-nav-heading {
  margin: 0 10px 1px;
  color: #8a98aa;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.admin-nav-items {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-nav a {
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 6px;
  color: #526174;
  font-weight: 680;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.admin-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: transparent;
  opacity: 0;
}

.admin-nav a.is-active::before {
  background: var(--accent);
  opacity: 1;
}

.admin-nav-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  background: #f8fafc;
  color: #667085;
  line-height: 1;
}

.admin-nav-svg {
  width: 16px;
  height: 16px;
  display: block;
}

.admin-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nav a.is-active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: #d9e7ff;
}

.admin-nav a.is-active::before {
  background: var(--accent);
}

.admin-nav a:hover {
  color: var(--ink);
  background: #f7f9fc;
  border-color: var(--line);
}

.admin-workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  min-width: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.topbar-title strong {
  color: var(--ink);
  font-size: 16px;
}

.topbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.logout-form,
.partner-switch-form {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.logout-form span {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-switch-form label {
  display: grid;
  grid-template-columns: auto minmax(150px, 220px);
  align-items: center;
  gap: 8px;
  margin: 0;
}

.partner-switch-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.partner-switch-form select {
  min-height: 34px;
  padding: 0 32px 0 10px;
}

.logout-form button,
.partner-switch-form button,
.secondary-button,
.primary-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 13px;
  font: inherit;
  font-weight: 720;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.logout-form button,
.partner-switch-form button,
.secondary-button {
  background: var(--surface);
  color: var(--text);
  border-color: #cfd8e6;
}

.logout-form button:hover,
.partner-switch-form button:hover,
.secondary-button:hover {
  border-color: #aebdce;
  box-shadow: var(--shadow-soft);
}

.primary-button {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(37, 99, 235, .16);
}

.primary-button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.primary-button:disabled,
.secondary-button:disabled,
button:disabled {
  opacity: .56;
  cursor: not-allowed;
  box-shadow: none;
}

.admin-main {
  min-width: 0;
  width: min(1280px, calc(100% - 44px));
  margin: 22px auto 48px;
}

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #d8a441;
  border-left: 5px solid #b45309;
  border-radius: 7px;
  background: #fff8eb;
  color: #6f430d;
}

.impersonation-banner strong,
.impersonation-banner span {
  display: block;
}

.impersonation-banner strong {
  color: #5f3707;
}

.impersonation-banner span {
  margin-top: 2px;
  font-size: 13px;
}

.impersonation-banner form {
  margin: 0;
  flex: 0 0 auto;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
}

.page-heading h1,
.panel h1,
.panel h2,
.panel h3 {
  margin: 0;
  letter-spacing: 0;
  color: var(--ink);
}

.page-heading h1 {
  font-size: 28px;
  line-height: 1.12;
}

.page-heading p,
.panel-note,
.checker-summary p,
.error-note,
.muted-note,
small {
  color: var(--muted);
}

.page-heading p {
  margin: 5px 0 0;
  max-width: 760px;
}

.panel,
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.panel {
  min-width: 0;
  padding: 16px;
  margin-bottom: 14px;
}

.partner-quick-actions-panel {
  padding: 14px 15px;
  border-color: rgba(216, 164, 65, .34);
  background: linear-gradient(135deg, #0c1a30, #142945 64%, #3d301b);
  box-shadow: 0 10px 26px rgba(7, 19, 38, .14);
}

.partner-quick-actions-heading {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding-bottom: 9px;
}

.partner-quick-actions-heading h2 {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
}

.partner-quick-actions-heading .muted-note {
  color: rgba(255, 255, 255, .68);
}

.partner-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.partner-action-card {
  position: relative;
  min-width: 0;
  min-height: 78px;
  display: flex;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-left: 3px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.partner-action-card:hover,
.partner-action-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(216, 164, 65, .62);
  background: rgba(255, 255, 255, .13);
  box-shadow: 0 8px 18px rgba(7, 19, 38, .16);
  outline: none;
}

.partner-action-card.is-primary {
  border-color: #c68a24;
  border-left-color: #c68a24;
  background: linear-gradient(180deg, #d8a441, #b8791d);
  color: #ffffff;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px rgba(156, 100, 21, .16);
}

.partner-action-card.is-primary:hover,
.partner-action-card.is-primary:focus-visible {
  background: linear-gradient(180deg, #e2af4b, #8f5b12);
}

.partner-action-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .22);
  color: #ffffff;
  font-size: 24px;
  font-weight: 760;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.partner-action-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.partner-action-copy strong,
.partner-action-copy small {
  display: block;
}

.partner-action-copy strong {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
}

.partner-action-copy small {
  color: rgba(255, 255, 255, .72);
  font-size: 11.5px;
  line-height: 1.35;
}

.partner-action-card.is-primary .partner-action-copy strong {
  font-size: 15.5px;
}

.partner-action-card.is-primary .partner-action-copy strong,
.partner-action-card.is-primary .partner-action-copy small {
  color: #ffffff;
}

.partner-quick-actions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 10px;
  align-items: start;
}

.partner-quick-actions-layout .partner-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-profile-completeness {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

.partner-profile-completeness-head,
.partner-profile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.partner-profile-completeness-head strong,
.partner-profile-card-head strong,
.partner-profile-card-percent {
  color: #ffffff;
}

.partner-profile-completeness-head strong,
.partner-profile-card-head strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.partner-profile-name-line {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.partner-profile-name-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.partner-profile-tier-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.partner-profile-tier-label.is-advanced {
  border-color: rgba(216, 164, 65, .44);
  background: rgba(216, 164, 65, .16);
  color: #fef3c7;
}

.partner-profile-completeness-head small,
.partner-profile-card-head small,
.partner-profile-empty {
  color: rgba(255, 255, 255, .68);
}

.partner-profile-completeness-score,
.partner-profile-card-percent {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 800;
}

.partner-profile-completeness-score.is-complete,
.partner-profile-completeness-card.is-complete .partner-profile-card-percent {
  border-color: rgba(134, 239, 172, .46);
  background: rgba(22, 163, 74, .18);
  color: #dcfce7;
}

.partner-profile-completeness-score.is-partial,
.partner-profile-completeness-card.is-partial .partner-profile-card-percent {
  border-color: rgba(251, 191, 36, .48);
  background: rgba(217, 119, 6, .18);
  color: #fef3c7;
}

.partner-profile-completeness-score.is-low,
.partner-profile-completeness-card.is-low .partner-profile-card-percent {
  border-color: rgba(252, 165, 165, .5);
  background: rgba(220, 38, 38, .16);
  color: #fee2e2;
}

.partner-profile-completeness-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding-right: 2px;
}

.partner-profile-completeness-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  background: rgba(12, 26, 48, .28);
}

.partner-profile-card-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.partner-profile-expand-button {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  visibility: visible;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 164, 65, .42);
  border-radius: 999px;
  background: rgba(216, 164, 65, .16);
  color: #ffffff;
  cursor: pointer;
  opacity: 1;
  transform: none;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.partner-profile-expand-button span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .16s ease;
}

.partner-profile-expand-button:hover,
.partner-profile-expand-button:focus-visible {
  border-color: rgba(216, 164, 65, .72);
  background: rgba(216, 164, 65, .24);
  box-shadow: 0 0 0 3px rgba(216, 164, 65, .12);
  outline: none;
}

.partner-profile-expand-button[aria-expanded="true"] span {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.partner-profile-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.partner-profile-progress span {
  display: block;
  width: var(--profile-completeness, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d8a441, #34d399);
}

.partner-profile-details {
  display: grid;
  gap: 8px;
}

.partner-profile-details[hidden] {
  display: none;
}

.partner-profile-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.partner-profile-checklist span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.partner-profile-checklist span.is-done {
  border-color: rgba(134, 239, 172, .42);
  background: rgba(22, 163, 74, .18);
  color: #dcfce7;
}

.partner-profile-completeness-card a {
  justify-self: start;
  color: #f8d78a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.partner-profile-completeness-card a:hover,
.partner-profile-completeness-card a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  outline: none;
}

.partner-profile-empty {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
}

.content-stack {
  display: grid;
  gap: 14px;
}

.content-workbench-heading {
  align-items: center;
}

.content-workbench-heading .primary-button {
  flex: 0 0 auto;
}

.content-title-cell {
  min-width: 220px;
}

.content-title-cell strong,
.content-title-cell small,
.content-meta-line,
.content-table-title {
  display: block;
}

.content-title-cell small,
.content-meta-line {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.content-table-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 720;
}

.content-feed-chips {
  min-width: 180px;
}

.content-feed-chips .chip {
  margin: 0 5px 5px 0;
}

.content-form {
  gap: 14px;
}

.content-form-sections {
  display: grid;
  gap: 12px;
}

.content-form-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.content-section-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.content-section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.content-check-row {
  align-self: end;
  margin-top: 18px;
}

.content-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 2px -18px -18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.form-actions,
.table-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.form-actions {
  margin-top: 12px;
}

.table-actions form {
  margin: 0;
}

.system-alert-form textarea {
  min-height: 118px;
}

.system-alert-active-row {
  align-self: end;
}

.readonly-field {
  min-height: var(--control-height);
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.readonly-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.readonly-field strong {
  color: var(--ink);
}

.advanced-profile-only-field {
  transition: opacity .16s ease, background-color .16s ease;
}

.advanced-profile-only-field.is-disabled {
  opacity: .68;
}

.advanced-profile-only-field.is-disabled textarea {
  cursor: not-allowed;
  background: var(--surface-muted);
  color: var(--muted);
}

.venue-gallery-field {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.venue-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.venue-gallery-heading span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.venue-gallery-heading small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.venue-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 140px));
  gap: 8px;
  justify-content: start;
}

.venue-gallery-item {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.venue-gallery-item img {
  width: 100%;
  max-width: 126px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px;
  background: var(--surface-muted);
}

.venue-gallery-item span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
}

.venue-gallery-item em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 680;
}

.venue-gallery-item em input[type="checkbox"] {
  width: 14px;
  min-width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  flex: 0 0 14px;
}

.admin-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 2px 0 20px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

.admin-tabs a {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1px;
  border: 0;
  background: transparent;
  color: #526174;
  font-weight: 720;
  text-decoration: none;
  transition: color .16s ease;
}

.admin-tabs a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  transition: background .16s ease;
}

.admin-tabs a:hover {
  color: var(--ink);
}

.admin-tabs a:hover::after {
  background: #b9c7da;
}

.admin-tabs a.is-active {
  color: var(--accent-dark);
}

.admin-tabs a.is-active::after {
  background: var(--accent);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-heading h2 {
  font-size: 18px;
}

.panel-heading h3,
.subpanel h3 {
  font-size: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.partner-overview-metrics {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.partner-overview-metrics .metric strong {
  font-size: 22px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.metric {
  position: relative;
  min-height: 84px;
  padding: 14px 14px 13px;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 660;
}

.metric strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.stats-grid .metric strong { font-size: 26px; }
.compact-metrics .metric strong { font-size: 24px; }

.section-heading {
  margin: 2px 0 10px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: 0;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.trend-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.trend-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.stats-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.lead-filter-form {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.lead-filter-form .filter-actions {
  grid-column: 1 / -1;
  align-self: end;
  justify-content: flex-start;
}

.lead-filter-form label:first-child {
  grid-column: span 2;
}

.lead-results-table td {
  vertical-align: top;
}

.lead-results-table td small,
.lead-shop-cell small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.lead-detail-toggle {
  min-width: 82px;
}

.lead-summary-row.is-expanded td {
  border-bottom-color: transparent;
}

.lead-detail-row td {
  padding: 0 12px 14px;
  background: #f8fbff;
}

.lead-detail-panel {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(280px, .85fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.lead-detail-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.lead-detail-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.lead-detail-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.lead-detail-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.lead-breakdown-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.lead-breakdown-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(76px, .55fr) minmax(110px, .8fr) minmax(120px, .9fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
}

.lead-breakdown-row:last-child {
  border-bottom: 0;
}

.lead-breakdown-row.is-head {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.lead-breakdown-row strong {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.lead-breakdown-row em {
  color: var(--muted);
  font-style: normal;
}

.lead-top-card-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.lead-top-card-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(86px, auto) minmax(54px, auto);
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
}

.lead-top-card-row:last-child {
  border-bottom: 0;
}

.lead-top-card-row.is-head {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.lead-top-card-row small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.lead-top-card-row strong {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.lead-top-card-row span {
  white-space: nowrap;
}

.lead-empty-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .lead-detail-panel {
    grid-template-columns: 1fr;
  }

  .lead-breakdown-row {
    grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(90px, auto));
  }
}

@media (max-width: 620px) {
  .lead-detail-panel {
    padding: 10px;
  }

  .lead-breakdown-row {
    grid-template-columns: 1fr 1fr;
  }

  .lead-top-card-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .lead-breakdown-row.is-head,
  .lead-top-card-row.is-head {
    display: none;
  }

  .lead-top-card-row span {
    white-space: normal;
  }
}

.trend-heading h2 {
  font-size: 16px;
}

.line-chart-wrap {
  min-width: 0;
  width: 100%;
}

.line-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.line-chart-gridline {
  stroke: var(--line);
  stroke-width: 1;
}

.line-chart-axis,
.line-chart-date {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.line-chart-date-end {
  text-anchor: end;
}

.line-chart-series {
  fill: none;
  stroke: var(--series-color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chart-point {
  fill: var(--series-color);
  stroke: #ffffff;
  stroke-width: 1.4;
  cursor: pointer;
  outline: none;
}

.line-chart-point:hover,
.line-chart-point:focus {
  stroke-width: 2.2;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trend-legend-item {
  min-height: 32px;
  display: inline-grid;
  grid-template-columns: 10px auto;
  column-gap: 8px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.trend-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--series-color);
}

.trend-legend-item strong,
.trend-legend-item small {
  grid-column: 2;
  line-height: 1.15;
}

.trend-legend-item small {
  color: var(--muted);
}

.chart-tooltip {
  position: fixed;
  z-index: 1200;
  max-width: min(260px, calc(100vw - 24px));
  padding: 7px 9px;
  border: 1px solid rgba(16, 24, 40, .16);
  border-radius: 7px;
  background: rgba(16, 24, 40, .94);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .2);
  pointer-events: none;
  white-space: nowrap;
}

.chart-tooltip[hidden] {
  display: none;
}

.chart-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.chart-card h2 {
  font-size: 16px;
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(128px, .8fr) minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.bar-label {
  min-width: 0;
}

.bar-label strong,
.bar-label small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.bar-track span {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--series-color, linear-gradient(90deg, var(--accent), #16a394));
}

.bar-value {
  min-width: 76px;
  text-align: right;
  color: var(--ink);
}

.table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fafcff;
}

th {
  color: #5f6f86;
  background: #f9fbfd;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .025em;
}

td a {
  color: #1f4fbf;
  text-underline-offset: 3px;
}

.status {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
  background: var(--surface-muted);
  color: #344054;
  white-space: nowrap;
}

.status-active,
.status-approved,
.status-open,
.status-success {
  background: var(--success-soft);
  color: var(--success);
}

.status-draft,
.status-info {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.status-hidden,
.status-archived,
.status-inactive {
  background: #edf1f6;
  color: #526174;
}

.status-full,
.status-changed,
.status-pending,
.status-pending_review,
.status-email_unverified,
.status-warning,
.status-paused {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-suspended,
.status-rejected,
.status-blocked,
.status-error,
.status-danger,
.status-cancelled {
  background: var(--danger-soft);
  color: var(--danger);
}

.flash {
  padding: 11px 13px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 680;
  box-shadow: var(--shadow-soft);
}

.flash-success {
  border-color: #a7e6c8;
  background: var(--success-soft);
  color: var(--success);
}

.flash-error {
  border-color: #f4b8b2;
  background: var(--danger-soft);
  color: var(--danger);
}

.system-alert {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.system-alert strong {
  color: var(--ink);
}

.system-alert div {
  color: var(--text);
  line-height: 1.45;
}

.system-alert-info {
  border-color: #b8cdfc;
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.system-alert-success {
  border-color: #a7e6c8;
  border-left-color: var(--success);
  background: var(--success-soft);
}

.system-alert-warning {
  border-color: #f4ce8a;
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.system-alert-danger {
  border-color: #f4b8b2;
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.migration-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.migration-status-grid > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.migration-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.migration-status-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.migration-list-wrap {
  margin-top: 18px;
}

.migration-list-wrap h3 {
  margin: 0 0 8px;
}

.migration-list {
  margin: 0;
  padding-left: 19px;
  color: var(--text);
}

.migration-form {
  max-width: 720px;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 650;
}

.checkline input {
  width: auto;
  margin-top: 3px;
}

.migration-setup-panel {
  width: min(720px, 100%);
}

.migration-section {
  margin-top: 18px;
}

.migration-login-link {
  margin: 18px 0 0;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 24px;
}

.auth-panel {
  width: min(440px, 100%);
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 740;
}

.auth-panel h1 {
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: 0;
  font-size: 24px;
}

.auth-links {
  margin: 14px 0 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.auth-links a {
  color: var(--accent);
  font-weight: 720;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-external-link {
  margin: 0;
  font-size: 13px;
  font-weight: 760;
}

.auth-external-link a {
  color: var(--accent);
  text-decoration: none;
}

.auth-external-link a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.stack-form,
.checker-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-weight: 650;
}

label span {
  color: #42526b;
  font-size: 13px;
}

input,
select,
textarea,
fieldset {
  width: 100%;
  min-height: var(--control-height);
  border: 1px solid #cbd6e3;
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
}

select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 5.25 7 8.75l3.5-3.5' fill='none' stroke='%23667085' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 14px 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37, 99, 235, .12);
  border-color: #7da4f8;
}

textarea {
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 12px;
}

legend {
  padding: 0 6px;
  color: #42526b;
  font-size: 13px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.4;
}

.venue-capacity-field {
  align-self: start;
}

.input-with-suffix {
  position: relative;
  display: block;
}

.input-with-suffix input {
  padding-right: 48px;
}

.input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  pointer-events: none;
}

.wide {
  grid-column: 1 / -1;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: var(--control-height);
}

.check-row.is-hidden-by-location {
  display: none;
}

.check-row input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--accent);
  box-shadow: none;
}

.checker-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: var(--control-height);
}

.checker-target-option {
  align-items: stretch;
  width: min(100%, 360px);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.checker-target-option .publication-target-header {
  width: 100%;
}

.checker-site-link {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: #42526b;
  font-size: 13px;
  font-weight: 700;
}

.publication-target-picker {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.publication-target-picker .inline-actions {
  gap: 12px;
  margin: 0 0 8px;
}

.publication-target-picker .muted-note {
  display: block;
  width: 100%;
  margin: 2px 0 0;
  line-height: 1.45;
}

.publication-target-list {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.publication-target-row {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.publication-target-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.checker-target-check {
  min-width: 0;
  width: auto;
}

.checker-target-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.checker-target-logo {
  position: relative;
  width: 100px;
  height: 25px;
  flex: 0 0 100px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #42526b;
  font-size: 11px;
  font-weight: 850;
}

.checker-target-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  padding: 0;
  background: transparent;
}

.checker-target-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checker-target-site {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #1d6ac9;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.checker-target-site:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.publication-target-row[hidden],
.publication-target-row.is-hidden-by-location {
  display: none;
}

.publication-target-settings {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.publication-target-settings[hidden] {
  display: none;
}

.checker-list,
.partner-list,
.shop-list,
.event-list {
  display: grid;
  gap: 12px;
}

.partner-admin-metrics {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.shop-admin-metrics {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.venue-admin-metrics {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.shop-heading-actions {
  justify-content: flex-end;
}

.venue-heading-actions {
  justify-content: flex-end;
}

.event-heading-actions {
  justify-content: flex-end;
}

.partner-filter-panel {
  margin-bottom: 14px;
}

.partner-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 14px;
}

.filter-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 730;
  text-decoration: none;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: #b9c7d8;
  background: var(--surface-soft);
}

.filter-chip.is-active {
  border-color: #b9cdf8;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.filter-chip.is-warning {
  border-color: #f2d59b;
  background: #fff8eb;
  color: #8a520f;
}

.partner-results-panel {
  padding: 0;
  overflow: hidden;
}

.partner-table-wrap {
  border: 0;
  border-radius: 0;
}

.partner-admin-table {
  min-width: 1060px;
}

.partner-admin-table th {
  white-space: nowrap;
}

.partner-main-row td {
  vertical-align: middle;
}

.partner-detail-row td {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.partner-detail-row[hidden] {
  display: none;
}

.partner-name-cell strong,
.partner-name-cell small,
.partner-contact-cell a,
.partner-contact-cell small,
.partner-updated-cell span,
.partner-updated-cell small {
  display: block;
}

.partner-name-cell strong {
  color: var(--ink);
  font-size: 14px;
}

.partner-name-cell small,
.partner-contact-cell small,
.partner-updated-cell small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.partner-count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, 1fr));
  gap: 6px;
  min-width: 260px;
}

.partner-count-grid span {
  min-height: 44px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.partner-count-grid strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}

.partner-count-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.partner-count-grid .is-empty {
  border-color: #f2d59b;
  background: #fff8eb;
}

.partner-actions-cell {
  white-space: nowrap;
}

.partner-toggle-button {
  min-width: 76px;
}

.partner-toggle-button[aria-expanded="true"] {
  color: #8a520f;
  border-color: #d8a441;
  background: #fff8eb;
}

.partner-detail-panel {
  min-width: 0;
  border-left: 4px solid #d8a441;
}

.partner-detail-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff8eb;
}

.partner-detail-title strong {
  color: var(--ink);
  font-size: 14px;
}

.partner-detail-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.partner-detail-panel > summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.partner-detail-panel > summary::-webkit-details-marker,
.partner-nested-details > summary::-webkit-details-marker {
  display: none;
}

.partner-detail-panel > summary::after,
.partner-nested-details > summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 800;
}

.partner-detail-panel[open] > summary::after,
.partner-nested-details[open] > summary::after {
  content: "-";
}

.partner-detail-panel > summary span {
  color: var(--ink);
  font-weight: 760;
}

.partner-detail-panel > summary small {
  color: var(--muted);
  font-size: 12px;
}

.partner-detail-content {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  padding: 14px;
}

.partner-detail-section {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.partner-detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.partner-detail-section-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.partner-detail-section-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.partner-nested-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.partner-nested-details > summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

.partner-nested-details > form {
  margin-top: 10px;
}

.partner-readonly-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.partner-readonly-list div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.partner-readonly-list dt,
.partner-readonly-list dd {
  margin: 0;
}

.partner-readonly-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.partner-readonly-list dd {
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.partner-admin-note {
  margin: 0;
  padding: 9px 10px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.partner-sections {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
  margin-top: 14px;
}

.subpanel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: var(--surface-soft);
}

.subpanel h3 {
  margin: 0 0 10px;
}

.user-chip-list {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.user-chip {
  display: grid;
  grid-template-columns: 1fr 32px;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.user-chip strong,
.user-chip small {
  display: block;
}

.icon-danger-button {
  width: 30px;
  min-height: 30px;
  border: 1px solid #f4b8b2;
  border-radius: 6px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.assign-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.assign-user-form button {
  align-self: end;
}

.inline-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-actions.application-checker-options {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  gap: 10px;
}

.inline-actions.application-checker-options .checker-target-option {
  flex: 1 1 280px;
  width: auto;
  max-width: 100%;
}

.inline-actions.venue-type-options {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  gap: 10px;
}

.venue-type-fieldset {
  gap: 8px;
}

.venue-type-option {
  flex: 1 1 280px;
  width: auto;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.venue-type-option span {
  min-width: 0;
  line-height: 1.35;
}

.compact-label {
  grid-template-columns: auto 150px;
  align-items: center;
  gap: 8px;
}

.compact-label select,
.compact-label input {
  min-height: var(--control-height);
}

.filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(5, minmax(140px, 1fr));
  gap: 10px;
  align-items: end;
}

.shop-filter-form {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.shop-filter-form label:first-child {
  grid-column: span 2;
}

.shop-filter-form .filter-actions {
  grid-column: 1 / -1;
  align-self: end;
  justify-content: flex-start;
}

.partner-filter-form {
  grid-template-columns: minmax(240px, 1fr) minmax(130px, .36fr) minmax(145px, .45fr) minmax(90px, .28fr) auto;
}

.venue-list-summary-panel {
  padding: 16px 18px;
}

.venue-list-summary-panel .venue-list-summary {
  padding: 0;
  border-bottom: 0;
}

.venue-filter-panel {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #9bb8dd;
  border-left: 5px solid var(--accent);
  border-radius: 7px;
  background: #edf5ff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.venue-filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) minmax(145px, .6fr) minmax(190px, 1fr) minmax(190px, 1fr) minmax(170px, .8fr);
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.venue-filter-form label {
  min-width: 0;
  gap: 4px;
}

.venue-filter-form label span {
  color: #344054;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.venue-filter-form input,
.venue-filter-form select {
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 13px;
}

.venue-filter-actions {
  align-self: end;
  flex-wrap: wrap;
  gap: 6px;
}

.venue-filter-actions .primary-button,
.venue-filter-actions .secondary-button {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.venue-application-filter-panel {
  display: grid;
  gap: 14px;
}

.venue-application-filter-form {
  grid-template-columns: minmax(240px, 1fr) minmax(180px, .42fr) auto;
}

.user-filter-form {
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, .45fr)) auto;
}

.compact-list {
  display: grid;
  gap: 6px;
}

.compact-list strong,
.compact-list small {
  display: block;
}

.user-actions-cell {
  min-width: 260px;
}

.compact-details {
  margin-bottom: 8px;
}

.compact-details summary {
  width: fit-content;
}

.compact-form {
  margin: 6px 0 0;
  justify-content: flex-start;
}

.user-account-form {
  min-width: min(560px, 72vw);
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.link-button:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.application-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.application-counts span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.application-counts strong {
  color: var(--ink);
}

.venue-application-panel {
  padding: 0;
  overflow: hidden;
}

.venue-application-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.venue-application-row:last-child {
  border-bottom: 0;
}

.venue-application-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.venue-application-main h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.venue-application-state {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.venue-application-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.venue-application-details > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.venue-application-details strong,
.venue-application-details p,
.venue-application-details a,
.venue-application-details small {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.venue-application-note {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
  color: var(--text);
}

.venue-application-warnings {
  margin: 0;
  padding: 10px;
  border: 1px solid #f3c779;
  border-left: 3px solid var(--warning);
  border-radius: 6px;
  background: var(--warning-soft);
  color: #7a3d00;
}

.venue-application-warnings strong {
  display: block;
  margin-bottom: 6px;
  color: var(--warning);
}

.venue-application-warnings ul {
  margin: 0;
  padding-left: 18px;
}

.venue-application-warnings li + li {
  margin-top: 3px;
}

.venue-application-actions {
  margin: 0;
}

.venue-application-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.spam-payload-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.spam-payload-table th,
.spam-payload-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.spam-payload-table th {
  width: 210px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.spam-payload-table pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  color: var(--text);
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.panel-note {
  margin: 6px 0 0;
}

.empty-state {
  padding: 24px 18px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.empty-state .empty-state-actions {
  margin-top: 14px;
}

.stats-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hub-destination-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hub-destination {
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.hub-destination strong {
  color: var(--ink);
}

.hub-destination span {
  color: var(--muted);
  font-size: 13px;
}

.hub-destination:hover {
  border-color: #aebdce;
  box-shadow: var(--shadow-soft);
}

.feed-sync-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feed-sync-card {
  display: grid;
  gap: 6px;
}

.feed-sync-card strong,
.feed-sync-card small {
  min-width: 0;
}

.feed-sync-card small {
  color: var(--muted);
}

.content-audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.content-audience-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(36, 120, 216, .18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(237,245,255,.72));
  box-shadow: 0 8px 18px rgba(16, 24, 40, .06);
}

.content-audience-card-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.content-audience-logo {
  width: 116px;
  height: 34px;
  flex: 0 0 116px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6px 8px;
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: 8px;
  background: #fff;
  color: var(--checker-color, var(--accent));
  font-size: 17px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.content-audience-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.content-audience-card h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-audience-metrics {
  display: grid;
  gap: 11px;
  margin: 0;
}

.content-audience-metrics div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: baseline;
}

.content-audience-metrics dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.content-audience-metrics dd {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.content-audience-bar {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 120, 216, .11);
}

.content-audience-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--checker-color, var(--accent));
}

.content-audience-bar.is-search {
  background: rgba(216, 164, 65, .15);
}

.content-audience-bar.is-search i {
  background: linear-gradient(90deg, var(--checker-color, var(--accent)), #d8a441);
}

.top-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.top-lists h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.top-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.top-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.top-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checker-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.checker-summary h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.checker-summary p,
.error-note {
  margin: 0;
}

.summary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.checker-color-chip {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.checker-color-chip i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--checker-color);
}

.checker-color-field input[type="color"] {
  width: 72px;
  min-height: var(--control-height);
  padding: 4px;
  cursor: pointer;
}

.token-hint {
  color: var(--muted);
  font-size: 13px;
}

.shop-meta,
.event-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.event-list-summary-panel {
  padding: 16px 18px;
}

.event-filter-panel {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #9bb8dd;
  border-left: 5px solid var(--accent);
  border-radius: 7px;
  background: #edf5ff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.event-filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) minmax(130px, .58fr) minmax(145px, .64fr) minmax(170px, .78fr) minmax(210px, 1fr);
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.event-filter-form label {
  min-width: 0;
  gap: 4px;
}

.event-filter-form label span {
  color: #344054;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.event-filter-form input,
.event-filter-form select {
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 13px;
}

.event-filter-actions {
  grid-column: 1 / -1;
  align-self: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.event-filter-actions .primary-button,
.event-filter-actions .secondary-button {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.event-create-form-grid {
  gap: 14px;
}

.event-form-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7e1ee;
  border-radius: 7px;
  background: #f8fbff;
}

.event-form-section-heading {
  display: grid;
  gap: 3px;
}

.event-form-section-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0;
}

.event-form-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.event-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.event-time-help {
  margin: -2px 0 0;
}

.event-recurrence-fields {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: start;
}

.event-recurrence-fields.is-disabled {
  opacity: .72;
}

.event-recurrence-note {
  color: #765211;
  font-weight: 700;
}

.event-list-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.event-list-summary h2 {
  margin: 0 0 4px;
}

.event-list-summary-side {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.event-create-cta {
  min-height: 42px;
  padding: 0 16px;
  gap: 9px;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.event-create-cta span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.event-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.event-summary-metrics span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.event-summary-metrics strong {
  color: var(--ink);
  font-size: 14px;
}

.event-summary-metrics .is-danger {
  border-color: #fecaca;
  background: var(--danger-soft);
  color: var(--danger);
}

.event-summary-metrics .is-danger strong {
  color: var(--danger);
}

.event-results-panel {
  padding: 0;
  overflow: hidden;
}

.event-table-head,
.event-row-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(240px, .86fr) minmax(125px, .38fr) minmax(310px, .96fr);
}

.event-results-panel.has-actions .event-table-head,
.event-results-panel.has-actions .event-row-main {
  grid-template-columns: minmax(260px, 1.15fr) minmax(220px, .82fr) minmax(120px, .36fr) minmax(280px, .96fr) minmax(104px, .34fr);
}

.event-table-head {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfd;
  color: #5f6f86;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.event-table-body {
  display: grid;
}

.event-table-row {
  --event-row-main-min-height: 146px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.event-table-row:last-child {
  border-bottom: 0;
}

.event-table-row:hover {
  background: #fbfdff;
}

.event-row-main {
  min-height: var(--event-row-main-min-height);
  align-items: stretch;
}

.event-cell {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.event-cell:last-child {
  border-right: 0;
}

.event-identity-cell,
.event-when-cell,
.event-state-cell,
.event-publish-cell,
.event-actions-cell {
  display: grid;
  align-content: flex-start;
  gap: 8px;
}

.event-actions-cell {
  justify-items: start;
}

.event-actions-cell small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.event-title-line {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.event-title-line h2 {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  color: var(--ink);
  display: -webkit-box;
  font-size: 16px;
  line-height: 1.25;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.event-subline code {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  white-space: normal;
}

.event-subline span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-labels {
  gap: 5px;
  min-height: 22px;
  max-height: 49px;
  overflow: hidden;
}

.event-labels .chip {
  min-height: 22px;
  padding: 0 7px;
  font-size: 11px;
}

.event-description-preview {
  margin: 0;
  min-height: 35px;
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-date-stack,
.event-location-stack,
.event-status-stack,
.event-publication-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.event-date-stack,
.event-location-stack {
  display: grid;
  gap: 3px;
  align-items: start;
}

.event-date-stack {
  min-height: 35px;
}

.event-location-stack {
  min-height: 58px;
}

.event-date-stack strong,
.event-location-stack strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.event-date-stack span,
.event-location-stack span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.event-registration-link {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 730;
  text-underline-offset: 3px;
}

.event-publication-stack {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.event-publication-summary {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.event-publication-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.event-publication-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
}

.event-publication-summary.is-published {
  border-color: #a7e6c8;
  background: var(--success-soft);
}

.event-publication-summary.is-published span {
  color: var(--success);
}

.event-publication-summary.is-pending {
  border-color: #fed7aa;
  background: var(--warning-soft);
}

.event-publication-summary.is-pending span {
  color: var(--warning);
}

.event-publication-summary.is-error {
  border-color: #fecaca;
  background: var(--danger-soft);
}

.event-publication-summary.is-error span {
  color: var(--danger);
}

.event-publication-target {
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.event-publication-target.is-published {
  border-color: #b7e6ce;
  background: #f4fbf7;
}

.event-publication-target.is-pending {
  border-color: #f8d59f;
  background: #fffaf1;
}

.event-publication-target.is-error {
  border-color: #fecaca;
  background: #fff7f6;
}

.event-publication-target.is-muted {
  background: #f8fafc;
}

.event-publication-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-publication-target small {
  grid-column: 1 / -1;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.event-publication-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.event-publication-chip.is-published {
  border-color: #a7e6c8;
  background: var(--success-soft);
  color: var(--success);
}

.event-publication-chip.is-pending {
  border-color: #fed7aa;
  background: var(--warning-soft);
  color: var(--warning);
}

.event-publication-chip.is-error {
  border-color: #fecaca;
  background: var(--danger-soft);
  color: var(--danger);
}

.event-publication-chip.is-muted {
  color: var(--muted);
}

.event-publication-chips {
  max-height: 54px;
  overflow: hidden;
}

.event-edit-modal-host {
  display: contents;
}

.event-edit-trigger {
  width: auto;
  height: 38px;
  min-height: 38px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  text-align: center;
}

.event-edit-trigger:hover {
  border-color: #c4cfdd;
  background: #f9fbfd;
}

body.has-open-modal {
  overflow: hidden;
}

.admin-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.admin-modal::backdrop {
  background: rgba(15, 23, 42, .5);
}

.admin-modal-frame {
  max-height: inherit;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(15, 23, 42, .22);
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.admin-modal-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}

.admin-modal-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.modal-close-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.modal-close-button:hover {
  border-color: #aebdce;
  color: var(--ink);
}

.admin-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 18px;
}

.admin-modal-body .checker-form {
  margin: 0;
}

.modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.modal-delete-form {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pagination-links a,
.pagination-links span {
  min-width: 34px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: #344054;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.pagination-links a:hover {
  border-color: #c4cfdd;
  background: var(--surface-soft);
}

.pagination-links .is-current {
  border-color: #b9cdf8;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.pagination-links span[aria-disabled="true"] {
  color: #9aa6b8;
  background: var(--surface-soft);
}

.email-log-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.email-log-summary > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.email-log-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.email-log-summary strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.email-log-detail-row td {
  padding-top: 0;
  background: #fbfdff;
}

.email-log-error {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
}

.email-log-body {
  max-height: 360px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  white-space: pre-wrap;
}

.shop-results-panel {
  padding: 0;
  overflow: hidden;
}

.shop-table-head,
.shop-row-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(120px, .45fr) minmax(190px, .7fr) minmax(360px, 1.35fr);
}

.shop-results-panel.has-actions .shop-table-head,
.shop-results-panel.has-actions .shop-row-main {
  grid-template-columns: minmax(250px, 1.15fr) minmax(110px, .4fr) minmax(180px, .65fr) minmax(330px, 1.3fr) minmax(94px, .34fr);
}

.shop-table-head {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfd;
  color: #5f6f86;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.shop-table-body {
  display: grid;
}

.shop-table-row {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.shop-table-row:last-child {
  border-bottom: 0;
}

.shop-table-row:hover {
  background: #fbfdff;
}

.shop-cell {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.shop-cell:last-child {
  border-right: 0;
}

.cell-label {
  display: none;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.shop-identity-cell {
  display: grid;
  align-content: start;
  gap: 6px;
}

.shop-identity-cell h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.entity-title-line {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.entity-title-line h2 {
  min-width: 0;
}

.entity-feature-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.entity-feature-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid #d6deea;
  border-radius: 999px;
  padding: 1px 7px;
  background: #f6f8fb;
  color: #536176;
  font-size: 10.5px;
  font-weight: 780;
  line-height: 16px;
  white-space: nowrap;
}

.entity-feature-badge.is-advanced {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.entity-feature-badge.is-events {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.entity-feature-badge.is-recurring-events {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.entity-feature-badge.is-highlighted {
  border-color: #f6d58b;
  background: #fff8df;
  color: #8a520f;
}

.shop-identity-cell p {
  margin: 0;
  color: var(--muted);
}

.shop-identity-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.shop-identity-meta a {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f4fbf;
}

.shop-compact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.shop-compact-tags span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #526174;
  font-size: 11px;
  font-weight: 650;
}

.shop-status-cell,
.shop-checkers-cell,
.shop-search-metrics-cell,
.shop-actions-cell {
  display: grid;
  align-content: start;
  gap: 7px;
}

.shop-actions-cell {
  justify-items: start;
}

.user-impersonation-form {
  margin: 0;
}

.shop-toggle-button {
  min-width: 76px;
}

.shop-toggle-button[aria-expanded="true"] {
  color: #8a520f;
  border-color: #d8a441;
  background: #fff8eb;
}

.shop-status-cell small {
  display: block;
}

.shop-checker-list {
  display: grid;
  gap: 5px;
}

.shop-checker-row {
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 6px 8px;
  border: 1px solid #b8e6d0;
  border-radius: 6px;
  background: var(--success-soft);
}

.shop-checker-row strong,
.shop-checker-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-checker-row strong {
  color: var(--success);
  font-size: 12px;
}

.shop-checker-row small {
  color: #39745e;
  font-size: 11px;
}

.shop-search-metric-list {
  display: grid;
  gap: 5px;
}

.shop-search-metric-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(82px, .75fr) repeat(3, minmax(68px, 1fr));
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
}

.shop-search-metric-row strong,
.shop-search-metric-row span {
  min-width: 0;
}

.shop-search-metric-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-search-metric-row span {
  display: grid;
  gap: 1px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
}

.shop-search-metric-row small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 660;
  line-height: 1.1;
}

.shop-row-detail {
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.shop-row-detail[hidden] {
  display: none;
}

.shop-detail-panel {
  min-width: 0;
  border-left: 4px solid #d8a441;
}

.shop-detail-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff8eb;
}

.shop-detail-title strong {
  color: var(--ink);
  font-size: 14px;
}

.shop-detail-title span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-detail-form {
  padding: 14px;
}

.venue-results-panel {
  padding: 0;
  overflow: hidden;
}

.venue-list-summary {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.venue-list-summary h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.venue-table-head,
.venue-row-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(170px, .72fr) minmax(190px, .72fr) minmax(240px, 1fr);
}

.venue-results-panel.has-actions .venue-table-head,
.venue-results-panel.has-actions .venue-row-main {
  grid-template-columns: minmax(260px, 1.18fr) minmax(160px, .66fr) minmax(180px, .66fr) minmax(230px, .95fr) minmax(94px, .34fr);
}

.venue-table-head {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfd;
  color: #5f6f86;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.venue-table-body {
  display: grid;
}

.venue-table-row {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.venue-table-row:last-child {
  border-bottom: 0;
}

.venue-table-row:hover {
  background: #fbfdff;
}

.venue-cell {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.venue-cell:last-child {
  border-right: 0;
}

.venue-identity-cell,
.venue-profile-cell,
.venue-checkers-cell,
.venue-contact-cell,
.venue-actions-cell {
  display: grid;
  align-content: start;
  gap: 7px;
}

.venue-actions-cell {
  justify-items: start;
}

.venue-toggle-button {
  min-width: 76px;
}

.venue-toggle-button[aria-expanded="true"] {
  color: #8a520f;
  border-color: #d8a441;
  background: #fff8eb;
}

.venue-identity-cell h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.venue-identity-cell p {
  margin: 0;
  color: var(--muted);
}

.venue-identity-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.venue-identity-meta a,
.venue-contact-list a {
  color: #1f4fbf;
}

.venue-compact-tags,
.venue-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.venue-compact-tags span,
.venue-feature-list span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #526174;
  font-size: 11px;
  font-weight: 650;
}

.venue-feature-list span:first-child,
.venue-feature-list span:nth-child(3) {
  background: var(--success-soft);
  border-color: #b8e6d0;
  color: var(--success);
}

.venue-checker-list {
  display: grid;
  gap: 5px;
}

.venue-checker-row {
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 6px 8px;
  border: 1px solid #b8e6d0;
  border-radius: 6px;
  background: var(--success-soft);
}

.venue-checker-row strong,
.venue-checker-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-checker-row strong {
  color: var(--success);
  font-size: 12px;
}

.venue-checker-row small {
  color: #39745e;
  font-size: 11px;
}

.venue-contact-list {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.venue-contact-list a,
.venue-contact-list span,
.venue-contact-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-row-detail {
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.venue-row-detail[hidden] {
  display: none;
}

.venue-detail-panel {
  min-width: 0;
  border-left: 4px solid #d8a441;
}

.venue-detail-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff8eb;
}

.venue-detail-title strong {
  color: var(--ink);
  font-size: 14px;
}

.venue-detail-title span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-detail-form {
  padding: 14px;
}

.venue-feature-toggle-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8a441;
  border-left: 4px solid #d8a441;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  box-shadow: 0 8px 20px rgba(156, 100, 21, .08);
}

.venue-feature-toggle-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.venue-feature-toggle-heading strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
}

.venue-feature-toggle-heading small {
  color: #7a5d23;
  font-size: 12px;
  font-weight: 650;
}

.venue-feature-toggle-actions {
  justify-content: flex-start;
  gap: 10px;
}

.venue-feature-toggle-actions .check-row {
  width: auto;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid #e7d3a6;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.venue-feature-toggle-actions .check-row:has(input:checked) {
  border-color: #b8e6d0;
  background: var(--success-soft);
  color: var(--success);
}

.venue-delete-form {
  padding: 0 14px 14px;
}

@media (max-width: 1260px) {
  .event-list-summary {
    display: grid;
  }

  .event-list-summary-side {
    justify-items: start;
  }

  .event-summary-metrics {
    justify-content: flex-start;
  }

  .event-filter-form {
    grid-template-columns: minmax(220px, 1fr) minmax(130px, .5fr) minmax(220px, .8fr);
  }

  .event-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .event-table-head {
    display: none;
  }

  .event-row-main {
    grid-template-columns: 1fr;
  }

  .event-results-panel.has-actions .event-row-main {
    grid-template-columns: 1fr;
  }

  .event-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .event-cell:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .shop-filter-form label:first-child,
  .lead-filter-form label:first-child {
    grid-column: auto;
  }

  .shop-filter-form .filter-actions,
  .lead-filter-form .filter-actions {
    grid-column: auto;
    justify-content: stretch;
  }

  .event-filter-form {
    grid-template-columns: 1fr;
  }

  .event-recurrence-fields {
    grid-template-columns: 1fr;
  }

  .event-filter-actions {
    grid-column: auto;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .event-filter-actions .primary-button,
  .event-filter-actions .secondary-button {
    flex: 1 1 auto;
  }

  .venue-filter-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .venue-filter-actions .primary-button,
  .venue-filter-actions .secondary-button {
    flex: 1 1 auto;
  }

  .admin-modal {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .admin-modal-header {
    padding: 13px 14px;
  }

  .admin-modal-body {
    padding: 13px 14px 14px;
  }

  .modal-form-actions {
    display: grid;
  }

  .pagination-bar {
    display: grid;
  }

  .pagination-links {
    justify-content: flex-start;
  }
}

@media (max-width: 1260px) {
  .venue-table-head {
    display: none;
  }

  .venue-row-main {
    grid-template-columns: 1fr;
  }

  .venue-results-panel.has-actions .venue-row-main {
    grid-template-columns: 1fr;
  }

  .venue-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .venue-cell:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 1260px) {
  .shop-table-head {
    display: none;
  }

  .shop-row-main {
    grid-template-columns: 1fr;
  }

  .shop-results-panel.has-actions .shop-row-main {
    grid-template-columns: 1fr;
  }

  .shop-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .shop-cell:last-child {
    border-bottom: 0;
  }

  .cell-label {
    display: block;
  }

  .shop-status-cell {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .shop-status-cell .cell-label {
    grid-column: 1 / -1;
  }
}

.shop-ops-list {
  display: grid;
  gap: 10px;
}

.shop-ops-row {
  display: grid;
  gap: 12px;
}

.shop-ops-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.shop-title {
  min-width: 0;
}

.shop-title h2 {
  font-size: 17px;
}

.shop-title p {
  margin: 4px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.shop-ops-badges {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.shop-ops-grid {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(220px, .9fr) minmax(320px, 1.4fr);
  gap: 12px;
  align-items: start;
}

.ops-block {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.ops-block h3 {
  font-size: 11px;
  color: #5f6f86;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.checker-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.checker-chip {
  display: inline-grid;
  gap: 1px;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid #a7e6c8;
  border-radius: 6px;
  background: var(--success-soft);
  color: var(--success);
}

.checker-chip strong,
.checker-chip small {
  display: block;
  line-height: 1.15;
}

.checker-chip small {
  max-width: 180px;
  overflow: hidden;
  color: #39745e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-metric-list {
  display: grid;
  gap: 6px;
}

.shop-metric-row {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1.4fr);
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.shop-metric-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.shop-metric-name {
  min-width: 0;
}

.shop-metric-name strong,
.shop-metric-name small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-metric-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 8px;
  margin: 0;
}

.shop-metric-values div {
  min-width: 0;
}

.shop-metric-values dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.shop-metric-values dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 740;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #344054;
  font-size: 12px;
  font-weight: 680;
}

.chip-linked {
  background: var(--success-soft);
  border-color: #a7e6c8;
  color: var(--success);
}

.tag-picker-field {
  display: grid;
  gap: 8px;
}

.tag-picker {
  display: grid;
  gap: 10px;
}

.tag-picker-selected {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d8e2ef;
  border-radius: 7px;
  background: #f8fbff;
}

.tag-picker-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.tag-picker-selected-chip {
  min-height: 28px;
  gap: 7px;
  padding: 0 4px 0 10px;
  background: #eaf2ff;
  border-color: #bfd5ff;
  color: #174ea6;
  font-size: 12px;
  font-weight: 760;
}

.tag-picker-remove {
  width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 78, 166, .12);
  color: #174ea6;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1;
}

.tag-picker-remove:hover {
  background: rgba(23, 78, 166, .2);
}

.tag-picker-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.tag-picker-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  align-items: start;
}

.tag-picker-group {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d8e2ef;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

.tag-picker-group[hidden],
.tag-picker-group.is-hidden-by-location {
  display: none;
}

.tag-picker-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e7edf5;
}

.tag-picker-group-header strong {
  color: #27364a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.tag-picker-group-header small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.tag-picker-group-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-picker-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px 0 8px;
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  background: #f9fbfd;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 740;
  box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
}

.tag-picker-option::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--tag-color, #8aa0ba);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}

.tag-picker-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.tag-picker-option:hover {
  border-color: #b8c7da;
  background: #ffffff;
  box-shadow: 0 3px 9px rgba(16, 24, 40, .08);
}

.tag-picker-option.is-selected {
  background: #eaf2ff;
  border-color: #7da4f8;
  color: #174ea6;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .18);
}

.tag-picker-option.is-selected::before {
  background: var(--tag-color, var(--accent));
  box-shadow: 0 0 0 2px #dbe8ff;
}

.tag-picker-option:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .14);
  outline-offset: 2px;
}

.tag-picker-option.is-hidden-by-location,
.tag-picker-option.is-muted {
  display: none;
}

.checkbox-fieldset {
  display: grid;
  gap: 10px;
  background: var(--surface-soft);
}

.api-test-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.checker-state {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 12px;
}

.checker-state div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.checker-state dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.checker-state dd {
  margin: 4px 0 0;
}

.edit-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.edit-details summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 720;
}

pre {
  overflow-x: auto;
  padding: 11px;
  background: var(--ink);
  color: #e5e7eb;
  border-radius: 6px;
}

@media (max-width: 1040px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    max-width: 100vw;
    height: auto;
    grid-template-rows: auto auto;
    padding: 14px;
  }

  .admin-nav {
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
  }

  .admin-nav-group {
    flex: 0 0 auto;
    min-width: max-content;
    align-content: start;
  }

  .admin-nav-heading {
    margin-left: 2px;
  }

  .admin-nav-items {
    display: flex;
    gap: 4px;
  }

  .admin-nav a {
    flex: 0 0 auto;
  }

  .topbar {
    position: static;
    max-width: 100vw;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-quick-actions-layout {
    grid-template-columns: 1fr;
  }

  .chart-grid,
  .trend-grid,
  .hub-destination-grid,
  .feed-sync-grid,
  .shop-ops-grid {
    grid-template-columns: 1fr;
  }

  .filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .venue-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .venue-application-details,
  .partner-detail-content,
  .partner-filter-form,
  .user-filter-form,
  .venue-application-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-main {
    width: min(100% - 28px, 1240px);
    max-width: calc(100vw - 28px);
    margin-top: 20px;
  }

  .admin-sidebar {
    gap: 12px;
  }

  .admin-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .admin-nav-group {
    flex-basis: min(76vw, 265px);
    min-width: min(76vw, 265px);
  }

  .admin-nav-heading {
    margin: 0 2px 5px;
    font-size: 10px;
  }

  .admin-nav-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .admin-nav a {
    min-height: 34px;
    padding: 0 8px;
    font-size: 13px;
  }

  .admin-nav a::before {
    width: 3px;
    height: 16px;
    top: 8px;
  }

  .admin-nav-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .admin-nav-svg {
    width: 15px;
    height: 15px;
  }

  .partner-quick-actions-panel {
    padding: 12px;
  }

  .partner-action-grid {
    grid-template-columns: 1fr;
  }

  .partner-quick-actions-layout .partner-action-grid {
    grid-template-columns: 1fr;
  }

  .partner-profile-completeness-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .partner-action-card {
    min-height: 70px;
    padding: 10px 11px;
  }

  .partner-action-card.is-primary {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
  }

  .partner-action-icon {
    width: 32px;
    height: 32px;
    font-size: 22px;
    border-radius: 8px;
  }

  .event-time-grid {
    grid-template-columns: 1fr;
  }

  .publication-target-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .checker-target-site {
    padding-left: 0;
  }

	  .topbar,
	  .page-heading,
	  .checker-summary {
	    display: grid;
	  }

	  .topbar-actions {
	    display: grid;
	    justify-content: stretch;
	    gap: 8px;
	  }

  .content-workbench-heading {
    display: grid;
  }

  .content-workbench-heading .primary-button {
    width: 100%;
  }

	  .partner-switch-form,
	  .logout-form {
	    justify-content: space-between;
	  }

	  .partner-switch-form {
	    display: grid;
	    grid-template-columns: 1fr auto;
	  }

  .partner-switch-form label {
    grid-template-columns: 1fr;
  }

  .chart-grid,
  .trend-grid,
  .form-grid,
  .checker-state,
  .stats-columns,
  .hub-destination-grid,
  .feed-sync-grid,
  .top-lists,
  .partner-sections,
  .partner-detail-content,
  .partner-readonly-list,
  .assign-user-form,
  .tag-picker-entry-row,
  .filter-form,
  .partner-filter-form,
  .user-filter-form,
  .venue-filter-form,
  .venue-application-filter-form,
  .venue-application-main,
  .venue-application-details,
  .venue-application-decision-grid,
  .shop-ops-main,
  .shop-ops-grid,
  .shop-metric-row,
  .migration-status-grid,
  .admin-tabs {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric {
    min-height: 76px;
    padding: 12px 12px 11px;
  }

  .metric span {
    font-size: 12px;
  }

  .metric strong,
  .stats-grid .metric strong,
  .compact-metrics .metric strong {
    font-size: 24px;
  }

  .bar-row {
    grid-template-columns: 1fr auto;
  }

  .trend-heading {
    display: grid;
  }

  .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .shop-ops-badges,
  .venue-application-state,
  .application-counts,
  .filter-actions {
    justify-content: flex-start;
  }

  .venue-application-state {
    justify-items: start;
  }

  .shop-metric-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-search-metric-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-search-metric-row strong {
    grid-column: 1 / -1;
  }

  .admin-tabs {
    display: flex;
    gap: 10px 16px;
    padding: 0 2px;
  }

  .admin-tabs a {
    min-height: 38px;
  }

  .content-form-section {
    padding: 12px;
  }

  .content-form-sections {
    padding-bottom: 0;
  }

  .content-form-actions {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    margin: 0;
    padding: 0;
    border-top: 0;
    background: transparent;
  }

  .content-form-actions .primary-button,
  .content-form-actions .secondary-button {
    width: 100%;
  }

  .page-heading h1 {
    font-size: 28px;
  }

  .panel {
    padding: 18px;
  }
}

html[data-admin-theme="cardchecker-modern"] {
  color-scheme: light;
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --surface-muted: #edf6ff;
  --text: #203047;
  --muted: #5c6b80;
  --line: #d3deeb;
  --line-strong: #d8c18c;
  --accent: #d8a441;
  --accent-dark: #8f641d;
  --accent-soft: #fff3d5;
  --success: #047857;
  --success-soft: #e7f8ef;
  --warning: #8a560d;
  --warning-soft: #fff1cc;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --ink: #080d18;
  --shadow: 0 22px 58px rgba(33, 52, 82, .14);
  --shadow-soft: 0 10px 28px rgba(33, 52, 82, .08);
}

html[data-admin-theme="cardchecker-modern"] body.admin-body {
  color: var(--text);
  background:
    radial-gradient(circle at 12% 7%, rgba(216, 164, 65, .18), transparent 28%),
    radial-gradient(circle at 88% 5%, rgba(36, 120, 216, .13), transparent 30%),
    radial-gradient(circle at 74% 24%, rgba(139, 92, 246, .08), transparent 25%),
    linear-gradient(135deg, #fffaf0 0%, #f7fbff 44%, #edf6ff 100%);
}

html[data-admin-theme="cardchecker-modern"] .admin-shell {
  background: linear-gradient(90deg, rgba(7, 19, 38, .035), transparent 38%);
}

html[data-admin-theme="cardchecker-modern"] .admin-support-badge {
  position: fixed;
  left: 14px;
  bottom: 50px;
  z-index: 40;
  max-width: 210px;
  padding: 0 8px;
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

html[data-admin-theme="cardchecker-modern"] .admin-support-badge a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}

html[data-admin-theme="cardchecker-modern"] .admin-support-badge a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-admin-theme="cardchecker-modern"] .admin-version-badge {
  position: fixed;
  left: 14px;
  bottom: 10px;
  z-index: 40;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  background: rgba(7, 19, 38, .72);
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
}

html[data-admin-theme="cardchecker-modern"] .admin-sidebar {
  background: #071326;
  border-right: 1px solid #223756;
  box-shadow: 14px 0 44px rgba(7, 19, 38, .16);
}

html[data-admin-theme="cardchecker-modern"] .topbar {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(216, 164, 65, .42);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(33, 52, 82, .06);
}

html[data-admin-theme="cardchecker-modern"] .admin-brand {
  color: #ffffff;
}

html[data-admin-theme="cardchecker-modern"] .topbar-title strong,
html[data-admin-theme="cardchecker-modern"] .page-heading h1,
html[data-admin-theme="cardchecker-modern"] .panel h1,
html[data-admin-theme="cardchecker-modern"] .panel h2,
html[data-admin-theme="cardchecker-modern"] .panel h3,
html[data-admin-theme="cardchecker-modern"] .content-table-title,
html[data-admin-theme="cardchecker-modern"] .bar-value,
html[data-admin-theme="cardchecker-modern"] .metric strong,
html[data-admin-theme="cardchecker-modern"] .event-title-line h2,
html[data-admin-theme="cardchecker-modern"] .event-date-stack strong,
html[data-admin-theme="cardchecker-modern"] .event-location-stack strong,
html[data-admin-theme="cardchecker-modern"] .event-publication-name {
  color: var(--ink);
}

html[data-admin-theme="cardchecker-modern"] .partner-quick-actions-heading h2,
html[data-admin-theme="cardchecker-modern"] .partner-action-copy strong {
  color: #ffffff;
}

html[data-admin-theme="cardchecker-modern"] .partner-quick-actions-heading .muted-note,
html[data-admin-theme="cardchecker-modern"] .partner-action-copy small {
  color: rgba(255, 255, 255, .72);
}

html[data-admin-theme="cardchecker-modern"] .partner-action-card.is-primary .partner-action-copy strong,
html[data-admin-theme="cardchecker-modern"] .partner-action-card.is-primary .partner-action-copy small {
  color: #ffffff;
}

html[data-admin-theme="cardchecker-modern"] .admin-nav a {
  color: rgba(255, 255, 255, .74);
}

html[data-admin-theme="cardchecker-modern"] .admin-nav-heading {
  color: rgba(255, 255, 255, .42);
}

html[data-admin-theme="cardchecker-modern"] .admin-nav-icon {
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .065);
  border-color: rgba(255, 255, 255, .12);
}

html[data-admin-theme="cardchecker-modern"] .admin-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
}

html[data-admin-theme="cardchecker-modern"] .admin-nav a:hover .admin-nav-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .2);
}

html[data-admin-theme="cardchecker-modern"] .admin-nav a.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, #d8a441, #9c6415);
  border-color: rgba(246, 216, 144, .48);
}

html[data-admin-theme="cardchecker-modern"] .admin-nav a.is-active::before {
  background: rgba(255, 244, 215, .9);
}

html[data-admin-theme="cardchecker-modern"] .admin-nav a.is-active .admin-nav-icon {
  color: #fff4d7;
  background: rgba(255, 244, 215, .18);
  border-color: rgba(255, 244, 215, .34);
}

html[data-admin-theme="cardchecker-modern"] .primary-button {
  color: #ffffff;
  background: linear-gradient(180deg, #d8a441, #9c6415);
  border-color: #b7791f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 10px 24px rgba(156, 100, 21, .18);
}

html[data-admin-theme="cardchecker-modern"] .primary-button:hover {
  background: linear-gradient(180deg, #e2af4b, #8f5b12);
  border-color: #8f641d;
}

html[data-admin-theme="cardchecker-modern"] .logout-form button,
html[data-admin-theme="cardchecker-modern"] .partner-switch-form button,
html[data-admin-theme="cardchecker-modern"] .secondary-button,
html[data-admin-theme="cardchecker-modern"] .modal-close-button {
  color: var(--ink);
  background: #ffffff;
  border-color: #cfdceb;
}

html[data-admin-theme="cardchecker-modern"] .logout-form button:hover,
html[data-admin-theme="cardchecker-modern"] .partner-switch-form button:hover,
html[data-admin-theme="cardchecker-modern"] .secondary-button:hover,
html[data-admin-theme="cardchecker-modern"] .modal-close-button:hover {
  color: var(--ink);
  background: #fff8eb;
  border-color: #d8a441;
  box-shadow: var(--shadow-soft);
}

html[data-admin-theme="cardchecker-modern"] .panel,
html[data-admin-theme="cardchecker-modern"] .metric,
html[data-admin-theme="cardchecker-modern"] .table-wrap,
html[data-admin-theme="cardchecker-modern"] .auth-panel,
html[data-admin-theme="cardchecker-modern"] .subpanel,
html[data-admin-theme="cardchecker-modern"] .content-form-section,
html[data-admin-theme="cardchecker-modern"] .publication-target-picker,
html[data-admin-theme="cardchecker-modern"] .publication-target-row,
html[data-admin-theme="cardchecker-modern"] .readonly-field,
html[data-admin-theme="cardchecker-modern"] .user-chip,
html[data-admin-theme="cardchecker-modern"] .checker-chip,
html[data-admin-theme="cardchecker-modern"] .event-publication-target,
html[data-admin-theme="cardchecker-modern"] .admin-modal-frame {
  background: var(--surface);
  border-color: #cfdbea;
  box-shadow: var(--shadow-soft);
}

html[data-admin-theme="cardchecker-modern"] .panel,
html[data-admin-theme="cardchecker-modern"] .event-results-panel,
html[data-admin-theme="cardchecker-modern"] .venue-list-summary-panel,
html[data-admin-theme="cardchecker-modern"] .event-list-summary-panel {
  border-top: 2px solid rgba(216, 164, 65, .58);
}

html[data-admin-theme="cardchecker-modern"] .partner-quick-actions-panel {
  border-top: 1px solid rgba(216, 164, 65, .38);
  border-right-color: rgba(216, 164, 65, .34);
  border-bottom-color: rgba(216, 164, 65, .34);
  border-left: 3px solid #d8a441;
  background: linear-gradient(135deg, #0c1a30, #142945 64%, #3d301b);
  box-shadow: 0 10px 26px rgba(7, 19, 38, .14);
}

html[data-admin-theme="cardchecker-modern"] .content-form-actions,
html[data-admin-theme="cardchecker-modern"] .admin-modal-header {
  background: #fbfdff;
  border-color: #cfdbea;
}

html[data-admin-theme="cardchecker-modern"] .auth-kicker,
html[data-admin-theme="cardchecker-modern"] .checker-site-link,
html[data-admin-theme="cardchecker-modern"] .event-registration-link,
html[data-admin-theme="cardchecker-modern"] td a {
  color: #1d6ac9;
}

html[data-admin-theme="cardchecker-modern"] code,
html[data-admin-theme="cardchecker-modern"] .status,
html[data-admin-theme="cardchecker-modern"] .chip,
html[data-admin-theme="cardchecker-modern"] .event-publication-chip,
html[data-admin-theme="cardchecker-modern"] .event-summary-metrics span {
  color: var(--text);
  background: #ffffff;
  border-color: #cfdbea;
}

html[data-admin-theme="cardchecker-modern"] .tag-picker-selected {
  background: #f8fbff;
  border-color: #cfdbea;
}

html[data-admin-theme="cardchecker-modern"] .tag-picker-selected-chip {
  color: #174ea6;
  background: #eaf2ff;
  border-color: #bfd5ff;
}

html[data-admin-theme="cardchecker-modern"] .tag-picker-option {
  background: #f9fbfd;
  border-color: #d8e2ef;
}

html[data-admin-theme="cardchecker-modern"] .tag-picker-option:hover {
  background: #ffffff;
  border-color: #b8c7da;
}

html[data-admin-theme="cardchecker-modern"] .tag-picker-option.is-selected {
  color: #174ea6;
  background: #eaf2ff;
  border-color: #7da4f8;
}

html[data-admin-theme="cardchecker-modern"] th,
html[data-admin-theme="cardchecker-modern"] .event-table-head,
html[data-admin-theme="cardchecker-modern"] .shop-table-head,
html[data-admin-theme="cardchecker-modern"] .venue-table-head {
  color: #fff4d7;
  background: #0b1b35;
  border-color: #223756;
}

html[data-admin-theme="cardchecker-modern"] tbody tr:hover,
html[data-admin-theme="cardchecker-modern"] .event-table-row:hover,
html[data-admin-theme="cardchecker-modern"] .shop-table-row:hover,
html[data-admin-theme="cardchecker-modern"] .venue-table-row:hover {
  background: #f8fbff;
}

html[data-admin-theme="cardchecker-modern"] label span,
html[data-admin-theme="cardchecker-modern"] .field-label,
html[data-admin-theme="cardchecker-modern"] legend,
html[data-admin-theme="cardchecker-modern"] .partner-switch-form label span,
html[data-admin-theme="cardchecker-modern"] .readonly-field span {
  color: #4b586c;
}

html[data-admin-theme="cardchecker-modern"] input,
html[data-admin-theme="cardchecker-modern"] select,
html[data-admin-theme="cardchecker-modern"] textarea {
  color: #111827;
  background-color: #ffffff;
  border-color: #c1cede;
}

html[data-admin-theme="cardchecker-modern"] input:focus,
html[data-admin-theme="cardchecker-modern"] select:focus,
html[data-admin-theme="cardchecker-modern"] textarea:focus {
  outline-color: rgba(245, 158, 11, .28);
  border-color: #d8a441;
}

html[data-admin-theme="cardchecker-modern"] fieldset {
  border-color: #cfdbea;
  background: #ffffff;
}

html[data-admin-theme="cardchecker-modern"] .admin-tabs {
  border-bottom-color: #d8c18c;
}

html[data-admin-theme="cardchecker-modern"] .admin-tabs a {
  color: #4b586c;
}

html[data-admin-theme="cardchecker-modern"] .admin-tabs a:hover {
  color: #111827;
}

html[data-admin-theme="cardchecker-modern"] .admin-tabs a:hover::after {
  background: #b7c5d8;
}

html[data-admin-theme="cardchecker-modern"] .admin-tabs a.is-active {
  color: #111827;
}

html[data-admin-theme="cardchecker-modern"] .admin-tabs a.is-active::after {
  background: #d8a441;
}

html[data-admin-theme="cardchecker-modern"] .event-filter-panel,
html[data-admin-theme="cardchecker-modern"] .venue-filter-panel,
html[data-admin-theme="cardchecker-modern"] .venue-application-filter-panel {
  background: #fff8eb;
  border-color: #d8c18c;
  border-left-color: #d8a441;
  box-shadow: var(--shadow-soft);
}

html[data-admin-theme="cardchecker-modern"] .event-table-row,
html[data-admin-theme="cardchecker-modern"] .shop-table-row,
html[data-admin-theme="cardchecker-modern"] .venue-table-row {
  background: #ffffff;
  border-color: #cfdbea;
}

html[data-admin-theme="cardchecker-modern"] .event-cell {
  border-color: #cfdbea;
}

html[data-admin-theme="cardchecker-modern"] .event-publication-target.is-published {
  background: #effbf4;
  border-color: #22c55e;
}

html[data-admin-theme="cardchecker-modern"] .event-publication-target.is-pending {
  background: #fff8e8;
  border-color: #d8a441;
}

html[data-admin-theme="cardchecker-modern"] .event-publication-target.is-error {
  background: #fff1f2;
  border-color: #ef4444;
}

html[data-admin-theme="cardchecker-modern"] .event-publication-target.is-muted {
  background: #f8fafc;
}

html[data-admin-theme="cardchecker-modern"] .status-active,
html[data-admin-theme="cardchecker-modern"] .status-approved,
html[data-admin-theme="cardchecker-modern"] .status-open,
html[data-admin-theme="cardchecker-modern"] .status-success,
html[data-admin-theme="cardchecker-modern"] .event-publication-chip.is-published {
  color: #064e3b;
  background: #dcfce7;
  border-color: #16a34a;
}

html[data-admin-theme="cardchecker-modern"] .status-info {
  color: #1e3a8a;
  background: #dbeafe;
  border-color: #93c5fd;
}

html[data-admin-theme="cardchecker-modern"] .status-draft,
html[data-admin-theme="cardchecker-modern"] .status-full,
html[data-admin-theme="cardchecker-modern"] .status-changed,
html[data-admin-theme="cardchecker-modern"] .status-pending,
html[data-admin-theme="cardchecker-modern"] .status-pending_review,
html[data-admin-theme="cardchecker-modern"] .status-email_unverified,
html[data-admin-theme="cardchecker-modern"] .status-warning,
html[data-admin-theme="cardchecker-modern"] .status-paused,
html[data-admin-theme="cardchecker-modern"] .event-publication-chip.is-pending {
  color: #713f12;
  background: #fef3c7;
  border-color: #d8a441;
}

html[data-admin-theme="cardchecker-modern"] .status-suspended,
html[data-admin-theme="cardchecker-modern"] .status-rejected,
html[data-admin-theme="cardchecker-modern"] .status-blocked,
html[data-admin-theme="cardchecker-modern"] .status-error,
html[data-admin-theme="cardchecker-modern"] .status-danger,
html[data-admin-theme="cardchecker-modern"] .status-cancelled,
html[data-admin-theme="cardchecker-modern"] .event-publication-chip.is-error {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #ef4444;
}

html[data-admin-theme="cardchecker-modern"] .status-hidden,
html[data-admin-theme="cardchecker-modern"] .status-archived,
html[data-admin-theme="cardchecker-modern"] .status-inactive,
html[data-admin-theme="cardchecker-modern"] .event-publication-chip.is-muted {
  color: #334155;
  background: #f1f5f9;
  border-color: #94a3b8;
}

html[data-admin-theme="cardchecker-modern"] .flash {
  background: #ffffff;
  border-color: #cfdbea;
}

html[data-admin-theme="cardchecker-modern"] .flash-success {
  color: #064e3b;
  background: #dcfce7;
  border-color: #16a34a;
}

html[data-admin-theme="cardchecker-modern"] .flash-error {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #ef4444;
}

html[data-admin-theme="cardchecker-modern"] .admin-modal::backdrop {
  background: rgba(8, 13, 24, .52);
}

.message-preview-card {
  display: grid;
  gap: 12px;
  max-width: 760px;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(241, 245, 249, .94));
  box-shadow: 0 18px 44px rgba(15, 23, 42, .1);
  color: #0f172a;
  overflow-wrap: anywhere;
}

.message-preview-actions {
  display: flex;
  justify-content: flex-end;
  max-width: 760px;
}

.message-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.message-preview-card h4 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.2;
}

.message-preview-card p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.message-preview-content {
  color: #1f2937;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.message-preview-content p,
.message-preview-content ul,
.message-preview-content ol,
.message-preview-content pre {
  margin: 0;
}

.message-preview-content > :where(p, ul, ol, pre, h3, h4) + :where(p, ul, ol, pre, h3, h4) {
  margin-top: 9px;
}

.message-preview-content a {
  color: #2563eb;
  font-weight: 700;
}

.message-preview-warning {
  border-color: rgba(217, 119, 6, .25);
}

.message-preview-danger {
  border-color: rgba(220, 38, 38, .25);
}

.message-preview-success {
  border-color: rgba(22, 163, 74, .25);
}
