.ry-pb-trigger {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #0e8f63;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgb(14 143 99 / 35%);
  border-radius: 8px;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.ry-pb-trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ry-pb-trigger:hover:not(:disabled) {
  background: #effaf5;
  border-color: #0e8f63;
  box-shadow: 0 4px 14px rgb(14 143 99 / 14%);
  transform: translateY(-1px);
}

.ry-pb-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.dark .ry-pb-trigger {
  color: #4cc998;
  background: transparent;
}

body.ry-pb-lock {
  overflow: hidden;
}

body.ry-pb-lock .pet-wrap {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.ry-pb-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vh 2vw;
  background: rgb(15 23 20 / 46%);
  backdrop-filter: blur(3px);
}

.ry-pb-dialog {
  --pb-bg: #fff;
  --pb-soft: #f6f8f7;
  --pb-line: #e6e9e8;
  --pb-text: #1d2623;
  --pb-sub: #5c6762;
  --pb-muted: #96a09b;
  --pb-brand: #0e8f63;
  --pb-brand-soft: #e9f6f0;
  --pb-add: #0e8f63;
  --pb-del: #d04a3c;
  --pb-swap: #2f6bd8;

  display: flex;
  flex-direction: column;
  width: min(1200px, 96vw);
  min-height: min(600px, 94vh);
  max-height: min(880px, 94vh);
  overflow: hidden;
  color: var(--pb-text);
  background: var(--pb-bg);
  border-radius: 14px;
  box-shadow:
    0 30px 80px rgb(10 30 22 / 28%),
    0 2px 6px rgb(10 30 22 / 10%);
}

.dark .ry-pb-dialog {
  --pb-bg: #18201d;
  --pb-soft: #1f2925;
  --pb-line: #2c3833;
  --pb-text: #e7efeb;
  --pb-sub: #a9b6b0;
  --pb-muted: #75837d;
  --pb-brand-soft: rgb(14 143 99 / 18%);
}

.ry-pb-enter-active .ry-pb-dialog {
  animation: ry-pb-rise 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ry-pb-enter-active {
  animation: ry-pb-fade 0.36s ease both;
}

.ry-pb-leave-active {
  animation: ry-pb-fade 0.28s ease reverse both;
}

.ry-pb-leave-active .ry-pb-dialog {
  animation: ry-pb-sink 0.28s ease both;
}

.ry-pb-enter-active .ry-pb-head-text > * {
  animation: ry-pb-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ry-pb-enter-active .ry-pb-head-text > :nth-child(2) {
  animation-delay: 0.06s;
}

.ry-pb-enter-active .ry-pb-head-text > :nth-child(3) {
  animation-delay: 0.12s;
}

.ry-pb-enter-active .ry-pb-cats {
  animation: ry-pb-up 0.6s 0.14s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ry-pb-enter-active .ry-pb-side {
  animation: ry-pb-slide 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ry-pb-fade {
  from {
    opacity: 0;
  }
}

@keyframes ry-pb-rise {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(34px) scale(0.955);
  }
}

@keyframes ry-pb-sink {
  to {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

@keyframes ry-pb-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes ry-pb-slide {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
}

.ry-pb-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 14px;
}

.ry-pb-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--pb-brand);
  letter-spacing: 0.08em;
}

.ry-pb-title {
  margin: 4px 0 2px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pb-text);
}

.ry-pb-sub {
  margin: 0;
  font-size: 13px;
  color: var(--pb-sub);
}

.ry-pb-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--pb-sub);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
  transition:
    background 0.2s,
    transform 0.3s;
}

.ry-pb-close svg {
  width: 18px;
  height: 18px;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.ry-pb-close:hover:not(:disabled) {
  background: var(--pb-soft);
  transform: rotate(90deg);
}

.ry-pb-cats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  margin: 0 24px;
  background: var(--pb-soft);
  border: 1px solid var(--pb-line);
  border-radius: 10px;
}

.ry-pb-cats-ink {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / var(--n));
  background: var(--pb-bg);
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgb(10 30 22 / 8%),
    0 4px 12px rgb(10 30 22 / 8%);
  transform: translateX(calc(var(--idx) * 100%));
  transition: transform 0.5s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.ry-pb-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  padding: 7px 4px;
  color: var(--pb-sub);
  cursor: pointer;
  background: transparent;
  border: 0;
  transition: color 0.25s;
}

