.rms-insights { color: #0f172a; margin-bottom: 24px; }
.rms-insights[hidden], #dashboard-support-cards[hidden], .page-main > .card-grid[hidden] { display: none; }
.rms-insights-grid, .rms-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.rms-insight-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; box-shadow: 0 4px 12px -2px rgb(14 165 233 / 8%); min-width: 0; }
.rms-insight-card h2 { color: #0f172a; font-size: 1.25rem; line-height: 1.4; margin: 12px 0 16px; }
.rms-insight-badge { display: inline-block; border-radius: 999px; background: rgb(14 165 233 / 10%); color: #0284c7; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 6px 10px; }
.rms-readiness-layout { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rms-readiness-layout svg { flex: 0 0 140px; }
.rms-readiness-layout > div { flex: 1 1 180px; }
.rms-gauge-value { font: 700 28px system-ui, sans-serif; fill: #0f172a; }
.rms-gauge-label { font: 500 11px system-ui, sans-serif; fill: #64748b; }
.rms-component-list { margin: 12px 0; padding-left: 18px; color: #475569; font-size: 13px; line-height: 1.8; }
.rms-insight-help { color: #64748b; font-size: 12px; line-height: 1.7; margin-top: 12px; }
.rms-insight-help summary { cursor: pointer; color: #2563eb; font-weight: 700; }
.rms-insights label { display: block; color: #475569; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.rms-insights select { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; font: inherit; }
.rms-insights :is(a, select, summary):focus-visible { outline: 3px solid #0ea5e9; outline-offset: 3px; }
.rms-projection { background: #f0f7f9; border-radius: 12px; padding: 16px; margin: 16px 0; }
.rms-projection-label { display: block; color: #64748b; font-size: 12px; letter-spacing: .08em; }
.rms-forecast-grade { display: block; color: #2563eb; font-size: 36px; font-weight: 800; }
.rms-projection p { margin: 4px 0 0; color: #475569; font-size: 14px; }
.rms-domains { display: grid; gap: 14px; max-height: 350px; overflow-y: auto; }
.rms-domain-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.rms-domain-track { height: 8px; background: #e0f2fe; border-radius: 999px; overflow: hidden; }
.rms-domain-fill { height: 100%; background: #0ea5e9; border-radius: inherit; }
.rms-domain-fill.is-strong { background: #2563eb; }
.rms-domain-fill.is-weakest { background: #f97316; }
.rms-next-move { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px; padding: 12px 16px; margin-top: 16px; font-size: 13px; line-height: 1.7; }
.rms-next-move a { display: inline-block; color: #2563eb; font-weight: 800; margin-top: 8px; }
.rms-streak-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.rms-streak-card h2 { margin: 0; }
.rms-streak-card i { color: #0ea5e9; }
.rms-streak-week { display: flex; gap: 14px; list-style: none; padding: 0; margin: 0; }
.rms-streak-week li { display: grid; gap: 6px; justify-items: center; font-size: 11px; color: #64748b; }
.rms-streak-week .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.rms-streak-node { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #cbd5e1; border-radius: 50%; background: #f0f7f9; font-size: 14px; }
.rms-streak-week .is-active .rms-streak-node { background: #2563eb; border-color: #2563eb; color: #fff; }
.rms-streak-week [aria-current="date"] .rms-streak-node { outline: 2px solid #0ea5e9; outline-offset: 3px; }
.rms-next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #f0f7f9; border: 1px solid #bae6fd; border-radius: 14px; padding: 20px; }
.rms-next-actions > div { flex: 1 1 200px; }
.rms-next-actions p { font-size: 13px; color: #475569; margin: 6px 0 0; }
.rms-next-actions .btn-secondary { border: 1px solid #2563eb; color: #2563eb; background: #fff; }
.page-main > .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.page-main > .card-grid .dashboard-card { border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 4px 12px -2px rgb(14 165 233 / 8%); }
.page-main > .card-grid .dashboard-title i { display: inline-grid; place-items: center; width: 40px; height: 40px; background: #f0f9ff; color: #2563eb; border-radius: 10px; flex: 0 0 40px; }
@media (max-width: 800px) {
  .rms-insights-grid { grid-template-columns: minmax(0, 1fr); }
  .page-main > .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .rms-insight-card { padding: 18px; }
  .rms-support-grid { grid-template-columns: minmax(0, 1fr); }
  .rms-streak-card { gap: 18px; }
  .rms-streak-week { width: 100%; justify-content: space-between; gap: 5px; }
  .rms-next-actions .btn { width: 100%; justify-content: center; }
  .page-main > .card-grid .dashboard-title { flex-wrap: wrap; font-size: 14px; }
  .page-main > .card-grid .metric-value { overflow-wrap: anywhere; }
}
