@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a2e4a;
  --navy-dark: #132238;
  --navy-light: #243d5f;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --bg: #f0f4f8;
  --card-bg: #ffffff;
  --text: #1a2e4a;
  --text-muted: #6b7a8d;
  --border: #d1dce8;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --input-bg: #f8fafc;
  --shadow: 0 4px 24px rgba(26, 46, 74, 0.12);
  --shadow-sm: 0 2px 8px rgba(26, 46, 74, 0.08);
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Auth layout ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 28px;
  background: radial-gradient(ellipse at 50% 40%, #163d72 0%, #0a1e3d 70%);
}

.auth-logo {
  display: block;
  height: 64px;
  width: auto;
  margin-bottom: 18px;
}

.auth-title {
  font-family: 'Jost', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #f5b800;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.auth-tagline {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 340px;
}

/* Card */
.auth-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 450px;
  overflow: hidden;
}

.auth-card-header {
  padding: 18px 24px;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #0b1f3d;
  border-bottom: 2px solid #1a6db5;
}

.auth-card-body {
  padding: 28px 36px 20px;
}

.auth-card-footer {
  padding: 14px 24px 18px;
  text-align: center;
  font-size: 12.5px;
  color: #9aabbf;
  line-height: 1.6;
}

/* Form elements */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-label svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--text);
  background: #eef4fb;
  border: 1.5px solid #cdd8e6;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.form-input:focus {
  border-color: #1a6db5;
  box-shadow: 0 0 0 3px rgba(26, 109, 181, 0.12);
  background: #fff;
}

.form-input::placeholder {
  color: #a0adb8;
}

/* Password wrapper */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--navy);
}

/* Remember me */
.form-check-row {
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #063563;
  cursor: pointer;
}

/* Forgot link */
.forgot-row {
  margin-top: 14px;
  text-align: right;
}

.forgot-link {
  font-size: 13.5px;
  color: #1a6db5;
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 11px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #0b1f3d;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  letter-spacing: 0.02em;
}

.btn-primary:hover:not(:disabled) {
  background: #163565;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary.loading {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Alert messages */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
  display: none;
}

.alert.visible {
  display: block;
}

.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #fecaca;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

/* In-card back link (reset-password) */
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer a {
  color: #1a6db5;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Below-card link */
.auth-below-card {
  margin-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}

.auth-below-card a {
  color: #f5b800;
  text-decoration: none;
  font-weight: 500;
}

.auth-below-card a:hover {
  text-decoration: underline;
}

/* Copyright */
.auth-copyright {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

/* Welcome / app layout */
.app-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #063563 0%, #063563 50%, #172636 100%);
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--navy);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.app-header-title {
  font-family: 'Jost', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.1px;
}

.app-header-signout {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: color 0.15s;
}

.app-header-signout:hover {
  color: #ffffff;
}

.app-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.welcome-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 44px 44px 40px;
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.welcome-logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.welcome-title {
  font-family: 'Jost', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.welcome-tagline {
  font-size: 16px;
  color: #4a5568;
  margin-bottom: 36px;
  font-weight: 400;
}

.welcome-form {
  text-align: left;
}

.welcome-form .form-group {
  margin-bottom: 20px;
}

.app-footer {
  padding: 16px 32px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  border-top: 1px solid #e8edf2;
  background: #f7f8fa;
}

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

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* ═══════════════════════════════════════
   CHAT INTERFACE — Phase 2
   Extracted from IM_MODE-B_Conversational_v5_0
   ═══════════════════════════════════════ */

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 64px 1fr;
  height: 100vh;
  font-family: 'Inter', sans-serif;
  background: #f7f8fa;
  color: #1a2332;
  overflow: hidden;
}

/* Chat Header */
.chat-header {
  grid-column: 1 / -1;
  background: #063563;
  z-index: 100;
}

.chat-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.chat-header__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.chat-header__title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chat-header__subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 400;
}