.ry-pb-cat-name {
  font-size: 13px;
  font-weight: 600;
}

.ry-pb-cat-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--pb-muted);
}

.ry-pb-cat.is-on {
  color: var(--pb-brand);
}

.ry-pb-body {
  display: flex;
  flex: 1 1 auto;
  gap: 18px;
  min-height: 0;
  padding: 14px 24px 0;
}

.ry-pb-boot {
  display: flex;
  flex: 1;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--pb-sub);
}

.ry-pb-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--pb-brand-soft);
  border-top-color: var(--pb-brand);
  border-radius: 50%;
  animation: ry-pb-spin 0.8s linear infinite;
}

.ry-pb-spinner.is-small {
  width: 14px;
  height: 14px;
}

@keyframes ry-pb-spin {
  to {
    transform: rotate(1turn);
  }
}

.ry-pb-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.ry-pb-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ry-pb-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ry-pb-chip {
  height: 28px;
  padding: 0 11px;
  font-size: 12px;
  color: var(--pb-text);
  cursor: pointer;
  background: var(--pb-bg);
  border: 1px solid var(--pb-line);
  border-radius: 999px;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.ry-pb-chip:hover:not(:disabled) {
  color: var(--pb-brand);
  border-color: var(--pb-brand);
}

.ry-pb-chip.is-ghost {
  color: var(--pb-sub);
  border-style: dashed;
}

.ry-pb-chip:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ry-pb-range-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--pb-sub);
}

.ry-pb-label {
  width: 44px;
  font-weight: 600;
  color: var(--pb-text);
}

