/* Bullshit Jobs Calculator (UK): shell aligned with RetirementCalculators.uk plugins */

:root {
  --bsjc-ink: #0f172a;
  --bsjc-muted: #475569;
  --bsjc-navy: #083141;
  --bsjc-bull: #b45309;
  --bsjc-meaning: #0e7490;
}

.bsjc-loading {
  margin: 1rem 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--bsjc-muted);
}

#bsjc-root.bsjc-app,
.bsjc-root.bsjc-app {
  width: auto;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 14px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.bsjc-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 30px;
  border: 2px solid rgba(8, 49, 65, 0.18);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.1);
  background: #fff;
  color: var(--bsjc-ink);
}

.bsjc-hero {
  border: 1px solid rgba(8, 49, 65, 0.2);
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(135deg, #fff 0%, #fff7ed 48%, #ffedd5 100%);
}

.bsjc-hero-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}

.bsjc-title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  font-weight: 950;
  color: var(--bsjc-navy);
  letter-spacing: -0.02em;
}

.bsjc-sub {
  margin: 0;
  color: var(--bsjc-muted);
  font-weight: 650;
  line-height: 1.55;
}

.bsjc-hero-context {
  margin: 12px 0 0;
  color: #9a3412;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.55;
}

.bsjc-card {
  margin-top: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.bsjc-card--inputs {
  border: 2px solid rgba(8, 49, 65, 0.2);
  border-left: 5px solid var(--bsjc-navy);
  background: linear-gradient(165deg, #f8fafc 0%, #fff 42%);
  box-shadow: 0 6px 22px rgba(8, 49, 65, 0.07);
}

.bsjc-h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 950;
  color: var(--bsjc-navy);
  letter-spacing: -0.02em;
}

.bsjc-h3--archetypes {
  margin-top: 20px;
}

.bsjc-card-lead {
  margin: -4px 0 14px;
  color: var(--bsjc-muted);
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.55;
}

.bsjc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .bsjc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bsjc-field {
  display: grid;
  gap: 6px;
}

.bsjc-field--full {
  grid-column: 1 / -1;
}

.bsjc-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--bsjc-navy);
}

.bsjc-hint {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
}

.bsjc-input {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(8, 49, 65, 0.2);
  border-radius: 12px;
  box-sizing: border-box;
  font-size: max(16px, 1rem);
}

.bsjc-input:focus {
  outline: none;
  border-color: rgba(180, 83, 9, 0.55);
  box-shadow: 0 0 0 5px rgba(180, 83, 9, 0.12);
}

.bsjc-range {
  width: 100%;
  accent-color: var(--bsjc-bull);
}

.bsjc-range--lead {
  margin-top: 4px;
}

.bsjc-range-summary {
  margin: 8px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}

.bsjc-range-val {
  font-size: 0.88rem;
  font-weight: 850;
  color: var(--bsjc-bull);
}

.bsjc-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.45;
  cursor: pointer;
}

.bsjc-check-input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.bsjc-archetype-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .bsjc-archetype-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bsjc-archetype-field {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(8, 49, 65, 0.12);
  background: #fafafa;
}

.bsjc-archetype-live {
  margin-top: 18px;
}

.bsjc-arch-live-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(8, 49, 65, 0.14);
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  font-size: 0.88rem;
  font-weight: 650;
  color: #475569;
  line-height: 1.4;
}

.bsjc-arch-live-compact--box {
  border-color: rgba(2, 132, 199, 0.25);
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
}

