:root {
  --bg: #020b13;
  --panel: rgba(5, 25, 40, 0.88);
  --panel-2: rgba(7, 36, 54, 0.84);
  --line: rgba(33, 230, 255, 0.34);
  --line-soft: rgba(33, 230, 255, 0.16);
  --cyan: #21e6ff;
  --teal: #23ffd1;
  --green: #50ff9a;
  --yellow: #ffd95a;
  --red: #ff4d64;
  --text: #e9fbff;
  --muted: #83abba;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1280px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 46% 20%, rgba(33, 230, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #020812, #052033 48%, #020812);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  background: rgba(2, 12, 21, 0.92);
  border-right: 1px solid var(--line);
  box-shadow: inset -18px 0 40px rgba(33, 230, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-weight: 900;
  box-shadow: 0 0 16px rgba(35, 255, 209, 0.34), inset 0 0 16px rgba(35, 255, 209, 0.12);
  clip-path: polygon(12% 0, 100% 0, 100% 72%, 72% 100%, 0 100%, 0 12%);
}

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

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

.brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 6px;
  padding: 18px 0;
}

.nav-list button {
  height: 42px;
  padding: 0 14px;
  color: #cfeaf1;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-list button:hover,
.nav-list button.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(33, 230, 255, 0.18), rgba(33, 230, 255, 0.04));
  border-color: rgba(33, 230, 255, 0.32);
  box-shadow: inset 3px 0 0 var(--teal);
}

.deploy-card {
  margin-top: auto;
  padding: 14px;
  background: rgba(33, 230, 255, 0.07);
  border: 1px solid var(--line-soft);
}

.deploy-card span,
.deploy-card em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.deploy-card strong {
  display: block;
  margin: 8px 0;
  color: var(--teal);
  font-size: 20px;
}

.workspace {
  padding: 22px;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--teal);
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 4px;
  font-size: 30px;
  text-shadow: 0 0 16px rgba(33, 230, 255, 0.42);
}

h2 {
  margin-top: 4px;
  font-size: 21px;
}

h3 {
  font-size: 18px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  width: 300px;
  height: 40px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  border: 1px solid var(--line-soft);
  background: rgba(3, 18, 30, 0.82);
}

.search-box span {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

input,
select {
  height: 40px;
  min-width: 150px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(3, 18, 30, 0.82);
  border: 1px solid var(--line-soft);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(33, 230, 255, 0.12);
}

button {
  height: 38px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(33, 230, 255, 0.08);
  border: 1px solid rgba(33, 230, 255, 0.26);
  cursor: pointer;
}

.ghost-link {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text);
  text-decoration: none;
  background: rgba(33, 230, 255, 0.08);
  border: 1px solid rgba(33, 230, 255, 0.26);
}

.primary-btn {
  color: #001018;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(35, 255, 209, 0.24);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.summary-card,
.panel {
  background: linear-gradient(180deg, rgba(6, 35, 55, 0.88), rgba(3, 16, 28, 0.92));
  border: 1px solid var(--line-soft);
  box-shadow: 0 0 22px rgba(33, 230, 255, 0.08), inset 0 0 34px rgba(33, 230, 255, 0.05);
}

.summary-card {
  height: 116px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 0 22px;
  border-left: 3px solid var(--cyan);
}

.summary-card span,
.summary-card em {
  color: var(--muted);
  font-style: normal;
}

.summary-card strong {
  color: #fff;
  font-family: Consolas, monospace;
  font-size: 38px;
}

.summary-card.warn {
  border-left-color: var(--yellow);
}

.summary-card.warn strong {
  color: var(--yellow);
}

.summary-card.danger {
  border-left-color: var(--red);
}

.summary-card.danger strong {
  color: var(--red);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 390px;
  gap: 16px;
  margin-bottom: 16px;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 390px;
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  min-width: 0;
}

.panel-head {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(2, 16, 28, 0.58);
}

.panel-head.compact {
  height: 62px;
}

.panel-actions {
  display: flex;
  gap: 10px;
}

.site-table {
  padding: 14px;
}

.data-table {
  padding: 14px;
  overflow-x: auto;
}

.data-row {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(120px, 1fr));
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(33, 230, 255, 0.1);
}

.data-row.header {
  min-height: 42px;
  color: var(--muted);
  background: rgba(33, 230, 255, 0.06);
  border-bottom: 1px solid var(--line-soft);
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.7fr 0.7fr 1.2fr 190px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(33, 230, 255, 0.1);
}

.table-row.header {
  min-height: 42px;
  color: var(--muted);
  background: rgba(33, 230, 255, 0.06);
  border-bottom: 1px solid var(--line-soft);
}

