/* PM Nexus Risk Radar — v1.0.6
   Design system: identical to Apply Hub v1.5.9 + Decision Replay v1.0.0
   Primary accent: AMBER (matching Apply Hub hero & kicker)              */

/* ── Tokens (scoped to .pmnx-risk, same names as Apply Hub) ─── */
.pmnx-risk {
  --blue:       var(--pmnx-apply-blue);
  --blue-md:    var(--pmnx-apply-blue-md);
  --blue-bg:    var(--pmnx-apply-blue-bg);
  --blue-bdr:   var(--pmnx-apply-blue-bdr);
  --teal:       var(--pmnx-apply-teal);
  --teal-md:    var(--pmnx-apply-teal-md);
  --teal-bg:    var(--pmnx-apply-teal-bg);
  --teal-bdr:   var(--pmnx-apply-teal-bdr);
  --amber:      var(--pmnx-apply-amber);
  --amber-md:   var(--pmnx-apply-amber-md);
  --amber-bg:   var(--pmnx-apply-amber-bg);
  --amber-bdr:  var(--pmnx-apply-amber-bdr);
  --red:        var(--pmnx-apply-danger);
  --red-bg:     var(--pmnx-apply-danger-bg);
  --red-bdr:    var(--pmnx-apply-danger-bdr);
  --orange:     var(--pmnx-apply-amber-dark);
  --orange-bg:  var(--pmnx-apply-yellow-bg);
  --orange-bdr: var(--pmnx-apply-yellow);
  --text:       var(--pmnx-apply-text);
  --text-md:    var(--pmnx-apply-text-md);
  --text-lt:    var(--pmnx-apply-text-lt);
  --text-muted: var(--pmnx-apply-text-muted);
  --bg:         var(--pmnx-apply-bg);
  --bg-soft:    var(--pmnx-apply-bg-soft);
  --bg-mid:     var(--pmnx-apply-bg-mid);
  --border:     var(--pmnx-apply-border);
  --border-md:  var(--pmnx-apply-border-md);
  --r:          var(--pmnx-apply-radius);
  --rl:         var(--pmnx-apply-radius-lg);
  --rxl:        var(--pmnx-apply-radius-xl);
  --motion:     160ms;
  --shadow-card:       var(--pmnx-apply-shadow-card);
  --shadow-card-hover: var(--pmnx-apply-shadow-card-hover);
  --shadow-exec:       0 24px 64px rgba(7,24,44,.24);

  display: block;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
.pmnx-risk *, .pmnx-risk *::before, .pmnx-risk *::after { box-sizing: border-box; }
.pmnx-risk a { text-decoration: none; color: inherit; }
.pmnx-risk button { font-family: inherit; cursor: pointer; }
.pmnx-risk h1, .pmnx-risk h2, .pmnx-risk h3, .pmnx-risk h4 { margin: 0; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }
.pmnx-risk p { margin: 0; color: var(--text-lt); line-height: 1.75; }

/* ── Action bar ────────────────────────────────────────────── */
.pmnx-risk-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.pmnx-risk-bar-label {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-lt); white-space: nowrap;
}
.pmnx-risk-project-selector { position: relative; display: inline-flex; align-items: center; }
.pmnx-risk-project-selector select {
  appearance: none; -webkit-appearance: none;
  background: var(--bg-soft); border: 1px solid var(--border-md);
  border-radius: var(--r); padding: 8px 30px 8px 12px;
  font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; font-family: inherit; min-width: 160px;
  transition: border-color var(--motion);
}
.pmnx-risk-project-selector select:focus { outline: none; border-color: var(--amber-md); }
.pmnx-risk-project-selector > svg { position: absolute; right: 9px; pointer-events: none; width: 14px; height: 14px; color: var(--text-lt); }

