/* ==========================================================================
   CAREER CLINIC — RESUME & PROFILE DIAGNOSTIC
   Theme: IIM Executive Education & Management Consulting
   Palette: Forest Green (#073D32), Champagne Gold (#D4AF7C), Ivory White (#F8F6EF)
   Typography: Montserrat
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --color-bg-deep: #05261F;
  --color-bg-primary: #073D32;
  --color-bg-surface: #0A493D;
  --color-bg-card: #0D5245;
  --color-bg-card-hover: #105E50;
  --color-bg-card-alt: #09372D;

  --color-gold-primary: #D4AF7C;
  --color-gold-light: #F1DEC3;
  --color-gold-dark: #A37F4B;
  --color-gold-glow: rgba(212, 175, 124, 0.25);
  --color-gold-subtle: rgba(212, 175, 124, 0.12);

  --color-text-primary: #F8F6EF;
  --color-text-secondary: #D2D5CA;
  --color-text-muted: #95A199;

  --color-border-subtle: rgba(212, 175, 124, 0.18);
  --color-border-strong: rgba(212, 175, 124, 0.45);

  --color-strong: #2BB673;
  --color-moderate: #E6A23C;
  --color-needs-work: #E75D5D;

  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 0 20px rgba(212, 175, 124, 0.2);

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg-deep);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #0C4E40 0%, var(--color-bg-primary) 45%, var(--color-bg-deep) 100%);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

img, svg {
  max-width: 100%;
  height: auto;
}

input, select, textarea, button {
  box-sizing: border-box;
  max-width: 100%;
}

/* --- Typography Defaults --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* --- Site Header --- */
.site-header {
  background: rgba(7, 61, 50, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1520px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  box-sizing: border-box;
}

.header-brand-group,
.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-anchor {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.logo-anchor:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.logo-fallback {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #09372D 0%, #05261F 100%);
  border: 1px solid var(--color-gold-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.mcc-monogram {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-gold-primary);
  letter-spacing: 1.5px;
}

.header-brand-text,
.header-center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.program-title {
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 800;
  color: #F5EAD4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.program-sep {
  color: #D4AF7C;
  font-size: 13px;
  opacity: 0.8;
  margin: 0 1px;
}

.program-tagline {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  color: #E2D7C3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-badge {
  display: flex;
  align-items: center;
}

.badge-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-gold-primary);
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-border-strong);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Main Layout --- */
.main-content {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* --- Hero Section --- */
.hero-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(13, 82, 69, 0.7) 0%, rgba(7, 61, 50, 0.85) 100%);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(212, 175, 124, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-gold-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 14.5px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card {
  background: rgba(5, 38, 31, 0.75);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold-primary);
}

.stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-gold-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Error Alert Banner --- */
.error-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #3B1616;
  border: 1px solid #E75D5D;
  border-left: 5px solid #E75D5D;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #F8E2E2;
  box-shadow: var(--shadow-sm);
}

.error-icon {
  font-size: 22px;
  color: #E75D5D;
  line-height: 1;
}

.error-content {
  flex: 1;
}

.error-title {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #FFB3B3;
}

.error-message {
  font-size: 13.5px;
  line-height: 1.5;
  color: #F8E2E2;
}

.error-close-btn {
  background: none;
  border: none;
  color: #F8E2E2;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  opacity: 0.75;
}

.error-close-btn:hover {
  opacity: 1;
}

/* --- Diagnostic Input Panel --- */
.diagnostic-input-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.panel-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 16px;
}

.panel-step {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-gold-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.panel-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.panel-subtext {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.privacy-box-top {
  background: rgba(5, 38, 31, 0.7);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

/* --- Dual Intake Grid (Resume vs JD) --- */
.dual-intake-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 20px;
}

.intake-card {
  background: #08372C;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.intake-card:focus-within {
  border-color: var(--color-gold-primary);
}

.intake-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.intake-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-gold-primary);
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-gold-primary);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-jd {
  color: #79F3B6;
  background: rgba(43, 182, 115, 0.15);
  border-color: rgba(43, 182, 115, 0.4);
}

.intake-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.intake-desc {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* --- Mini Intake Tabs --- */
.mini-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  overflow-x: auto;
}

.mini-tab {
  background: transparent;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  color: var(--color-text-muted);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.mini-tab:hover {
  color: var(--color-text-primary);
  border-color: var(--color-gold-primary);
}

.mini-tab.active {
  background: var(--color-gold-subtle);
  border-color: var(--color-gold-primary);
  color: var(--color-gold-light);
}

/* --- URL Input Bar --- */
.url-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
}

.url-input-row {
  display: flex;
  gap: 8px;
}

.form-input-text {
  flex: 1;
  padding: 12px 14px;
  background: #062F26;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input-text:focus {
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 0 2px var(--color-gold-glow);
}

.btn-fetch {
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-gold-primary);
  border-radius: var(--radius-md);
  color: var(--color-gold-light);
  font-family: var(--font-family);
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-fetch:hover {
  background: var(--color-gold-primary);
  color: #05261F;
}

.url-status-note {
  font-size: 11.5px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.url-status-note.success {
  color: #79F3B6;
}

.url-status-note.warning {
  color: #F8D18C;
}

.role-dropdown-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.action-footer-centered {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.btn-large {
  padding: 16px 40px;
  font-size: 15px;
}

/* --- Form Shared Styles --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.required-star {
  color: var(--color-gold-primary);
}

.select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  background-color: #062F26;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23D4AF7C%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-select:focus {
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 0 3px var(--color-gold-glow);
}

.field-hint {
  font-size: 12px;
  color: var(--color-text-muted);
}

.privacy-box {
  background: rgba(5, 38, 31, 0.7);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.privacy-icon {
  font-size: 24px;
  color: var(--color-gold-primary);
  line-height: 1;
}

.privacy-text {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.privacy-text strong {
  color: var(--color-gold-light);
}

/* --- Dropzone --- */
.dropzone {
  border: 2px dashed rgba(212, 175, 124, 0.4);
  border-radius: var(--radius-lg);
  background: #062F26;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.dropzone-jd {
  border-color: rgba(121, 243, 182, 0.35);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--color-gold-primary);
  background: #08372C;
  box-shadow: var(--shadow-gold);
}

.dropzone-jd:hover,
.dropzone-jd.dragover {
  border-color: #79F3B6;
  box-shadow: 0 0 20px rgba(121, 243, 182, 0.2);
}

.circle-jd {
  color: #79F3B6;
  border-color: #79F3B6;
  background: rgba(43, 182, 115, 0.15);
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-primary);
}

