.rating-tool { margin: 0; background: #f7f9fc; color: #17212b; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.rp-wrap { max-width: 1200px; margin: auto; padding: 28px 20px 60px; }
.rp-wrap *, .rp-wrap *::before { box-sizing: border-box; }
.rp-wrap :is(h1,h2,h3,p) { overflow-wrap: anywhere; }
.rp-wrap h1 { font-size: clamp(29px, 4vw, 46px); letter-spacing: -.045em; line-height: 1.12; margin: 4px 0 10px; }
.rp-wrap h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.025em; margin: 0 0 14px; }
.rp-wrap p { line-height: 1.65; }
.rp-eyebrow { color: #4a6535; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 8px; }
.rp-hero > p:not(.rp-eyebrow) { color: #596675; margin: 0; font-size: 15px; }
.rp-badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 24px; }
.rp-badges li, .rp-tag { font-size: 10px; font-weight: 700; border: 1px solid #dfe6dc; background: #edf3e7; color: #425b30; border-radius: 20px; padding: 6px 10px; }
.rp-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.rp-mobile-summary { display: none; }
.rp-card { min-width: 0; padding: 24px; background: #fff; border: 1px solid #e1e6ec; border-radius: 18px; box-shadow: 0 4px 20px #17212b04; }
.rp-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rp-section-head h2 { margin: 0; }
.rp-wrap button, .rp-wrap input, .rp-wrap select { font: inherit; }
.rp-wrap button, .rp-wrap summary, .rp-wrap a { -webkit-tap-highlight-color: transparent; }
.rp-wrap :is(button,input,select,a,summary):focus-visible { outline: 3px solid #9b7a32; outline-offset: 3px; }
.rp-wrap :is(input:not([type=radio]):not([type=checkbox]),select) { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #cad3dd; border-radius: 8px; padding: 10px 12px; color: #17212b; background: #fff; font-size: 16px; }
.rp-wrap input:disabled { background: #f0f3f5 !important; color: #657280; }
.rp-wrap [aria-invalid=true] { border-color: #b91c1c !important; }
.rp-wrap label, .rp-wrap legend { display: block; font-size: 12px; font-weight: 650; margin-bottom: 7px; color: #465362; }
.rp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.rp-fields > div { min-width: 0; }
.rp-wrap .rp-rating-input { font-size: 38px !important; font-weight: 750; height: 74px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: #fafcf8 !important; border-color: #9eb38b !important; }
.rp-help { font-size: 12px; color: #5a6877; margin: 8px 0; line-height: 1.6; }
.rp-wrap .rp-check { display: flex; align-items: center; gap: 9px; font-weight: 450; margin: 12px 0 0; min-height: 40px; line-height: 1.5; }
.rp-check input { flex-shrink: 0; width: 18px; height: 18px; accent-color: #4b6938; }
.rp-checks { display: grid; gap: 2px; }
.rp-wrap .rp-segment { display: flex; gap: 4px; padding: 4px; border: 0; border-radius: 10px; background: #edf1f5; min-width: 0; margin: 18px 0 0; }
.rp-segment legend { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.rp-wrap .rp-segment label { position: relative; flex: 1; margin: 0; min-width: 0; cursor: pointer; }
.rp-segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rp-segment span { display: grid; place-items: center; padding: 10px 4px; min-height: 44px; font-size: 13px; border-radius: 7px; color: #4a5866; transition: background 150ms ease; }
.rp-segment input:checked + span { background: #fff; color: #355326; font-weight: 750; box-shadow: 0 1px 5px #17212b12; }
.rp-segment input:focus-visible + span { outline: 3px solid #9b7a32; outline-offset: 1px; }
.rp-advanced { border-top: 1px solid #e6eaef; margin-top: 18px; padding-top: 6px; font-size: 12px; }
.rp-wrap summary { cursor: pointer; min-height: 44px; padding: 12px 0; color: #425362; font-weight: 650; }
.rp-round-heading { margin-top: 26px; align-items: start; }
.rp-rounds { display: grid; gap: 10px; margin: 12px 0; max-height: 640px; overflow-y: auto; scrollbar-gutter: stable; padding: 3px; }
.rp-round { border: 1px solid #dde4ec; border-radius: 12px; padding: 12px; background: #fbfcfe; min-width: 0; }
.rp-round-top { display: flex; align-items: center; justify-content: space-between; }
.rp-round h3 { font-size: 12px; margin: 0; }
.rp-round-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: end; gap: 12px; }
.rp-round .rp-segment { margin: 0; }
.rp-round .rp-fields { margin: 0; }
.rp-round .rp-advanced { margin-top: 8px; }
.rp-round .rp-advanced summary { font-size: 11px; }
.rp-round .rp-advanced .rp-fields { margin-top: 8px; }
.rp-round [data-role=remove] { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #a42626; cursor: pointer; font-size: 12px; }
.rp-link { border: 0; background: transparent; cursor: pointer; color: #456332; text-decoration: underline; padding: 8px 0; min-height: 44px; font-size: 12px !important; }
.rp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border-radius: 8px; border: 1px solid #cfd8c7; background: #fff; color: #344a26; font-size: 12px !important; font-weight: 700 !important; cursor: pointer; text-decoration: none; line-height: 1.5; text-align: center; }
.rp-btn:hover { background: #f0f5eb; }
.rp-primary { background: #456332; color: #fff; border-color: #456332; }
.rp-primary:hover { background: #355026; }
.rp-btn:disabled { opacity: .5; cursor: not-allowed; }
.rp-add { width: 100%; border-style: dashed; background: #f7faf4; }
.rp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.rp-dashboard { position: sticky; top: 90px; display: grid; gap: 16px; min-width: 0; }
.rp-result { border-top: 3px solid #769656; }
.rp-stats { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 12px; padding: 26px 0 18px; }
.rp-stats span { display: block; color: #576675; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.rp-stats strong { display: block; font-size: clamp(24px, 3vw, 36px); font-weight: 750; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.rp-predicted strong { color: #456332; font-size: clamp(30px, 3.6vw, 44px); }
.rp-wrap .positive { color: #16803c; }
.rp-wrap .negative { color: #c62828; }
.rp-notice { padding: 12px; border-radius: 8px; background: #f5f7f9; color: #566473; font-size: 11px; line-height: 1.65; }
.rp-error { padding: 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fff3f3; color: #a11b1b; font-size: 12px; }
.rp-warnings { padding-left: 18px; font-size: 12px; line-height: 1.7; color: #7d5418; }
.rp-detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rp-detail-stats dt { color: #586574; }
.rp-detail-stats dd { margin: 0; font-weight: 700; text-align: right; }
.rp-share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.rp-share .rp-btn { flex: 1; padding: 8px; font-size: 11px !important; }
.rp-outcomes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.rp-outcomes > div { padding: 12px 8px; text-align: center; background: #f4f7f1; border-radius: 10px; }
.rp-outcomes > div:nth-child(2) { background: #f7f5ef; }
.rp-outcomes > div:nth-child(3) { background: #f8f2f2; }
.rp-outcomes span { display: block; font-size: 11px; color: #526170; }
.rp-outcomes strong { display: block; font-size: 22px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.rp-progression { margin-top: 22px; }
.rp-chart { display: block; width: 100%; height: auto; max-height: 260px; margin-top: 14px; }
.rp-table-wrap { overflow-x: auto; }
.rp-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.rp-table-wrap :is(th,td) { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e1e6eb; }
.rp-table-wrap caption { text-align: left; padding: 8px; color: #5a6877; white-space: normal; }
.rp-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 24px 0; padding: 30px; border-radius: 16px; border: 1px solid #dce5d2; background: #eef3e8; }
.rp-cta p { max-width: 560px; font-size: 13px; color: #526345; margin-bottom: 0; }
.rp-cta .rp-actions { flex-shrink: 0; }
.rp-faq details { border-top: 1px solid #e1e6eb; }
.rp-faq details p { font-size: 13px; color: #536171; max-width: 900px; }
.rp-wrap a { color: #3c6229; }
.rp-wrap a.rp-primary { color: #fff; }
.rp-wrap [hidden] { display: none !important; }
@keyframes rp-update { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.rp-stats.is-updated strong { animation: rp-update 180ms ease-out; }
@media (max-width: 900px) {
  .rp-layout { grid-template-columns: minmax(0,1fr); }
  .rp-dashboard { position: static; }
  .rp-cta { flex-direction: column; align-items: start; gap: 8px; }
  .rp-mobile-summary { display: flex; position: sticky; top: 70px; z-index: 8; align-items: center; gap: 12px; min-height: 46px; padding: 8px 14px; margin-bottom: 12px; background: #edf3e7; border: 1px solid #b8cba7; border-radius: 9px; font-size: 12px; box-shadow: 0 3px 8px #17212b0a; }
  .rp-mobile-summary strong { margin-left: auto; font-size: 20px; font-variant-numeric: tabular-nums; color: #355326; }
  .rp-wrap :is(input,select,button,summary) { scroll-margin-top: 140px; }
}
@media (max-height: 550px) { .rp-mobile-summary { position: static; } .rp-dashboard { position: static; } }
@media (max-width: 480px) {
  .rp-wrap { padding: 20px 12px 36px; }
  .rp-hero > p:not(.rp-eyebrow) { font-size: 13px; }
  .rp-badges { margin: 12px 0 16px; gap: 5px; }
  .rp-badges li { font-size: 9px; padding: 5px 7px; }
  .rp-card { padding: 18px 14px; border-radius: 14px; }
  .rp-fields { gap: 10px; }
  .rp-advanced .rp-fields { grid-template-columns: minmax(0,1fr); }
  .rp-round { padding: 10px; }
  .rp-round-main { gap: 8px; }
  .rp-segment span { font-size: 12px; }
  .rp-stats { gap: 8px; }
  .rp-stats strong { font-size: 28px; }
  .rp-predicted strong { font-size: 34px; }
  .rp-cta { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { .rp-wrap *, .rp-wrap *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