/* ── Buttons ───────────────────────────────────────────────── */
.pmnx-risk-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--pmnx-apply-btn-font-size); font-weight: var(--pmnx-apply-btn-font-weight); padding: var(--pmnx-apply-btn-padding);
  border-radius: var(--r); border: 1px solid transparent;
  transition: transform var(--motion) ease, background var(--motion) ease,
              box-shadow var(--motion) ease, border-color var(--motion) ease;
  white-space: nowrap; line-height: 1; cursor: pointer;
  font-family: inherit; text-decoration: none;
}
/* PRIMARY = amber (matches Apply Hub exactly) */
.pmnx-risk-btn--primary {
  background: var(--amber-md) !important; color: var(--pmnx-apply-bg) !important; border-color: var(--amber-md) !important;
  box-shadow: 0 1px 4px rgba(133,79,11,.25), 0 4px 12px rgba(186,117,23,.2);
}
.pmnx-risk-btn--primary:hover {
  background: var(--amber) !important; border-color: var(--amber) !important; color: var(--pmnx-apply-bg) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(133,79,11,.3), 0 6px 20px rgba(186,117,23,.25);
}
.pmnx-risk-btn--secondary {
  background: var(--bg) !important; color: var(--text-md) !important; border-color: var(--border-md) !important;
}
.pmnx-risk-btn--secondary:hover { background: var(--bg-soft) !important; color: var(--text) !important; transform: translateY(-1px); }
.pmnx-risk-btn--ghost-dark { background: transparent !important; color: var(--pmnx-apply-bg) !important; border-color: rgba(255,255,255,.38) !important; }
.pmnx-risk-btn--ghost-dark:hover { background: rgba(255,255,255,.12) !important; border-color: rgba(255,255,255,.65) !important; color: var(--pmnx-apply-bg) !important; }
.pmnx-risk-btn--lg { font-size: 14px; padding: 12px 24px; }
.pmnx-risk-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Kicker (amber dot, amber text — identical to Apply Hub) ── */
.pmnx-risk-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-md); margin-bottom: 14px;
}
.pmnx-risk-kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber-md);
  animation: riskPulse 2s ease-in-out infinite;
}
@keyframes riskPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.8); }
}

/* ── Hero ──────────────────────────────────────────────────── */
.pmnx-risk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px; align-items: stretch; padding: 36px 0 28px;
}
.pmnx-risk-hero-copy { display: flex; flex-direction: column; justify-content: center; }
.pmnx-risk-hero-copy h1 {
  font-size: clamp(28px, 3.8vw, 42px); font-weight: 900;
  line-height: 1.06; letter-spacing: -.035em; margin-bottom: 14px;
}
.pmnx-risk-hero-copy > p { font-size: 15px; line-height: 1.75; max-width: 500px; margin-bottom: 22px; }
.pmnx-risk-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Amber gradient aside — identical to Apply Hub hero-aside */
.pmnx-risk-hero-aside {
  background: radial-gradient(circle at 85% 12%, rgba(186,117,23,.14), transparent 32%),
              linear-gradient(135deg, var(--pmnx-apply-bg), var(--amber-bg));
  border: 1px solid var(--amber-bdr);
  border-radius: var(--rxl); padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.pmnx-risk-aside-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 8px;
}
.pmnx-risk-aside-title { font-size: 17px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.pmnx-risk-aside-body  { font-size: 13px; line-height: 1.65; color: var(--text-md); margin-bottom: 0; }
.pmnx-risk-aside-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--amber-bdr);
}
.pmnx-risk-aside-meta-item span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.pmnx-risk-aside-meta-item strong { font-size: 13px; font-weight: 700; color: var(--text); }

/* Risk icon (amber shield, matches landing page icon-wrap icon-amber) */
.pmnx-risk-icon-wrap {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--amber-bg); color: var(--amber-md);
  border: 1px solid var(--amber-bdr);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ── Layout ────────────────────────────────────────────────── */
.pmnx-risk-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 28px; align-items: start; padding-bottom: 60px;
}
.pmnx-risk-main { min-width: 0; }

/* ── Cards / panels ────────────────────────────────────────── */
.pmnx-risk-panel {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--rxl); box-shadow: var(--shadow-card);
  margin-bottom: 20px; overflow: hidden;
}
.pmnx-risk-panel-head { padding: 22px 24px 0; }
.pmnx-risk-panel-label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.pmnx-risk-panel-head h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.pmnx-risk-panel-inner { padding: 16px 24px 22px; }

/* How-it-works step cards */
.pmnx-risk-how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 22px; }
.pmnx-risk-how-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 18px;
  transition: border-color var(--motion), transform var(--motion);
}
.pmnx-risk-how-card:hover { border-color: var(--amber-bdr); transform: translateY(-2px); }
.pmnx-risk-how-num {
  width: 28px; height: 28px; border-radius: var(--pmnx-apply-radius-sm);
  background: var(--amber-bg); color: var(--amber-md);
  border: 1px solid var(--amber-bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-bottom: 12px;
}
.pmnx-risk-how-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.pmnx-risk-how-body  { font-size: 13px; color: var(--text-md); line-height: 1.55; }

/* Tailoring note */
.pmnx-risk-tailoring-note {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--teal-bg); border: 1px solid var(--teal-bdr);
  border-radius: var(--r); padding: 11px 14px;
  font-size: 13px; color: var(--teal); margin-bottom: 16px;
}

/* Status chips */
.pmnx-risk-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--pmnx-apply-radius-pill);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.pmnx-risk-chip--done     { background: var(--teal-bg);   color: var(--teal);   border: 1px solid var(--teal-bdr); }
.pmnx-risk-chip--ready    { background: var(--amber-bg);  color: var(--amber);  border: 1px solid var(--amber-bdr); }
.pmnx-risk-chip--critical { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-bdr); }
.pmnx-risk-chip--high     { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-bdr); }
.pmnx-risk-chip--moderate { background: var(--amber-bg);  color: var(--amber);  border: 1px solid var(--amber-bdr); }
.pmnx-risk-chip--low      { background: var(--teal-bg);   color: var(--teal);   border: 1px solid var(--teal-bdr); }