.dropzone-prompt {
  font-size: 15px;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.browse-link {
  color: var(--color-gold-primary);
  text-decoration: underline;
  font-weight: 600;
}

.dropzone-specs {
  font-size: 12.5px;
  color: var(--color-text-muted);
}

/* --- Selected File Box --- */
.file-info-box {
  margin-top: 14px;
  background: #08392F;
  border: 1px solid var(--color-gold-primary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.file-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-badge-icon {
  font-size: 22px;
}

.file-details {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.file-size {
  font-size: 11.5px;
  color: var(--color-text-muted);
}

.file-remove-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.file-remove-btn:hover {
  color: #FF7B7B;
}

/* --- Paste Textarea Fallback --- */
.paste-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resume-textarea {
  width: 100%;
  background: #062F26;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 13.5px;
  line-height: 1.6;
  padding: 16px;
  resize: vertical;
  min-height: 200px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.resume-textarea:focus {
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 0 3px var(--color-gold-glow);
}

.textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.word-counter {
  font-size: 12px;
  color: var(--color-text-muted);
}

.sample-load-btn {
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-gold-primary);
  border-radius: var(--radius-pill);
  color: var(--color-gold-light);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sample-load-btn:hover {
  background: var(--color-gold-primary);
  color: #072D24;
}

/* --- Action Buttons --- */
.action-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  background: linear-gradient(135deg, #E6C697 0%, var(--color-gold-primary) 50%, var(--color-gold-dark) 100%);
  color: #05261F;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-family: var(--font-family);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(212, 175, 124, 0.35);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 124, 0.5);
}

.btn-secondary {
  background: #0B4438;
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold-primary);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--color-gold-primary);
  color: #05261F;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

/* --- Loading Overlay --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 38, 31, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.loading-card {
  background: #0A493D;
  border: 1px solid var(--color-gold-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(212, 175, 124, 0.2);
  border-top-color: var(--color-gold-primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.loading-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* --- Results Section --- */
.diagnostic-results {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.results-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.results-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-gold-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.results-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.results-meta {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.results-actions {
  display: flex;
  gap: 12px;
}

/* --- Score Cards & Ring --- */
.score-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.card-kicker {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-gold-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.score-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
}

/* Ring Card */
.ring-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ring-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weight-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.ring-display-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  text-align: center;
}

.ring-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin-bottom: 16px;
}

.score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.ring-progress {
  fill: none;
  stroke: var(--color-gold-primary);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ring-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.ring-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1;
}

.ring-denom {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gold-primary);
  margin-left: 2px;
}

.band-badge {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.band-badge.band-strong {
  background: rgba(43, 182, 115, 0.18);
  border: 1px solid var(--color-strong);
  color: #79F3B6;
}

.band-badge.band-moderate {
  background: rgba(230, 162, 60, 0.18);
  border: 1px solid var(--color-moderate);
  color: #F8D18C;
}

.band-badge.band-needs-work {
  background: rgba(231, 93, 93, 0.18);
  border: 1px solid var(--color-needs-work);
  color: #FFA3A3;
}

.band-description {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  max-width: 280px;
  line-height: 1.5;
}

.ring-card-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  text-align: center;
}

.ring-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.stat-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-top: 2px;
}

/* --- Breakdown Card & 8 Dimension Bars --- */
.breakdown-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.dim-subtext {
  font-size: 11.5px;
  color: var(--color-text-muted);
}

.dimension-bars-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dim-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dim-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.dim-name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.dim-score-fraction {
  font-weight: 700;
  color: var(--color-gold-light);
}

.dim-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dim-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #A37F4B 0%, var(--color-gold-primary) 100%);
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 1s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.dim-progress-fill.high {
  background: linear-gradient(90deg, #1C7C4D 0%, #2BB673 100%);
}

.dim-progress-fill.low {
  background: linear-gradient(90deg, #8E3030 0%, #E75D5D 100%);
}

/* --- Insights Grid (Strengths & Fixes) --- */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.insight-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.insight-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.insight-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.strength-icon {
  background: rgba(43, 182, 115, 0.18);
  color: #79F3B6;
  border: 1px solid #2BB673;
}

.fix-icon {
  background: rgba(231, 93, 93, 0.18);
  color: #FFA3A3;
  border: 1px solid #E75D5D;
}

.insight-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.insight-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strength-item {
  background: rgba(7, 45, 36, 0.6);
  border: 1px solid rgba(43, 182, 115, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.strength-bullet {
  color: #79F3B6;
  font-weight: 700;
}

.strength-text {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.strength-text strong {
  color: var(--color-text-primary);
}

.fix-item {
  background: rgba(30, 15, 15, 0.55);
  border: 1px solid rgba(231, 93, 93, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fix-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fix-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #FFA3A3;
  background: rgba(231, 93, 93, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.fix-loss {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.fix-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.fix-advice {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.fix-quote,
.strength-quote {
  font-style: italic;
  color: var(--color-gold-light);
  background: rgba(212, 175, 124, 0.12);
  border: 1px solid rgba(212, 175, 124, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  display: inline;
  word-break: break-word;
}

/* --- Keywords Diagnostics Card --- */
.keywords-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.keywords-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.keywords-subtitle {
  font-size: 12.5px;
  color: var(--color-text-muted);
  max-width: 720px;
  margin-top: 3px;
}

.keyword-match-stat {
  text-align: right;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
}

.stat-highlight {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gold-primary);
  display: block;
  line-height: 1;
}

.stat-caption {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.keyword-chips-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.chips-group-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold-light);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kw-chip {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kw-chip.detected {
  background: rgba(43, 182, 115, 0.15);
  color: #A3F3C9;
  border: 1px solid rgba(43, 182, 115, 0.4);
}

.kw-chip.missing {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

/* --- Sample Bullet Rewrites Card --- */
.rewrites-header {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.rewrites-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.rewrites-subtitle {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.rewrites-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rewrite-card-item {
  background: #08372C;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rewrite-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rewrite-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
}

.tag-before {
  background: rgba(231, 93, 93, 0.15);
  color: #FFA3A3;
}

.tag-after {
  background: var(--color-gold-subtle);
  color: var(--color-gold-light);
  border: 1px solid rgba(212, 175, 124, 0.3);
}

.bullet-before-text {
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
  padding-left: 6px;
  border-left: 2px solid rgba(231, 93, 93, 0.4);
}

.bullet-after-text {
  font-size: 13.5px;
  color: var(--color-text-primary);
  font-weight: 500;
  padding-left: 6px;
  border-left: 2px solid var(--color-gold-primary);
  line-height: 1.5;
}

.highlight-placeholder {
  color: var(--color-gold-light);
  background: rgba(212, 175, 124, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

.rewrite-rationale {
  font-size: 11.5px;
  color: var(--color-gold-light);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 124, 0.2);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin-top: 4px;
  line-height: 1.4;
}

.rewrite-rationale em {
  font-weight: 700;
  color: var(--color-gold-primary);
  font-style: normal;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

/* --- Target Domain Highlight Banner --- */
.target-domain-banner {
  background: linear-gradient(135deg, rgba(13, 82, 69, 0.95) 0%, rgba(7, 61, 50, 0.95) 100%);
  border: 1px solid var(--color-border-strong);
  border-left: 5px solid var(--color-gold-primary);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.td-banner-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.td-badge-icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(212, 175, 124, 0.12);
  border: 1px solid rgba(212, 175, 124, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.td-details {
  display: flex;
  flex-direction: column;
}

.td-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-gold-primary);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.td-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.td-meta {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  margin-top: 3px;
}

.td-tag-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.td-active-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gold-primary);
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-gold-primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(212, 175, 124, 0.15);
}

/* --- Priority Fix Impact Badges (High / Medium / Low) --- */
.fix-impact-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fix-impact-badge.impact-high {
  background: rgba(231, 93, 93, 0.18);
  color: #FF8585;
  border: 1px solid rgba(231, 93, 93, 0.5);
  box-shadow: 0 0 10px rgba(231, 93, 93, 0.15);
}

.fix-impact-badge.impact-medium {
  background: rgba(230, 162, 60, 0.18);
  color: #FFB347;
  border: 1px solid rgba(230, 162, 60, 0.5);
  box-shadow: 0 0 10px rgba(230, 162, 60, 0.15);
}

.fix-impact-badge.impact-low {
  background: rgba(212, 175, 124, 0.16);
  color: var(--color-gold-light);
  border: 1px solid rgba(212, 175, 124, 0.4);
}

/* --- Domain Action Guide: Certifications & Projects --- */
.domain-action-guide {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 124, 0.15);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-column {
  background: rgba(4, 30, 24, 0.5);
  border: 1px solid rgba(212, 175, 124, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.guide-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-gold-subtle);
  border: 1px solid rgba(212, 175, 124, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-gold-light);
}

.guide-subtitle {
  font-size: 11px;
  color: var(--color-text-muted);
  display: block;
  margin-top: 1px;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

.guide-item-bullet {
  color: var(--color-gold-primary);
  font-weight: 700;
  font-size: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* --- Domain Suitability Meter Card --- */
.suitability-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  margin-top: 24px;
}

.suitability-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(212, 175, 124, 0.15);
  padding-bottom: 16px;
}

.suitability-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.suitability-subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 4px;
  max-width: 820px;
  line-height: 1.5;
}

.top-fit-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-gold-light);
  background: rgba(212, 175, 124, 0.14);
  border: 1px solid var(--color-gold-primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.suitability-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.suitability-row {
  background: rgba(4, 30, 24, 0.55);
  border: 1px solid rgba(212, 175, 124, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: all var(--transition-fast);
}

.suitability-row:hover {
  background: rgba(4, 30, 24, 0.8);
  border-color: rgba(212, 175, 124, 0.35);
}

.suitability-row.is-target {
  border-color: var(--color-gold-primary);
  background: rgba(212, 175, 124, 0.08);
  box-shadow: 0 0 14px rgba(212, 175, 124, 0.12);
}

.suitability-row.is-top {
  border-left: 4px solid var(--color-gold-primary);
}

.suitability-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.suitability-name-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.suitability-icon {
  font-size: 18px;
}

.suitability-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.domain-target-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-gold-light);
  background: rgba(212, 175, 124, 0.22);
  border: 1px solid var(--color-gold-primary);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.domain-top-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #2BB673;
  background: rgba(43, 182, 115, 0.15);
  border: 1px solid rgba(43, 182, 115, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.suitability-score-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suitability-tier {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.suitability-tier.tier-strong {
  background: rgba(43, 182, 115, 0.18);
  color: #4ADE80;
  border: 1px solid rgba(43, 182, 115, 0.4);
}

.suitability-tier.tier-moderate {
  background: rgba(230, 162, 60, 0.18);
  color: #FFB347;
  border: 1px solid rgba(230, 162, 60, 0.4);
}

.suitability-tier.tier-developing {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.suitability-pct {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-gold-light);
  min-width: 42px;
  text-align: right;
}

.suitability-bar-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.suitability-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.suitability-bar-fill.fill-strong {
  background: linear-gradient(90deg, #2BB673, #4ADE80);
}

.suitability-bar-fill.fill-moderate {
  background: linear-gradient(90deg, #D4AF7C, #E6A23C);
}

.suitability-bar-fill.fill-developing {
  background: linear-gradient(90deg, #6B7280, #9CA3AF);
}

.suitability-signals {
  font-size: 11.5px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.signal-label {
  color: var(--color-gold-primary);
  font-weight: 600;
}

.signal-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 7px;
  border-radius: 3px;
  color: var(--color-text-primary);
  font-size: 11px;
}

.signal-muted {
  color: var(--color-text-muted);
  font-style: italic;
}

.suitability-recruiter-box {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.55;
}

.suitability-recruiter-box.synergy {
  background: rgba(43, 182, 115, 0.12);
  border: 1px solid rgba(43, 182, 115, 0.35);
  color: #E2E8F0;
}

.suitability-recruiter-box.pivot {
  background: rgba(212, 175, 124, 0.12);
  border: 1px solid rgba(212, 175, 124, 0.35);
  color: #E2E8F0;
}

.suitability-recruiter-box .insight-lead {
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--color-gold-light);
}

.suitability-recruiter-box p {
  color: var(--color-text-secondary);
  margin: 0;
}

.text-center {
  text-align: center;
}

/* --- Disclaimer Banner --- */
.disclaimer-banner {
  background: rgba(10, 48, 40, 0.6);
  border: 1px solid var(--color-border-subtle);
  border-left: 4px solid var(--color-gold-primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.disclaimer-icon {
  font-size: 20px;
  color: var(--color-gold-primary);
  line-height: 1;
}

.disclaimer-text {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.disclaimer-text strong {
  color: var(--color-gold-light);
}

/* --- Results Bottom Actions --- */
.results-bottom-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 12px;
}

/* --- Site Footer --- */
.site-footer {
  background: #031713;
  border-top: 1px solid rgba(212, 175, 124, 0.15);
  padding: 32px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold-primary);
  text-transform: uppercase;
}

.footer-sub {
  font-size: 12.5px;
  color: var(--color-text-muted);
  max-width: 440px;
  margin-top: 4px;
}

.footer-contact {
  font-size: 12px;
  color: var(--color-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact strong {
  color: var(--color-gold-light);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

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

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .keyword-chips-container {
    grid-template-columns: 1fr;
  }

  .dual-intake-grid {
    grid-template-columns: 1fr;
  }

  .input-grid {
    grid-template-columns: 1fr;
  }

  .target-domain-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .domain-action-guide {
    grid-template-columns: 1fr;
  }

  .suitability-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-divider,
  .program-block {
    display: none;
  }
}

/* ==========================================================================
   TARGET JD DOMAIN SELECTION & DYNAMIC BENCHMARK GENERATOR
   ========================================================================== */
.jd-level-pills-container {
  margin-bottom: 12px;
}

.jd-level-label {
  font-size: 11.5px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jd-level-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.jd-level-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-family);
  transition: all var(--transition-fast);
}

.jd-level-pill:hover {
  border-color: var(--color-gold-primary);
  color: var(--color-text-primary);
}

.jd-level-pill.active {
  background: var(--color-gold-subtle);
  border-color: var(--color-gold-primary);
  color: var(--color-gold-light);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(212, 175, 124, 0.15);
}

.jd-cascading-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .jd-cascading-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.jd-cascading-row-full {
  margin-bottom: 10px;
}

/* Unified Searchable Target Company Combobox */
.jd-combobox-wrapper {
  position: relative;
  width: 100%;
}

.jd-combobox-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.jd-combobox-icon {
  position: absolute;
  left: 14px;
  font-size: 13px;
  pointer-events: none;
  opacity: 0.7;
  color: var(--color-gold-primary);
  z-index: 2;
}

.jd-combobox-input {
  width: 100%;
  padding: 12px 68px 12px 38px !important;
  background-color: #062F26 !important;
  border: 1px solid var(--color-border-strong) !important;
  border-radius: var(--radius-md) !important;
  color: var(--color-text-primary) !important;
  font-family: var(--font-family) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.jd-combobox-input:focus {
  border-color: var(--color-gold-primary) !important;
  box-shadow: 0 0 0 3px var(--color-gold-glow) !important;
}

.jd-combobox-input::placeholder {
  font-style: italic !important;
  color: var(--color-text-muted) !important;
  opacity: 0.85;
}

.jd-combobox-clear-btn {
  position: absolute;
  right: 36px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
  z-index: 2;
}

.jd-combobox-clear-btn:hover {
  color: var(--color-gold-primary);
  background: rgba(255, 255, 255, 0.08);
}

.jd-combobox-toggle-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--color-gold-primary);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  z-index: 2;
}

.jd-combobox-toggle-btn:hover {
  opacity: 0.85;
}

.jd-combobox-wrapper.is-open .jd-combobox-toggle-btn svg {
  transform: rotate(180deg);
}

.jd-combobox-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: #04211a;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(212, 175, 124, 0.25);
  z-index: 1000;
  padding: 6px 0;
}

.jd-combobox-menu::-webkit-scrollbar {
  width: 6px;
}
.jd-combobox-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.jd-combobox-menu::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 124, 0.35);
  border-radius: 3px;
}

.jd-combobox-group-header {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-gold-primary);
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.jd-combobox-group-header:first-child {
  border-top: none;
}

.jd-combobox-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-primary);
  transition: background var(--transition-fast), color var(--transition-fast);
  border-left: 3px solid transparent;
}

.jd-combobox-option:hover,
.jd-combobox-option.is-highlighted {
  background: rgba(212, 175, 124, 0.12);
  border-left-color: var(--color-gold-primary);
  color: #fff;
}

.jd-combobox-option.is-selected {
  background: rgba(212, 175, 124, 0.18);
  border-left-color: var(--color-gold-primary);
  color: var(--color-gold-primary);
  font-weight: 600;
}

.jd-combobox-option-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.jd-combobox-option-badge {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.jd-combobox-option.is-other {
  border-bottom: 1px solid rgba(212, 175, 124, 0.2);
  color: var(--color-gold-light);
  font-weight: 600;
  background: rgba(212, 175, 124, 0.06);
}

.jd-combobox-empty {
  padding: 16px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

.jd-combobox-empty-btn {
  margin-top: 8px;
  display: inline-block;
  padding: 5px 12px;
  font-size: 11.5px;
  background: rgba(212, 175, 124, 0.15);
  border: 1px solid var(--color-gold-primary);
  color: var(--color-gold-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.jd-combobox-empty-btn:hover {
  background: rgba(212, 175, 124, 0.28);
}

.jd-other-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(212, 175, 124, 0.05);
  border: 1px dashed var(--color-border-subtle);
  border-radius: var(--radius-sm);
}

@media (max-width: 640px) {
  .jd-other-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.jd-select-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(212, 175, 124, 0.15);
  color: var(--color-gold-light);
  margin-left: 6px;
  font-weight: 600;
}

/* Role Pills (matching Forest Green & Gold institutional styling) */
.jd-role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.jd-role-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--color-border-strong);
  background: rgba(6, 47, 38, 0.75);
  color: var(--color-gold-light);
  font-family: var(--font-family);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.jd-role-pill:hover {
  background: rgba(212, 175, 124, 0.18);
  border-color: var(--color-gold-primary);
  color: #fff;
  transform: translateY(-1px);
}

.jd-role-pill.active {
  background: var(--color-gold-primary);
  border-color: var(--color-gold-light);
  color: #031c16;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(212, 175, 124, 0.4);
}

.btn-link-action {
  background: transparent;
  border: none;
  color: var(--color-gold-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.btn-link-action:hover {
  color: var(--color-gold-light);
}

/* Benchmark Snapshot Card */
.jd-benchmark-card {
  background: linear-gradient(135deg, rgba(6, 47, 38, 0.95) 0%, rgba(3, 26, 21, 0.95) 100%);
  border: 1px solid var(--color-border-strong);
  border-left: 3px solid var(--color-gold-primary);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 10px 0 14px 0;
  transition: all var(--transition-normal);
  box-sizing: border-box;
  max-width: 100%;
}

.jd-benchmark-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.jd-benchmark-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jd-benchmark-role-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-gold-light);
}

.jd-benchmark-path {
  font-size: 11px;
  color: var(--color-text-muted);
}

.jd-badges-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.jd-status-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.jd-status-badge.status-v {
  background: rgba(46, 213, 115, 0.15);
  border: 1px solid rgba(46, 213, 115, 0.4);
  color: #79F3B6;
}

.jd-status-badge.status-p {
  background: rgba(212, 175, 124, 0.15);
  border: 1px solid rgba(212, 175, 124, 0.4);
  color: #E6C697;
}

.jd-status-badge.status-a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #CCC;
}

.jd-id-badge {
  font-family: monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-gold-light);
  border: 1px solid rgba(212, 175, 124, 0.2);
}

.jd-benchmark-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.jd-meta-chip {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.jd-benchmark-summary {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin: 6px 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jd-reg-callout {
  background: rgba(212, 175, 124, 0.12);
  border: 1px solid rgba(212, 175, 124, 0.35);
  border-radius: 4px;
  padding: 6px 10px;
  margin: 6px 0;
  font-size: 11px;
  color: #F8D18C;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  box-sizing: border-box;
  max-width: 100%;
  word-break: break-word;
}

.jd-reg-icon {
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.jd-skills-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  align-items: center;
}

.jd-skills-label {
  font-size: 10.5px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-right: 2px;
}

.jd-skill-tag {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(212, 175, 124, 0.08);
  border: 1px solid rgba(212, 175, 124, 0.2);
  color: var(--color-text-secondary);
}

/* Consolidated Sub-areas Container */
.jd-subareas-container {
  margin: 6px 0 8px 0;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  border: 1px dashed rgba(212, 175, 124, 0.22);
}

.jd-subareas-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-gold-light);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.jd-subareas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.jd-subarea-chip {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(212, 175, 124, 0.09);
  color: #E6C697;
  border: 1px solid rgba(212, 175, 124, 0.25);
  font-weight: 500;
}

.textarea-pulse {
  animation: glowGoldBorder 0.8s ease;
}

@keyframes glowGoldBorder {
  0% {
    border-color: var(--color-border-subtle);
    box-shadow: none;
  }

  50% {
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 14px rgba(212, 175, 124, 0.4);
  }

  100% {
    border-color: var(--color-border-subtle);
    box-shadow: none;
  }
}

/* Generator Button Animation / Feedback */
.sample-load-btn.pulse-active {
  animation: pulseGold 0.6s ease;
}

@keyframes pulseGold {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 124, 0.7);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 0 12px 3px rgba(212, 175, 124, 0.5);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 124, 0);
  }
}

.jd-toast-pill {
  display: inline-block;
  background: #0B4B3D;
  border: 1px solid var(--color-gold-primary);
  color: var(--color-gold-light);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-right: 8px;
  opacity: 0;
  transform: translateY(2px);
  transition: all 0.25s ease;
}

.jd-toast-pill.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PRINT STYLESHEET (@media print)
   Executive Evaluation Memo: Crisp White Paper, Dark Green & Gold Accents
   ========================================================================== */
@media print {

  /* Reset background and text colors for high-contrast crisp physical printing */
  html,
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 12pt;
    line-height: 1.4;
  }

  /* Hide interactive or non-print elements */
  .site-header,
  .dimension-bar,
  .hero-section,
  .diagnostic-input-panel,
  .error-banner,
  .loading-overlay,
  .results-actions,
  .results-bottom-actions,
  .site-footer {
    display: none !important;
  }

  .main-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .diagnostic-results {
    display: block !important;
  }

  /* Print Header Banner */
  .results-top-bar {
    border-bottom: 2pt solid #073D32 !important;
    padding-bottom: 12pt !important;
    margin-bottom: 16pt !important;
  }

  .results-eyebrow {
    color: #8C6A34 !important;
    font-size: 9pt !important;
  }

  .results-title {
    color: #073D32 !important;
    font-size: 20pt !important;
  }

  .results-meta {
    color: #4B5563 !important;
    font-size: 10pt !important;
  }

  /* Score showcase */
  .score-showcase-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 2fr !important;
    gap: 16pt !important;
    margin-bottom: 16pt !important;
    page-break-inside: avoid;
  }

  .score-card {
    background: #FAFAFA !important;
    border: 1pt solid #D1D5DB !important;
    box-shadow: none !important;
    border-radius: 6pt !important;
    padding: 12pt !important;
    page-break-inside: avoid;
  }

  .ring-track {
    stroke: #E5E7EB !important;
  }

  .ring-progress {
    stroke: #A37F4B !important;
  }

  .ring-num {
    color: #073D32 !important;
  }

  .ring-denom {
    color: #A37F4B !important;
  }

  .card-kicker {
    color: #8C6A34 !important;
  }

  .dim-name {
    color: #111827 !important;
  }

  .dim-score-fraction {
    color: #073D32 !important;
  }

  .dim-progress-track {
    background: #E5E7EB !important;
    border: none !important;
  }

  .dim-progress-fill {
    background: #073D32 !important;
  }

  /* Insights */
  .insights-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14pt !important;
    margin-bottom: 16pt !important;
    page-break-inside: avoid;
  }

  .insight-card {
    background: #FFFFFF !important;
    border: 1pt solid #E5E7EB !important;
    box-shadow: none !important;
    padding: 12pt !important;
  }

  .strength-item {
    background: #F0FDF4 !important;
    border: 1pt solid #BBF7D0 !important;
    color: #166534 !important;
  }

  .strength-text {
    color: #166534 !important;
  }

  .strength-text strong {
    color: #14532D !important;
  }

  .fix-item {
    background: #FEF2F2 !important;
    border: 1pt solid #FECACA !important;
  }

  .fix-title {
    color: #991B1B !important;
  }

  .fix-advice {
    color: #374151 !important;
  }

  /* Keywords */
  .keywords-card {
    background: #FFFFFF !important;
    border: 1pt solid #E5E7EB !important;
    margin-bottom: 16pt !important;
    page-break-inside: avoid;
  }

  .keywords-title {
    color: #073D32 !important;
  }

  .kw-chip.detected {
    background: #ECFDF5 !important;
    color: #065F46 !important;
    border: 1pt solid #A7F3D0 !important;
  }

  .kw-chip.missing {
    background: #F9FAFB !important;
    color: #6B7280 !important;
    border: 1pt dashed #D1D5DB !important;
  }

  /* Bullet Rewrites */
  .rewrites-card {
    background: #FFFFFF !important;
    border: 1pt solid #E5E7EB !important;
    margin-bottom: 16pt !important;
    page-break-inside: avoid;
  }

  .rewrites-title {
    color: #073D32 !important;
  }

  .rewrite-card-item {
    background: #FAFAFA !important;
    border: 1pt solid #E5E7EB !important;
  }

  .bullet-before-text {
    color: #6B7280 !important;
  }

  .bullet-after-text {
    color: #111827 !important;
    border-left-color: #073D32 !important;
  }

  .highlight-placeholder {
    background: #FEF3C7 !important;
    color: #92400E !important;
  }

  /* Target Domain Highlight, Action Guide & Domain Suitability Print */
  .target-domain-banner {
    background: #F9FAFB !important;
    border: 1pt solid #D1D5DB !important;
    border-left: 4pt solid #073D32 !important;
    page-break-inside: avoid;
  }

  .domain-action-guide {
    page-break-inside: avoid;
  }

  .guide-column {
    background: #F9FAFB !important;
    border: 1pt solid #E5E7EB !important;
  }

  .suitability-card {
    background: #FFFFFF !important;
    border: 1pt solid #E5E7EB !important;
    page-break-inside: avoid;
  }

  .suitability-row {
    background: #F9FAFB !important;
    border: 1pt solid #E5E7EB !important;
  }

  .suitability-row.is-target {
    border: 1.5pt solid #073D32 !important;
  }

  .suitability-bar-track {
    background: #E5E7EB !important;
  }

  .suitability-recruiter-box {
    background: #F3F4F6 !important;
    border: 1pt solid #D1D5DB !important;
    color: #111827 !important;
  }

  /* Disclaimer */
  .disclaimer-banner {
    background: #F9FAFB !important;
    border: 1pt solid #D1D5DB !important;
    border-left: 4pt solid #073D32 !important;
    color: #4B5563 !important;
    margin-top: 14pt !important;
    page-break-inside: avoid;
  }

  .disclaimer-text {
    color: #4B5563 !important;
  }

  .disclaimer-text strong {
    color: #111827 !important;
  }
}

/* ==========================================================================
   INSTITUTIONAL AUTHENTICATION GATE & EMAIL WHITELIST GUARD
   ========================================================================== */

.auth-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, #073D32 0%, #05261F 70%, #021713 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.auth-gate-container {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  margin: auto;
}

.auth-gate-card {
  background: linear-gradient(145deg, rgba(10, 73, 61, 0.95) 0%, rgba(7, 61, 50, 0.95) 100%);
  border: 1.5px solid var(--color-gold-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px var(--color-gold-glow);
  padding: 36px 32px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: authFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-gate-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  gap: 18px;
}

.auth-loading-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-gold-light);
  letter-spacing: 0.04em;
}

.auth-gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.auth-gate-logo-img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.footer-brand-logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 12px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-gate-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #09372D 0%, #05261F 100%);
  border: 1.5px solid var(--color-gold-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.auth-gate-brand-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.auth-gate-org {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-gold-primary);
  letter-spacing: 0.08em;
}

.auth-gate-tagline {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.auth-gate-lock-icon {
  font-size: 38px;
  margin-bottom: 12px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 124, 0.3));
}

.auth-gate-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.auth-gate-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.auth-gate-action {
  margin-bottom: 18px;
}

.btn-auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: #FFFFFF;
  color: #1F2937;
  border: 1px solid rgba(212, 175, 124, 0.4);
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-auth-google:hover {
  background: #F9FAFB;
  border-color: var(--color-gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 124, 0.35);
}

.btn-auth-google:active {
  transform: translateY(0);
}

.auth-gate-footer {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Error Card (Access Denied) */
.auth-gate-error-card {
  border-color: #E75D5D;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(231, 93, 93, 0.3);
}

.auth-error-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.auth-error-title {
  font-size: 24px;
  font-weight: 800;
  color: #FF5252;
  margin-bottom: 12px;
}

.auth-error-desc {
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.denied-email-highlight {
  color: #FFD54F;
  word-break: break-all;
  text-decoration: underline;
}

.auth-error-note {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Header Authorized Admin Pill */
.header-user-widget {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 0;
}

.auth-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(4, 34, 27, 0.85);
  border: 1px solid rgba(212, 175, 124, 0.35);
  padding: 4px 12px 4px 6px;
  border-radius: 9999px;
  white-space: nowrap;
}

.auth-admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #5E7A8A;
  border: 1.5px solid rgba(212, 175, 124, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-admin-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-admin-avatar-initials {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.auth-admin-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 1px;
}

.auth-admin-name {
  font-size: 12px;
  font-weight: 700;
  color: #F8F6EF;
  line-height: 1.15;
  white-space: nowrap;
}

.auth-admin-tag {
  font-size: 10px;
  color: var(--color-strong);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.btn-admin-signout {
  background: none;
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #FCA5A5;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-family);
  border-radius: 9999px;
  cursor: pointer;
  margin-left: 4px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-admin-signout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #FFFFFF;
  border-color: #EF4444;
}

/* ==========================================================================
   PORTAL NAVIGATION: Diagnostic Engine vs Assessment Repository vs Access
   ========================================================================== */
.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(3, 30, 24, 0.75);
  padding: 4px 6px;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 124, 0.28);
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Single tab mode: When non-permitted users only have Diagnostic Engine (Repository & Access hidden),
   collapse the outer segmented track completely so the bar size is reduced to strictly just that one diagnostic tab */
.header-nav.single-tab,
.header-nav:not(:has(#navBtnRepository:not([style*="none"]))) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 0 !important;
  width: auto !important;
  max-width: fit-content !important;
}

.header-nav.single-tab .nav-tab.active,
.header-nav:not(:has(#navBtnRepository:not([style*="none"]))) .nav-tab.active {
  cursor: default;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #B9C6BD;
  font-family: var(--font-family);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-tab:hover {
  color: #FFFFFF;
  background: rgba(212, 175, 124, 0.1);
}

.nav-tab.active {
  background: rgba(14, 60, 50, 0.95);
  color: #F8F6EF;
  border: 1px solid rgba(212, 175, 124, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.repo-count-pill {
  display: none !important;
}

/* ==========================================================================
   FIREBASE AUTO-SAVE BANNER IN DIAGNOSTIC RESULTS
   ========================================================================== */
.repo-save-banner {
  display: none !important;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.repo-save-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.repo-save-badge {
  background: rgba(43, 182, 115, 0.2);
  border: 1px solid var(--color-strong);
  color: #5CE0A0;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.repo-save-text {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.btn-repo-link {
  background: rgba(212, 175, 124, 0.15);
  border: 1px solid var(--color-border-strong);
  color: var(--color-gold-light);
  font-family: var(--font-family);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-repo-link:hover {
  background: var(--color-gold-primary);
  color: #05261F;
}

/* ==========================================================================
   ASSESSMENT REPOSITORY SECTION
   ========================================================================== */
.repository-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 10px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.repo-header-block {
  background: linear-gradient(135deg, rgba(13, 82, 69, 0.7) 0%, rgba(7, 61, 50, 0.9) 100%);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.repo-header-block::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(212, 175, 124, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.repo-header-meta {
  flex: 1 1 500px;
}

.repo-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-gold-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.repo-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.repo-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 16px;
}

.repo-security-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-repo-sec {
  background: rgba(5, 38, 31, 0.8);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-gold-light);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.repo-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-self: center;
}

/* Repository KPI Stats Grid */
.repo-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.repo-stat-card {
  background: rgba(10, 73, 61, 0.45);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.repo-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
}

.repo-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-gold-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.repo-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Toolbar: Search and Filters */
.repo-toolbar {
  background: rgba(10, 73, 61, 0.35);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.repo-search-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.repo-search-icon {
  position: absolute;
  left: 14px;
  font-size: 14px;
  color: var(--color-gold-primary);
  pointer-events: none;
}

.repo-search-input {
  width: 100%;
  background: rgba(5, 38, 31, 0.7);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 40px 11px 40px;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
}

.repo-search-input:focus {
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 12px var(--color-gold-glow);
}

.repo-search-clear {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
}

.repo-search-clear:hover {
  color: var(--color-text-primary);
}

.repo-filters-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.repo-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.repo-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.repo-select {
  background: rgba(5, 38, 31, 0.85);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

.repo-select:focus {
  border-color: var(--color-gold-primary);
}

/* Repository Assessment Cards Container */
.repo-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.repo-card {
  background: rgba(13, 82, 69, 0.35);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-fast);
  position: relative;
}

.repo-card:hover {
  border-color: var(--color-border-strong);
  background: rgba(13, 82, 69, 0.55);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.repo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 175, 124, 0.1);
}

.repo-card-evaluator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.repo-eval-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 175, 124, 0.2);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--color-gold-dark);
}

.repo-eval-meta {
  display: flex;
  flex-direction: column;
}

.repo-eval-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.repo-eval-email {
  font-size: 11.5px;
  color: var(--color-text-muted);
}

.repo-card-time {
  font-size: 12px;
  color: var(--color-gold-light);
  background: rgba(212, 175, 124, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.repo-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.repo-card-entities {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 450px;
}

.repo-entity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.repo-entity-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-pdf {
  background: rgba(231, 93, 93, 0.2);
  color: #FFA4A4;
  border: 1px solid rgba(231, 93, 93, 0.4);
}

.badge-docx {
  background: rgba(66, 133, 244, 0.2);
  color: #8AB4F8;
  border: 1px solid rgba(66, 133, 244, 0.4);
}

.badge-text {
  background: rgba(230, 162, 60, 0.2);
  color: #F3CA88;
  border: 1px solid rgba(230, 162, 60, 0.4);
}

.badge-jd {
  background: rgba(212, 175, 124, 0.2);
  color: var(--color-gold-light);
  border: 1px solid var(--color-border-strong);
}

.repo-entity-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.repo-entity-sub {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Score Block in Card */
.repo-card-score-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: rgba(5, 38, 31, 0.6);
  border: 1px solid var(--color-border-subtle);
}

.repo-score-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.score-ready {
  background: rgba(43, 182, 115, 0.15);
  border: 2px solid var(--color-strong);
  color: #5CE0A0;
}

.score-comp {
  background: rgba(212, 175, 124, 0.15);
  border: 2px solid var(--color-gold-primary);
  color: var(--color-gold-light);
}

.score-mod {
  background: rgba(230, 162, 60, 0.15);
  border: 2px solid var(--color-moderate);
  color: #F3CA88;
}

.score-needs {
  background: rgba(231, 93, 93, 0.15);
  border: 2px solid var(--color-needs-work);
  color: #FFA4A4;
}

.repo-score-meta {
  display: flex;
  flex-direction: column;
}

.repo-score-band {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.repo-score-sub {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Tags in Card */
.repo-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.repo-tag-pill {
  font-size: 11px;
  color: var(--color-gold-light);
  background: rgba(212, 175, 124, 0.08);
  border: 1px solid rgba(212, 175, 124, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Actions in Card */
.repo-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 175, 124, 0.1);
}

.btn-repo-action {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-repo-report {
  background: linear-gradient(135deg, rgba(212, 175, 124, 0.25) 0%, rgba(163, 127, 75, 0.2) 100%);
  border: 1px solid var(--color-border-strong);
  color: var(--color-gold-light);
}

.btn-repo-report:hover {
  background: var(--color-gold-primary);
  color: #05261F;
}

.btn-repo-doc {
  background: rgba(5, 38, 31, 0.8);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
}

.btn-repo-doc:hover {
  background: rgba(212, 175, 124, 0.15);
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}

.btn-repo-delete {
  background: none;
  border: 1px solid rgba(231, 93, 93, 0.3);
  color: #FF8A80;
  margin-left: auto;
}

.btn-repo-delete:hover {
  background: rgba(231, 93, 93, 0.2);
  border-color: #FF5252;
}

/* Empty State */
.repo-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: rgba(10, 73, 61, 0.25);
  border: 2px dashed var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.repo-empty-icon {
  font-size: 48px;
  margin-bottom: 14px;
  opacity: 0.8;
}

.repo-empty-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 8px;
}

.repo-empty-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 20px;
}

/* ==========================================================================
   MODALS: TEAM NOTIFY, FULL REPORT INSPECTION, DOCUMENT PREVIEW
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 38, 31, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: radial-gradient(circle at 50% 0%, #0C4E40 0%, #073D32 50%, #05261F 100%);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.modal-report-card {
  max-width: 960px;
}

.modal-doc-card {
  max-width: 820px;
}

.modal-header {
  padding: 20px 26px;
  background: rgba(5, 38, 31, 0.9);
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modal-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-gold-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.modal-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--color-text-primary);
}

.modal-body {
  padding: 26px;
  overflow-y: auto;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.modal-footer {
  padding: 16px 26px;
  background: rgba(5, 38, 31, 0.9);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Team Notify Modal Specifics */
.notify-intro {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.notify-recipients-box {
  background: rgba(5, 38, 31, 0.7);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
}

.notify-recipients-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold-primary);
  display: block;
  margin-bottom: 8px;
}

.notify-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notify-chip {
  background: rgba(212, 175, 124, 0.12);
  border: 1px solid rgba(212, 175, 124, 0.3);
  color: var(--color-text-primary);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: monospace;
}

.notify-preview-group {
  margin-bottom: 16px;
}

.notify-field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.notify-input,
.notify-textarea {
  width: 100%;
  background: rgba(5, 38, 31, 0.85);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 1.5;
  outline: none;
  resize: vertical;
}

.notify-actions-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.copy-success-note {
  font-size: 12px;
  color: #5CE0A0;
  font-weight: 600;
}

/* Document Viewer Modal Specifics */
.doc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.doc-word-count {
  font-size: 12px;
  color: var(--color-gold-light);
  font-weight: 600;
}

.doc-actions {
  display: flex;
  gap: 8px;
}

.doc-text-container {
  background: rgba(5, 38, 31, 0.95);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 55vh;
  overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Site Header & Mobile Navigation */
  .site-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .header-container {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .header-brand-group {
    gap: 8px;
    max-width: calc(100% - 95px);
    overflow: hidden;
    flex-shrink: 1;
  }
  .brand-logo {
    height: 30px;
    max-width: 85px;
    flex-shrink: 0;
  }
  .header-brand-text {
    flex-shrink: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .program-title {
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .program-sep {
    font-size: 9px;
    margin: 0 1px;
  }
  .program-tagline {
    font-size: 10px;
    letter-spacing: 0.05em;
  }
  .header-user-widget {
    flex-shrink: 0;
  }
  .auth-admin-pill {
    padding: 2px 6px 2px 4px !important;
    gap: 4px !important;
    max-width: 105px !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
  .auth-admin-avatar {
    width: 22px !important;
    height: 22px !important;
    font-size: 9.5px !important;
    flex-shrink: 0 !important;
  }
  .auth-admin-info {
    display: none !important;
  }
  .btn-admin-signout {
    font-size: 9.5px !important;
    padding: 2px 5px !important;
    margin-left: 0 !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
  }
  .header-nav {
    order: 3;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    margin-top: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 6px;
    touch-action: pan-x;
  }
  .header-nav.single-tab,
  .header-nav:not(:has(#navBtnRepository:not([style*="none"]))) {
    order: 2 !important;
    width: auto !important;
    max-width: fit-content !important;
    margin-top: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .header-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-tab {
    flex-shrink: 0;
    padding: 6px 11px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  /* Main Container */
  .main-content {
    padding: 14px 10px 40px;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Hero Section */
  .hero-section {
    padding: 18px 12px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  .hero-eyebrow {
    font-size: 10px;
  }
  .hero-title {
    font-size: 21px;
    line-height: 1.25;
    overflow-wrap: break-word;
  }
  .hero-subtitle {
    font-size: 12px;
    line-height: 1.5;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .stat-card {
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    min-width: 0;
    box-sizing: border-box;
  }
  .stat-num {
    font-size: 20px;
  }
  .stat-label {
    font-size: 10px;
    overflow-wrap: break-word;
  }

  /* Diagnostic Intake Form */
  .diagnostic-input-panel {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  .panel-title {
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: break-word;
  }
  .panel-subtext {
    font-size: 12px;
    line-height: 1.45;
  }
  .privacy-box-top {
    padding: 10px 12px;
    font-size: 11.5px;
    line-height: 1.45;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
    width: 100%;
  }
  .dual-intake-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .intake-card {
    padding: 14px 12px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .intake-title {
    font-size: 15px;
    overflow-wrap: break-word;
  }
  .intake-desc {
    font-size: 11.5px;
  }
  .profile-toggle-row {
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 12px 0;
    width: 100%;
    box-sizing: border-box;
  }
  .profile-radio-card {
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
  }
  .profile-card-label {
    font-size: 12.5px;
  }
  .profile-card-sub {
    font-size: 10.5px;
  }
  .form-label {
    font-size: 11.5px;
  }
  .form-input-text, .form-select {
    font-size: 12px;
    padding: 9px 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .upload-dropzone {
    padding: 20px 10px;
    box-sizing: border-box;
    width: 100%;
  }
  .dropzone-title {
    font-size: 13.5px;
  }
  .dropzone-desc {
    font-size: 11px;
  }
  .resume-textarea {
    font-size: 12px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .mini-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
    touch-action: pan-x;
  }
  .mini-tab {
    flex-shrink: 0;
    padding: 5px 11px;
    font-size: 11.5px;
  }
  .url-input-row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .url-input-row .btn-fetch {
    height: 38px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  .jd-cascading-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .jd-level-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    width: 100%;
    box-sizing: border-box;
  }
  .jd-level-pills::-webkit-scrollbar {
    display: none;
  }
  .jd-benchmark-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .jd-benchmark-title-wrap {
    width: 100%;
  }
  .jd-badges-row {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }
  .action-footer-centered {
    width: 100%;
    margin-top: 12px;
    box-sizing: border-box;
  }
  .action-footer-centered .btn-large {
    width: 100%;
    padding: 13px 16px;
    font-size: 13.5px;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Diagnostic Results Report */
  .diagnostic-results {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .results-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .results-title {
    font-size: 19px;
    line-height: 1.3;
    overflow-wrap: break-word;
  }
  .results-meta {
    font-size: 11.5px;
    overflow-wrap: break-word;
  }
  .results-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    box-sizing: border-box;
  }
  .results-actions button {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 11px 14px;
    font-size: 12.5px;
    box-sizing: border-box !important;
  }
  .target-domain-banner {
    padding: 14px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .td-banner-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
  .td-details .td-name {
    font-size: 15px;
    overflow-wrap: break-word;
  }
  .td-details .td-meta {
    font-size: 11.5px;
  }
  .score-showcase-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .score-card {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .ring-display-container {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .ring-wrapper {
    width: 130px;
    height: 130px;
  }
  .ring-num {
    font-size: 34px;
  }
  .band-indicator-group {
    text-align: center;
    width: 100%;
  }
  .band-badge {
    font-size: 12px;
    padding: 3px 10px;
  }
  .band-description {
    font-size: 11.5px;
    line-height: 1.45;
  }
  .ring-card-footer {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .ring-stat-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    width: 100%;
  }
  .dimension-bar-item {
    padding: 8px 0;
  }
  .dim-label-group {
    font-size: 11.5px;
  }
  .dim-score-num {
    font-size: 12px;
  }
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .insight-card {
    padding: 14px 12px;
    box-sizing: border-box;
    width: 100%;
  }
  .insight-title {
    font-size: 14px;
  }
  .insight-subtitle {
    font-size: 11px;
  }
  .insight-item {
    padding: 9px 10px;
    font-size: 11.5px;
    line-height: 1.45;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }
  .keywords-card {
    padding: 14px 12px;
    box-sizing: border-box;
    width: 100%;
  }
  .keywords-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .keywords-title {
    font-size: 16px;
  }
  .keywords-subtitle {
    font-size: 11.5px;
  }
  .keyword-match-stat {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    box-sizing: border-box;
  }
  .keyword-chips-container {
    width: 100%;
    box-sizing: border-box;
  }
  .chips-wrapper {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }
  .domain-action-guide {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
    width: 100%;
  }
  .guide-column {
    padding: 12px;
    box-sizing: border-box;
    width: 100%;
  }
  .rewrites-card {
    padding: 14px 12px;
    box-sizing: border-box;
    width: 100%;
  }
  .rewrites-title {
    font-size: 16px;
  }
  .rewrites-subtitle {
    font-size: 11.5px;
  }
  .rewrite-card-item {
    padding: 12px;
    box-sizing: border-box;
    width: 100%;
  }
  .bullet-before-text, .bullet-after-text {
    font-size: 12px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .suitability-card {
    padding: 14px 12px;
    box-sizing: border-box;
    width: 100%;
  }
  .suitability-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .suitability-title {
    font-size: 16px;
  }
  .suitability-subtitle {
    font-size: 11.5px;
  }
  .suitability-row {
    padding: 10px 12px;
    box-sizing: border-box;
    width: 100%;
  }
  .suitability-row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }
  .suitability-name-wrap {
    gap: 6px;
    width: 100%;
  }
  .suitability-name {
    font-size: 12.5px;
    overflow-wrap: break-word;
  }
  .suitability-score-wrap {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .suitability-recruiter-box {
    padding: 12px;
    font-size: 11.5px;
    line-height: 1.45;
    box-sizing: border-box;
    width: 100%;
  }
  .disclaimer-banner {
    padding: 12px;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
  }
  .disclaimer-text {
    font-size: 11px;
    line-height: 1.45;
  }
  .results-bottom-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    box-sizing: border-box;
  }
  .results-bottom-actions button {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    padding: 12px 14px;
    font-size: 13px;
    box-sizing: border-box !important;
  }

  /* Assessment Repository */
  .repository-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .repo-header-block {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .repo-title {
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: break-word;
  }
  .repo-subtitle {
    font-size: 12px;
    line-height: 1.45;
  }
  .repo-security-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .badge-repo-sec {
    font-size: 10.5px;
    padding: 3px 8px;
  }
  .repo-header-actions {
    width: 100%;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
  }
  .repo-header-actions button {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 12px;
    box-sizing: border-box;
  }
  .repo-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .repo-stat-card {
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    min-width: 0;
  }
  .repo-stat-num {
    font-size: 20px;
  }
  .repo-stat-label {
    font-size: 10px;
    overflow-wrap: break-word;
  }
  .repo-category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    width: 100%;
    gap: 6px;
    touch-action: pan-x;
  }
  .repo-cat-tab {
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 11.5px;
    white-space: nowrap;
  }
  .repo-toolbar {
    padding: 12px 10px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
  }
  .repo-search-input {
    font-size: 12px;
    padding: 9px 30px 9px 34px;
    width: 100%;
    box-sizing: border-box;
  }
  .repo-filters-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .repo-filter-item {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
  }
  .repo-filter-label {
    font-size: 11px;
  }
  .repo-select {
    width: 100%;
    max-width: 100%;
    font-size: 12px;
    padding: 8px 10px;
    box-sizing: border-box;
  }
  .repo-cohort-intelligence-panel {
    padding: 14px 10px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
  }
  .cohort-panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cohort-panel-title {
    font-size: 16px;
    overflow-wrap: break-word;
  }
  .cohort-panel-sub {
    font-size: 11.5px;
  }
  .cohort-type-toggles {
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
  }
  .cohort-type-btn {
    flex: 1;
    text-align: center;
    font-size: 10.5px;
    padding: 7px 8px;
    white-space: nowrap;
  }
  .cohort-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .cohort-card {
    padding: 14px 10px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }
  .cohort-inst-name {
    font-size: 13px;
    overflow-wrap: break-word;
  }
  .cohort-metrics-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .repo-card {
    padding: 14px 10px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }
  .repo-card-body {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .repo-card-entities {
    width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .repo-entity-row {
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
  }
  .repo-entity-title {
    font-size: 12.5px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .repo-card-score-box {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
  }
  .repo-score-val {
    font-size: 20px;
  }
  .repo-card-actions {
    flex-direction: column;
    width: 100%;
    gap: 6px;
    box-sizing: border-box;
  }
  .btn-repo-action {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    font-size: 11.5px;
    box-sizing: border-box;
  }

  /* Access Management */
  .access-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .access-header-block {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
  }
  .access-title {
    font-size: 18px;
  }
  .access-desc {
    font-size: 12px;
  }
  .access-stats-bar {
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .access-stat-card {
    min-width: 85px;
    flex: 1;
    padding: 8px 10px;
    box-sizing: border-box;
  }
  .access-stat-num {
    font-size: 18px;
  }
  .access-card {
    padding: 14px 10px;
    box-sizing: border-box;
    width: 100%;
  }
  .access-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .access-form-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  .access-form-actions button {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
    font-size: 12.5px;
    box-sizing: border-box;
  }
  .access-grant-status.success-banner {
    margin-left: 0;
    margin-top: 6px;
    width: 100%;
    box-sizing: border-box;
  }
  .access-table-container {
    padding: 12px 6px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
  }
  .access-table th, .access-table td {
    padding: 8px 6px;
    font-size: 11px;
    white-space: nowrap;
  }

  /* Site Footer */
  .site-footer {
    padding: 20px 14px;
    box-sizing: border-box;
    width: 100%;
  }
  .footer-top {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  /* Modals & Dialogs */
  .modal-overlay {
    padding: 10px 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  .modal-card {
    max-height: 92vh;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .modal-header {
    padding: 12px 14px;
  }
  .modal-title {
    font-size: 15px;
    overflow-wrap: break-word;
  }
  .modal-body {
    padding: 14px 10px;
    font-size: 12px;
    box-sizing: border-box;
  }
  .modal-footer {
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
  }
  .modal-footer button {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Auth Gate Modal */
  .auth-gate-overlay {
    padding: 14px 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  .auth-gate-container {
    margin: auto 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .auth-gate-card {
    padding: 20px 14px;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .auth-gate-brand {
    gap: 8px;
    margin-bottom: 16px;
  }
  .auth-gate-logo-img {
    height: 38px;
    max-width: 120px;
  }
  .auth-gate-org {
    font-size: 12px;
  }
  .auth-gate-tagline {
    font-size: 10.5px;
  }
  .auth-gate-title, .auth-error-title {
    font-size: 19px;
    overflow-wrap: break-word;
  }
  .auth-gate-desc, .auth-error-desc, .auth-error-note {
    font-size: 12px;
    line-height: 1.5;
  }
  .btn-auth-google {
    width: 100%;
    padding: 11px 12px;
    font-size: 12.5px;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* Extra small mobile screens (iPhone SE, Galaxy A, 320px - 440px) */
@media (max-width: 480px) {
  .header-container {
    padding: 6px 8px;
  }
  .program-tagline,
  .program-sep {
    display: none;
  }
  .program-title {
    font-size: 10.5px;
    letter-spacing: 0.05em;
  }
  .brand-logo {
    height: 26px;
    max-width: 75px;
  }
  .main-content {
    padding: 10px 6px 36px;
    gap: 12px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .repo-stats-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .auth-gate-overlay {
    padding: 10px 8px;
  }
  .auth-gate-card {
    padding: 18px 12px;
  }
  .auth-gate-title {
    font-size: 18px;
  }
}

.cofounder-badge {
  background: rgba(212, 175, 124, 0.2) !important;
  color: var(--color-gold-light) !important;
  border: 1px solid var(--color-gold-primary) !important;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-block;
}

.user-tag {
  background: rgba(66, 133, 244, 0.15) !important;
  color: #8AB4F8 !important;
  border: 1px solid rgba(66, 133, 244, 0.3) !important;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  display: inline-block;
}

.repo-card-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.repo-card-id-pill {
  display: inline-block;
  background: rgba(212, 175, 124, 0.14);
  border: 1px solid rgba(212, 175, 124, 0.35);
  color: var(--color-gold-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

/* --- Intake Auto-Record Toast Pill --- */
.intake-record-toast {
  display: none !important;
}

/* --- Repository Category Filter Tabs --- */
.repo-category-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.repo-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(7, 61, 50, 0.5);
  color: var(--color-ivory-muted);
  border: 1px solid rgba(212, 175, 124, 0.25);
  border-radius: 9999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.repo-cat-tab:hover {
  background: rgba(7, 61, 50, 0.85);
  color: #FFFFFF;
  border-color: rgba(212, 175, 124, 0.5);
}

.repo-cat-tab.active {
  background: linear-gradient(135deg, #E7C99D 0%, #D4AF7C 100%);
  color: #042720 !important;
  border-color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(212, 175, 124, 0.4);
}

.repo-badge-resume {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34D399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.repo-badge-jd {
  background: rgba(212, 175, 124, 0.15) !important;
  color: var(--color-gold-light) !important;
  border: 1px solid rgba(212, 175, 124, 0.3) !important;
}

/* =========================================================================
   INPUT A: Candidate Profile & Background Styling
   ========================================================================= */
.intake-col-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intake-card-profile {
  margin-bottom: 0;
}

.badge-profile {
  background: rgba(212, 175, 124, 0.2) !important;
  color: var(--color-gold-light) !important;
  border-color: rgba(212, 175, 124, 0.45) !important;
}

.profile-toggle-row {
  display: flex;
  gap: 12px;
  margin: 14px 0 16px 0;
}

.profile-radio-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(5, 38, 31, 0.6);
  border: 1.5px solid rgba(212, 175, 124, 0.22);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.profile-radio-card:hover {
  border-color: rgba(212, 175, 124, 0.5);
  background: rgba(7, 61, 50, 0.8);
}

.profile-radio-card.active {
  border-color: var(--color-gold-primary);
  background: rgba(212, 175, 124, 0.14);
  box-shadow: 0 0 14px rgba(212, 175, 124, 0.22);
}

.profile-radio-card input[type="radio"] {
  accent-color: var(--color-gold-primary);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.profile-card-icon {
  font-size: 22px;
  line-height: 1;
}

.profile-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-card-label {
  font-weight: 700;
  font-size: 13px;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
}

.profile-card-sub {
  font-size: 11px;
  color: var(--color-text-muted);
}

.profile-institution-field {
  margin-top: 12px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix-icon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  pointer-events: none;
}

.input-with-icon .form-input-text {
  padding-left: 38px;
  width: 100%;
}

.profile-field-hint {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
  display: block;
  font-style: italic;
}

/* =========================================================================
   Cohort Intelligence: College & Corporate Institutional Analytics
   ========================================================================= */
.repo-cohort-intelligence-panel {
  background: rgba(5, 38, 31, 0.88);
  border: 1px solid rgba(212, 175, 124, 0.25);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.cohort-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.cohort-header-title-wrap {
  max-width: 720px;
}

.cohort-header-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-gold-light);
  background: rgba(212, 175, 124, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.cohort-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  font-family: 'Montserrat', sans-serif;
}

.cohort-panel-sub {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.cohort-type-toggles {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cohort-type-btn {
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(7, 61, 50, 0.7);
  border: 1px solid rgba(212, 175, 124, 0.3);
  color: var(--color-ivory-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cohort-type-btn:hover {
  background: rgba(7, 61, 50, 0.95);
  color: #FFFFFF;
  border-color: rgba(212, 175, 124, 0.5);
}

.cohort-type-btn.active {
  background: linear-gradient(135deg, #E7C99D 0%, #D4AF7C 100%);
  color: #042720 !important;
  font-weight: 800;
  border-color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(212, 175, 124, 0.35);
}

.cohort-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.cohort-card {
  background: rgba(7, 61, 50, 0.65);
  border: 1px solid rgba(212, 175, 124, 0.2);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cohort-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 124, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cohort-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cohort-inst-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cohort-inst-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.cohort-inst-name {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cohort-inst-type {
  font-size: 10.5px;
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cohort-avg-score-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  flex-shrink: 0;
}

.cohort-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(5, 38, 31, 0.55);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 124, 0.1);
}

.cohort-metric-item {
  text-align: center;
}

.cohort-metric-val {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
}

.cohort-metric-lbl {
  font-size: 9.5px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.cohort-breakdown {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cohort-breakdown-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cohort-breakdown-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cohort-pill {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.cohort-pill-ready {
  background: rgba(43, 182, 115, 0.18);
  color: #4ADE80;
  border: 1px solid rgba(43, 182, 115, 0.35);
}

.cohort-pill-comp {
  background: rgba(59, 130, 246, 0.18);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.cohort-pill-mod {
  background: rgba(212, 175, 124, 0.18);
  color: var(--color-gold-light);
  border: 1px solid rgba(212, 175, 124, 0.35);
}

.cohort-pill-dev {
  background: rgba(156, 163, 175, 0.18);
  color: #D1D5DB;
  border: 1px solid rgba(156, 163, 175, 0.35);
}

.cohort-domains-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cohort-domain-tag {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #E2E8F0;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================================================
   Access Management Section (Permitted Co-Founders Only)
   ========================================================================= */
.access-section {
  padding: 0 0 60px 0;
  max-width: 1240px;
  margin: 0 auto;
}

.access-header-panel {
  background: rgba(5, 38, 31, 0.9);
  border: 1px solid rgba(212, 175, 124, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.access-header-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-gold-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.access-title {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  font-family: 'Montserrat', sans-serif;
}

.access-subtitle {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  max-width: 850px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.access-stats-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.access-stat-card {
  background: rgba(7, 61, 50, 0.65);
  border: 1px solid rgba(212, 175, 124, 0.2);
  border-radius: 10px;
  padding: 14px 20px;
  min-width: 160px;
}

.access-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-gold-light);
  font-family: 'Montserrat', sans-serif;
}

.access-stat-label {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.access-add-card {
  background: rgba(5, 38, 31, 0.88);
  border: 1px solid rgba(212, 175, 124, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.access-add-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.access-add-icon {
  font-size: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(212, 175, 124, 0.15);
  border: 1px solid rgba(212, 175, 124, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.access-add-title {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  font-family: 'Montserrat', sans-serif;
}

.access-add-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
}

.access-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.access-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.access-table-container {
  background: rgba(5, 38, 31, 0.88);
  border: 1px solid rgba(212, 175, 124, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.access-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.access-table-title {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.access-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.access-table th {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(212, 175, 124, 0.25);
  color: var(--color-gold-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  font-family: 'Montserrat', sans-serif;
}

.access-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.access-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.access-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11.5px;
  flex-shrink: 0;
}

.badge-founder {
  background: rgba(212, 175, 124, 0.18);
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold-primary);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
}

.badge-granted {
  background: rgba(66, 133, 244, 0.15);
  color: #8AB4F8;
  border: 1px solid rgba(66, 133, 244, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 600;
}

.status-active {
  color: #4ADE80;
  font-weight: 600;
  font-size: 11.5px;
}

.btn-revoke {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-revoke:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.btn-resend {
  background: rgba(212, 175, 124, 0.15);
  color: var(--color-gold-light);
  border: 1px solid rgba(212, 175, 124, 0.35);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.2s ease;
}

.btn-resend:hover {
  background: var(--color-gold-primary);
  color: #042720;
}

.action-locked {
  color: var(--color-text-muted);
  font-size: 11px;
  font-style: italic;
}

.invite-banner-success {
  background: rgba(43, 182, 115, 0.14);
  border: 1px solid rgba(43, 182, 115, 0.4);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #E2E8F0;
}

.invite-success-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2BB673;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.invite-dispatch-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 182, 115, 0.14);
  border: 1px solid rgba(43, 182, 115, 0.35);
  color: #C6F6D5;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  margin-bottom: 16px;
}

.dispatch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38A169;
  box-shadow: 0 0 6px #38A169;
}

.access-grant-status.success-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 182, 115, 0.15);
  border: 1px solid rgba(43, 182, 115, 0.45);
  color: #D1FAE5;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  margin-left: 12px;
}

.access-grant-status.success-banner code {
  color: #D4AF7C;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   Target JD Database v3 — Calibrated JD Picker Component Styles
   Company x Domain x Level x Role Selection Engine
   ========================================================================== */

.jd-cascading-row-full {
  width: 100%;
  margin-bottom: 14px;
}

/* Combobox (Target Company Typeahead) */
.jd-combobox-wrapper {
  position: relative;
  width: 100%;
}

.jd-combobox-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.jd-combobox-icon {
  position: absolute;
  left: 14px;
  font-size: 13px;
  color: var(--color-gold-primary);
  pointer-events: none;
  z-index: 2;
  opacity: 0.8;
}

.jd-combobox-input {
  width: 100%;
  padding: 11px 68px 11px 36px;
  background-color: #062F26;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.jd-combobox-input::placeholder {
  font-style: italic;
  color: rgba(248, 246, 239, 0.45);
  font-weight: 400;
}

.jd-combobox-input:focus {
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 0 3px var(--color-gold-glow);
}

.jd-combobox-clear-btn {
  position: absolute;
  right: 36px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.jd-combobox-clear-btn:hover {
  color: #FFFFFF;
}

.jd-combobox-toggle-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--color-gold-primary);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.jd-combobox-wrapper.is-open .jd-combobox-toggle-btn svg {
  transform: rotate(180deg);
}

.jd-combobox-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: #042720;
  border: 1px solid var(--color-gold-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 100;
  padding: 4px 0;
  margin: 0;
}

.jd-combobox-group-header {
  padding: 7px 14px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-gold-primary);
  background: rgba(212, 175, 124, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(212, 175, 124, 0.15);
  border-bottom: 1px solid rgba(212, 175, 124, 0.1);
}

.jd-combobox-group-header:first-child {
  border-top: none;
}

.jd-combobox-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.12s ease;
  font-size: 13px;
}

.jd-combobox-option:hover,
.jd-combobox-option.is-highlighted {
  background: rgba(212, 175, 124, 0.16);
}

.jd-combobox-option.is-selected {
  background: rgba(212, 175, 124, 0.22);
  border-left: 3px solid var(--color-gold-primary);
  font-weight: 600;
}

.jd-combobox-option-title {
  color: var(--color-text-primary);
  font-weight: 500;
}

.jd-combobox-option-badge {
  font-size: 11px;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}

.jd-combobox-option.is-other {
  color: var(--color-gold-light);
  font-weight: 600;
  background: rgba(212, 175, 124, 0.07);
}

.jd-combobox-empty {
  padding: 16px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 12.5px;
}

.jd-combobox-empty-btn {
  margin-top: 8px;
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-gold-primary);
  color: var(--color-gold-light);
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

/* Change Company Button */
.jd-change-company-wrap {
  margin-top: 6px;
  margin-bottom: 4px;
}

.btn-link-action {
  background: transparent;
  border: 1px solid rgba(212, 175, 124, 0.45);
  color: var(--color-gold-light);
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-link-action:hover {
  background: var(--color-gold-primary);
  color: #042720;
  border-color: var(--color-gold-primary);
}

/* Unlisted Company Fields */
.jd-other-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0;
  padding: 12px 14px;
  background: rgba(5, 38, 31, 0.55);
  border: 1px dashed rgba(212, 175, 124, 0.4);
  border-radius: var(--radius-md);
}

/* Role Selection Pills */
.jd-role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.jd-role-pill {
  background: #062F26;
  border: 1px solid rgba(212, 175, 124, 0.4);
  color: var(--color-text-secondary);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
}

.jd-role-pill:hover {
  border-color: var(--color-gold-primary);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.jd-role-pill.active {
  background: #031C16;
  border: 1.5px solid var(--color-gold-primary);
  color: var(--color-gold-light);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(212, 175, 124, 0.25);
}

/* Calibrated Benchmark Card */
.jd-benchmark-card {
  border: 1px solid rgba(212, 175, 124, 0.4);
  border-radius: 8px;
  overflow: hidden;
  margin: 14px 0 16px;
  background: #042720;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.jd-benchmark-header {
  background: #031C16;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(212, 175, 124, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.jd-benchmark-title-wrap {
  flex: 1;
}

.jd-benchmark-role-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-gold-primary);
  letter-spacing: 0.02em;
}

.jd-benchmark-path {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 3px;
  line-height: 1.4;
}

.jd-benchmark-body {
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jd-benchmark-body p {
  margin: 0;
}

.jd-benchmark-body b {
  color: var(--color-gold-light);
}

.jd-benchmark-body ul {
  margin: 4px 0 6px 18px;
  padding: 0;
}

.jd-benchmark-body li {
  margin-bottom: 3px;
}

.jd-callout-box {
  margin: 6px 0;
  padding: 9px 12px;
  background: rgba(212, 175, 124, 0.1);
  border-left: 3px solid var(--color-gold-primary);
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--color-text-primary);
}

.jd-flag-line {
  margin: 2px 0;
  color: #E8B974;
  font-size: 12px;
}

.jd-disclaimer-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: var(--color-text-muted);
  font-style: italic;
}