.ry-pb-field {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.ry-pb-field input,
.ry-pb-date {
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--pb-text);
  outline: none;
  background: var(--pb-bg);
  border: 1px solid var(--pb-line);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.ry-pb-field input {
  width: 58px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.ry-pb-field input:focus,
.ry-pb-date:focus {
  border-color: var(--pb-brand);
}

.ry-pb-to {
  color: var(--pb-muted);
}

.ry-pb-divider {
  width: 1px;
  height: 16px;
  margin: 0 6px;
  background: var(--pb-line);
}

.ry-pb-day-chip {
  height: 26px;
  padding: 0 9px;
  font-size: 12px;
  color: var(--pb-sub);
  cursor: pointer;
  background: var(--pb-bg);
  border: 1px solid var(--pb-line);
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.ry-pb-day-chip.is-on {
  color: #fff;
  background: var(--pb-brand);
  border-color: var(--pb-brand);
}

.ry-pb-link {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 0;
  font-size: 12px;
  color: var(--pb-brand);
  cursor: pointer;
  background: none;
  border: 0;
}

.ry-pb-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.ry-pb-link.is-on {
  font-weight: 600;
}

.ry-pb-muted {
  font-size: 12px;
  color: var(--pb-muted);
}

.ry-pb-selbar {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  margin: 10px 0 8px;
  font-size: 12px;
  color: var(--pb-sub);
  background: var(--pb-soft);
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.ry-pb-selbar.is-on {
  color: var(--pb-text);
  background: var(--pb-brand-soft);
  border-color: rgb(14 143 99 / 28%);
}

.ry-pb-selbar-text,
.ry-pb-selbar-hint {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.ry-pb-selbar-text b {
  font-variant-numeric: tabular-nums;
  color: var(--pb-brand);
}

.ry-pb-selbar-dot {
  width: 7px;
  height: 7px;
  background: var(--pb-brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(14 143 99 / 18%);
}

.ry-pb-hand {
  width: 18px;
  height: 10px;
  border: 1.5px solid var(--pb-brand);
  border-radius: 3px;
  animation: ry-pb-hint 2.2s ease-in-out infinite;
}

@keyframes ry-pb-hint {
  0%,
  100% {
    clip-path: inset(0 85% 0 0);
  }

  60% {
    clip-path: inset(0);
  }
}

.ry-pb-grid {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 2px 4px 10px 0;
  overflow: auto;
  overscroll-behavior: contain;
  user-select: none;
}

.ry-pb-empty-plan {
  padding: 60px 0;
  font-size: 13px;
  color: var(--pb-muted);
  text-align: center;
}

.ry-pb-band + .ry-pb-band {
  margin-top: 12px;
}

.ry-pb-band-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 6px 4px;
  font-size: 12px;
  color: var(--pb-sub);
  text-align: left;
  cursor: pointer;
  background: var(--pb-bg);
  border: 0;
}

.ry-pb-band-head i {
  width: 4px;
  height: 14px;
  background: var(--pb-brand);
  border-radius: 2px;
}

.ry-pb-band-head b {
  font-size: 13px;
  color: var(--pb-text);
}

.ry-pb-band-head em {
  font-style: normal;
  color: #b7791f;
}

.ry-pb-band-head:hover b {
  color: var(--pb-brand);
}

.ry-pb-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: stretch;
  margin-top: 6px;
}

.ry-pb-row-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10px;
  font-size: 12px;
  color: var(--pb-sub);
  text-align: left;
  cursor: pointer;
  background: var(--pb-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

.ry-pb-row-head b {
  font-size: 12px;
  color: var(--pb-text);
}

.ry-pb-row-head span {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--pb-muted);
}

.ry-pb-row-head:hover,
.ry-pb-row-head.is-sel {
  background: var(--pb-brand-soft);
  border-color: rgb(14 143 99 / 30%);
}

.ry-pb-cells {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(62px, 1fr));
  gap: 6px;
}

.ry-pb-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 60px;
  padding: 7px 8px 6px;
  overflow: hidden;
  color: var(--pb-text);
  text-align: left;
  touch-action: none;
  cursor: cell;
  background: var(--pb-bg);
  border: 1px solid var(--pb-line);
  border-radius: 9px;
  transition:
    background 0.22s,
    border-color 0.22s,
    box-shadow 0.22s,
    opacity 0.3s,
    transform 0.22s;
}

.ry-pb-grid.is-intro .ry-pb-cell {
  animation: ry-pb-cell-in 0.55s calc(var(--w) * 16ms + 0.22s)
    cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ry-pb-cell-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
}

.ry-pb-cell-top {
  display: flex;
  gap: 4px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1;
}

.ry-pb-cell-top b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ry-pb-cell-top i {
  font-size: 10px;
  font-style: normal;
  color: var(--pb-muted);
}

.ry-pb-faces {
  display: grid;
  height: 16px;
  perspective: 240px;
}

.ry-pb-face {
  display: flex;
  grid-area: 1 / 1;
  gap: 5px;
  align-items: center;
  transform-origin: 50% 60%;
  backface-visibility: hidden;
}

.ry-pb-grid.is-wave .ry-pb-face.is-after {
  animation: ry-pb-face-in 0.42s calc(var(--c) * 26ms)
    cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ry-pb-face-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.ry-pb-dots {
  display: inline-flex;
  gap: 3px;
}

.ry-pb-dots i {
  width: 6px;
  height: 6px;
  background: var(--pb-brand);
  border-radius: 50%;
}

.ry-pb-n {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--pb-sub);
}

.ry-pb-none {
  font-size: 11px;
  color: var(--pb-line);
}

.ry-pb-cell:hover,
.ry-pb-cell.is-hover {
  border-color: rgb(14 143 99 / 45%);
  box-shadow: 0 4px 12px rgb(10 30 22 / 8%);
}

.ry-pb-cell.is-today::before {
  position: absolute;
  top: 0;
  left: 8px;
  width: 18px;
  height: 3px;
  content: '';
  background: #e8a23a;
  border-radius: 0 0 3px 3px;
}

.ry-pb-grid.has-range .ry-pb-cell:not(.is-sel) {
  opacity: 0.45;
}

.ry-pb-cell.is-sel {
  background: var(--pb-brand-soft);
  border-color: rgb(14 143 99 / 45%);
}

.ry-pb-cell.is-edge-a,
.ry-pb-cell.is-edge-b {
  border-color: var(--pb-brand);
  box-shadow: inset 0 0 0 1px var(--pb-brand);
}

.ry-pb-cell.is-out {
  background: repeating-linear-gradient(
    -45deg,
    var(--pb-bg) 0 5px,
    var(--pb-soft) 5px 10px
  );
  border-style: dashed;
  opacity: 0.7;
}

.ry-pb-grid.is-dragging .ry-pb-cell {
  transition-duration: 0.08s;
}

.ry-pb-grid.is-sampling .ry-pb-cell {
  cursor: copy;
}

.ry-pb-grid.is-sampling .ry-pb-cell.is-filled {
  border-color: var(--pb-brand);
  animation: ry-pb-sample-glow 1.4s ease-in-out infinite;
}

@keyframes ry-pb-sample-glow {
  50% {
    box-shadow: 0 0 0 4px rgb(14 143 99 / 16%);
  }
}

.ry-pb-cell.is-sampled {
  animation: ry-pb-sampled 0.9s ease both;
}

@keyframes ry-pb-sampled {
  30% {
    box-shadow: 0 0 0 6px rgb(14 143 99 / 30%);
    transform: scale(1.06);
  }
}

.ry-pb-mark {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  color: #fff;
  text-align: center;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 14%);
}

.ry-pb-mark.is-add {
  background: var(--pb-add);
}

.ry-pb-mark.is-del {
  background: var(--pb-del);
}

.ry-pb-mark.is-swap {
  background: var(--pb-swap);
}

.ry-pb-mark.is-note {
  background: #8a6d3b;
}

.ry-pb-cell.is-change .ry-pb-cell-top i {
  opacity: 0;
}

.ry-pb-pop-enter-active {
  transition:
    opacity 0.25s,
    transform 0.45s cubic-bezier(0.34, 1.8, 0.5, 1);
}

.ry-pb-pop-leave-active {
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.ry-pb-pop-enter-from,
.ry-pb-pop-leave-to {
  opacity: 0;
  transform: scale(0.3);
}

.ry-pb-cell.is-flip {
  animation: ry-pb-flash 0.62s var(--d) ease-out both;
}

.ry-pb-cell.is-flip::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: '';
  background: linear-gradient(
    100deg,
    transparent 25%,
    rgb(14 143 99 / 32%) 50%,
    transparent 75%
  );
  transform: translateX(-120%);
  animation: ry-pb-glint 0.62s var(--d) cubic-bezier(0.4, 0, 0.2, 1) both;
}

.ry-pb-cell.is-flip .ry-pb-face.is-before {
  animation: ry-pb-out 0.62s var(--d) cubic-bezier(0.4, 0, 0.2, 1) both;
}

.ry-pb-cell.is-flip .ry-pb-face.is-after {
  animation: ry-pb-in 0.62s var(--d) cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes ry-pb-flash {
  35% {
    border-color: var(--pb-brand);
    box-shadow: 0 0 0 3px rgb(14 143 99 / 18%);
    transform: translateY(-2px);
  }
}

@keyframes ry-pb-glint {
  to {
    transform: translateX(120%);
  }
}

@keyframes ry-pb-out {
  0% {
    opacity: 1;
    transform: rotateX(0);
  }

  45%,
  100% {
    opacity: 0;
    transform: rotateX(88deg);
  }
}

@keyframes ry-pb-in {
  0%,
  45% {
    opacity: 0;
    transform: rotateX(-88deg);
  }

  100% {
    opacity: 1;
    transform: rotateX(0);
  }
}

.ry-pb-inspector {
  flex: none;
  min-height: 74px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--pb-line);
}

.ry-pb-insp {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ry-pb-insp.is-idle {
  flex-flow: row wrap;
  gap: 10px;
  align-items: center;
  padding-top: 6px;
  font-size: 12px;
  color: var(--pb-sub);
}

.ry-pb-step {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.ry-pb-step b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  color: var(--pb-brand);
  background: var(--pb-brand-soft);
  border-radius: 50%;
}

.ry-pb-step-line {
  width: 22px;
  height: 1px;
  background: var(--pb-line);
}

.ry-pb-insp-tip {
  margin-left: auto;
}

.ry-pb-insp-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--pb-text);
}

