
.gold-standard-card {
  border: 1px solid rgba(201, 162, 39, 0.45);
  background:
    radial-gradient(circle at top left, rgba(255, 236, 153, 0.35), transparent 32%),
    linear-gradient(180deg, #fffdf5 0%, #ffffff 70%);
  box-shadow: 0 14px 34px rgba(121, 85, 0, 0.12);
}

.gold-standard-header {
  background: linear-gradient(135deg, #1f1a0a 0%, #5c4308 45%, #c9a227 100%);
  color: #fff;
  margin: -0.75rem -1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.45rem 0.45rem 0 0;
}

.gold-title {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.gold-subtitle {
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
}

.btn-gold {
  background: linear-gradient(135deg, #f9e27d, #c9a227, #8a6400);
  color: #1f1a0a;
  border: 1px solid rgba(255,255,255,0.45);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(122, 87, 0, 0.28);
}

.btn-gold:hover {
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(122, 87, 0, 0.34);
}

.gold-summary-box {
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(255, 248, 220, 0.65);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0;
}

.gold-summary-title {
  font-weight: 800;
  color: #5c4308;
  margin-bottom: 6px;
}

.gold-summary-text {
  white-space: pre-wrap;
  line-height: 1.45;
}

.gold-loading,
.gold-saved-response {
  border-left: 4px solid #c9a227;
  background: rgba(255, 248, 220, 0.55);
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  color: #5c4308;
  font-weight: 700;
}

/* =========================
   GOLD STANDARD — FINAL
   ========================= */

.gold-standard-card-pro {
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.gold-standard-card-pro .card-header,
.gold-standard-card-pro .bslib-card-header {
  padding: 0;
  width: 100%;
  border-bottom: 0;
}

/* Header / banner */
.gold-standard-hero,
.gold-standard-hero.compact {
  width: 100%;
  margin: 0;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(
    90deg,
    #0b0b0b 0%,
    #1a1a1a 35%,
    #3a2f12 65%,
    #c9a227 100%
  );
  border-bottom: 3px solid #c9282d;
}

.gold-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5d56b;
}

.gold-hero-title {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.15;
}

.gold-hero-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
}

.btn-gold-run {
  background: #fff;
  color: #111;
  border-radius: 10px;
  font-weight: 800;
  padding: 8px 14px;
  border: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.btn-gold-run:hover {
  background: #f3f4f6;
  color: #111;
}

/* Body */
.gold-standard-body,
.gold-standard-body.compact {
  padding: 14px 16px;
}

/* Score + summary row */
.gold-score-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.gold-score-block,
.gold-score-summary-card {
  border: 1px solid #ead27b;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf4, #fff);
  padding: 14px;
}

.gold-score-block {
  text-align: center;
}

.gold-score-summary-card {
  min-height: 190px;
}

.gold-score-badges {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: -6px;
}

.gold-pill,
.gold-risk-badge {
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 900;
  font-size: 0.75rem;
  background: #f7f3df;
  border: 1px solid #e4cf75;
  color: #5c4400;
  white-space: nowrap;
}

.gold-pill.risk.moderate,
.gold-risk-badge.moderate {
  background: #fff8e1;
  border-color: #d4a017;
  color: #6b4a00;
}

.gold-pill.risk.high,
.gold-risk-badge.high {
  background: #fff0f0;
  border-color: #c9282d;
  color: #8b0000;
}

/* Diff cards */
.gold-diff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gold-diff-pill {
  border: 1px solid #ead27b;
  background: #fff9df;
  border-radius: 10px;
  padding: 10px 12px;
}

.gold-diff-pill strong {
  display: block;
  font-size: 1.05rem;
  color: #5c4400;
}

.gold-diff-pill span {
  font-size: 0.75rem;
  font-weight: 800;
  color: #6b5a16;
}

.gold-diff-pill.delta {
  border-left: 4px solid #c9282d;
}

/* Saved response */
.gold-saved-response {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff9df;
  border-left: 4px solid #c9a227;
  font-size: 0.84rem;
  font-weight: 800;
  color: #5c4400;
}

/* GPT hero */
.gold-ai-full-row {
  margin-top: 16px;
}

.gold-ai-hero {
  width: 100%;
  border: 1px solid #ead27b;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf4, #fff);
  padding: 18px 20px;
}

.gold-ai-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.gold-ai-title {
  font-size: 1rem;
  font-weight: 950;
  color: #5c4400;
}

.gold-ai-summary {
  font-size: 0.94rem;
  line-height: 1.45;
  color: #1f2937;
  margin-bottom: 10px;
}

.gold-ai-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(201,162,39,0.25);
}

.gold-ai-section-title {
  font-weight: 900;
  margin-bottom: 5px;
  color: #111;
}

.gold-ai-section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.gold-ai-section li {
  font-size: 0.88rem;
  line-height: 1.35;
  margin-bottom: 4px;
}

/* PRAXIS prompt */
.gold-praxis-prompt {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #111;
  color: #fff;
}

.gold-praxis-prompt .gold-ai-section-title {
  color: #f5d56b;
}

.gold-praxis-text {
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}

.gold-praxis-prompt .btn {
  border-color: #c9a227;
  color: #c9a227;
  background: transparent;
  font-weight: 800;
}

.gold-praxis-prompt .btn:hover {
  background: #c9a227;
  color: #111;
}

/* Visualization row */
.gold-viz-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.gold-viz-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.gold-section-title {
  font-weight: 900;
  margin-bottom: 10px;
}

/* Gold metrics */
.gold-metric-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid #e5e7eb;
}

.gold-metric-item.passed {
  background: #f6fff8;
}

.gold-metric-item.failed {
  background: #fff8e1;
  border-color: #d4a017;
}

.gold-metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  flex-shrink: 0;
}

.gold-metric-label {
  font-weight: 900;
}

.gold-metric-reason {
  color: #6b7280;
  font-size: 0.82rem;
}

/* Details tables */
.gold-change-details,
.gold-raw-details {
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.gold-change-details summary,
.gold-raw-details summary {
  cursor: pointer;
  font-weight: 900;
}

.gold-metric-dt td {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Modal close */
.estimate-workspace-modal-root {
  position: relative;
}

.estimate-modal-x {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 1000;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.estimate-modal-x:hover {
  background: #111;
  color: #fff;
}

/* Interactions */
.gold-score-block:hover,
.gold-score-summary-card:hover,
.gold-ai-hero:hover,
.gold-viz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  transition: all 0.15s ease;
}

/* Responsive */
@media (max-width: 1100px) {
  .gold-viz-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .gold-standard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

.gold-standard-body .dataTables_wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.gold-standard-body table.dataTable thead th {
  background: #111;
  color: #fff;
  border-bottom: 3px solid #c9a227;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gold-standard-body table.dataTable tbody td {
  font-size: 0.82rem;
  vertical-align: top;
}

.gold-standard-body table.dataTable tbody tr:hover {
  background: #fff8df;
}

.gold-standard-body .dataTables_info,
.gold-standard-body .dataTables_paginate {
  padding: 10px 12px;
  font-size: 0.8rem;
}

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

.gold-major-change-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  border-left: 5px solid #c9a227;
}

.gold-major-change-card.decrease {
  border-left-color: #c9282d;
}

.gold-change-amount {
  font-size: 1.15rem;
  font-weight: 950;
  color: #111;
}

.gold-change-type {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #6b5a16;
  margin-top: 2px;
}

.gold-change-desc {
  font-size: 0.82rem;
  color: #374151;
  margin-top: 6px;
  line-height: 1.25;
}

.gold-standard-body .gold-dt-wrap .dataTables_wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  margin-top: 10px;
}

.gold-standard-body .gold-dt-wrap table.dataTable {
  margin: 0 !important;
  border-collapse: collapse !important;
}

.gold-standard-body .gold-dt-wrap table.dataTable thead th {
  background: #111827 !important;
  color: #ffffff !important;
  border-bottom: 3px solid #c9a227 !important;
  font-size: 0.74rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 12px !important;
}

.gold-standard-body .gold-dt-wrap table.dataTable tbody td {
  font-size: 0.86rem !important;
  font-weight: 650;
  color: #374151;
  padding: 12px !important;
  border-top: 1px solid #e5e7eb !important;
}

.gold-standard-body .gold-dt-wrap table.dataTable.stripe tbody tr.odd,
.gold-standard-body .gold-dt-wrap table.dataTable.display tbody tr.odd {
  background-color: #ffffff !important;
}

.gold-standard-body .gold-dt-wrap table.dataTable.stripe tbody tr.even,
.gold-standard-body .gold-dt-wrap table.dataTable.display tbody tr.even {
  background-color: #f8fafc !important;
}

.gold-standard-body .gold-dt-wrap table.dataTable.hover tbody tr:hover {
  background-color: #fff8df !important;
}

.gold-standard-body .gold-dt-wrap .dataTables_info,
.gold-standard-body .gold-dt-wrap .dataTables_paginate {
  padding: 10px 12px !important;
  font-size: 0.78rem;
}


.gold-standard-body .gold-dt-wrap .dataTables_paginate .paginate_button.current {
  background: #111 !important;
  color: #fff !important;
  border: none !important;
}

.gold-standard-body .gold-dt-wrap .dataTables_paginate .paginate_button.current:hover {
  background: #000 !important;
  color: #fff !important;
}

.estimate-instructions-tab {
  padding: 14px;
}

.instructions-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #111 0%, #2a2a2a 55%, #003849 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.instructions-eyebrow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #D9F6FF;
  font-weight: 700;
}

.instructions-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 4px;
}

.instructions-subtitle {
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  margin-top: 3px;
}

.instructions-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.instruction-section-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}

.instruction-section-header {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.instruction-memory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.instruction-memory-item {
  padding: 10px 12px;
  border-left: 4px solid #c9282d;
  background: rgba(0,56,73,.045);
  border-radius: 10px;
  white-space: pre-wrap;
  font-size: .9rem;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .instructions-grid {
    grid-template-columns: 1fr;
  }

  .instructions-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}