/* ── Wizard ────────────────────────────────────────────────── */
.pmnx-risk-wizard { padding: 24px; }
.pmnx-risk-progress { height: 3px; background: var(--border); border-radius: var(--pmnx-apply-radius-sm); margin-bottom: 28px; overflow: hidden; }
.pmnx-risk-progress-fill { height: 100%; background: linear-gradient(90deg, var(--amber-md), var(--teal-md)); border-radius: var(--pmnx-apply-radius-sm); transition: width .4s ease; }
.pmnx-risk-steps { display: flex; gap: 0; position: relative; margin-bottom: 32px; }
.pmnx-risk-steps::before { content: ''; position: absolute; top: 13px; left: 24px; right: 24px; height: 1px; background: var(--border); z-index: 0; }
.pmnx-risk-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
.pmnx-risk-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--text-muted);
  transition: all var(--motion);
}
.pmnx-risk-step--active .pmnx-risk-step-num { border-color: var(--amber-md); background: var(--amber-md); color: var(--pmnx-apply-bg); }
.pmnx-risk-step--done   .pmnx-risk-step-num { border-color: var(--teal);    background: var(--teal);    color: var(--pmnx-apply-bg); }
.pmnx-risk-step-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-align: center; }
.pmnx-risk-step--active .pmnx-risk-step-label { color: var(--text); }
.pmnx-risk-step-content { display: none; }
.pmnx-risk-step-content.is-active { display: block; animation: rRiseIn .22s ease both; }
@keyframes rRiseIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* Form elements — same style as Apply Hub */
.pmnx-risk-field { margin-bottom: 18px; }
.pmnx-risk-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-md); margin-bottom: 7px; letter-spacing: .01em; }
.pmnx-risk-label .hint { font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.pmnx-risk-input, .pmnx-risk-select, .pmnx-risk-textarea {
  width: 100%; box-sizing: border-box; padding: 9px 12px;
  border: 1px solid var(--border-md); border-radius: var(--r);
  font-size: 13px; font-family: inherit; color: var(--text); background: var(--bg);
  transition: border-color var(--motion), background var(--motion); -webkit-appearance: none;
}
.pmnx-risk-input:focus, .pmnx-risk-select:focus, .pmnx-risk-textarea:focus {
  outline: none; border-color: var(--amber-md); background: var(--bg);
}
.pmnx-risk-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; cursor: pointer; }
.pmnx-risk-textarea { resize: vertical; min-height: 78px; line-height: 1.6; }
.pmnx-risk-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pmnx-risk-field-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Domain cards — amber accent (matches Apply Hub card hover) */
.pmnx-risk-domains { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.pmnx-risk-domain-card {
  border: 1px solid var(--border); border-radius: var(--r); padding: 13px;
  cursor: pointer; transition: all var(--motion); display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg); position: relative;
}
.pmnx-risk-domain-card:hover { border-color: var(--amber-bdr); background: linear-gradient(180deg,var(--pmnx-apply-bg),var(--pmnx-apply-bg-cream)); }
.pmnx-risk-domain-card.is-checked { border-color: var(--amber-bdr); background: var(--amber-bg); }
.pmnx-risk-domain-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--text-lt); }
.pmnx-risk-domain-card.is-checked .pmnx-risk-domain-icon { color: var(--amber-md); }
.pmnx-risk-domain-name { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.pmnx-risk-domain-desc { font-size: 11px; color: var(--text-lt); line-height: 1.4; }
.pmnx-risk-domain-check { width: 15px; height: 15px; border: 2px solid var(--border-md); border-radius: var(--pmnx-apply-radius-sm); margin-left: auto; flex-shrink: 0; transition: all var(--motion); position: relative; }
.pmnx-risk-domain-card.is-checked .pmnx-risk-domain-check { background: var(--amber-md); border-color: var(--amber-md); }
.pmnx-risk-domain-card.is-checked .pmnx-risk-domain-check::after { content:''; position:absolute; top:1px; left:3px; width:5px; height:8px; border:2px solid var(--pmnx-apply-bg); border-top:none; border-left:none; transform:rotate(45deg); }

.pmnx-risk-wizard-nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px 0; border-top: 1px solid var(--border); margin-top: 8px; }