.table-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.table-row small {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  height: 26px;
  padding: 0 10px;
  color: var(--green);
  border: 1px solid currentColor;
  background: rgba(80, 255, 154, 0.08);
}

.tag.draft {
  color: var(--yellow);
}

.tag.off {
  color: #8b9aa1;
}

.tag.danger {
  color: var(--red);
  background: rgba(255, 77, 100, 0.08);
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions button {
  height: 30px;
  padding: 0 10px;
}

.row-actions .danger-btn {
  color: var(--red);
  border-color: rgba(255, 77, 100, 0.45);
  background: rgba(255, 77, 100, 0.08);
}

.user-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px 0;
}

.user-filters label {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.user-filters span {
  color: var(--muted);
  font-size: 12px;
}

.user-dialog {
  width: min(720px, calc(100vw - 28px));
  padding: 0;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.user-dialog::backdrop {
  background: rgba(0, 8, 15, 0.72);
}

.user-dialog-form {
  display: grid;
  gap: 16px;
}

.user-dialog .panel-head {
  padding-right: 12px;
}

.dialog-close {
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-soft);
  cursor: pointer;
}

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

.user-form-grid label {
  display: grid;
  gap: 7px;
}

.user-form-grid label span {
  color: var(--muted);
  font-size: 12px;
}

.user-form-grid input,
.user-form-grid select {
  width: 100%;
}

.dialog-error {
  min-height: 20px;
  margin: 0;
  padding: 0 16px;
  color: var(--red);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 16px 16px;
}

.dialog-actions button {
  min-height: 38px;
  padding: 0 14px;
}

.management-note {
  margin: 0;
  padding: 14px 16px 0;
  color: var(--muted);
  line-height: 1.5;
}

.create-panel {
  overflow: hidden;
}

.config-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.config-form label {
  display: grid;
  gap: 7px;
}

.config-form label span {
  color: var(--muted);
  font-size: 13px;
}

.config-form input,
.config-form select {
  width: 100%;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 8px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
}

.template-card {
  min-height: 320px;
  padding: 16px;
}

.template-preview {
  height: 128px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--teal);
  background:
    linear-gradient(rgba(33, 230, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 230, 255, 0.12) 1px, transparent 1px),
    rgba(33, 230, 255, 0.06);
  background-size: 22px 22px;
  border: 1px solid rgba(33, 230, 255, 0.24);
}

.template-card p {
  min-height: 48px;
  color: var(--muted);
  line-height: 1.6;
}

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

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(3, 18, 30, 0.62);
  border: 1px solid var(--line-soft);
}

.filter-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.inline-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px 0;
}

