.rb-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: space-between; }
.rb-top .field { margin: 0; }
.rb-cleartaps { min-height: 36px; padding: 6px 12px; font-size: 14px; margin-left: 4px; }
.rb-hint { margin: 8px 0 10px; font-size: 14px; }
.rb-stage-wrap { margin: 4px 0 12px; }
.rb-stage { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 12px; overflow: hidden; line-height: 0;
  background: repeating-conic-gradient(#d9d9e3 0 25%, #fff 0 50%) 50% / 18px 18px; user-select: none; -webkit-user-select: none; }
.rb-stage canvas { display: block; max-width: 100%; max-height: 62vh; width: auto; height: auto; }
.rb-stage .rb-before { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; pointer-events: none; }
.rb-stage.painting { touch-action: none; cursor: none; }
.rb-line { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.rb-line span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: #333; border-radius: 99px; padding: 4px 7px; font-size: 11px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.3); white-space: nowrap; }
.rb-cursor { position: absolute; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.4); pointer-events: none; }
.rb-tag { position: absolute; top: 8px; font: 700 12px/1 inherit; background: rgba(0,0,0,.55); color: #fff; padding: 5px 8px; border-radius: 99px; pointer-events: none; line-height: 1; }
.rb-tag-l { left: 8px; } .rb-tag-r { right: 8px; }
.rb-cmp { max-width: 520px; margin: 8px auto 0; }
.rb-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.rb-bg { margin-top: 8px; }
.rb-bg button, .rb-brush button { min-height: 40px; }
.rb-sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 6px; vertical-align: -2px; border: 1px solid rgba(0,0,0,.25); }
.rb-bg-extra .field { margin-bottom: 0; }
.rb-brush { margin: 8px 0 2px; }
.rb-tight { margin-top: 6px; }
.rb-small { font-size: 13px; margin: 8px 0 0; }
.rb-progress { margin: 12px 0; }
.rb-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rb-bar i { display: block; height: 100%; background: var(--c); transition: width .2s; }
.rb-stage.sweep .rb-before { transition: clip-path .9s ease-in-out; }
.rb-stage.sweep .rb-line { transition: left .9s ease-in-out; }
