/* MedSina — Analysis Page v10 */

body:has(#ms-analysis-extra), html:has(#ms-analysis-extra) { overflow-y: auto !important; }

#ms-analysis-extra *, #ms-analysis-extra *::before, #ms-analysis-extra *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
#ms-analysis-extra {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  width: 100%; display: block;
}

/* ── Reveal ── */
.ms5-r {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.ms5-r.on { opacity: 1; transform: none; }
.d1{transition-delay:.06s} .d2{transition-delay:.14s} .d3{transition-delay:.22s}
.d4{transition-delay:.30s} .d5{transition-delay:.38s} .d6{transition-delay:.46s}

.ms5-w {
  width: 100%; max-width: 1120px;
  margin: 0 auto; padding: 0 32px;
  box-sizing: border-box;
}

/* Flex-центрирование секций — перебивает overflow-x:hidden баг */
#ms5-steps, #ms5-scan, #ms5-stats, #ms5-types, #ms5-report, #ms5-safety, #ms5-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#ms5-steps > .ms5-w,
#ms5-scan  > .ms5-w,
#ms5-stats > .ms5-w,
#ms5-types > .ms5-w,
#ms5-report > .ms5-w,
#ms5-safety > .ms5-w,
#ms5-cta > .ms5-w {
  width: 100%;
  flex-shrink: 0;
}
.ms5-center { text-align: center; }

.ms5-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #2563eb; background: rgba(37,99,235,.1);
  border-radius: 50px; padding: 6px 18px; margin-bottom: 16px;
}
.ms5-h2 {
  font-size: clamp(32px, 4.5vw, 52px); font-weight: 900;
  color: #0f172a; letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: 14px;
}
.ms5-h2 em { font-style: normal; background: linear-gradient(135deg,#2563eb,#0d9488); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.ms5-sub { font-size: 17px; line-height: 1.7; color: #64748b; }

/* ═══════════════════════════════════
   §1  STEPS
═══════════════════════════════════ */
#ms5-steps {
  padding: 72px 32px;
  background: linear-gradient(160deg,#eef4ff 0%,#edfaf8 100%);
  position: relative; overflow: hidden;
}
#ms5-steps::before {
  content: '';
  position: absolute; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle,rgba(37,99,235,.06),transparent 70%);
  top: -300px; right: -200px; pointer-events: none;
}

.ms5-steps-center {
  text-align: center;
  margin-top: 56px;
}

.ms5-steps-row {
  display: inline-grid;
  grid-template-columns: repeat(4, 200px);
  gap: 28px;
  text-align: left;
  position: relative;
}
/* Линия строго между центрами иконок */
.ms5-conn {
  position: absolute;
  top: 52px;
  left: 11.5%;
  right: 11.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg,
    rgba(37,99,235,.45) 0, rgba(37,99,235,.45) 10px,
    transparent 10px, transparent 26px);
  z-index: 0;
}

.ms5-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 20px 8px;
  position: relative; z-index: 1;
}

.ms5-step-orb {
  position: relative; margin-bottom: 24px;
  width: 104px; height: 104px;
  border-radius: 28px;
  background: linear-gradient(145deg, #2563eb, #0d9488);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 48px rgba(37,99,235,.32);
  animation: ms5-bob 4s ease-in-out infinite;
}
.ms5-step:nth-child(2) .ms5-step-orb { animation-delay: .8s; }
.ms5-step:nth-child(3) .ms5-step-orb { animation-delay: 1.6s; }
.ms5-step:nth-child(4) .ms5-step-orb { animation-delay: 2.4s; }

@keyframes ms5-bob {
  0%,100% { transform: translateY(0); box-shadow: 0 16px 48px rgba(37,99,235,.32); }
  45%      { transform: translateY(-10px); box-shadow: 0 26px 60px rgba(37,99,235,.25); }
}

.ms5-step-orb svg { width: 48px; height: 48px; }

.ms5-step-num {
  position: absolute; top: -10px; right: -10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: #2563eb;
  font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(37,99,235,.22);
}

.ms5-step h3 { font-size: 17px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.ms5-step p  { font-size: 13.5px; line-height: 1.65; color: #64748b; max-width: 220px; }

@media (max-width: 880px) {
  .ms5-steps-row { grid-template-columns: repeat(2, 200px); gap: 24px; }
  .ms5-conn { display: none; }
}
@media (max-width: 480px) {
  .ms5-steps-row { grid-template-columns: 200px; }
}

/* ═══════════════════════════════════
   §2  SCAN / TECH (dark)
═══════════════════════════════════ */
#ms5-scan {
  padding: 96px 32px;
  background: linear-gradient(160deg,#0a1628 0%,#0d2040 100%);
  position: relative; overflow: hidden;
}
.ms5-scan-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(99,149,255,.12) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  pointer-events: none;
}
.ms5-scan-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.14), transparent 70%);
  top: 50%; left: 30%; transform: translate(-50%,-50%);
  pointer-events: none;
}

