/*
 * BioCloud R Revision Assistant (/review/) — Bright Blue Redesign & Step Badge Fix (2026-12-04)
 * Replaces dull #f7f6f1 / #0f4f46 / #a87e37 palette and fixes .step-strip .step-num specificity bug.
 */

:root {
  --ink: #0f172a !important;
  --muted: #526580 !important;
  --primary: #2563eb !important;
  --primary-dark: #1d4ed8 !important;
  --primary-soft: #eff6ff !important;
  --brass: #0284c7 !important;
  --brass-deep: #1d4ed8 !important;
  --brass-soft: #eff6ff !important;
  --paper: #f6f9ff !important;
  --line: #dbe6f5 !important;
  --light: #eef4ff !important;
  --white: #ffffff !important;
  --danger: #dc2626 !important;
  --shadow: 0 12px 34px rgba(23, 43, 77, 0.06) !important;
}

html, body {
  overflow-x: clip;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%) !important;
  color: #0f172a !important;
}

.topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #dbe6f5 !important;
}

.brand {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  color: #0f172a !important;
}

.brand-icon {
  background: linear-gradient(145deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24) !important;
}

.hero h1, .page-title {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-weight: 780 !important;
  color: #0f172a !important;
  text-wrap: balance;
}

/* Fix broken 1, 2, 3 step circles (.step-strip span was overriding .step-num!) */
.step-strip li {
  border-color: #dbe6f5 !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(23, 43, 77, 0.04);
  align-items: center !important;
}

.step-strip li .step-num {
  flex: 0 0 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  margin-top: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
}

input:not([type=checkbox]):not([type=file]),
textarea,
select {
  background: #ffffff !important;
  border-color: #cbd8ee !important;
  color: #0f172a !important;
}

input:hover, textarea:hover, select:hover {
  border-color: #93c5fd !important;
}

input:focus, textarea:focus, select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #60a5fa !important;
}

.upload-box {
  background: #f8fbff !important;
  border-color: #bfdbfe !important;
}

.upload-box:hover {
  background: #eff6ff !important;
  border-color: #2563eb !important;
}

.primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24) !important;
}

.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
}

.secondary {
  border-color: #cbd8ee !important;
  color: #1e293b !important;
}

.secondary:hover:not(:disabled) {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}

.soft-card {
  background: #eff6ff !important;
  border-color: #cbdff8 !important;
}

.soft-card p, .prose p, .report-item ul {
  color: #334155 !important;
}

.summary-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
}

.report-item blockquote,
.plain-block {
  background: #f4f8ff !important;
  color: #1e293b !important;
  border-left-color: #2563eb !important;
}

.issue-choice:hover {
  background: #f4f8ff !important;
}

.success {
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px 16px !important;
  }
  .topbar nav {
    gap: 10px !important;
    font-size: 13px !important;
  }
  .brand {
    font-size: 15px !important;
  }
  .hero h1 {
    font-size: clamp(28px, 7.6vw, 36px) !important;
    line-height: 1.24 !important;
  }
  .trust-row {
    font-size: 12px !important;
  }
  .button {
    min-height: 44px;
  }
}

/* Conversion & preset UX enhancements (2026-12-04) */
.switch-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 16px; margin-bottom: 18px; border-radius: 12px;
  background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe; font-size: 13.5px; color: #1e3a8a;
}
.switch-strip a { color: #1d4ed8; font-weight: 600; text-decoration: none; white-space: nowrap; }
.switch-strip a:hover { text-decoration: underline; }
.preset-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px;
  background: #f8fafc; border: 1px dashed #cbd5e1;
}
.preset-label { font-size: 12.5px; font-weight: 600; color: #475569; }
.preset-chip {
  appearance: none; border: 1px solid #bfdbfe; background: #ffffff; color: #1d4ed8;
  border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all .15s ease; line-height: 1.3;
}
.preset-chip:hover { background: #eff6ff; border-color: #2563eb; transform: translateY(-1px); }
.consent-highlight {
  padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; margin: 10px 0;
}
.report-cta-jump {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.assurance-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px;
}
.assurance-pills span {
  font-size: 12.5px; font-weight: 600; color: #1e40af; background: #eff6ff;
  border: 1px solid #bfdbfe; border-radius: 999px; padding: 4px 12px;
}
.consult-actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px;
}
.consult-actions .button { flex: 1 1 240px; text-align: center; justify-content: center; }
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 8px; }
  .topbar nav { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; }
  .switch-strip { font-size: 12.5px; padding: 9px 12px; }
  .preset-chip { width: 100%; text-align: left; border-radius: 8px; padding: 7px 11px; }
}
