.recon-console {
  padding: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
}

.recon-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.recon-header h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.recon-header p {
  margin: 0;
  color: #667085;
}

.recon-grid {
  display: grid;
  gap: 16px;
}

.recon-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 24px;
}

.summary-card {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.summary-card span {
  display: block;
  font-size: 13px;
  color: #667085;
  margin-bottom: 8px;
}

.summary-card strong {
  font-size: 24px;
}

.panel {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.panel-header {
  padding: 18px;
  border-bottom: 1px solid #e4e7ec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.panel-header h2 {
  margin: 0;
  font-size: 18px;
}

.filters {
  display: flex;
  gap: 10px;
}

.filters input,
.filters select {
  padding: 9px 11px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eaecf0;
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  background: #f9fafb;
  color: #475467;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: #ecfdf3;
  color: #027a48;
}

.badge-warning {
  background: #fffaeb;
  color: #b54708;
}

.badge-error {
  background: #fef3f2;
  color: #b42318;
}

.badge-neutral {
  background: #f2f4f7;
  color: #344054;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: #1849a9;
  color: #ffffff;
}

.btn-secondary {
  background: #f2f4f7;
  color: #344054;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: min(900px, 92vw);
  max-height: 86vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.25);
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid #e4e7ec;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.modal-body {
  padding: 22px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px 18px;
}

.detail-grid dt {
  color: #667085;
  font-weight: 600;
}

.detail-grid dd {
  margin: 0;
}

.panel-header-stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.panel-subtitle {
  margin: 4px 0 0;
  color: #667085;
  font-size: 14px;
}

.tab-bar {
  display: inline-flex;
  width: fit-content;
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.tab-button {
  border: 0;
  background: transparent;
  color: #475467;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.tab-button:hover {
  background: #ffffff;
}

.tab-button.active {
  background: #ffffff;
  color: #1849a9;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12);
}