.rate-dialog { width: 740px; scrollbar-width: thin; scrollbar-color: #ded9e9 transparent; }
.rate-dialog .dialog-header { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid #f1eef6; margin-bottom: 16px; }
.rate-notice { padding: 11px 13px; border-radius: 8px; background: #f5f2fc; color: #8a7ba6; font-size: 11px; line-height: 1.8; }
.rate-status-panel { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 18px 0 9px; }
.rate-status-panel > div { display: grid; gap: 5px; }
.rate-status-panel > div > span { font-size: 10px; color: #9c96ad; }
.rate-status-panel strong { color: #736980; font-size: 13px; font-weight: 500; }
.rate-state-badge { background: #f3f4f8; color: #9593a7; padding: 6px 9px; border-radius: 5px; font-size: 10px; line-height: 1.6; }
.rate-state-badge[data-pending="true"] { background: #fff7eb; color: #b58b53; }
.rate-active-details { color: #9b93ac; font-size: 10px; line-height: 1.8; }
.rate-active-details summary { cursor: pointer; width: fit-content; }
.rate-active-values { padding: 11px 13px; background: #faf9fc; border: 1px solid #f1edf7; border-radius: 7px; margin-top: 8px; }
.rate-active-values > div { display: flex; justify-content: space-between; gap: 15px; padding: 3px 0; }
.rate-active-values strong { font-weight: 500; color: #7c718d; }
.rate-active-values > p { margin: 9px 0 0; }
.rate-master { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 21px; cursor: pointer; padding-bottom: 15px; border-bottom: 1px solid #eeebf5; }
.rate-master > span { display: grid; gap: 6px; }
.rate-master strong { color: #787086; font-size: 12px; font-weight: 500; }
.rate-master small { color: #aaa3b6; font-size: 10px; line-height: 1.7; }
.rate-master input { appearance: none; width: 34px; height: 20px; border-radius: 20px; background: #dedbe7; position: relative; cursor: pointer; transition: background .15s; flex-shrink: 0; margin: 0; }
.rate-master input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #24203912; transition: transform .15s; }
.rate-master input:checked { background: #9b83de; }
.rate-master input:checked::after { transform: translateX(14px); }
.rate-master input:focus-visible { outline: 2px solid #c0afe5; outline-offset: 3px; }
.rate-master input:disabled { cursor: wait; opacity: .65; }
.rate-number-hint, .rate-restart-note { color: #a39aaf; font-size: 10px; line-height: 1.8; }
.rate-number-hint { margin: 13px 0 0; }
.rate-section { margin-top: 18px; }
.rate-section h3 { font-size: 12px; color: #81748e; font-weight: 500; margin: 0 0 5px; }
.rate-section > p { font-size: 10px; color: #aaa3b5; line-height: 1.7; margin: 0 0 12px; }
.rate-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 20px; }
.rate-field > label { display: block; color: #938a9e; font-size: 10px; margin-bottom: 6px; line-height: 1.6; }
.rate-input-wrap { position: relative; }
.rate-input-wrap .text-field { font-size: 12px; padding-right: 100px; width: 100%; min-height: 36px; font-variant-numeric: tabular-nums; margin: 0; appearance: textfield; }
.rate-input-wrap .text-field::-webkit-inner-spin-button { appearance: none; }
.rate-input-wrap > span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: #b2aabe; font-size: 10px; pointer-events: none; }
.rate-input-wrap .text-field[aria-invalid="true"] { border-color: #d69aa4; }
.rate-input-wrap .text-field:disabled { background: #f6f4f9; color: #aaa3b6; }
.rate-restart-note { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid #eeeaf4; }
.rate-error { color: #be7583; font-size: 11px; line-height: 1.8; margin: 12px 0 0; }
.rate-error:empty { display: none; }
.rate-footer { position: sticky; bottom: -23px; background: #fff; padding: 13px 0 0; z-index: 1; }
.rate-footer > p { color: #9d91ad; font-size: 10px; line-height: 1.8; margin: 0 0 9px; }
.rate-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.rate-actions .btn { margin-top: 0; }
.rate-actions .btn:disabled { opacity: .45; cursor: not-allowed; }
@media(max-width:560px) {
  .rate-status-panel { align-items: flex-start; flex-direction: column; gap: 8px; }
  .rate-fields { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .rate-footer { bottom: -21px; }
  .rate-active-values > div { align-items: baseline; }
  .rate-active-values strong { white-space: nowrap; }
}