/* ── Analysing ──────────────────────────────────────────────── */
.pmnx-risk-analysing { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 72px 24px; text-align: center; }
.pmnx-risk-analysing.is-active { display: flex; animation: rRiseIn .3s ease both; }
.pmnx-risk-pulse {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--amber-bg); border: 1px solid var(--amber-bdr);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber-md); animation: rPulse 1.6s ease-in-out infinite; margin-bottom: 24px;
}
@keyframes rPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(186,117,23,.3); }
  50% { transform: scale(1.07); box-shadow: 0 0 0 16px rgba(186,117,23,0); }
}
.pmnx-risk-analysing-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.pmnx-risk-analysing-sub { font-size: 14px; color: var(--text-md); max-width: 360px; line-height: 1.6; margin-bottom: 28px; }
.pmnx-risk-analysing-steps { display: flex; flex-direction: column; gap: 10px; text-align: left; max-width: 320px; }
.pmnx-risk-analysing-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-lt); }
.pmnx-risk-analysing-step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-md); flex-shrink: 0; transition: background .3s; }
.pmnx-risk-analysing-step.is-done   .pmnx-risk-analysing-step-dot { background: var(--teal); }
.pmnx-risk-analysing-step.is-active .pmnx-risk-analysing-step-dot { background: var(--amber-md); animation: rDotPulse .8s ease-in-out infinite; }
@keyframes rDotPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }

