:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --line: #e6e9ee;
  --line-strong: #d5dbe3;
  --text: #151922;
  --muted: #667085;
  --faint: #98a2b3;
  --accent: #e11d48;
  --accent-strong: #be123c;
  --accent-soft: #fff1f3;
  --blue: #2563eb;
  --green: #0f9f6e;
  --amber: #b45309;
  --dark: #111827;
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  --radius: 8px;
}

body.admin-login-mode {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(230, 0, 18, 0.06), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 149, 0, 0.08), transparent 28%),
    linear-gradient(135deg, #f7f8fb 0%, #ffffff 52%, #f4f6f9 100%);
}

body.admin-login-mode .app-shell {
  grid-template-columns: 1fr;
  min-height: 100vh;
}

body.admin-login-mode .sidebar,
body.admin-login-mode .topbar .user-pill,
body.admin-login-mode .topbar .top-actions {
  display: none !important;
}

body.admin-login-mode .main {
  min-width: 0;
}

body.admin-login-mode .topbar {
  max-width: 980px;
  width: min(980px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 34px 0 0;
  border: 0;
  background: transparent;
}

body.admin-login-mode .topbar .crumb {
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

body.admin-login-mode .topbar h1 {
  margin-top: 6px;
  color: rgba(16, 24, 40, 0.88);
  font-size: 32px;
  font-weight: 650;
  letter-spacing: 0;
}

body.admin-login-mode .content {
  width: min(980px, calc(100vw - 64px));
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: 0;
  display: grid;
  place-items: center;
}

body.admin-login-mode .login-panel {
  width: 100%;
  min-height: auto;
  display: grid;
  place-items: center;
}

body.admin-login-mode .login-card-admin {
  width: min(560px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(18px);
}

.notice-automation-panel .panel-body {
  display: grid;
  gap: 14px;
}

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

.notice-flow article {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #e7ebf1;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.notice-flow b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 13px;
}

.notice-rule-table .ops-head,
.notice-rule-table .ops-row {
  grid-template-columns: 1.2fr 1.15fr 0.9fr 0.72fr minmax(220px, 1.4fr) 84px;
}

.notice-rule-note {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.notice-preview-card {
  width: min(420px, 100%);
  padding: 14px 16px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.notice-preview-card span {
  color: #98a2b3;
  font-size: 12px;
}

.notice-preview-card strong {
  display: block;
  margin-top: 5px;
  color: rgba(16, 24, 40, 0.9);
  font-size: 16px;
  font-weight: 650;
}

.notice-preview-card p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
}

.venue-workbench {
  display: grid;
  gap: 14px;
}

.venue-workbench-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.venue-workbench-head h3 {
  margin: 0;
  color: rgba(16, 24, 40, 0.9);
  font-size: 20px;
  font-weight: 650;
}

.venue-workbench-head p {
  margin: 6px 0 0;
  color: #667085;
}

.venue-preview-controls {
  display: flex;
  gap: 8px;
}

.mini-seat-preview-panel .panel-body {
  background: linear-gradient(180deg, #fbfcfe, #f6f7fa);
}

.mini-seat-shell {
  display: grid;
  grid-template-columns: minmax(520px, 1.9fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.mini-seat-phone {
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 22px;
  background: #f7f8fa;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.1);
}

.mini-seat-top {
  height: 48px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #edf0f4;
}

.mini-seat-top button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f6;
  color: #475467;
  font-size: 24px;
  line-height: 1;
}

.mini-seat-top strong {
  text-align: center;
  font-size: 15px;
  font-weight: 650;
}

.mini-seat-top span {
  color: #667085;
  font-size: 12px;
}

.mini-seat-event {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: #fff;
}

.mini-seat-event b {
  color: rgba(16, 24, 40, 0.9);
  font-size: 14px;
  font-weight: 650;
}

.mini-seat-event span {
  color: #667085;
  font-size: 12px;
}

.mini-seat-map-viewport {
  position: relative;
  height: 420px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    #eef2f6;
  background-size: 28px 28px;
}

.mini-seat-map-viewport.is-panning {
  cursor: grabbing;
}

.mini-seat-map-canvas {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: auto;
  max-height: calc(100% - 36px);
  margin: auto;
  transform-origin: center center;
  transition: transform 120ms ease;
  aspect-ratio: 1000 / 760;
}

.mini-seat-map-canvas img,
.mini-seat-map-canvas .stage-fallback {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 14px;
  user-select: none;
  pointer-events: none;
}

.mini-zone {
  position: absolute;
  z-index: 2;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.22);
  color: #101828;
  font-size: 10px;
  font-weight: 650;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.mini-zone.green,
.mini-zone.pink,
.mini-zone.blue { background: transparent; }

.mini-zone.polygon-zone:hover {
  z-index: 4;
  background: rgba(236, 78, 91, 0.24);
  filter: none;
}

.mini-zone.active,
.mini-zone.polygon-zone.active:hover {
  z-index: 5;
  border-color: transparent;
  background: rgba(236, 78, 91, 0.54);
  filter: none;
}

.mini-zone.polygon-zone {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 2px;
  padding: 0;
  box-shadow: none;
}

.mini-zone.polygon-zone span {
  display: none;
  overflow: hidden;
  padding: 2px;
  font-size: 9px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-seat-bottom {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #edf0f4;
}

.mini-seat-bottom .mini-seat-selection {
  display: grid;
  gap: 3px;
}

.mini-seat-bottom span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 12px;
}

.mini-seat-bottom span i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #e60012;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.mini-seat-bottom strong {
  color: #e60012;
  font-size: 18px;
  font-weight: 700;
}

.mini-seat-bottom button {
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #e60012;
  color: #fff;
  font-weight: 650;
  box-shadow: 0 8px 18px rgba(230, 0, 18, 0.2);
}

.mini-seat-side {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  padding: 14px;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.mini-seat-side h4 {
  margin: 0 0 12px;
  color: rgba(16, 24, 40, 0.9);
  font-size: 15px;
  font-weight: 650;
}

.mini-ticket-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 486px;
  overflow: auto;
}

.mini-ticket-list button {
  min-height: 46px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.mini-ticket-list button.active {
  border-color: rgba(230, 0, 18, 0.62);
  background: rgba(255, 241, 242, 0.96);
  box-shadow: 0 8px 20px rgba(230, 0, 18, 0.1);
}

.mini-ticket-list i {
  grid-row: 1 / 3;
  width: 10px;
  height: 24px;
  border-radius: 999px;
  background: #2563eb;
}

.mini-ticket-list i.green { background: #0f9f6e; }
.mini-ticket-list i.pink { background: #e11d48; }
.mini-ticket-list span {
  color: rgba(16, 24, 40, 0.86);
  font-size: 13px;
  font-weight: 600;
}
.mini-ticket-list b {
  color: #e60012;
  font-size: 14px;
}

.mini-ticket-list em {
  grid-column: 2 / 4;
  color: #98a2b3;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.mini-ticket-list button.active em {
  color: #e60012;
}

.mini-preview-scale {
  min-width: 56px;
  text-align: center;
  color: #667085;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .mini-seat-shell {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(245, 246, 248, 0.94) 34%, #f5f6f8 100%),
    #f5f6f8;
  color: var(--text);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 22px 18px;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(225, 29, 72, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #111827 0%, #2a1320 52%, #e11d48 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.25;
}

.brand div > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 28px;
}

.nav-item {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius);
  background: transparent;
  padding: 0 12px;
  color: var(--muted);
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  background: #f2f4f7;
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.nav-item .nav-icon {
  width: 22px;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.nav-item .count {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.side-note {
  position: absolute;
  right: 18px;
  bottom: 22px;
  left: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 14px;
}

.side-note span,
.side-note strong {
  display: block;
}

.side-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.side-note strong {
  margin-top: 8px;
  font-size: 18px;
}

.main {
  min-width: 0;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(230, 233, 238, 0.88);
  background: rgba(245, 246, 248, 0.82);
  padding: 0 30px;
  backdrop-filter: blur(20px);
}

.crumb {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  margin-top: 5px;
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

.top-actions,
.toolbar,
.inline-actions,
.row-actions,
.drawer-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content {
  padding: 26px 30px 42px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid > * {
  min-width: 0;
}

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

.grid.two {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

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

.grid.one {
  grid-template-columns: 1fr;
}

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

.quick-module-card {
  display: grid;
  min-height: 86px;
  gap: 8px;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  text-align: left;
}

.quick-module-card strong {
  color: #111827;
  font-size: 15px;
  font-weight: 950;
}

.quick-module-card span {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.panel,
.stat-card,
.editor-block,
.upload-box,
.schema-item,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.035);
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.panel-head {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.panel-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.panel-body {
  padding: 18px;
}

.stat-card {
  min-height: 112px;
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 13px;
  font-size: 30px;
  line-height: 1;
}

.stat-card small {
  display: block;
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
}

.compact-list,
.settings-list,
.template-list,
.city-group-grid {
  display: grid;
  gap: 10px;
}

.compact-row,
.setting-row,
.template-card,
.city-group-card {
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  background: #ffffff;
}

.compact-row,
.setting-row {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
}

.compact-row strong,
.setting-row strong,
.template-card strong,
.city-group-card strong {
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

.compact-row span,
.setting-row span,
.template-card span,
.template-card small,
.city-group-card span {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.compact-row div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.compact-row b,
.ops-row b {
  color: #b42318;
}

.ops-table {
  display: grid;
  overflow: hidden;
  border: 1px solid #dde3eb;
  border-radius: 8px;
}

.ops-head,
.ops-row {
  display: grid;
  grid-template-columns: 1.1fr 1.8fr 0.8fr 1.2fr 0.7fr 0.8fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.ops-table.compact .ops-head,
.ops-table.compact .ops-row {
  grid-template-columns: 1.6fr 0.8fr 0.7fr 0.7fr 0.7fr;
}

.ops-head {
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 950;
}

.ops-row {
  min-height: 58px;
  border-top: 1px solid #edf0f5;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.ops-table.compact .sale-ops-head,
.ops-table.compact .sale-ops-row {
  grid-template-columns: minmax(180px, 1.35fr) minmax(100px, 0.62fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) minmax(250px, 1.35fr);
}

.sale-desc-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  margin-top: -2px;
}

.sale-desc-field span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.ops-row strong {
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

.template-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

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

.city-group-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.city-group-card div,
.keyword-edit-list,
.keyword-edit-row,
.keyword-cloud,
.field-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-edit-list {
  align-items: stretch;
}

.keyword-edit-row {
  width: calc(50% - 4px);
  align-items: center;
  flex-wrap: nowrap;
}

.keyword-edit-row .mini-input {
  min-width: 0;
}

.sort-controls {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  white-space: nowrap;
}

.sort-btn {
  min-width: 42px;
  padding: 0 8px;
}

.sort-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.sort-mode-btn {
  min-width: 76px;
}

.sort-mode-btn.active {
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
}

.sort-mode-hint {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 7px 11px;
  color: #475467;
  font-size: 12px;
  font-weight: 850;
}

.is-sortable {
  cursor: grab;
  user-select: none;
}

.is-sortable:active {
  cursor: grabbing;
}

.is-sortable input,
.is-sortable textarea,
.is-sortable select,
.is-sortable button,
.is-sortable summary,
.is-sortable .field,
.is-sortable .banner-upload-action {
  cursor: auto;
  user-select: text;
}

.drag-handle {
  display: grid;
  width: 28px;
  height: 28px;
  place-content: center;
  grid-template-columns: repeat(2, 4px);
  gap: 3px 4px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #ffffff;
  cursor: grab;
}

.drag-handle i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #667085;
}

.sort-position {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: #f2f4f7;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.dragging {
  opacity: 0.58;
  transform: scale(0.996);
}

.drag-over {
  border-color: #111827 !important;
  box-shadow: inset 0 0 0 2px rgba(17, 24, 39, 0.12), 0 10px 26px rgba(15, 23, 42, 0.08) !important;
}

.is-pointer-sorting {
  cursor: grabbing;
  user-select: none;
}

.is-pointer-sorting * {
  cursor: grabbing !important;
}

.thumb.mini {
  width: 38px;
  height: 38px;
  border-radius: 6px;
}

.rank-list {
  display: grid;
  gap: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.rank-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
  font-weight: 950;
}

.rank-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.rank-row strong,
.rank-row span:not(.rank-index) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row strong {
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

.rank-row span:not(.rank-index) {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

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

.order-stat-strip div {
  display: grid;
  gap: 6px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.order-stat-strip span {
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.order-stat-strip strong {
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.city-group-card span,
.keyword-cloud span,
.field-chip-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid #e2e7ef;
  border-radius: 999px;
  background: #f8fafc;
  padding: 0 10px;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-box,
.select-box,
.field input,
.field select,
.field textarea,
.mini-input,
.mini-textarea,
.code-output {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  outline: 0;
  transition: border 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.search-box,
.select-box {
  height: 40px;
  padding: 0 12px;
}

.search-box {
  min-width: 260px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-box:focus,
.select-box:focus,
.mini-input:focus,
.mini-textarea:focus {
  border-color: rgba(225, 29, 72, 0.7);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.08);
}

.dark-btn,
.accent-btn,
.ghost-btn,
.danger-btn,
.small-btn,
.icon-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.dark-btn {
  background: var(--dark);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
}

.accent-btn {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.18);
}

.ghost-btn,
.small-btn,
.icon-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.danger-btn {
  border: 1px solid rgba(190, 18, 60, 0.18);
  background: #fff1f3;
  color: var(--accent-strong);
}

.small-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.icon-btn {
  width: 38px;
  padding: 0;
  font-size: 22px;
}

.dark-btn:hover,
.accent-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.small-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 880px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fbfcfe;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: #fbfcfe;
}

.event-title-cell {
  display: flex;
  min-width: 240px;
  align-items: center;
  gap: 12px;
}

.thumb {
  width: 48px;
  height: 60px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 6px;
  background: #101828;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-main {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.title-sub {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 6px;
  padding: 0 8px;
  background: #f2f4f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.tag.red {
  border-color: #e2e7ef;
  background: #f8fafc;
  color: #475467;
}

.tag.blue {
  border-color: #e2e7ef;
  background: #f8fafc;
  color: #475467;
}

.tag.green {
  border-color: #e2e7ef;
  background: #f8fafc;
  color: #475467;
}

.tag.amber {
  border-color: #e2e7ef;
  background: #f8fafc;
  color: #475467;
}

.price {
  color: var(--accent);
  font-size: 16px;
  font-weight: 950;
}

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  background: rgba(17, 24, 39, 0.24);
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.drawer-mask.open {
  visibility: visible;
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  width: min(900px, 92vw);
  height: 100vh;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #ffffff;
  box-shadow: -20px 0 60px rgba(17, 24, 39, 0.16);
  transform: translateX(104%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head,
.drawer-foot {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.drawer-foot {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.drawer-body {
  overflow-y: auto;
  padding: 18px 22px 24px;
}

.editor-block {
  margin-bottom: 16px;
  overflow: hidden;
}

.editor-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  padding: 14px 16px;
}

.editor-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

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

.form-grid.tiny {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.field input,
.field select {
  height: 40px;
  padding: 0 11px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.55;
}

.field.full {
  grid-column: 1 / -1;
}

.sale-policy-field {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed #eef2f6;
}

.sale-policy-field > span,
.wide-editor > span,
.policy-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.template-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.template-card-head span {
  border-radius: 999px;
  background: #fff1f3;
  padding: 4px 8px;
  color: #e11d48;
}

.refund-template-card,
.notice-template-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.mini-textarea.tall {
  min-height: 150px;
}

.policy-editor {
  display: grid;
  gap: 14px;
}

.policy-toolbar {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 16px 0;
}

.policy-toolbar label,
.wide-editor {
  display: grid;
  gap: 8px;
}

.wide-editor {
  padding: 0 16px;
}

.policy-preview {
  display: grid;
  gap: 8px;
  margin: 0 16px;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  background: #fbfcfe;
  padding: 12px;
}

.policy-preview strong {
  color: #111827;
  font-size: 13px;
}

.policy-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 74px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #eef2f6;
  padding-top: 8px;
  color: #475467;
  font-size: 12px;
  font-weight: 750;
}

.policy-preview-row em {
  color: #667085;
  font-style: normal;
}

.policy-preview-row b {
  text-align: right;
  color: #e11d48;
}

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

.upload-box {
  display: grid;
  min-height: 170px;
  overflow: hidden;
  grid-template-columns: 150px minmax(0, 1fr);
}

.upload-preview {
  position: relative;
  min-height: 170px;
  background: #111827;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}

.upload-copy strong {
  display: block;
  font-size: 15px;
}

.upload-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.upload-copy input[type="file"] {
  max-width: 100%;
}

.split-editor {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

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

.stack-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
  text-align: left;
  transition: border 140ms ease, background 140ms ease, transform 140ms ease;
}

.stack-item:hover {
  transform: translateY(-1px);
}

.stack-item.active {
  border-color: rgba(225, 29, 72, 0.42);
  background: var(--accent-soft);
}

.stack-item strong,
.stack-item span {
  display: block;
}

.stack-item strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-item span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ticket-table {
  min-width: 520px;
}

.mini-input {
  width: 100%;
  height: 34px;
  padding: 0 9px;
}

.mini-textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  padding: 9px 10px;
  line-height: 1.5;
}

.stacked-inputs {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.setting-row .mini-input {
  max-width: 58%;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  padding: 16px;
}

.map-helper {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.map-helper strong {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

.map-helper span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.venue-ai-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  border: 1px solid #e7ecf3;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.venue-ai-status.ready {
  border-color: rgba(230, 0, 18, 0.18);
  background: linear-gradient(135deg, rgba(255, 247, 244, 0.96), rgba(255, 255, 255, 0.96));
}

.venue-ai-status.fallback {
  border-color: rgba(102, 112, 133, 0.2);
}

.venue-ai-status.loading {
  border-color: rgba(230, 0, 18, 0.16);
  background: linear-gradient(90deg, rgba(255, 247, 244, 0.98), rgba(255, 255, 255, 0.96), rgba(255, 247, 244, 0.98));
  background-size: 220% 100%;
  animation: aiStatusSweep 1.6s ease-in-out infinite;
}

@keyframes aiStatusSweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.venue-ai-status div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.venue-ai-status b {
  color: rgba(16, 24, 40, 0.9);
  font-size: 13px;
  font-weight: 650;
}

.venue-ai-status span {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-ai-status em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  padding: 5px 8px;
}

.map-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 760;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(230, 233, 238, 0.56) 1px, transparent 1px),
    linear-gradient(180deg, rgba(230, 233, 238, 0.56) 1px, transparent 1px),
    #fbfcfe;
  background-size: 34px 34px;
}

.map-preview img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.venue-review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid #f4c7c9;
  border-radius: 10px;
  background: #fff8f7;
  padding: 10px 12px;
}

.venue-review-summary.reviewed {
  border-color: #b8dfc8;
  background: #f2fbf6;
}

.venue-review-summary div {
  display: grid;
  gap: 3px;
}

.venue-review-summary span {
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

.venue-review-summary.reviewed span {
  color: #067647;
}

.venue-review-summary b,
.venue-review-summary em {
  color: #667085;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.venue-review-summary em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 8px;
}

.venue-review-canvas {
  isolation: isolate;
}

.venue-review-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.venue-review-polygon {
  fill: var(--zone-color, #5b9ec7);
  fill-opacity: 0.16;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  pointer-events: all;
  transition: fill-opacity 140ms ease, stroke 140ms ease, filter 140ms ease;
}

.venue-review-polygon:hover,
.venue-review-polygon:focus-visible {
  fill-opacity: 0.34;
  stroke: #111827;
  outline: none;
}

.venue-review-polygon.selected {
  fill: #e60012;
  fill-opacity: 0.25;
  stroke: #e60012;
  stroke-width: 2.2;
  filter: drop-shadow(0 2px 3px rgba(230, 0, 18, 0.24));
}

.venue-review-polygon.reviewed:not(.selected) {
  stroke: #12b76a;
}

.venue-vertex-handle {
  fill: #ffffff;
  stroke: #e60012;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  cursor: move;
  pointer-events: all;
  filter: drop-shadow(0 1px 2px rgba(17, 24, 39, 0.35));
}

.venue-vertex-handle:hover,
.venue-vertex-handle:focus-visible {
  fill: #fff1f0;
  stroke: #111827;
  outline: none;
}

.venue-edit-hint {
  margin: 8px 0 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.venue-review-errors {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  border-left: 3px solid #e60012;
  background: #fff8f7;
  padding: 8px 10px;
}

.venue-review-errors span {
  color: #b42318;
  font-size: 11px;
  line-height: 1.45;
}

.venue-review-toolbar {
  align-items: center;
}

.venue-review-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.map-analyzing-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  color: rgba(16, 24, 40, 0.9);
  text-align: center;
}

.map-analyzing-layer i {
  display: block;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(230, 0, 18, 0.12);
  border-top-color: #e60012;
  border-radius: 50%;
  animation: spinLoading 0.9s linear infinite;
}

.map-analyzing-layer strong {
  font-size: 15px;
  font-weight: 650;
}

.map-analyzing-layer span {
  color: #667085;
  font-size: 12px;
}

@keyframes spinLoading {
  to { transform: rotate(360deg); }
}

.stage-fallback {
  position: absolute;
  left: 50%;
  top: 45%;
  display: grid;
  width: 116px;
  height: 86px;
  place-items: center;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.hot-zone {
  position: absolute;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 6px;
  row-gap: 2px;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  border: 2px solid transparent;
  border-radius: 10px;
  color: #111827;
  padding: 6px 8px;
  font-size: 11px;
  text-align: left;
  box-shadow: none;
  transition: box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.hot-zone.polygon-zone {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 2px;
  padding: 0;
  box-shadow: none;
}

.hot-zone.polygon-zone .zone-index {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
}

.hot-zone.polygon-zone .zone-name,
.hot-zone.polygon-zone .zone-price {
  display: none;
}

.hot-zone .zone-index {
  grid-row: 1 / 3;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(16, 24, 40, 0.86);
  font-size: 11px;
  font-weight: 650;
}

.hot-zone .zone-name {
  overflow: hidden;
  min-width: 0;
  color: rgba(16, 24, 40, 0.9);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-zone .zone-price {
  color: #e60012;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.hot-zone:hover {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.24), 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.hot-zone.active {
  border-color: rgba(230, 0, 18, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82), 0 0 0 3px rgba(230, 0, 18, 0.12);
}

.hot-zone.blue {
  background: rgba(216, 241, 255, 0.78);
}

.hot-zone.green {
  background: rgba(215, 248, 220, 0.78);
}

.hot-zone.pink {
  background: rgba(246, 213, 251, 0.8);
}

.section-table {
  min-width: 760px;
}

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

.section-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.section-card.selected {
  border-color: rgba(230, 0, 18, 0.42);
  box-shadow: 0 0 0 2px rgba(230, 0, 18, 0.07);
}

.section-dot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #111827;
  font-size: 12px;
  font-weight: 950;
}

.section-dot.blue {
  background: #eaf4ff;
}

.section-dot.green {
  background: #eaf8ee;
}

.section-dot.pink {
  background: #f9eafa;
}

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

.section-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.55fr) minmax(160px, 1.2fr) minmax(82px, 0.45fr);
  gap: 10px;
}

.section-live-price {
  display: flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  background: #f8fafc;
  color: #e60012;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.section-review-badge {
  border-radius: 999px;
  background: #fff1f0;
  color: #b42318;
  padding: 3px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.section-review-badge.reviewed {
  background: #ecfdf3;
  color: #067647;
}

.advanced-zone {
  margin-top: 10px;
}

.advanced-zone summary {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.business-advanced {
  margin: 12px 16px 16px;
  border: 1px dashed #d8dee7;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px 12px;
}

.banner-grid,
.category-grid {
  display: grid;
  gap: 14px;
}

.simple-hint,
.business-region-strip {
  display: grid;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  background: #f8fafc;
}

.home-editor-shell {
  margin-bottom: 14px;
}

.home-preview-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  background: #111827;
  padding: 18px 20px;
  color: #ffffff;
}

.home-preview-strip span,
.home-preview-strip small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.home-preview-strip strong {
  display: block;
  margin: 8px 0 7px;
  font-size: 24px;
  font-weight: 950;
}

.home-preview-strip img {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
}

.simple-hint {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.simple-hint strong,
.business-region-strip strong {
  color: #111827;
  font-size: 13px;
  font-weight: 950;
}

.simple-hint span,
.business-region-strip span,
.simple-card-title span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.banner-simple-list,
.simple-category-grid {
  display: grid;
  gap: 12px;
}

.simple-banner-card,
.simple-category-card {
  display: grid;
  align-items: center;
  gap: 14px;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.simple-banner-card {
  grid-template-columns: 250px minmax(0, 1fr) 76px;
  align-items: stretch;
}

.simple-category-card {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.banner-thumb.large {
  height: 134px;
}

.banner-preview-block {
  display: grid;
  align-content: start;
  gap: 8px;
}

.banner-preview-block > span {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-card-main {
  min-width: 0;
}

.simple-card-title {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

.simple-card-title strong {
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.simple-card-actions {
  display: grid;
  align-content: start;
  gap: 10px;
}

.banner-upload-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  border: 1px solid #ccd5e0;
  border-radius: 6px;
  background: #f8fafc;
  color: #111827;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.banner-upload-action:hover {
  border-color: #9aa7b6;
  background: #ffffff;
  transform: translateY(-1px);
}

.banner-upload-action input {
  display: none;
}

.business-region-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 14px;
  overflow: hidden;
}

.business-region-strip div {
  display: grid;
  gap: 4px;
  min-height: 76px;
  align-content: center;
  border-right: 1px solid #dde3eb;
  padding: 12px;
}

.business-region-strip div:last-child {
  border-right: 0;
}

.category-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-size: 16px;
  font-weight: 950;
}

.banner-card,
.category-row {
  display: grid;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
}

.banner-card {
  grid-template-columns: 172px minmax(0, 1fr) auto;
}

.banner-thumb {
  height: 94px;
  overflow: hidden;
  border-radius: 7px;
  background: #111827;
}

.banner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-fields,
.category-fields {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.category-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.schema-item {
  padding: 16px;
}

.schema-item h3 {
  margin-bottom: 12px;
}

.schema-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.issue-list {
  display: grid;
  gap: 9px;
}

.issue {
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: #fff7f8;
  padding: 10px 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.issue.ok {
  border-left-color: #98a2b3;
  background: #f8fafc;
  color: #344054;
}

.code-output {
  width: 100%;
  min-height: 420px;
  padding: 14px;
  background: #101828;
  color: #d1fadf;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.empty-state {
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.empty-state span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  visibility: hidden;
  max-width: 340px;
  border-radius: var(--radius);
  background: #111827;
  color: #ffffff;
  padding: 13px 15px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .grid.kpis,
  .grid.three,
  .grid.two,
  .map-layout,
  .schema-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .app-shell {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow: hidden;
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow: hidden;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .main,
  .topbar,
  .content {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
  }

  .nav-list {
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: 128px;
  }

  .side-note {
    position: static;
    margin-top: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .content {
    padding: 18px;
  }

  .form-grid,
  .upload-grid,
  .split-editor,
  .banner-card,
  .banner-fields,
  .category-fields {
    grid-template-columns: 1fr;
  }

  .drawer {
    width: 100vw;
  }
}

/* Hard reset to compact console scale */
body {
  font-size: 12px;
}

.app-shell {
  grid-template-columns: 178px minmax(0, 1fr);
}

.sidebar {
  padding: 14px 12px;
}

.brand {
  height: 36px;
  gap: 8px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.brand strong {
  font-size: 13px;
}

.brand div > span,
.crumb,
.panel-head p,
.muted-copy {
  font-size: 11px;
}

.nav-list {
  gap: 3px;
  margin-top: 20px;
}

.nav-group {
  margin: 12px 8px 3px;
  font-size: 10px;
}

.nav-item {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.side-note {
  right: 12px;
  bottom: 12px;
  left: 12px;
}

.logout-btn {
  height: 30px;
  font-size: 12px;
}

.topbar {
  min-height: 70px;
  padding: 14px 20px 6px;
}

h1 {
  margin-top: 3px;
  font-size: 20px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 14px;
}

.user-pill {
  padding: 6px 11px;
  font-size: 11px;
}

.content {
  max-width: 1240px;
  padding: 0 20px 24px;
}

.grid,
.classic-event-list,
.settings-list,
.template-list,
.compact-list {
  gap: 8px;
}

.panel-head {
  min-height: 42px;
  padding: 9px 12px;
}

.panel-body {
  padding: 10px 12px 12px;
}

.classic-filter-panel {
  margin-bottom: 10px;
  padding: 10px;
}

.classic-filter-top,
.classic-filter-bottom {
  gap: 8px;
  margin-bottom: 7px;
}

.search-box,
.select-box {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.segmented {
  height: 32px;
  padding: 2px;
}

.segmented button {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
}

.dark-btn,
.accent-btn,
.ghost-btn,
.danger-btn,
.small-btn,
.icon-btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 5px;
  box-shadow: none;
}

.batch-panel {
  min-height: 48px;
  margin-bottom: 8px;
  padding: 10px 12px;
}

.event-count-strip {
  min-height: 32px;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 11px;
  font-size: 11px;
}

.classic-list-head {
  grid-template-columns: 24px minmax(220px, 1.55fr) 92px 82px 92px 112px 250px;
  min-height: 30px;
  gap: 10px;
  padding: 0 11px;
  font-size: 11px;
}

.classic-event-card {
  grid-template-columns: 24px minmax(220px, 1.55fr) 92px 82px 92px 112px 250px;
  min-height: 66px;
  gap: 10px;
  border-left-width: 3px;
  border-radius: 6px;
  padding: 8px 11px;
}

.classic-title-row strong {
  max-width: 310px;
  font-size: 13px;
}

.pill-row {
  gap: 5px;
  margin-top: 5px;
}

.tag,
.mini-pill {
  min-height: 18px;
  padding: 0 7px;
  font-size: 10px;
}

.classic-subline {
  margin-top: 5px;
  font-size: 11px;
}

.classic-metric span {
  font-size: 10px;
}

.classic-metric strong {
  margin-top: 3px;
  font-size: 12px;
}

.classic-metric .price {
  font-size: 13px;
}

.classic-actions {
  gap: 5px;
}

.classic-actions .small-btn {
  min-width: 44px;
}

.mini-input {
  height: 28px;
  padding: 0 7px;
  font-size: 12px;
}

.mini-textarea {
  min-height: 48px;
  padding: 6px 7px;
  font-size: 12px;
}

.city-group-head,
.city-group-row {
  grid-template-columns: 104px minmax(220px, 1fr) minmax(180px, 0.7fr) 70px;
  gap: 8px;
  padding: 7px 10px;
}

.city-group-row {
  min-height: 64px;
}

.city-chip-list span {
  min-height: 18px;
  padding: 0 6px;
  font-size: 10px;
}

/* Seat-map workbench: keep the image, the selected zone and the next action together. */
/* Integrated annotation: recognition, candidate picking and manual drawing share one canvas. */
.venue-annotation-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  margin-top: 7px;
  padding: 5px 7px;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  background: linear-gradient(90deg, #f8fbff, #fbfcfe);
}

.venue-annotation-title {
  flex: 0 0 auto;
  color: #344054;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.venue-tool-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid #d9e3ed;
  border-radius: 6px;
  background: #fff;
}

.venue-tool-switch button {
  min-height: 25px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: #667085;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.venue-tool-switch button:hover {
  color: #075bc7;
  background: #eef6ff;
}

.venue-tool-switch button.active {
  color: #fff;
  background: #162c4d;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.16);
}

.venue-snap-sensitivity {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #667085;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.venue-snap-sensitivity select {
  height: 25px;
  padding: 0 20px 0 6px;
  border: 1px solid #d7e1eb;
  border-radius: 5px;
  color: #344054;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.venue-snap-sensitivity.is-muted {
  opacity: 0.52;
}

.venue-tool-help {
  min-width: 0;
  overflow: hidden;
  color: #667085;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-tool-help.pending {
  color: #a65f00;
  font-weight: 800;
}

.venue-tool-help.pending::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 5px 0 1px;
  border: 1.5px solid #f59e0b;
  border-top-color: transparent;
  border-radius: 50%;
  content: "";
  animation: venue-tool-spin 700ms linear infinite;
  vertical-align: -1px;
}

@keyframes venue-tool-spin {
  to { transform: rotate(360deg); }
}

.venue-draft-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.venue-draft-actions .small-btn {
  min-height: 25px;
  padding: 0 7px;
  color: #075bc7;
  border-color: #bfdaef;
  background: #f2f8ff;
  font-size: 10px;
}

.venue-candidate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid #f3cf88;
  border-left: 3px solid #f59e0b;
  border-radius: 7px;
  background: #fffaf0;
}

.venue-candidate-bar > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.venue-candidate-bar > div:last-child {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.venue-candidate-bar strong {
  color: #9a5b00;
  font-size: 10px;
}

.venue-candidate-bar span {
  overflow: hidden;
  color: #8b6a35;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-candidate-bar b {
  color: #9a5b00;
  font-size: 10px;
  white-space: nowrap;
}

.venue-candidate-bar .small-btn {
  min-height: 25px;
  padding: 0 7px;
  border-color: #ebcf98;
  color: #8f5600;
  background: #fff;
  font-size: 10px;
}

.venue-editor-viewport[data-venue-tool-mode="manual"],
.venue-editor-viewport[data-venue-tool-mode="snap"] {
  cursor: crosshair;
}

.venue-editor-viewport[data-venue-tool-mode="manual"].is-panning,
.venue-editor-viewport[data-venue-tool-mode="snap"].is-panning {
  cursor: grabbing;
}

.venue-editor-viewport.is-candidate-mode {
  cursor: copy;
}

.venue-editor-viewport.is-candidate-mode.is-panning,
.venue-editor-viewport.is-candidate-mode.space-pan-ready {
  cursor: grabbing;
}

.venue-review-overlay.has-candidates {
  pointer-events: auto;
}

.venue-review-overlay.has-candidates .venue-review-polygon {
  pointer-events: none;
}

.venue-candidate-layer {
  pointer-events: auto;
}

.venue-candidate-polygon {
  fill: #fbbf24;
  fill-opacity: 0.24;
  stroke: #ff8a00;
  stroke-width: 3;
  stroke-dasharray: 7 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
  cursor: copy;
  pointer-events: all;
  filter: drop-shadow(0 1px 2px rgba(146, 86, 0, 0.38));
  transition: fill-opacity 120ms ease, stroke-width 120ms ease, stroke 120ms ease;
}

.venue-candidate-polygon:hover,
.venue-candidate-polygon:focus-visible {
  fill-opacity: 0.38;
  stroke: #d95b00;
  stroke-width: 3.8;
  outline: none;
}

.venue-candidate-polygon.added {
  fill: #12b76a;
  fill-opacity: 0.08;
  stroke: #12b76a;
  stroke-dasharray: 2 3;
  cursor: default;
}

.venue-candidate-polygon.selected {
  fill: #ffb000;
  fill-opacity: 0.48;
  stroke: #ba3e00;
  stroke-width: 4;
  stroke-dasharray: none;
}

.venue-candidate-polygon.focused:not(.selected):not(.added) {
  fill: #ffcb45;
  fill-opacity: 0.42;
  stroke: #e34d00;
  stroke-width: 4.2;
  stroke-dasharray: none;
  animation: venue-candidate-focus 1.2s ease-in-out infinite alternate;
}

@keyframes venue-candidate-focus {
  from { filter: drop-shadow(0 0 2px rgba(255, 112, 0, 0.34)); }
  to { filter: drop-shadow(0 0 7px rgba(255, 112, 0, 0.86)); }
}

.venue-candidate-marker {
  pointer-events: none;
}

.venue-candidate-marker circle {
  fill: #e75200;
  stroke: #fff;
  stroke-width: 0.65;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.32));
}

.venue-candidate-marker.selected circle {
  fill: #a93500;
}

.venue-candidate-marker text {
  fill: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
}

.venue-candidate-workbench {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(100px, 1fr) auto;
  gap: 8px;
  padding: 10px 12px;
  overflow: hidden;
}

.venue-candidate-workbench-note {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid #f3cf88;
  border-left: 3px solid #f59e0b;
  border-radius: 7px;
  background: #fffaf0;
}

.venue-candidate-workbench-note strong {
  color: #8f5600;
  font-size: 11px;
}

.venue-candidate-workbench-note span {
  color: #8b6a35;
  font-size: 9px;
  line-height: 1.45;
}

.venue-candidate-scroll {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1px 4px 1px 1px;
  scrollbar-color: #d3a85f transparent;
}

.venue-candidate-row {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid #e7edf3;
  border-radius: 7px;
  color: #344054;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.venue-candidate-row:hover,
.venue-candidate-row:focus-visible {
  border-color: #efb65e;
  background: #fffaf1;
  outline: none;
}

.venue-candidate-row:active {
  transform: translateY(1px);
}

.venue-candidate-row.selected {
  border-color: #d95b00;
  background: #fff6df;
  box-shadow: inset 3px 0 0 #e75200;
}

.venue-candidate-row.focused:not(.selected) {
  border-color: #f3bf67;
  background: #fffbf2;
}

.venue-candidate-row.added {
  opacity: 0.62;
  cursor: default;
}

.venue-candidate-row > i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 6px;
  color: #fff;
  background: var(--section-color, #f59e0b);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.16);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.venue-candidate-row > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.venue-candidate-row > span strong,
.venue-candidate-row > span em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-candidate-row > span strong {
  color: #1d2939;
  font-size: 11px;
}

.venue-candidate-row > span em {
  color: #7b8798;
  font-size: 9px;
  font-style: normal;
}

.venue-candidate-row > small {
  color: #a65f00;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.venue-candidate-row.selected > small {
  color: #9d2f00;
}

.venue-candidate-row.added > small {
  color: #067647;
}

.venue-candidate-inspector {
  display: grid;
  min-height: 32px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 7px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid #e5ebf1;
  border-radius: 7px;
  background: #f8fafc;
}

.venue-candidate-inspector > i {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--section-color, #f59e0b);
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(16, 24, 40, 0.2);
}

.venue-candidate-inspector > span,
.venue-candidate-inspector > em {
  overflow: hidden;
  color: #667085;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-candidate-inspector > span b {
  color: #344054;
}

.venue-candidate-inspector > em {
  color: #a65f00;
}

@media (prefers-reduced-motion: reduce) {
  .venue-tool-help.pending::before,
  .venue-candidate-polygon.focused:not(.selected):not(.added) {
    animation: none;
  }
}

.venue-manual-draft {
  fill: rgba(20, 105, 232, 0.13);
  stroke: #1469e8;
  stroke-width: 2.2;
  stroke-dasharray: 5 3;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.venue-manual-draft.snap {
  fill: rgba(245, 158, 11, 0.14);
  stroke: #e18a00;
}

.venue-manual-draft.open {
  fill: none;
}

.venue-manual-draft-node {
  fill: #fff;
  stroke: #1469e8;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

@media (max-width: 860px) {
  .venue-annotation-bar,
  .venue-candidate-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .venue-tool-help {
    width: 100%;
    order: 3;
  }

  .venue-draft-actions {
    margin-left: 0;
  }

  .venue-candidate-bar > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }
}

.content.content-wide {
  max-width: 1660px;
}

.venue-workbench {
  gap: 10px;
}

.venue-workbench-head {
  align-items: center;
  padding: 2px 2px 0;
}

.venue-workbench-shortcuts {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #667085;
  font-size: 10px;
  white-space: nowrap;
}

.venue-workbench-shortcuts > span {
  margin-right: 2px;
  color: #344054;
  font-weight: 800;
}

.venue-workbench-shortcuts em {
  margin-right: 3px;
  color: #98a2b3;
  font-size: 10px;
  font-style: normal;
}

.venue-workbench-shortcuts kbd {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border: 1px solid #d7e0ea;
  border-bottom-width: 2px;
  border-radius: 4px;
  color: #344054;
  background: #fff;
  font: 800 9px/1 "Microsoft YaHei", "PingFang SC", sans-serif;
}

.venue-studio-shell {
  border-color: #d7e1ec;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.07);
}

.venue-studio-topbar {
  min-height: 54px;
  padding: 9px 14px;
  background:
    linear-gradient(90deg, rgba(20, 105, 232, 0.045), transparent 36%),
    #fbfcfe;
}

.venue-studio-grid {
  grid-template-columns: minmax(0, 1fr) minmax(370px, 420px);
  height: min(780px, calc(100vh - 166px));
  min-height: 570px;
}

.map-layout.single-canvas {
  padding: 10px;
}

.venue-map-editor .map-helper {
  border: 1px solid #e3eaf2;
  background: #fff;
}

.venue-map-status-grid {
  gap: 7px;
  margin-top: 7px;
}

.venue-map-status-grid .venue-ai-status,
.venue-map-status-grid .venue-review-summary {
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid #e0e8f1;
  background: #fff;
}

.venue-editor-viewport {
  margin-top: 8px;
  border-color: #d2dfea;
  border-radius: 9px;
  background-size: 20px 20px;
}

.venue-canvas-context,
.venue-canvas-zoom-controls {
  position: absolute;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(210, 221, 232, 0.94);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.12);
  backdrop-filter: blur(8px);
}

.venue-canvas-context {
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  min-height: 28px;
  gap: 6px;
  padding: 0 9px;
  border-radius: 999px;
  color: #475467;
  font-size: 10px;
  pointer-events: none;
}

.venue-canvas-context i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--section-color, #1469e8);
  box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.15);
}

.venue-canvas-context span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-canvas-context b {
  color: #182230;
  font-size: 11px;
}

.venue-canvas-zoom-controls {
  right: 10px;
  bottom: 10px;
  gap: 2px;
  padding: 3px;
  border-radius: 7px;
}

.venue-canvas-zoom-controls .icon-btn {
  display: grid;
  width: 25px;
  min-width: 25px;
  height: 25px;
  min-height: 25px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #344054;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
}

.venue-canvas-zoom-controls .icon-btn:hover {
  color: #075bc7;
  background: #edf5ff;
}

.venue-canvas-zoom-controls .venue-editor-scale {
  min-width: 43px;
  height: 25px;
  border: 0;
  border-right: 1px solid #e3e8ee;
  border-left: 1px solid #e3e8ee;
  border-radius: 0;
  color: #344054;
  background: transparent;
  font-size: 10px;
}

.venue-edit-hint {
  margin: 5px 2px 0;
  color: #667085;
  font-size: 10px;
}

.venue-review-toolbar {
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 7px;
  padding: 6px 7px;
  border: 1px solid #e1e8ef;
  border-radius: 8px;
  background: #f8fafc;
}

.venue-toolbar-group {
  min-height: 28px;
  padding-right: 9px;
  border-right: 1px solid #e1e7ee;
}

.venue-toolbar-group:last-child {
  padding-right: 0;
  border-right: 0;
}

.venue-toolbar-label {
  color: #98a2b3;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.venue-review-toolbar .small-btn {
  min-height: 27px;
  padding: 0 8px;
  font-size: 10px;
}

.venue-review-toolbar .venue-primary-action {
  background: #162c4d !important;
  border-color: #162c4d !important;
}

.venue-review-toolbar .venue-submit-action:not(:disabled) {
  background: #df1e28 !important;
  border-color: #df1e28 !important;
}

.venue-results-pane-head {
  min-height: 58px;
  padding: 10px 12px;
}

.venue-results-workbench {
  grid-template-rows: auto auto minmax(145px, 1fr) auto;
  gap: 7px;
  padding: 9px 10px 10px;
}

.venue-section-filters {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.venue-section-filters::-webkit-scrollbar {
  display: none;
}

.venue-section-filters button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0 7px;
  border: 1px solid #dde5ed;
  border-radius: 999px;
  color: #667085;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}

.venue-section-filters button span {
  display: inline-grid;
  min-width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 999px;
  color: #667085;
  background: #edf2f7;
  font-size: 8px;
}

.venue-section-filters button.active {
  border-color: #bfd3e9;
  color: #075bc7;
  background: #eef6ff;
}

.venue-section-filters button.active span {
  color: #075bc7;
  background: #d9ebff;
}

.venue-section-scroll {
  gap: 5px;
  padding: 1px 3px 1px 0;
}

.venue-section-row {
  min-height: 43px;
  padding: 6px 7px;
  border-color: #edf1f5;
  background: #fff;
}

.venue-section-row:hover {
  border-color: #bdd4ea;
  background: #f8fbff;
}

.venue-section-row.selected {
  border-color: rgba(7, 91, 199, 0.42);
  background: #f2f8ff;
  box-shadow: inset 3px 0 0 #1469e8;
}

.venue-section-row.geometry,
.venue-section-row.ticket {
  border-color: #f2d5d3;
}

.venue-section-row > small.geometry,
.venue-section-row > small.ticket {
  color: #c53a32;
}

.venue-section-row > small.ready {
  color: #a96500;
}

.venue-section-row > small.reviewed {
  color: #087443;
}

.venue-selected-editor {
  border-color: #cfddea;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.045);
}

.venue-selected-editor-actions {
  gap: 5px;
}

.venue-selected-editor-actions .venue-preview-link {
  border-color: #c9ddee;
  color: #075bc7;
  background: #f2f8ff;
}

@media (max-width: 1180px) {
  .venue-studio-grid {
    height: auto;
    grid-template-columns: 1fr;
  }

  .venue-canvas-pane {
    min-height: 640px;
  }

  .venue-results-workbench {
    min-height: 480px;
  }
}

@media (max-width: 760px) {
  .venue-workbench-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .venue-workbench-shortcuts {
    max-width: 100%;
    overflow-x: auto;
  }

  .venue-toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  .venue-toolbar-group {
    padding-right: 0;
    border-right: 0;
  }
}

/* Seat-map studio refinement: keep one task visible at a time. */
.venue-studio-counts {
  align-items: center;
}

.venue-studio-counts em {
  margin-left: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.venue-studio-counts em.ready {
  color: #067647;
  background: #ecfdf3;
}

.venue-studio-counts em.needs-work {
  color: #b54708;
  background: #fff6ed;
}

.venue-results-pane-head {
  justify-content: space-between;
  gap: 10px;
}

.venue-results-pane-head > div:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.venue-pane-tabs {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px !important;
  padding: 2px;
  border: 1px solid #dce4ed;
  border-radius: 6px;
  background: #f6f8fb;
}

.venue-pane-tabs button {
  min-height: 25px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: #667085;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.venue-pane-tabs button.active {
  color: #1d2939;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.venue-results-workbench {
  grid-template-rows: auto minmax(170px, 1fr) auto;
}

.venue-map-editor .map-helper {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.venue-map-editor .map-helper strong {
  flex: 0 0 auto;
  font-size: 13px;
}

.venue-map-editor .map-helper span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-vertex-handle {
  stroke-width: 1.55;
}

.venue-review-errors {
  display: block;
  margin: 7px 0 0;
  border: 1px solid #f4cfcc;
  border-left: 3px solid #e60012;
  border-radius: 6px;
  background: #fffafa;
  padding: 0;
}

.venue-review-errors summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 9px;
  cursor: pointer;
  list-style: none;
}

.venue-review-errors summary::-webkit-details-marker {
  display: none;
}

.venue-review-errors summary::before {
  content: '›';
  color: #b42318;
  font-size: 17px;
  font-weight: 800;
  transition: transform 140ms ease;
}

.venue-review-errors[open] summary::before {
  transform: rotate(90deg);
}

.venue-review-errors summary b {
  flex: 0 0 auto;
  color: #b42318;
  font-size: 11px;
}

.venue-review-errors summary span {
  overflow: hidden;
  color: #8d5b56;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-review-error-list {
  display: grid;
  gap: 3px;
  padding: 0 10px 8px 19px;
}

.venue-review-error-list span {
  color: #b42318;
  font-size: 10px;
  line-height: 1.45;
}

.venue-review-error-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid #f8e1df;
  background: #fff;
}

.venue-review-error-actions span {
  color: #8d5b56;
  font-size: 10px;
}

.venue-review-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 0;
}

.venue-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.venue-detection-controls {
  min-width: 0;
}

.venue-detection-profile {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid #dbe4ed;
  border-radius: 6px;
  background: #fff;
}

.venue-detection-profile button {
  min-height: 23px;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  color: #667085;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.venue-detection-profile button:hover {
  color: #075bc7;
  background: #edf5ff;
}

.venue-detection-profile button.active {
  color: #fff;
  background: #162c4d;
}

.venue-toolbar-actions {
  margin-left: auto;
}

.venue-review-toolbar .accent-btn.small-btn {
  color: #fff !important;
  background: #111827 !important;
  border-color: #111827;
}

.venue-review-toolbar .venue-submit-action:not(:disabled) {
  background: #e60012 !important;
  border-color: #e60012;
}

.venue-selected-editor-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.venue-selected-editor-actions .small-btn {
  min-height: 25px;
  padding: 0 7px;
  color: #344054;
  font-size: 10px;
}

.venue-selected-editor-actions .small-btn.active {
  border-color: #e60012;
  color: #b42318;
  background: #fff1f0;
}

.venue-selected-alert {
  margin: -1px 0 8px;
  border-radius: 5px;
  color: #b54708;
  background: #fff6ed;
  padding: 6px 7px;
  font-size: 10px;
  line-height: 1.45;
}

.venue-results-pane > .venue-inline-preview {
  display: grid;
  min-height: 0;
  height: 100%;
  grid-template-rows: auto minmax(160px, 1fr) auto;
}

.venue-results-pane > .venue-inline-preview .venue-inline-preview-map {
  min-height: 0;
  height: auto;
}

@media (max-width: 760px) {
  .venue-map-editor .map-helper {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .venue-map-editor .map-helper span {
    overflow: visible;
    white-space: normal;
  }

  .venue-review-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .venue-toolbar-actions {
    width: 100%;
    margin-left: 0;
  }
}

/* Seat-map studio: dense review workflow, with the canvas and real ticket data in one view. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.venue-workbench {
  gap: 12px;
}

.venue-workbench-head {
  align-items: center;
}

.venue-workbench-head p {
  max-width: 760px;
}

.venue-preview-controls {
  align-items: center;
  flex: 0 0 auto;
}

.venue-editor-scale {
  display: inline-grid;
  min-width: 48px;
  height: 28px;
  place-items: center;
  border: 1px solid #d9e1eb;
  border-radius: 5px;
  color: #344054;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
}

.venue-studio-shell {
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

.venue-studio-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid #e9edf2;
  background: linear-gradient(100deg, #fbfcfe, #f6f8fb);
}

.venue-event-picker {
  display: grid;
  grid-template-columns: auto minmax(220px, 460px);
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.venue-event-picker select {
  min-width: 0;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #d5dee9;
  border-radius: 5px;
  color: #1d2939;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.venue-studio-counts {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #667085;
  white-space: nowrap;
}

.venue-studio-counts b {
  color: #e60012;
  font-size: 16px;
}

.venue-studio-counts span {
  font-size: 11px;
  font-weight: 700;
}

.venue-studio-counts i {
  width: 1px;
  height: 13px;
  margin: 0 5px;
  background: #d9e0e9;
}

.venue-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 430px);
  height: min(760px, calc(100vh - 166px));
  min-height: 560px;
}

.venue-canvas-pane {
  min-width: 0;
  min-height: 0;
  background: #fbfcfe;
}

.map-layout.single-canvas {
  display: block;
  height: 100%;
  padding: 12px;
}

.venue-map-editor {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
  flex-direction: column;
}

.map-layout:not(.single-canvas) .venue-map-editor {
  min-height: 620px;
}

.map-layout:not(.single-canvas) .venue-editor-viewport {
  min-height: 400px;
}

.venue-map-editor .map-helper {
  margin: 0;
  padding: 9px 11px;
  border-radius: 7px;
}

.venue-map-editor .map-helper span {
  line-height: 1.55;
}

.map-helper kbd,
.venue-edit-hint kbd {
  display: inline-block;
  min-width: 15px;
  margin: 0 1px;
  padding: 1px 4px;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 4px;
  color: #344054;
  background: #f8fafc;
  font: 800 10px/1.2 "Microsoft YaHei", "PingFang SC", sans-serif;
  text-align: center;
}

.venue-map-status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 8px;
  margin-top: 8px;
}

.venue-map-status-grid .venue-ai-status,
.venue-map-status-grid .venue-review-summary {
  min-width: 0;
  margin: 0;
  padding: 8px 10px;
  border-radius: 7px;
  box-shadow: none;
}

.venue-editor-viewport {
  position: relative;
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  place-items: center;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  cursor: grab;
  touch-action: none;
  background:
    linear-gradient(90deg, rgba(122, 143, 168, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(122, 143, 168, 0.12) 1px, transparent 1px),
    #eef3f7;
  background-size: 22px 22px;
}

.venue-editor-viewport.is-panning {
  cursor: grabbing;
}

.venue-editor-viewport.space-pan-ready {
  cursor: grab;
}

.venue-editor-canvas {
  width: 100%;
  max-height: calc(100% - 20px);
  margin: 0;
  flex: 0 0 auto;
  transform-origin: center center;
  transition: transform 80ms linear;
  will-change: transform;
}

.venue-editor-canvas img {
  user-select: none;
  pointer-events: none;
}

.venue-canvas-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 20;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 5px;
  color: #fff;
  background: rgba(16, 24, 40, 0.7);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.venue-edit-hint {
  margin: 6px 0 0;
}

.venue-review-toolbar {
  gap: 6px;
  margin-bottom: 0;
}

.venue-results-pane {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 1px solid #e5ebf1;
  background: #fff;
}

.venue-results-pane-head {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 9px 12px;
  border-bottom: 1px solid #edf1f5;
}

.venue-results-pane-head div {
  display: grid;
  gap: 2px;
}

.venue-results-pane-head strong {
  color: #182230;
  font-size: 13px;
}

.venue-results-pane-head span {
  overflow: hidden;
  color: #667085;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-results-workbench {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(92px, 1fr) auto;
  gap: 8px;
  padding: 10px 12px;
  overflow: hidden;
}

.venue-section-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.venue-section-search {
  min-width: 0;
  flex: 1 1 auto;
}

.venue-section-search input {
  width: 100%;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #d8e0e9;
  border-radius: 5px;
  color: #344054;
  background: #fbfcfe;
  font-size: 11px;
  outline: 0;
}

.venue-section-search input:focus {
  border-color: #8eb9ed;
  box-shadow: 0 0 0 3px rgba(33, 102, 184, 0.08);
}

.venue-section-search-row > b {
  flex: 0 0 auto;
  color: #667085;
  font-size: 11px;
}

.venue-section-scroll {
  display: grid;
  min-height: 0;
  gap: 4px;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 3px;
  scrollbar-color: #b6c2d0 transparent;
}

.venue-section-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  grid-template-areas: "color copy price" "color copy state";
  column-gap: 8px;
  row-gap: 1px;
  align-items: center;
  padding: 6px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #344054;
  background: #f8fafc;
  text-align: left;
}

.venue-section-row:hover {
  border-color: #c5d7ea;
  background: #f4f8fc;
}

.venue-section-row.selected {
  border-color: rgba(230, 0, 18, 0.34);
  background: #fff7f7;
  box-shadow: inset 3px 0 0 #e60012;
}

.venue-section-color {
  grid-area: color;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  color: #fff;
  background: var(--section-color, #5b9ec7);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.16);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.venue-section-row > span {
  grid-area: copy;
  display: grid;
  min-width: 0;
  gap: 1px;
}

.venue-section-row > span strong,
.venue-section-row > span em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-section-row > span strong {
  color: #1d2939;
  font-size: 11px;
}

.venue-section-row > span em {
  color: #7b8798;
  font-size: 9px;
  font-style: normal;
}

.venue-section-row > b {
  grid-area: price;
  color: #e60012;
  font-size: 11px;
}

.venue-section-row > small {
  grid-area: state;
  justify-self: end;
  color: #b54708;
  font-size: 9px;
  font-weight: 800;
}

.venue-section-row > small.reviewed {
  color: #067647;
}

.venue-selected-editor {
  border: 1px solid #dbe4ee;
  border-radius: 7px;
  background: #fbfcfe;
  padding: 9px;
}

.venue-selected-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.venue-selected-editor-head div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.venue-selected-editor-head span {
  color: #7a8797;
  font-size: 9px;
  font-weight: 800;
}

.venue-selected-editor-head strong {
  overflow: hidden;
  color: #1d2939;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-selected-color {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--section-color, #5b9ec7);
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.22);
}

.venue-selected-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 7px;
}

.venue-selected-fields .full {
  grid-column: 1 / -1;
}

.venue-selected-fields .field,
.venue-selected-advanced .field {
  gap: 3px;
}

.venue-selected-fields .field > span,
.venue-selected-advanced .field > span {
  color: #667085;
  font-size: 9px;
  font-weight: 800;
}

.venue-selected-fields .mini-input,
.venue-selected-fields select.mini-input,
.venue-selected-advanced .mini-input {
  width: 100%;
  height: 27px;
}

.venue-selected-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #667085;
  font-size: 9px;
}

.venue-selected-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-selected-meta b {
  flex: 0 0 auto;
  color: #e60012;
  font-size: 13px;
}

.venue-selected-advanced {
  margin-top: 7px;
}

.venue-selected-advanced summary {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.venue-selected-advanced .advanced-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 7px;
}

.section-color-input {
  padding: 2px !important;
}

.venue-inline-preview {
  border-top: 1px solid #e6edf3;
  background: #f8fafc;
}

.venue-inline-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
}

.venue-inline-preview-head > div:first-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.venue-inline-preview-head strong {
  color: #1d2939;
  font-size: 11px;
}

.venue-inline-preview-head span {
  overflow: hidden;
  color: #7a8797;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-inline-preview-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
}

.venue-inline-preview-actions .icon-btn {
  display: grid;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  place-items: center;
  padding: 0;
  border-radius: 5px;
  font-size: 14px;
}

.venue-inline-preview-actions .mini-preview-scale {
  min-width: 34px;
  color: #475467;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.venue-inline-preview-map {
  height: 190px;
  margin: 0 12px;
  border: 1px solid #dce5ee;
  border-radius: 7px;
  background-size: 18px 18px;
}

.venue-inline-preview-canvas {
  inset: 9px;
  width: calc(100% - 18px);
  max-height: calc(100% - 18px);
  border-radius: 5px;
}

.venue-inline-preview-canvas img,
.venue-inline-preview-canvas .stage-fallback {
  border-radius: 5px;
}

.mini-zone.purple,
.mini-zone.amber,
.mini-zone.red,
.mini-zone.cyan,
.mini-zone.slate {
  background: transparent;
}

.venue-inline-selection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "name state";
  gap: 1px 8px;
  align-items: center;
  padding: 8px 12px 10px;
}

.venue-inline-selection > span {
  grid-area: name;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-inline-selection > span i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--section-color, #5b9ec7);
}

.venue-inline-selection b {
  grid-area: price;
  color: #e60012;
  font-size: 14px;
}

.venue-inline-selection em {
  grid-area: state;
  justify-self: end;
  color: #667085;
  font-size: 9px;
  font-style: normal;
}

.section-dot.purple { background: #eee8ff; color: #6d3bc5; }
.section-dot.amber { background: #fff3db; color: #a75a00; }
.section-dot.red { background: #fff0ef; color: #b42318; }
.section-dot.cyan { background: #e4f8fb; color: #047481; }
.section-dot.slate { background: #eef1f4; color: #475467; }

.venue-drawer-sections {
  min-width: 0;
  overflow: auto;
}

@media (max-width: 1180px) {
  .venue-studio-grid {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .venue-canvas-pane {
    min-height: 620px;
  }

  .venue-results-pane {
    border-top: 1px solid #e5ebf1;
    border-left: 0;
  }

  .venue-results-workbench {
    min-height: 470px;
  }
}

@media (max-width: 680px) {
  .venue-workbench-head,
  .venue-studio-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .venue-event-picker {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .venue-event-picker select {
    width: 100%;
  }

  .venue-map-status-grid {
    grid-template-columns: 1fr;
  }

  .venue-canvas-pane {
    min-height: 560px;
  }

  .venue-selected-fields,
  .venue-selected-advanced .advanced-grid {
    grid-template-columns: 1fr;
  }

  .venue-selected-fields .full {
    grid-column: auto;
  }
}

/* Login page must not show the authenticated admin chrome. */
body.admin-login-mode {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(230, 0, 18, 0.06), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 149, 0, 0.08), transparent 28%),
    linear-gradient(135deg, #f7f8fb 0%, #ffffff 52%, #f4f6f9 100%);
}

body.admin-login-mode .app-shell {
  grid-template-columns: 1fr;
  min-height: 100vh;
}

body.admin-login-mode .sidebar,
body.admin-login-mode .topbar .user-pill,
body.admin-login-mode .topbar .top-actions {
  display: none !important;
}

body.admin-login-mode .main {
  min-width: 0;
}

body.admin-login-mode .topbar {
  width: min(980px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 34px 0 0;
  border: 0;
  background: transparent;
}

body.admin-login-mode .topbar .crumb {
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

body.admin-login-mode .topbar h1 {
  margin-top: 6px;
  color: rgba(16, 24, 40, 0.88);
  font-size: 32px;
  font-weight: 650;
  letter-spacing: 0;
}

body.admin-login-mode .content {
  width: min(980px, calc(100vw - 64px));
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: 0;
  display: grid;
  place-items: center;
}

body.admin-login-mode .login-panel {
  width: 100%;
  min-height: auto;
  display: grid;
  place-items: center;
}

body.admin-login-mode .login-card-admin {
  width: min(560px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(18px);
}

/* BWTICKETS design system pass */
:root {
  --text: #20242c;
  --dark: #20242c;
  --accent: #e60012;
  --accent-strong: #c60010;
  --accent-soft: #fff3f0;
  --brand-orange: #ff8a00;
  --shadow: 0 12px 32px rgba(20, 24, 35, 0.06);
  --radius: 8px;
}

body {
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.brand strong,
.stat-card strong,
.classic-title-row strong,
.panel-head h3,
.ops-row strong,
.ops-row b {
  font-weight: 650 !important;
}

.nav-item.active,
.dark-btn,
.accent-btn,
.ghost-btn,
.small-btn,
.danger-btn {
  font-weight: 600 !important;
}

.price,
.tag {
  color: var(--accent);
}

.dark-btn,
.accent-btn {
  background: var(--dark);
  box-shadow: 0 8px 18px rgba(20, 24, 35, 0.1);
}

.accent-btn.primary,
.pill-active,
.segmented .active {
  background: linear-gradient(90deg, var(--accent), var(--brand-orange));
}

.login-panel {
  min-height: calc(100vh - 128px);
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-card-admin {
  position: relative;
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(20, 24, 35, 0.09);
  padding: 24px;
}

.login-logo-text {
  position: absolute;
  right: -10px;
  top: -22px;
  color: rgba(230, 0, 18, 0.06);
  font-size: 120px;
  font-weight: 650;
  line-height: 1;
  pointer-events: none;
}

.login-form {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.login-form .dark-btn {
  width: 100%;
  min-height: 42px;
}

.stat-card {
  min-height: 76px;
  padding: 10px 12px;
}

.stat-card strong {
  margin-top: 7px;
  font-size: 21px;
}

/* Final compact override: smaller, calmer merchant backend */
body {
  font-size: 13px;
}

.app-shell {
  grid-template-columns: 196px minmax(0, 1fr);
}

.sidebar {
  padding: 18px 14px 14px;
}

.brand {
  height: 44px;
  gap: 9px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.brand strong {
  font-size: 14px;
}

.brand div > span {
  font-size: 11px;
}

.nav-list {
  gap: 4px;
  margin-top: 24px;
}

.nav-group {
  margin: 14px 8px 3px;
  font-size: 10px;
}

.nav-item {
  min-height: 33px;
  border-radius: 5px;
  padding: 0 10px;
  font-size: 13px;
}

.topbar {
  min-height: 82px;
  padding: 18px 24px 8px;
}

h1 {
  margin-top: 4px;
  font-size: 23px;
}

h3 {
  font-size: 15px;
}

.content {
  max-width: 1320px;
  padding: 0 24px 30px;
}

.grid {
  gap: 12px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.panel-head {
  min-height: 48px;
  padding: 11px 14px;
}

.panel-head p {
  margin-top: 3px;
  font-size: 12px;
}

.panel-body {
  padding: 12px 14px 14px;
}

.dark-btn,
.accent-btn,
.ghost-btn,
.danger-btn,
.small-btn,
.icon-btn {
  min-height: 30px;
  border-radius: 5px;
  padding: 0 11px;
  font-size: 12px;
  box-shadow: none;
}

.small-btn {
  min-height: 28px;
  padding: 0 9px;
}

.mini-input {
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.mini-textarea {
  min-height: 58px;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.45;
}

.setting-row {
  min-height: 40px;
  gap: 10px;
  padding: 8px 10px;
}

.setting-row .mini-input {
  max-width: 62%;
}

.city-list-panel .panel-body {
  padding: 0;
}

.city-group-grid {
  display: block;
}

.city-group-table {
  display: grid;
}

.city-group-head,
.city-group-row {
  display: grid;
  grid-template-columns: 116px minmax(260px, 1fr) minmax(210px, 0.72fr) 78px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
}

.city-group-head {
  min-height: 34px;
  border-bottom: 1px solid #e5e9f0;
  background: #f8fafc;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
}

.city-group-row {
  min-height: 76px;
  border-bottom: 1px solid #eef1f5;
}

.city-group-row:last-child {
  border-bottom: 0;
}

.city-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.city-chip-list span {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  border: 1px solid #e2e7ef;
  border-radius: 999px;
  background: #f8fafc;
  padding: 0 7px;
  color: #475467;
  font-size: 11px;
  font-weight: 850;
}

.city-title-input {
  font-weight: 900;
}

.city-cities-input {
  min-height: 50px;
}

.city-setting-panel .setting-row {
  border-radius: 6px;
  background: #fbfcfe;
}

.city-setting-panel .setting-row span {
  min-width: 86px;
}

.compact-settings {
  gap: 8px;
}

.stat-card {
  min-height: 86px;
  padding: 13px 14px;
}

.stat-card strong {
  margin-top: 9px;
  font-size: 24px;
}

.stat-card small {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .city-group-head,
  .city-group-row {
    grid-template-columns: 100px minmax(220px, 1fr) 76px;
  }

  .city-chip-list {
    grid-column: 2 / -1;
  }
}

/* Compact merchant console refinement */
:root {
  --radius: 6px;
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

body {
  font-size: 13px;
  background: #f3f5f8;
}

.app-shell {
  grid-template-columns: 196px minmax(0, 1fr);
}

.sidebar {
  padding: 18px 14px 14px;
}

.brand {
  height: 44px;
  gap: 9px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.brand strong {
  font-size: 14px;
}

.brand div > span {
  font-size: 11px;
}

.nav-list {
  gap: 4px;
  margin-top: 24px;
}

.nav-group {
  margin: 14px 8px 3px;
  font-size: 10px;
}

.nav-item {
  min-height: 33px;
  border-radius: 5px;
  padding: 0 10px;
  font-size: 13px;
}

.side-note {
  right: 14px;
  bottom: 14px;
  left: 14px;
}

.logout-btn {
  height: 32px;
  font-size: 12px;
}

.topbar {
  min-height: 86px;
  padding: 20px 24px 8px;
}

.crumb {
  font-size: 11px;
}

h1 {
  margin-top: 4px;
  font-size: 23px;
}

h2 {
  font-size: 19px;
}

h3 {
  font-size: 15px;
}

.user-pill {
  padding: 7px 13px;
  font-size: 12px;
}

.content {
  max-width: 1360px;
  padding: 0 24px 30px;
}

.grid {
  gap: 12px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
}

.panel,
.stat-card,
.editor-block,
.upload-box,
.schema-item,
.empty-state {
  border-radius: 7px;
  box-shadow: none;
}

.panel-head {
  min-height: 48px;
  gap: 12px;
  padding: 12px 14px;
}

.panel-head p {
  margin-top: 3px;
  font-size: 12px;
}

.panel-body {
  padding: 12px 14px 14px;
}

.stat-card {
  min-height: 86px;
  padding: 13px 14px;
}

.stat-card strong {
  margin-top: 9px;
  font-size: 24px;
}

.stat-card small {
  margin-top: 8px;
}

.dark-btn,
.accent-btn,
.ghost-btn,
.danger-btn,
.small-btn,
.icon-btn {
  min-height: 30px;
  border-radius: 5px;
  padding: 0 11px;
  font-size: 12px;
}

.small-btn {
  min-height: 28px;
  padding: 0 9px;
}

.search-box,
.select-box,
.field input,
.field select {
  height: 34px;
}

.mini-input {
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.mini-textarea {
  min-height: 58px;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.45;
}

.setting-row {
  min-height: 42px;
  gap: 10px;
  padding: 8px 10px;
}

.setting-row .mini-input {
  max-width: 62%;
}

.ops-head,
.ops-row {
  gap: 9px;
  padding: 9px 11px;
}

.ops-row {
  min-height: 46px;
}

.template-card,
.city-group-card {
  gap: 8px;
  padding: 10px;
}

.tag,
.mini-pill,
.city-group-card span,
.keyword-cloud span,
.field-chip-row span {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.admin-compact-page .panel-head {
  background: #fbfcfe;
}

.city-admin-layout {
  align-items: start;
}

.city-list-panel .panel-body {
  padding: 0;
}

.city-group-table {
  display: grid;
}

.city-group-head,
.city-group-row {
  display: grid;
  grid-template-columns: 120px minmax(260px, 1fr) minmax(210px, 0.75fr) 82px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
}

.city-group-head {
  min-height: 36px;
  border-bottom: 1px solid #e5e9f0;
  background: #f8fafc;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
}

.city-group-row {
  min-height: 82px;
  border-bottom: 1px solid #eef1f5;
}

.city-group-row:last-child {
  border-bottom: 0;
}

.city-title-input {
  font-weight: 900;
}

.city-cities-input {
  min-height: 52px;
}

.city-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.city-chip-list span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid #e2e7ef;
  border-radius: 999px;
  background: #f8fafc;
  padding: 0 8px;
  color: #475467;
  font-size: 11px;
  font-weight: 850;
}

.compact-settings {
  gap: 8px;
}

.city-setting-panel .setting-row {
  border-radius: 6px;
  background: #fbfcfe;
}

.city-setting-panel .setting-row span {
  min-width: 88px;
}

@media (max-width: 1180px) {
  .city-group-head,
  .city-group-row {
    grid-template-columns: 100px minmax(220px, 1fr) 78px;
  }

  .city-chip-list {
    grid-column: 2 / -1;
  }
}

.simple-banner-card .merchant-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Classic multifunction admin layout */
:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #dfe4ea;
  --line-strong: #cfd6df;
  --text: #111827;
  --muted: #5f6b7a;
  --faint: #8a96a6;
  --accent: #111111;
  --accent-strong: #111111;
  --accent-soft: #f1f2f4;
  --blue: #2f63ff;
  --green: #1b8a50;
  --amber: #b56b11;
  --dark: #111111;
  --shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  --radius: 7px;
}

body {
  background: #eef1f5;
  color: #121821;
  font-size: 14px;
}

.app-shell {
  grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
  border-right: 1px solid #d9dee6;
  background: #ffffff;
  padding: 26px 16px 18px;
  backdrop-filter: none;
}

.brand {
  height: 52px;
  gap: 11px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  background: #ffffff;
  color: #e11d48;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.14);
}

.brand strong {
  font-size: 15px;
  font-weight: 900;
}

.brand div > span {
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 700;
}

.nav-list {
  gap: 8px;
  margin-top: 30px;
}

.nav-group {
  margin: 18px 10px 4px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 900;
}

.nav-item {
  justify-content: flex-start;
  min-height: 37px;
  border-radius: 5px;
  padding: 0 12px;
  color: #263142;
  font-size: 14px;
  font-weight: 700;
}

.nav-item:hover {
  background: #f2f4f7;
}

.nav-item.active {
  background: #111111;
  color: #ffffff;
  font-weight: 900;
}

.side-note {
  right: 16px;
  bottom: 20px;
  left: 16px;
  border: 0;
  background: transparent;
  padding: 0;
}

.side-note > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.side-note strong {
  display: inline;
  margin: 0;
  color: #111827;
  font-size: 12px;
}

.logout-btn {
  width: 100%;
  height: 36px;
  border: 1px solid #d9dee6;
  border-radius: 7px;
  background: #ffffff;
  color: #111827;
  font-weight: 900;
}

.main {
  min-height: 100vh;
  background: #f3f5f8;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 118px;
  align-items: start;
  gap: 18px;
  border-bottom: 0;
  background: transparent;
  padding: 30px 28px 12px;
  backdrop-filter: none;
}

.crumb {
  color: #697586;
  font-size: 12px;
}

h1 {
  margin-top: 8px;
  color: #111827;
  font-size: 26px;
  font-weight: 950;
}

.user-pill {
  align-self: start;
  min-width: 88px;
  border: 1px solid #dfe4ea;
  border-radius: 999px;
  background: #ffffff;
  padding: 8px 16px;
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.top-actions {
  align-self: start;
}

.content {
  max-width: 1440px;
  padding: 0 28px 38px;
}

.dark-btn,
.accent-btn {
  min-height: 34px;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

.ghost-btn,
.small-btn,
.icon-btn {
  min-height: 34px;
  border-radius: 6px;
  border-color: #d8dee7;
  background: #ffffff;
  box-shadow: none;
}

.danger-btn {
  min-height: 34px;
  border-radius: 6px;
  border-color: #f0c7c7;
  background: #fffafa;
  color: #cf222e;
}

.dark-btn:hover,
.accent-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.small-btn:hover,
.icon-btn:hover {
  transform: none;
  filter: brightness(0.98);
}

.classic-filter-panel {
  width: 100%;
  margin: 0 0 14px;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.classic-filter-top,
.classic-filter-bottom {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 10px;
  margin-bottom: 8px;
}

.classic-filter-bottom {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
}

.search-box,
.select-box {
  height: 40px;
  border-radius: 6px;
  border-color: #d5dbe5;
  color: #111827;
  box-shadow: none;
}

.search-box {
  min-width: 0;
}

.select-box.compact {
  width: 250px;
}

.segmented {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 4px;
  border: 1px solid #d5dbe5;
  border-radius: 6px;
  background: #f7f8fa;
  padding: 3px;
  white-space: nowrap;
}

.segmented button {
  height: 32px;
  border-radius: 6px;
  background: transparent;
  padding: 0 13px;
  color: #111827;
  font-weight: 900;
}

.segmented button.active {
  background: #111827;
  color: #ffffff;
}

.batch-panel,
.event-count-strip {
  display: flex;
  align-items: center;
  border: 1px solid #dde3eb;
  border-radius: 8px;
  background: #ffffff;
}

.batch-panel {
  min-height: 76px;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 16px;
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.checkline input,
.card-check input {
  width: 14px;
  height: 14px;
  accent-color: #111111;
}

.muted-copy {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.batch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.event-count-strip {
  min-height: 40px;
  gap: 15px;
  margin-bottom: 10px;
  padding: 0 13px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.classic-list-head {
  display: grid;
  grid-template-columns: 30px minmax(280px, 1.65fr) repeat(4, minmax(96px, 0.5fr)) minmax(312px, auto);
  align-items: center;
  gap: 14px;
  min-height: 38px;
  border: 1px solid #dde3eb;
  border-radius: 8px 8px 0 0;
  background: #f9fafb;
  padding: 0 16px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.classic-list-head span:last-child {
  text-align: right;
}

.classic-event-list {
  display: grid;
  gap: 8px;
}

.classic-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(280px, 1.65fr) repeat(4, minmax(96px, 0.5fr)) minmax(312px, auto);
  align-items: center;
  gap: 14px;
  min-height: 100px;
  overflow: hidden;
  border: 1px solid #dde3eb;
  border-left: 4px solid #c7ced8;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px 16px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.classic-event-card:hover {
  border-color: #b9c2cf;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.classic-event-card.yellow,
.classic-event-card.cream,
.classic-event-card.cyan,
.classic-event-card.china,
.classic-event-card.overseas {
  background: #ffffff;
}

.classic-event-card.china {
  border-left-color: #2f3744;
}

.classic-event-card.overseas {
  border-left-color: #8a94a3;
}

.card-check {
  display: grid;
  place-items: center;
}

.classic-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.classic-title-row strong {
  max-width: 360px;
  overflow: hidden;
  color: #111111;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poi {
  border-radius: 6px;
  border: 1px solid #e2e7ef;
  background: #f7f8fa;
  padding: 4px 9px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.mini-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid #e2e7ef;
  border-radius: 999px;
  background: #f8fafc;
  padding: 0 9px;
  color: #475467;
  font-size: 11px;
  font-weight: 900;
}

.mini-pill.green,
.mini-pill.ready {
  border-color: #d8dee7;
  background: #ffffff;
  color: #344054;
}

.mini-pill.orange,
.mini-pill.pending {
  border-color: #d8dee7;
  background: #ffffff;
  color: #344054;
}

.classic-subline {
  margin-top: 8px;
  color: #111111;
  font-size: 12px;
  font-weight: 800;
}

.classic-metric span,
.classic-metric strong {
  display: block;
}

.classic-metric span {
  color: #657186;
  font-size: 11px;
  font-weight: 800;
}

.classic-metric strong {
  margin-top: 5px;
  color: #111111;
  font-size: 13px;
  font-weight: 950;
}

.classic-metric .price {
  color: #b42318;
  font-size: 15px;
}

.linkish {
  color: #344054 !important;
}

.classic-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
}

.classic-actions .small-btn {
  min-width: 54px;
  background: #ffffff;
}

.tag {
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid #e2e7ef;
  background: #f8fafc;
  padding: 0 9px;
  color: #475467;
  font-size: 11px;
}

.tag.blue,
.tag.green,
.tag.amber,
.tag.red {
  background: #f8fafc;
  color: #475467;
}

.panel,
.stat-card,
.editor-block,
.upload-box,
.schema-item,
.empty-state,
.banner-card,
.category-row {
  box-shadow: none;
}

.panel-head,
.editor-title {
  background: #ffffff;
}

.drawer {
  width: min(980px, 92vw);
}

.drawer-head,
.drawer-foot {
  padding: 16px 20px;
}

.drawer-body {
  padding: 14px 18px 22px;
}

@media (max-width: 1180px) {
  .classic-event-card {
    grid-template-columns: 28px minmax(260px, 1fr) repeat(2, minmax(110px, 0.45fr));
  }

  .simple-banner-card,
  .home-preview-strip,
  .business-region-strip {
    grid-template-columns: 1fr;
  }

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

  .business-region-strip div {
    border-right: 0;
    border-bottom: 1px solid #dde3eb;
  }

  .business-region-strip div:last-child {
    border-bottom: 0;
  }

  .classic-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}

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

  .topbar {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 20px 18px 12px;
  }

  .content {
    padding: 0 18px 28px;
  }

  .classic-filter-top,
  .classic-filter-bottom {
    grid-template-columns: 1fr;
  }

  .batch-panel,
  .event-count-strip {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 13px;
  }

  .classic-event-card {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
  }

  .classic-metric,
  .classic-actions {
    grid-column: 2 / -1;
  }

  .classic-actions {
    flex-wrap: wrap;
  }

  .section-card,
  .section-fields,
  .advanced-grid,
  .merchant-fields,
  .simple-category-card,
  .simple-card-actions,
  .simple-hint {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .venue-ai-status.loading,
  .map-analyzing-layer i {
    animation: none !important;
  }

  .venue-review-polygon,
  .mini-seat-map-canvas,
  .mini-zone,
  .toast {
    transition: none !important;
  }
}

/* True final scale reset: keep admin compact */
body {
  font-size: 12px;
}

.app-shell {
  grid-template-columns: 178px minmax(0, 1fr);
}

.sidebar {
  padding: 14px 12px;
}

.brand {
  height: 36px;
  gap: 8px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.brand strong {
  font-size: 13px;
}

.brand div > span,
.crumb,
.panel-head p,
.muted-copy {
  font-size: 11px;
}

.nav-list {
  gap: 3px;
  margin-top: 20px;
}

.nav-group {
  margin: 12px 8px 3px;
  font-size: 10px;
}

.nav-item {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.topbar {
  min-height: 70px;
  padding: 14px 20px 6px;
}

h1 {
  margin-top: 3px;
  font-size: 20px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 14px;
}

.user-pill {
  padding: 6px 11px;
  font-size: 11px;
}

.content {
  max-width: 1240px;
  padding: 0 20px 24px;
}

.grid,
.classic-event-list,
.settings-list,
.template-list,
.compact-list {
  gap: 8px;
}

.panel-head {
  min-height: 42px;
  padding: 9px 12px;
}

.panel-body {
  padding: 10px 12px 12px;
}

.classic-filter-panel {
  margin-bottom: 10px;
  padding: 10px;
}

.classic-filter-top,
.classic-filter-bottom {
  gap: 8px;
  margin-bottom: 7px;
}

.search-box,
.select-box {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.segmented {
  height: 32px;
  padding: 2px;
}

.segmented button {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
}

.dark-btn,
.accent-btn,
.ghost-btn,
.danger-btn,
.small-btn,
.icon-btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 5px;
  box-shadow: none;
}

.batch-panel {
  min-height: 48px;
  margin-bottom: 8px;
  padding: 10px 12px;
}

.event-count-strip {
  min-height: 32px;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 11px;
  font-size: 11px;
}

.classic-list-head {
  grid-template-columns: 24px minmax(220px, 1.55fr) 92px 82px 92px 112px 250px;
  min-height: 30px;
  gap: 10px;
  padding: 0 11px;
  font-size: 11px;
}

.classic-event-card {
  grid-template-columns: 24px minmax(220px, 1.55fr) 92px 82px 92px 112px 250px;
  min-height: 66px;
  gap: 10px;
  border-left-width: 3px;
  border-radius: 6px;
  padding: 8px 11px;
}

.classic-title-row strong {
  max-width: 310px;
  font-size: 13px;
}

.pill-row {
  gap: 5px;
  margin-top: 5px;
}

.tag,
.mini-pill {
  min-height: 18px;
  padding: 0 7px;
  font-size: 10px;
}

.classic-subline {
  margin-top: 5px;
  font-size: 11px;
}

.classic-metric span {
  font-size: 10px;
}

.classic-metric strong {
  margin-top: 3px;
  font-size: 12px;
}

.classic-metric .price {
  font-size: 13px;
}

.classic-actions {
  gap: 5px;
}

.classic-actions .small-btn {
  min-width: 44px;
}

.mini-input {
  height: 28px;
  padding: 0 7px;
  font-size: 12px;
}

.mini-textarea {
  min-height: 48px;
  padding: 6px 7px;
  font-size: 12px;
}

.city-group-head,
.city-group-row {
  grid-template-columns: 104px minmax(220px, 1fr) minmax(180px, 0.7fr) 70px;
  gap: 8px;
  padding: 7px 10px;
}

.city-group-row {
  min-height: 64px;
}

.city-chip-list span {
  min-height: 18px;
  padding: 0 6px;
  font-size: 10px;
}
