:root {
  color-scheme: light;
  --ink: #172326;
  --muted: #5d6b70;
  --line: #dce5e7;
  --surface: #ffffff;
  --soft: #f4f8f8;
  --aqua: #12b8b2;
  --aqua-dark: #087d7b;
  --lime: #b9e442;
  --coral: #ff6b57;
  --yellow: #ffc64d;
  --charcoal: #233034;
  --shadow: 0 18px 42px rgba(23, 35, 38, 0.14);
  --radius: 8px;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.admin-route {
  background: #071725;
  overflow: auto;
}

body.admin-route .site-header,
body.admin-route main,
body.admin-route .site-footer {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(220, 229, 231, 0.82);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--lime);
  font-weight: 900;
}

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

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

.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  background: #e7f4f3;
  color: var(--aqua-dark);
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.header-action,
.primary-button {
  background: var(--ink);
  color: #fff;
}

.secondary-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.header-action:hover,
.primary-button:hover {
  background: var(--aqua-dark);
}

.secondary-button:hover {
  border-color: var(--aqua);
  color: var(--aqua-dark);
}

[data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.hero-section {
  position: relative;
  display: grid;
  min-height: calc(100svh - 72px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 68px) 56px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.9) 0 39%, rgba(244, 248, 248, 0.52)),
    linear-gradient(150deg, #e7f7f6 0%, #ffffff 42%, #fff1e8 100%);
}

.poster-hero {
  display: grid;
  min-height: auto;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: clamp(22px, 4vw, 42px) clamp(18px, 5vw, 68px) 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(17, 92, 180, 0.34), transparent 32%),
    linear-gradient(135deg, #020814, #061527 58%, #02060c);
}

.poster-hero::after {
  display: none;
}

.hero-section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(244, 248, 248, 0), var(--soft));
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--aqua-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.06;
  overflow-wrap: anywhere;
  word-break: break-all;
}

h1 span {
  display: inline;
}

.hero-lead {
  max-width: 680px;
  color: #36464a;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hero-lead span {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-media {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 470px;
  border: 1px solid rgba(18, 184, 178, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(18, 184, 178, 0.18), rgba(255, 255, 255, 0.58)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.poster-media {
  position: relative;
  width: min(1380px, 100%);
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(48, 137, 255, 0.42);
  border-radius: 8px;
  background: #020814;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.poster-media img {
  display: block;
  width: 100%;
  height: auto;
}

.poster-actions {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.poster-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(4, 14, 24, 0.78);
  color: #fff;
  backdrop-filter: blur(12px);
}

.poster-hero .hero-panel {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(760px, 100%);
  margin: 0 auto;
}

.water-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 184, 178, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 184, 178, 0.16) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.12));
}

.car-silhouette {
  position: absolute;
  right: 7%;
  bottom: 82px;
  left: 7%;
  height: 210px;
  border: 3px solid #182427;
  border-radius: 80px 80px 26px 26px;
  background:
    linear-gradient(95deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.08) 34%, rgba(18, 184, 178, 0.22)),
    #e9fbf9;
}

.car-silhouette::before {
  position: absolute;
  top: -66px;
  left: 17%;
  width: 66%;
  height: 96px;
  border: 3px solid #182427;
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
  background: linear-gradient(110deg, rgba(18, 184, 178, 0.48), rgba(255, 255, 255, 0.82));
  content: "";
}

.windshield,
.hood-line,
.wheel,
.spray {
  position: absolute;
  display: block;
}

.windshield {
  top: -44px;
  left: 32%;
  width: 36%;
  height: 54px;
  border: 2px solid rgba(23, 35, 38, 0.8);
  border-radius: 50px 50px 0 0;
  background: rgba(255, 255, 255, 0.5);
}

.hood-line {
  right: 14%;
  bottom: 64px;
  left: 14%;
  height: 3px;
  background: rgba(23, 35, 38, 0.7);
}

.wheel {
  bottom: -34px;
  width: 78px;
  height: 78px;
  border: 12px solid #172326;
  border-radius: 50%;
  background: var(--yellow);
}

.wheel-left {
  left: 16%;
}

.wheel-right {
  right: 16%;
}

.spray {
  height: 7px;
  border-radius: 999px;
  background: var(--aqua);
  box-shadow: 0 0 0 8px rgba(18, 184, 178, 0.13);
  transform-origin: left center;
  animation: spray 2.2s ease-in-out infinite;
}

.spray-one {
  top: 76px;
  left: -24px;
  width: 160px;
  transform: rotate(-14deg);
}

.spray-two {
  top: 132px;
  left: -18px;
  width: 220px;
  transform: rotate(4deg);
  animation-delay: 0.25s;
}

.spray-three {
  top: 188px;
  left: -30px;
  width: 130px;
  transform: rotate(18deg);
  animation-delay: 0.5s;
}

@keyframes spray {
  0%,
  100% {
    opacity: 0.28;
    translate: 0 0;
  }
  50% {
    opacity: 1;
    translate: 18px -5px;
  }
}

.hero-panel {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 5vw, 68px);
  bottom: 38px;
  display: grid;
  width: min(560px, calc(100% - 36px));
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  font-size: 30px;
}

.hero-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  translate: 0 -18px;
}

.feature-strip a {
  display: grid;
  min-height: 92px;
  place-items: center;
  gap: 8px;
  background: #fff;
  color: var(--charcoal);
  font-weight: 800;
}

.feature-strip a:hover {
  background: #e7f8f6;
  color: var(--aqua-dark);
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 54px auto;
}

.map-section {
  width: min(1380px, calc(100% - 36px));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.criteria-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.criteria-strip span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 900;
}

.criteria-strip [data-lucide] {
  color: var(--aqua-dark);
  flex: 0 0 auto;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.toolbar label,
.planner-form label,
.submit-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

select,
input {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(18, 184, 178, 0.14);
}

.search-box {
  position: relative;
  display: flex;
  align-items: end;
}

.search-box [data-lucide] {
  position: absolute;
  bottom: 13px;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}

.search-box input {
  padding-left: 40px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  min-height: 650px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-canvas {
  height: 650px;
  min-height: 650px;
  background:
    linear-gradient(135deg, rgba(18, 184, 178, 0.1), rgba(255, 198, 77, 0.08)),
    #ecf5f3;
}

.stylized-map-layout {
  display: block;
  min-height: auto;
  border: 0;
  background: transparent;
  color: #e9f8fb;
  box-shadow: none;
  overflow: visible;
}

.map-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(121, 212, 229, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 18%, rgba(55, 191, 174, 0.18), transparent 34%),
    linear-gradient(135deg, #061625, #0d2534 52%, #071420);
  box-shadow: var(--shadow);
}

.map-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.map-submit-button {
  min-height: 42px;
  padding: 10px 14px;
  white-space: nowrap;
}

.map-board-header strong,
.map-board-header span {
  display: block;
}

.map-board-header strong {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.map-board-header span {
  margin-top: 8px;
  color: rgba(233, 248, 251, 0.68);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.map-live-shell {
  position: relative;
  height: clamp(620px, 58vw, 760px);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(121, 212, 229, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 18%, rgba(67, 214, 255, 0.12), transparent 22%),
    radial-gradient(circle at 45% 52%, rgba(83, 235, 208, 0.08), transparent 35%),
    #d9e8ee;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.45),
    0 20px 44px rgba(0, 0, 0, 0.26);
}

.contribution-shell {
  position: absolute;
  inset: 0;
  z-index: 16;
}

.contribution-shell[hidden] {
  display: none;
}

.contribution-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: linear-gradient(90deg, rgba(2, 8, 14, 0.08), rgba(2, 8, 14, 0.48));
}

.contribution-drawer {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(420px, calc(100% - 36px));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(121, 212, 229, 0.28);
  border-radius: 8px;
  background: rgba(5, 20, 32, 0.95);
  color: #e9f8fb;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  transform: translateX(calc(100% + 24px));
  transition: transform 220ms ease;
  backdrop-filter: blur(14px);
}

.contribution-shell.is-open .contribution-drawer {
  transform: translateX(0);
}

.contribution-drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.contribution-drawer-header h3 {
  margin-bottom: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.14;
}

.drawer-note {
  margin: 0;
  color: rgba(233, 248, 251, 0.68);
  line-height: 1.7;
}

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

.contribution-tabbar .tab-button {
  justify-content: center;
}

.contribution-panels {
  min-height: 0;
}

.contribution-panel {
  height: 100%;
}

.drawer-form {
  height: 100%;
  overflow: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.drawer-form label {
  color: rgba(233, 248, 251, 0.78);
}

.map-fallback-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.live-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: transparent;
}

.live-map .amap-maps,
.live-map .amap-layers {
  border-radius: 8px;
}

.compass {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(121, 212, 229, 0.38);
  border-radius: 50%;
  background: rgba(5, 20, 32, 0.58);
  color: #79d4e5;
}

.compass span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.compass [data-lucide] {
  width: 22px;
  height: 22px;
  fill: rgba(121, 212, 229, 0.22);
}

.abstract-map {
  position: relative;
  height: clamp(620px, 58vw, 760px);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(121, 212, 229, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 18%, rgba(67, 214, 255, 0.14), transparent 22%),
    radial-gradient(circle at 45% 52%, rgba(83, 235, 208, 0.1), transparent 35%),
    #071a29;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.45),
    0 20px 44px rgba(0, 0, 0, 0.26);
}

.abstract-map::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(121, 212, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 212, 229, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
}

.map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.city-shape {
  fill: rgba(36, 69, 90, 0.72);
  stroke: rgba(121, 212, 229, 0.44);
  stroke-width: 2;
}

.estuary {
  fill: rgba(73, 130, 163, 0.36);
}

.river {
  fill: none;
  stroke: url(#riverGradient);
  stroke-width: 22;
  stroke-linecap: round;
  filter: url(#softGlow);
  opacity: 0.8;
}

.ring-road,
.highway,
.road {
  fill: none;
  stroke-linecap: round;
}

.ring-road {
  stroke: rgba(137, 175, 207, 0.66);
  stroke-width: 4;
}

.ring-main {
  stroke: rgba(246, 198, 121, 0.64);
}

.highway {
  stroke: rgba(124, 178, 220, 0.62);
  stroke-width: 5;
}

.highway.warm {
  stroke: rgba(242, 180, 103, 0.62);
}

.road {
  stroke: rgba(122, 158, 190, 0.44);
  stroke-width: 3;
}

.road.minor {
  stroke-width: 2;
  opacity: 0.7;
}

.district-labels text {
  fill: rgba(233, 248, 251, 0.76);
  font-size: 19px;
  font-weight: 800;
  text-anchor: middle;
}

.map-markers {
  position: absolute;
  inset: 0;
}

.map-legend-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  display: grid;
  gap: 8px;
  min-width: 142px;
  padding: 12px;
  border: 1px solid rgba(121, 212, 229, 0.24);
  border-radius: 8px;
  background: rgba(5, 20, 32, 0.78);
  color: rgba(233, 248, 251, 0.82);
  font-size: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.map-legend-card strong {
  color: #79d4e5;
  font-size: 13px;
}

.map-legend-card span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.amap-marker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(6, 22, 37, 0.92);
  color: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -100%);
}

.amap-marker-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.amap-marker-icon [data-lucide] {
  width: 14px;
  height: 14px;
}

.amap-marker-text {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.map-marker {
  position: absolute;
  z-index: 3;
  width: 50px;
  height: 64px;
  border: 0;
  background: transparent;
  color: #fff;
  transform: translate(-50%, -95%);
}

.marker-core {
  position: absolute;
  top: 4px;
  left: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50% 50% 50% 4px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%) rotate(-45deg);
}

.marker-core [data-lucide] {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
}

.marker-pulse {
  position: absolute;
  right: 1px;
  bottom: 2px;
  left: 1px;
  height: 14px;
  border-radius: 50%;
  opacity: 0.6;
  transform: perspective(50px) rotateX(58deg);
}

.marker-label {
  position: absolute;
  top: 48px;
  left: 50%;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 20, 32, 0.78);
  color: rgba(233, 248, 251, 0.88);
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%);
  white-space: nowrap;
}

.map-marker[data-category="player"] .marker-core,
.map-marker[data-category="player"] .marker-pulse,
.category-player {
  background: #36d49e;
}

.map-marker[data-category="equipment"] .marker-core,
.map-marker[data-category="equipment"] .marker-pulse,
.category-equipment {
  background: #3ba8ff;
}

.map-marker[data-category="quiet"] .marker-core,
.map-marker[data-category="quiet"] .marker-pulse,
.category-quiet {
  background: #9a6bff;
}

.map-marker[data-category="night"] .marker-core,
.map-marker[data-category="night"] .marker-pulse,
.category-night {
  background: #ff8a34;
}

.tag.category-player,
.tag.category-equipment,
.tag.category-quiet,
.tag.category-night {
  color: #fff;
}

.map-marker.is-active {
  z-index: 6;
}

.map-marker.is-active .marker-core {
  width: 48px;
  height: 48px;
  box-shadow:
    0 0 0 8px rgba(121, 212, 229, 0.15),
    0 14px 28px rgba(0, 0, 0, 0.34);
}

.map-bottom-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.map-bottom-bar div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(121, 212, 229, 0.22);
  border-radius: 8px;
  background: rgba(8, 27, 43, 0.76);
  color: rgba(233, 248, 251, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.stylized-map-layout .point-panel {
  max-height: 760px;
  overflow: auto;
  border: 1px solid rgba(121, 212, 229, 0.24);
  border-radius: 8px;
  background: rgba(5, 20, 32, 0.76);
  box-shadow: var(--shadow);
}

.stylized-map-layout .panel-title {
  border-bottom-color: rgba(121, 212, 229, 0.22);
}

.stylized-map-layout .panel-title span {
  color: rgba(233, 248, 251, 0.62);
}

.point-detail {
  display: grid;
  gap: 12px;
  margin: 16px 16px 0;
  padding: 16px;
  border: 1px solid rgba(121, 212, 229, 0.22);
  border-radius: 8px;
  background: rgba(10, 35, 52, 0.86);
}

.point-detail h3 {
  margin-bottom: 0;
  color: #fff;
  font-size: 22px;
}

.detail-topline,
.detail-score {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-score {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: baseline;
  color: rgba(233, 248, 251, 0.62);
}

.detail-score strong {
  color: #fff;
  font-size: 24px;
}

.point-detail dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 10px;
  margin: 0;
  color: rgba(233, 248, 251, 0.78);
  line-height: 1.6;
}

.point-detail dt {
  color: rgba(121, 212, 229, 0.9);
  font-weight: 900;
}

.point-detail dd {
  margin: 0;
}

.stylized-map-layout .point-list {
  max-height: 220px;
}

.stylized-map-layout .point-card {
  border-color: rgba(121, 212, 229, 0.18);
  background: rgba(8, 27, 43, 0.78);
  color: #e9f8fb;
}

.stylized-map-layout .point-card:hover,
.stylized-map-layout .point-card.is-active {
  border-color: rgba(121, 212, 229, 0.82);
  box-shadow: 0 0 0 4px rgba(121, 212, 229, 0.12);
}

.stylized-map-layout .point-card p {
  color: rgba(233, 248, 251, 0.62);
}

.marker-editor {
  display: grid;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 16px;
  border: 1px solid rgba(121, 212, 229, 0.22);
  border-radius: 8px;
  background: rgba(10, 35, 52, 0.86);
}

.map-field-guide {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.map-field-guide > strong {
  color: #fff;
  font-size: 14px;
}

.map-field-guide > p {
  margin: 0;
  color: rgba(233, 248, 251, 0.68);
  font-size: 12px;
  line-height: 1.7;
}

.map-field-guide-list {
  display: grid;
  gap: 8px;
}

.map-field-guide-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(121, 212, 229, 0.12);
  border-radius: 8px;
  background: rgba(4, 16, 26, 0.42);
}

.map-field-guide-item strong {
  color: #fff;
  font-size: 13px;
}

.map-field-guide-item span {
  color: rgba(233, 248, 251, 0.68);
  font-size: 12px;
  line-height: 1.6;
}

.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 10, 18, 0.72);
  backdrop-filter: blur(10px);
}

.admin-overlay[hidden] {
  display: none;
}

.admin-overlay.is-login-only .admin-topbar,
.admin-overlay.is-login-only .admin-modal > .popup-close {
  display: none;
}