/* ── Result ─────────────────────────────────────────────────── */
.pmnx-risk-result { display: none; }
.pmnx-risk-result.is-active { display: block; animation: rRiseIn .3s ease both; }
.pmnx-risk-score-bar {
  background: radial-gradient(circle at 85% 12%, rgba(186,117,23,.18), transparent 30%),
              linear-gradient(135deg, var(--pmnx-apply-navy) 0%, var(--pmnx-apply-blue) 100%);
  border-radius: var(--rxl); padding: 28px; color: var(--pmnx-apply-bg); margin-bottom: 20px;
}
.pmnx-risk-score-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pmnx-risk-score-num { font-size: 54px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.pmnx-risk-score-suffix { font-size: 18px; opacity: .6; }
.pmnx-risk-score-level { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.pmnx-risk-score-summary { font-size: 13px; opacity: .8; line-height: 1.6; max-width: 400px; }
.pmnx-risk-heat { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 20px; }
.pmnx-risk-heat-cell { border-radius: var(--r); padding: 13px; text-align: center; }
.pmnx-risk-heat-cell--critical { background: var(--red-bg);    border: 1px solid var(--red-bdr); }
.pmnx-risk-heat-cell--high     { background: var(--orange-bg); border: 1px solid var(--orange-bdr); }
.pmnx-risk-heat-cell--moderate { background: var(--amber-bg);  border: 1px solid var(--amber-bdr); }
.pmnx-risk-heat-cell--low      { background: var(--teal-bg);   border: 1px solid var(--teal-bdr); }
.pmnx-risk-heat-count { font-size: 26px; font-weight: 900; line-height: 1; }
.pmnx-risk-heat-cell--critical .pmnx-risk-heat-count { color: var(--red); }
.pmnx-risk-heat-cell--high     .pmnx-risk-heat-count { color: var(--orange); }
.pmnx-risk-heat-cell--moderate .pmnx-risk-heat-count { color: var(--amber); }
.pmnx-risk-heat-cell--low      .pmnx-risk-heat-count { color: var(--teal); }
.pmnx-risk-heat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }
.pmnx-risk-tailoring-conn { background: var(--amber-bg); border: 1px solid var(--amber-bdr); border-radius: var(--r); padding: 10px 14px; font-size: 13px; color: var(--amber); margin-bottom: 16px; display: flex; gap: 8px; }
.pmnx-risk-cluster-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.pmnx-risk-cluster-icon { width: 30px; height: 30px; border-radius: var(--pmnx-apply-radius-sm); background: var(--amber-bg); color: var(--amber-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pmnx-risk-cluster-name { font-size: 15px; font-weight: 800; }
.pmnx-risk-cluster-count { font-size: 12px; color: var(--text-muted); }
.pmnx-risk-cluster-sev { margin-left: auto; }
.pmnx-risk-card { border: 1px solid var(--border); border-radius: var(--r); padding: 16px; margin-bottom: 10px; background: var(--bg); transition: box-shadow var(--motion), border-color var(--motion); }
.pmnx-risk-card:hover { box-shadow: var(--shadow-card-hover); }
.pmnx-risk-card--Critical { border-left: 3px solid var(--red); }
.pmnx-risk-card--High     { border-left: 3px solid var(--orange); }
.pmnx-risk-card--Moderate { border-left: 3px solid var(--amber-md); }
.pmnx-risk-card--Low      { border-left: 3px solid var(--teal); }
.pmnx-risk-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pmnx-risk-card-id    { font-size: 11px; font-weight: 800; color: var(--text-muted); margin-bottom: 3px; }
.pmnx-risk-card-title { font-size: 15px; font-weight: 700; }
.pmnx-risk-card-desc  { font-size: 13px; color: var(--text-md); line-height: 1.6; margin-bottom: 12px; }
.pmnx-risk-card-meta  { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 10px; }
.pmnx-risk-card-meta-cell { background: var(--bg-soft); border-radius: var(--pmnx-apply-radius-sm); padding: 8px 10px; }
.pmnx-risk-card-meta-cell .label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 2px; }
.pmnx-risk-card-meta-cell .value { font-size: 13px; font-weight: 600; }
.pmnx-risk-card-mitigation { background: var(--teal-bg); border-radius: var(--pmnx-apply-radius-sm); padding: 10px 12px; }
.pmnx-risk-card-mitigation .mit-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--teal); margin-bottom: 3px; }
.pmnx-risk-card-mitigation .mit-text { font-size: 13px; color: var(--text); line-height: 1.55; }
.pmnx-risk-sev-badge { display: inline-block; padding: 3px 9px; border-radius: var(--pmnx-apply-radius-pill); font-size: 11px; font-weight: 700; white-space: nowrap; }
.pmnx-risk-sev-badge--Critical { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-bdr); }
.pmnx-risk-sev-badge--High     { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-bdr); }
.pmnx-risk-sev-badge--Moderate { background: var(--amber-bg);  color: var(--amber);  border: 1px solid var(--amber-bdr); }
.pmnx-risk-sev-badge--Low      { background: var(--teal-bg);   color: var(--teal);   border: 1px solid var(--teal-bdr); }
.pmnx-risk-actions-table { width: 100%; border-collapse: collapse; }
.pmnx-risk-actions-table th { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); padding: 8px 10px; border-bottom: 2px solid var(--border); text-align: left; }
.pmnx-risk-actions-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: top; }
.pmnx-risk-actions-table tr:last-child td { border-bottom: none; }
.pmnx-risk-action-text { color: var(--text); font-weight: 600; }
.pmnx-risk-action-owner { color: var(--text-lt); }
.pmnx-risk-action-horizon { font-weight: 700; white-space: nowrap; }
.pmnx-risk-horizon--Immediate   { color: var(--red); }
.pmnx-risk-horizon--Short-term  { color: var(--amber); }
.pmnx-risk-horizon--Medium-term { color: var(--teal); }
.pmnx-risk-signal { border-left: 3px solid var(--blue-md); background: var(--bg-soft); border-radius: 0 var(--r) var(--r) 0; padding: 10px 14px; margin-bottom: 10px; }
.pmnx-risk-signal-title    { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.pmnx-risk-signal-indicate { font-size: 12px; color: var(--text-lt); margin-bottom: 3px; }
.pmnx-risk-signal-cadence  { font-size: 11px; font-weight: 700; color: var(--blue-md); }
.pmnx-risk-assumption { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; }
.pmnx-risk-assumption-text { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.pmnx-risk-assumption-meta { display: flex; gap: 16px; font-size: 11px; color: var(--text-muted); }

/* ── Sidebar ─────────────────────────────────────────────────── */
.pmnx-risk-side-panel { background: var(--bg); border: 1px solid var(--border); border-radius: var(--rxl); box-shadow: var(--shadow-card); margin-bottom: 16px; overflow: hidden; }
.pmnx-risk-side-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--border); }
.pmnx-risk-side-head h3 { margin: 4px 0 0; font-size: 14px; font-weight: 800; }
.pmnx-risk-side-body { padding: 14px 18px 16px; }
.pmnx-risk-history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pmnx-risk-history-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--r); text-decoration: none; color: var(--text); transition: border-color var(--motion), background var(--motion); }
.pmnx-risk-history-item:hover { border-color: var(--amber-bdr); background: var(--amber-bg); }
.pmnx-risk-history-item-title { font-size: 13px; font-weight: 600; flex: 1; }
.pmnx-risk-history-item-date  { font-size: 11px; color: var(--text-muted); }
.pmnx-risk-email-form { display: flex; gap: 8px; }
.pmnx-risk-email-form input { flex: 1; }
.pmnx-risk-note { background: var(--bg-soft); border-radius: var(--r); padding: 12px 14px; font-size: 13px; color: var(--text-md); line-height: 1.6; }

/* Error msg */
.pmnx-risk-error-msg { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-bdr); border-radius: var(--r); padding: 11px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; display: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pmnx-risk-hero   { grid-template-columns: 1fr; }
  .pmnx-risk-layout { grid-template-columns: 1fr; }
  .pmnx-risk-hero-aside { order: -1; }
}
@media (max-width: 680px) {
  .pmnx-risk-domains { grid-template-columns: 1fr 1fr; }
  .pmnx-risk-heat    { grid-template-columns: 1fr 1fr; }
  .pmnx-risk-field-grid { grid-template-columns: 1fr; }
  .pmnx-risk-how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .pmnx-risk-domains { grid-template-columns: 1fr; }
}

