.ath-sp-mkt {
  --ath-sp-bg: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ath-sp-page-bg) 94%, white 6%) 0%,
    color-mix(in srgb, var(--ath-sp-page-bg) 84%, var(--ath-sp-c3) 6%) 100%
  );
  --ath-sp-panel: color-mix(in srgb, var(--ath-sp-page-bg) 82%, white 18%);
  --ath-sp-panel-strong: color-mix(in srgb, var(--ath-sp-page-bg) 70%, white 30%);
  --ath-sp-panel-soft: color-mix(in srgb, var(--ath-sp-page-bg) 90%, white 10%);
  --ath-sp-border: color-mix(in srgb, var(--ath-sp-text) 10%, transparent);
  --ath-sp-muted: var(--text-mid, #5b6b73);
  --ath-sp-accent: var(--ath-sp-c3);
  --ath-sp-accent-soft: color-mix(in srgb, var(--ath-sp-accent) 12%, transparent);
  --ath-sp-soft-fill: color-mix(in srgb, var(--ath-sp-text) 4%, transparent);
  font-family: var(--ath-sp-font-body);
  color: var(--ath-sp-text);
  background: var(--ath-sp-bg);
  border: 1px solid var(--ath-sp-border);
  border-radius: 24px;
  overflow: hidden;
  height:100%;
  box-shadow: var(--ath-sp-shadow-md);
}

.ath-sp-mkt * { box-sizing: border-box; }

.ath-sp-mkt__bar {
  padding: 14px;
  border-bottom: 1px solid var(--ath-sp-border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ath-sp-panel-strong) 92%, white 8%), color-mix(in srgb, var(--ath-sp-panel) 92%, transparent));
  backdrop-filter: blur(16px);
}

.ath-sp-mkt__barRow {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 0.95fr);
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.ath-sp-mkt__field {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0px;
  padding: 10px 10px;
  border: 1px solid var(--ath-sp-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--ath-sp-panel) 88%, transparent);
}

.ath-sp-mkt__field--small { min-width: 0; }
.ath-sp-mkt__field--actions { min-width: 0; }

.ath-sp-mkt__field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ath-sp-muted);
}

.ath-sp-mkt__hint {
  font-size: 11px;
  color: var(--ath-sp-muted);
  line-height: 1.35;
}

.ath-sp-mkt__loc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.ath-sp-mkt input[type="text"],
.ath-sp-mkt input[type="number"] {
  width: 100%;
  height: 38px;
  border: 1px solid var(--ath-sp-border);
  border-radius: 14px;
  background: var(--ath-sp-panel-strong);
  color: var(--ath-sp-text);
  padding: 0 12px;
  outline: none;
  transition: border-color var(--ath-sp-transition), box-shadow var(--ath-sp-transition), background-color var(--ath-sp-transition);
}

.ath-sp-mkt input::placeholder {
  color: color-mix(in srgb, var(--ath-sp-muted) 72%, transparent);
}

.ath-sp-mkt input:focus {
  border-color: color-mix(in srgb, var(--ath-sp-accent) 34%, var(--ath-sp-border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ath-sp-accent) 14%, transparent);
}

.ath-sp-mkt .ath-sp-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--ath-sp-border);
  background: var(--ath-sp-panel-strong);
  color: var(--ath-sp-text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.ath-sp-mkt .ath-sp-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--ath-sp-shadow-sm);
}

.ath-sp-mkt .ath-sp-btn--primary {
  background: var(--ath-sp-btn-bg);
  color: var(--ath-sp-btn-fg);
  border-color: transparent;
}

.ath-sp-mkt .ath-sp-btn--ghost {
  background: color-mix(in srgb, var(--ath-sp-panel) 84%, transparent);
}

.ath-sp-mkt__field--actions .ath-sp-btn {
  width: 100%;
}

.ath-sp-mkt__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 800px;
}

.ath-sp-mkt__mapWrap,
.ath-sp-mkt__map {
  min-height: var(--ath-sp-mkt-map-h, 520px);
  height: 100%;
}

.ath-sp-mkt__mapWrap { position: relative; }
.ath-sp-mkt__map .leaflet-container { height: 100%; width: 100%; }

.ath-sp-mkt__status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--ath-sp-border);
  background: color-mix(in srgb, var(--ath-sp-panel) 92%, white 8%);
  color: var(--ath-sp-muted);
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.ath-sp-mkt__status.is-ok { color: var(--ath-sp-accent); }
.ath-sp-mkt__status.is-warn { color: var(--ath-sp-warning); }

.ath-sp-mkt__panel {
  border-left: 1px solid var(--ath-sp-border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ath-sp-panel) 78%, transparent), color-mix(in srgb, var(--ath-sp-panel-strong) 92%, transparent));
}

.ath-sp-mkt__panelHead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--ath-sp-border);
}