.chat-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chat-header__timer {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', monospace;
  min-width: 44px;
}

.chat-header__signout {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.chat-header__signout:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

/* Chat Sidebar */
.chat-sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e6eb;
  overflow-y: auto;
  padding: 20px 0;
}

.chat-sidebar::-webkit-scrollbar { width: 5px; }
.chat-sidebar::-webkit-scrollbar-track { background: transparent; }
.chat-sidebar::-webkit-scrollbar-thumb { background: #e2e6eb; border-radius: 3px; }

.sidebar-section {
  padding: 0 16px;
  margin-bottom: 20px;
}

.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8896a6;
  margin-bottom: 10px;
  padding: 0 4px;
}

.element-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 2px;
  cursor: default;
  transition: all 0.2s;
  position: relative;
}

.element-item.active {
  background: rgba(6, 53, 99, 0.06);
}

.element-item.active .element-name {
  font-weight: 600;
  color: #063563;
}

.element-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e2e6eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #8896a6;
  flex-shrink: 0;
  transition: all 0.3s;
}

.element-name {
  font-size: 13px;
  color: #4a5568;
  font-weight: 400;
}

.element-item.locked .element-name {
  color: #8896a6;
}

.element-phase-badge {
  font-size: 10px;
  color: #8896a6;
  margin-left: auto;
}

.sidebar-progress {
  padding: 0 20px;
  margin-top: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8896a6;
  margin-bottom: 6px;
}

.progress-track {
  height: 4px;
  background: #e2e6eb;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #063563;
  border-radius: 2px;
  transition: width 0.6s ease;
  width: 0%;
}

/* Chat Main */
.chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f7f8fa;
}

.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  scroll-behavior: smooth;
}

.chat-area::-webkit-scrollbar { width: 5px; }
.chat-area::-webkit-scrollbar-track { background: transparent; }
.chat-area::-webkit-scrollbar-thumb { background: #e2e6eb; border-radius: 3px; }

/* Messages */
.message {
  max-width: 680px;
  margin-bottom: 16px;
  animation: msgIn 0.35s ease;
}

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

.msg-bot {
  display: flex;
  gap: 12px;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #063563;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.msg-bubble {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.msg-bot .msg-bubble {
  background: #ffffff;
  border: 1px solid #e2e6eb;
  color: #1a2332;
  border-bottom-left-radius: 4px;
}

.msg-user {
  display: flex;
  justify-content: flex-end;
}

.msg-user .msg-bubble {
  background: #063563;
  color: #ffffff;
  border-bottom-right-radius: 4px;
  max-width: 560px;
}

/* Element transition card */
.element-transition {
  max-width: 680px;
  margin: 20px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(6,53,99,0.04), rgba(255,192,0,0.04));
  border: 1px solid rgba(6,53,99,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: msgIn 0.35s ease;
}

.transition-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #063563;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFC000;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.transition-text {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.5;
}

