/* ==========================================================================
   BuildLens design system
   Dark-first theme for verifiable evaluation infrastructure.
   Layered on Bootstrap 5.3 color modes (html[data-bs-theme="dark"]).
   ========================================================================== */

:root {
  /* Surfaces */
  --bl-bg: #070b14;
  --bl-bg-alt: #0a1020;
  --bl-surface: #0e1526;
  --bl-surface-2: #131c30;
  --bl-border: rgba(148, 163, 184, 0.14);
  --bl-border-strong: rgba(148, 163, 184, 0.3);

  /* Type */
  --bl-text: #e8eef9;
  --bl-muted: #90a1b9;

  /* Brand */
  --bl-accent: #6366f1;
  --bl-accent-hi: #818cf8;
  --bl-cyan: #22d3ee;
  --bl-violet: #a78bfa;

  /* Semantic */
  --bl-success: #34d399;
  --bl-success-dim: rgba(52, 211, 153, 0.12);
  --bl-warning: #fbbf24;
  --bl-warning-dim: rgba(251, 191, 36, 0.12);
  --bl-danger: #f87171;
  --bl-danger-dim: rgba(248, 113, 113, 0.12);

  --bl-radius: 14px;
  --bl-radius-sm: 10px;
  --bl-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  /* Bootstrap bridge */
  --bs-body-bg: var(--bl-bg);
  --bs-body-color: var(--bl-text);
  --bs-border-color: var(--bl-border);
  --bs-primary: var(--bl-accent);
  --bs-link-color: var(--bl-accent-hi);
  --bs-link-hover-color: #a5b4fc;
  --bs-emphasis-color: #fff;
}

/* --------------------------------------------------------------- base ---- */

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--bl-bg);
  background-image:
    radial-gradient(58rem 32rem at 12% -8%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(48rem 28rem at 92% 2%, rgba(34, 211, 238, 0.1), transparent 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--bl-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

main {
  flex: 1 0 auto;
}

::selection {
  background: rgba(99, 102, 241, 0.35);
}

h1, h2, h3, h4, h5, h6, .page-title {
  font-weight: 650;
  letter-spacing: -0.025em;
  color: #f2f6fd;
}

.muted {
  color: var(--bl-muted);
}

.mono {
  font-family: var(--bl-mono);
  font-size: 0.86em;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bl-muted);
}

.section-title {
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bl-muted);
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------- brand mark --- */

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
  color: #fff !important;
}

.brand-lockup:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--bl-accent), var(--bl-cyan));
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 18px -6px rgba(99, 102, 241, 0.8);
}

.brand-mark svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* --------------------------------------------------------------- navbar -- */

.navbar-buildlens {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--bl-border);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.navbar-buildlens .nav-link {
  color: var(--bl-muted) !important;
  font-weight: 500;
  font-size: 0.94rem;
  padding-inline: 0.85rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.navbar-buildlens .nav-link:hover {
  color: #fff !important;
  background: rgba(148, 163, 184, 0.1);
  text-decoration: none;
}

.navbar-buildlens .nav-link.active {
  color: #fff !important;
  background: rgba(99, 102, 241, 0.16);
}

.navbar-toggler {
  border-color: var(--bl-border-strong);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.nav-user {
  font-size: 0.88rem;
  color: var(--bl-muted);
  font-weight: 500;
}

/* ------------------------------------------------------- account menu ---- */

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--bl-border-strong);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 570;
  padding: 0.32rem 0.75rem 0.32rem 0.35rem;
  text-decoration: none;
}

.account-trigger:hover,
.account-trigger:focus,
.account-trigger.show {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.45);
  color: #fff;
}

.account-trigger.dropdown-toggle::after {
  margin-left: 0.1rem;
  vertical-align: 0.15em;
  border-top-color: var(--bl-muted);
}

.account-avatar {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bl-accent), #7c3aed);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.account-wallet {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.55rem;
  margin-left: 0.15rem;
  border-left: 1px solid var(--bl-border-strong);
  color: var(--bl-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.account-menu {
  min-width: 16rem;
  background: var(--bl-surface);
  border: 1px solid var(--bl-border-strong);
  border-radius: var(--bl-radius);
  padding: 0.35rem;
  box-shadow: 0 16px 44px -18px rgba(0, 0, 0, 0.9);
}

.account-menu .dropdown-item-text {
  padding: 0.5rem 0.75rem;
  color: var(--bl-text);
}

.account-menu .dropdown-item {
  border-radius: 8px;
  color: var(--bl-text);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.account-menu .dropdown-item:hover,
.account-menu .dropdown-item:focus {
  background: rgba(99, 102, 241, 0.16);
  color: #fff;
}

.account-menu .dropdown-divider {
  border-top-color: var(--bl-border);
  margin: 0.35rem 0;
}

.account-menu-head {
  padding: 0.6rem 0.75rem;
}

.account-menu-name {
  font-weight: 620;
  font-size: 0.95rem;
  color: #fff;
}

/* ------------------------------------------------------- network badge --- */

.net-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--bl-border-strong);
  background: rgba(148, 163, 184, 0.08);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--bl-text);
  white-space: nowrap;
}