.ry-pb-insp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ry-pb-insp-note {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--pb-sub);
  white-space: nowrap;
}

.ry-pb-tag {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  font-size: 12px;
  color: var(--pb-text);
  background: var(--pb-soft);
  border: 1px solid var(--pb-line);
  border-radius: 6px;
}

.ry-pb-tag.is-add {
  color: var(--pb-add);
  background: rgb(14 143 99 / 8%);
  border-color: rgb(14 143 99 / 35%);
}

.ry-pb-tag.is-del {
  color: var(--pb-del);
  text-decoration: line-through;
  background: rgb(208 74 60 / 6%);
  border-color: rgb(208 74 60 / 30%);
}

.ry-pb-tag.is-picked {
  color: var(--pb-brand);
  background: var(--pb-brand-soft);
  border-color: rgb(14 143 99 / 30%);
}

.ry-pb-tag button {
  padding: 0;
  font-size: 14px;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  opacity: 0.7;
}

.ry-pb-side {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 12px;
  width: 340px;
  min-height: 0;
  padding: 0 0 12px 18px;
  overflow: hidden auto;
  border-left: 1px solid var(--pb-line);
}

.ry-pb-ops {
  position: relative;
  display: grid;
  flex: none;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  background: var(--pb-soft);
  border: 1px solid var(--pb-line);
  border-radius: 10px;
}