.transition-text strong {
  color: #063563;
  font-weight: 600;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 12px;
  max-width: 680px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.typing-dots {
  background: #ffffff;
  border: 1px solid #e2e6eb;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  padding: 14px 20px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8896a6;
  animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* Input area */
.input-area {
  padding: 16px 32px 24px;
  background: #f7f8fa;
  border-top: 1px solid #e2e6eb;
}

.input-container {
  max-width: 680px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.input-field {
  flex: 1;
  border: 1px solid #e2e6eb;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  resize: none;
  min-height: 48px;
  max-height: 120px;
  line-height: 1.5;
  background: #ffffff;
  transition: border-color 0.2s;
  outline: none;
  color: #1a2332;
}

.input-field:focus {
  border-color: #063563;
}

.input-field::placeholder {
  color: #8896a6;
}

.input-field:disabled {
  background: #f7f8fa;
  color: #8896a6;
  cursor: not-allowed;
}

.btn-send {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #063563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-send:hover:not(:disabled) {
  background: #0a4a8a;
}

.btn-send:disabled {
  cursor: not-allowed;
}

.btn-send svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: 56px 1fr;
  }

  .chat-sidebar {
    display: none;
  }

  .chat-area {
    padding: 16px;
  }

  .input-area {
    padding: 12px 16px 16px;
  }
}

/* ═══ RESULTS OVERLAY ═══ */
.results-overlay { position: fixed; inset: 0; background: #f7f8fa; z-index: 100; display: none; overflow-y: auto; }
.results-overlay.visible { display: block; animation: resultsFadeIn 0.4s ease; }
@keyframes resultsFadeIn { from { opacity: 0; } to { opacity: 1; } }

.results-container { max-width: 960px; margin: 0 auto; padding: 32px 24px 80px; }
.results-header { margin-bottom: 32px; }
.results-header h2 { font-family: 'Jost', sans-serif; font-size: 24px; font-weight: 700; color: #063563; margin-bottom: 4px; }
.results-header p { font-size: 14px; color: #4a5568; }

.results-top { display: grid; grid-template-columns: 360px 1fr; gap: 28px; margin-bottom: 32px; }
@media (max-width: 800px) { .results-top { grid-template-columns: 1fr; } }

.radar-container { background: #fff; border: 1px solid #e2e6eb; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.radar-container canvas { max-width: 320px; max-height: 320px; }
.radar-legend { font-size: 11px; color: #8896a6; margin-top: 12px; text-align: center; }

.decision-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.decision-stat { background: rgba(6,53,99,0.04); border-radius: 8px; padding: 16px; text-align: center; }
.decision-stat-value { font-family: 'Jost', sans-serif; font-size: 32px; font-weight: 700; color: #063563; }
.decision-stat-label { font-size: 12px; color: #4a5568; margin-top: 4px; }
.decision-badge-container { grid-column: 1 / -1; text-align: center; padding: 12px; background: rgba(6,53,99,0.04); border-radius: 8px; }
.decision-badge { display: inline-block; padding: 4px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.decision-badge.badge-above { background: rgba(42,125,46,0.1); color: #2a7d2e; }
.decision-badge.badge-range { background: rgba(179,89,0,0.1); color: #b35900; }
.decision-badge.badge-below { background: rgba(179,41,41,0.1); color: #b32a2a; }
.decision-recommendation { font-size: 13px; font-weight: 600; margin-top: 6px; }

.results-elements { margin-bottom: 24px; }
.results-group-header { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #8896a6; margin: 20px 0 10px; padding-bottom: 8px; border-bottom: 1px solid #e2e6eb; }
.element-result-row { display: grid; grid-template-columns: 14px 140px 1fr 50px 100px 20px; gap: 10px; align-items: center; padding: 12px 16px; background: #fff; border: 1px solid #e2e6eb; border-radius: 10px; margin-bottom: 6px; cursor: pointer; transition: all 0.2s; }
.element-result-row:hover { border-color: #063563; background: rgba(6,53,99,0.02); }
.element-result-row.expanded { border-color: #063563; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; }
.er-dot { width: 14px; height: 14px; border-radius: 50%; }
.er-name { font-size: 14px; font-weight: 500; color: #1a2332; }
.er-track { height: 8px; background: #edf0f3; border-radius: 4px; overflow: hidden; position: relative; }
.er-fill { height: 100%; border-radius: 4px; }
.er-threshold { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #D4A600; }
.er-score { font-size: 15px; font-weight: 700; text-align: right; }
.er-score.above { color: #2a7d2e; }
.er-score.below { color: #b35900; }
.er-score.critical { color: #b32a2a; }
.er-score.na { color: #999; }
.er-status { font-size: 11px; font-weight: 600; white-space: nowrap; }
.er-chevron { font-size: 14px; color: #8896a6; transition: transform 0.2s; }
.element-result-row.expanded .er-chevron { transform: rotate(180deg); }

.drilldown-panel { background: #fff; border: 1px solid #063563; border-top: none; border-radius: 0 0 12px 12px; padding: 0; margin-bottom: 8px; overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.drilldown-panel.open { max-height: 3000px; }
.drilldown-inner { padding: 20px 24px 24px; }
.dd-section { margin-bottom: 20px; }
.dd-section:last-child { margin-bottom: 0; }
.dd-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #8896a6; margin-bottom: 8px; }
.dd-analysis { font-size: 13px; line-height: 1.7; color: #1a2332; }
.dd-evaluation-box { font-size: 13px; line-height: 1.6; padding: 10px 14px; border-radius: 8px; }
.dd-evaluation-box.pass { background: #e8f5e9; border-left: 3px solid #2a7d2e; }
.dd-evaluation-box.fail { background: #fff3e0; border-left: 3px solid #e65100; }
.dd-criteria-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #e2e6eb; }
.dd-criteria-row:last-child { border-bottom: none; }
.dd-criteria-icon { flex-shrink: 0; font-size: 14px; }
.dd-criteria-text { flex: 1; font-size: 12px; line-height: 1.5; }
.dd-criteria-id { font-family: monospace; font-size: 10px; color: #8896a6; background: #f7f8fa; padding: 1px 4px; border-radius: 3px; }
.dd-criteria-depth { font-size: 11px; margin-top: 2px; }
.dd-criteria-evidence { font-size: 11px; color: #4a5568; margin-top: 2px; font-style: italic; }
.dd-gap { padding: 8px 12px; margin-bottom: 6px; background: #f7f8fa; border-radius: 8px; border-left: 3px solid #FFC000; font-size: 13px; line-height: 1.5; color: #4a5568; list-style: none; }
.dd-gap strong { color: #1a2332; font-weight: 600; }
.dd-no-gaps { font-size: 13px; color: #2a7d2e; font-style: italic; }

.results-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }
.btn-results { padding: 12px 28px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif; border: none; transition: all 0.2s; }
.btn-results-primary { background: #063563; color: white; }
.btn-results-primary:hover { background: #0a4a8a; }
.btn-results-secondary { background: #fff; color: #1a2332; border: 1px solid #e2e6eb; }
.btn-results-secondary:hover { background: #f7f8fa; }

@media (max-width: 768px) {
  .results-top { grid-template-columns: 1fr; }
  .element-result-row { grid-template-columns: 14px 100px 1fr 40px 80px 16px; font-size: 12px; }
  .radar-container canvas { max-width: 260px; max-height: 260px; }
}


/* ═══ SWIFT TRUST & ENGAGEMENT CARDS ═══ */
.results-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; margin-bottom: 24px; }
@media (max-width: 768px) { .results-bottom { grid-template-columns: 1fr; } }
.bottom-card { background: #fff; border: 1px solid #e2e6eb; border-radius: 12px; padding: 20px; }
.bottom-card h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #8896a6; margin-bottom: 14px; }

.trust-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.trust-row span:first-child { font-size: 13px; color: #4a5568; min-width: 100px; }
.trust-bar-track { flex: 1; height: 8px; background: #edf0f3; border-radius: 4px; overflow: hidden; }
.trust-bar-fill { height: 100%; border-radius: 4px; background: #063563; transition: width 0.6s ease; }
.trust-score { font-size: 14px; font-weight: 700; color: #063563; min-width: 30px; text-align: right; }

.trust-rationale { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e6eb; }
.trust-rationale p { font-size: 12px; color: #4a5568; line-height: 1.5; margin-bottom: 4px; }

.engagement-score { font-size: 48px; font-weight: 700; color: #063563; text-align: center; margin: 12px 0 4px; }
.engagement-label { font-size: 12px; color: #8896a6; text-align: center; margin-bottom: 12px; }
.engagement-rationale { font-size: 12px; color: #4a5568; text-align: center; line-height: 1.5; }

.trust-summary { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e2e6eb; font-size: 12px; color: #4a5568; line-height: 1.6; }