.ms5-scan-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center; position: relative;
}
@media (max-width: 860px) { .ms5-scan-grid { grid-template-columns: 1fr; gap: 48px; } }

.ms5-scan-chip { background: rgba(37,99,235,.18); color: #60a5fa; }
.ms5-scan-h2   { color: #f1f5f9; }
.ms5-scan-sub  { color: #94a3b8; margin-bottom: 32px; }

.ms5-facts { display: flex; flex-direction: column; gap: 14px; }
.ms5-fact {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .25s, border-color .25s;
}
.ms5-fact:hover { background: rgba(255,255,255,.09); border-color: rgba(37,99,235,.3); }
.ms5-fact-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg,#2563eb,#0d9488);
  display: flex; align-items: center; justify-content: center;
}
.ms5-fact-ico svg { width: 22px; height: 22px; }
.ms5-fact-t { font-size: 14px; font-weight: 800; color: #f1f5f9; margin-bottom: 2px; }
.ms5-fact-d { font-size: 13px; color: #94a3b8; }

/* CSS Medical scan visual */
.ms5-scan-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.ms5-scan-box {
  width: 100%; max-width: 400px; border-radius: 20px;
  background: linear-gradient(160deg,#0d1b2e,#162844);
  border: 1px solid rgba(37,99,235,.25);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(37,99,235,.15);
}
.ms5-sb-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: rgba(37,99,235,.12);
  border-bottom: 1px solid rgba(37,99,235,.18);
}
.ms5-sb-dot { width: 10px; height: 10px; border-radius: 50%; }
.ms5-sb-dot:nth-child(1){background:#ef4444}
.ms5-sb-dot:nth-child(2){background:#f59e0b}
.ms5-sb-dot:nth-child(3){background:#22c55e}
.ms5-sb-title { flex:1; text-align:center; font-size:11px; font-weight:700; color:rgba(255,255,255,.45); letter-spacing:.08em; }

.ms5-sb-body { position: relative; height: 260px; overflow: hidden; }

/* Сетка снимка */
.ms5-sb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Рентген-изображение: простые линии органов */
.ms5-xray {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.ms5-xray svg { width: 200px; height: 220px; opacity: .7; }

/* Скан-линия */
.ms5-scan-line {
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,transparent,#38bdf8 30%,#2563eb 50%,#0d9488 70%,transparent);
  box-shadow: 0 0 20px 5px rgba(37,99,235,.55);
  animation: ms5-sweep 2.8s ease-in-out infinite; z-index: 5;
}
@keyframes ms5-sweep {
  0%   { top: 0;    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Маркеры обнаружения */
.ms5-marker {
  position: absolute; width: 18px; height: 18px;
  border: 2px solid #22c55e; border-radius: 4px;
  animation: ms5-blink 2.5s ease-in-out infinite; z-index: 6;
}
.ms5-marker::after {
  content: ''; position: absolute; inset: 3px;
  background: rgba(34,197,94,.35); border-radius: 2px;
}
.ms5-marker:nth-child(1){top:70px;left:90px;animation-delay:0s}
.ms5-marker:nth-child(2){top:110px;right:80px;animation-delay:.7s}
.ms5-marker:nth-child(3){top:155px;left:130px;animation-delay:1.4s}
@keyframes ms5-blink{0%,100%{opacity:1;border-color:#22c55e}50%{opacity:.35;border-color:#16a34a}}

.ms5-sb-status {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid rgba(37,99,235,.15);
  font-size: 12px; font-weight: 700; color: #60a5fa;
}
.ms5-status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  animation: ms5-pulse 1.5s ease-in-out infinite;
}
@keyframes ms5-pulse {
  0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.5)}
  50%{box-shadow:0 0 0 6px rgba(34,197,94,.0)}
}
.ms5-sb-prog { flex: 1; }
.ms5-sb-pct { color: #22c55e; font-weight: 900; }

/* ═══════════════════════════════════
   §3  STATS
═══════════════════════════════════ */
#ms5-stats {
  padding: 72px 32px;
  background: linear-gradient(135deg,#1d4ed8 0%,#0f766e 100%);
  position: relative; overflow: hidden;
}
#ms5-stats::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 15% 50%,rgba(255,255,255,.1),transparent 55%),
              radial-gradient(ellipse at 85% 30%,rgba(255,255,255,.07),transparent 45%);
}
.ms5-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; position: relative;
}
@media(max-width:680px){.ms5-stats-row{grid-template-columns:1fr 1fr}}

.ms5-stat {
  text-align: center; padding: 36px 20px; border-radius: 20px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .25s, background .25s;
}
.ms5-stat:hover { transform: translateY(-4px); background: rgba(255,255,255,.18); }
.ms5-stat-n {
  font-size: 52px; font-weight: 900; color: #fff;
  letter-spacing: -.03em; line-height: 1; margin-bottom: 10px;
}
.ms5-stat-l { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); line-height: 1.45; }

/* ═══════════════════════════════════
   §4  TYPES
═══════════════════════════════════ */
#ms5-types { padding: 72px 32px; background: #fff; }

.ms5-types-grid {
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: 16px; margin-top: 52px;
}
@media(max-width:960px){.ms5-types-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:580px){.ms5-types-grid{grid-template-columns:1fr 1fr}}

.ms5-type {
  border-radius: 20px; overflow: hidden;
  border: 1.5px solid rgba(15,23,42,.07);
  background: #fff;
  transition: transform .3s, box-shadow .3s;
  cursor: default;
}
.ms5-type:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(37,99,235,.13); }

.ms5-type-head {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.ms5-type-head svg { width: 52px; height: 52px; position: relative; z-index: 1; }
.ms5-type-head::before {
  content: '';
  position: absolute; inset: 0;
  background: inherit;
  opacity: .15;
}

.ms5-type-body { padding: 16px 16px 20px; }
.ms5-type h4 { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.ms5-type p  { font-size: 12px; line-height: 1.6; color: #64748b; margin-bottom: 10px; }
.ms5-type-tag {
  display: inline-block; font-size: 10px; font-weight: 800;
  padding: 3px 12px; border-radius: 99px;
  letter-spacing: .06em; text-transform: uppercase;
}

/* Цвета заголовков */
.ms5-type:nth-child(1) .ms5-type-head { background: linear-gradient(135deg,#dbeafe,#bfdbfe); }
.ms5-type:nth-child(1) .ms5-type-head svg { color: #2563eb; }
.ms5-type:nth-child(1) .ms5-type-tag { background: rgba(37,99,235,.1); color: #2563eb; }

.ms5-type:nth-child(2) .ms5-type-head { background: linear-gradient(135deg,#f3e8ff,#e9d5ff); }
.ms5-type:nth-child(2) .ms5-type-head svg { color: #7c3aed; }
.ms5-type:nth-child(2) .ms5-type-tag { background: rgba(124,58,237,.1); color: #7c3aed; }

.ms5-type:nth-child(3) .ms5-type-head { background: linear-gradient(135deg,#ccfbf1,#99f6e4); }
.ms5-type:nth-child(3) .ms5-type-head svg { color: #0d9488; }
.ms5-type:nth-child(3) .ms5-type-tag { background: rgba(13,148,136,.1); color: #0d9488; }

.ms5-type:nth-child(4) .ms5-type-head { background: linear-gradient(135deg,#fef3c7,#fde68a); }
.ms5-type:nth-child(4) .ms5-type-head svg { color: #d97706; }
.ms5-type:nth-child(4) .ms5-type-tag { background: rgba(217,119,6,.1); color: #d97706; }

.ms5-type:nth-child(5) .ms5-type-head { background: linear-gradient(135deg,#fce7f3,#fbcfe8); }
.ms5-type:nth-child(5) .ms5-type-head svg { color: #be185d; }
.ms5-type:nth-child(5) .ms5-type-tag { background: rgba(190,24,93,.1); color: #be185d; }

/* ═══════════════════════════════════
   §5  REPORT (split)
═══════════════════════════════════ */
#ms5-report {
  padding: 72px 32px;
  background: linear-gradient(160deg,#f0fdf6 0%,#eef4ff 100%);
}
.ms5-rep-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
@media(max-width:860px){.ms5-rep-split{grid-template-columns:1fr;gap:48px}}

.ms5-checklist { list-style: none; margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.ms5-check {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px; color: #334155; line-height: 1.55;
}
.ms5-check-ico {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; margin-top: 1px;
  background: linear-gradient(135deg,#2563eb,#0d9488);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.ms5-check-ico svg { width: 15px; height: 15px; }

/* Report card mock */
.ms5-rep-card {
  background: #fff; border-radius: 24px; padding: 28px;
  box-shadow: 0 24px 64px rgba(37,99,235,.13);
  border: 1px solid rgba(37,99,235,.09);
}
.ms5-rc-h {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; border-bottom: 1px solid #f1f5f9; margin-bottom: 18px;
}
.ms5-rc-logo {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg,#2563eb,#0d9488);
  display: flex; align-items: center; justify-content: center;
}
.ms5-rc-logo svg { width: 22px; height: 22px; }
.ms5-rc-info { flex: 1; }
.ms5-rc-name { font-size: 14px; font-weight: 800; color: #0f172a; }
.ms5-rc-date { font-size: 12px; color: #94a3b8; }
.ms5-rc-badge { font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: #dcfce7; color: #16a34a; }

.ms5-rc-lines { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.ms5-rc-line { height: 9px; border-radius: 99px; background: #e2e8f0; }
.ms5-rc-line:nth-child(1){width:92%;animation:ms5-pulse-line 2.2s infinite}
.ms5-rc-line:nth-child(2){width:77%;animation:ms5-pulse-line 2.2s infinite .2s}
.ms5-rc-line:nth-child(3){width:86%;animation:ms5-pulse-line 2.2s infinite .4s}
.ms5-rc-line:nth-child(4){width:63%;animation:ms5-pulse-line 2.2s infinite .6s}
.ms5-rc-line:nth-child(5){width:80%;animation:ms5-pulse-line 2.2s infinite .8s}
@keyframes ms5-pulse-line{0%,100%{opacity:1}50%{opacity:.35}}

.ms5-rc-stitle { font-size: 10px; font-weight: 800; color: #2563eb; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.ms5-rc-dxs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.ms5-rc-dx {
  display: flex; align-items: center; gap: 10px;
  background: #f8fafc; border-radius: 10px; padding: 9px 12px;
  border: 1px solid #e2e8f0;
}
.ms5-rc-dx-name { font-size: 13px; font-weight: 600; color: #334155; flex: 1; }
.ms5-rc-dx-bar  { width: 80px; height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.ms5-rc-dx-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg,#2563eb,#0d9488); }
.ms5-rc-dx-pct  { font-size: 12px; font-weight: 800; color: #2563eb; width: 30px; text-align: right; }
.ms5-rc-btns { display: flex; gap: 8px; }
.ms5-rc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 9px 18px;
  border-radius: 99px; cursor: pointer; border: none; transition: transform .2s;
}
.ms5-rc-btn:hover { transform: translateY(-1px); }
.ms5-rc-btn-p { background: linear-gradient(135deg,#2563eb,#0d9488); color: #fff; }
.ms5-rc-btn-s { background: #f1f5f9; color: #475569; }

/* ═══════════════════════════════════
   §6  SAFETY
═══════════════════════════════════ */
#ms5-safety { padding: 80px 32px; background: #fff; border-top: 1px solid #f1f5f9; }
.ms5-safety-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; margin-top: 48px;
}
@media(max-width:820px){.ms5-safety-grid{grid-template-columns:1fr 1fr}}

.ms5-safety-card {
  padding: 28px 24px; border-radius: 20px;
  background: #fff;
  border: 1.5px solid rgba(37,99,235,.12);
  box-shadow: 0 2px 16px rgba(37,99,235,.06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ms5-safety-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.22);
}
.ms5-safety-ico {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.ms5-safety-ico svg { width: 26px; height: 26px; }
.ms5-sc1 .ms5-safety-ico { background: rgba(37,99,235,.1); color: #2563eb; }
.ms5-sc2 .ms5-safety-ico { background: rgba(220,38,38,.1); color: #dc2626; }
.ms5-sc3 .ms5-safety-ico { background: rgba(13,148,136,.1); color: #0d9488; }
.ms5-sc4 .ms5-safety-ico { background: rgba(124,58,237,.1); color: #7c3aed; }

.ms5-safety-title { font-size: 15px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.ms5-safety-desc  { font-size: 13px; line-height: 1.6; color: #64748b; }

/* ═══════════════════════════════════
   §7  CTA
═══════════════════════════════════ */
#ms5-cta {
  padding: 100px 32px;
  background: linear-gradient(135deg,#1e3a8a 0%,#115e59 100%);
  text-align: center; position: relative; overflow: hidden;
}
#ms5-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%,rgba(255,255,255,.11),transparent 55%),
              radial-gradient(ellipse at 80% 20%,rgba(255,255,255,.07),transparent 45%);
}
.ms5-cta-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255,255,255,.06);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.ms5-cta-ring:nth-child(1) { width: 500px; height: 500px; }
.ms5-cta-ring:nth-child(2) { width: 800px; height: 800px; }

#ms5-cta .ms5-chip { background: rgba(255,255,255,.15); color: #bfdbfe; }
#ms5-cta .ms5-h2 { color: #fff; font-size: clamp(28px,4.5vw,52px); }
#ms5-cta .ms5-sub { color: rgba(255,255,255,.8); margin-bottom: 44px; }

.ms5-cta-btns {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; position: relative;
}
.ms5-cta-main {
  display: inline-block !important;
  background: #fff !important; color: #1d4ed8 !important;
  font-size: 18px !important; font-weight: 900 !important;
  padding: 20px 52px !important; border-radius: 16px !important;
  border: none !important; cursor: pointer !important;
  box-shadow: 0 12px 44px rgba(0,0,0,.26) !important;
  transition: transform .22s, box-shadow .22s !important;
  text-decoration: none !important; white-space: nowrap !important;
  letter-spacing: -.01em !important; line-height: 1.2 !important;
}
.ms5-cta-main:hover { transform: translateY(-4px) !important; box-shadow: 0 22px 60px rgba(0,0,0,.34) !important; }

.ms5-cta-ghost {
  display: inline-block !important;
  background: rgba(255,255,255,.15) !important; color: #fff !important;
  font-size: 17px !important; font-weight: 700 !important;
  padding: 20px 44px !important; border-radius: 16px !important;
  border: 2px solid rgba(255,255,255,.35) !important; cursor: pointer !important;
  transition: background .22s, transform .22s !important;
  text-decoration: none !important; white-space: nowrap !important;
  line-height: 1.2 !important;
}
.ms5-cta-ghost:hover { background: rgba(255,255,255,.24) !important; transform: translateY(-3px) !important; }

/* ── Dark mode ── */
html.ms-dark #ms5-steps{background:linear-gradient(160deg,#182038 0%,#14201e 100%)!important}
html.ms-dark #ms5-types{background:#1e293b!important}
html.ms-dark #ms5-report{background:linear-gradient(160deg,#14201e 0%,#182038 100%)!important}
html.ms-dark #ms5-safety{background:#1e293b!important;border-top-color:rgba(255,255,255,.06)!important}
html.ms-dark .ms5-h2{color:#f1f5f9!important}
html.ms-dark .ms5-sub{color:#94a3b8!important}
html.ms-dark .ms5-step h3{color:#f1f5f9!important}
html.ms-dark .ms5-step p{color:#94a3b8!important}
html.ms-dark .ms5-step-num{background:#1e293b!important}
html.ms-dark .ms5-type{background:#243347!important;border-color:rgba(255,255,255,.07)!important}
html.ms-dark .ms5-type h4{color:#f1f5f9!important}
html.ms-dark .ms5-type p{color:#94a3b8!important}
html.ms-dark .ms5-type-head{filter:brightness(.9)}
html.ms-dark .ms5-safety-card{background:#243347!important;border-color:rgba(255,255,255,.06)!important}
html.ms-dark .ms5-safety-title{color:#f1f5f9!important}
html.ms-dark .ms5-safety-desc{color:#94a3b8!important}
html.ms-dark .ms5-rep-card{background:#1e293b!important;border-color:rgba(255,255,255,.08)!important}
html.ms-dark .ms5-rc-name{color:#f1f5f9!important}
html.ms-dark .ms5-rc-line{background:rgba(255,255,255,.1)!important}
html.ms-dark .ms5-rc-dx{background:#243347!important;border-color:rgba(255,255,255,.07)!important}
html.ms-dark .ms5-rc-dx-name{color:#cbd5e1!important}
html.ms-dark .ms5-rc-btn-s{background:#334155!important;color:#94a3b8!important}
html.ms-dark .ms5-check{color:#cbd5e1!important}
html.ms-dark .ms5-rc-h{border-bottom-color:rgba(255,255,255,.07)!important}
html.ms-dark .ms5-rc-dx-bar{background:rgba(255,255,255,.1)!important}