.net-badge:hover {
  text-decoration: none;
  border-color: var(--bl-accent);
}

.net-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bl-success);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
  animation: bl-pulse 2.4s ease-in-out infinite;
}

.net-dot.is-off {
  background: var(--bl-warning);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18);
  animation: none;
}

@keyframes bl-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------------------------------------------------------------- cards -- */

.card-bl {
  background: linear-gradient(180deg, var(--bl-surface) 0%, var(--bl-bg-alt) 100%);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -20px rgba(0, 0, 0, 0.9);
}

.card-bl > .card-header {
  background: transparent;
  border-bottom: 1px solid var(--bl-border);
  font-weight: 620;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.15rem;
  color: #f2f6fd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-bl.is-hoverable {
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card-bl.is-hoverable:hover {
  border-color: var(--bl-border-strong);
  transform: translateY(-2px);
}

.card-glass {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--bl-radius);
  backdrop-filter: blur(8px);
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bl-border);
  border-radius: 20px;
  padding: 3.75rem 2.75rem;
  background:
    radial-gradient(38rem 22rem at 8% 0%, rgba(99, 102, 241, 0.26), transparent 65%),
    radial-gradient(32rem 20rem at 100% 10%, rgba(34, 211, 238, 0.16), transparent 62%),
    linear-gradient(180deg, #0d1424 0%, #080d19 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 20%, transparent 100%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero .lead {
  color: #b8c6dd;
  max-width: 36rem;
  font-size: 1.09rem;
  line-height: 1.6;
}

.gradient-text {
  background: linear-gradient(100deg, #a5b4fc 0%, #67e8f9 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 767.98px) {
  .hero {
    padding: 2.5rem 1.35rem;
    border-radius: 16px;
  }
}

/* --------------------------------------------------------------- pillar -- */

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.13);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: var(--bl-accent-hi);
  margin-bottom: 1rem;
}

.pillar-icon svg {
  width: 19px;
  height: 19px;
}

.pillar-icon.is-cyan {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.28);
  color: #67e8f9;
}

.pillar-icon.is-green {
  background: var(--bl-success-dim);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--bl-success);
}

/* ----------------------------------------------------------------- flow -- */

.flow-step {
  position: relative;
  padding-left: 2.9rem;
  padding-bottom: 1.65rem;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--bl-mono);
  color: var(--bl-accent-hi);
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.94rem;
  top: 2.15rem;
  bottom: 0.2rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.4), transparent);
}

.flow-step h3 {
  font-size: 0.97rem;
  margin-bottom: 0.2rem;
}

.flow-step p {
  font-size: 0.89rem;
  color: var(--bl-muted);
  margin-bottom: 0;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- stats -- */

.stat-value {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-label {
  color: var(--bl-muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 0.2rem;
}

.stat-tile {
  padding: 1.1rem 1.15rem;
}

/* --------------------------------------------------------------- tables -- */

.table-bl {
  --bs-table-bg: transparent;
  --bs-table-color: var(--bl-text);
  --bs-table-border-color: var(--bl-border);
  --bs-table-hover-bg: rgba(148, 163, 184, 0.055);
  --bs-table-hover-color: var(--bl-text);
  margin-bottom: 0;
}

.table-bl thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--bl-muted);
  font-weight: 650;
  background: rgba(148, 163, 184, 0.045);
  border-bottom: 1px solid var(--bl-border);
  padding: 0.7rem 1.15rem;
  white-space: nowrap;
}

.table-bl tbody td {
  padding: 0.85rem 1.15rem;
  border-bottom-color: var(--bl-border);
  vertical-align: middle;
}

.table-bl tbody tr:last-child td {
  border-bottom: 0;
}

.rank-cell {
  font-family: var(--bl-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bl-muted);
  width: 4.5rem;
}

.rank-cell.is-podium {
  color: #fff;
}

.rank-medal {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-right: 0.15rem;
}

.rank-medal.is-1 { background: rgba(251, 191, 36, 0.18); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.35); }
.rank-medal.is-2 { background: rgba(203, 213, 225, 0.16); color: #e2e8f0; border: 1px solid rgba(203, 213, 225, 0.3); }
.rank-medal.is-3 { background: rgba(217, 119, 6, 0.18); color: #fbbf24; border: 1px solid rgba(217, 119, 6, 0.38); }

/* -------------------------------------------------------------- buttons -- */

.btn {
  font-weight: 570;
  border-radius: var(--bl-radius-sm);
  letter-spacing: -0.008em;
  text-decoration: none;
}

.btn:hover,
.btn:focus,
.btn:active {
  text-decoration: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--bl-accent) 0%, #7c3aed 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 22px -12px rgba(99, 102, 241, 0.95);
}

.btn-accent:hover,
.btn-accent:focus {
  background: linear-gradient(135deg, var(--bl-accent-hi) 0%, #8b5cf6 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

/* btn-navy retained as the neutral/secondary action for template stability */
.btn-navy {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--bl-border-strong);
  color: #fff;
  font-weight: 570;
}

.btn-navy:hover,
.btn-navy:focus {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.45);
  color: #fff;
}

.btn-outline-secondary,
.btn-outline-light {
  border-color: var(--bl-border-strong);
  color: var(--bl-text);
}

.btn-outline-secondary:hover,
.btn-outline-light:hover {
  background: rgba(148, 163, 184, 0.14);
  border-color: var(--bl-border-strong);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--bl-muted);
  font-weight: 550;
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #fff;
}