.ry-pb-ops-ink {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  background: var(--pb-add);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(10 30 22 / 16%);
  transform: translateX(calc(var(--idx) * 100%));
  transition:
    transform 0.5s cubic-bezier(0.22, 1.2, 0.36, 1),
    background 0.4s;
}

.ry-pb-ops.is-replace .ry-pb-ops-ink {
  background: var(--pb-swap);
}

.ry-pb-ops.is-remove .ry-pb-ops-ink {
  background: var(--pb-del);
}

.ry-pb-op {
  position: relative;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  height: 34px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pb-sub);
  cursor: pointer;
  background: transparent;
  border: 0;
  transition: color 0.3s;
}

.ry-pb-op svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ry-pb-op.is-on {
  color: #fff;
}

.ry-pb-op:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.ry-pb-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ry-pb-pane-enter-active {
  transition:
    opacity 0.32s ease,
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.ry-pb-pane-leave-active {
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.ry-pb-pane-enter-from {
  opacity: 0;
  transform: translateX(18px);
}

.ry-pb-pane-leave-to {
  opacity: 0;
  transform: translateX(-10px);
}

.ry-pb-modes {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 4px;
}

.ry-pb-modes button {
  height: 30px;
  font-size: 12px;
  color: var(--pb-sub);
  cursor: pointer;
  background: var(--pb-bg);
  border: 1px solid var(--pb-line);
  border-radius: 7px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.ry-pb-modes button.is-on {
  font-weight: 600;
  color: var(--pb-text);
  background: var(--pb-soft);
  border-color: var(--pb-text);
}

.ry-pb-modes.is-small button {
  height: 26px;
}

.ry-pb-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--pb-sub);
}

.ry-pb-stat {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--pb-sub);
  background: var(--pb-soft);
  border-radius: 10px;
}

.ry-pb-stat b {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  color: var(--pb-text);
}

.ry-pb-picked {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ry-pb-chip-t-enter-active,
.ry-pb-chip-t-leave-active {
  transition:
    opacity 0.25s,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ry-pb-chip-t-enter-from,
.ry-pb-chip-t-leave-to {
  opacity: 0;
  transform: scale(0.6);
}

.ry-pb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ry-pb-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--pb-text);
}

.ry-pb-search {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--pb-text);
  outline: none;
  background: var(--pb-bg);
  border: 1px solid var(--pb-line);
  border-radius: 7px;
  transition: border-color 0.2s;
}

.ry-pb-search:focus {
  border-color: var(--pb-brand);
}

.ry-pb-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  padding: 3px;
  overflow: auto;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
}

.ry-pb-list.is-from .ry-pb-items,
.ry-pb-list.is-to .ry-pb-items {
  max-height: 160px;
}

.ry-pb-item {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
  color: var(--pb-text);
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 6px;
  transition: background 0.15s;
}

.ry-pb-item:hover {
  background: var(--pb-soft);
}

.ry-pb-item.is-on {
  background: var(--pb-brand-soft);
}

.ry-pb-check {
  position: relative;
  flex: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--pb-muted);
  border-radius: 4px;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.ry-pb-item.is-radio .ry-pb-check {
  border-radius: 50%;
}

.ry-pb-item.is-on .ry-pb-check {
  background: var(--pb-brand);
  border-color: var(--pb-brand);
}