.floating-entry {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.health-list {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.health-list div {
  position: relative;
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr 52px;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.health-list span,
.health-list strong {
  position: relative;
  z-index: 1;
}

.health-list strong {
  color: var(--teal);
  font-family: Consolas, monospace;
  font-size: 24px;
}

.health-list i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, rgba(33, 230, 255, 0.24), rgba(35, 255, 209, 0.12));
  border-right: 2px solid var(--teal);
}

.progress-list.large {
  padding: 18px;
}

.progress-list.large div {
  height: 48px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 16px;
}

.chart-panel {
  min-height: 360px;
}

.fake-chart {
  height: 250px;
  margin: 18px;
  border: 1px solid rgba(33, 230, 255, 0.18);
  background: rgba(3, 18, 30, 0.58);
}

.fake-chart.line {
  background:
    linear-gradient(rgba(33, 230, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 230, 255, 0.08) 1px, transparent 1px),
    linear-gradient(155deg, transparent 0 18%, rgba(35, 255, 209, 0.5) 19%, transparent 20% 34%, rgba(33, 230, 255, 0.55) 35%, transparent 36% 55%, rgba(255, 217, 90, 0.45) 56%, transparent 57%),
    rgba(3, 18, 30, 0.58);
  background-size: 42px 42px, 42px 42px, 100% 100%, auto;
}

.fake-chart.bars {
  background:
    linear-gradient(to top, rgba(33, 230, 255, 0.72) 0 52%, transparent 52%) 8% bottom / 10% 80% no-repeat,
    linear-gradient(to top, rgba(35, 255, 209, 0.7) 0 76%, transparent 76%) 32% bottom / 10% 80% no-repeat,
    linear-gradient(to top, rgba(255, 217, 90, 0.72) 0 42%, transparent 42%) 56% bottom / 10% 80% no-repeat,
    linear-gradient(to top, rgba(255, 77, 100, 0.72) 0 64%, transparent 64%) 80% bottom / 10% 80% no-repeat,
    rgba(3, 18, 30, 0.58);
}

.rank-list {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.rank-list p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 14px;
  background: rgba(33, 230, 255, 0.06);
  border: 1px solid rgba(33, 230, 255, 0.14);
}

.rank-list b {
  color: var(--teal);
  font-family: Consolas, monospace;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.setting-card {
  min-height: 260px;
  padding: 18px;
}

.setting-card h2 {
  margin-bottom: 16px;
}

.toggle-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(33, 230, 255, 0.1);
}

.toggle-row span {
  color: #d7f1f7;
  font-size: 14px;
}

.toggle-row input {
  min-width: 18px;
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.module-card {
  min-height: 190px;
  padding: 16px;
}

.module-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.module-title span {
  color: var(--teal);
  font-family: Consolas, monospace;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-list p {
  margin: 0;
  color: #d8f5fb;
  font-size: 14px;
}

.status-list i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.status-list i.red {
  color: var(--red);
  background: var(--red);
}

.status-list i.yellow {
  color: var(--yellow);
  background: var(--yellow);
}

.progress-list {
  display: grid;
  gap: 14px;
}

.progress-list div {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.progress-list span {
  position: relative;
  z-index: 1;
  font-size: 14px;
}

.progress-list i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, rgba(33, 230, 255, 0.26), rgba(35, 255, 209, 0.14));
  border-right: 2px solid var(--teal);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-stats b {
  min-height: 86px;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #fff;
  text-align: center;
  font-family: Consolas, monospace;
  font-size: 26px;
  background: rgba(33, 230, 255, 0.07);
  border: 1px solid rgba(33, 230, 255, 0.14);
}

.mini-stats span {
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 400;
}

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

.role-chips span {
  padding: 8px 10px;
  color: #d8f5fb;
  background: rgba(33, 230, 255, 0.08);
  border: 1px solid rgba(33, 230, 255, 0.2);
}

.login-panel {
  max-width: 520px;
  margin: 80px auto 0;
  padding: 24px;
}

.login-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.login-panel small {
  min-height: 20px;
  color: var(--red);
}

.api-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-color: rgba(255, 217, 90, 0.28);
}

.api-state strong {
  color: var(--yellow);
}

.api-state span {
  color: var(--muted);
}

.ad-filter-bar .ad-keyword {
  flex: 1;
  min-width: 320px;
}

.ad-filter-bar .ad-keyword input {
  width: 100%;
}

.ads-layout {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(360px, 0.8fr) minmax(520px, 1.05fr) 340px;
  gap: 16px;
  margin-bottom: 16px;
}

.ad-city-map-panel,
.ad-map-panel,
.ad-list-panel,
.ad-create-panel {
  min-height: 580px;
}

.city-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}

.city-map-toolbar span {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.city-map-toolbar em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.city-map-shell {
  position: relative;
  margin: 16px;
}

.amap-city-map,
.city-map-stage {
  position: relative;
  height: 390px;
  overflow: hidden;
  border: 1px solid rgba(33, 230, 255, 0.22);
}

.amap-city-map {
  background: rgba(3, 16, 28, 0.98);
}

.is-hidden {
  display: none !important;
}

.amap-ad-marker {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #001018;
  background: var(--marker);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 18px color-mix(in srgb, var(--marker), transparent 45%);
  font-size: 14px;
  font-weight: 900;
}

.amap-edit-marker {
  width: 20px;
  height: 20px;
  background: #21e6ff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(33, 230, 255, 0.22), 0 0 18px rgba(33, 230, 255, 0.6);
}

.map-form-actions {
  display: grid;
  grid-template-columns: 120px 120px 1fr;
  gap: 10px;
  align-items: center;
}

.map-form-actions button,
.upload-inline-button {
  width: 100%;
}

.upload-inline-button {
  display: grid;
  place-items: center;
  height: 38px;
  color: var(--teal);
  background: rgba(33, 230, 255, 0.08);
  border: 1px solid rgba(33, 230, 255, 0.3);
  cursor: pointer;
}

.upload-inline-button input {
  display: none;
}

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

.lot-picker-search {
  width: 100%;
}

.lot-picker-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  background: rgba(2, 13, 22, 0.72);
  border: 1px solid rgba(33, 230, 255, 0.22);
}

.lot-picker-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px;
  background: rgba(33, 230, 255, 0.05);
  border: 1px solid rgba(33, 230, 255, 0.16);
}

.lot-picker-item input {
  margin-top: 3px;
}