/* ── Modal ──────────────────────────────────────────────────── */
#pmnx-risk-project-modal { display:none; position:fixed; inset:0; z-index:9999; background:rgba(15,23,42,.55); align-items:center; justify-content:center; padding:20px; }
.pmnx-risk-modal-inner { background:var(--pmnx-apply-bg); border-radius:var(--rxl); padding:28px 32px; max-width:520px; width:100%; position:relative; max-height:90vh; overflow-y:auto; box-shadow: var(--shadow-exec); }
.pmnx-risk-modal-close { position:absolute; top:14px; right:16px; background:none; border:none; cursor:pointer; color:var(--text-muted); font-size:22px; line-height:1; transition:color var(--motion); }
.pmnx-risk-modal-close:hover { color: var(--text); }
@keyframes rToastIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }


/* ── Inline "Create new project" form (Decision Replay pattern) ─ */
.pmnx-risk-create-panel {
  display: none;
  background: linear-gradient(135deg, var(--pmnx-apply-bg), var(--bg-soft));
  border: 1px solid var(--amber-bdr);
  border-radius: var(--rxl); padding: 26px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.pmnx-risk-create-panel.is-open { display: block; animation: rRiseIn .22s ease both; }
.pmnx-risk-create-panel h3 {
  font-size: 16px; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 4px; color: var(--text);
}
.pmnx-risk-create-panel > p { font-size: 13px; color: var(--text-lt); margin-bottom: 20px; }
.pmnx-risk-create-section { margin-bottom: 20px; }
.pmnx-risk-create-section-title {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.pmnx-risk-create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pmnx-risk-create-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.pmnx-risk-create-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--text-md); margin-bottom: 5px;
}
.pmnx-risk-create-input, .pmnx-risk-create-select, .pmnx-risk-create-textarea {
  width: 100%; box-sizing: border-box; padding: 8px 11px;
  border: 1px solid var(--border-md); border-radius: var(--r);
  font-size: 13px; font-family: inherit; color: var(--text) !important; background: var(--bg) !important;
  transition: border-color var(--motion);
  -webkit-appearance: none;
}
.pmnx-risk-create-input:focus, .pmnx-risk-create-select:focus, .pmnx-risk-create-textarea:focus {
  outline: none; border-color: var(--amber-md);
  box-shadow: 0 0 0 3px rgba(186,117,23,.12);
}
.pmnx-risk-create-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 9px center !important;
  padding-right: 28px !important; cursor: pointer;
}
.pmnx-risk-create-textarea { resize: vertical; min-height: 70px; line-height: 1.55; }
.pmnx-risk-create-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
@media (max-width: 680px) {
  .pmnx-risk-create-grid { grid-template-columns: 1fr; }
  .pmnx-risk-create-grid-3 { grid-template-columns: 1fr 1fr; }
}