.ry-pb-item.is-on .ry-pb-check::after {
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  content: '';
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
  animation: ry-pb-tick 0.25s ease both;
}

@keyframes ry-pb-tick {
  from {
    opacity: 0;
    transform: rotate(45deg) scale(0.3);
  }
}

.ry-pb-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ry-pb-item-hint {
  flex: none;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--pb-muted);
}

.ry-pb-items-empty {
  padding: 16px 0;
  text-align: center;
}

.ry-pb-switch {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--pb-text);
  cursor: pointer;
}

.ry-pb-switch input {
  position: absolute;
  opacity: 0;
}

.ry-pb-switch i {
  position: relative;
  width: 30px;
  height: 17px;
  background: var(--pb-line);
  border-radius: 9px;
  transition: background 0.25s;
}

.ry-pb-switch i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  content: '';
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ry-pb-switch input:checked + i {
  background: var(--pb-brand);
}

.ry-pb-switch input:checked + i::after {
  transform: translateX(13px);
}

.ry-pb-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ry-pb-textarea {
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
  color: var(--pb-text);
  resize: vertical;
  outline: none;
  background: var(--pb-bg);
  border: 1px solid var(--pb-line);
  border-radius: 7px;
}

.ry-pb-textarea:focus {
  border-color: var(--pb-brand);
}

.ry-pb-foot {
  display: flex;
  flex: none;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--pb-soft);
  border-top: 1px solid var(--pb-line);
}

.ry-pb-foot-main {
  position: relative;
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.ry-pb-summary {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--pb-sub);
}

.ry-pb-summary b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--pb-text);
}

.ry-pb-summary.is-hint {
  color: var(--pb-muted);
}

.ry-pb-summary.is-warn {
  color: #b7791f;
}

.ry-pb-sum-sep {
  width: 1px;
  height: 12px;
  margin: 0 4px;
  background: var(--pb-line);
}

.ry-pb-sum-add b {
  color: var(--pb-add);
}

.ry-pb-sum-del b {
  color: var(--pb-del);
}

.ry-pb-result {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--pb-sub);
}

.ry-pb-result svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--pb-brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ry-pb-result circle {
  stroke-dasharray: 64;
  stroke-dashoffset: 64;
  animation: ry-pb-draw 0.6s ease forwards;
}

.ry-pb-result path {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  animation: ry-pb-draw 0.35s 0.45s ease forwards;
}

@keyframes ry-pb-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.ry-pb-result div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ry-pb-result b {
  font-size: 13px;
  color: var(--pb-text);
}

.ry-pb-result.is-warn b {
  color: #b7791f;
}

.ry-pb-notice {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 0;
  padding: 7px 12px;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  background: rgb(20 32 28 / 92%);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.ry-pb-foot-actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.ry-pb-btn {
  position: relative;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 36px;
  padding: 0 16px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  color: var(--pb-text);
  cursor: pointer;
  background: var(--pb-bg);
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  transition:
    border-color 0.2s,
    background 0.3s,
    opacity 0.2s,
    transform 0.15s;
}

.ry-pb-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ry-pb-btn:hover:not(:disabled) {
  border-color: var(--pb-muted);
}

.ry-pb-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.ry-pb-btn:disabled {
  cursor: not-allowed;
}

.ry-pb-btn.is-primary {
  min-width: 140px;
  color: #fff;
  background: var(--pb-add);
  border-color: transparent;
}

.ry-pb-btn.is-primary.is-replace {
  background: var(--pb-swap);
}

.ry-pb-btn.is-primary.is-remove {
  background: var(--pb-del);
}

.ry-pb-btn.is-primary:disabled {
  opacity: 0.45;
}

.ry-pb-btn.is-primary.is-playing {
  opacity: 1;
}

.ry-pb-btn-fill {
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 24%);
  transform-origin: left;
}

.ry-pb-btn-text {
  position: relative;
}

.ry-pb-swap-enter-active,
.ry-pb-swap-leave-active {
  transition:
    opacity 0.22s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ry-pb-swap-enter-from {
  opacity: 0;
  transform: translateY(8px);
}

.ry-pb-swap-leave-to {
  opacity: 0;
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .ry-pb-dialog *,
  .ry-pb-dialog {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}
