.pm-mode-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
}

.pm-mode-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.pm-mode-tab:hover {
  color: var(--text);
}

.pm-mode-tab.active {
  background: var(--primary);
  color: #fff;
}

.pm-list-textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.pm-list-summary {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.pm-list-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin: 14px 0 6px;
}

.pm-overseas-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.postcode-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  background: var(--glass);
}

.postcode-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.postcode-item:last-child {
  border-bottom: none;
}

.postcode-item:hover {
  background: var(--hover-bg);
}

.postcode-item.active {
  background: var(--hover-bg);
  border-left: 3px solid var(--primary);
  padding-left: 7px;
}

.postcode-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3b82f6;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.postcode-item.active .postcode-item-badge {
  background: #f59e0b;
}

.postcode-item-label {
  flex: 1;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.postcode-item-sub {
  color: var(--text-muted);
  font-weight: 400;
}

.pm-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.pm-search-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
}

.pm-status {
  font-size: 12px;
  color: var(--text-muted);
  min-height: 16px;
  margin-bottom: 8px;
}

.pm-result-panel h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.pm-precision {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  margin-bottom: 8px;
}

.pm-member-summary {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 8px;
}

.pm-disclosure {
  font-size: 13px;
  line-height: 1.5;
  background: #f1f5f9;
  border-left: 3px solid #64748b;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  color: var(--text);
}

.pm-merger-note {
  font-size: 13px;
  line-height: 1.5;
  background: #fef3c7;
  border-left: 3px solid #d97706;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  color: #92400e;
}

.pm-member-details {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.pm-member-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
}

.pm-member-details summary:hover {
  color: var(--text);
}

.pm-member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}

.pm-member-table th,
.pm-member-table td {
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
}

.pm-member-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.pm-marker {
  font-size: 24px;
  line-height: 1;
}

/* List-mode markers: a numbered badge, not a pin-drop shape - deliberately
   different from .pm-marker (the "here is the answer" 📍 used by a single
   search) so a list of N points reads as N approximate representative
   markers, not N exact addresses. Same blue/amber convention as the list
   panel's own .postcode-item-badge, so a marker and its list row read as
   the same thing. */
.pm-list-marker-icon {
  background: #3b82f6;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.pm-list-marker-icon.sel {
  background: #f59e0b;
  width: 30px;
  height: 30px;
  font-size: 13px;
}

@media (max-width: 480px) {
  .pm-member-table {
    font-size: 11px;
  }
  .pm-member-table th,
  .pm-member-table td {
    padding: 4px 5px;
  }
}