/* ---------------------------------------------------------------- forms -- */

.form-label {
  font-weight: 570;
  font-size: 0.88rem;
  color: #dbe4f2;
  margin-bottom: 0.4rem;
}

.form-control,
.form-select,
textarea.form-control {
  font-family: inherit;
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid var(--bl-border-strong);
  border-radius: var(--bl-radius-sm);
  color: var(--bl-text);
  padding: 0.6rem 0.85rem;
  font-size: 0.94rem;
}

.form-control::placeholder {
  color: #64748b;
}

.form-control:focus,
.form-select:focus {
  background: rgba(7, 11, 20, 0.85);
  border-color: var(--bl-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
  color: var(--bl-text);
}

.form-text {
  color: var(--bl-muted);
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 0.35rem;
}

.form-text ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.form-text li {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  margin-bottom: 0.2rem;
}

.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--bl-danger);
}

.input-group > .form-control {
  font-family: var(--bl-mono);
}

.form-control.is-mono {
  font-family: var(--bl-mono);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------- badges -- */

.badge-status {
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  border: 1px solid transparent;
}

.status-draft         { background: rgba(148, 163, 184, 0.13); color: #cbd5e1; border-color: var(--bl-border-strong); }
.status-rubric_ready  { background: rgba(167, 139, 250, 0.14); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.35); }
.status-open          { background: rgba(34, 211, 238, 0.13); color: #67e8f9; border-color: rgba(34, 211, 238, 0.33); }
.status-evaluated     { background: rgba(99, 102, 241, 0.16); color: #a5b4fc; border-color: rgba(99, 102, 241, 0.36); }
.status-published     { background: var(--bl-success-dim); color: var(--bl-success); border-color: rgba(52, 211, 153, 0.36); }

.verified-badge {
  background: var(--bl-success-dim);
  color: var(--bl-success);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.pending-badge {
  background: var(--bl-warning-dim);
  color: var(--bl-warning);
  border: 1px solid rgba(251, 191, 36, 0.36);
}

.neutral-badge {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid var(--bl-border-strong);
}

/* -------------------------------------------------------------- scoring -- */

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.24rem 0.6rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.34);
  color: #c7d2fe;
  font-weight: 700;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  font-family: var(--bl-mono);
}

.score-pill.is-lg {
  font-size: 1.5rem;
  min-width: 4.6rem;
  padding: 0.4rem 0.85rem;
  border-radius: 11px;
}

.score-hero {
  font-family: var(--bl-mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.score-hero small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bl-muted);
  letter-spacing: 0;
}

.criteria-weight {
  font-family: var(--bl-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--bl-accent-hi);
  font-size: 0.86rem;
  white-space: nowrap;
}

.criterion-row + .criterion-row {
  margin-top: 0.95rem;
}

.criterion-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.criterion-name {
  font-size: 0.88rem;
  font-weight: 550;
  color: #dbe4f2;
}

.criterion-score {
  font-family: var(--bl-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.13);
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bl-accent), var(--bl-cyan));
}

