.sa-tool {
  background: #121826;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.sa-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
  padding: 4px;
  background: #0b0f1a;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
}
.sa-tab {
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.sa-tab small { font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 400; color: #64748b; }
.sa-tab:hover { color: #f1f5f9; background: rgba(255, 255, 255, 0.03); }
.sa-tab.is-active {
  background: #182032;
  border-color: rgba(34, 211, 238, 0.45);
  color: #22d3ee;
}
.sa-tab.is-active small { color: #94a3b8; }
.sa-filter-note { margin: 0 0 14px; font-size: 12px; color: #94a3b8; text-align: center; }

.sa-controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.sa-state-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sa-states { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sa-state-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #0d1320;
  color: #cbd5e1;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.sa-state-btn:hover { border-color: rgba(34, 211, 238, 0.45); color: #f1f5f9; }
.sa-state-btn .sa-code {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}
.sa-state-btn.is-active { background: rgba(34, 211, 238, 0.12); border-color: #22d3ee; color: #ffffff; }
.sa-state-btn.is-active .sa-code { background: #22d3ee; color: #0b0f1a; font-weight: 700; }

.sa-btn-gen {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid #22d3ee;
  background: #22d3ee;
  color: #0b0f1a;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
  transition: background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.sa-btn-gen:hover { background: #67e8f9; box-shadow: 0 0 28px rgba(34, 211, 238, 0.4); }

.sa-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.sa-select, .sa-toggle-label {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #0d1320;
  color: #e2e8f0;
  font: inherit;
  font-size: 14px;
}
.sa-select { padding: 0 12px; }
.sa-toggle-label { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; cursor: pointer; }
.sa-toggle-label input { accent-color: #22d3ee; width: 16px; height: 16px; }
.sa-btn-sec {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #182032;
  color: #e2e8f0;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.sa-btn-sec:hover { border-color: #22d3ee; color: #22d3ee; }
.sa-btn-accent { border-color: rgba(34, 211, 238, 0.5); color: #22d3ee; }

.sa-result-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.sa-card { border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 14px; padding: 16px; background: #0d1320; }
.sa-result-card { border-color: rgba(34, 211, 238, 0.28); }
.sa-hero-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.sa-hero-addr { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sa-hero-addr-line {
  font-family: var(--font-mono, monospace);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  word-break: break-word;
}
.sa-hero-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #94a3b8; }
.sa-verified-tag {
  font-size: 12px;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}
.sa-copy-group { display: flex; gap: 8px; flex-wrap: wrap; }

.sa-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sa-field {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: #121826;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.sa-field:hover { border-color: rgba(34, 211, 238, 0.55); background: #182032; }
.sa-field.is-full { grid-column: 1 / -1; }
.sa-field-label { font-size: 12px; color: #94a3b8; display: flex; justify-content: space-between; gap: 8px; }
.sa-field-copy { color: #22d3ee; opacity: 0; transition: opacity .15s ease; }
.sa-field:hover .sa-field-copy, .sa-field:focus-visible .sa-field-copy { opacity: 1; }
.sa-field-val { font-family: var(--font-mono, monospace); font-size: 15px; font-weight: 600; color: #f8fafc; word-break: break-word; }
.sa-field.is-highlight .sa-field-val { color: #22d3ee; }

.sa-map-preview {
  position: relative;
  width: 100%;
  height: 196px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: #0b0f1a;
  overflow: hidden;
}
.sa-map-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.sa-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  pointer-events: none;
}
.sa-map-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  background: rgba(11, 15, 26, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}
.sa-map-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(11, 15, 26, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.sa-map-city {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
}
.sa-map-coords {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #22d3ee;
}
.sa-map-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.sa-map-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #182032;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: border-color .15s ease, color .15s ease;
}
.sa-map-link-btn:hover {
  border-color: #22d3ee;
  color: #22d3ee;
  text-decoration: none;
}
.sa-meta-list { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, 0.14); display: grid; gap: 8px; font-size: 14px; }
.sa-meta-row { display: flex; justify-content: space-between; gap: 12px; }
.sa-meta-row span { color: #94a3b8; flex-shrink: 0; }
.sa-meta-row strong { color: #f1f5f9; text-align: right; font-weight: 600; }

.sa-stats-wrap { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(148, 163, 184, 0.14); }
.sa-bento-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.sa-stat-card {
  background: var(--surface-2, #182032);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.sa-stat-card span { font-size: 12px; color: #94a3b8; font-weight: 600; }
.sa-stat-card strong { font-family: var(--font-mono, monospace); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; color: #f1f5f9; line-height: 1.25; }
.sa-stat-card small { font-size: 12px; color: #94a3b8; line-height: 1.4; }
.sa-stat-card.is-cyan strong { color: #22d3ee; }
.sa-stat-card.is-gold strong { color: #fbbf24; }
.sa-stat-card.is-green strong { color: #34d399; }
.sa-stat-card.is-warn strong { color: #fbbf24; }

.sa-batch-wrap, .sa-history-wrap { margin-top: 16px; border-top: 1px solid rgba(148, 163, 184, 0.14); padding-top: 16px; }
.sa-sub-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #cbd5e1; }
.sa-sub-head small { font-size: 12px; color: #94a3b8; }
.sa-batch-pre {
  background: #070a12;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 12px;
  border-radius: 10px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  overflow: auto;
  max-height: 280px;
  margin: 12px 0 0;
}
.sa-history-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sa-history-chip {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #0d1320;
  color: #cbd5e1;
  cursor: pointer;
}
.sa-history-chip:hover { border-color: #22d3ee; color: #22d3ee; }
.sa-status { margin-top: 8px; font-size: 14px; color: #34d399; min-height: 20px; font-weight: 600; }
.sa-hidden { display: none !important; }

@media (max-width: 860px) {
  .sa-result-layout { grid-template-columns: 1fr; }
  .sa-bento-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sa-tool { padding: 10px 12px; border-radius: 14px; }
  .sa-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    margin-bottom: 4px;
  }
  .sa-tab {
    min-height: 34px;
    padding: 5px 6px;
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }
  .sa-tab small { display: none; }
  .sa-filter-note { margin: 0 0 8px; font-size: 11px; }
  .sa-controls { gap: 8px; margin-bottom: 10px; }
  .sa-state-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .sa-states {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 2px;
  }
  .sa-states::-webkit-scrollbar { display: none; }
  .sa-state-btn {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 13px;
    gap: 6px;
    flex: 0 0 auto;
  }
  .sa-btn-gen { width: 100%; min-height: 44px; margin: 2px 0; font-size: 15px; }
  .sa-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 0; padding-top: 8px; align-items: stretch; }
  .sa-toolbar .sa-select, .sa-toolbar .sa-btn-sec, .sa-toolbar .sa-toggle-label {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0 8px;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 8px;
  }
  .sa-toolbar .sa-select { line-height: 38px; }
  .sa-toolbar .sa-btn-sec, .sa-toolbar .sa-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: normal;
    text-align: center;
  }
  .sa-toolbar .sa-toggle-label input { flex: 0 0 auto; margin: 0; width: 15px; height: 15px; }
  .sa-card { padding: 12px; }
  .sa-hero-banner { margin-bottom: 10px; padding-bottom: 10px; gap: 8px; }
  .sa-bento-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sa-fields { grid-template-columns: 1fr; }
  .sa-field-copy { opacity: 1; }
  .sa-hero-addr-line { font-size: 18px; }
  .sa-map-preview { height: 172px; }
}
.sa-muted-val { font-size: 0.9rem; font-weight: 500; color: #94a3b8; letter-spacing: 0; }