.lot-picker-item strong,
.lot-picker-item small {
  display: block;
}

.lot-picker-item strong {
  color: #fff;
}

.lot-picker-item small {
  margin-top: 3px;
  color: var(--muted);
}

.map-form-actions span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(3, 18, 30, 0.82);
  border: 1px solid var(--line-soft);
  font-family: Consolas, monospace;
  font-size: 12px;
}

.city-map-stage {
  background:
    linear-gradient(rgba(33, 230, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 230, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(35, 255, 209, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(5, 34, 54, 0.94), rgba(3, 16, 28, 0.98));
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.city-map-grid {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(33, 230, 255, 0.22);
  clip-path: polygon(16% 0, 76% 8%, 100% 42%, 86% 84%, 48% 100%, 10% 82%, 0 32%);
  background:
    linear-gradient(35deg, transparent 0 47%, rgba(255, 255, 255, 0.1) 48% 52%, transparent 53%),
    linear-gradient(145deg, transparent 0 44%, rgba(255, 255, 255, 0.08) 45% 50%, transparent 51%),
    rgba(33, 230, 255, 0.05);
}

.city-map-label {
  position: absolute;
  z-index: 2;
  padding: 7px 9px;
  color: #d8f5fb;
  font-size: 13px;
  background: rgba(2, 16, 28, 0.8);
  border: 1px solid rgba(33, 230, 255, 0.22);
}

.city-map-label.north {
  left: 18%;
  top: 16%;
}

.city-map-label.center {
  left: 45%;
  top: 44%;
}

.city-map-label.south {
  right: 14%;
  bottom: 16%;
}

.city-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #001018;
  background: var(--green);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(80, 255, 154, 0.48);
  font-size: 15px;
  font-weight: 900;
}

.city-pin.pending {
  background: var(--yellow);
  box-shadow: 0 0 20px rgba(255, 217, 90, 0.45);
}

.city-pin.active {
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 20px rgba(255, 77, 100, 0.42);
}

.city-pin.off {
  color: #fff;
  background: #73838a;
  box-shadow: none;
}

.city-map-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 16px 12px;
}

.city-map-summary b {
  min-height: 72px;
  display: grid;
  place-content: center;
  gap: 6px;
  color: #fff;
  text-align: center;
  font-family: Consolas, monospace;
  font-size: 26px;
  background: rgba(33, 230, 255, 0.07);
  border: 1px solid rgba(33, 230, 255, 0.14);
}

.city-map-summary span {
  color: var(--muted);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 400;
}

.city-lot-list {
  display: grid;
  gap: 10px;
  max-height: 170px;
  padding: 0 16px 16px;
  overflow: auto;
}

.city-lot-list button {
  min-height: 58px;
  height: auto;
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  text-align: left;
  background: rgba(33, 230, 255, 0.06);
  border-color: rgba(33, 230, 255, 0.16);
}

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

.city-lot-list small {
  margin-top: 4px;
  color: var(--muted);
}

.ad-map-stage {
  position: relative;
  height: 360px;
  margin: 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(33, 230, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 230, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(9, 56, 76, 0.82), rgba(3, 20, 31, 0.92));
  background-size: 26px 26px, 26px 26px, auto;
  border: 1px solid rgba(33, 230, 255, 0.2);
}

.ad-road {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ad-road.main {
  left: 12%;
  top: 42%;
  width: 76%;
  height: 24%;
}

.ad-road.exit {
  right: 18%;
  top: 17%;
  width: 18%;
  height: 62%;
  transform: skewY(-8deg);
}

.ad-map-label {
  position: absolute;
  z-index: 2;
  padding: 7px 9px;
  color: #d8f5fb;
  font-size: 13px;
  background: rgba(2, 16, 28, 0.82);
  border: 1px solid rgba(33, 230, 255, 0.24);
}

.ad-map-label.entrance {
  left: 11%;
  top: 35%;
}

.ad-map-label.exit-label {
  right: 14%;
  top: 12%;
}

.ad-map-label.booth {
  right: 28%;
  bottom: 18%;
}

.ad-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #001018;
  background: var(--green);
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px rgba(80, 255, 154, 0.42);
  font-size: 12px;
  font-weight: 900;
}

.ad-pin.pending {
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 217, 90, 0.42);
}

.ad-pin.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 77, 100, 0.42);
}

.ad-pin.off {
  background: #73838a;
  color: #fff;
  box-shadow: none;
}

.ad-map-detail {
  display: grid;
  gap: 16px;
  margin: 0 16px 16px;
  padding: 16px;
  background: rgba(33, 230, 255, 0.06);
  border: 1px solid rgba(33, 230, 255, 0.14);
}