/* v1.1.0 Apply shared context signal */
.pmnx-risk-tailoring-signal{max-width:1140px;margin:12px auto 22px;padding:16px 18px;border:1px solid rgba(186,117,23,.28);border-radius:var(--rl,12px);background:linear-gradient(135deg,var(--pmnx-apply-bg),var(--amber-bg,var(--pmnx-apply-amber-bg)));display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 8px 24px rgba(133,79,11,.08)}
.pmnx-risk-tailoring-signal strong{display:block;color:var(--text,var(--pmnx-apply-text));font-size:15px;line-height:1.25;margin-bottom:4px}
.pmnx-risk-tailoring-signal p{margin:0;color:var(--text-md,var(--pmnx-apply-text-md));font-size:13px;line-height:1.5}
.pmnx-risk-signal-kicker{display:block;margin-bottom:4px;color:var(--amber-md,var(--pmnx-apply-amber-md));font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
@media(max-width:720px){.pmnx-risk-tailoring-signal{align-items:flex-start;flex-direction:column}}

/* PM Nexus Apply visual parity v1.1.5 */
.pmnx-risk .pmnx-risk-hero-grid h1,
.pmnx-risk .pmnx-risk-hero-copy h1{
  font-size:clamp(32px,4vw,46px)!important;
  font-weight:900!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
  color:var(--pmnx-apply-ink)!important;
}
.pmnx-risk .pmnx-risk-hero-grid p,
.pmnx-risk .pmnx-risk-hero-copy>p{font-size:15px!important;line-height:1.65!important;color:var(--pmnx-apply-text-md)!important;}
.pmnx-risk .pmnx-risk-hero-grid>div:last-child,
.pmnx-risk .pmnx-risk-hero-aside{
  background:radial-gradient(circle at 85% 12%,rgba(186,117,23,.14),transparent 32%),linear-gradient(135deg,var(--pmnx-apply-bg),var(--pmnx-apply-amber-bg))!important;
  border:1px solid var(--pmnx-apply-amber-bdr)!important;
  border-radius:var(--pmnx-apply-radius-xl)!important;
}
.pmnx-risk .pmnx-risk-hero-grid>div:last-child>div:first-child,
.pmnx-risk .pmnx-risk-icon-wrap{
  width:44px!important;height:44px!important;border-radius:11px!important;
  background:rgba(255,255,255,.58)!important;border:1px solid var(--pmnx-apply-amber-bdr)!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  margin-bottom:14px!important;
}
.pmnx-risk .pmnx-risk-panel-label{font-size:10px!important;font-weight:800!important;letter-spacing:.12em!important;text-transform:uppercase!important;color:var(--pmnx-apply-amber)!important;}
.pmnx-risk .pmnx-risk-panel-head h2{font-size:18px!important;font-weight:800!important;letter-spacing:-.03em!important;color:var(--pmnx-apply-ink)!important;}
.pmnx-risk .pmnx-risk-how-card,
.pmnx-risk .pmnx-how-grid>div{
  background:var(--pmnx-apply-bg-soft)!important;
  border:1px solid var(--pmnx-apply-border)!important;
  border-radius:var(--pmnx-apply-radius-lg)!important;
  padding:18px!important;
}
.pmnx-risk .pmnx-risk-how-num,
.pmnx-risk .pmnx-how-grid>div>div:first-child{
  width:28px!important;height:28px!important;border-radius:var(--pmnx-apply-radius)!important;
  background:var(--pmnx-apply-amber-bg)!important;color:var(--pmnx-apply-amber-md)!important;
  border:1px solid var(--pmnx-apply-amber-bdr)!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  font-size:12px!important;font-weight:800!important;margin-bottom:12px!important;
}
.pmnx-risk .pmnx-risk-how-title,
.pmnx-risk .pmnx-how-grid>div>div:nth-child(2){font-size:14px!important;font-weight:700!important;color:var(--pmnx-apply-ink)!important;margin-bottom:6px!important;}
.pmnx-risk .pmnx-risk-how-body,
.pmnx-risk .pmnx-how-grid>div>div:nth-child(3){font-size:13px!important;line-height:1.65!important;color:var(--pmnx-apply-text-md)!important;}


/* PM Nexus Apply typography parity v1.1.6
   Use Tailoring hero title metrics and Risk Radar How-it-works metrics across Apply. */
.pmnx-risk .pmnx-risk-hero-grid h1,
.pmnx-risk .pmnx-risk-hero-copy h1{
  font-size: clamp(28px, 3.5vw, 42px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -.04em !important;
  color: var(--pmnx-apply-ink) !important;
}
.pmnx-risk .pmnx-risk-hero-grid p,
.pmnx-risk .pmnx-risk-hero-copy > p{
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--pmnx-apply-text-md) !important;
  max-width: 620px !important;
}
.pmnx-risk .pmnx-risk-hero-aside,
.pmnx-risk .pmnx-risk-hero-grid > div:last-child{
  font-size: 13px !important;
  line-height: 1.5 !important;
}
.pmnx-risk .pmnx-risk-panel-label{
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  color: var(--pmnx-apply-amber) !important;
}
.pmnx-risk .pmnx-risk-panel-head h2{
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -.03em !important;
  color: var(--pmnx-apply-ink) !important;
}
.pmnx-risk .pmnx-risk-how-num,
.pmnx-risk .pmnx-how-grid > div > div:first-child{
  width: 28px !important;
  height: 28px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border-radius: var(--pmnx-apply-radius) !important;
}
.pmnx-risk .pmnx-risk-how-title,
.pmnx-risk .pmnx-how-grid > div > div:nth-child(2){
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--pmnx-apply-ink) !important;
}
.pmnx-risk .pmnx-risk-how-body,
.pmnx-risk .pmnx-how-grid > div > div:nth-child(3){
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: var(--pmnx-apply-text-md) !important;
}


