.rm-shell { --rm-ink: #132b50; --rm-muted: #52647a; --rm-brand: #244ec4; --rm-line: #ced8e7; color: var(--rm-ink); padding: clamp(28px,4.3vw,64px) 0 64px; }
.rm-header { margin: 0 0 30px; }
.rm-header h1 { font-size: clamp(2.65rem,5vw,4.35rem); line-height: 1; letter-spacing: -.06em; font-weight: 720; }
.rm-header p { margin-top: 12px; color: var(--rm-muted); max-width: 640px; line-height: 1.52; }
.rm-layout { display: grid; grid-template-columns: minmax(210px,.78fr) minmax(0,2fr); gap: clamp(20px,3.6vw,54px); align-items: start; }
.rm-settings { padding: clamp(17px,2.1vw,28px); border: 1px solid var(--rm-line); border-radius: 16px; background: #fff; }
.rm-picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.rm-picker + .rm-picker { margin-top: 22px; }
.rm-picker legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.rm-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 5px 6px; line-height: 1.4; cursor: pointer; }
.rm-option:has(input:checked) { color: var(--rm-brand); font-weight: 650; }
.rm-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--rm-brand); flex: none; }
.rm-option input:focus-visible, .rm-shell a:focus-visible { outline: 3px solid #945e08; outline-offset: 3px; }
.rm-settings-note { border-top: 1px solid var(--rm-line); margin: 18px 0 0; padding-top: 14px; font-size: .88rem; line-height: 1.55; color: var(--rm-muted); }
.rm-results { min-width: 0; }
.rm-summary { background: #e8effd; border: 1px solid #c4d4ef; border-radius: 16px; padding: clamp(20px,3vw,36px); }
.rm-summary h2 { font-size: clamp(1.7rem,3vw,2.6rem); letter-spacing: -.045em; }
.rm-outcome { margin: 9px 0 0; max-width: 52ch; line-height: 1.5; }
.rm-counts { display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 3px; font-size: .87rem; font-weight: 650; margin: 22px 0 8px; }
.rm-meter { display: block; height: 7px; width: 100%; border: 0; overflow: hidden; border-radius: 4px; background: #c7d5e9; color: var(--rm-brand); accent-color: var(--rm-brand); }
.rm-meter::-webkit-progress-bar { background: #c7d5e9; }
.rm-meter::-webkit-progress-value { background: var(--rm-brand); border-radius: 4px; }
.rm-meter::-moz-progress-bar { background: var(--rm-brand); border-radius: 4px; }
.rm-next { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(16px,2.8vw,28px) 0; border-bottom: 1px solid var(--rm-line); }
.rm-caption { color: var(--rm-brand); font-size: .84rem; font-weight: 700; }
.rm-next h3 { font-size: clamp(1.18rem,2vw,1.56rem); letter-spacing: -.025em; margin: 3px 0 0; }
.rm-next-source { margin: 5px 0 0; color: var(--rm-muted); font-size: .93rem; }
.rm-action { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 45px; padding: 10px 16px; border-radius: 8px; background: var(--rm-brand); color: white; font-size: .93rem; font-weight: 650; }
.rm-action:hover { background: #183da5; }
.rm-path { margin-top: 27px; }
.rm-path h2 { font-size: clamp(1.45rem,2.4vw,1.95rem); letter-spacing: -.04em; }
.rm-list { list-style: none; padding: 0; margin: 18px 0 0; }
.rm-station { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 15px; padding-bottom: 20px; }
.rm-station:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: -1px; width: 2px; background: var(--rm-line); }
.rm-marker { z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rm-line); color: var(--rm-muted); background: white; font-size: .86rem; font-weight: 700; }
.rm-station[data-state="next"] .rm-marker { border-color: var(--rm-brand); background: var(--rm-brand); color: white; }
.rm-station[data-state="done"] .rm-marker { border-color: #8cc2ad; background: #e1f4eb; color: #175c41; }
.rm-info { padding: 2px 0 0; }
.rm-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; margin-bottom: 3px; color: var(--rm-muted); font-size: .82rem; line-height: 1.45; }
.rm-state { font-weight: 620; }
.rm-station[data-state="next"] .rm-state { color: var(--rm-brand); }
.rm-station[data-state="done"] .rm-state { color: #175c41; }
.rm-info h3 { font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.4; }
.rm-step-link:hover { color: var(--rm-brand); text-decoration: underline; }
.rm-description { margin: 3px 0; color: var(--rm-muted); font-size: .95rem; line-height: 1.5; }
.rm-count { color: var(--rm-muted); font-size: .82rem; }
.rm-reader-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) {
  .rm-layout { grid-template-columns: 1fr; }
  .rm-header { margin-bottom: 20px; }
  .rm-settings { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px 18px; }
  .rm-picker + .rm-picker { margin: 0; }
  .rm-settings-note { grid-column: 1/-1; margin: 0; }
}
@media (max-width: 460px) {
  .rm-next { align-items: start; flex-direction: column; gap: 12px; }
  .rm-settings { grid-template-columns: 1fr; }
  .rm-picker + .rm-picker { margin-top: 2px; }
}