.ad-map-detail strong,
.ad-map-detail small {
  display: block;
}

.ad-map-detail strong {
  margin: 10px 0 6px;
  font-size: 18px;
}

.ad-map-detail small {
  color: var(--muted);
  line-height: 1.6;
}

.ad-map-detail dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
}

.ad-map-detail dl div {
  min-height: 64px;
  padding: 10px;
  background: rgba(3, 18, 30, 0.64);
  border: 1px solid rgba(33, 230, 255, 0.1);
}

.ad-map-detail dt {
  color: var(--muted);
  font-size: 12px;
}

.ad-map-detail dd {
  margin: 6px 0 0;
  line-height: 1.45;
}

.ad-table {
  padding: 14px;
}

.ad-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) 0.75fr 0.7fr 0.7fr minmax(150px, 0.9fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(33, 230, 255, 0.1);
}

.ad-row:not(.header) {
  cursor: pointer;
}

.ad-row:not(.header):hover {
  background: rgba(33, 230, 255, 0.06);
}

.ad-row.header {
  min-height: 42px;
  color: var(--muted);
  background: rgba(33, 230, 255, 0.06);
  border-bottom: 1px solid var(--line-soft);
}

.ad-row strong,
.ad-row small {
  display: block;
}

.ad-row small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.ad-tag.available {
  color: var(--green);
}

.ad-tag.pending {
  color: var(--yellow);
  background: rgba(255, 217, 90, 0.08);
}

.ad-tag.active {
  color: var(--red);
  background: rgba(255, 77, 100, 0.08);
}

.ad-tag.off {
  color: #91a4ab;
  background: rgba(145, 164, 171, 0.08);
}

.ad-expiry-panel {
  margin-bottom: 16px;
}

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

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

.rule-steps,
.field-checklist {
  display: grid;
  gap: 10px;
}

.rule-steps span,
.field-checklist span {
  display: block;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(33, 230, 255, 0.06);
  border: 1px solid rgba(33, 230, 255, 0.12);
  border-radius: 8px;
  line-height: 1.45;
}

.rule-steps.reward span {
  background: rgba(53, 214, 139, 0.06);
  border-color: rgba(53, 214, 139, 0.14);
}

.progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 16px;
  margin-bottom: 16px;
}

.work-task-table {
  overflow: hidden;
  border: 1px solid rgba(33, 230, 255, 0.1);
  border-radius: 10px;
}

.work-task-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) 0.55fr 0.5fr 0.75fr minmax(150px, 0.85fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(33, 230, 255, 0.1);
}

.work-task-row:last-child {
  border-bottom: 0;
}

.work-task-row.header {
  min-height: 42px;
  color: var(--muted);
  background: rgba(33, 230, 255, 0.06);
}

.work-task-row strong,
.work-task-row small {
  display: block;
}

.work-task-row small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.reward-section {
  margin-bottom: 16px;
}

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

.reward-task-card {
  padding: 16px;
  background: rgba(3, 18, 30, 0.64);
  border: 1px solid rgba(53, 214, 139, 0.14);
  border-radius: 8px;
}

.reward-task-card p {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.reward-task-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.reward-task-card dt,
.reward-task-card dd {
  margin: 0;
}

.reward-task-card dt {
  color: var(--muted);
  font-size: 12px;
}

.reward-task-card dd {
  margin-top: 4px;
  color: var(--text);
}

.reward-task-card small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1440px) {
  body {
    min-width: 1180px;
  }

  .admin-shell {
    grid-template-columns: 230px 1fr;
  }

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

  .cards-grid,
  .settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .analytics-grid,
  .ops-grid,
  .split-grid,
  .ads-layout,
  .progress-rule-grid,
  .progress-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .admin-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    min-height: 0;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .brand {
    margin-bottom: 10px;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-list button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .deploy-card {
    display: none;
  }

  .workspace {
    padding: 14px;
  }

  .topbar {
    display: grid;
    gap: 12px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

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

  .summary-grid,
  .module-grid,
  .cards-grid,
  .settings-grid,
  .reward-task-grid {
    grid-template-columns: 1fr;
  }

  .data-row,
  .ad-row,
  .work-task-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    min-height: 0;
    padding: 12px;
  }

  .data-row.header,
  .ad-row.header,
  .work-task-row.header {
    display: none;
  }

  .reward-task-card dl {
    grid-template-columns: 1fr;
  }

  .city-map-stage,
  .ad-map-stage,
  .public-amap {
    min-height: 320px;
  }
}