.ath-sp-mkt__panelTitle {
  font: 800 13px/1.2 var(--ath-sp-font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ath-sp-mkt__panelMeta {
  font-size: 12px;
  color: var(--ath-sp-muted);
}

.ath-sp-mkt__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow: auto;
}

.ath-sp-mkt__card {
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--ath-sp-border);
  background: color-mix(in srgb, var(--ath-sp-panel-strong) 90%, transparent);
  box-shadow: var(--ath-sp-shadow-sm);
  cursor: pointer;
  transition: transform var(--ath-sp-transition), box-shadow var(--ath-sp-transition), border-color var(--ath-sp-transition), background-color var(--ath-sp-transition);
}

.ath-sp-mkt__card:hover {
  transform: translateY(-1px);
  box-shadow: var(--ath-sp-shadow-md);
}

.ath-sp-mkt__card.is-active {
  border-color: color-mix(in srgb, var(--ath-sp-accent) 34%, var(--ath-sp-border));
  box-shadow: 0 18px 28px color-mix(in srgb, var(--ath-sp-accent) 14%, transparent);
  background: color-mix(in srgb, var(--ath-sp-accent-soft) 76%, var(--ath-sp-panel-strong) 24%);
}

.ath-sp-mkt__cardTop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.ath-sp-mkt__cardHead {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ath-sp-mkt__avatar {
  width: 46px;
  height: 46px;
  object-fit: contain;

}

.ath-sp-mkt__eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ath-sp-muted);
}

.ath-sp-mkt__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.ath-sp-mkt__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ath-sp-mkt__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ath-sp-text) 5%, transparent);
  color: var(--ath-sp-muted);
  font-size: 11px;
  font-weight: 700;
}

.ath-sp-mkt__chip--accent {
  background: var(--ath-sp-accent);
  color: #fff;
}

.ath-sp-mkt__chip--soft {
  background: var(--ath-sp-accent-soft);
  color: var(--ath-sp-accent);
}

.ath-sp-mkt__meta {
  display: grid;


  font-size: 11px;
  color: var(--ath-sp-muted);
}

.ath-sp-mkt__meta span {
  display: block;
  line-height: 1.25;
}

.ath-sp-mkt__miniList {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ath-sp-mkt__miniGroup {
  display: grid;
  gap: 6px;
}

.ath-sp-mkt__miniGroupTitle {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ath-sp-muted);
}

.ath-sp-mkt__miniGroupItems {
  display: grid;
  gap: 6px;
}

.ath-sp-mkt__miniItem {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 12px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--ath-sp-soft-fill);
  font-size: 12px;
}

.ath-sp-mkt__miniThumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.ath-sp-mkt__miniBody {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ath-sp-mkt__miniLabel {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-weight: 700;
  color: var(--ath-sp-text);
}

.ath-sp-mkt__miniLine {
  line-height: 1.25;
}

.ath-sp-mkt__miniDetails {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--ath-sp-muted);
  font-size: 11px;
}

.ath-sp-mkt__miniDetailLine {
  line-height: 1.25;
}

.ath-sp-mkt__miniValue {
  color: var(--ath-sp-accent);
  font-weight: 800;
  white-space: nowrap;
}

.ath-sp-mkt__empty {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--ath-sp-soft-fill);
  color: var(--ath-sp-muted);
  font-size: 12px;
}

.ath-sp-mkt__ac {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  padding: 6px;
  border: 1px solid var(--ath-sp-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--ath-sp-panel-strong) 96%, white 4%);
  box-shadow: var(--ath-sp-shadow-md);
}

.ath-sp-mkt__acItem {
  width: 100%;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.ath-sp-mkt__acItem:hover { background: var(--ath-sp-accent-soft); }
.ath-sp-mkt__acMain { font-size: 12px; font-weight: 700; color: var(--ath-sp-text); }
.ath-sp-mkt__acSub { font-size: 11px; color: var(--ath-sp-muted); }

@media (max-width: 1100px) {
  .ath-sp-mkt__barRow {
    grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
  }

  .ath-sp-mkt__field--actions {
    grid-column: span 3;
  }
}

@media (max-width: 980px) {
  .ath-sp-mkt__grid { grid-template-columns: 1fr; }
  .ath-sp-mkt__cardTop { grid-template-columns: auto minmax(0, 1fr); }
  .ath-sp-mkt__panel { border-left: 0; border-top: 1px solid var(--ath-sp-border); }
  .ath-sp-mkt__mapWrap,
  .ath-sp-mkt__map { min-height: 360px; }
  .ath-sp-mkt__barRow { grid-template-columns: 1fr; }
  .ath-sp-mkt__field,
  .ath-sp-mkt__field--small,
  .ath-sp-mkt__field--actions { min-width: 0; width: 100%; }
  .ath-sp-mkt__field--actions { grid-column: auto; }
  .ath-sp-mkt__loc { grid-template-columns: 1fr; }
}
