.rm-hub {
  --rm-ink:#21483e; --rm-mid:#57776d; --rm-line:#cfddd6;
  margin-top:16px; border:1px solid var(--rm-line); border-radius:10px;
  padding:13px; background:#fff; color:var(--rm-ink); min-width:0; max-width:100%;
}
.rm-hub * {box-sizing:border-box}
.rm-top,.rm-field-top,.rm-caption-row,.rm-foot {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 10px}
.rm-top h4,.guide-step .rm-top h4 {margin:0; font-size:17px; font-weight:750; line-height:1.55; color:#193d31}
.rm-top>span,.rm-foot {font:12px/1.55 var(--mono,monospace); color:#586e63}
.rm-views,.rm-controls,.rm-badges {display:flex; gap:5px; flex-wrap:wrap; align-items:center}
.rm-views {margin:8px 0 0; padding-top:8px; border-top:1px solid #e5ebe5}
.rm-views>span {font-size:12px; color:#536759; padding:0 3px}
.rm-hub button {font:inherit; cursor:pointer; min-width:0}
.rm-hub button:focus-visible {outline:3px solid #27819b; outline-offset:2px}
.rm-views button,.rm-controls button {border:1px solid var(--rm-line); border-radius:5px; background:#fff; color:#365546; font-size:12px; line-height:1.45; min-height:32px; padding:4px 8px}
.rm-hub .rm-overview,.guide-step .rm-overview {background:#fcf8ea; color:#534825; padding:6px 9px; margin:8px 0 0; border-left:2px solid #c1a961; font-size:13px; line-height:1.65}
.rm-hub[data-mode=read] .rm-overview {background:#f1f6f3; border-color:#88a99a; color:#3f5749}
.rm-views button[data-rm-bag] {background:#fffcf1; border-color:#e4dcb9; color:#5c4c1e}
.rm-views button[aria-pressed=true] {background:#25594a; border-color:#25594a; color:white}
.rm-views button[data-rm-bag][aria-pressed=true] {background:#665221; border-color:#665221}
.rm-field {margin-top:10px; background:#edf5ef; border:1px solid #d5e3da; overflow:hidden; border-radius:7px}
.rm-field-top {padding:6px 10px; background:#e2eee6; border-bottom:1px solid #cbdbd0; gap:5px; flex-wrap:nowrap}
.rm-branch {font-size:13px; line-height:1.65}
.rm-count {font:600 12px/1.5 var(--mono,monospace); white-space:nowrap}
.rm-canvas {display:block; width:100%; height:clamp(164px,15vw,195px)}
.rm-info {padding:10px 0 4px}
.rm-caption-row {justify-content:flex-start; align-items:baseline; gap:6px}
.rm-mode {background:#edf3ee; color:#42604d; padding:2px 6px; border-radius:4px; font-size:11px; line-height:1.45}
.rm-caption {font-size:16px; line-height:1.55; color:#143c2b}
.rm-hub .rm-detail,.guide-step .rm-detail {margin:4px 0; color:#47574e; font-size:14px; line-height:1.68}
.rm-badges span {background:#f5f8ed; border-left:2px solid #90a769; padding:2px 6px; font-size:12px; line-height:1.55; color:#3c543c}
.rm-strip {display:flex; gap:4px; overflow-x:auto; overscroll-behavior-x:contain; padding:5px 2px 7px; max-width:100%; scrollbar-width:thin; scrollbar-color:#a1b5a8 transparent}
.rm-strip button {flex:none; display:inline-flex; align-items:center; gap:4px; border:1px solid #d7e1d9; border-radius:18px; background:#fff; padding:4px 8px 4px 5px; font-size:12px; line-height:1.45; color:#485b50}
.rm-strip button span {font:11px/17px var(--mono,monospace); border-radius:50%; min-width:17px; background:#edf2ed; color:#466052}
.rm-strip button[aria-pressed=true] {border-color:#5a8469; background:#ecf5e9; color:#214433}
.rm-strip button.rm-impact,.rm-controls [data-rm-control=strike] {background:#fcf1df; color:#78471e; border-color:#dcc49d}
.rm-strip .rm-impact[aria-pressed=true] {background:#f6dfb6; border-color:#a36628}
.rm-controls {margin:4px 0; gap:6px}
.rm-controls button[data-rm-control=play] {color:white; background:var(--rm-ink); border-color:var(--rm-ink)}
.rm-hub button:disabled {opacity:.4; cursor:default}
.rm-foot {margin-top:7px; border-top:1px solid #e4eae4; padding-top:6px; overflow-wrap:anywhere}
.rm-foot button {padding:2px 0; background:none; border:0; color:#2e6451; text-decoration:underline; font-size:12px}
.rm-hub [hidden] {display:none}
@media(max-width:560px) {
  .rm-hub {padding:9px}
  .rm-views {gap:4px}
  .rm-views button {padding:4px 6px}
  .rm-views>span {padding:0; font-size:11px}
  .rm-top>span {font-size:10px}
  .rm-controls button,.rm-views button {min-height:35px}
}