/* PM Nexus Apply typography final parity v1.1.7 */
.pmnx-risk .pmnx-risk-hero-grid h1,
.pmnx-risk .pmnx-risk-hero-copy h1{
  font-size:clamp(32px,4vw,46px)!important;
  font-weight:900!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
  color:var(--pmnx-apply-ink)!important;
  max-width:18ch!important;
}
.pmnx-risk .pmnx-risk-hero-grid p,
.pmnx-risk .pmnx-risk-hero-copy>p{
  font-size:15px!important;
  line-height:1.7!important;
  color:var(--pmnx-apply-text-md)!important;
  max-width:620px!important;
  margin-bottom:22px!important;
}
.pmnx-risk .pmnx-risk-hero-actions{margin-top:0!important;display:flex!important;gap:10px!important;flex-wrap:wrap!important;}
.pmnx-risk .pmnx-risk-hero-aside,
.pmnx-risk .pmnx-risk-hero-grid>div:last-child{
  font-size:13px!important;
  line-height:1.5!important;
}
.pmnx-risk .pmnx-risk-panel-label{
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  color:var(--pmnx-apply-amber)!important;
}
.pmnx-risk .pmnx-risk-panel-head h2{
  font-size:18px!important;
  font-weight:800!important;
  line-height:1.25!important;
  letter-spacing:-.03em!important;
  color:var(--pmnx-apply-ink)!important;
}
.pmnx-risk .pmnx-risk-how-num,
.pmnx-risk .pmnx-how-grid>div>div:first-child{
  width:28px!important;height:28px!important;
  font-size:12px!important;font-weight:800!important;
  border-radius:var(--pmnx-apply-radius)!important;
}
.pmnx-risk .pmnx-risk-how-title,
.pmnx-risk .pmnx-how-grid>div>div:nth-child(2){
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.35!important;
  color:var(--pmnx-apply-ink)!important;
}
.pmnx-risk .pmnx-risk-how-body,
.pmnx-risk .pmnx-how-grid>div>div:nth-child(3){
  font-size:13px!important;
  line-height:1.65!important;
  color:var(--pmnx-apply-text-md)!important;
}


/* PM Nexus Apply final font parity enforcement — scoped to landing components only */
.pmnx-tailoring-page .pmnx-t-hero-h1,
.pmnx-tailoring-page .pmnx-apply-hero-title,
.pmnx-risk .pmnx-apply-hero-title,
.pmnx-risk .pmnx-risk-hero-copy h1,
.pmnx-replay .pmnx-apply-hero-title,
.pmnx-replay .pmnx-replay-hero-title{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:var(--pmnx-apply-hero-title-size)!important;
  font-weight:var(--pmnx-apply-hero-title-weight)!important;
  line-height:var(--pmnx-apply-hero-title-lh)!important;
  letter-spacing:var(--pmnx-apply-hero-title-ls)!important;
  color:var(--pmnx-apply-ink)!important;
  max-width:var(--pmnx-apply-hero-title-max)!important;
  margin:0 0 14px!important;
}
.pmnx-tailoring-page .pmnx-t-hero-lead,
.pmnx-tailoring-page .pmnx-apply-hero-lead,
.pmnx-risk .pmnx-risk-hero-copy p,
.pmnx-risk .pmnx-apply-hero-lead,
.pmnx-replay .pmnx-replay-hero-sub,
.pmnx-replay .pmnx-apply-hero-lead{
  font-size:var(--pmnx-apply-lead-size)!important;
  line-height:var(--pmnx-apply-lead-lh)!important;
  max-width:var(--pmnx-apply-lead-max)!important;
  color:var(--pmnx-apply-text-md)!important;
  margin:0 0 22px!important;
}
.pmnx-tailoring-page .pmnx-t-panel-title,
.pmnx-tailoring-page .pmnx-risk-panel-head h2,
.pmnx-risk .pmnx-risk-panel-head h2,
.pmnx-replay .pmnx-risk-panel-head h2,
.pmnx-replay .pmnx-apply-panel-title{
  font-size:var(--pmnx-apply-how-title-size)!important;
  font-weight:800!important;
  line-height:1.25!important;
  letter-spacing:-.03em!important;
  color:var(--pmnx-apply-ink)!important;
  margin:0 0 14px!important;
}
.pmnx-risk a.pmnx-apply-btn--primary,
.pmnx-risk a.pmnx-apply-btn--primary:visited,
.pmnx-replay a.pmnx-apply-btn--primary,
.pmnx-replay a.pmnx-apply-btn--primary:visited{color:var(--pmnx-apply-bg)!important;}

/* v1.1.9 — mobile full-width hero actions */
@media (max-width:680px){
  .pmnx-risk .pmnx-risk-hero-copy .hero-actions,
  .pmnx-risk .pmnx-risk-hero-copy > div[style*="display:flex"]{flex-direction:column!important;align-items:stretch!important;width:100%!important}
  .pmnx-risk .pmnx-risk-hero-copy .pmnx-risk-btn,
  .pmnx-risk .pmnx-risk-hero-copy .pmnx-apply-btn{width:100%!important;justify-content:center!important;box-sizing:border-box!important}
}


/* v1.1.10 — mobile guest hero buttons match Tailoring full-width behavior */
@media (max-width:680px){
  .pmnx-risk .pmnx-risk-guest-actions,
  .pmnx-risk .pmnx-risk-hero-copy .pmnx-risk-guest-actions{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
    gap:10px!important;
  }
  .pmnx-risk .pmnx-risk-guest-actions .pmnx-risk-btn,
  .pmnx-risk .pmnx-risk-guest-actions .pmnx-apply-btn{
    width:100%!important;
    min-height:46px!important;
    padding:10px 16px!important;
    font-size:13px!important;
    line-height:1.2!important;
    justify-content:center!important;
    box-sizing:border-box!important;
  }
}