.bsjc-arch-live-compact--goon {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(135deg, #fff1f2 0%, #fff 100%);
}

.bsjc-arch-live-compact-kicker {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.bsjc-arch-live-compact-body {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--bsjc-navy);
}

.bsjc-arch-live-compact-body strong {
  font-weight: 950;
}

.bsjc-arch-live-compact-score {
  font-weight: 800;
  color: #7c3aed;
}

.bsjc-arch-live-compact--box .bsjc-arch-live-compact-score {
  color: #0369a1;
}

.bsjc-arch-live-compact--goon .bsjc-arch-live-compact-score {
  color: #dc2626;
}

.bsjc-arch-live-compact-hint {
  font-size: 0.72rem;
  font-weight: 650;
  color: #94a3b8;
  width: 100%;
}

@media (min-width: 560px) {
  .bsjc-arch-live-compact-hint {
    width: auto;
    margin-left: auto;
  }
}

.bsjc-arch-match-card {
  margin-bottom: 18px;
  padding: 18px 20px 16px;
  border-radius: 18px;
  border: 2px solid rgba(124, 58, 237, 0.35);
  background: linear-gradient(155deg, #faf5ff 0%, #fff 48%, #f5f3ff 100%);
  box-shadow: 0 12px 32px rgba(91, 33, 182, 0.12);
}

.bsjc-archetype-live .bsjc-arch-match-card {
  animation: bsjc-arch-pulse 2.4s ease-in-out infinite;
}

@keyframes bsjc-arch-pulse {
  0%,
  100% {
    box-shadow: 0 12px 32px rgba(91, 33, 182, 0.12);
  }
  50% {
    box-shadow: 0 14px 38px rgba(91, 33, 182, 0.2);
  }
}

.bsjc-arch-match-card--goon {
  border-color: rgba(220, 38, 38, 0.45);
  background: linear-gradient(155deg, #fff1f2 0%, #fff 50%, #ffe4e6 100%);
  box-shadow: 0 12px 32px rgba(185, 28, 28, 0.14);
}

.bsjc-archetype-live .bsjc-arch-match-card--goon {
  animation-name: bsjc-arch-pulse-goon;
}

@keyframes bsjc-arch-pulse-goon {
  0%,
  100% {
    box-shadow: 0 12px 32px rgba(185, 28, 28, 0.14);
  }
  50% {
    box-shadow: 0 16px 40px rgba(185, 28, 28, 0.24);
  }
}

.bsjc-arch-match-card--flunky {
  border-color: rgba(124, 58, 237, 0.45);
  background: linear-gradient(155deg, #faf5ff 0%, #fff 50%, #ede9fe 100%);
}

.bsjc-arch-match-card--duct {
  border-color: rgba(234, 88, 12, 0.4);
  background: linear-gradient(155deg, #fff7ed 0%, #fff 50%, #ffedd5 100%);
  box-shadow: 0 12px 32px rgba(154, 52, 18, 0.1);
}

.bsjc-arch-match-card--box {
  border-color: rgba(2, 132, 199, 0.4);
  background: linear-gradient(155deg, #f0f9ff 0%, #fff 50%, #e0f2fe 100%);
  box-shadow: 0 12px 32px rgba(7, 89, 133, 0.1);
}

.bsjc-arch-match-card--task {
  border-color: rgba(8, 49, 65, 0.35);
  background: linear-gradient(155deg, #f8fafc 0%, #fff 50%, #e2e8f0 100%);
  box-shadow: 0 12px 32px rgba(8, 49, 65, 0.1);
}

.bsjc-arch-match-card--none {
  border-color: rgba(100, 116, 139, 0.3);
  background: linear-gradient(155deg, #f8fafc 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  animation: none;
}

.bsjc-arch-match-kicker {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6d28d9;
}

.bsjc-arch-match-card--goon .bsjc-arch-match-kicker {
  color: #b91c1c;
}

.bsjc-arch-match-card--duct .bsjc-arch-match-kicker {
  color: #c2410c;
}

.bsjc-arch-match-card--box .bsjc-arch-match-kicker {
  color: #0369a1;
}

.bsjc-arch-match-card--task .bsjc-arch-match-kicker {
  color: #083141;
}

.bsjc-arch-match-inner {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 16px 20px;
  align-items: center;
}

.bsjc-arch-match-visual {
  width: 100%;
}

.bsjc-arch-match-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  aspect-ratio: 320 / 200;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.bsjc-arch-match-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bsjc-arch-match-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
}

.bsjc-arch-match-score-ring {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 1px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: 0 4px 14px rgba(91, 33, 182, 0.45);
}

.bsjc-arch-match-card--goon .bsjc-arch-match-score-ring {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.45);
}

.bsjc-arch-match-card--duct .bsjc-arch-match-score-ring {
  background: linear-gradient(135deg, #f97316, #c2410c);
}

.bsjc-arch-match-card--box .bsjc-arch-match-score-ring {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.bsjc-arch-match-card--task .bsjc-arch-match-score-ring {
  background: linear-gradient(135deg, #0f766e, #083141);
}

.bsjc-arch-match-card--flunky .bsjc-arch-match-score-ring {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.bsjc-arch-match-score-ring-denom {
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.9;
}

.bsjc-arch-match-copy {
  min-width: 0;
}

.bsjc-arch-match-title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 950;
  color: var(--bsjc-navy);
  line-height: 1.15;
}

.bsjc-arch-match-title-emoji {
  margin-right: 2px;
}

.bsjc-arch-match-card--goon .bsjc-arch-match-title {
  color: #991b1b;
}

.bsjc-arch-match-score {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 750;
  color: #64748b;
  line-height: 1.4;
}

.bsjc-arch-match-score strong {
  font-weight: 950;
  color: #7c3aed;
}

.bsjc-arch-match-card--goon .bsjc-arch-match-score strong {
  color: #dc2626;
}

.bsjc-arch-match-body {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.55;
}

.bsjc-arch-match-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.82rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .bsjc-arch-match-inner {
    grid-template-columns: 1fr;
  }

  .bsjc-arch-match-media {
    max-width: 280px;
    margin: 0 auto;
  }
}

.bsjc-card--results {
  border: 2px solid rgba(180, 83, 9, 0.22);
  border-left: 5px solid var(--bsjc-bull);
  background: linear-gradient(165deg, #fffbeb 0%, #fff 45%);
  box-shadow: 0 8px 28px rgba(180, 83, 9, 0.08);
}

.bsjc-results-host {
  min-height: 80px;
}

.bsjc-headline-answer {
  margin-bottom: 18px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 2px solid rgba(8, 49, 65, 0.18);
  background: linear-gradient(135deg, #f8fafc 0%, #fff 70%);
  text-align: center;
}

.bsjc-headline-question {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--bsjc-muted);
}

.bsjc-headline-pct-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 8px;
}

.bsjc-headline-emoji {
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1;
}

.bsjc-headline-answer--high {
  border-color: rgba(185, 28, 28, 0.35);
  background: linear-gradient(135deg, #fef2f2 0%, #fff 65%);
}

.bsjc-headline-answer--mid,
.bsjc-headline-answer--some {
  border-color: rgba(180, 83, 9, 0.35);
  background: linear-gradient(135deg, #fff7ed 0%, #fff 65%);
}

.bsjc-headline-answer--none,
.bsjc-headline-answer--low {
  border-color: rgba(14, 116, 144, 0.28);
}

.bsjc-headline-pct {
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 950;
  line-height: 1;
  color: var(--bsjc-bull);
  font-variant-numeric: tabular-nums;
}

.bsjc-headline-pct-suffix {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 950;
  color: var(--bsjc-bull);
}

.bsjc-headline-pct-caption {
  flex: 1 1 100%;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bsjc-navy);
  line-height: 1.45;
}

.bsjc-headline-equiv {
  margin: 14px 0 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.55;
}

.bsjc-headline-blend {
  margin: 10px 0 0;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--bsjc-muted);
  line-height: 1.5;
}

.bsjc-visual-panel {
  margin-bottom: 14px;
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(8, 49, 65, 0.12);
  background: #fff;
  text-align: center;
}

.bsjc-visual-panel--high {
  border-color: rgba(185, 28, 28, 0.25);
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

.bsjc-visual-panel--mid,
.bsjc-visual-panel--some {
  border-color: rgba(180, 83, 9, 0.28);
  background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
}

.bsjc-visual-panel--low,
.bsjc-visual-panel--none {
  border-color: rgba(14, 116, 144, 0.22);
  background: linear-gradient(135deg, #fff 0%, #ecfeff 100%);
}

.bsjc-visual-caption {
  display: inline-block;
  margin: 8px 0 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #57534e;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.bsjc-visual-panel--high .bsjc-visual-caption {
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.9);
}

.bsjc-visual-panel--mid .bsjc-visual-caption,
.bsjc-visual-panel--some .bsjc-visual-caption {
  color: #9a3412;
  border-color: rgba(180, 83, 9, 0.18);
  background: rgba(255, 247, 237, 0.9);
}

.bsjc-visual-panel--low .bsjc-visual-caption,
.bsjc-visual-panel--none .bsjc-visual-caption {
  color: #0e7490;
  border-color: rgba(14, 116, 144, 0.18);
  background: rgba(236, 254, 255, 0.9);
}

.bsjc-waste-card {
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 2px solid rgba(120, 53, 15, 0.35);
  background: linear-gradient(165deg, #fff7ed 0%, #fef2f2 100%);
}

.bsjc-waste-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 950;
  color: #7c2d12;
}

.bsjc-waste-lead {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #44403c;
  line-height: 1.55;
}

.bsjc-waste-stats {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 520px) {
  .bsjc-waste-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bsjc-waste-stats li {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(120, 53, 15, 0.2);
}

.bsjc-waste-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #78716c;
  margin-bottom: 4px;
}

.bsjc-waste-stat-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 950;
  color: #7c2d12;
}

.bsjc-pay-trap {
  border-radius: 12px;
  border: 1px dashed rgba(185, 28, 28, 0.45);
  background: #fff;
}

.bsjc-pay-trap-summary {
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 850;
  color: #991b1b;
  cursor: pointer;
  list-style: none;
}

.bsjc-pay-trap-summary::-webkit-details-marker {
  display: none;
}

.bsjc-pay-trap-body {
  padding: 0 14px 14px;
  font-size: 0.86rem;
  font-weight: 650;
  color: #57534e;
  line-height: 1.55;
}

.bsjc-pay-trap-body p {
  margin: 0;
}

.bsjc-worth-card {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid rgba(14, 116, 144, 0.25);
  background: linear-gradient(135deg, #ecfeff 0%, #fff 70%);
}

.bsjc-worth-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 950;
  color: #0e7490;
}

.bsjc-worth-body {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.55;
}

.bsjc-purpose-section {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-radius: 18px;
  border: 2px solid rgba(14, 116, 144, 0.24);
  background: linear-gradient(165deg, #ecfdf5 0%, #fff 50%, #f0fdfa 100%);
  box-shadow: 0 10px 28px rgba(14, 116, 144, 0.08);
}

.bsjc-purpose-section--goon {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(165deg, #fff1f2 0%, #fff 52%, #f0fdf4 100%);
  box-shadow: 0 10px 28px rgba(185, 28, 28, 0.07);
}

.bsjc-purpose-section--flunky {
  border-color: rgba(124, 58, 237, 0.22);
  background: linear-gradient(165deg, #faf5ff 0%, #fff 52%, #f0fdf4 100%);
}

.bsjc-purpose-section--duct {
  border-color: rgba(234, 88, 12, 0.22);
  background: linear-gradient(165deg, #fff7ed 0%, #fff 52%, #f0fdf4 100%);
}

.bsjc-purpose-section--box {
  border-color: rgba(2, 132, 199, 0.22);
  background: linear-gradient(165deg, #f0f9ff 0%, #fff 52%, #f0fdf4 100%);
}

.bsjc-purpose-section--task {
  border-color: rgba(8, 49, 65, 0.2);
  background: linear-gradient(165deg, #f8fafc 0%, #fff 52%, #f0fdf4 100%);
}

.bsjc-purpose-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.bsjc-purpose-heading {
  margin: 0;
  font-size: clamp(1.1rem, 2.8vw, 1.28rem);
  font-weight: 950;
  color: var(--bsjc-navy);
  line-height: 1.2;
}

.bsjc-purpose-chip {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(14, 116, 144, 0.25);
  white-space: nowrap;
}

.bsjc-purpose-section--goon .bsjc-purpose-chip {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.28);
}

.bsjc-purpose-chip-emoji {
  margin-right: 2px;
}

.bsjc-purpose-intro {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.55;
}

.bsjc-purpose-block {
  margin-bottom: 16px;
}

.bsjc-purpose-block--extra {
  margin-bottom: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.bsjc-purpose-block-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0e7490;
}

.bsjc-purpose-section--goon .bsjc-purpose-block-label {
  color: #b91c1c;
}

.bsjc-purpose-block--extra .bsjc-purpose-block-label {
  color: #64748b;
}

.bsjc-purpose-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .bsjc-purpose-grid--primary {
    grid-template-columns: repeat(3, 1fr);
  }

  .bsjc-purpose-grid--extra {
    grid-template-columns: 1fr 1fr;
  }
}

.bsjc-purpose-card {
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  background: #fff;
  border-left: 4px solid var(--bsjc-meaning);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  height: 100%;
  box-sizing: border-box;
}

.bsjc-purpose-card--primary {
  border-left-width: 5px;
}

.bsjc-purpose-section--goon .bsjc-purpose-card--primary {
  border-left-color: #dc2626;
}

.bsjc-purpose-section--flunky .bsjc-purpose-card--primary {
  border-left-color: #7c3aed;
}

.bsjc-purpose-section--duct .bsjc-purpose-card--primary {
  border-left-color: #ea580c;
}

.bsjc-purpose-section--box .bsjc-purpose-card--primary {
  border-left-color: #0284c7;
}

.bsjc-purpose-section--task .bsjc-purpose-card--primary {
  border-left-color: #083141;
}

.bsjc-purpose-card--extra {
  border-left-color: #94a3b8;
  background: #fafafa;
  box-shadow: none;
}

.bsjc-purpose-emoji {
  display: block;
  font-size: 1.85rem;
  margin-bottom: 10px;
  line-height: 1;
}

.bsjc-purpose-card-title {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 950;
  color: var(--bsjc-navy);
  line-height: 1.25;
}

.bsjc-purpose-card-blurb {
  margin: 0 0 8px;
  font-size: 0.86rem;
  font-weight: 650;
  color: #475569;
  line-height: 1.5;
}

.bsjc-purpose-card-why {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.78rem;
  font-weight: 700;
  color: #0e7490;
  line-height: 1.45;
  font-style: italic;
}

.bsjc-purpose-section--goon .bsjc-purpose-card-why {
  color: #b45309;
}

.bsjc-purpose-disclaimer {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.bsjc-visual-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  min-height: 0;
  max-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bsjc-visual-emoji-hero {
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1;
  padding: 12px;
  z-index: 0;
}

.bsjc-visual-img {
  position: relative;
  z-index: 1;
}

.bsjc-visual-panel .bsjc-visual-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  margin: 0 auto;
}

.bsjc-visual-fallback {
  padding: 32px 20px;
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 950;
  text-align: center;
  color: var(--bsjc-navy);
}

.bsjc-takeaways {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px dashed rgba(8, 49, 65, 0.2);
  background: #fafafa;
}

.bsjc-takeaways-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 950;
  color: var(--bsjc-navy);
}

.bsjc-takeaways-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.55;
}

.bsjc-takeaways-list li {
  margin-bottom: 8px;
}

.bsjc-takeaways-legal {
  margin: 12px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a3412;
}

.bsjc-arch-bars {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.bsjc-arch-bars-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 950;
  color: var(--bsjc-navy);
}

.bsjc-arch-bars-list {
  display: grid;
  gap: 14px;
}

.bsjc-arch-bar-row--dominant {
  padding: 10px 12px;
  margin: -10px -12px 0;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.bsjc-arch-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.bsjc-arch-bar-label {
  font-size: 0.88rem;
  font-weight: 850;
  color: var(--bsjc-navy);
}

.bsjc-arch-bar-score {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--bsjc-bull);
  font-variant-numeric: tabular-nums;
}

.bsjc-arch-bar-track {
  height: 12px;
  border-radius: 6px;
  background: #e2e8f0;
  overflow: hidden;
}

.bsjc-arch-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  transition: width 0.35s ease;
}

.bsjc-arch-bar-row--dominant .bsjc-arch-bar-fill {
  background: linear-gradient(90deg, #c2410c, #ea580c);
}

.bsjc-arch-bar-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.4;
}

.bsjc-results-heading {
  margin-top: 0;
}

.bsjc-spotlight {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 2px solid rgba(180, 83, 9, 0.28);
  background: linear-gradient(135deg, #fff7ed 0%, #fff 55%);
}

.bsjc-spotlight-badge {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bsjc-bull);
  margin-bottom: 8px;
}

.bsjc-spotlight-title {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 950;
  color: var(--bsjc-navy);
}

.bsjc-spotlight-body {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.55;
}

.bsjc-spotlight-legal {
  color: #9a3412;
}

.bsjc-split-panel {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(8, 49, 65, 0.14);
  background: #f8fafc;
}

.bsjc-split-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 950;
  color: var(--bsjc-navy);
}

.bsjc-split-bar {
  display: flex;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(8, 49, 65, 0.15);
}

.bsjc-split-bar__meaningful {
  background: linear-gradient(90deg, #0e7490, #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.bsjc-split-bar__bull {
  background: linear-gradient(90deg, #d97706, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.bsjc-split-bar__label {
  font-size: 0.68rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bsjc-split-note {
  margin: 10px 0 0;
  font-size: 0.84rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
}

.bsjc-metric-section {
  margin-top: 8px;
  padding: 18px 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(8, 49, 65, 0.12);
  background: #fff;
}

.bsjc-metric-section-head {
  margin-bottom: 14px;
}

.bsjc-metric-section-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.bsjc-metric-section-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 950;
  color: var(--bsjc-navy);
}

.bsjc-metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .bsjc-metric-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bsjc-metric-tile {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-top: 3px solid rgba(8, 49, 65, 0.2);
}

.bsjc-metric-tile--lead {
  grid-column: 1 / -1;
  border-top-color: var(--bsjc-navy);
  background: linear-gradient(135deg, #f8fafc 0%, #fff 60%);
}

.bsjc-metric-tile--arch {
  border-top-color: #7c3aed;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 55%);
}

.bsjc-metric-tile--bull {
  border-top-color: #92400e;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 50%);
}

.bsjc-metric-tile--good {
  border-top-color: #0e7490;
  background: linear-gradient(180deg, #ecfeff 0%, #fff 50%);
}

.bsjc-metric-tile-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
}

.bsjc-metric-tile-value {
  display: block;
  font-size: clamp(1.05rem, 2.8vw, 1.28rem);
  font-weight: 950;
  color: var(--bsjc-navy);
  font-variant-numeric: tabular-nums;
}

.bsjc-metric-tile-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.4;
}

.bsjc-archetype-table-section {
  margin-top: 28px;
  padding-top: 4px;
}

.bsjc-archetype-table-section .bsjc-h3 {
  margin: 0 0 14px;
}

.bsjc-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.bsjc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.bsjc-table th,
.bsjc-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.bsjc-table thead th {
  background: #f1f5f9;
  font-weight: 850;
  color: var(--bsjc-navy);
}

.bsjc-table-row--dominant {
  background: #fff7ed;
}

.bsjc-table-row--dominant th {
  font-weight: 950;
  color: #9a3412;
}

.bsjc-table-arch-name {
  display: block;
  font-weight: inherit;
}

.bsjc-table-arch-hint {
  display: none;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .bsjc-table .bsjc-table-col-sketch {
    display: none;
  }

  .bsjc-table-arch-hint {
    display: block;
  }
}

.bsjc-warning {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid rgba(217, 119, 6, 0.4);
  background: #fffbeb;
  color: #92400e;
  font-weight: 700;
  font-size: 0.9rem;
}

.bsjc-results-error {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid rgba(185, 28, 28, 0.45);
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.9rem;
  font-weight: 700;
}

.bsjc-results-error-detail {
  margin: 8px 0 0;
  font-size: 0.8rem;
  font-weight: 650;
  word-break: break-word;
}

.bsjc-export {
  margin-top: 22px;
  padding: 0;
  border-radius: 18px;
  border: 2px solid rgba(8, 49, 65, 0.14);
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 42%, #f8fafc 100%);
  box-shadow: 0 12px 32px rgba(8, 49, 65, 0.08);
  overflow: hidden;
}

.bsjc-export-inner {
  display: grid;
  gap: 18px 22px;
  padding: 22px 22px 20px;
  border-left: 5px solid var(--bsjc-navy);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 720px) {
  .bsjc-export-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 24px 26px;
  }
}

.bsjc-export-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  color: var(--bsjc-navy);
  background: linear-gradient(145deg, #fff 0%, #e0f2fe 100%);
  border: 2px solid rgba(8, 49, 65, 0.12);
  box-shadow: 0 4px 12px rgba(8, 49, 65, 0.08);
}

.bsjc-export-copy {
  min-width: 0;
  text-align: left;
}

.bsjc-export-title {
  margin: 0 0 6px;
  font-size: clamp(1.12rem, 2.6vw, 1.28rem);
  font-weight: 950;
  color: var(--bsjc-navy);
  line-height: 1.2;
}

.bsjc-export-lead {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #475569;
  line-height: 1.55;
  max-width: 40rem;
}

.bsjc-export-includes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px 16px;
}

@media (min-width: 520px) {
  .bsjc-export-includes {
    grid-template-columns: 1fr 1fr;
  }
}

.bsjc-export-includes li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.4;
}

.bsjc-export-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bsjc-meaning);
  box-shadow: 0 0 0 2px rgba(14, 116, 144, 0.2);
}

.bsjc-export-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: center;
}

@media (min-width: 720px) {
  .bsjc-export-action {
    align-items: flex-end;
    text-align: right;
    min-width: 200px;
  }
}

.bsjc-export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 15px 22px;
  font-size: 1rem;
  font-weight: 900;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(165deg, #0e5a75 0%, var(--bsjc-navy) 55%, #062a38 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(8, 49, 65, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

@media (min-width: 720px) {
  .bsjc-export-btn {
    width: auto;
    min-width: 200px;
  }
}

.bsjc-export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(8, 49, 65, 0.34);
  background: linear-gradient(165deg, #10607d 0%, #0a4558 55%, #083141 100%);
}

.bsjc-export-btn:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

.bsjc-export-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(8, 49, 65, 0.22);
}

.bsjc-export-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
}

.bsjc-export-hint {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.35;
}

.bsjc-methodology-details {
  margin-top: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.bsjc-methodology-summary {
  padding: 14px 18px;
  font-weight: 850;
  color: var(--bsjc-navy);
  cursor: pointer;
  background: #f8fafc;
}

.bsjc-methodology-body {
  padding: 0 18px 16px;
}

.bsjc-methodology-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.55;
}

.bsjc-methodology-list li {
  margin-bottom: 8px;
}

.bsjc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bsjc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.bsjc-modal {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.25);
}

.bsjc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.bsjc-modal-header h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 950;
  color: var(--bsjc-navy);
}

.bsjc-modal-header-sub {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
}

.bsjc-modal-close {
  border: none;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #334155;
}

.bsjc-modal-body {
  padding: 16px 20px;
}

.bsjc-modal-lead {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
}

.bsjc-modal-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--bsjc-navy);
}