.meter.is-strong > span { background: linear-gradient(90deg, #10b981, #34d399); }
.meter.is-weak > span   { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* ------------------------------------------------------- verify panel --- */

.verify-panel {
  border-radius: var(--bl-radius);
  border: 1px solid rgba(52, 211, 153, 0.32);
  background:
    radial-gradient(24rem 12rem at 0% 0%, rgba(52, 211, 153, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(16, 185, 129, 0.07), rgba(16, 185, 129, 0.02));
  padding: 1.15rem 1.3rem;
}

.verify-panel.is-pending {
  border-color: rgba(251, 191, 36, 0.32);
  background:
    radial-gradient(24rem 12rem at 0% 0%, rgba(251, 191, 36, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(251, 191, 36, 0.06), rgba(251, 191, 36, 0.02));
}

.verify-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bl-success-dim);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--bl-success);
}

.verify-panel.is-pending .verify-icon {
  background: var(--bl-warning-dim);
  border-color: rgba(251, 191, 36, 0.42);
  color: var(--bl-warning);
}

.verify-icon svg {
  width: 21px;
  height: 21px;
}

.verify-title {
  font-weight: 650;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------- data fields -- */

.field-grid {
  display: grid;
  gap: 0.85rem;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--bl-border);
}

.field-grid > .field-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.field-key {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bl-muted);
}

.field-val {
  font-family: var(--bl-mono);
  font-size: 0.85rem;
  color: #dbe4f2;
  word-break: break-all;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ------------------------------------------------------------- copyable -- */

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.5rem 0.28rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--bl-border);
  background: rgba(7, 11, 20, 0.6);
  font-family: var(--bl-mono);
  font-size: 0.82rem;
  color: #dbe4f2;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  max-width: 100%;
}

.copy-chip:hover {
  border-color: var(--bl-accent);
  color: #fff;
}

.copy-chip svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  opacity: 0.6;
}

.copy-chip:hover svg {
  opacity: 1;
}

.copy-chip.is-copied {
  border-color: rgba(52, 211, 153, 0.5);
  color: var(--bl-success);
}

.copy-chip.is-block {
  display: flex;
  width: 100%;
  justify-content: space-between;
  word-break: break-all;
  text-align: left;
  padding: 0.55rem 0.7rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------- lists --- */

.insight-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  font-size: 0.88rem;
}

.insight-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.5rem;
  color: #c7d2e4;
  line-height: 1.55;
}

.insight-list li:last-child {
  margin-bottom: 0;
}

.insight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bl-accent-hi);
}

.insight-list.is-strength li::before { background: var(--bl-success); }
.insight-list.is-weakness li::before { background: var(--bl-warning); }
.insight-list.is-action li::before   { background: var(--bl-cyan); }

.list-group-item {
  background: transparent;
  border-color: var(--bl-border);
  color: var(--bl-text);
}

/* -------------------------------------------------------------- alerts --- */

.alert {
  border-radius: var(--bl-radius-sm);
  border-width: 1px;
  font-size: 0.92rem;
}

.alert-success { background: var(--bl-success-dim); border-color: rgba(52, 211, 153, 0.35); color: #6ee7b7; }
.alert-info    { background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.35); color: #a5b4fc; }
.alert-warning { background: var(--bl-warning-dim); border-color: rgba(251, 191, 36, 0.35); color: #fcd34d; }
.alert-danger, .alert-error { background: var(--bl-danger-dim); border-color: rgba(248, 113, 113, 0.35); color: #fca5a5; }

.alert .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.5;
}

/* ------------------------------------------------------------ progress --- */

.progress {
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--bl-accent), var(--bl-cyan));
}

.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.16) 75%, transparent 75%, transparent);
}

/* ----------------------------------------------------------- empty state - */

.empty-state {
  text-align: center;
  padding: 3.25rem 1.5rem;
}

.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.1rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--bl-border);
  color: var(--bl-muted);
}

.empty-icon svg {
  width: 23px;
  height: 23px;
}

/* --------------------------------------------------------------- footer -- */

.footer-bl {
  color: var(--bl-muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--bl-border);
  margin-top: 4rem;
  padding: 2.25rem 0 2rem;
  background: rgba(7, 11, 20, 0.6);
}

.footer-bl a {
  color: var(--bl-muted);
}

.footer-bl a:hover {
  color: #fff;
}

/* ---------------------------------------------------------------- utils -- */

.divider {
  height: 1px;
  background: var(--bl-border);
  border: 0;
  margin: 1.25rem 0;
  opacity: 1;
}

.hairline-top {
  border-top: 1px solid var(--bl-border);
}

code, pre {
  font-family: var(--bl-mono);
  color: #c7d2fe;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--bl-muted);
}

.trust-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.trust-strip svg {
  width: 14px;
  height: 14px;
  color: var(--bl-success);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