.admin-overlay.is-login-only .admin-modal {
  width: min(480px, calc(100vw - 32px));
  height: auto;
  max-height: min(620px, calc(100vh - 32px));
  padding: 28px;
  border: 1px solid rgba(121, 212, 229, 0.3);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.admin-modal {
  position: relative;
  display: grid;
  width: min(1120px, 100%);
  max-height: min(880px, calc(100vh - 48px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(121, 212, 229, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0%, rgba(55, 191, 174, 0.18), transparent 32%),
    #071725;
  color: #e9f8fb;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.admin-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 0 52px 18px 0;
  border-bottom: 1px solid rgba(121, 212, 229, 0.18);
}

.admin-topbar-copy {
  display: grid;
  gap: 8px;
}

.admin-topbar-copy h2,
.admin-topbar-copy p {
  margin-bottom: 0;
}

.admin-topbar-copy h2 {
  color: #fff;
  font-size: 32px;
}

.admin-topbar-copy p {
  color: rgba(233, 248, 251, 0.68);
  line-height: 1.7;
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.admin-login {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  margin: 36px auto;
}

.admin-login h2 {
  margin-bottom: 0;
  color: #fff;
  font-size: 36px;
}

.admin-login-form {
  display: grid;
  gap: 14px;
}

.admin-login-form label {
  display: grid;
  gap: 8px;
  color: rgba(233, 248, 251, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.admin-login-form input {
  border-color: rgba(121, 212, 229, 0.24);
  background: rgba(4, 16, 26, 0.78);
  color: #e9f8fb;
}

.admin-login[hidden],
.admin-workspace[hidden] {
  display: none !important;
}

.admin-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
}

.admin-section-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 999px;
  background: rgba(6, 24, 37, 0.62);
  color: rgba(233, 248, 251, 0.76);
  font-size: 13px;
  font-weight: 800;
}

button[data-wash-request-admin-filter="quick-contact"] {
  display: none !important;
}

.admin-section-button.has-badge {
  border-color: rgba(255, 107, 87, 0.48);
  color: #fff8f5;
}

.admin-section-label {
  line-height: 1;
}

.admin-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b57 0%, #ff3d64 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 20px;
  box-shadow: 0 8px 18px rgba(255, 61, 100, 0.26);
}

.admin-section-button.is-active {
  border-color: rgba(121, 212, 229, 0.78);
  background: rgba(121, 212, 229, 0.16);
  color: #f5fbff;
  box-shadow: 0 0 0 4px rgba(121, 212, 229, 0.08);
}

.admin-workbench {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(121, 212, 229, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(121, 212, 229, 0.12), transparent 28%),
    rgba(6, 24, 37, 0.56);
}

.admin-workbench[hidden] {
  display: none;
}

.admin-workbench-copy {
  display: grid;
  gap: 6px;
  align-content: center;
}

.admin-density-toggle {
  justify-self: start;
}

.admin-workbench-copy strong {
  color: #f5fbff;
  font-size: 16px;
  font-weight: 900;
}

.admin-workbench-copy span {
  color: rgba(210, 235, 241, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

.admin-workbench-list {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr;
  gap: 10px;
}

.admin-workbench-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-workbench-group-title {
  color: rgba(210, 235, 241, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.admin-workbench-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-workbench-group--review .admin-workbench-group-grid,
.admin-workbench-group--history .admin-workbench-group-grid {
  grid-template-columns: 1fr;
}

.admin-workbench-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(121, 212, 229, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: #f5fbff;
  text-align: left;
}

.admin-workbench-card:hover {
  transform: translateY(-1px);
  border-color: rgba(121, 212, 229, 0.34);
}

.admin-workbench-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(121, 212, 229, 0.16);
  color: #9be9f5;
  font-size: 13px;
  font-weight: 900;
}

.admin-workbench-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-workbench-body strong,
.admin-workbench-body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workbench-body strong {
  font-size: 12px;
  font-weight: 900;
}

.admin-workbench-body small {
  color: rgba(210, 235, 241, 0.62);
  font-size: 11px;
}

.admin-workbench-card--danger .admin-workbench-count {
  background: rgba(255, 61, 100, 0.16);
  color: #ffb6c4;
}

.admin-workbench-card--warning .admin-workbench-count {
  background: rgba(255, 194, 87, 0.16);
  color: #ffd58a;
}

.admin-workbench-card--success .admin-workbench-count {
  background: rgba(94, 235, 172, 0.16);
  color: #9af1ca;
}

.admin-workbench-card--accent .admin-workbench-count {
  background: rgba(102, 126, 234, 0.2);
  color: #c3cbff;
}

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

  .admin-workbench-list {
    grid-template-columns: 1fr;
  }

  .admin-workbench-group-grid,
  .admin-workbench-group--review .admin-workbench-group-grid,
  .admin-workbench-group--history .admin-workbench-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-workbench-list {
    grid-template-columns: 1fr;
  }
}

.admin-workspace {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 18px;
  padding-top: 22px;
}

.admin-workspace.is-single-panel {
  grid-template-columns: 1fr;
}

.admin-workspace[hidden] {
  display: none;
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.admin-workspace .point-panel {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(121, 212, 229, 0.22);
  border-radius: 8px;
  background: rgba(5, 20, 32, 0.72);
}

.admin-workspace [data-admin-panel][hidden] {
  display: none !important;
}

.admin-workspace .point-list {
  max-height: 590px;
}

.submission-panel .point-list {
  max-height: 280px;
}

.rating-panel {
  overflow: hidden;
}

.admin-workspace .marker-editor {
  margin: 0;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(121, 212, 229, 0.18);
}

.admin-summary article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-summary strong {
  color: #fff;
  font-size: 24px;
}

.admin-summary span {
  color: rgba(233, 248, 251, 0.62);
  font-size: 12px;
  font-weight: 800;
}

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

.compact-summary strong {
  font-size: 22px;
}

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

.rating-admin-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid rgba(121, 212, 229, 0.12);
}

.panel-subtitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-subtitle strong {
  color: #fff;
  font-size: 14px;
}

.panel-subtitle span {
  color: rgba(233, 248, 251, 0.56);
  font-size: 12px;
  font-weight: 700;
}

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

.rating-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 8px;
  background: rgba(8, 27, 43, 0.74);
  color: #e9f8fb;
}

.rating-card h3,
.rating-card p {
  margin-bottom: 0;
}

.rating-card p {
  color: rgba(233, 248, 251, 0.7);
  font-size: 13px;
  line-height: 1.6;
}

.rating-stat-main,
.rating-flag-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rating-stat-main strong,
.rating-flag-summary strong {
  color: #fff;
  font-size: 24px;
}

.rating-stat-main span,
.rating-flag-summary span {
  color: rgba(233, 248, 251, 0.66);
  font-size: 12px;
  line-height: 1.6;
}

.rating-flag-actions {
  padding-top: 2px;
}

.danger-button {
  border-color: rgba(255, 130, 130, 0.28);
  color: #ffd8d8;
}

.danger-button:hover,
.danger-button:focus-visible {
  border-color: rgba(255, 130, 130, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 130, 130, 0.12);
}

.shop-popup {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: grid;
  width: min(430px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  gap: 12px;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(121, 212, 229, 0.36);
  border-radius: 8px;
  background: rgba(5, 20, 32, 0.94);
  color: #e9f8fb;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

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

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(121, 212, 229, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e9f8fb;
}

.shop-popup h3 {
  max-width: calc(100% - 42px);
  margin-bottom: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.18;
}

.detail-summary {
  margin: -2px 42px 0 0;
  color: rgba(233, 248, 251, 0.74);
  line-height: 1.7;
}

.rating-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 10px;
}

.rating-summary strong {
  grid-row: span 2;
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.rating-summary span:last-child {
  color: rgba(233, 248, 251, 0.66);
  font-size: 12px;
  font-weight: 800;
}

.rating-summary small {
  color: rgba(233, 248, 251, 0.74);
  font-size: 12px;
  line-height: 1.5;
}

.stars {
  position: relative;
  display: inline-block;
  color: rgba(233, 248, 251, 0.22);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
}

.stars-base,
.stars-fill {
  display: block;
}

.stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #ffc64d;
}

.rating-breakdown {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(121, 212, 229, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.rating-row {
  display: grid;
  grid-template-columns: 84px 1fr 34px;
  align-items: center;
  gap: 8px;
  color: rgba(233, 248, 251, 0.76);
  font-size: 13px;
}

.rating-row > strong {
  color: #fff;
  font-size: 13px;
  text-align: right;
}

.rating-cta-card,
.rating-editor-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(121, 212, 229, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.rating-cta-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.rating-cta-card strong,
.rating-editor-head strong {
  display: block;
  color: #fff;
}

.rating-cta-card span,
.rating-editor-head span,
.rating-note-field {
  color: rgba(233, 248, 251, 0.68);
  font-size: 12px;
  line-height: 1.7;
}

.rating-editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.rating-editor-grid {
  display: grid;
  gap: 10px;
}

.rating-editor-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  color: rgba(233, 248, 251, 0.82);
  font-size: 13px;
}

.rating-editor-row > strong {
  color: #fff;
  font-size: 13px;
  text-align: right;
}

.score-slider {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(121, 212, 229, 0.2);
  border-radius: 8px;
  background: rgba(3, 14, 24, 0.78);
  text-align: left;
}

.score-slider-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  flex: 0 0 auto;
}

.score-slider .stars {
  font-size: 20px;
}

.score-slider:hover,
.score-slider:focus-visible {
  border-color: rgba(121, 212, 229, 0.7);
  box-shadow: 0 0 0 4px rgba(121, 212, 229, 0.12);
}

.score-slider.is-disabled,
.score-slider:disabled {
  cursor: default;
  opacity: 0.72;
  box-shadow: none;
}

.rating-note-field {
  display: grid;
  gap: 8px;
}

.rating-note-field textarea {
  min-height: 88px;
  border-color: rgba(121, 212, 229, 0.2);
  background: rgba(4, 16, 26, 0.72);
  color: #e9f8fb;
}

.rating-editor-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-meta-grid,
.detail-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-meta-grid article,
.detail-fit-grid article,
.empty-photo-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(121, 212, 229, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-meta-grid span,
.detail-fit-grid span,
.empty-photo-card span {
  color: rgba(121, 212, 229, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-grid strong,
.detail-fit-grid strong,
.empty-photo-card strong {
  color: #fff;
  line-height: 1.6;
}

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

.photo-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border: 1px solid rgba(121, 212, 229, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

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

.empty-photo-card {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.empty-photo-card [data-lucide] {
  color: rgba(121, 212, 229, 0.92);
}

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

.shop-popup dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 10px;
  margin: 0;
  color: rgba(233, 248, 251, 0.78);
  line-height: 1.6;
}

.shop-popup dt {
  color: rgba(121, 212, 229, 0.9);
  font-weight: 900;
}

.shop-popup dd {
  margin: 0;
}

.score-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(121, 212, 229, 0.18);
  border-radius: 8px;
}

.score-editor legend {
  padding: 0 6px;
  color: rgba(121, 212, 229, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.editor-title,
.editor-actions,
.editor-grid {
  display: grid;
  gap: 10px;
}

.editor-title {
  grid-template-columns: 1fr auto;
  align-items: center;
}

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

.marker-editor label {
  display: grid;
  gap: 7px;
  color: rgba(233, 248, 251, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.marker-editor input,
.marker-editor select,
.marker-editor textarea {
  border-color: rgba(121, 212, 229, 0.2);
  background: rgba(4, 16, 26, 0.72);
  color: #e9f8fb;
}

.upload-field {
  display: grid;
  gap: 10px;
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-actions span {
  color: rgba(233, 248, 251, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.upload-file-input {
  display: none;
}

.upload-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}

.market-inline-select {
  min-width: 220px;
  max-width: 100%;
}

.market-inline-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.market-section .section-heading {
  margin-bottom: 22px;
}

.market-stack {
  display: grid;
  gap: 22px;
}

.market-showcase,
.market-entry-card,
.market-detail-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.market-showcase {
  display: grid;
  gap: 18px;
}

.market-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.market-section-head h3,
.market-section-head p {
  margin-bottom: 0;
}

.market-section-head p:last-child {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.market-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

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

.market-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.market-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(121, 212, 229, 0.18);
  border-radius: 999px;
  background: rgba(7, 29, 45, 0.62);
  color: rgba(217, 236, 248, 0.84);
  font-weight: 800;
}

.market-status-tab strong {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(121, 212, 229, 0.1);
  color: #f5fbff;
  font-size: 12px;
  text-align: center;
}

.market-status-tab.is-active {
  border-color: rgba(121, 212, 229, 0.72);
  background: rgba(37, 166, 190, 0.2);
  color: #f5fbff;
  box-shadow: 0 0 0 3px rgba(121, 212, 229, 0.08);
}

.market-toolbar label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--muted);
}

.market-toolbar select {
  width: 100%;
}

.market-publish-shell[hidden] {
  display: none !important;
}

.market-publish-shell {
  display: grid;
}

.market-form-card {
  padding: 18px;
}

.market-list-title {
  margin-bottom: 0;
}

.market-entry-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.market-entry-copy {
  display: grid;
  gap: 10px;
}

.market-entry-copy .eyebrow {
  margin-bottom: 0;
}

.market-entry-copy h3,
.market-entry-copy p,
.market-entry-meta strong,
.market-entry-meta span {
  margin-bottom: 0;
}

.market-entry-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.market-entry-meta {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.market-entry-meta strong {
  font-size: 34px;
  line-height: 1;
}

.market-entry-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.market-detail-shell[hidden],
.market-detail-panel[hidden] {
  display: none !important;
}

.market-detail-shell {
  display: grid;
}

.market-detail-panel {
  display: grid;
  gap: 18px;
}

.market-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.market-detail-head h3,
.market-detail-head p {
  margin-bottom: 0;
}

.market-detail-head p:last-child {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.market-detail-layout {
  align-items: start;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.market-forms,
.market-board {
  display: grid;
  gap: 18px;
}

.market-form-card,
.market-board-panel,
.market-admin-panel {
  padding: 18px;
}

.market-form {
  display: grid;
  gap: 14px;
}

.market-check-grid {
  align-items: start;
}

.market-checkbox {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(121, 212, 229, 0.18);
  border-radius: 12px;
  background: rgba(8, 26, 43, 0.34);
}

.market-choice-field {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 14px;
  background: rgba(8, 26, 43, 0.28);
}

.market-choice-stack {
  display: grid;
  gap: 12px;
}

.market-choice-field legend {
  padding: 0 6px;
  color: #f3fbff;
  font-weight: 700;
}

.choice-group {
  display: grid;
  gap: 8px;
}

.choice-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.choice-group-title {
  color: #7fe7dc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.choice-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(82, 231, 204, 0.34);
  border-radius: 999px;
  background: rgba(82, 231, 204, 0.1);
  color: #dffef8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.choice-select-all input {
  width: 13px;
  height: 13px;
  accent-color: #52e7cc;
}

.choice-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip-grid label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 999px;
  background: rgba(5, 19, 31, 0.62);
  color: #d8edf5;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.choice-chip-grid input {
  width: 14px;
  height: 14px;
  accent-color: #52e7cc;
}

.field-hint {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.18);
  font-size: 12px;
  line-height: 1.5;
}

.market-choice-field > input {
  width: 100%;
}

.helper-package-guide {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(82, 231, 204, 0.18);
  border-radius: 14px;
  background: rgba(82, 231, 204, 0.08);
}

.helper-package-guide strong {
  color: #f3fbff;
  font-size: 14px;
}

.helper-package-guide p {
  margin: 0;
  color: rgba(233, 248, 251, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

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

.market-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 14px;
  background: rgba(5, 19, 31, 0.72);
}

.market-card h3 {
  margin: 0;
  font-size: 18px;
}

.market-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.market-card p {
  margin: 0;
  color: rgba(217, 236, 248, 0.8);
  line-height: 1.5;
}

.admin-order-no-tag {
  border-color: rgba(121, 212, 229, 0.32);
  color: #e8fbff;
  background: rgba(47, 124, 246, 0.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.admin-order-no-line {
  font-size: 13px;
}

.admin-order-no-line strong {
  color: #f5fbff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.helper-score-pill {
  min-width: 112px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  background: rgba(7, 29, 45, 0.85);
  text-align: right;
}

.helper-score-pill strong {
  color: #f5fbff;
  font-size: 24px;
  line-height: 1;
}

.helper-score-pill span {
  color: rgba(191, 212, 224, 0.82);
  font-size: 13px;
}

.helper-score-pill.is-empty strong {
  color: rgba(191, 212, 224, 0.7);
}

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

.helper-stat-strip > div,
.helper-breakdown-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(121, 212, 229, 0.14);
  border-radius: 12px;
  background: rgba(7, 29, 45, 0.65);
}

.helper-stat-strip strong,
.helper-breakdown-item strong {
  color: #f5fbff;
}

.market-card-actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.helper-stat-strip span,
.helper-breakdown-item span {
  color: rgba(191, 212, 224, 0.82);
  font-size: 13px;
}

.helper-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.market-card-details {
  display: grid;
  gap: 10px;
}

.market-card-details[hidden] {
  display: none !important;
}

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

.market-quick-grid article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(121, 212, 229, 0.14);
  border-radius: 12px;
  background: rgba(7, 29, 45, 0.65);
}

.market-quick-grid span {
  color: rgba(191, 212, 224, 0.82);
  font-size: 13px;
}

.market-quick-grid strong {
  color: #f5fbff;
  line-height: 1.5;
}

.market-quick-item--price,
.market-quick-item--service {
  border-color: rgba(92, 183, 255, 0.08);
  background: transparent;
}

.market-quick-item--price span,
.market-quick-item--service span {
  color: #52657d;
  font-size: 14px;
  font-weight: 700;
}

.market-quick-item--price strong,
.market-quick-item--service strong {
  color: #172033;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.market-quick-item--price strong {
  color: #0b63ce;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.market-quick-item--service strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.helper-review-panel {
  margin-top: 6px;
}

.market-empty-card {
  min-height: 120px;
  place-content: center;
}

.market-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 84px);
  justify-content: start;
  gap: 8px;
}

.market-photo-button {
  width: 84px;
  height: 84px;
  padding: 0;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.market-photo-button img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
}

.market-photo-more {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 10px;
  background: rgba(7, 29, 45, 0.72);
  color: rgba(233, 248, 251, 0.86);
  font-weight: 900;
}

.market-status-tag {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.market-status-open {
  background: rgba(67, 177, 255, 0.16);
  color: #9fdcff;
}

.market-status-matched {
  background: rgba(255, 198, 77, 0.18);
  color: #ffe0a1;
}

.market-status-completed {
  background: rgba(126, 240, 183, 0.16);
  color: #b7ffd9;
}

.market-success-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(126, 240, 183, 0.32);
  border-radius: 10px;
  background: rgba(36, 155, 103, 0.16);
  color: #b7ffd9;
  font-size: 13px;
  line-height: 1.6;
}

.admin-market-card.is-just-updated {
  border-color: rgba(126, 240, 183, 0.58);
  box-shadow: 0 0 0 4px rgba(126, 240, 183, 0.08);
}

.admin-batch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 12px;
  background: rgba(5, 19, 31, 0.5);
}

.admin-select-all,
.admin-card-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8edf5;
  font-size: 13px;
  font-weight: 700;
}

.admin-select-all input,
.admin-card-select input {
  width: 15px;
  height: 15px;
  accent-color: #52e7cc;
}

.admin-card-select {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 999px;
  background: rgba(8, 26, 43, 0.5);
}

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

.admin-helper-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-helper-grid label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.admin-helper-grid span {
  color: rgba(191, 212, 224, 0.82);
  font-size: 13px;
}

.admin-helper-grid input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(121, 212, 229, 0.14);
  background: rgba(7, 29, 45, 0.82);
  color: #f5fbff;
}

.upload-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 8px;
  background: rgba(6, 24, 37, 0.72);
}

.upload-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(121, 212, 229, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.upload-item img,
.submission-card-photo img {
  cursor: zoom-in;
}

.upload-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px dashed rgba(121, 212, 229, 0.2);
  border-radius: 8px;
  color: rgba(233, 248, 251, 0.56);
  background: rgba(6, 24, 37, 0.42);
  text-align: center;
}

.marker-editor input[type="range"] {
  padding: 0;
  accent-color: var(--aqua);
}

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

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(121, 212, 229, 0.28);
  border-radius: 8px;
  background: rgba(121, 212, 229, 0.08);
  color: #e9f8fb;
}

.map-fallback {
  display: grid;
  min-height: inherit;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
}

.map-loading-note {
  position: absolute;
  z-index: 500;
  right: 12px;
  bottom: 12px;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid rgba(121, 212, 229, 0.24);
  border-radius: 8px;
  background: rgba(5, 20, 32, 0.92);
  color: rgba(233, 248, 251, 0.82);
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.map-loading-note[hidden] {
  display: none;
}

.map-loading-note.is-error {
  border-color: rgba(255, 137, 137, 0.38);
  color: #ffd9d9;
}

.point-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border-left: 1px solid var(--line);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

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

.point-list {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: 590px;
  overflow: auto;
  padding: 16px;
}

.point-card,
.catalog-card,
.group-board article,
.submit-form,
.planner-form,
.wash-plan {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.point-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  text-align: left;
}

.admin-point-card {
  gap: 10px;
}

.point-card-main {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.point-card-main::after {
  border: 0;
}

.submission-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(121, 212, 229, 0.18);
  border-radius: 8px;
  background: rgba(8, 27, 43, 0.78);
  color: #e9f8fb;
  cursor: pointer;
}

.submission-card-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.submission-card-photo,
.submission-card-photo-more {
  position: relative;
  overflow: hidden;
  min-height: 84px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.submission-card-photo {
  padding: 0;
}

.submission-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submission-card-photo-more {
  display: grid;
  place-items: center;
  color: rgba(233, 248, 251, 0.9);
  font-size: 18px;
  font-weight: 900;
}

.submission-card h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.submission-card p {
  margin-bottom: 0;
  color: rgba(233, 248, 251, 0.68);
  font-size: 13px;
  line-height: 1.6;
}

.submission-empty {
  padding: 18px;
  cursor: default;
}

.submission-card.is-active {
  border-color: rgba(121, 212, 229, 0.82);
  box-shadow: 0 0 0 4px rgba(121, 212, 229, 0.12);
}

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

.submission-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.submission-filter-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(121, 212, 229, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(233, 248, 251, 0.8);
  font-size: 12px;
  font-weight: 700;
}

.submission-filter-button.is-active {
  border-color: rgba(121, 212, 229, 0.34);
  background: rgba(121, 212, 229, 0.14);
  color: #ffffff;
}

.mini-button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 12px;
}

.point-card.is-active {
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(18, 184, 178, 0.12);
}

.point-card h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.point-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ebf7f6;
  color: var(--aqua-dark);
  font-size: 12px;
  font-weight: 800;
}

.status-tag {
  background: #fff2df;
  color: #a76400;
}

.review-tag.review-published {
  background: rgba(46, 204, 113, 0.18);
  color: #8bf0b4;
}

.review-tag.review-pending {
  background: rgba(67, 177, 255, 0.18);
  color: #8bd3ff;
}

.review-tag.review-needs-info {
  background: rgba(255, 193, 77, 0.2);
  color: #ffd98b;
}

.review-tag.review-offline {
  background: rgba(255, 103, 103, 0.18);
  color: #ffb2b2;
}

.tag.info-tag {
  background: rgba(67, 177, 255, 0.18);
  color: #8bd3ff;
}

.tag.warning-tag {
  background: rgba(255, 193, 77, 0.2);
  color: #ffd98b;
}

.tag.success-tag {
  background: rgba(46, 204, 113, 0.18);
  color: #8bf0b4;
}

.tag.muted-tag {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.tag.repeat-tag {
  border: 1px solid rgba(20, 184, 166, 0.36);
  background: linear-gradient(135deg, #dffaf3 0%, #ecfffb 100%);
  color: #0f6d61;
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.12);
}

.tag.direct-contact-tag {
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: linear-gradient(135deg, #fff4de 0%, #fff9ed 100%);
  color: #9a5b00;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.12);
}

.tag.suspicious-contact-tag {
  border: 1px solid rgba(239, 68, 68, 0.42);
  background: linear-gradient(135deg, #fff1f2 0%, #fff7f7 100%);
  color: #b91c1c;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.12);
}

.tag.city-tag {
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, #eaf2ff 0%, #f6fbff 100%);
  color: #174ea6;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
}

.market-subtle-note {
  color: var(--muted);
  font-size: 13px;
}

.admin-repeat-note {
  margin: 2px 0;
  padding: 10px 12px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.1);
  color: #d7fffa;
  font-size: 13px;
  line-height: 1.65;
}

.admin-contact-risk-note {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(254, 226, 226, 0.92);
  color: #991b1b;
}

.admin-contact-risk-note strong {
  color: #7f1d1d;
}

.admin-repeat-note strong {
  color: #ffffff;
}

.admin-repeat-note.admin-contact-risk-note strong {
  color: #7f1d1d;
}

.market-intent-note-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.market-intent-note-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.market-intent-note-field textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  box-sizing: border-box;
}

.planner-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.planner-form,
.submit-form {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.submit-note {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.wash-plan {
  min-height: 286px;
  padding: 22px;
}

.wash-plan h3 {
  margin-bottom: 10px;
  font-size: 26px;
}

.wash-plan ol {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding-left: 22px;
  line-height: 1.6;
}

.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.tab-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

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

.catalog-card,
.group-board article {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.catalog-card .icon-box,
.group-board article > [data-lucide] {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #e7f8f6;
  color: var(--aqua-dark);
}

.catalog-card h3,
.group-board h3 {
  margin-bottom: 0;
}

.catalog-card p,
.group-board p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.community-note-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.community-note-card > [data-lucide] {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #e7f8f6;
  color: var(--aqua-dark);
}

.community-note-card h3,
.community-note-card p {
  margin-bottom: 0;
}

.community-note-card p {
  color: var(--muted);
  line-height: 1.7;
}

.updates-grid,
.contribution-stack {
  display: grid;
  gap: 14px;
}

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

.update-card {
  align-content: start;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e9eef0;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--lime));
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(23, 35, 38, 0.12);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.admin-route .toast {
  right: 24px;
  bottom: 24px;
  z-index: 1000;
}

.image-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.image-preview-overlay[hidden] {
  display: none;
}

.image-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 10, 18, 0.84);
  backdrop-filter: blur(8px);
}

.image-preview-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  gap: 14px;
  margin: 24px auto;
  padding: 20px;
  border: 1px solid rgba(121, 212, 229, 0.28);
  border-radius: 8px;
  background: rgba(5, 20, 32, 0.96);
  color: #e9f8fb;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

body.admin-route .image-preview-overlay {
  z-index: 3000;
}

.image-preview-close {
  z-index: 1;
}

.image-preview-image {
  width: 100%;
  max-height: calc(100vh - 170px);
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.image-preview-caption {
  margin-bottom: 0;
  color: rgba(233, 248, 251, 0.68);
  line-height: 1.7;
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 68px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.icp-footer-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.icp-footer-link:hover {
  color: var(--aqua-dark);
}

.admin-footer-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-footer-link:hover {
  color: var(--aqua-dark);
}

body.admin-route .admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: block;
  padding: 0;
  overflow: auto;
  background:
    radial-gradient(circle at 16% 0%, rgba(55, 191, 174, 0.12), transparent 30%),
    #071725;
  backdrop-filter: none;
  -webkit-overflow-scrolling: touch;
}

body.admin-route .admin-modal {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  height: auto;
  max-height: none;
  padding: 22px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

body.admin-route .admin-overlay.is-login-only {
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 10, 18, 0.78);
  backdrop-filter: blur(10px);
}

body.admin-route .admin-overlay.is-login-only .admin-modal {
  width: min(480px, calc(100vw - 32px));
  max-width: 100%;
  height: auto;
  max-height: min(620px, calc(100vh - 32px));
  padding: 28px;
  border: 1px solid rgba(121, 212, 229, 0.3);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

body.admin-route .admin-modal > .popup-close {
  display: none;
}

body.admin-route .admin-overlay.is-authenticated .admin-modal > .popup-close {
  display: none;
}

body.admin-route .admin-login {
  margin-top: 72px;
}

body.admin-route .admin-overlay.is-login-only .admin-login {
  margin-top: 0;
}

body.admin-route .admin-workspace {
  grid-template-columns: 460px minmax(0, 1fr);
  min-height: calc(100vh - 138px);
  height: auto;
  align-items: start;
}

body.admin-route .admin-workspace.is-single-panel {
  grid-template-columns: 1fr;
}

body.admin-route .admin-sidebar,
body.admin-route .marker-editor {
  min-height: 0;
  height: auto;
}

body.admin-route .admin-workspace .point-list,
body.admin-route .submission-panel .point-list {
  max-height: none;
}

body.admin-route .admin-sidebar {
  overflow: visible;
  padding-right: 4px;
}

body.admin-route .marker-editor {
  overflow: visible;
}

body.admin-route .admin-workspace.is-single-panel .marker-editor {
  display: none;
}

body.admin-route .admin-market-card .market-photo-grid,
body.admin-route .submission-card-photo-grid {
  grid-template-columns: repeat(auto-fill, 84px);
  justify-content: start;
  align-items: start;
  max-width: 316px;
  gap: 8px;
}

body.admin-route .admin-market-card .market-photo-button,
body.admin-route .submission-card-photo,
body.admin-route .submission-card-photo-more {
  width: 84px;
  height: 84px;
  min-height: 0;
  border-radius: 8px;
}

body.admin-route .admin-market-card .market-photo-button {
  border: 1px solid rgba(121, 212, 229, 0.18);
}

body.admin-route .admin-market-card .market-photo-button img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

body.admin-route .admin-helper-photo-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.admin-route .admin-helper-photo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 316px;
  color: rgba(233, 248, 251, 0.9);
  font-size: 13px;
}

body.admin-route .admin-helper-photo-head strong {
  color: #ffffff;
}

body.admin-route .admin-helper-photo-head span {
  flex: 0 0 auto;
  color: rgba(233, 248, 251, 0.68);
  font-weight: 800;
}

body.admin-route .admin-match-safety-note {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 198, 77, 0.22);
  border-radius: 10px;
  background: rgba(255, 198, 77, 0.08);
  color: rgba(255, 244, 214, 0.92);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

body.admin-route .admin-match-gap-list {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 10px;
  border: 1px solid rgba(121, 212, 229, 0.16);
  border-radius: 12px;
  background: rgba(5, 19, 31, 0.46);
}

body.admin-route .admin-match-gap-list > strong {
  color: #e9fbff;
  font-size: 12px;
}

body.admin-route .admin-match-gap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
}

body.admin-route .admin-match-gap--good {
  border: 1px solid rgba(20, 184, 166, 0.18);
  background: rgba(20, 184, 166, 0.08);
}

body.admin-route .admin-match-gap--warn {
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(120, 53, 15, 0.12);
}

body.admin-route .admin-match-gap--neutral {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.16);
  color: rgba(233, 248, 251, 0.78);
}

body.admin-route .admin-match-gap strong {
  color: #ffffff;
}

body.admin-route .admin-match-gap-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  font-weight: 800;
}

body.admin-route .admin-match-gap-chip--covered,
body.admin-route .admin-match-gap-chip--ok {
  color: #ccfbf1;
  background: rgba(20, 184, 166, 0.16);
}

body.admin-route .admin-match-gap-chip--missing {
  color: #ffedd5;
  background: rgba(245, 158, 11, 0.2);
}

body.admin-route .submission-card-photo-more {
  font-size: 15px;
}

body.admin-route .upload-list {
  grid-template-columns: repeat(auto-fill, 96px);
  justify-content: start;
  max-width: 320px;
  gap: 8px;
}

body.admin-route .upload-item {
  width: 96px;
  gap: 6px;
  padding: 6px;
}

body.admin-route .upload-item img {
  height: 72px;
  aspect-ratio: auto;
}

body.admin-route .upload-item .mini-button {
  min-height: 28px;
  padding: 5px 8px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 126px;
  }

  .hero-media {
    min-height: 360px;
    order: -1;
  }

  .poster-media {
    min-height: 0;
    order: 0;
  }

  .poster-actions {
    position: static;
    display: grid;
    padding: 12px;
    background: rgba(4, 14, 24, 0.92);
  }

  .feature-strip,
  .updates-grid,
  .catalog-grid,
  .market-toolbar,
  .market-quick-grid,
  .helper-stat-strip,
  .helper-breakdown-grid,
  .admin-helper-grid,
  .group-board,
  .criteria-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar,
  .map-layout,
  .admin-workspace,
  .planner-grid,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .point-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stylized-map-layout .point-panel {
    border-top: 1px solid rgba(121, 212, 229, 0.24);
    border-left: 0;
  }

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

  .map-board-header {
    align-items: start;
  }

  .map-board-actions {
    width: 100%;
    justify-content: space-between;
  }

  .point-list {
    max-height: 440px;
  }

  body.admin-route .admin-overlay {
    padding: 0;
  }

  body.admin-route .admin-modal {
    width: 100%;
    min-height: 100vh;
    padding: 16px 14px 24px;
  }

  body.admin-route .admin-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-right: 0;
  }

  body.admin-route .admin-topbar-actions {
    justify-content: start;
  }

  body.admin-route .admin-section-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-top: 14px;
    padding-bottom: 4px;
  }

  body.admin-route .admin-workspace {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding-top: 16px;
  }

  body.admin-route .admin-sidebar,
  body.admin-route .marker-editor,
  body.admin-route .point-panel {
    overflow: visible;
  }

  body.admin-route .point-list,
  body.admin-route .submission-panel .point-list,
  body.admin-route .admin-workspace .point-list {
    max-height: none;
  }

  body.admin-route .admin-summary,
  body.admin-route .compact-summary,
  body.admin-route .rating-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-route .admin-workspace .point-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-action {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .hero-section {
    width: 100%;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 14px 44px;
    overflow: hidden;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.08;
    word-break: break-all;
  }

  h1 span {
    display: block;
  }

  .hero-copy,
  .hero-lead {
    max-width: calc(100vw - 28px);
    min-width: 0;
    word-break: break-all;
  }

  .hero-media {
    width: 100%;
    max-width: calc(100vw - 28px);
    min-height: 300px;
  }

  .car-silhouette {
    height: 150px;
  }

  .feature-strip,
  .updates-grid,
  .catalog-grid,
  .market-toolbar,
  .request-toolbar,
  .market-layout,
  .market-quick-grid,
  .helper-stat-strip,
  .helper-breakdown-grid,
  .admin-helper-grid,
  .group-board,
  .criteria-strip {
    grid-template-columns: 1fr;
  }

  .section-shell {
    width: calc(100% - 28px);
    margin: 44px auto;
  }

  .map-canvas {
    height: 430px;
    min-height: 430px;
  }

  .map-live-shell,
  .abstract-map {
    height: 520px;
    min-height: 520px;
  }

  .map-board {
    padding: 12px;
  }

  .map-board-header {
    flex-direction: column;
  }

  .map-board-actions {
    width: 100%;
  }

  .contribution-drawer {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }

  .admin-overlay {
    padding: 12px;
  }

  .admin-modal {
    max-height: calc(100vh - 24px);
    padding: 14px;
  }

  body.admin-route .admin-overlay {
    padding: 0;
  }

  body.admin-route .admin-modal {
    max-height: none;
    min-height: 100vh;
    padding: 14px 12px 24px;
  }

  body.admin-route .admin-topbar-copy h2 {
    font-size: 28px;
  }

  body.admin-route .admin-topbar-copy p {
    line-height: 1.6;
  }

  body.admin-route .admin-workspace {
    padding-top: 14px;
    gap: 12px;
  }

  body.admin-route .panel-title {
    align-items: start;
    flex-wrap: wrap;
  }

  body.admin-route .panel-title strong {
    font-size: 15px;
    line-height: 1.4;
  }

  body.admin-route .panel-title span {
    font-size: 12px;
  }

  body.admin-route .admin-summary,
  body.admin-route .compact-summary,
  body.admin-route .rating-summary-cards {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-summary article {
    padding: 10px 12px;
  }

  body.admin-route .admin-summary strong,
  body.admin-route .compact-summary strong,
  body.admin-route .rating-summary-cards strong {
    font-size: 22px;
  }

  body.admin-route .point-list,
  body.admin-route .rating-admin-section,
  body.admin-route .marker-editor,
  body.admin-route .admin-summary {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.admin-route .submission-filter-row {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.admin-route .submission-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-market-card .market-photo-grid,
  body.admin-route .submission-card-photo-grid {
    grid-template-columns: repeat(auto-fill, 72px);
    max-width: 232px;
  }

  body.admin-route .admin-market-card .market-photo-button,
  body.admin-route .submission-card-photo,
  body.admin-route .submission-card-photo-more {
    width: 72px;
    height: 72px;
  }

  body.admin-route .upload-list {
    grid-template-columns: repeat(auto-fill, 84px);
    max-width: 276px;
  }

  body.admin-route .upload-item {
    width: 84px;
  }

  body.admin-route .upload-item img {
    height: 64px;
  }

  .map-board-header {
    align-items: start;
  }

  .map-board-header strong {
    font-size: 28px;
  }

  .compass {
    width: 48px;
    height: 48px;
  }

  .district-labels text {
    font-size: 24px;
  }

  .marker-label {
    display: none;
  }

  .map-bottom-bar,
  .editor-grid,
  .editor-actions,
  .market-section-head,
  .market-detail-head,
  .detail-score,
  .detail-meta-grid,
  .detail-fit-grid,
  .detail-actions,
  .rating-cta-card,
  .rating-editor-actions,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .shop-popup {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

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

  .market-photo-grid {
    grid-template-columns: repeat(auto-fill, 72px);
  }

  .market-photo-button,
  .market-photo-more {
    width: 72px;
    height: 72px;
  }

  .score-editor {
    grid-template-columns: 1fr;
  }

  .rating-editor-row {
    grid-template-columns: 1fr;
  }

  .rating-editor-row > strong {
    text-align: left;
  }
}

/* WHO Wash final admin visual layer */
body.admin-route {
  background:
    radial-gradient(circle at 10% 0%, rgba(47, 124, 246, 0.12), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(20, 184, 166, 0.14), transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, #f4f9fd 48%, #edf6f8 100%);
  color: #172033;
}

body.admin-route .admin-overlay {
  background: rgba(237, 246, 250, 0.78);
  backdrop-filter: blur(14px);
}

body.admin-route .admin-modal,
body.admin-route .admin-overlay.is-login-only .admin-modal {
  border: 1px solid rgba(219, 230, 242, 0.96);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 124, 246, 0.13), transparent 34%),
    radial-gradient(circle at 96% 4%, rgba(20, 184, 166, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 252, 255, 0.99) 100%);
  color: #172033;
  box-shadow: 0 28px 80px rgba(31, 82, 139, 0.16);
}

body.admin-route .admin-topbar {
  border-bottom-color: rgba(219, 230, 242, 0.96);
}

body.admin-route .admin-topbar-copy h2,
body.admin-route .admin-login h2,
body.admin-route .panel-title strong,
body.admin-route .panel-subtitle strong,
body.admin-route .rating-card h3,
body.admin-route .submission-card h3,
body.admin-route .admin-market-card h3 {
  color: #172033;
}

body.admin-route .admin-topbar-copy p,
body.admin-route .admin-login-form label,
body.admin-route .panel-title span,
body.admin-route .panel-subtitle span,
body.admin-route .rating-card p,
body.admin-route .submission-card p,
body.admin-route .admin-market-card p {
  color: #687a92;
}

body.admin-route .admin-order-no-tag {
  border-color: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
  background: linear-gradient(180deg, #eef6ff 0%, #e6f7ff 100%);
}

body.admin-route .admin-order-no-line strong {
  color: #172033;
}

body.admin-route input,
body.admin-route textarea,
body.admin-route select {
  border-color: #dce8f3;
  background: rgba(255, 255, 255, 0.98);
  color: #172033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

body.admin-route input::placeholder,
body.admin-route textarea::placeholder {
  color: #9aa8b8;
}

body.admin-route .primary-button,
body.admin-route .mini-button.primary-button,
body.admin-route button.primary-button {
  border-color: rgba(35, 109, 244, 0.18);
  color: #fff;
  background: linear-gradient(135deg, #236df4 0%, #3d8bff 58%, #14b8a6 100%);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
}

body.admin-route .secondary-button,
body.admin-route .mini-button,
body.admin-route .icon-button,
body.admin-route .admin-select-all,
body.admin-route .submission-filter-button,
body.admin-route .tab-button {
  border-color: rgba(47, 124, 246, 0.18);
  color: #2464d9;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 8px 18px rgba(31, 82, 139, 0.07);
}

body.admin-route .secondary-button:hover,
body.admin-route .mini-button:hover,
body.admin-route .icon-button:hover,
body.admin-route .submission-filter-button:hover,
body.admin-route .tab-button:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 124, 246, 0.32);
}

body.admin-route .secondary-button:disabled,
body.admin-route .primary-button:disabled,
body.admin-route .mini-button:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.26);
  background: #f8fafc;
  box-shadow: none;
  transform: none;
}

body.admin-route .danger-button,
body.admin-route .mini-button.danger-button {
  border-color: rgba(220, 38, 38, 0.22);
  color: #b91c1c;
  background: linear-gradient(180deg, #fff8f8 0%, #feecec 100%);
}

body.admin-route .admin-section-nav {
  gap: 9px;
}

body.admin-route .admin-subsection-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(202, 216, 232, 0.86);
}

body.admin-route .admin-subsection-nav::before {
  content: "当前入口";
  display: block;
  margin: 0 6px 2px;
  color: #5b6f88;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-subsection-nav .admin-section-button {
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(247, 251, 255, 0.92);
}

body.admin-route .admin-subsection-nav .admin-section-button[hidden] {
  display: none !important;
}

body.admin-route .admin-subsection-nav .admin-section-icon {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 11px;
}

body.admin-route .admin-subsection-nav .admin-section-copy small {
  display: none;
}

body.admin-route .admin-section-button {
  min-height: 38px;
  border-color: rgba(47, 124, 246, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: #53657d;
  box-shadow: 0 8px 18px rgba(31, 82, 139, 0.06);
}

body.admin-route .admin-section-button.is-active {
  border-color: rgba(35, 109, 244, 0.22);
  background: linear-gradient(135deg, #236df4 0%, #3d8bff 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
}

body.admin-route .admin-section-button.has-badge {
  border-color: rgba(255, 61, 100, 0.3);
}

body.admin-route .admin-section-button.has-badge:not(.is-active) {
  color: #b91c1c;
  background: #fff5f5;
}

body.admin-route .admin-section-badge {
  background: linear-gradient(135deg, #ff6b57 0%, #ff3d64 100%);
  box-shadow: 0 8px 18px rgba(255, 61, 100, 0.22);
}

body.admin-route .admin-workbench,
body.admin-route .admin-workspace .point-panel,
body.admin-route .rating-admin-section,
body.admin-route .admin-summary,
body.admin-route .compact-summary,
body.admin-route .rating-summary-cards {
  border-color: rgba(219, 230, 242, 0.96);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 252, 255, 0.97) 100%);
}

body.admin-route .admin-workbench {
  box-shadow: 0 16px 38px rgba(31, 82, 139, 0.08);
}

body.admin-route .admin-workbench-copy strong,
body.admin-route .admin-workbench-body strong,
body.admin-route .admin-summary strong,
body.admin-route .compact-summary strong,
body.admin-route .rating-summary-cards strong,
body.admin-route .rating-stat-main strong,
body.admin-route .rating-flag-summary strong {
  color: #172033;
}

body.admin-route .admin-workbench-copy span,
body.admin-route .admin-workbench-body small,
body.admin-route .admin-summary span,
body.admin-route .rating-stat-main span,
body.admin-route .rating-flag-summary span {
  color: #687a92;
}

body.admin-route .admin-workbench-card,
body.admin-route .admin-summary article,
body.admin-route .rating-card,
body.admin-route .admin-market-card,
body.admin-route .submission-card,
body.admin-route .admin-point-card,
body.admin-route .upload-item,
body.admin-route .market-intent-note-field {
  border-color: rgba(219, 230, 242, 0.96);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.06), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  color: #172033;
  box-shadow: 0 12px 28px rgba(31, 82, 139, 0.06);
}

body.admin-route .admin-workbench-count {
  color: #245cc7;
  background: #edf5ff;
}

body.admin-route .admin-workbench-card--danger .admin-workbench-count {
  color: #b91c1c;
  background: #fff1f2;
}

body.admin-route .admin-workbench-card--warning .admin-workbench-count {
  color: #b45309;
  background: #fff7e8;
}

body.admin-route .admin-workbench-card--success .admin-workbench-count {
  color: #0f766e;
  background: #eafaf6;
}

body.admin-route .admin-workbench-card--accent .admin-workbench-count {
  color: #245cc7;
  background: #edf5ff;
}

body.admin-route .submission-filter-button.is-active,
body.admin-route .tab-button.is-active {
  border-color: rgba(35, 109, 244, 0.22);
  background: linear-gradient(135deg, #236df4 0%, #3d8bff 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

body.admin-route .market-status-matched,
body.admin-route .status-pill,
body.admin-route .badge,
body.admin-route .tag {
  border-color: rgba(47, 124, 246, 0.16);
  background: #edf5ff;
  color: #245cc7;
}

body.admin-route .tag.repeat-tag {
  border-color: rgba(20, 184, 166, 0.28);
  background: linear-gradient(135deg, #dffaf3 0%, #ecfffb 100%);
  color: #0f6d61;
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.12);
}

body.admin-route .tag.direct-contact-tag {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #fff4de 0%, #fff9ed 100%);
  color: #9a5b00;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.12);
}

body.admin-route .admin-repeat-note {
  border-color: rgba(20, 184, 166, 0.24);
  background: #e8fbf7;
  color: #0f766e;
}

body.admin-route .admin-repeat-note strong {
  color: #0f766e;
}

body.admin-route .admin-contact-note {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(240, 253, 250, 0.9));
  color: #1e3a5f;
}

body.admin-route .admin-contact-note strong {
  color: #1d4ed8;
}

body.admin-route .admin-next-step-cue {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #d8e6f8;
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
  color: #17345f;
}

body.admin-route .admin-next-step-cue span {
  font-size: 12px;
  font-weight: 900;
  color: #2563eb;
}

body.admin-route .admin-next-step-cue strong {
  font-size: 15px;
  color: #0f172a;
}

body.admin-route .admin-next-step-cue small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

body.admin-route .admin-next-step-cue--danger {
  border-color: rgba(239, 68, 68, 0.22);
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
}

body.admin-route .admin-next-step-cue--danger span {
  color: #dc2626;
}

body.admin-route .admin-next-step-cue--warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
}

body.admin-route .admin-next-step-cue--warning span {
  color: #d97706;
}

body.admin-route .admin-next-step-cue--success {
  border-color: rgba(20, 184, 166, 0.22);
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
}

body.admin-route .admin-next-step-cue--success span {
  color: #0f766e;
}

body.admin-route .admin-next-step-cue--muted {
  border-color: #e2e8f0;
  background: #f8fafc;
}

body.admin-route .admin-next-step-cue--muted span {
  color: #64748b;
}

body.admin-route .admin-moderation-cue {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.08);
}

body.admin-route .admin-moderation-cue span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-moderation-cue strong {
  color: #422006;
  font-size: 13px;
  line-height: 1.55;
}

body.admin-route .admin-moderation-cue small {
  color: #92400e;
  font-size: 12px;
  line-height: 1.45;
}

body.admin-route .admin-moderation-cue--high {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.08);
}

body.admin-route .admin-moderation-cue--high span {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

body.admin-route .admin-moderation-cue--high strong {
  color: #7f1d1d;
}

body.admin-route .admin-moderation-cue--high small {
  color: #b91c1c;
}

body.admin-route .admin-moderation-detail {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
}

body.admin-route .admin-moderation-detail--high {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
}

body.admin-route .admin-moderation-detail > div {
  display: grid;
  gap: 4px;
}

body.admin-route .admin-moderation-detail > div span {
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-moderation-detail--high > div span {
  color: #b91c1c;
}

body.admin-route .admin-moderation-detail > div strong {
  color: #0f172a;
  font-size: 15px;
}

body.admin-route .admin-moderation-detail ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.admin-route .admin-moderation-detail li {
  display: grid;
  grid-template-columns: minmax(80px, 0.7fr) minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-size: 12px;
}

body.admin-route .admin-moderation-detail li span {
  color: #64748b;
  font-weight: 800;
}

body.admin-route .admin-moderation-detail li strong {
  color: #0f172a;
}

body.admin-route .admin-moderation-detail li em {
  justify-self: end;
  max-width: 180px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-search-hit-note {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

body.admin-route .admin-search-hit-note strong {
  color: #c2410c;
}

body.admin-route .admin-action-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d9e5f2;
  background: #f8fbff;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-route .admin-density-toggle {
  min-height: 30px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
}

body.admin-route .admin-density-toggle[aria-pressed="true"] {
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(135deg, #236df4 0%, #3d8bff 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

body.admin-route .admin-topbar-density-toggle {
  white-space: nowrap;
}

body.admin-route .admin-workbench-list {
  grid-template-columns: 1.55fr 0.75fr 0.75fr !important;
  gap: 12px !important;
}

body.admin-route .admin-workbench-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.admin-route .admin-workbench-group-title {
  color: #172033;
  font-size: 13px;
  font-weight: 950;
}

body.admin-route .admin-workbench-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.admin-route .admin-workbench-group--review .admin-workbench-group-grid,
body.admin-route .admin-workbench-group--history .admin-workbench-group-grid {
  grid-template-columns: 1fr;
}

body.admin-route.admin-compact-mode .admin-dashboard,
body.admin-route.admin-compact-mode .admin-flow-strip {
  display: none !important;
}

body.admin-route.admin-compact-mode .admin-modal {
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas:
    "top top"
    "nav workbench"
    "nav workspace";
}

body.admin-route.admin-compact-mode .admin-decision-strip,
body.admin-route.admin-compact-mode .admin-market-card > .admin-repeat-note,
body.admin-route.admin-compact-mode .admin-market-card > .admin-contact-line,
body.admin-route.admin-compact-mode .admin-market-card > .admin-timeline,
body.admin-route.admin-compact-mode .admin-market-card > .admin-match-gap,
body.admin-route.admin-compact-mode .admin-market-card > .admin-match-gap-list,
body.admin-route.admin-compact-mode .admin-market-card > .market-photo-grid,
body.admin-route.admin-compact-mode .admin-match-safety-note,
body.admin-route.admin-compact-mode .admin-helper-summary-grid,
body.admin-route.admin-compact-mode .admin-helper-card-details,
body.admin-route.admin-compact-mode .submission-card-photo-grid,
body.admin-route.admin-compact-mode .admin-point-card .admin-search-hit-note {
  display: none !important;
}

body.admin-route.admin-compact-mode .admin-next-step-cue {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 9px 11px;
  border-radius: 14px;
}

body.admin-route.admin-compact-mode .admin-next-step-cue span {
  font-size: 11px;
  white-space: nowrap;
}

body.admin-route.admin-compact-mode .admin-next-step-cue strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

body.admin-route.admin-compact-mode .admin-next-step-cue small {
  display: none;
}

body.admin-route.admin-compact-mode .admin-market-card > p,
body.admin-route.admin-compact-mode .submission-card > p,
body.admin-route.admin-compact-mode .admin-point-card .point-card-main p {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.admin-route.admin-compact-mode .admin-workspace .submission-actions button:nth-of-type(n+2) {
  display: none;
}

body.admin-route .admin-card-select,
body.admin-route .admin-helper-grid label {
  border-color: #dce8f3;
  background: #ffffff;
  color: #53657d;
}

body.admin-route .admin-market-card.is-just-updated,
body.admin-route .submission-card.is-active {
  border-color: rgba(20, 184, 166, 0.38);
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.12);
}

@media (max-width: 720px) {
  body.admin-route .admin-modal {
    border-radius: 22px;
    padding: 16px;
  }

  body.admin-route .admin-section-nav {
    gap: 8px;
  }

  body.admin-route .admin-section-button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* WHO Wash admin IA refresh */
body.admin-route .admin-modal {
  width: min(1440px, calc(100vw - 32px));
  height: min(940px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  grid-template-areas:
    "top top"
    "nav workbench"
    "nav flow"
    "nav workspace";
  gap: 16px;
  overflow: hidden;
  padding: 18px;
}

body.admin-route .admin-overlay.is-login-only .admin-modal {
  width: min(480px, calc(100vw - 32px));
  height: auto;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-template-areas: "login";
  place-items: stretch;
  align-content: center;
  overflow: auto;
  padding: 28px;
}

body.admin-route .admin-overlay.is-login-only .admin-topbar,
body.admin-route .admin-overlay.is-login-only .admin-dashboard,
body.admin-route .admin-overlay.is-login-only .admin-section-nav,
body.admin-route .admin-overlay.is-login-only .admin-workbench,
body.admin-route .admin-overlay.is-login-only .admin-flow-strip,
body.admin-route .admin-overlay.is-login-only .admin-tool-strip,
body.admin-route .admin-overlay.is-login-only .admin-processing-strip,
body.admin-route .admin-overlay.is-login-only .admin-workspace {
  display: none !important;
}

body.admin-route .admin-topbar {
  grid-area: top;
  min-width: 0;
  padding: 4px 54px 16px 2px;
}

body.admin-route .admin-topbar-copy {
  max-width: 760px;
}

body.admin-route .admin-topbar-copy h2 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

body.admin-route .admin-topbar-actions {
  align-items: center;
}

body.admin-route .admin-login {
  grid-area: login;
  justify-self: stretch;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}

body.admin-route .admin-overlay.is-login-only .admin-login h2 {
  max-width: none;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: normal;
  white-space: nowrap;
}

body.admin-route .admin-section-nav {
  grid-area: nav;
  align-self: stretch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(219, 230, 242, 0.96);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(47, 124, 246, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.96) 100%);
  box-shadow: 0 16px 36px rgba(31, 82, 139, 0.08);
}

body.admin-route .admin-section-nav[hidden],
body.admin-route .admin-subsection-nav[hidden],
body.admin-route .admin-flow-strip[hidden] {
  display: none !important;
}

body.admin-route .admin-section-nav::before {
  content: "后台入口";
  display: block;
  margin: 2px 6px 4px;
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}

body.admin-route .admin-section-button {
  position: relative;
  width: 100%;
  min-height: 68px;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  text-align: left;
}

body.admin-route .admin-section-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #2464d9;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-section-button.is-active .admin-section-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

body.admin-route .admin-section-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

body.admin-route .admin-section-label {
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
}

body.admin-route .admin-section-copy small {
  color: #71829a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

body.admin-route .admin-section-button.is-active .admin-section-copy small {
  color: rgba(255, 255, 255, 0.82);
}

body.admin-route .admin-section-badge {
  flex: 0 0 auto;
  min-width: 26px;
  height: 26px;
  line-height: 26px;
}

body.admin-route .admin-section-badge--muted {
  color: #8a9aae;
  background: #eef4fa;
  box-shadow: none;
}

body.admin-route .admin-section-button.is-active .admin-section-badge--muted {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.18);
}

body.admin-route .admin-workbench {
  grid-area: workbench;
  margin-top: 0;
  min-width: 0;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
}

body.admin-route .admin-workbench-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.admin-route .admin-workbench-card {
  min-height: 74px;
  border-radius: 18px;
}

body.admin-route .admin-workbench-count {
  min-width: 40px;
  height: 40px;
  font-size: 14px;
}

body.admin-route .admin-flow-strip {
  grid-area: flow;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(219, 230, 242, 0.96);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.98) 100%);
  box-shadow: 0 12px 28px rgba(31, 82, 139, 0.06);
}

body.admin-route .admin-flow-copy {
  display: grid;
  gap: 4px;
}

body.admin-route .admin-flow-copy strong {
  color: #172033;
  font-size: 15px;
  font-weight: 900;
}

body.admin-route .admin-flow-copy span {
  color: #687a92;
  font-size: 12px;
  line-height: 1.45;
}

body.admin-route .admin-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

body.admin-route .admin-flow-step {
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 124, 246, 0.14);
  border-radius: 16px;
  color: #53657d;
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
}

body.admin-route .admin-flow-step b {
  color: #236df4;
  font-size: 12px;
}

body.admin-route .admin-flow-step span {
  min-width: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

body.admin-route .admin-flow-step.is-active {
  color: #ffffff;
  border-color: rgba(35, 109, 244, 0.2);
  background: linear-gradient(135deg, #236df4 0%, #3d8bff 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

body.admin-route .admin-flow-step.is-active b {
  color: #ffffff;
}

body.admin-route .admin-workspace {
  grid-area: workspace;
  scroll-margin-top: 18px;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-top: 0;
  overflow: hidden;
}

body.admin-route .admin-workspace.is-with-editor {
  grid-template-columns: minmax(380px, 0.92fr) minmax(460px, 1.08fr);
}

body.admin-route .admin-workspace[data-admin-section="points"] {
  grid-template-columns: minmax(380px, 0.8fr) minmax(520px, 1.2fr);
}

body.admin-route .admin-sidebar {
  display: contents;
}

body.admin-route .admin-workspace .point-panel,
body.admin-route .marker-editor {
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  border-radius: 24px;
}

body.admin-route .admin-workspace .point-list,
body.admin-route .submission-panel .point-list,
body.admin-route .market-card-list,
body.admin-route .rating-list {
  max-height: none;
}

body.admin-route .panel-title {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(219, 230, 242, 0.78);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

body.admin-route .panel-title strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

body.admin-route .panel-title span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf5ff;
  color: #245cc7;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-summary,
body.admin-route .compact-summary,
body.admin-route .rating-summary-cards {
  padding: 16px;
  border-bottom-color: rgba(219, 230, 242, 0.78);
}

body.admin-route .admin-summary article {
  min-height: 78px;
  border-radius: 18px;
}

body.admin-route .admin-summary strong,
body.admin-route .compact-summary strong,
body.admin-route .rating-summary-cards strong {
  font-size: 28px;
  letter-spacing: -0.03em;
}

body.admin-route .submission-filter-row,
body.admin-route .admin-batch-toolbar {
  padding: 12px 16px;
  gap: 8px;
  border-bottom: 1px solid rgba(219, 230, 242, 0.68);
  background: rgba(248, 252, 255, 0.8);
}

body.admin-route .submission-filter-button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .market-card-list,
body.admin-route .point-list,
body.admin-route .rating-list {
  padding: 16px;
}

body.admin-route .marker-editor {
  padding: 18px;
}

body.admin-route .marker-editor .editor-title {
  position: sticky;
  top: -18px;
  z-index: 3;
  margin: -18px -18px 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(219, 230, 242, 0.78);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

@media (max-width: 1180px) {
  body.admin-route .admin-modal {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    grid-template-areas:
      "top"
      "nav"
      "workbench"
      "flow"
      "workspace";
  }

  body.admin-route .admin-section-nav {
    flex-direction: row;
    overflow-x: auto;
    align-self: auto;
  }

  body.admin-route .admin-section-nav::before {
    display: none;
  }

  body.admin-route .admin-section-button {
    flex: 0 0 224px;
  }

  body.admin-route .admin-workspace.is-with-editor,
  body.admin-route .admin-workspace[data-admin-section="points"] {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  body.admin-route .admin-workspace .point-panel,
  body.admin-route .marker-editor {
    max-height: none;
  }
}

@media (max-width: 860px) {
  body.admin-route .admin-modal {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  body.admin-route .admin-workbench,
  body.admin-route .admin-flow-strip {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-workbench-list,
  body.admin-route .admin-flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Admin scroll comfort fix: avoid tiny clipped dropdown/list panes */
body.admin-route .admin-modal {
  height: auto;
  min-height: min(940px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  grid-template-rows: auto auto auto auto;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.admin-route .admin-topbar {
  padding-bottom: 10px;
}

body.admin-route .admin-section-nav {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

body.admin-route .admin-workbench {
  padding: 10px;
}

body.admin-route .admin-workbench-copy span,
body.admin-route .admin-flow-copy span {
  line-height: 1.35;
}

body.admin-route .admin-workbench-list {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

body.admin-route .admin-workbench-card {
  min-height: 58px;
  padding: 9px;
  border-radius: 15px;
}

body.admin-route .admin-workbench-count {
  min-width: 34px;
  height: 34px;
  font-size: 13px;
}

body.admin-route .admin-flow-strip {
  padding: 10px;
}

body.admin-route .admin-flow-step {
  min-height: 46px;
  padding: 8px 10px;
}

body.admin-route .admin-workspace,
body.admin-route .admin-workspace.is-with-editor,
body.admin-route .admin-workspace[data-admin-section="points"] {
  min-height: auto;
  overflow: visible;
  align-items: start;
}

body.admin-route .admin-workspace .point-panel,
body.admin-route .marker-editor {
  max-height: none;
  overflow: visible;
}

body.admin-route .admin-workspace .point-list,
body.admin-route .submission-panel .point-list,
body.admin-route .market-card-list,
body.admin-route .rating-list {
  max-height: none;
  overflow: visible;
}

body.admin-route .admin-sidebar {
  min-height: auto;
}

body.admin-route .panel-title,
body.admin-route .marker-editor .editor-title {
  position: static;
}

body.admin-route .marker-editor .editor-title {
  margin: -18px -18px 16px;
}

body.admin-route select {
  min-height: 42px;
}

@media (max-width: 1180px) {
  body.admin-route .admin-modal {
    min-height: 100vh;
    max-height: none;
    overflow: visible;
  }

  body.admin-route .admin-section-nav {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  body.admin-route .admin-workbench-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body.admin-route .admin-modal {
    height: auto;
    min-height: 100vh;
    max-height: none;
    overflow: visible;
  }
}

/* Admin dashboard + search layer */
body.admin-route .admin-modal {
  grid-template-rows: auto auto auto auto auto minmax(0, auto);
  grid-template-areas:
    "top top"
    "nav dashboard"
    "nav workbench"
    "nav flow"
    "nav tools"
    "nav workspace";
}

body.admin-route .admin-dashboard {
  grid-area: dashboard;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(219, 230, 242, 0.96);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.98) 100%);
  box-shadow: 0 14px 32px rgba(31, 82, 139, 0.07);
}

body.admin-route .admin-dashboard[hidden],
body.admin-route .admin-tool-strip[hidden] {
  display: none !important;
}

body.admin-route .admin-dashboard-head {
  display: grid;
  align-content: center;
  gap: 5px;
}

body.admin-route .admin-dashboard-head strong {
  color: #172033;
  font-size: 16px;
  font-weight: 900;
}

body.admin-route .admin-dashboard-head span {
  color: #687a92;
  font-size: 12px;
  line-height: 1.45;
}

body.admin-route .admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

body.admin-route .admin-dashboard-card {
  min-width: 0;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(219, 230, 242, 0.96);
  border-radius: 16px;
  background: #ffffff;
  color: #53657d;
  text-align: left;
  box-shadow: 0 10px 22px rgba(31, 82, 139, 0.05);
}

body.admin-route .admin-dashboard-card:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 124, 246, 0.24);
}

body.admin-route .admin-dashboard-card span {
  color: #687a92;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-dashboard-card strong {
  color: #172033;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

body.admin-route .admin-dashboard-card small {
  min-width: 0;
  color: #7c8ca3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

body.admin-route .admin-dashboard-card--urgent strong,
body.admin-route .admin-dashboard-card--urgent span {
  color: #b91c1c;
}

body.admin-route .admin-dashboard-card--progress strong,
body.admin-route .admin-dashboard-card--progress span {
  color: #245cc7;
}

body.admin-route .admin-dashboard-card--success strong,
body.admin-route .admin-dashboard-card--success span {
  color: #0f766e;
}

body.admin-route .admin-tool-strip {
  grid-area: tools;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(219, 230, 242, 0.96);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(31, 82, 139, 0.05);
}

body.admin-route .admin-city-filter {
  height: 42px;
  min-width: 116px;
  border: 1px solid rgba(39, 108, 217, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  color: #17345a;
  font-size: 13px;
  font-weight: 800;
  background: #ffffff;
}

body.admin-route .admin-search-field {
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #dce8f3;
  border-radius: 999px;
  background: #ffffff;
}

body.admin-route .admin-search-field [data-lucide] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #6b7c92;
}

body.admin-route .admin-search-field input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.admin-route #admin-search-hint {
  color: #687a92;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body.admin-route .admin-helper-card {
  display: grid;
  gap: 14px;
}

body.admin-route .admin-helper-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: start;
}

body.admin-route .admin-helper-card-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

body.admin-route .admin-helper-card-main h3 {
  margin: 0;
  color: #172033;
  font-size: 18px;
  line-height: 1.2;
}

body.admin-route .admin-helper-card-main p {
  margin: 0;
  overflow: hidden;
  color: #53657d;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-helper-toggle {
  min-width: 68px;
}

body.admin-route .admin-helper-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.admin-route .admin-helper-summary-grid article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(219, 230, 242, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

body.admin-route .admin-helper-summary-grid span {
  color: #7c8ca3;
  font-size: 11px;
  font-weight: 900;
}

body.admin-route .admin-helper-summary-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-helper-card-details {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(219, 230, 242, 0.92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.06), transparent 34%),
    rgba(255, 255, 255, 0.72);
}

body.admin-route .admin-helper-card-details[hidden] {
  display: none !important;
}

body.admin-route .admin-helper-package-fold {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(191, 214, 246, 0.86);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(242, 248, 255, 0.82));
}

body.admin-route .admin-helper-package-fold-head {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

body.admin-route .admin-helper-package-fold-head > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.admin-route .admin-helper-package-fold-head strong {
  font-size: 14px;
  line-height: 1.3;
}

body.admin-route .admin-helper-package-fold-head small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-helper-package-fold-head .tag-row {
  justify-content: flex-end;
}

body.admin-route .admin-fold-state {
  min-width: 48px;
  padding: 6px 10px;
  border: 1px solid rgba(18, 103, 232, 0.2);
  border-radius: 999px;
  color: #1267e8;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

body.admin-route .admin-helper-package-fold-body {
  display: grid;
  gap: 8px;
}

body.admin-route .admin-helper-package-fold-body[hidden] {
  display: none !important;
}

body.admin-route .admin-helper-package-line {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(203, 216, 235, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

body.admin-route .admin-helper-package-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body.admin-route .admin-helper-package-main strong {
  overflow: hidden;
  color: #172033;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-helper-package-main p,
body.admin-route .admin-helper-package-main small {
  margin: 0;
  color: #53657d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

body.admin-route .admin-helper-package-main p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-helper-package-empty {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

body.admin-route .admin-helper-package-empty strong {
  color: #172033;
  font-size: 13px;
}

body.admin-route .admin-helper-package-empty span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-route.admin-compact-mode .admin-helper-card.is-expanded > .admin-helper-card-details:not([hidden]) {
  display: grid !important;
}

body.admin-route .admin-card-head,
body.admin-route .admin-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.admin-route .admin-card-head .tag-row {
  flex: 1;
  min-width: 0;
}

body.admin-route .admin-detail-button,
body.admin-route .admin-primary-action {
  flex: 0 0 auto;
}

body.admin-route .admin-intent-card {
  position: relative;
  overflow: hidden;
}

body.admin-route .admin-intent-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #dbeafe;
}

body.admin-route .admin-intent-card--warning::before {
  background: #f59e0b;
}

body.admin-route .admin-intent-card--urgent::before {
  background: #ef4444;
}

body.admin-route .admin-intent-card--fresh::before {
  background: #14b8a6;
}

body.admin-route .admin-sla-tag--fresh {
  border-color: rgba(20, 184, 166, 0.24);
  background: #e8fbf7;
  color: #0f766e;
}

body.admin-route .admin-sla-tag--warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: #fff7e8;
  color: #b45309;
}

body.admin-route .admin-sla-tag--urgent {
  border-color: rgba(239, 68, 68, 0.3);
  background: #fff1f2;
  color: #b91c1c;
}

body.admin-route .admin-sla-tag--muted {
  border-color: rgba(148, 163, 184, 0.24);
  background: #f1f5f9;
  color: #64748b;
}

body.admin-route .admin-intent-summary {
  color: #53657d;
  font-weight: 800;
  line-height: 1.55;
}

body.admin-route .admin-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 8px 0;
  color: #53657d;
}

body.admin-route .admin-contact-line strong {
  flex: 0 0 auto;
  color: #172033;
}

body.admin-route .admin-contact-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .copy-mini-button {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(47, 124, 246, 0.2);
  border-radius: 999px;
  background: #edf5ff;
  color: #245cc7;
  font-size: 11px;
  font-weight: 900;
}

body.admin-route .copy-mini-button:hover {
  border-color: rgba(47, 124, 246, 0.36);
  background: #dcecff;
}

body.admin-route .admin-timeline {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

body.admin-route .admin-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: #687a92;
  font-size: 12px;
  font-weight: 800;
}

body.admin-route .admin-timeline li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

body.admin-route .admin-timeline li.is-current::before {
  background: #236df4;
  box-shadow: 0 0 0 4px rgba(35, 109, 244, 0.12);
}

body.admin-route .admin-timeline strong {
  min-width: 0;
  overflow: hidden;
  color: #172033;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-secondary-actions {
  min-width: 0;
}

body.admin-route .admin-secondary-actions summary {
  cursor: pointer;
  color: #245cc7;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-secondary-actions[open] {
  width: 100%;
}

body.admin-route .admin-secondary-actions[open] summary {
  margin-bottom: 10px;
}

body.admin-route .admin-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: flex-end;
  padding: 18px;
  background: rgba(14, 23, 38, 0.38);
  backdrop-filter: blur(8px);
}

body.admin-route .admin-detail-overlay[hidden] {
  display: none !important;
}

body.admin-route .admin-detail-drawer {
  position: relative;
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(219, 230, 242, 0.96);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

body.admin-route .admin-detail-content,
body.admin-route .admin-detail-header,
body.admin-route .admin-detail-block {
  display: grid;
  gap: 12px;
}

body.admin-route .admin-detail-header {
  padding-right: 34px;
}

body.admin-route .admin-detail-header h3 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

body.admin-route .admin-detail-header p,
body.admin-route .admin-detail-block p {
  margin: 0;
  color: #687a92;
  line-height: 1.6;
}

body.admin-route .admin-detail-rows {
  display: grid;
  gap: 8px;
  margin: 0;
}

body.admin-route .admin-detail-rows div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(219, 230, 242, 0.9);
  border-radius: 14px;
  background: #ffffff;
}

body.admin-route .admin-detail-rows dt {
  color: #687a92;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-detail-rows dd {
  min-width: 0;
  margin: 0;
  color: #172033;
  font-weight: 900;
  overflow-wrap: anywhere;
}

body.admin-route .admin-detail-block {
  padding: 14px;
  border: 1px solid rgba(219, 230, 242, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

body.admin-route .admin-detail-block > strong {
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}

body.admin-route .admin-match-terms-block {
  border-color: rgba(47, 124, 246, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.12), transparent 38%),
    #ffffff;
}

body.admin-route .admin-match-terms-field {
  display: grid;
  gap: 7px;
}

body.admin-route .admin-match-terms-field span {
  color: #51647d;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-match-terms-field input,
body.admin-route .admin-match-terms-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe6f2;
  border-radius: 14px;
  background: #f8fbff;
  color: #172033;
  font: inherit;
  font-weight: 800;
}

body.admin-route .admin-match-terms-field input {
  min-height: 42px;
  padding: 0 12px;
}

body.admin-route .admin-match-terms-field textarea {
  resize: vertical;
  min-height: 92px;
  padding: 11px 12px;
  line-height: 1.55;
}

body.admin-route .admin-next-suggestion {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(219, 230, 242, 0.95);
  background: linear-gradient(135deg, rgba(248, 252, 255, 0.96), rgba(255, 255, 255, 0.98));
}

body.admin-route .admin-next-suggestion strong {
  color: #172033;
  font-size: 14px;
  font-weight: 950;
}

body.admin-route .admin-next-suggestion span {
  color: #60738c;
  font-size: 13px;
  line-height: 1.55;
}

body.admin-route .admin-next-suggestion--compact {
  margin: 8px 0;
  padding: 12px 14px;
}

body.admin-route .admin-next-suggestion--danger {
  border-color: rgba(252, 165, 165, 0.78);
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 255, 255, 0.98));
}

body.admin-route .admin-next-suggestion--danger strong {
  color: #b42318;
}

body.admin-route .admin-next-suggestion--warning {
  border-color: rgba(251, 191, 36, 0.72);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.98));
}

body.admin-route .admin-next-suggestion--warning strong {
  color: #92400e;
}

body.admin-route .admin-next-suggestion--info {
  border-color: rgba(147, 197, 253, 0.76);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
}

body.admin-route .admin-next-suggestion--info strong {
  color: #1d4ed8;
}

body.admin-route .admin-next-suggestion--success {
  border-color: rgba(134, 239, 172, 0.76);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.98));
}

body.admin-route .admin-next-suggestion--success strong {
  color: #047857;
}

body.admin-route .vehicle-inspection-admin-block h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #172033;
  font-size: 15px;
}

body.admin-route .vehicle-inspection-admin-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.admin-route .vehicle-inspection-admin-photos a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #eef3f8;
}

body.admin-route .vehicle-inspection-admin-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Admin published status emphasis */
body.admin-route .admin-market-card {
  position: relative;
  overflow: hidden;
}

body.admin-route .admin-market-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: #dbeafe;
}

body.admin-route .admin-market-card.admin-status-pending::before {
  background: #f59e0b;
}

body.admin-route .admin-market-card.admin-status-needs-info::before {
  background: #8b5cf6;
}

body.admin-route .admin-market-card.admin-status-offline::before {
  background: #94a3b8;
}

body.admin-route .admin-market-card.admin-status-matched::before,
body.admin-route .admin-market-card.admin-status-completed::before {
  background: #2f7cf6;
}

body.admin-route .admin-market-card.admin-status-published {
  border-color: rgba(20, 184, 166, 0.55);
  background:
    linear-gradient(90deg, rgba(20, 184, 166, 0.12) 0%, rgba(255, 255, 255, 0.98) 24%),
    #ffffff;
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.13);
}

body.admin-route .admin-market-card.admin-status-published::before {
  width: 9px;
  background: linear-gradient(180deg, #14b8a6 0%, #22c55e 100%);
}

body.admin-route .admin-published-marker {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, #dffcf3 0%, #effff9 100%);
  color: #047857;
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.12);
}

body.admin-route .admin-published-marker strong {
  color: #065f46;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

body.admin-route .admin-published-marker span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-request-card .admin-published-marker {
  margin: 0 0 4px 0;
}

body.admin-route .admin-helper-card .admin-published-marker {
  margin-bottom: 2px;
}

body.admin-route .admin-guide-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(47, 124, 246, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 0%, rgba(47, 124, 246, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.98));
  box-shadow: 0 14px 32px rgba(31, 82, 139, 0.08);
}

body.admin-route .admin-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.admin-route .admin-guide-head div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body.admin-route .admin-guide-head strong {
  color: #122033;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

body.admin-route .admin-guide-head span,
body.admin-route .admin-guide-card p {
  margin: 0;
  color: #60738c;
  font-size: 13px;
  line-height: 1.55;
}

body.admin-route .admin-guide-head em {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(35, 109, 244, 0.1);
  color: #1d4ed8;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

body.admin-route .admin-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.admin-route .admin-guide-steps span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(219, 230, 242, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: #26384f;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

body.admin-route .admin-guide-steps b {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #236df4, #14b8a6);
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

body.admin-route .admin-decision-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

body.admin-route .admin-decision-strip article {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(219, 230, 242, 0.92);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.95), rgba(255, 255, 255, 0.98));
}

body.admin-route .admin-decision-strip span {
  display: block;
  margin-bottom: 4px;
  color: #7a8aa0;
  font-size: 11px;
  font-weight: 950;
}

body.admin-route .admin-decision-strip strong {
  display: block;
  min-width: 0;
  color: #172033;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  body.admin-route .admin-modal {
    grid-template-areas:
      "top"
      "nav"
      "dashboard"
      "workbench"
      "flow"
      "tools"
      "workspace";
  }

  body.admin-route .admin-dashboard,
  body.admin-route .admin-tool-strip {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body.admin-route .admin-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-route .admin-guide-steps,
  body.admin-route .admin-decision-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-route .admin-card-head,
  body.admin-route .admin-card-actions,
  body.admin-route .admin-contact-line,
  body.admin-route .admin-helper-card-head {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-helper-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-route .admin-helper-package-fold-head {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-helper-package-fold-head .tag-row {
    justify-content: flex-start;
  }

  body.admin-route .admin-tool-strip {
    grid-template-columns: 1fr;
  }

  body.admin-route #admin-search-hint {
    white-space: normal;
  }

  body.admin-route .admin-detail-overlay {
    padding: 10px;
  }

  body.admin-route .admin-detail-drawer {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }

  body.admin-route .admin-detail-rows div {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-guide-head {
    display: grid;
  }
}

@media (max-width: 560px) {
  body.admin-route .admin-guide-steps,
  body.admin-route .admin-decision-strip {
    grid-template-columns: 1fr;
  }
}

/* Admin full-page route */
body.admin-route .admin-overlay {
  position: relative;
  inset: auto;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow: visible;
  background:
    radial-gradient(circle at 10% 0%, rgba(47, 124, 246, 0.12), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(20, 184, 166, 0.14), transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, #f4f9fd 48%, #edf6f8 100%);
  backdrop-filter: none;
}

body.admin-route .admin-modal {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  padding: clamp(14px, 2vw, 24px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 124, 246, 0.13), transparent 34%),
    radial-gradient(circle at 96% 4%, rgba(20, 184, 166, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 252, 255, 0.99) 100%);
  box-shadow: none;
  overflow: visible;
}

body.admin-route .admin-overlay.is-login-only {
  position: fixed;
  inset: 0;
  z-index: 90;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(237, 246, 250, 0.78);
  backdrop-filter: blur(14px);
}

body.admin-route .admin-overlay.is-login-only .admin-modal {
  width: min(480px, calc(100vw - 32px));
  max-width: 100%;
  min-height: 0;
  height: auto;
  max-height: min(620px, calc(100vh - 32px));
  max-height: min(620px, calc(100dvh - 32px));
  padding: 28px;
  border: 1px solid rgba(219, 230, 242, 0.96);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(31, 82, 139, 0.16);
  overflow: auto;
}

@media (max-width: 860px) {
  body.admin-route .admin-modal {
    padding: 12px;
  }

  body.admin-route .admin-overlay.is-login-only {
    padding: 16px;
  }

  body.admin-route .admin-overlay.is-login-only .admin-modal {
    width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 22px;
  }
}

/* Tabler-style admin skin: cleaner cards, sidebar nav, dense readable lists */
body.admin-route {
  --tabler-primary: #206bc4;
  --tabler-primary-dark: #1d60b1;
  --tabler-bg: #f5f7fb;
  --tabler-surface: #ffffff;
  --tabler-border: #dce1e7;
  --tabler-border-soft: #e6ebf1;
  --tabler-text: #1f2937;
  --tabler-muted: #667085;
  --tabler-soft: #f8fafc;
  --tabler-danger: #d63939;
  --tabler-warning: #f59f00;
  --tabler-success: #2fb344;
  --tabler-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  background: var(--tabler-bg);
  color: var(--tabler-text);
}

body.admin-route .admin-overlay {
  background: var(--tabler-bg);
}

body.admin-route .admin-modal {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  grid-template-rows: auto auto auto auto minmax(0, auto);
  grid-template-areas:
    "nav top"
    "nav dashboard"
    "nav workbench"
    "nav tools"
    "nav workspace";
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: var(--tabler-bg);
  color: var(--tabler-text);
  box-shadow: none;
}

body.admin-route .admin-overlay.is-login-only .admin-modal {
  border: 1px solid var(--tabler-border);
  border-radius: 10px;
  background: var(--tabler-surface);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
}

body.admin-route .admin-topbar,
body.admin-route .admin-section-nav,
body.admin-route .admin-dashboard,
body.admin-route .admin-workbench,
body.admin-route .admin-tool-strip,
body.admin-route .admin-workspace .point-panel,
body.admin-route .marker-editor,
body.admin-route .rating-admin-section,
body.admin-route .admin-summary,
body.admin-route .compact-summary,
body.admin-route .rating-summary-cards {
  border: 1px solid var(--tabler-border);
  border-radius: 10px;
  background: var(--tabler-surface);
  box-shadow: var(--tabler-shadow);
}

body.admin-route .admin-topbar {
  grid-area: top;
  align-items: center;
  min-width: 0;
  padding: 16px 18px;
}

body.admin-route .admin-topbar-copy {
  gap: 4px;
}

body.admin-route .admin-topbar-copy .eyebrow {
  margin: 0;
  color: var(--tabler-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.admin-route .admin-topbar-copy h2 {
  color: var(--tabler-text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

body.admin-route .admin-topbar-copy p {
  color: var(--tabler-muted);
  font-size: 13px;
  line-height: 1.45;
}

body.admin-route .admin-topbar-actions {
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

body.admin-route .admin-section-nav {
  grid-area: nav;
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 12px;
  gap: 4px;
  overflow: auto;
}

body.admin-route .admin-section-nav::before {
  content: "后台入口";
  display: block;
  margin: 4px 8px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tabler-border-soft);
  color: var(--tabler-text);
  font-size: 15px;
  font-weight: 800;
}

body.admin-route .admin-section-button {
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  box-shadow: none;
  text-align: left;
}

body.admin-route .admin-section-button:hover {
  background: #f1f5f9;
  transform: none;
}

body.admin-route .admin-section-button.is-active {
  background: #e7f0fb;
  color: var(--tabler-primary);
  box-shadow: none;
}

body.admin-route .admin-section-button.has-badge:not(.is-active) {
  background: #fff7ed;
  color: #9a3412;
}

body.admin-route .admin-section-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 8px;
  background: #eef2f7;
  color: #475467;
  font-size: 11px;
}

body.admin-route .admin-section-button.is-active .admin-section-icon {
  background: var(--tabler-primary);
  color: #ffffff;
}

body.admin-route .admin-section-label {
  font-size: 14px;
  font-weight: 800;
}

body.admin-route .admin-section-copy small {
  color: #7b8794;
  font-size: 11px;
}

body.admin-route .admin-section-badge {
  min-width: 24px;
  height: 24px;
  line-height: 24px;
  background: var(--tabler-danger);
  box-shadow: none;
}

body.admin-route .admin-section-badge--muted {
  background: #eef2f7;
  color: #667085;
}

body.admin-route .admin-dashboard {
  grid-area: dashboard;
  grid-template-columns: minmax(0, 1fr);
  padding: 16px;
}

body.admin-route .admin-dashboard-head {
  grid-column: 1 / -1;
  order: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

body.admin-route .admin-dashboard-head strong,
body.admin-route .admin-workbench-copy strong,
body.admin-route .admin-flow-copy strong,
body.admin-route .panel-title strong,
body.admin-route .panel-subtitle strong,
body.admin-route .admin-summary strong,
body.admin-route .compact-summary strong,
body.admin-route .rating-summary-cards strong,
body.admin-route .admin-market-card h3,
body.admin-route .submission-card h3,
body.admin-route .rating-card h3 {
  color: var(--tabler-text);
}

body.admin-route .admin-dashboard-head span,
body.admin-route .admin-workbench-copy span,
body.admin-route .admin-flow-copy span,
body.admin-route .panel-title span,
body.admin-route .panel-subtitle span,
body.admin-route .admin-summary span,
body.admin-route .admin-market-card p,
body.admin-route .submission-card p,
body.admin-route .rating-card p {
  color: var(--tabler-muted);
}

body.admin-route .admin-dashboard-grid {
  grid-column: 1 / -1;
  order: 2;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

body.admin-route .admin-dashboard-trends {
  grid-column: 1 / -1;
  order: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

body.admin-route .admin-trend-board {
  grid-column: 1 / -1;
  min-height: 360px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--tabler-border-soft);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 0%, rgba(32, 107, 196, 0.13), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--tabler-shadow);
}

body.admin-route .admin-trend-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body.admin-route .admin-trend-board-head div:first-child {
  display: grid;
  gap: 4px;
}

body.admin-route .admin-trend-board-head span {
  color: var(--tabler-primary);
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-trend-board-head strong {
  color: var(--tabler-text);
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -0.04em;
}

body.admin-route .admin-trend-board-head small {
  color: var(--tabler-muted);
  font-size: 13px;
  line-height: 1.5;
}

body.admin-route .admin-trend-board-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.admin-route .admin-trend-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--tabler-border-soft);
  border-radius: 999px;
  background: #ffffff;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

body.admin-route .admin-trend-legend-item i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--tabler-primary);
}

body.admin-route .admin-trend-legend-item--warning i {
  background: var(--tabler-warning);
}

body.admin-route .admin-trend-legend-item--info i {
  background: #7048e8;
}

body.admin-route .admin-trend-legend-item--success i {
  background: var(--tabler-success);
}

body.admin-route .admin-big-trend-chart {
  width: 100%;
  min-height: 250px;
  overflow: visible;
}

body.admin-route .admin-big-trend-guide line {
  stroke: #e5eaf0;
  stroke-width: 1;
}

body.admin-route .admin-big-trend-guide text,
body.admin-route .admin-big-trend-day {
  fill: #98a2b3;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

body.admin-route .admin-big-trend-guide text {
  text-anchor: end;
}

body.admin-route .admin-big-trend-series polyline {
  fill: none;
  stroke: var(--tabler-primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

body.admin-route .admin-big-trend-series circle {
  fill: #ffffff;
  stroke: var(--tabler-primary);
  stroke-width: 2.4;
}

body.admin-route .admin-big-trend-series text {
  fill: var(--tabler-primary);
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-big-trend-series--warning polyline,
body.admin-route .admin-big-trend-series--warning circle {
  stroke: var(--tabler-warning);
}

body.admin-route .admin-big-trend-series--warning text {
  fill: #b45309;
}

body.admin-route .admin-big-trend-series--info polyline,
body.admin-route .admin-big-trend-series--info circle {
  stroke: #7048e8;
}

body.admin-route .admin-big-trend-series--info text {
  fill: #7048e8;
}

body.admin-route .admin-big-trend-series--success polyline,
body.admin-route .admin-big-trend-series--success circle {
  stroke: var(--tabler-success);
}

body.admin-route .admin-big-trend-series--success text {
  fill: var(--tabler-success);
}

body.admin-route .admin-trend-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--tabler-border-soft);
  border-radius: 8px;
  background: var(--tabler-surface);
}

body.admin-route .admin-trend-head,
body.admin-route .admin-trend-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

body.admin-route .admin-trend-head span,
body.admin-route .admin-trend-foot span,
body.admin-route .admin-trend-foot strong {
  color: var(--tabler-muted);
  font-size: 11px;
  font-weight: 700;
}

body.admin-route .admin-trend-head strong {
  color: var(--tabler-text);
  font-size: 14px;
  font-weight: 900;
}

body.admin-route .admin-trend-head em {
  min-width: 34px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e7f0fb;
  color: var(--tabler-primary);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

body.admin-route .admin-trend-sparkline {
  width: 100%;
  height: 54px;
  overflow: visible;
}

body.admin-route .admin-trend-area {
  fill: rgba(32, 107, 196, 0.1);
}

body.admin-route .admin-trend-line {
  fill: none;
  stroke: var(--tabler-primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

body.admin-route .admin-trend-dot {
  fill: var(--tabler-surface);
  stroke: var(--tabler-primary);
  stroke-width: 2;
}

body.admin-route .admin-trend-card--warning .admin-trend-head em {
  background: #fff4de;
  color: #b45309;
}

body.admin-route .admin-trend-card--success .admin-trend-head em {
  background: #eaf7ec;
  color: var(--tabler-success);
}

body.admin-route .admin-trend-card--info .admin-trend-head em {
  background: #f0edff;
  color: #7048e8;
}

body.admin-route .admin-trend-sparkline--warning .admin-trend-area {
  fill: rgba(245, 159, 0, 0.12);
}

body.admin-route .admin-trend-sparkline--warning .admin-trend-line {
  stroke: var(--tabler-warning);
}

body.admin-route .admin-trend-sparkline--warning .admin-trend-dot {
  stroke: var(--tabler-warning);
}

body.admin-route .admin-trend-sparkline--success .admin-trend-area {
  fill: rgba(47, 179, 68, 0.12);
}

body.admin-route .admin-trend-sparkline--success .admin-trend-line {
  stroke: var(--tabler-success);
}

body.admin-route .admin-trend-sparkline--success .admin-trend-dot {
  stroke: var(--tabler-success);
}

body.admin-route .admin-trend-sparkline--info .admin-trend-area {
  fill: rgba(8, 116, 201, 0.12);
}

body.admin-route .admin-trend-sparkline--info .admin-trend-line {
  stroke: #7048e8;
}

body.admin-route .admin-trend-sparkline--info .admin-trend-dot {
  stroke: #7048e8;
}

body.admin-route .admin-dashboard-card,
body.admin-route .admin-workbench-card,
body.admin-route .admin-summary article,
body.admin-route .rating-card,
body.admin-route .admin-market-card,
body.admin-route .submission-card,
body.admin-route .admin-point-card,
body.admin-route .upload-item,
body.admin-route .market-intent-note-field {
  border: 1px solid var(--tabler-border-soft);
  border-radius: 8px;
  background: var(--tabler-surface);
  color: var(--tabler-text);
  box-shadow: none;
}

body.admin-route .admin-dashboard-card:hover,
body.admin-route .admin-workbench-card:hover,
body.admin-route .admin-market-card:hover,
body.admin-route .submission-card:hover,
body.admin-route .admin-point-card:hover {
  border-color: #b8c7d8;
  background: #fbfdff;
  transform: none;
}

body.admin-route .admin-market-card,
body.admin-route .admin-dashboard-card,
body.admin-route .admin-money-overview-card,
body.admin-route .admin-workbench-card,
body.admin-route .admin-summary article,
body.admin-route .compact-summary article,
body.admin-route .rating-card {
  cursor: pointer;
}

body.admin-route .admin-market-card button,
body.admin-route .admin-dashboard-card button,
body.admin-route .admin-money-overview-card button,
body.admin-route .admin-workbench-card button,
body.admin-route .admin-summary article button,
body.admin-route .compact-summary article button,
body.admin-route .rating-card button,
body.admin-route .admin-market-card summary {
  cursor: pointer;
}

body.admin-route .admin-market-card input,
body.admin-route .admin-market-card textarea {
  cursor: text;
}

body.admin-route .admin-market-card select {
  cursor: pointer;
}

body.admin-route .admin-market-card.is-card-refreshing,
body.admin-route .admin-dashboard-card.is-card-refreshing,
body.admin-route .admin-money-overview-card.is-card-refreshing,
body.admin-route .admin-workbench-card.is-card-refreshing,
body.admin-route .admin-summary article.is-card-refreshing,
body.admin-route .compact-summary article.is-card-refreshing,
body.admin-route .rating-card.is-card-refreshing {
  border-color: rgba(47, 124, 246, 0.52);
  background:
    linear-gradient(90deg, rgba(234, 243, 255, 0.66), rgba(255, 255, 255, 0.96), rgba(234, 243, 255, 0.66)),
    #ffffff;
  box-shadow: 0 0 0 3px rgba(47, 124, 246, 0.08);
  cursor: wait;
}

body.admin-route .admin-workbench {
  grid-area: workbench;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 12px;
}

body.admin-route .admin-workbench-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.admin-route .admin-workbench-card {
  min-height: 64px;
  padding: 10px;
}

body.admin-route .admin-workbench-count {
  min-width: 34px;
  height: 34px;
  background: #e7f0fb;
  color: var(--tabler-primary);
  font-size: 13px;
}

body.admin-route .admin-workbench-card--danger .admin-workbench-count {
  background: #fdecec;
  color: var(--tabler-danger);
}

body.admin-route .admin-workbench-card--warning .admin-workbench-count {
  background: #fff4de;
  color: #b45309;
}

body.admin-route .admin-workbench-card--success .admin-workbench-count {
  background: #eaf7ec;
  color: var(--tabler-success);
}

body.admin-route .admin-flow-strip {
  display: none !important;
}

body.admin-route .admin-tool-strip {
  grid-area: tools;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  padding: 10px;
}

body.admin-route .admin-search-field,
body.admin-route .admin-city-filter,
body.admin-route input,
body.admin-route textarea,
body.admin-route select {
  border-color: var(--tabler-border);
  border-radius: 7px;
  background: var(--tabler-surface);
  color: var(--tabler-text);
  box-shadow: none;
}

body.admin-route .admin-search-field {
  height: 40px;
}

body.admin-route .admin-search-field input {
  height: 36px;
  border: 0;
}

body.admin-route .admin-city-filter {
  height: 40px;
  min-width: 128px;
  border-radius: 7px;
}

body.admin-route .primary-button,
body.admin-route .mini-button.primary-button,
body.admin-route button.primary-button {
  min-height: 34px;
  border-color: var(--tabler-primary);
  border-radius: 7px;
  background: var(--tabler-primary);
  color: #ffffff;
  box-shadow: none;
}

body.admin-route .primary-button:hover,
body.admin-route button.primary-button:hover {
  background: var(--tabler-primary-dark);
  transform: none;
}

body.admin-route .secondary-button,
body.admin-route .mini-button,
body.admin-route .icon-button,
body.admin-route .admin-select-all,
body.admin-route .submission-filter-button,
body.admin-route .tab-button,
body.admin-route .copy-mini-button {
  min-height: 34px;
  border: 1px solid var(--tabler-border);
  border-radius: 7px;
  background: var(--tabler-surface);
  color: #344054;
  box-shadow: none;
}

body.admin-route .secondary-button:hover,
body.admin-route .mini-button:hover,
body.admin-route .icon-button:hover,
body.admin-route .submission-filter-button:hover,
body.admin-route .tab-button:hover,
body.admin-route .copy-mini-button:hover {
  border-color: #b8c7d8;
  background: #f8fafc;
  transform: none;
}

body.admin-route .danger-button,
body.admin-route .mini-button.danger-button {
  border-color: #f1b8b8;
  background: #fff5f5;
  color: var(--tabler-danger);
}

body.admin-route .admin-density-toggle[aria-pressed="true"],
body.admin-route .submission-filter-button.is-active,
body.admin-route .tab-button.is-active {
  border-color: var(--tabler-primary);
  background: var(--tabler-primary);
  color: #ffffff;
  box-shadow: none;
}

body.admin-route .admin-workspace {
  grid-area: workspace;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  overflow: visible;
}

body.admin-route .admin-workspace.is-with-editor,
body.admin-route .admin-workspace[data-admin-section="points"] {
  grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.05fr);
}

body.admin-route .admin-sidebar {
  display: contents;
}

body.admin-route .admin-workspace .point-panel,
body.admin-route .marker-editor {
  max-height: none;
  overflow: visible;
}

body.admin-route .panel-title,
body.admin-route .marker-editor .editor-title {
  position: static;
  padding: 14px 16px;
  border-bottom: 1px solid var(--tabler-border-soft);
  background: var(--tabler-surface);
  backdrop-filter: none;
}

body.admin-route .panel-title strong {
  font-size: 17px;
}

body.admin-route .panel-title span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f0fb;
  color: var(--tabler-primary);
  font-size: 12px;
}

body.admin-route .panel-title-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

body.admin-route .panel-density-toggle {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-summary,
body.admin-route .compact-summary,
body.admin-route .rating-summary-cards {
  padding: 12px;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

body.admin-route .admin-summary article {
  min-height: 68px;
  padding: 10px;
}

body.admin-route .admin-summary strong,
body.admin-route .compact-summary strong,
body.admin-route .rating-summary-cards strong {
  font-size: 24px;
}

body.admin-route .submission-filter-row,
body.admin-route .admin-batch-toolbar {
  padding: 10px 12px;
  border-bottom: 1px solid var(--tabler-border-soft);
  background: #fbfcfe;
}

body.admin-route .submission-filter-button {
  padding: 6px 10px;
  font-size: 12px;
}

body.admin-route .market-card-list,
body.admin-route .point-list,
body.admin-route .rating-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

body.admin-route .admin-market-card,
body.admin-route .submission-card,
body.admin-route .admin-point-card {
  padding: 14px;
}

body.admin-route .admin-market-card::before {
  border-radius: 8px 0 0 8px;
}

body.admin-route .admin-card-head,
body.admin-route .admin-card-actions,
body.admin-route .submission-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.admin-route .submission-actions button,
body.admin-route .admin-card-actions button,
body.admin-route .admin-market-card button,
body.admin-route .submission-card button {
  flex: 0 1 auto;
  max-width: 100%;
  white-space: nowrap;
}

body.admin-route .admin-next-step-cue {
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #f1f6fd;
}

body.admin-route .admin-next-step-cue--danger {
  border-color: #f1b8b8;
  background: #fff5f5;
}

body.admin-route .admin-next-step-cue--warning {
  border-color: #f4cf8d;
  background: #fff8e6;
}

body.admin-route .admin-next-step-cue--success {
  border-color: #b7e1c1;
  background: #eef9f1;
}

body.admin-route .tag,
body.admin-route .badge,
body.admin-route .status-pill,
body.admin-route .market-status-matched {
  border-radius: 999px;
  border-color: #cfe0f5;
  background: #e7f0fb;
  color: var(--tabler-primary);
}

body.admin-route .tag.direct-contact-tag {
  border-color: #f4cf8d;
  background: #fff4de;
  color: #9a5b00;
  box-shadow: none;
}

body.admin-route .market-photo-grid,
body.admin-route .submission-card-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.admin-route .market-photo-button,
body.admin-route .submission-card-photo,
body.admin-route .submission-card-photo-more {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

body.admin-route .admin-helper-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.admin-route .admin-helper-summary-grid article,
body.admin-route .admin-helper-card-details,
body.admin-route .admin-contact-note,
body.admin-route .admin-repeat-note,
body.admin-route .admin-search-hit-note {
  border-radius: 8px;
  box-shadow: none;
}

body.admin-route .popup-close {
  top: 18px;
  right: 18px;
  border: 1px solid var(--tabler-border);
  background: var(--tabler-surface);
  color: #667085;
}

body.admin-route.admin-compact-mode .admin-dashboard,
body.admin-route.admin-compact-mode .admin-flow-strip {
  display: none !important;
}

body.admin-route.admin-compact-mode .admin-modal {
  grid-template-rows: auto auto auto auto minmax(0, auto);
  grid-template-areas:
    "nav top"
    "nav dashboard"
    "nav workbench"
    "nav tools"
    "nav workspace";
}

body.admin-route.admin-compact-mode .admin-dashboard {
  display: grid !important;
}

body.admin-route.admin-compact-mode .admin-dashboard-grid {
  display: grid !important;
}

@media (max-width: 1180px) {
  body.admin-route .admin-modal,
  body.admin-route.admin-compact-mode .admin-modal {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "nav"
      "dashboard"
      "workbench"
      "tools"
      "workspace";
  }

  body.admin-route.admin-compact-mode .admin-modal {
    grid-template-areas:
      "top"
      "nav"
      "dashboard"
      "workbench"
      "tools"
      "workspace";
  }

  body.admin-route .admin-section-nav {
    position: static;
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
  }

  body.admin-route .admin-section-nav::before {
    display: none;
  }

  body.admin-route .admin-section-button {
    flex: 0 0 224px;
  }

  body.admin-route .admin-dashboard,
  body.admin-route .admin-workbench,
  body.admin-route .admin-tool-strip,
  body.admin-route .admin-workspace.is-with-editor,
  body.admin-route .admin-workspace[data-admin-section="points"] {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-dashboard-grid,
  body.admin-route .admin-workbench-list,
  body.admin-route .admin-dashboard-trends {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.admin-route .admin-modal {
    padding: 10px;
    gap: 10px;
  }

  body.admin-route .admin-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  body.admin-route .admin-topbar-actions {
    justify-content: flex-start;
  }

  body.admin-route .admin-dashboard-grid,
  body.admin-route .admin-workbench-list,
  body.admin-route .admin-dashboard-trends,
  body.admin-route .admin-helper-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.admin-route .admin-tool-strip {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-section-button {
    flex-basis: 210px;
  }
}

@media (max-width: 520px) {
  body.admin-route .admin-dashboard-grid,
  body.admin-route .admin-workbench-list,
  body.admin-route .admin-dashboard-trends,
  body.admin-route .admin-helper-summary-grid,
  body.admin-route .admin-summary,
  body.admin-route .compact-summary,
  body.admin-route .rating-summary-cards {
    grid-template-columns: 1fr !important;
  }

  body.admin-route .admin-section-button {
    flex-basis: 190px;
  }
}

/* Tabler preview dashboard refinements */
body.admin-route .admin-dashboard {
  gap: 12px;
  padding: 14px;
}

body.admin-route .admin-dashboard-head {
  padding: 2px 2px 4px;
}

body.admin-route .admin-dashboard-head strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

body.admin-route .admin-dashboard-grid {
  order: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px;
}

body.admin-route .admin-dashboard-card {
  min-height: 102px;
  align-content: start;
  gap: 8px;
  padding: 15px;
  text-align: left;
  cursor: default;
  overflow: hidden;
}

body.admin-route .admin-dashboard-card span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

body.admin-route .admin-dashboard-card strong {
  color: #182230;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

body.admin-route .admin-dashboard-card small {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

body.admin-route .admin-dashboard-card--urgent {
  border-color: #ffd6d6;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

body.admin-route .admin-dashboard-card--progress {
  border-color: #cfe0f5;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

body.admin-route .admin-dashboard-card--success {
  border-color: #c6ebcf;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf6 100%);
}

body.admin-route .admin-dashboard-trends {
  order: 2;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px;
}

body.admin-route .admin-tabler-dashboard-board {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(300px, 0.7fr) 320px;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

body.admin-route .admin-tabler-dashboard-board > .admin-trend-board {
  grid-column: auto;
}

body.admin-route .admin-trend-board {
  min-height: 0;
  padding: 14px;
  border-color: var(--tabler-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--tabler-shadow);
}

body.admin-route .admin-trend-board-head {
  align-items: flex-start;
  padding-bottom: 0;
}

body.admin-route .admin-trend-board-head span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

body.admin-route .admin-trend-board-head strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

body.admin-route .admin-trend-board-head small {
  max-width: 460px;
  font-size: 12px;
}

body.admin-route .admin-trend-board-legend {
  max-width: 300px;
}

body.admin-route .admin-trend-legend-item {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
}

body.admin-route .admin-big-trend-chart {
  height: 188px;
  min-height: 188px;
}

body.admin-route .admin-overview-chart-shell {
  min-width: 0;
  height: 220px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

body.admin-route .admin-overview-bar-chart {
  width: 100%;
  height: 220px;
  display: block;
  overflow: visible;
}

body.admin-route .admin-overview-guide line {
  stroke: #e6ebf1;
  stroke-width: 1;
}

body.admin-route .admin-overview-guide text,
body.admin-route .admin-overview-day {
  fill: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  text-anchor: middle;
}

body.admin-route .admin-overview-guide text {
  text-anchor: end;
}

body.admin-route .admin-overview-group-bg {
  fill: #f7f9fc;
}

body.admin-route .admin-overview-bar-empty {
  fill: #d9e0ea;
}

body.admin-route .admin-overview-bar-segment {
  fill: var(--tabler-primary);
}

body.admin-route .admin-overview-bar-segment--warning {
  fill: var(--tabler-warning);
}

body.admin-route .admin-overview-bar-segment--info {
  fill: #7048e8;
}

body.admin-route .admin-overview-bar-segment--success {
  fill: var(--tabler-success);
}

body.admin-route .admin-big-trend-series polyline {
  stroke-width: 3;
}

body.admin-route .admin-tabler-action-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--tabler-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--tabler-shadow);
}

body.admin-route .admin-publish-trend-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--tabler-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--tabler-shadow);
}

body.admin-route .admin-publish-trend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.admin-route .admin-publish-trend-head div:first-child {
  display: grid;
  gap: 3px;
}

body.admin-route .admin-publish-trend-head span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

body.admin-route .admin-publish-trend-head strong {
  color: #182230;
  font-size: 17px;
  letter-spacing: -0.02em;
}

body.admin-route .admin-publish-trend-head small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

body.admin-route .admin-publish-trend-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.admin-route .admin-publish-trend-legend-item {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--tabler-border-soft);
  border-radius: 6px;
  background: #ffffff;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

body.admin-route .admin-publish-trend-legend-item i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

body.admin-route .admin-publish-trend-legend-item--helper i {
  background: #12b886;
}

body.admin-route .admin-publish-trend-legend-item--request i {
  background: #fd7e14;
}

body.admin-route .admin-publish-bar-chart {
  width: 100%;
  height: 178px;
  display: block;
  overflow: visible;
}

body.admin-route .admin-publish-guide line {
  stroke: #e6ebf1;
  stroke-width: 1;
}

body.admin-route .admin-publish-guide text,
body.admin-route .admin-publish-day {
  fill: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  text-anchor: middle;
}

body.admin-route .admin-publish-guide text {
  text-anchor: end;
}

body.admin-route .admin-publish-bar-empty {
  fill: #d9e0ea;
}

body.admin-route .admin-publish-bar-segment--helper {
  fill: #12b886;
}

body.admin-route .admin-publish-bar-segment--request {
  fill: #fd7e14;
}

body.admin-route .admin-city-publish-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--tabler-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--tabler-shadow);
}

body.admin-route .admin-city-publish-labels,
body.admin-route .admin-city-publish-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2.2fr);
  gap: 14px;
  min-width: 0;
}

body.admin-route .admin-city-publish-labels {
  align-items: center;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 850;
}

body.admin-route .admin-city-publish-labels div,
body.admin-route .admin-city-publish-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(26px, 1fr));
  gap: 8px;
  min-width: 0;
}

body.admin-route .admin-city-publish-labels div {
  text-align: center;
}

body.admin-route .admin-city-publish-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.admin-route .admin-city-publish-row {
  align-items: center;
  padding: 10px;
  border: 1px solid var(--tabler-border-soft);
  border-radius: 10px;
  background: #f8fbff;
}

body.admin-route .admin-city-publish-city {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.admin-route .admin-city-publish-city strong {
  overflow: hidden;
  color: #182230;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-city-publish-city span,
body.admin-route .admin-city-publish-more,
body.admin-route .admin-city-publish-empty {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

body.admin-route .admin-city-publish-day {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 4px 2px;
  border-radius: 8px;
  background: #ffffff;
}

body.admin-route .admin-city-publish-bar {
  width: 8px;
  min-height: 3px;
  border-radius: 999px 999px 3px 3px;
}

body.admin-route .admin-city-publish-bar--helper {
  background: #12b886;
}

body.admin-route .admin-city-publish-bar--request {
  background: #fd7e14;
}

body.admin-route .admin-city-publish-bar.is-empty {
  background: #d9e0ea;
}

body.admin-route .admin-city-compare-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--tabler-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--tabler-shadow);
}

body.admin-route .admin-city-compare-head {
  display: grid;
  gap: 3px;
}

body.admin-route .admin-city-compare-head span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

body.admin-route .admin-city-compare-head strong {
  color: #182230;
  font-size: 18px;
  letter-spacing: -0.02em;
}

body.admin-route .admin-city-compare-head small,
body.admin-route .admin-city-compare-more,
body.admin-route .admin-city-compare-empty {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

body.admin-route .admin-city-compare-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

body.admin-route .admin-city-compare-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--tabler-border-soft);
  border-radius: 8px;
  background: #ffffff;
  color: var(--tabler-text);
  text-align: left;
  cursor: pointer;
}

body.admin-route .admin-city-compare-row:hover,
body.admin-route .admin-city-compare-row.is-active {
  border-color: #b8c7d8;
  background: #f8fafc;
}

body.admin-route .admin-city-compare-row.is-active {
  box-shadow: inset 3px 0 0 var(--tabler-primary);
}

body.admin-route .admin-city-compare-rank {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e7f0fb;
  color: var(--tabler-primary);
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-city-compare-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body.admin-route .admin-city-compare-main strong {
  color: #182230;
  font-size: 14px;
  line-height: 1.2;
}

body.admin-route .admin-city-compare-main i {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

body.admin-route .admin-city-compare-main i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--city-share, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tabler-primary), #4dabf7);
}

body.admin-route .admin-city-compare-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

body.admin-route .admin-city-compare-metrics em {
  min-width: 0;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 6px;
  background: #f6f8fb;
  color: #475467;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

body.admin-route .admin-city-compare-more {
  margin: 0;
}

body.admin-route .admin-tabler-action-head {
  display: grid;
  gap: 3px;
}

body.admin-route .admin-tabler-action-head span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

body.admin-route .admin-tabler-action-head strong {
  color: #182230;
  font-size: 18px;
  letter-spacing: -0.02em;
}

body.admin-route .admin-tabler-action-head small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

body.admin-route .admin-tabler-action-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

body.admin-route .admin-tabler-action-empty {
  padding: 12px;
  border: 1px dashed #d0d8e4;
  border-radius: 8px;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

body.admin-route .admin-tabler-action-card {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--tabler-border-soft);
  border-radius: 8px;
  background: #ffffff;
  color: var(--tabler-text);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

body.admin-route .admin-tabler-action-card:hover {
  border-color: #b8c7d8;
  background: #f8fafc;
}

body.admin-route .admin-tabler-action-count {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e7f0fb;
  color: var(--tabler-primary);
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

body.admin-route .admin-tabler-action-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.admin-route .admin-tabler-action-copy strong {
  color: #182230;
  font-size: 14px;
  line-height: 1.25;
}

body.admin-route .admin-tabler-action-copy small {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.admin-route .admin-tabler-action-arrow {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 19px;
  line-height: 1;
}

body.admin-route .admin-tabler-action-card--danger .admin-tabler-action-count {
  background: #fdecec;
  color: var(--tabler-danger);
}

body.admin-route .admin-tabler-action-card--warning .admin-tabler-action-count {
  background: #fff4de;
  color: #b45309;
}

body.admin-route .admin-tabler-action-card--success .admin-tabler-action-count {
  background: #eaf7ec;
  color: var(--tabler-success);
}

body.admin-route .admin-tabler-action-card--accent .admin-tabler-action-count {
  background: #ecfdf3;
  color: #008f73;
}

body.admin-route .admin-tabler-mini-trends {
  display: none !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

body.admin-route .admin-tabler-mini-trends .admin-trend-card {
  min-height: 144px;
}

@media (max-width: 1280px) {
  body.admin-route .admin-tabler-dashboard-board {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  body.admin-route .admin-city-compare-panel,
  body.admin-route .admin-city-publish-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  body.admin-route .admin-dashboard-trends {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.admin-route .admin-tabler-dashboard-board {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-tabler-mini-trends {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.admin-route .admin-dashboard-grid,
  body.admin-route .admin-tabler-mini-trends {
    grid-template-columns: 1fr !important;
  }

  body.admin-route .admin-trend-board-head {
    flex-direction: column;
  }

  body.admin-route .admin-trend-board-legend {
    justify-content: flex-start;
    max-width: none;
  }

  body.admin-route .admin-publish-trend-head {
    flex-direction: column;
  }

  body.admin-route .admin-publish-trend-legend {
    justify-content: flex-start;
  }

  body.admin-route .admin-city-publish-labels,
  body.admin-route .admin-city-publish-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.admin-route .admin-city-publish-labels > span {
    display: none;
  }

  body.admin-route .admin-city-publish-labels div,
  body.admin-route .admin-city-publish-days {
    gap: 5px;
  }

  body.admin-route .admin-city-publish-day {
    min-height: 42px;
  }
}

/* Admin homepage cleanup: one task entry, no duplicate workbench row */
body.admin-route .admin-workbench {
  display: none !important;
}

body.admin-route .admin-overlay:not(.is-login-only) .admin-modal,
body.admin-route.admin-compact-mode .admin-overlay:not(.is-login-only) .admin-modal {
  grid-template-rows: auto auto auto minmax(0, auto);
  grid-template-areas:
    "nav top"
    "nav dashboard"
    "nav tools"
    "nav workspace";
}

body.admin-route .admin-dashboard-card:hover {
  border-color: var(--tabler-border-soft);
  background: var(--tabler-surface);
}

@media (max-width: 1180px) {
  body.admin-route .admin-overlay:not(.is-login-only) .admin-modal,
  body.admin-route.admin-compact-mode .admin-overlay:not(.is-login-only) .admin-modal {
    grid-template-areas:
      "top"
      "nav"
      "dashboard"
      "tools"
      "workspace";
  }
}

/* Admin readability polish: light surfaces must always use dark, legible text */
body.admin-route {
  --admin-ink: #152238;
  --admin-ink-soft: #34465f;
  --admin-muted-strong: #5c6f87;
  --admin-line: #d8e2ee;
  --admin-surface-clean: #ffffff;
  --admin-surface-soft: #f7faff;
  --admin-blue-soft: #eef6ff;
  --admin-green-soft: #ecfdf7;
  --admin-amber-soft: #fff8e8;
  --admin-red-soft: #fff3f3;
}

body.admin-route .admin-topbar,
body.admin-route .admin-dashboard,
body.admin-route .admin-tool-strip,
body.admin-route .admin-workspace .point-panel,
body.admin-route .marker-editor,
body.admin-route .rating-admin-section,
body.admin-route .admin-summary,
body.admin-route .compact-summary,
body.admin-route .rating-summary-cards,
body.admin-route .admin-trend-board,
body.admin-route .admin-city-compare-panel,
body.admin-route .admin-tabler-action-panel,
body.admin-route .admin-publish-trend-panel,
body.admin-route .admin-market-card,
body.admin-route .submission-card,
body.admin-route .rating-card,
body.admin-route .admin-point-card {
  color: var(--admin-ink);
}

body.admin-route .admin-topbar-copy h2,
body.admin-route .admin-dashboard-head strong,
body.admin-route .panel-title strong,
body.admin-route .panel-subtitle strong,
body.admin-route .admin-market-card h3,
body.admin-route .submission-card h3,
body.admin-route .rating-card h3,
body.admin-route .admin-point-card h3,
body.admin-route .admin-card-head strong,
body.admin-route .admin-helper-card-main h3,
body.admin-route .admin-helper-summary-grid strong,
body.admin-route .admin-request-card h3,
body.admin-route .market-card h3 {
  color: var(--admin-ink) !important;
}

body.admin-route .admin-topbar-copy p,
body.admin-route .admin-dashboard-head span,
body.admin-route .panel-title span,
body.admin-route .panel-subtitle span,
body.admin-route .admin-market-card p,
body.admin-route .submission-card p,
body.admin-route .rating-card p,
body.admin-route .admin-point-card p,
body.admin-route .admin-card-head small,
body.admin-route .admin-helper-card-main p,
body.admin-route .market-subtle-note,
body.admin-route .admin-intent-summary,
body.admin-route .admin-helper-summary-grid span {
  color: var(--admin-muted-strong) !important;
}

body.admin-route .admin-helper-photo-head {
  max-width: none;
  padding: 8px 10px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface-soft);
  color: var(--admin-ink-soft);
}

body.admin-route .admin-helper-photo-head strong {
  color: var(--admin-ink) !important;
}

body.admin-route .admin-helper-photo-head span {
  color: var(--admin-muted-strong) !important;
}

body.admin-route .admin-match-safety-note {
  border-color: #f0cf8a;
  background: var(--admin-amber-soft);
  color: #7a4b00;
}

body.admin-route .admin-match-gap-list {
  border: 1px solid var(--admin-line);
  background: var(--admin-surface-soft);
}

body.admin-route .admin-match-gap-list > strong {
  color: var(--admin-ink) !important;
}

body.admin-route .admin-match-gap {
  border: 1px solid var(--admin-line);
  background: var(--admin-surface-clean);
  color: var(--admin-ink-soft);
}

body.admin-route .admin-match-gap--good {
  border-color: #b7e8d9;
  background: var(--admin-green-soft);
}

body.admin-route .admin-match-gap--warn {
  border-color: #efd08f;
  background: var(--admin-amber-soft);
}

body.admin-route .admin-match-gap--neutral {
  border-color: var(--admin-line);
  background: var(--admin-surface-soft);
  color: var(--admin-ink-soft);
}

body.admin-route .admin-match-gap strong {
  color: var(--admin-ink) !important;
}

body.admin-route .admin-match-gap-chip {
  border: 1px solid transparent;
}

body.admin-route .admin-match-gap-chip--covered,
body.admin-route .admin-match-gap-chip--ok {
  border-color: #a8e6d4;
  background: #dcfbf2;
  color: #0b6b5f;
}

body.admin-route .admin-match-gap-chip--missing {
  border-color: #f0cf8a;
  background: #fff1c8;
  color: #8a5300;
}

body.admin-route .admin-contact-note,
body.admin-route .admin-repeat-note,
body.admin-route .admin-search-hit-note,
body.admin-route .admin-next-step-cue,
body.admin-route .admin-action-note,
body.admin-route .market-success-note {
  color: var(--admin-ink-soft);
}

body.admin-route .admin-contact-note strong,
body.admin-route .admin-repeat-note strong,
body.admin-route .admin-search-hit-note strong,
body.admin-route .admin-next-step-cue strong,
body.admin-route .market-success-note strong {
  color: var(--admin-ink) !important;
}

body.admin-route .admin-contact-note {
  border-color: #c9ddf6;
  background: var(--admin-blue-soft);
}

body.admin-route .admin-repeat-note,
body.admin-route .market-success-note {
  border-color: #b7e8d9;
  background: var(--admin-green-soft);
}

body.admin-route .admin-search-hit-note {
  border: 1px solid #efd08f;
  background: var(--admin-amber-soft);
  color: #7a4b00;
}

body.admin-route .admin-next-step-cue {
  border-color: #c9ddf6;
  background: var(--admin-blue-soft);
}

body.admin-route .admin-next-step-cue small {
  color: var(--admin-muted-strong) !important;
}

body.admin-route .tag,
body.admin-route .badge,
body.admin-route .status-pill,
body.admin-route .market-status-matched {
  border-color: #c9ddf6;
  background: #eaf4ff;
  color: #1f5fbf;
}

body.admin-route .tag.repeat-tag {
  color: #0f6d61 !important;
  -webkit-text-fill-color: #0f6d61;
}

body.admin-route .tag.direct-contact-tag {
  color: #9a5b00 !important;
  -webkit-text-fill-color: #9a5b00;
}

body.admin-route .review-tag.review-published,
body.admin-route .success-tag,
body.admin-route .market-status-completed {
  border-color: #b7e8d9;
  background: var(--admin-green-soft);
  color: #0b6b5f;
}

body.admin-route .review-tag.review-pending,
body.admin-route .warning-tag {
  border-color: #efd08f;
  background: var(--admin-amber-soft);
  color: #8a5300;
}

body.admin-route .review-tag.review-needs-info {
  border-color: #b9d7ff;
  background: #eef6ff;
  color: #1f5fbf;
}

body.admin-route .danger-tag {
  border-color: #f0b8b8;
  background: var(--admin-red-soft);
  color: #a61b1b;
}

body.admin-route .review-tag.review-offline,
body.admin-route .muted-tag {
  border-color: var(--admin-line);
  background: #eef2f6;
  color: #526175;
}

body.admin-route .secondary-button,
body.admin-route .mini-button,
body.admin-route .icon-button,
body.admin-route .submission-filter-button,
body.admin-route .tab-button,
body.admin-route .copy-mini-button {
  color: #1f5fbf;
}

body.admin-route .secondary-button:hover,
body.admin-route .mini-button:hover,
body.admin-route .icon-button:hover,
body.admin-route .submission-filter-button:hover,
body.admin-route .tab-button:hover,
body.admin-route .copy-mini-button:hover {
  color: #174ea6;
}

body.admin-route .primary-button,
body.admin-route .mini-button.primary-button,
body.admin-route button.primary-button,
body.admin-route .submission-filter-button.is-active,
body.admin-route .tab-button.is-active,
body.admin-route .admin-density-toggle[aria-pressed="true"] {
  color: #ffffff !important;
}

body.admin-route input,
body.admin-route textarea,
body.admin-route select {
  color: var(--admin-ink);
}

body.admin-route input::placeholder,
body.admin-route textarea::placeholder {
  color: #70839a;
}

/* Admin point editor readability: prevent old dark-map form styles on light cards */
body.admin-route #marker-editor.marker-editor {
  border-color: var(--admin-line) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  color: var(--admin-ink) !important;
}

body.admin-route #marker-editor .editor-title {
  border-bottom-color: var(--admin-line) !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

body.admin-route #marker-editor .editor-title strong,
body.admin-route #marker-editor label,
body.admin-route #marker-editor .score-editor legend,
body.admin-route #marker-editor .upload-field {
  color: var(--admin-ink) !important;
  font-size: 13px;
  line-height: 1.45;
}

body.admin-route #marker-editor label {
  gap: 8px;
}

body.admin-route #marker-editor input,
body.admin-route #marker-editor select,
body.admin-route #marker-editor textarea {
  min-height: 42px;
  border: 1px solid #d8e2ee !important;
  background: #ffffff !important;
  color: var(--admin-ink) !important;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

body.admin-route #marker-editor textarea {
  padding-top: 10px;
  line-height: 1.55;
}

body.admin-route #marker-editor input::placeholder,
body.admin-route #marker-editor textarea::placeholder {
  color: #7b8da2 !important;
}

body.admin-route #marker-editor input:focus,
body.admin-route #marker-editor select:focus,
body.admin-route #marker-editor textarea:focus {
  border-color: #2f7cf6 !important;
  box-shadow: 0 0 0 3px rgba(47, 124, 246, 0.14);
  outline: none;
}

body.admin-route #marker-editor .map-field-guide,
body.admin-route #marker-editor .score-editor {
  border-color: #d8e2ee !important;
  background: #f7faff !important;
}

body.admin-route #marker-editor .map-field-guide > strong,
body.admin-route #marker-editor .map-field-guide-item strong {
  color: var(--admin-ink) !important;
}

body.admin-route #marker-editor .map-field-guide > p,
body.admin-route #marker-editor .map-field-guide-item span,
body.admin-route #marker-editor .upload-actions span {
  color: var(--admin-muted-strong) !important;
}

body.admin-route #marker-editor .map-field-guide-item {
  border-color: #dbe6f2 !important;
  background: #ffffff !important;
}

body.admin-route #marker-editor .upload-list {
  border-radius: 10px;
  background: #f7faff;
}

body.admin-route #marker-editor .upload-item {
  border-color: #d8e2ee;
  background: #ffffff;
  color: var(--admin-ink);
}

body.admin-route #marker-editor .editor-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.admin-route #marker-editor .editor-actions button,
body.admin-route #marker-editor .upload-actions button {
  min-width: 0;
  white-space: nowrap;
}

body.admin-route #marker-editor .primary-button {
  background: linear-gradient(135deg, #2f7cf6 0%, #1769dc 100%);
  color: #ffffff !important;
}

body.admin-route #marker-editor .secondary-button {
  border-color: #c9ddf6;
  background: #ffffff;
  color: #1f5fbf !important;
}

body.admin-route .admin-workspace.is-with-editor #marker-editor.marker-editor,
body.admin-route .admin-workspace[data-admin-section="points"] #marker-editor.marker-editor {
  position: sticky;
  top: 14px;
  align-self: start;
  max-height: calc(100vh - 28px);
  overflow: auto;
}

body.admin-route #marker-editor.marker-editor.is-editor-highlight {
  box-shadow:
    0 0 0 3px rgba(47, 124, 246, 0.16),
    0 24px 70px rgba(15, 23, 42, 0.14) !important;
}

@media (max-width: 760px) {
  body.admin-route #marker-editor .editor-grid,
  body.admin-route #marker-editor .score-editor,
  body.admin-route #marker-editor .editor-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  body.admin-route .admin-workspace.is-with-editor #marker-editor.marker-editor,
  body.admin-route .admin-workspace[data-admin-section="points"] #marker-editor.marker-editor {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* Admin active card readability */
body.admin-route .admin-section-button.is-active {
  border-color: #b9d3f7 !important;
  background: #eaf4ff !important;
  color: #1f5fbf !important;
  box-shadow: inset 3px 0 0 #2f7cf6 !important;
}

body.admin-route .admin-section-button.is-active .admin-section-label,
body.admin-route .admin-section-button.is-active .admin-section-copy,
body.admin-route .admin-section-button.is-active .admin-section-copy small {
  color: #1f5fbf !important;
}

body.admin-route .admin-section-button.is-active .admin-section-copy small {
  opacity: 0.8;
}

body.admin-route .admin-section-button.is-active .admin-section-icon {
  background: #d8eaff !important;
  color: #1f5fbf !important;
}

body.admin-route .admin-section-button.is-active .admin-section-badge,
body.admin-route .admin-section-button.is-active .admin-section-badge--muted {
  border: 1px solid #b9d3f7;
  background: #ffffff !important;
  color: #1f5fbf !important;
}

body.admin-route .point-card.admin-point-card.is-active,
body.admin-route .admin-point-card.is-active {
  border-color: #2f7cf6 !important;
  background: #f5f9ff !important;
  color: var(--admin-ink) !important;
  box-shadow: inset 4px 0 0 #2f7cf6, 0 10px 24px rgba(31, 82, 139, 0.08) !important;
}

body.admin-route .admin-point-card.is-active .point-card-main,
body.admin-route .admin-point-card.is-active .admin-card-select,
body.admin-route .admin-point-card.is-active h3,
body.admin-route .admin-point-card.is-active p,
body.admin-route .admin-point-card.is-active .admin-decision-strip strong,
body.admin-route .admin-point-card.is-active .admin-next-step-cue strong {
  color: var(--admin-ink) !important;
}

body.admin-route .admin-point-card.is-active .admin-decision-strip span,
body.admin-route .admin-point-card.is-active .admin-next-step-cue,
body.admin-route .admin-point-card.is-active .admin-next-step-cue small {
  color: var(--admin-muted-strong) !important;
}

/* Keep the admin detail toggle beside each active panel title. */
body.admin-route .panel-title .panel-title-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

body.admin-route .panel-title .panel-title-actions span {
  background: #e7f0fb;
  color: var(--tabler-primary) !important;
}

body.admin-route .panel-title .panel-density-toggle {
  min-height: 30px;
  min-width: 96px;
  flex: 0 0 auto;
  overflow: visible;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--tabler-primary) !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-indent: 0;
  white-space: nowrap;
  opacity: 1;
}

body.admin-route .panel-title .panel-density-toggle[aria-pressed="true"] {
  border-color: var(--tabler-primary) !important;
  background: var(--tabler-primary) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

body.admin-route .panel-title .panel-density-toggle[aria-pressed="false"] {
  color: var(--tabler-primary) !important;
  -webkit-text-fill-color: var(--tabler-primary);
}

body.admin-route.admin-compact-mode .admin-workspace .submission-actions button:nth-of-type(n+2) {
  display: inline-flex;
}

body.admin-route .admin-processing-strip {
  grid-area: dashboard;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(47, 124, 246, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.98));
  box-shadow: 0 12px 28px rgba(31, 82, 139, 0.07);
}

body.admin-route .admin-processing-strip[hidden],
body.admin-route .submission-filter-row[hidden] {
  display: none !important;
}

body.admin-route:not(.admin-processing-mode) .admin-processing-strip,
body.admin-route:not(.admin-processing-mode) .admin-tool-strip,
body.admin-route:not(.admin-processing-mode) .admin-workspace {
  display: none !important;
}

body.admin-route.admin-processing-mode .admin-dashboard,
body.admin-route.admin-processing-mode .admin-workbench,
body.admin-route.admin-processing-mode .admin-flow-strip {
  display: none !important;
}

body.admin-route .admin-workbench {
  display: none !important;
}

body.admin-route .admin-processing-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.admin-route .admin-processing-copy span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-processing-copy strong {
  color: #122033;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

body.admin-route .admin-processing-copy small {
  color: #516071;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

body.admin-route #admin-overview-button {
  min-height: 36px;
  min-width: 96px;
  padding: 8px 14px;
  border-color: rgba(47, 124, 246, 0.28);
  background: #ffffff;
  color: var(--tabler-primary) !important;
  -webkit-text-fill-color: var(--tabler-primary);
}

body.admin-route .admin-dashboard-card {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(219, 230, 242, 0.96);
  font: inherit;
  cursor: pointer;
}

body.admin-route .admin-section-button.is-active,
body.admin-route .admin-section-button.is-active .admin-section-label,
body.admin-route .admin-section-button.is-active .admin-section-copy small {
  color: var(--tabler-primary) !important;
  -webkit-text-fill-color: var(--tabler-primary);
}

body.admin-route.admin-processing-mode .admin-guide-card {
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(31, 82, 139, 0.05);
}

body.admin-route.admin-processing-mode .admin-guide-head {
  align-items: center;
}

body.admin-route.admin-processing-mode .admin-guide-head strong {
  font-size: 14px;
}

body.admin-route.admin-processing-mode .admin-guide-head span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

body.admin-route.admin-processing-mode .admin-guide-steps,
body.admin-route.admin-processing-mode .admin-guide-card > p {
  display: none !important;
}

body.admin-route .market-empty-card {
  min-height: 118px;
  border: 1px dashed rgba(47, 124, 246, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.1), transparent 32%),
    linear-gradient(135deg, #ffffff, #f4f8ff);
  color: #26384f;
  box-shadow: none;
}

body.admin-route .market-empty-card strong {
  color: #122033;
}

body.admin-route .market-empty-card p {
  color: #5d6f86;
}

body.admin-route .submission-card.admin-moderation-risk,
body.admin-route .admin-market-card.admin-moderation-risk {
  border-color: #f0cf8a;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.07);
}

body.admin-route .submission-card.admin-moderation-risk-high,
body.admin-route .admin-market-card.admin-moderation-risk-high {
  border-color: #f2b8b8;
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.07);
}

body.admin-route .admin-market-card::before {
  display: none !important;
}

body.admin-route .admin-market-card.admin-status-pending {
  border-color: #f0cf8a;
}

body.admin-route .admin-market-card.admin-status-needs-info {
  border-color: #d8c7ff;
  background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}

body.admin-route .admin-market-card.admin-status-offline {
  border-color: #d8e0ea;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.admin-route .admin-market-card.admin-status-matched,
body.admin-route .admin-market-card.admin-status-completed {
  border-color: #cfe0f5;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

body.admin-route .tag.admin-moderation-tag {
  border-color: #f0cf8a;
  background: #fff4de;
  color: #8a5300 !important;
  -webkit-text-fill-color: #8a5300;
  font-weight: 950;
}

body.admin-route .tag.admin-moderation-tag--high {
  border-color: #f2b8b8;
  background: #fff1f2;
  color: #b91c1c !important;
  -webkit-text-fill-color: #b91c1c;
}

body.admin-route .admin-moderation-cue {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  margin: 8px 0;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #f0cf8a;
  background: #fff8e8;
  box-shadow: none;
}

body.admin-route .admin-moderation-cue span {
  width: auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: #8a5300;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

body.admin-route .admin-moderation-cue strong {
  min-width: 0;
  color: #533400;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-moderation-cue small {
  grid-column: 2;
  color: #7a4b00;
  font-size: 12px;
  line-height: 1.35;
}

body.admin-route .admin-moderation-cue--high {
  border-color: #f2b8b8;
  background: #fff1f2;
}

body.admin-route .admin-moderation-cue--high span {
  color: #b91c1c;
}

body.admin-route .admin-moderation-cue--high strong,
body.admin-route .admin-moderation-cue--high small {
  color: #8f1d1d;
}

body.admin-route .admin-moderation-detail {
  border-radius: 12px;
  border-color: #f0cf8a;
  background: #fff8e8;
  box-shadow: none;
}

body.admin-route .admin-moderation-detail--high {
  border-color: #f2b8b8;
  background: #fff1f2;
}

body.admin-route .admin-moderation-detail li {
  grid-template-columns: minmax(88px, 0.6fr) minmax(140px, 1fr) auto;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.76);
}

@media (max-width: 760px) {
  body.admin-route .admin-processing-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  body.admin-route #admin-overview-button {
    width: 100%;
  }

  body.admin-route .admin-moderation-cue {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-moderation-cue strong {
    white-space: normal;
  }

  body.admin-route .admin-moderation-cue small {
    grid-column: auto;
  }

  body.admin-route .admin-moderation-detail li {
    grid-template-columns: 1fr;
  }
}

/* Admin contrast guardrail: keep light Tabler-style surfaces readable. */
body.admin-route {
  --admin-readable-strong: #111827;
  --admin-readable-text: #26384f;
  --admin-readable-muted: #5f728a;
  --admin-readable-blue: #1f5fbf;
}

body.admin-route :is(
  .admin-modal,
  .admin-topbar,
  .admin-dashboard,
  .admin-workbench,
  .admin-flow-strip,
  .admin-tool-strip,
  .admin-processing-strip,
  .admin-section-nav,
  .admin-workspace .point-panel,
  .marker-editor,
  .rating-admin-section,
  .admin-summary,
  .compact-summary,
  .rating-summary-cards,
  .admin-trend-board,
  .admin-city-compare-panel,
  .admin-city-publish-panel,
  .admin-tabler-action-panel,
  .admin-publish-trend-panel,
  .admin-market-card,
  .submission-card,
  .rating-card,
  .admin-point-card,
  .admin-helper-card,
  .admin-helper-card-details,
  .admin-request-card,
  .market-card-details,
  .market-empty-card,
  .admin-dashboard-card,
  .admin-workbench-card,
  .admin-tabler-action-card,
  .admin-guide-card,
  .admin-moderation-cue,
  .admin-moderation-detail,
  .admin-detail-drawer,
  .admin-detail-content,
  .admin-detail-header,
  .admin-detail-block,
  .admin-detail-rows
) {
  color: var(--admin-readable-text) !important;
  -webkit-text-fill-color: currentColor;
}

body.admin-route :is(
  .admin-modal,
  .admin-dashboard,
  .admin-workspace .point-panel,
  .marker-editor,
  .admin-market-card,
  .submission-card,
  .rating-card,
  .admin-point-card,
  .admin-helper-card,
  .admin-helper-card-details,
  .admin-request-card,
  .admin-detail-drawer,
  .admin-detail-block,
  .admin-dashboard-card,
  .admin-workbench-card,
  .admin-tabler-action-card
) :is(h1, h2, h3, h4, h5, h6, strong, b, label, legend, dt, th, .admin-section-label, .panel-title strong, .admin-card-head strong) {
  color: var(--admin-readable-strong) !important;
  -webkit-text-fill-color: var(--admin-readable-strong);
}

body.admin-route :is(
  .admin-modal,
  .admin-dashboard,
  .admin-workspace .point-panel,
  .marker-editor,
  .admin-market-card,
  .submission-card,
  .rating-card,
  .admin-point-card,
  .admin-helper-card,
  .admin-helper-card-details,
  .admin-request-card,
  .admin-detail-drawer,
  .admin-detail-block,
  .admin-dashboard-card,
  .admin-workbench-card,
  .admin-tabler-action-card
) :is(p, small, em, dd, td, .panel-title span, .panel-subtitle span, .admin-card-head small, .admin-helper-card-main p, .admin-intent-summary, .market-subtle-note) {
  color: var(--admin-readable-muted) !important;
  -webkit-text-fill-color: var(--admin-readable-muted);
}

body.admin-route .admin-section-button {
  color: #3f5269 !important;
  -webkit-text-fill-color: #3f5269;
}

body.admin-route .admin-section-button:hover {
  color: var(--admin-readable-blue) !important;
  -webkit-text-fill-color: var(--admin-readable-blue);
}

body.admin-route .admin-section-button.is-active,
body.admin-route .admin-section-button.is-active :is(.admin-section-label, .admin-section-copy, small) {
  color: var(--admin-readable-blue) !important;
  -webkit-text-fill-color: var(--admin-readable-blue);
}

body.admin-route .admin-section-button.is-active .admin-section-icon {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

body.admin-route .admin-section-badge:not(.admin-section-badge--muted) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

body.admin-route .admin-section-button.is-active .admin-section-badge,
body.admin-route .admin-section-button.is-active .admin-section-badge--muted {
  color: var(--admin-readable-blue) !important;
  -webkit-text-fill-color: var(--admin-readable-blue);
}

body.admin-route :is(
  .secondary-button,
  .mini-button,
  .icon-button,
  .copy-mini-button,
  .submission-filter-button,
  .tab-button,
  .admin-density-toggle,
  .panel-density-toggle,
  #admin-overview-button,
  .admin-detail-button
) {
  color: var(--admin-readable-blue) !important;
  -webkit-text-fill-color: var(--admin-readable-blue);
}

body.admin-route :is(.admin-density-toggle, .panel-density-toggle, #admin-overview-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-indent: 0 !important;
  opacity: 1 !important;
}

body.admin-route :is(input, textarea, select) {
  color: var(--admin-readable-strong) !important;
  -webkit-text-fill-color: var(--admin-readable-strong);
}

body.admin-route :is(input, textarea)::placeholder {
  color: #7b8da2 !important;
  -webkit-text-fill-color: #7b8da2;
}

/* Final pass: white text only belongs on true filled-blue actions. */
body.admin-route :is(
  .primary-button,
  button.primary-button,
  .mini-button.primary-button,
  .submission-filter-button.is-active,
  .tab-button.is-active,
  .admin-density-toggle[aria-pressed="true"],
  .panel-density-toggle[aria-pressed="true"],
  .admin-flow-step.is-active
) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.admin-route :is(
  .primary-button,
  button.primary-button,
  .mini-button.primary-button,
  .submission-filter-button.is-active,
  .tab-button.is-active,
  .admin-density-toggle[aria-pressed="true"],
  .panel-density-toggle[aria-pressed="true"],
  .admin-flow-step.is-active
) :is(span, strong, small, b, i) {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

body.admin-route .admin-package-lines {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

body.admin-route .admin-package-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(111, 132, 164, 0.18);
  border-radius: 8px;
  background: #f8fbff;
}

body.admin-route .admin-package-line-main {
  min-width: 0;
}

body.admin-route .admin-package-line-main strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.35;
}

body.admin-route .admin-package-line-main p {
  margin: 5px 0 0;
  line-height: 1.45;
}

body.admin-route .admin-package-line-main small {
  display: block;
  margin-top: 5px;
  line-height: 1.45;
}

body.admin-route .admin-package-status-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.admin-route .admin-package-status-text {
  font-size: 11px;
  font-weight: 800;
  color: #1267e8 !important;
  -webkit-text-fill-color: #1267e8 !important;
}

body.admin-route .admin-package-status-text.is-off {
  color: #69758a !important;
  -webkit-text-fill-color: #69758a !important;
}

body.admin-route .admin-package-switch {
  position: relative;
  width: 30px;
  min-width: 30px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #1267e8;
  box-shadow: inset 0 0 0 1px rgba(18, 103, 232, 0.08);
  cursor: pointer;
  transition: background 0.18s ease;
}

body.admin-route .admin-package-switch.is-off {
  background: #c9d1de;
  box-shadow: inset 0 0 0 1px rgba(105, 117, 138, 0.12);
}

body.admin-route .admin-package-switch:disabled {
  cursor: wait;
  opacity: 0.72;
}

body.admin-route .admin-package-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(18, 25, 38, 0.22);
  transform: translateX(10px);
  transition: transform 0.18s ease;
}

body.admin-route .admin-package-switch.is-off .admin-package-switch-knob {
  transform: translateX(0);
}

body.admin-route .admin-package-line-actions {
  align-self: center;
  justify-content: flex-end;
  margin: 0;
  white-space: nowrap;
}

body.admin-route .admin-ledger-summary,
body.admin-route .admin-money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

body.admin-route .admin-money-grid--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.admin-route .admin-ledger-summary article,
body.admin-route .admin-money-grid article {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(111, 132, 164, 0.18);
  border-radius: 8px;
  background: #f8fbff;
}

body.admin-route .admin-ledger-summary span,
body.admin-route .admin-ledger-summary small,
body.admin-route .admin-money-grid span,
body.admin-route .admin-money-grid small {
  display: block;
  color: #5f728a !important;
  -webkit-text-fill-color: #5f728a;
  font-size: 12px;
  line-height: 1.35;
}

body.admin-route .admin-ledger-summary strong,
body.admin-route .admin-money-grid strong {
  display: block;
  margin-top: 4px;
  color: #111827 !important;
  -webkit-text-fill-color: #111827;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.admin-route .admin-money-grid small {
  margin-top: 3px;
}

body.admin-route .admin-ledger-summary small {
  margin-top: 3px;
}

body.admin-route .admin-ledger-details {
  margin: 10px 0;
  border: 1px solid rgba(47, 124, 246, 0.16);
  border-radius: 10px;
  background: #fbfdff;
  overflow: hidden;
}

body.admin-route .admin-ledger-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

body.admin-route .admin-ledger-details > summary::-webkit-details-marker {
  display: none;
}

body.admin-route .admin-ledger-details > summary::after {
  content: "展开";
  flex: 0 0 auto;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-ledger-details[open] > summary::after {
  content: "收起";
}

body.admin-route .admin-ledger-details > summary small {
  min-width: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-money-grid--ledger {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0 12px 12px;
}

body.admin-route .admin-money-grid--ledger article {
  background: #ffffff;
}

body.admin-route .admin-money-grid--ledger article[class*="--primary"] {
  border-color: rgba(47, 124, 246, 0.22);
  background: #eff6ff;
}

body.admin-route .admin-money-grid--ledger article[class*="--warning"] {
  border-color: rgba(245, 158, 11, 0.26);
  background: #fffaf0;
}

body.admin-route .admin-money-grid--ledger article[class*="--success"] {
  border-color: rgba(20, 184, 166, 0.22);
  background: #f0fdfa;
}

body.admin-route .admin-platform-income-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(47, 124, 246, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

body.admin-route .admin-platform-income-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.admin-route .admin-platform-income-head div {
  display: grid;
  gap: 3px;
}

body.admin-route .admin-platform-income-head span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-platform-income-head strong {
  color: #101828;
  font-size: 18px;
  line-height: 1.2;
}

body.admin-route .admin-platform-income-head small {
  max-width: 540px;
  color: #5f728a;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

body.admin-route .admin-platform-income-summary {
  margin: 0;
}

body.admin-route .admin-platform-income-summary article:first-child {
  border-color: rgba(18, 103, 232, 0.22);
  background: #eef6ff;
}

body.admin-route .admin-platform-income-summary article:first-child strong {
  color: #0f4fb5 !important;
  -webkit-text-fill-color: #0f4fb5;
  font-size: 16px;
}

body.admin-route .admin-income-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.admin-route .admin-income-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.55fr) minmax(180px, 1.4fr) minmax(110px, 0.8fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(111, 132, 164, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

body.admin-route .admin-income-row--head {
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-income-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.admin-route .admin-income-row strong {
  min-width: 0;
  color: #101828;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.admin-route .admin-income-row small {
  min-width: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.admin-route .admin-income-row > span:last-child strong {
  color: #0f4fb5;
}

body.admin-route .admin-income-empty {
  padding: 12px;
  border: 1px dashed rgba(111, 132, 164, 0.24);
  border-radius: 8px;
  color: #667085;
  background: #ffffff;
  font-size: 13px;
}

body.admin-route .admin-money-note,
body.admin-route .admin-chat-message {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(111, 132, 164, 0.16);
  border-radius: 8px;
  background: #fbfdff;
  line-height: 1.55;
}

body.admin-route .admin-ledger-actions {
  margin-top: 12px;
}

body.admin-route .admin-deposit-card .admin-detail-rows {
  margin-top: 12px;
}

body.admin-route .admin-deposit-card .admin-money-grid article:nth-child(1),
body.admin-route .admin-deposit-card .admin-money-grid article:nth-child(2) {
  border-color: rgba(47, 124, 246, 0.24);
  background: #eef6ff;
}

body.admin-route .admin-deposit-card .admin-money-grid article:nth-child(1) strong,
body.admin-route .admin-deposit-card .admin-money-grid article:nth-child(2) strong {
  color: #0f4fb5 !important;
  -webkit-text-fill-color: #0f4fb5;
  font-size: 15px;
}

body.admin-route .admin-deposit-card .admin-money-grid article:nth-child(n + 5) {
  background: #fbfdff;
}

body.admin-route .admin-deposit-card .admin-money-grid article:nth-child(n + 5) strong {
  color: #475569 !important;
  -webkit-text-fill-color: #475569;
  font-size: 13px;
}

@media (max-width: 980px) {
  body.admin-route .admin-ledger-summary,
  body.admin-route .admin-money-grid,
  body.admin-route .admin-money-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.admin-route .admin-helper-package-line {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-helper-package-line > .mini-button {
    width: fit-content;
    min-width: 72px;
  }

  body.admin-route .admin-package-line {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-package-line-actions {
    justify-content: flex-start;
    white-space: normal;
  }

  body.admin-route .admin-ledger-summary,
  body.admin-route .admin-money-grid,
  body.admin-route .admin-money-grid--six {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-platform-income-head {
    display: grid;
  }

  body.admin-route .admin-platform-income-head small {
    max-width: none;
    text-align: left;
  }

  body.admin-route .admin-income-row {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-income-row--head {
    display: none;
  }
}

body.admin-route .after-sale-admin-card {
  border-color: rgba(255, 151, 84, 0.22);
}

body.admin-route .after-sale-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

body.admin-route .after-sale-admin-card .after-sale-summary-grid strong {
  white-space: normal;
}

body.admin-route .admin-order-card-headline {
  display: grid;
  gap: 8px;
}

body.admin-route .admin-order-card-tags {
  margin: 0;
}

body.admin-route .admin-order-card-title-row {
  display: grid;
  gap: 4px;
}

body.admin-route .admin-order-card-title-row h3 {
  margin: 0;
}

body.admin-route .admin-order-card-title-row p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

body.admin-route .admin-case-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

body.admin-route .admin-case-snapshot article {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(111, 132, 164, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

body.admin-route .admin-case-snapshot article[class*="--danger"] {
  border-color: rgba(239, 68, 68, 0.22);
  background: #fff7f7;
}

body.admin-route .admin-case-snapshot article[class*="--warning"] {
  border-color: rgba(245, 158, 11, 0.26);
  background: #fffaf0;
}

body.admin-route .admin-case-snapshot article[class*="--success"] {
  border-color: rgba(20, 184, 166, 0.22);
  background: #f0fdfa;
}

body.admin-route .admin-case-snapshot span,
body.admin-route .admin-case-snapshot small {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

body.admin-route .admin-case-snapshot strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.admin-route .admin-case-snapshot small {
  margin-top: 4px;
}

body.admin-route .admin-after-sale-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: #f8fbff;
}

body.admin-route .admin-after-sale-workflow-step {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 3px 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dbe7f7;
  border-radius: 12px;
  background: #ffffff;
}

body.admin-route .admin-after-sale-workflow-step span {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-after-sale-workflow-step strong {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.25;
}

body.admin-route .admin-after-sale-workflow-step small {
  min-width: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

body.admin-route .admin-after-sale-workflow-step.is-done span {
  background: #dcfce7;
  color: #15803d;
}

body.admin-route .admin-after-sale-workflow-step.is-current {
  border-color: #bfdbfe;
  background: #eff6ff;
}

body.admin-route .admin-after-sale-workflow-step.is-current span {
  background: #2563eb;
  color: #ffffff;
}

body.admin-route .admin-after-sale-workflow-step.is-pending {
  opacity: 0.72;
}

body.admin-route .admin-evidence-box {
  margin: 10px 0;
  border: 1px solid rgba(111, 132, 164, 0.16);
  border-radius: 10px;
  background: #f8fbff;
}

body.admin-route .admin-evidence-box > summary {
  min-height: 36px;
  padding: 9px 12px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

body.admin-route .admin-evidence-box > summary::-webkit-details-marker {
  display: none;
}

body.admin-route .admin-evidence-box > summary::after {
  content: "展开";
  float: right;
  color: #64748b;
  font-size: 12px;
}

body.admin-route .admin-evidence-box[open] > summary::after {
  content: "收起";
}

body.admin-route .admin-evidence-box > div {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

body.admin-route .admin-card-action-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

body.admin-route .admin-card-primary-action {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.admin-route .admin-card-more-actions {
  position: relative;
}

body.admin-route .admin-card-more-actions summary {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid #d7e4f2;
  border-radius: 999px;
  background: #ffffff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

body.admin-route .admin-card-more-actions summary::-webkit-details-marker {
  display: none;
}

body.admin-route .admin-card-more-actions .submission-actions {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(111, 132, 164, 0.16);
  border-radius: 12px;
  background: #ffffff;
}

body.admin-route .admin-market-card.admin-order-card {
  gap: 8px;
  padding: 13px 14px;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 82, 139, 0.05);
}

body.admin-route .admin-market-card.admin-order-card.admin-status-pending,
body.admin-route .admin-market-card.admin-order-card.admin-status-needs-info,
body.admin-route .admin-market-card.admin-order-card.admin-status-offline,
body.admin-route .admin-market-card.admin-order-card.admin-status-matched,
body.admin-route .admin-market-card.admin-order-card.admin-status-completed {
  background: #ffffff;
}

body.admin-route .admin-order-card .admin-order-card-headline {
  gap: 6px;
}

body.admin-route .admin-order-card .admin-order-card-title-row {
  gap: 3px;
}

body.admin-route .admin-order-card .admin-order-card-title-row h3 {
  font-size: 18px;
  line-height: 1.25;
}

body.admin-route .admin-order-card .admin-order-card-title-row p {
  font-size: 12px;
  line-height: 1.4;
}

body.admin-route .admin-order-card .admin-case-snapshot {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 0;
}

body.admin-route .admin-order-card .admin-case-snapshot article {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fbfdff;
}

body.admin-route .admin-order-card .admin-case-snapshot span,
body.admin-route .admin-order-card .admin-case-snapshot small {
  font-size: 11px;
}

body.admin-route .admin-order-card .admin-case-snapshot strong {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.3;
}

body.admin-route .admin-order-next-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  margin-top: 6px;
  padding: 9px 11px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-left: 3px solid #2f7cf6;
  border-radius: 8px;
  background: #f8fbff;
}

body.admin-route .admin-order-next-strip span {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

body.admin-route .admin-order-next-strip strong {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.admin-route .admin-order-next-strip small {
  min-width: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.admin-route .admin-order-next-strip--danger {
  border-color: rgba(239, 68, 68, 0.18);
  border-left-color: #ef4444;
  background: #fff7f7;
}

body.admin-route .admin-order-next-strip--danger span {
  background: #fee2e2;
  color: #b91c1c;
}

body.admin-route .admin-order-next-strip--warning {
  border-color: rgba(245, 158, 11, 0.2);
  border-left-color: #f59e0b;
  background: #fffaf0;
}

body.admin-route .admin-order-next-strip--warning span {
  background: #ffedd5;
  color: #b45309;
}

body.admin-route .admin-order-next-strip--success {
  border-color: rgba(20, 184, 166, 0.18);
  border-left-color: #14b8a6;
  background: #f0fdfa;
}

body.admin-route .admin-order-next-strip--success span {
  background: #ccfbf1;
  color: #0f766e;
}

body.admin-route .admin-order-next-strip--muted {
  border-color: rgba(148, 163, 184, 0.18);
  border-left-color: #94a3b8;
  background: #f8fafc;
}

body.admin-route .admin-order-next-strip--muted span {
  background: #e2e8f0;
  color: #475569;
}

body.admin-route .admin-order-card-details {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(111, 132, 164, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

body.admin-route .admin-order-card-details > summary {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
}

body.admin-route .admin-order-card-details > summary::-webkit-details-marker {
  display: none;
}

body.admin-route .admin-order-card-details > summary span {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

body.admin-route .admin-order-card-details > summary small {
  min-width: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-order-card-details > summary::after {
  content: "展开";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #d7e4f2;
  border-radius: 999px;
  color: #2563eb;
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-order-card-details[open] > summary {
  border-bottom: 1px solid rgba(111, 132, 164, 0.12);
}

body.admin-route .admin-order-card-details[open] > summary::after {
  content: "收起";
}

body.admin-route .admin-order-card-details-body {
  display: grid;
  gap: 10px;
  padding: 10px 11px 11px;
}

body.admin-route .admin-order-card-details-body > .admin-money-grid,
body.admin-route .admin-order-card-details-body > .admin-after-sale-workflow,
body.admin-route .admin-order-card-details-body > .admin-evidence-box,
body.admin-route .admin-order-card-details-body > .admin-compensation-list,
body.admin-route .admin-order-card-details-body > .admin-refund-allocation-panel {
  margin: 0;
}

body.admin-route .admin-order-card-details-body .admin-money-note {
  margin: 0;
}

body.admin-route .after-sale-admin-card.is-resolved {
  border-color: rgba(148, 163, 184, 0.24);
}

body.admin-route .after-sale-admin-card.is-pending {
  border-color: rgba(255, 151, 84, 0.28);
}

@media (max-width: 980px) {
  body.admin-route .admin-case-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-route .admin-order-card .admin-case-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.admin-route .admin-case-snapshot {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-market-card.admin-order-card {
    padding: 12px;
  }

  body.admin-route .admin-order-card .admin-case-snapshot,
  body.admin-route .admin-order-next-strip {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-order-next-strip span {
    grid-row: auto;
    width: fit-content;
  }

  body.admin-route .admin-order-card-details > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.admin-route .admin-order-card-details > summary small {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
    white-space: normal;
  }

  body.admin-route .admin-card-action-panel,
  body.admin-route .admin-card-primary-action {
    align-items: stretch;
    flex-direction: column;
  }

  body.admin-route .admin-card-action-panel button,
  body.admin-route .admin-card-more-actions,
  body.admin-route .admin-card-more-actions summary {
    width: 100%;
  }
}

body.admin-route .admin-compensation-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(47, 124, 246, 0.14);
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
}

body.admin-route .admin-compensation-list > span {
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-compensation-list.is-empty {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

body.admin-route .admin-compensation-list.is-empty strong {
  color: #0f172a;
  font-size: 13px;
}

body.admin-route .admin-compensation-list.is-empty small {
  color: #64748b;
  font-size: 12px;
  text-align: right;
}

body.admin-route .admin-compensation-item {
  display: grid;
  grid-template-columns: minmax(120px, auto) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: #ffffff;
  padding: 9px 10px;
  box-shadow: inset 0 0 0 1px rgba(219, 230, 242, 0.86);
}

body.admin-route .admin-compensation-item strong {
  color: #0f172a;
  font-size: 13px;
}

body.admin-route .admin-compensation-item em {
  justify-self: start;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 4px 8px;
}

body.admin-route .admin-compensation-item.is-paid em {
  background: #ecfdf5;
  color: #047857;
}

body.admin-route .admin-compensation-item.is-failed em {
  background: #fef2f2;
  color: #b91c1c;
}

body.admin-route .admin-compensation-item.is-canceled em {
  background: #f1f5f9;
  color: #64748b;
}

body.admin-route .admin-compensation-item small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

body.admin-route .admin-compensation-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 6px;
}

body.admin-route .admin-compensation-item .mini-button {
  min-height: 32px;
  padding: 7px 12px;
  white-space: nowrap;
}

body.admin-route .admin-refund-allocation-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 68%);
  padding: 12px;
}

body.admin-route .admin-refund-allocation-panel.is-closed {
  border-color: rgba(16, 185, 129, 0.24);
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 70%);
}

body.admin-route .admin-refund-allocation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.admin-route .admin-refund-allocation-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.admin-route .admin-refund-allocation-head span,
body.admin-route .admin-refund-allocation-grid span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-refund-allocation-head strong {
  color: #9a3412;
  font-size: 22px;
  line-height: 1.15;
}

body.admin-route .admin-refund-allocation-panel.is-closed .admin-refund-allocation-head strong {
  color: #047857;
}

body.admin-route .admin-refund-allocation-head small,
body.admin-route .admin-refund-allocation-note {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

body.admin-route .admin-refund-allocation-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fed7aa;
  color: #9a3412;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 9px;
}

body.admin-route .admin-refund-allocation-panel.is-closed .admin-refund-allocation-head em {
  background: #d1fae5;
  color: #047857;
}

body.admin-route .admin-refund-allocation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.admin-route .admin-refund-allocation-grid article {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 10px;
}

body.admin-route .admin-refund-allocation-grid strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
}

body.admin-route .admin-refund-allocation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.admin-route .admin-refund-allocation-actions .mini-button {
  min-width: 132px;
}

body.admin-route .admin-refund-allocation-note {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 640px) {
  body.admin-route .admin-refund-allocation-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.admin-route .admin-refund-allocation-head em {
    width: fit-content;
  }

  body.admin-route .admin-refund-allocation-grid {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-refund-allocation-actions .mini-button {
    flex: 1 1 100%;
    width: 100%;
  }
}

body.admin-route .after-sale-admin-note-field {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

body.admin-route .after-sale-admin-note-field span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .after-sale-admin-note-field textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid rgba(47, 124, 246, 0.18);
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
  box-shadow: inset 0 1px 2px rgba(31, 82, 139, 0.06);
}

body.admin-route .after-sale-admin-note-field textarea:focus {
  border-color: rgba(35, 109, 244, 0.48);
  outline: 3px solid rgba(35, 109, 244, 0.12);
}

@media (max-width: 720px) {
  body.admin-route .after-sale-summary-grid {
    grid-template-columns: 1fr;
  }
}

body.admin-route .admin-refund-decision-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
}

body.admin-route .admin-refund-decision-dialog {
  width: min(440px, 100%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
  padding: 18px;
  color: #0f172a;
}

body.admin-route .admin-refund-decision-dialog header,
body.admin-route .admin-refund-decision-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.admin-route .admin-refund-decision-dialog header strong {
  font-size: 18px;
  line-height: 1.35;
}

body.admin-route .admin-refund-decision-dialog p {
  margin: 12px 0 14px;
  color: #475569;
  line-height: 1.55;
}

body.admin-route .admin-refund-ratio-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

body.admin-route .admin-refund-ratio-options button {
  min-height: 44px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: #f8fbff;
  color: #1f5fbf;
  font-weight: 700;
  cursor: pointer;
}

body.admin-route .admin-refund-ratio-options button.is-active {
  border-color: #1f7aff;
  background: #eaf3ff;
  color: #0f4fb5;
}

body.admin-route .admin-refund-ratio-field {
  display: grid;
  grid-template-columns: 1fr minmax(96px, 128px) auto;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: #475569;
  font-weight: 700;
}

body.admin-route .admin-refund-ratio-field input {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  color: #0f172a;
}

body.admin-route .admin-compensation-note-field {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: #475569;
  font-weight: 700;
}

body.admin-route .admin-compensation-note-field input,
body.admin-route .admin-compensation-note-field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  color: #0f172a;
  font: inherit;
  line-height: 1.55;
}

body.admin-route .admin-compensation-note-field input {
  min-height: 44px;
}

body.admin-route .admin-compensation-note-field textarea {
  min-height: 96px;
  resize: vertical;
}

body.admin-route .admin-compensation-note-field input:focus,
body.admin-route .admin-compensation-note-field textarea:focus,
body.admin-route .admin-refund-ratio-field input:focus {
  border-color: rgba(35, 109, 244, 0.48);
  outline: 3px solid rgba(35, 109, 244, 0.12);
}

body.admin-route .admin-refund-decision-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  background: #f1f7ff;
  padding: 12px 14px;
  margin: 14px 0 16px;
}

body.admin-route .admin-refund-decision-result span {
  color: #475569;
  font-weight: 700;
}

body.admin-route .admin-refund-decision-result strong {
  color: #0f4fb5;
  font-size: 20px;
}

body.admin-route .admin-compensation-fee-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  row-gap: 8px;
}

body.admin-route .admin-compensation-fee-preview strong {
  font-size: 16px;
  text-align: right;
}

body.admin-route .admin-compensation-fee-preview strong:last-child {
  color: #047857;
  font-size: 20px;
}

body.admin-route .admin-refund-decision-dialog footer .secondary-button,
body.admin-route .admin-refund-decision-dialog footer .primary-button {
  min-height: 44px;
  flex: 1;
}

@media (max-width: 760px) {
  body.admin-route .admin-compensation-list.is-empty,
  body.admin-route .admin-compensation-item {
    grid-template-columns: 1fr;
  }

  body.admin-route .admin-compensation-list.is-empty small {
    text-align: left;
  }

  body.admin-route .admin-compensation-actions {
    justify-self: stretch;
  }

  body.admin-route .admin-compensation-actions .mini-button {
    flex: 1;
  }
}
body.admin-route .after-sale-admin-card .after-sale-deposit-hotfix-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
body.admin-route .admin-chat-thread-details {
  margin-top: 12px;
  border: 1px solid rgba(219, 230, 242, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

body.admin-route .admin-chat-thread-details > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 10px 12px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

body.admin-route .admin-chat-thread-details > summary::after {
  content: "展开";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #d7e4f2;
  border-radius: 999px;
  background: #ffffff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

body.admin-route .admin-chat-thread-details[open] > summary::after {
  content: "收起";
}

body.admin-route .admin-order-chat-link {
  margin-top: 10px;
}

body.admin-route .admin-order-chat-link > summary {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(120px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #0f2a52;
}

body.admin-route .admin-order-chat-link > summary span {
  color: #10203f;
  font-size: 13px;
  font-weight: 950;
}

body.admin-route .admin-order-chat-link > summary strong {
  justify-self: start;
  border-radius: 999px;
  background: #eaf3ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  padding: 5px 9px;
  white-space: nowrap;
}

body.admin-route .admin-order-chat-link > summary small {
  min-width: 0;
  color: #53657f;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-order-chat-link.is-empty {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  background: #fbfdff;
}

body.admin-route .admin-chat-thread-details > summary::-webkit-details-marker {
  display: none;
}

body.admin-route .admin-chat-thread-list {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

body.admin-route .admin-chat-thread-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(219, 230, 242, 0.88);
  border-radius: 8px;
  background: #fbfdff;
}

body.admin-route .admin-chat-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.admin-route .admin-chat-thread-head strong,
body.admin-route .admin-chat-thread-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-route .admin-chat-thread-head strong {
  color: #10203f;
  font-size: 14px;
}

body.admin-route .admin-chat-thread-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.admin-route .admin-chat-message-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

body.admin-route .admin-chat-message-row {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(219, 230, 242, 0.72);
}

body.admin-route .admin-chat-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

body.admin-route .admin-chat-message-row p,
body.admin-route .admin-chat-message-body {
  margin: 0;
  color: #172033;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.admin-route .admin-chat-message-body {
  display: grid;
  gap: 4px;
}

body.admin-route .admin-chat-system-card {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(147, 197, 253, 0.72);
  border-radius: 10px;
  background: #f8fbff;
}

body.admin-route .admin-chat-system-card-head,
body.admin-route .admin-chat-system-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.admin-route .admin-chat-system-card-head strong {
  min-width: 0;
  color: #10203f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

body.admin-route .admin-chat-system-card-head span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

body.admin-route .admin-chat-system-card p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

body.admin-route .admin-chat-system-card-foot em {
  min-width: 0;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

body.admin-route .admin-chat-system-card-foot b {
  flex: 0 0 auto;
  max-width: min(220px, 48%);
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

body.admin-route .admin-chat-card-title {
  display: block;
  color: #10203f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

body.admin-route .admin-chat-card-desc,
body.admin-route .admin-chat-card-actions {
  display: block;
  color: #53657f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

body.admin-route .admin-chat-card-actions {
  color: #1d4ed8;
}

body.admin-route .admin-chat-image-link img {
  display: block;
  width: min(180px, 100%);
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(219, 230, 242, 0.88);
}

body.admin-route .admin-chat-thread-actions {
  margin-top: 0;
}

body.admin-route .admin-after-sale-chat-evidence {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(191, 219, 254, 0.92);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.94));
}

body.admin-route .admin-after-sale-chat-evidence.is-empty {
  border-color: rgba(219, 230, 242, 0.92);
  background: #fbfdff;
}

body.admin-route .admin-linked-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.admin-route .admin-linked-chat-head strong {
  min-width: 0;
  color: #10203f;
  font-size: 14px;
  font-weight: 900;
}

body.admin-route .admin-linked-chat-head span {
  flex: 0 0 auto;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

body.admin-route .admin-after-sale-chat-list {
  max-height: 280px;
}

body.admin-route .admin-city-chip-row,
body.admin-route #submission-city-filter-row {
  gap: 5px;
  padding: 0 12px 8px;
}

body.admin-route .admin-city-chip-row .submission-filter-button,
body.admin-route #submission-city-filter-row .submission-filter-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 42px;
  max-width: 76px;
  min-height: 26px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  body.admin-route .admin-order-chat-link > summary {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  body.admin-route .admin-order-chat-link > summary strong {
    justify-self: stretch;
    text-align: center;
    white-space: normal;
  }

  body.admin-route .admin-order-chat-link > summary small {
    white-space: normal;
  }

  body.admin-route .admin-chat-thread-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.admin-route .admin-chat-thread-head strong,
  body.admin-route .admin-chat-thread-head span {
    white-space: normal;
  }
}

/* Admin money overview: first-read finance strip */
body.admin-route .admin-dashboard {
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-areas:
    "head money"
    "head cards"
    "trends trends";
}

body.admin-route .admin-dashboard-head {
  grid-area: head;
}

body.admin-route .admin-money-overview {
  grid-area: money;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
  min-width: 0;
}

body.admin-route .admin-dashboard-grid {
  grid-area: cards;
}

body.admin-route .admin-dashboard-trends {
  grid-area: trends;
}

body.admin-route .admin-money-overview-card {
  min-width: 0;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(219, 230, 242, 0.96);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(31, 82, 139, 0.05);
}

body.admin-route .admin-money-overview-card span {
  min-width: 0;
  color: #53657d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

body.admin-route .admin-money-overview-card strong {
  min-width: 0;
  color: #172033;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

body.admin-route .admin-money-overview-card small {
  min-width: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

body.admin-route .admin-money-overview-card--success {
  border-color: rgba(16, 185, 129, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf7 100%);
}

body.admin-route .admin-money-overview-card--success strong,
body.admin-route .admin-money-overview-card--success span {
  color: #047857;
}

body.admin-route .admin-money-overview-card--warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #fff8ed 100%);
}

body.admin-route .admin-money-overview-card--warning strong,
body.admin-route .admin-money-overview-card--warning span {
  color: #b45309;
}

body.admin-route .admin-money-overview-card--progress {
  border-color: rgba(47, 124, 246, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

body.admin-route .admin-money-overview-card--progress strong,
body.admin-route .admin-money-overview-card--progress span {
  color: #1d4ed8;
}

body.admin-route .admin-money-overview-card--accent {
  border-color: rgba(99, 102, 241, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f7f7ff 100%);
}

body.admin-route .admin-money-overview-card--accent strong,
body.admin-route .admin-money-overview-card--accent span {
  color: #4338ca;
}

body.admin-route .admin-money-overview-card--danger {
  border-color: rgba(239, 68, 68, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
}

body.admin-route .admin-money-overview-card--danger strong,
body.admin-route .admin-money-overview-card--danger span {
  color: #dc2626;
}

@media (max-width: 1500px) {
  body.admin-route .admin-money-overview {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  }
}

@media (max-width: 1180px) {
  body.admin-route .admin-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "money"
      "cards"
      "trends";
  }

  body.admin-route .admin-money-overview {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  }
}

@media (max-width: 900px) {
  body.admin-route .admin-money-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.admin-route .admin-money-overview {
    grid-template-columns: 1fr;
  }
}

/* Admin today dashboard: stronger read surface */
body.admin-route .admin-dashboard {
  grid-template-columns: 1fr;
  grid-template-areas:
    "head"
    "money"
    "cards"
    "trends";
  align-items: start;
  border-color: rgba(167, 196, 230, 0.95);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.18), transparent 36%),
    linear-gradient(180deg, #eaf3ff 0%, #e3edf9 100%);
  box-shadow: 0 16px 34px rgba(31, 82, 139, 0.11);
}

body.admin-route .admin-dashboard-head {
  display: flex;
  align-items: center;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  align-self: start;
  gap: 14px;
  min-height: 0;
  height: auto;
  padding: 12px 18px 12px 26px;
  border: 1px solid rgba(187, 208, 232, 0.75);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.admin-route .admin-dashboard-head::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  width: 4px;
  height: 30px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #2f7cf6 0%, #10b981 100%);
}

body.admin-route .admin-dashboard-head strong {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  color: #10233f !important;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
}

body.admin-route .admin-dashboard-head span {
  max-width: none;
  color: #4d617b !important;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  body.admin-route .admin-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  body.admin-route .admin-dashboard-head::before {
    top: 13px;
    transform: none;
  }
}

body.admin-route .admin-dashboard-card,
body.admin-route .admin-money-overview-card {
  border-color: rgba(187, 208, 232, 0.98);
  background: #f8fbff;
  box-shadow: 0 12px 24px rgba(31, 82, 139, 0.08);
}

body.admin-route .admin-dashboard-card--urgent,
body.admin-route .admin-money-overview-card--danger {
  border-color: rgba(248, 113, 113, 0.36);
  background: linear-gradient(180deg, #fff9f9 0%, #ffe7e7 100%);
}

body.admin-route .admin-dashboard-card--progress,
body.admin-route .admin-money-overview-card--progress {
  border-color: rgba(47, 124, 246, 0.32);
  background: linear-gradient(180deg, #f8fbff 0%, #e1ecff 100%);
}

body.admin-route .admin-dashboard-card--success,
body.admin-route .admin-money-overview-card--success {
  border-color: rgba(16, 185, 129, 0.32);
  background: linear-gradient(180deg, #f8fffb 0%, #ddf4ea 100%);
}

body.admin-route .admin-money-overview-card--warning {
  border-color: rgba(245, 158, 11, 0.38);
  background: linear-gradient(180deg, #fffaf2 0%, #ffefd2 100%);
}

body.admin-route .admin-money-overview-card--accent {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(180deg, #f9f9ff 0%, #ebedff 100%);
}

/* Admin card contrast pass: separate cards from the page surface. */
body.admin-route .admin-workbench-card,
body.admin-route .admin-summary article,
body.admin-route .rating-card,
body.admin-route .admin-market-card,
body.admin-route .submission-card,
body.admin-route .admin-point-card,
body.admin-route .upload-item,
body.admin-route .market-intent-note-field,
body.admin-route .admin-dashboard-card,
body.admin-route .admin-money-overview-card {
  border-color: rgba(173, 196, 223, 0.96);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.08), transparent 36%),
    linear-gradient(180deg, #f4f8ff 0%, #edf4fb 100%);
  box-shadow: 0 14px 28px rgba(31, 82, 139, 0.1);
}

body.admin-route .admin-market-card.admin-order-card,
body.admin-route .admin-market-card.admin-order-card.admin-status-pending,
body.admin-route .admin-market-card.admin-order-card.admin-status-needs-info,
body.admin-route .admin-market-card.admin-order-card.admin-status-offline,
body.admin-route .admin-market-card.admin-order-card.admin-status-matched,
body.admin-route .admin-market-card.admin-order-card.admin-status-completed {
  border-color: rgba(164, 190, 222, 0.98);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 124, 246, 0.09), transparent 34%),
    linear-gradient(180deg, #f3f7ff 0%, #eaf2fb 100%);
  box-shadow: 0 12px 26px rgba(31, 82, 139, 0.11);
}

body.admin-route .admin-order-card .admin-case-snapshot article,
body.admin-route .admin-order-card-details,
body.admin-route .admin-chat-thread-details,
body.admin-route .admin-order-chat-link.is-empty,
body.admin-route .admin-compensation-list,
body.admin-route .admin-evidence-box,
body.admin-route .admin-after-sale-workflow {
  border-color: rgba(177, 199, 226, 0.92);
  background: #eaf2fb;
}

body.admin-route .admin-order-card-details > summary,
body.admin-route .admin-chat-thread-details > summary,
body.admin-route .admin-card-more-actions .submission-actions,
body.admin-route .admin-compensation-item,
body.admin-route .admin-after-sale-workflow-step,
body.admin-route .admin-chat-thread-item,
body.admin-route .admin-chat-message-row,
body.admin-route .admin-chat-system-card {
  border-color: rgba(190, 210, 232, 0.96);
  background: #f6faff;
}

body.admin-route .admin-money-overview-card--success,
body.admin-route .admin-dashboard-card--success {
  border-color: rgba(16, 185, 129, 0.36);
  background: linear-gradient(180deg, #f1fff8 0%, #d8f2e8 100%);
}

body.admin-route .admin-money-overview-card--warning {
  border-color: rgba(245, 158, 11, 0.42);
  background: linear-gradient(180deg, #fff9ed 0%, #ffe8bf 100%);
}

body.admin-route .admin-money-overview-card--danger,
body.admin-route .admin-dashboard-card--urgent {
  border-color: rgba(239, 68, 68, 0.42);
  background: linear-gradient(180deg, #fff7f7 0%, #ffdede 100%);
}

body.admin-route .admin-money-overview-card--progress,
body.admin-route .admin-dashboard-card--progress {
  border-color: rgba(47, 124, 246, 0.38);
  background: linear-gradient(180deg, #f3f8ff 0%, #d9e8ff 100%);
}

body.admin-route .admin-money-overview-card--accent {
  border-color: rgba(99, 102, 241, 0.34);
  background: linear-gradient(180deg, #f6f7ff 0%, #e2e6ff 100%);
}

/* Admin expanded panels: warm surface so opened content is easy to separate. */
body.admin-route .admin-order-card-details[open],
body.admin-route .admin-chat-thread-details[open],
body.admin-route .admin-evidence-box[open] {
  border-color: rgba(245, 158, 11, 0.36);
  background: #fff4df;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 8px 18px rgba(180, 83, 9, 0.08);
}

body.admin-route .admin-order-card-details[open] > summary,
body.admin-route .admin-chat-thread-details[open] > summary,
body.admin-route .admin-evidence-box[open] > summary {
  border-bottom-color: rgba(245, 158, 11, 0.22);
  background: #fff8ed;
}

body.admin-route .admin-order-card-details[open] .admin-order-card-details-body,
body.admin-route .admin-chat-thread-details[open] .admin-chat-thread-list,
body.admin-route .admin-evidence-box[open] > div {
  background: #fff4df;
}

body.admin-route .admin-order-card-details[open] .admin-case-snapshot article,
body.admin-route .admin-order-card-details[open] .admin-money-grid article,
body.admin-route .admin-order-card-details[open] .admin-after-sale-workflow,
body.admin-route .admin-order-card-details[open] .admin-evidence-box,
body.admin-route .admin-order-card-details[open] .admin-compensation-list,
body.admin-route .admin-order-card-details[open] .admin-refund-allocation-panel,
body.admin-route .admin-chat-thread-details[open] .admin-chat-thread-item,
body.admin-route .admin-chat-thread-details[open] .admin-chat-message-row,
body.admin-route .admin-chat-thread-details[open] .admin-chat-system-card {
  border-color: rgba(245, 158, 11, 0.22);
  background: #fffdf8;
}