.bsjc-modal-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 2px solid rgba(8, 49, 65, 0.2);
  border-radius: 10px;
  box-sizing: border-box;
  font-size: max(16px, 1rem);
}

.bsjc-modal-error {
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 700;
}

.bsjc-modal-success {
  margin: 0;
  font-weight: 750;
  color: #0f766e;
}

.bsjc-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 20px 20px;
  border-top: 1px solid #e2e8f0;
}

.bsjc-modal-submit {
  padding: 12px 20px;
  font-weight: 850;
  color: #fff;
  background: var(--bsjc-navy);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.bsjc-modal-secondary {
  padding: 12px 20px;
  font-weight: 800;
  background: #fff;
  border: 2px solid rgba(8, 49, 65, 0.2);
  border-radius: 10px;
  cursor: pointer;
  color: var(--bsjc-navy);
}

@media (max-width: 520px) {
  #bsjc-root.bsjc-app,
  .bsjc-root.bsjc-app {
    padding: 0 10px;
  }

  .bsjc-shell {
    padding: 16px 12px 22px;
    border-radius: 16px;
  }

  .bsjc-hero {
    padding: 16px;
  }

  .bsjc-split-bar__label {
    font-size: 0.6rem;
  }

  .bsjc-arch-live-compact {
    flex-direction: column;
    align-items: flex-start;
  }

  .bsjc-arch-live-compact-hint {
    margin-left: 0;
  }

  .bsjc-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .bsjc-modal-submit,
  .bsjc-modal-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsjc-export-btn,
  .bsjc-modal-submit,
  .bsjc-arch-bar-fill,
  .bsjc-archetype-live .bsjc-arch-match-card {
    transition: none;
    animation: none;
  }

  .bsjc-export-btn:hover {
    transform: none;
  }
}
