.plan-risk-assessment-root,
.project-plan-basis-root {
  --pra2-ink: #172033;
  --pra2-muted: #667085;
  --pra2-line: #d9e0ea;
  --pra2-soft: #f5f7fa;
  --pra2-brand: #244cc7;
  --pra2-brand-soft: #edf2ff;
  --pra2-success: #167456;
  --pra2-warn: #a15c06;
  color: var(--pra2-ink);
  margin: 0 0 22px;
}

.pra2-shell { display: grid; gap: 16px; }
.pra2-selector { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--pra2-line); border-radius: 12px; }
.pra2-selector label { display: grid; gap: 6px; min-width: min(420px, 70vw); color: var(--pra2-muted); font-size: .78rem; font-weight: 700; }
.pra2-selector select,
.pra2-form-grid input,
.pra2-form-grid select,
.pra2-form-grid textarea,
.pra2-modal-single textarea,
.pra2-modal-single select { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 10px; background: #fff; color: var(--pra2-ink); font: inherit; }

.pra2-empty { padding: 36px; text-align: center; border: 1px dashed #b9c5d6; border-radius: 12px; background: #fff; }
.pra2-empty strong { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.pra2-empty p { max-width: 700px; margin: 0 auto 18px; color: var(--pra2-muted); line-height: 1.7; }
.pra2-empty-inline { color: var(--pra2-muted); padding: 14px; margin: 0; }

.pra2-summary,
.pra2-panel,
.pra2-project-basis { background: #fff; border: 1px solid var(--pra2-line); border-radius: 14px; overflow: hidden; }
.pra2-summary { padding: 22px; background: linear-gradient(115deg, #fff 0%, #f5f7ff 72%, #edf2ff 100%); }
.pra2-summary > header,
.pra2-panel > header,
.pra2-project-basis > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.pra2-summary h2,
.pra2-panel h3,
.pra2-project-basis h2 { margin: 3px 0 6px; color: var(--pra2-ink); letter-spacing: -.02em; }
.pra2-summary h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.pra2-summary header p,
.pra2-panel header p,
.pra2-project-basis header p { margin: 0; color: var(--pra2-muted); line-height: 1.55; }
.pra2-kicker,
.pra2-panel header span,
.pra2-project-basis header span { color: var(--pra2-brand); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pra2-status { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 9px; border-radius: 999px; color: #345; background: #eef2f6; font-size: .75rem; font-weight: 800; }
.pra2-status.is-submitted { color: #8a4b02; background: #fff1d5; }
.pra2-status.is-reviewed,
.pra2-status.is-referenced { color: #0b6346; background: #dcf6ea; }
.pra2-status.is-returned { color: #9a3412; background: #ffeadf; }

.pra2-summary > dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.pra2-summary > dl > div { padding: 10px 12px; border-left: 2px solid #dbe3f6; }
.pra2-summary dt,
.pra2-candidate dt,
.pra2-project-risk-list dt { color: var(--pra2-muted); font-size: .7rem; font-weight: 700; }
.pra2-summary dd,
.pra2-candidate dd,
.pra2-project-risk-list dd { margin: 3px 0 0; font-weight: 700; }
.pra2-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pra2-metrics article { padding: 12px; border: 1px solid #dbe3f2; border-radius: 10px; background: rgba(255,255,255,.76); }
.pra2-metrics strong { display: block; font-size: 1.35rem; }
.pra2-metrics span { color: var(--pra2-muted); font-size: .72rem; }
.pra2-boundary,
.pra2-reference-warning { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--pra2-brand); border-radius: 0 8px 8px 0; background: var(--pra2-brand-soft); color: #34435d; line-height: 1.6; }
.pra2-boundary strong,
.pra2-reference-warning strong { color: #1f3c99; margin-right: 8px; }
.pra2-reference-warning p { margin: 4px 0; }
.pra2-reference-warning small { color: #63708a; overflow-wrap: anywhere; }
.pra2-state-note { margin: 12px 0; padding: 10px 12px; border: 1px solid #d9e1ec; border-radius: 8px; background: #f8fafc; color: #42506a; }
.pra2-state-note strong,
.pra2-state-note p,
.pra2-state-note small { display: block; }
.pra2-state-note p { margin: 5px 0; color: #26354d; }
.pra2-state-note small { color: #667085; }
.pra2-state-note.is-returned { border-color: #fed7aa; background: #fff7ed; }
.pra2-state-note.is-revision { border-color: #bfdbfe; background: #eff6ff; }
.pra2-state-note.is-reviewed { border-color: #bbf7d0; background: #f0fdf4; }
.pra2-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pra2-local-nav { display: flex; gap: 4px; overflow-x: auto; padding: 5px; background: #e8edf5; border-radius: 10px; }
.pra2-local-nav a { flex: 1 0 auto; padding: 8px 12px; border-radius: 7px; color: #4a566a; text-align: center; text-decoration: none; font-size: .78rem; font-weight: 700; }
.pra2-local-nav a:hover { color: #173da7; background: #fff; }

.pra2-panel > header { padding: 18px 20px 12px; border-bottom: 1px solid #e8edf3; }
.pra2-panel h3 { font-size: 1.1rem; }
.pra2-object-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; padding: 14px; }
.pra2-object { min-width: 0; padding: 14px; border: 1px solid #e1e7ef; border-radius: 10px; background: #fbfcfe; }
.pra2-object > span { color: var(--pra2-brand); font-size: .68rem; font-weight: 800; }
.pra2-object h4 { margin: 4px 0; }
.pra2-object p { min-height: 38px; margin: 0; color: var(--pra2-muted); font-size: .8rem; line-height: 1.5; }
.pra2-object footer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pra2-object footer small { margin-right: auto; color: #778398; }
.pra2-object footer button { border: 0; padding: 3px 5px; background: transparent; color: var(--pra2-brand); font-size: .72rem; font-weight: 700; cursor: pointer; }

.pra2-table-wrap { overflow-x: auto; }
.pra2-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.pra2-table th { padding: 10px 12px; background: #f6f8fb; color: #667085; text-align: left; font-size: .7rem; }
.pra2-table td { padding: 12px; border-top: 1px solid #e7ebf1; vertical-align: top; font-size: .78rem; }
.pra2-table td strong,
.pra2-table td small { display: block; }
.pra2-table td small { margin-top: 3px; color: var(--pra2-muted); }
.pra2-table td p { min-width: 220px; margin: 0; line-height: 1.55; }
.pra2-table meter { display: block; width: 74px; height: 7px; margin-bottom: 5px; }
.pra2-concerns { margin: 12px; padding: 10px 12px; border-radius: 8px; background: #faf8f3; color: #5f5040; }
.pra2-concerns summary { font-weight: 800; cursor: pointer; }
.pra2-concerns p { margin: 10px 0 0; }
.pra2-concerns small { display: block; color: #887a67; }

.pra2-candidate-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; padding: 14px; }
.pra2-candidate { border: 1px solid #e0e6ed; border-top: 3px solid #98a2b3; border-radius: 10px; padding: 14px; }
.pra2-candidate.is-included { border-top-color: var(--pra2-success); }
.pra2-candidate.is-deferred { border-top-color: var(--pra2-warn); }
.pra2-candidate.is-excluded { border-top-color: #7b8798; background: #fafafa; }
.pra2-candidate header span { float: right; padding: 3px 7px; border-radius: 999px; color: #475467; background: #eef2f6; font-size: .68rem; font-weight: 800; }
.pra2-candidate h4 { margin: 0 0 8px; }
.pra2-candidate > p { min-height: 42px; color: #49566a; line-height: 1.55; }
.pra2-candidate dl { display: grid; gap: 7px; }
.pra2-candidate dl > div { padding-top: 7px; border-top: 1px dashed #dce2ea; }
.pra2-gap { margin: 0 14px 14px; padding: 12px 14px; border-radius: 9px; background: #fff1e8; color: #864114; }
.pra2-gap p { margin: 5px 0 0; }
.pra2-gap.is-clear { display: flex; flex-wrap: wrap; gap: 6px 12px; background: #edf7f3; color: #185c48; }
.pra2-gap.is-clear span { color: #55756c; }

.pra2-timeline { padding: 14px; }
.pra2-timeline article { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; padding: 10px 10px 10px 22px; border-left: 2px solid #cbd6e8; }
.pra2-timeline article::before { content: ''; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--pra2-brand); }
.pra2-timeline article span { color: var(--pra2-brand); font-size: .72rem; font-weight: 800; }
.pra2-timeline article small { grid-column: 2; color: var(--pra2-muted); }

.pra2-modal-layer { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.56); }
.pra2-modal { width: min(760px, 96vw); max-height: 90vh; overflow: auto; border-radius: 14px; background: #fff; box-shadow: 0 28px 72px rgba(15,23,42,.3); }
.pra2-modal > header,
.pra2-modal > footer { display: flex; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid #e5eaf0; }
.pra2-modal > footer { justify-content: flex-end; border-top: 1px solid #e5eaf0; border-bottom: 0; }
.pra2-modal > header span { color: var(--pra2-brand); font-size: .7rem; font-weight: 800; }
.pra2-modal > header h3 { margin: 2px 0 0; }
.pra2-modal > header button { border: 0; background: transparent; color: #64748b; font-size: 1.6rem; cursor: pointer; }
.pra2-modal-body { padding: 18px; }
.pra2-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pra2-form-grid label,
.pra2-modal-single { display: grid; gap: 6px; color: #4d5a6c; font-size: .76rem; font-weight: 700; }
.pra2-form-grid label.full,
.pra2-form-grid fieldset.full { grid-column: 1 / -1; }
.pra2-form-grid fieldset { min-width: 0; border: 1px solid #dbe1e9; border-radius: 9px; }
.pra2-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pra2-checklist { display: grid; max-height: 140px; overflow-y: auto; gap: 6px; padding: 9px; border: 1px solid #dbe1e9; border-radius: 8px; }
.pra2-checklist label { display: flex; align-items: flex-start; gap: 7px; }
.pra2-checklist input { width: auto; }

.pra2-project-basis { margin-bottom: 18px; padding: 18px; }
.pra2-project-risk-list { display: grid; gap: 10px; margin-top: 14px; }
.pra2-project-risk-list article { padding: 14px; border: 1px solid #dce3ec; border-radius: 10px; }
.pra2-project-risk-list article header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pra2-project-risk-list article header span { order: 2; padding: 4px 7px; border-radius: 999px; color: #5f4d16; background: #fff4ce; font-size: .7rem; font-weight: 800; }
.pra2-project-risk-list article h3 { margin: 0; font-size: 1rem; }
.pra2-project-risk-list article > p { color: var(--pra2-muted); line-height: 1.6; }
.pra2-project-risk-list dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pra2-project-risk-list dl > div { padding: 9px; border-radius: 8px; background: #f7f9fb; }
.pra2-project-basis > footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e6eaf0; color: var(--pra2-muted); font-size: .76rem; }

@media (max-width: 820px) {
  .pra2-summary > dl,
  .pra2-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pra2-summary > header,
  .pra2-panel > header,
  .pra2-project-basis > header,
  .pra2-selector { align-items: stretch; flex-direction: column; }
  .pra2-selector label { min-width: 0; }
  .pra2-form-grid,
  .pra2-project-risk-list dl { grid-template-columns: 1fr; }
  .pra2-form-grid label.full,
  .pra2-form-grid fieldset.full { grid-column: auto; }
  .pra2-project-basis > footer { align-items: stretch; flex-direction: column; }
}

