.rate { --r-chip: 8px; --r-btn: 10px; display: grid; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--card-radius, 12px); background: var(--surface); }
.rate__a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 32px; }
.rate__l { flex: 1 1 auto; min-width: 0; margin: 0; font-size: .95rem; line-height: 1.25; }
.rate__l b { font-weight: 800; }
.rate__none { color: var(--muted); }
.rate__tag { display: inline-flex; align-items: center; flex: none; height: 24px; padding: 0 8px; border-radius: var(--r-chip); background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.rate__tag[hidden], .rate__own[hidden], .rate__pk[hidden] { display: none; }
.rate__sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 24px; }
.rate__a .info-btn { flex: none; }
.rate__own { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 24px; color: var(--muted); font-size: .8rem; }
.rate__own b { color: var(--text); font-size: .85rem; }
.rate__mt { display: inline-flex; flex: none; gap: 3px; width: 42px; height: 24px; align-items: flex-end; }
.rate__mt i { display: block; width: 6px; border-radius: 1px; background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }
.rate__mt i:nth-child(1) { height: 8px; } .rate__mt i:nth-child(2) { height: 12px; } .rate__mt i:nth-child(3) { height: 16px; } .rate__mt i:nth-child(4) { height: 20px; } .rate__mt i:nth-child(5) { height: 24px; }
.rate__mt--sm { gap: 2px; width: 28px; height: 14px; }
.rate__mt--sm i { width: 4px; }
.rate__mt--sm i:nth-child(1) { height: 6px; } .rate__mt--sm i:nth-child(2) { height: 8px; } .rate__mt--sm i:nth-child(3) { height: 10px; } .rate__mt--sm i:nth-child(4) { height: 12px; } .rate__mt--sm i:nth-child(5) { height: 14px; }
.rate__mt[data-step="1"] i:nth-child(-n+1), .rate__mt[data-step="2"] i:nth-child(-n+2), .rate__mt[data-step="3"] i:nth-child(-n+3),
.rate__mt[data-step="4"] i:nth-child(-n+4), .rate__mt[data-step="5"] i { background: var(--text); box-shadow: none; }
.rate__act { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.rate__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; height: 40px; min-width: 44px; padding: 0 16px; border: 0; border-radius: var(--r-btn); background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: inherit; font-size: .9rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.rate__btn::after { content: ""; position: absolute; inset: -4px 0; }
.rate__btn:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--muted); }
.rate__btn:focus-visible, .rate__row:focus-visible, .rate .seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rate__btn:disabled { opacity: .5; cursor: default; }
.rate__btn--primary { background: var(--chip-on); color: var(--chip-on-ink); box-shadow: none; }
.rate__go { flex: 1 1 0; }
.rate__you { display: none; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; font-size: .9rem; }
.rate__you > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rate__thanks { margin: 0; color: var(--muted); font-size: .8rem; }
.rate__pk { display: grid; gap: 12px; }
.rate--open .rate__act { display: none; }
.rate__q { margin: 0; font-size: .95rem; font-weight: 700; }
.rate__steps { display: grid; gap: 4px; }
.rate__row { display: grid; grid-template-columns: 28px 78px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 48px; padding: 4px 12px; border: 0; border-radius: var(--r-btn); background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: inherit; font-size: .85rem; text-align: left; cursor: pointer; }
.rate__row b { font-size: .9rem; white-space: nowrap; }
.rate__anchor { color: var(--muted); font-size: .75rem; line-height: 1.2; }
.rate__row[aria-checked="true"] { background: var(--seg-on); box-shadow: inset 0 0 0 2px var(--text); }
.rate__line { display: none; margin: 0; color: var(--muted); font-size: .8rem; }
.rate__on { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rate__on > span { color: var(--muted); font-size: .8rem; }
.rate .seg button { min-height: 32px; }
.rate__pkact { display: flex; flex-wrap: wrap; gap: 8px; }
.rate__err { margin: 0; padding: 8px 12px; border-radius: var(--card-radius, 12px); background: color-mix(in srgb, var(--bad-ink) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad-ink) 45%, var(--line)); font-size: .85rem; }
.rate__err[hidden] { display: none; }
.rate__ts { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 70; }
@media (min-width: 700px) {
  .rate:not(.rate--open) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .rate:not(.rate--open) > .rate__a { grid-column: 1; }
  .rate:not(.rate--open) > .rate__act { grid-column: 2; grid-row: 1; }
  .rate:not(.rate--open) > :not(.rate__a):not(.rate__act) { grid-column: 1 / -1; }
  .rate__go { flex: none; }
  .rate__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rate__row { display: flex; justify-content: center; min-height: 40px; height: 40px; padding: 0 4px; }
  .rate__row .rate__mt, .rate__row .rate__anchor { display: none; }
  .rate__line { display: block; min-height: 24px; }
}
@media (prefers-reduced-motion: no-preference) { .rate__btn, .rate__row { transition: box-shadow .12s ease; } }
.mm-trainer-row__where { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.rate-pill { --r-chip: 8px; margin-left: auto; display: inline-flex; align-items: center; flex: none; gap: 6px; height: 24px; padding: 0 8px 0 6px; border-radius: var(--r-chip); background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.rate-pill[hidden] { display: none; }
