:root {
  /* Фон */
  --bg-main: #090909;
  --bg-header: #0d0d0d;
  --bg-panel: #111111;
  --bg-panel-soft: #171717;

  /* Кнопки */
  --btn-bg: #171717;
  --btn-bg-hover: #242424;

  /* Текст */
  --text-main: #f5f5f5;
  --text-muted: #a3a3a3;

  /* Рамки */
  --border-main: #2e2e2e;
  --border-hover: #d4d4d4;

  /* Свечение */
  --glow: rgba(255, 255, 255, 0.22);
  --glow-soft: rgba(255, 255, 255, 0.1);
  --field-ring: 0 0 0 1px var(--border-hover), 0 5px 15px var(--glow-soft);
  --button-hover-ring: 0 0 0 2px rgba(255, 255, 255, 0.24), 0 0 18px var(--glow);
  --field-focus-glow: 0 0 14px var(--glow);
  --interactive-raise: translateY(-3px);
  --interactive-raise-soft: translateY(-1px);
  --interactive-press: translateY(1px) scale(0.98);
  --line-thin: 1px solid var(--border-main);

  --rr-bg: var(--bg-main);
  --rr-bg-soft: var(--bg-panel);
  --rr-bg-soft2: var(--bg-panel-soft);
  --rr-text: var(--text-main);
  --rr-text-muted: var(--text-muted);
  --rr-muted: var(--text-muted);
  --rr-border: var(--border-main);
  --rr-accent: var(--border-hover);
  --rr-hover: var(--border-hover);
  --rr-focus-ring: rgba(255, 255, 255, 0.28);
  --rr-state-bg: rgba(255, 255, 255, 0.08);
  --rr-state-bg-strong: rgba(255, 255, 255, 0.14);
  --rr-state-bg-hover: rgba(255, 255, 255, 0.1);
  --rr-ok: #27c46a;
  --rr-ok-glow: rgba(39, 196, 106, 0.34);
  --rr-danger: #ff4d4f;
  --rr-danger-glow: rgba(255, 77, 79, 0.34);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--border-main) var(--bg-main);
}

html { scrollbar-gutter: stable; }

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-main);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid var(--bg-main);
  border-radius: 999px;
  background: var(--border-main);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
  box-shadow: 0 0 12px var(--glow-soft);
}

*::-webkit-scrollbar-corner {
  background: var(--bg-main);
}

body.rr-body {
  margin: 0;
  min-height: 100vh;
  background: var(--rr-bg);
  color: var(--rr-text);
  font-family: Verdana, 'Segoe UI', Roboto, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  user-select: none;
}

input,
textarea,
.rr-input,
[contenteditable="true"] {
  user-select: text;
  caret-color: var(--text-main);
}

input::selection,
textarea::selection {
  background: rgba(255, 255, 255, 0.24);
  color: var(--text-main);
}

.rr-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: var(--bg-header);
  border-bottom: var(--line-thin);
}

.rr-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rr-text);
  text-decoration: none;
}

.rr-header-brand:hover,
.rr-header-brand:visited { color: var(--rr-text); text-decoration: none; }

.rr-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.rr-logo:hover,
.rr-logo:active { transform: none; box-shadow: none; }

.rr-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}
.rr-brand-full { line-height: 1; }
.rr-brand:hover,
.rr-brand:active { transform: none; }
.rr-accent { color: var(--rr-text); }

.rr-main {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 16px;
  width: 100%;
}

.rr-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 16px;
  color: var(--rr-text-muted);
  font-size: 13px;
  border-top: var(--line-thin);
}

.rr-card {
  background: var(--rr-bg-soft);
  border: 1px solid var(--rr-border);
  border-radius: 8px;
  padding: 36px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transition: box-shadow 0.25s ease;
}

.rr-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.45); }

.rr-card-center { text-align: center; }
.rr-card-wide { max-width: 760px; }

.rr-fade-in { animation: rr-fade-in 0.5s ease both; }

@keyframes rr-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rr-title {
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--rr-text);
}

.rr-subtitle { color: var(--rr-text-muted); font-size: 14px; margin-bottom: 24px; line-height: 1.5; }

.rr-form { display: flex; flex-direction: column; gap: 14px; }
.rr-check-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid var(--rr-border); border-radius: 8px; cursor: pointer; background: var(--rr-bg-soft); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.rr-check-row:hover { background: var(--rr-bg-soft); border-color: var(--rr-border); box-shadow: none; }
.rr-check-row:active { transform: none; }
.rr-check-row input { appearance: none; width: 16px; height: 16px; margin-top: 2px; border: 1px solid var(--rr-border); border-radius: 4px; background: var(--bg-main); display: grid; place-items: center; flex-shrink: 0; }
.rr-check-row input::before { content: ""; width: 8px; height: 5px; border-left: 2px solid var(--text-main); border-bottom: 2px solid var(--text-main); background: transparent; transform: rotate(-45deg) scale(0); transition: transform 0.15s ease; }
.rr-check-row input:checked { border-color: var(--border-hover); box-shadow: var(--field-ring); }
.rr-check-row input:checked::before { transform: rotate(-45deg) scale(1); }
.rr-check-row span { display: flex; flex-direction: column; gap: 5px; }
.rr-check-row small { color: var(--rr-muted); line-height: 1.4; }
.rr-template-help { margin-top: 18px; padding: 0; border: 0; background: transparent; }
.rr-template-help h3 { margin: 0 0 10px; }
.rr-template-help ul { margin: 0; padding-left: 20px; color: var(--rr-muted); line-height: 1.8; }
.rr-template-help code { color: var(--rr-accent); }
.rr-settings-back { display: inline-flex; align-items: center; justify-content: center; width: 112px; min-width: 112px; min-height: 36px; gap: 6px; padding: 8px 16px; border: 1px solid transparent; border-radius: 8px; color: var(--rr-text); text-decoration: none; font-weight: 600; background: var(--btn-bg); transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.rr-settings-back:hover { color: var(--rr-text); background: var(--btn-bg-hover); border-color: var(--border-hover); box-shadow: 0 5px 15px var(--glow); transform: var(--interactive-raise); }
.rr-settings-back:active { border-color: var(--border-hover); box-shadow: 0 5px 10px var(--glow); transform: var(--interactive-press); }
.rr-review-template-list { display: flex; flex-direction: column; gap: 12px; }
.rr-review-template-card { padding: 14px; border: 1px solid var(--rr-border); border-radius: 8px; background: rgba(255,255,255,.025); }
.rr-review-template-title { margin-bottom: 9px; color: var(--rr-text); font-size: 18px; letter-spacing: 1px; }
.rr-review-template-title span { margin-left: 8px; color: var(--rr-text); font-size: 14px; letter-spacing: 0; }
.rr-reset-template-btn { align-self: flex-start; }
.rr-fixed-template-textarea { min-height: 150px; resize: vertical; overflow-y: auto; }
.rr-template-actions { display: flex; justify-content: flex-start; }

.rr-input {
  background: #111111;
  border: 1px solid var(--rr-border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--rr-text);
  font-size: 16px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.rr-input::placeholder,
textarea::placeholder {
  color: var(--rr-text-muted);
  opacity: 0.82;
  letter-spacing: 0;
}

.rr-input:hover {
  border-color: var(--border-hover);
  box-shadow: none;
}

.rr-input:focus {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: var(--field-focus-glow);
  transform: none;
}

.rr-input:active { transform: none; }

.rr-input-key { text-align: center; letter-spacing: 2px; font-weight: 600; }
.rr-input-key:placeholder-shown { letter-spacing: 0; }

.rr-date-control {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  min-width: 0;
}

.rr-date-display {
  padding-right: 54px;
  user-select: none;
  cursor: default;
}

.rr-date-button {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--rr-text-muted);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rr-date-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.rr-date-button:hover,
.rr-date-button:focus-visible {
  outline: none;
  color: var(--rr-text);
  background: var(--btn-bg-hover);
  border-color: var(--border-hover);
  box-shadow: 0 5px 15px var(--glow);
  transform: var(--interactive-raise);
}

.rr-date-button:active {
  border-color: var(--border-hover);
  box-shadow: 0 5px 10px var(--glow);
  transform: var(--interactive-press);
}

.rr-calendar-popover {
  position: fixed;
  z-index: 320;
  padding: 10px;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  background: var(--rr-bg-soft);
  color: var(--rr-text);
  box-shadow: 0 18px 42px rgba(0,0,0,0.62), 0 0 18px var(--glow-soft);
  animation: rr-calendar-in 0.16s ease both;
  user-select: none;
}

.rr-calendar-head {
  display: grid;
  grid-template-columns: 34px 1fr 34px 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rr-calendar-head strong {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0;
}

.rr-calendar-nav,
.rr-calendar-close,
.rr-calendar-action,
.rr-calendar-day {
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--rr-text);
  font-family: inherit;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rr-calendar-nav {
  width: 34px;
  height: 34px;
  position: relative;
}

.rr-calendar-close {
  width: 34px;
  height: 34px;
  position: relative;
}

.rr-calendar-nav::before {
  content: "";
  position: absolute;
  inset: 11px 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.rr-calendar-nav-next::before {
  transform: rotate(-135deg);
}

.rr-calendar-close::before,
.rr-calendar-close::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.rr-calendar-close::before { transform: rotate(45deg); }
.rr-calendar-close::after { transform: rotate(-45deg); }

.rr-calendar-weekdays,
.rr-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.rr-calendar-weekdays {
  margin-bottom: 6px;
  color: var(--rr-text-muted);
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
}

.rr-calendar-day {
  min-height: 32px;
  padding: 0;
  font-size: 13px;
}

.rr-calendar-day-muted { color: var(--rr-text-muted); opacity: 0.62; }
.rr-calendar-day-today { border-color: var(--rr-border); }
.rr-calendar-day-selected {
  color: var(--rr-text);
  border-color: var(--border-hover);
  background: var(--btn-bg-hover);
  box-shadow: 0 0 12px var(--glow-soft);
}

.rr-calendar-nav:hover,
.rr-calendar-nav:focus-visible,
.rr-calendar-close:hover,
.rr-calendar-close:focus-visible,
.rr-calendar-action:hover,
.rr-calendar-action:focus-visible,
.rr-calendar-day:hover,
.rr-calendar-day:focus-visible {
  outline: none;
  background: var(--btn-bg-hover);
  border-color: var(--border-hover);
  box-shadow: 0 5px 15px var(--glow);
  transform: var(--interactive-raise-soft);
}

.rr-calendar-nav:active,
.rr-calendar-close:active,
.rr-calendar-action:active,
.rr-calendar-day:active {
  transform: var(--interactive-press);
}

.rr-calendar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.rr-calendar-action {
  min-height: 34px;
  font-size: 13px;
  font-weight: 600;
}

@keyframes rr-calendar-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.rr-field-error {
  position: fixed;
  z-index: 260;
  padding: 9px 12px;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  background: var(--rr-bg-soft);
  color: var(--rr-text);
  box-shadow: 0 10px 28px rgba(0,0,0,0.42), 0 0 16px var(--glow-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  animation: rr-field-error-in 0.18s ease both;
  pointer-events: none;
}

.rr-field-error-popover {
  min-width: 220px;
}

.rr-field-error::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--border-hover);
  border-bottom: 1px solid var(--border-hover);
  background: var(--rr-bg-soft);
  transform: translateX(-50%) rotate(45deg);
}

.rr-field-invalid {
  border-color: var(--border-hover);
  box-shadow: var(--field-ring);
}

@keyframes rr-field-error-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.rr-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--rr-text);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.rr-btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--border-hover);
  box-shadow: 0 5px 15px var(--glow);
  transform: var(--interactive-raise);
}

.rr-btn:focus-visible {
  outline: none;
  background: var(--btn-bg-hover);
  border-color: var(--border-hover);
  box-shadow: 0 5px 15px var(--glow);
}

.rr-btn:active {
  border-color: var(--border-hover);
  box-shadow: 0 5px 10px var(--glow);
  transform: var(--interactive-press);
}

.rr-btn-primary {
  background: var(--btn-bg);
  color: var(--rr-text);
  box-shadow: none;
}

.rr-btn-primary:hover { background: var(--btn-bg-hover); }

.rr-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

.rr-btn-ghost {
  background: var(--btn-bg);
  border: 1px solid var(--rr-border);
  color: var(--rr-text-muted);
}

.rr-btn-ghost:hover { color: var(--rr-text); }

.rr-btn-block { display: block; width: 100%; text-align: center; margin-top: 20px; text-decoration: none; }

.rr-logout-big {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 16px;
  font-size: 15px;
  background: var(--btn-bg);
  border: 1px solid var(--rr-border);
  color: var(--rr-text-muted);
}

.rr-logout-big:hover { background: var(--btn-bg-hover); color: var(--rr-text); border-color: var(--border-hover); box-shadow: 0 5px 15px var(--glow); transform: var(--interactive-raise); }
.rr-logout-big:active { border-color: var(--border-hover); box-shadow: 0 5px 10px var(--glow); transform: var(--interactive-press); }

.rr-panel code {
  background: var(--rr-state-bg);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  color: var(--rr-text);
}

.rr-field { margin-bottom: 18px; text-align: left; }

.rr-field label {
  display: block;
  font-size: 12px;
  color: var(--rr-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rr-copyrow { display: flex; gap: 8px; }
.rr-copyrow input { flex: 1; }

.rr-status { font-weight: 600; margin-bottom: 20px; }
.rr-status-active { color: var(--rr-text); }
.rr-status-active #rr-timer { font-family: monospace; font-size: 18px; }
.rr-status-expired { color: var(--rr-text-muted); }

.rr-code-result {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--rr-text);
  min-height: 28px;
}

.rr-code-result.rr-code-pop { animation: rr-code-pop 0.4s ease; }

@keyframes rr-code-pop {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.rr-hint { color: var(--rr-text-muted); font-size: 12px; margin-top: 6px; }

/* ── Покупатель: карточка аккаунта ───────────────────────────── */
/* 2FA нужно больше высоты (поле + кнопка + подсказка в 3 строки), чем
   логину/паролю — если все три в одну строку равной ширины, под
   короткими полями остаётся пустая дыра, а 2FA-подсказка переносится.
   Логин/пароль делят верхний ряд, 2FA — отдельным рядом на всю ширину. */
.rr-account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}

.rr-account-grid .rr-field-2fa { grid-column: 1 / -1; }

.rr-otp-btn { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; margin-top: 10px; }
.rr-otp-ring { flex-shrink: 0; }
#rr-otp-ring-fg { transition: stroke-dashoffset 1s linear; }

/* ── Покупатель: список активных ключей ──────────────────────── */
.rr-key-list-actions { display: flex; justify-content: flex-start; margin: 10px 0 18px; }
.rr-key-list-back { width: auto; min-width: 112px; }
.rr-key-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; text-align: left; }

.rr-key-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--rr-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--rr-text);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.rr-key-item:hover,
.rr-key-item:focus-visible {
  outline: none;
  background: var(--rr-bg-soft);
  border-color: var(--border-hover);
  box-shadow: 0 5px 15px var(--glow);
  transform: var(--interactive-raise-soft);
}
.rr-key-item:active {
  border-color: var(--border-hover);
  box-shadow: 0 5px 10px var(--glow);
  transform: var(--interactive-press);
}
.rr-key-item-title { font-weight: 600; }
.rr-key-item-number { color: var(--rr-text-muted); font-weight: 400; }
.rr-key-item-status { color: var(--rr-text-muted); font-size: 12px; }
.rr-key-item-expired { opacity: 0.6; }
.rr-buyer-logout-wrap { text-align: center; margin-top: 24px; }
.rr-buyer-logout { display: inline-flex; min-width: 110px; justify-content: center; padding: 8px 20px; font-size: 14px; border-radius: 9px; }

@media (max-width: 560px) {
  .rr-account-grid { grid-template-columns: 1fr; }
}

/* ── Покупатель: действия с аккаунтом (продлить / обновить) ──── */
.rr-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

@media (max-width: 560px) {
  .rr-action-grid { grid-template-columns: 1fr; }
}

.rr-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rr-action-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.rr-action-btn:hover { transform: var(--interactive-raise); }
.rr-action-btn:focus-visible { outline: none; border-color: var(--border-hover); box-shadow: 0 5px 15px var(--glow); }
.rr-action-btn:active { border-color: var(--border-hover); box-shadow: 0 5px 10px var(--glow); transform: var(--interactive-press); }
.rr-action-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.rr-action-btn-extend {
  background: var(--btn-bg);
  color: var(--rr-text);
}
.rr-action-btn-extend:hover { background: var(--btn-bg-hover); border-color: var(--border-hover); box-shadow: 0 5px 15px var(--glow); }

.rr-action-btn-refresh {
  background: var(--btn-bg);
  color: var(--rr-text);
}
.rr-action-btn-refresh:hover { background: var(--btn-bg-hover); border-color: var(--border-hover); box-shadow: 0 5px 15px var(--glow); }

.rr-account-unavailable {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--rr-state-bg);
  border: 1px solid var(--border-hover);
  color: var(--rr-text);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.rr-link-muted {
  display: inline-block;
  margin-top: 12px;
  color: var(--rr-text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.rr-link-muted:hover { color: var(--rr-text); }

.rr-flash-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; width: 100%; max-width: 460px; }

.rr-flash-stack,
.rr-toast-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  margin: 0;
  pointer-events: none;
}

.rr-flash {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0,0,0,0.55);
  animation: rr-toast-in 0.24s ease both;
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: auto;
}

.rr-flash-out { opacity: 0; transform: translateY(8px); }

.rr-flash-error,
.rr-flash-success,
.rr-flash-warning { background: var(--rr-state-bg); border: 1px solid var(--border-hover); color: var(--rr-text); }

.rr-toast { background: var(--rr-bg-soft); border: 1px solid var(--border-hover); color: var(--rr-text); }

@keyframes rr-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Админ-панель ─────────────────────────────────────────── */
.rr-admin-layout { display: flex; width: 100%; min-height: 100vh; }

.rr-sidebar {
  width: 232px;
  background: var(--rr-bg-soft);
  border-right: var(--line-thin);
  padding: 0 12px 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
}

.rr-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 24px;
  margin: 0 -12px 10px;
  border-bottom: var(--line-thin);
  color: var(--rr-text);
  text-decoration: none;
}
.rr-sidebar-brand:visited, .rr-sidebar-brand:hover { color: var(--rr-text); text-decoration: none; }
.rr-sidebar-brand:hover { background: transparent; transform: none; }
.rr-sidebar-brand:active { transform: none; }

.rr-sidebar-logo {
  width: 38px;
  height: 38px;
  border-radius: 7px;
}

.rr-sidebar-logo:hover {
  transform: none;
  box-shadow: none;
}

.rr-sidebar-spacer { flex: 1; }

.rr-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--rr-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  margin-bottom: 4px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.rr-nav-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.rr-nav-link:hover {
  color: var(--rr-text);
  background: var(--btn-bg-hover);
  border-color: var(--border-hover);
  box-shadow: 0 5px 15px var(--glow);
  transform: var(--interactive-raise);
}

.rr-nav-link:focus-visible {
  outline: none;
  color: var(--rr-text);
  background: var(--btn-bg-hover);
  border-color: var(--border-hover);
  box-shadow: 0 5px 15px var(--glow);
}

.rr-nav-link:active {
  color: var(--rr-text);
  border-color: var(--border-hover);
  box-shadow: 0 5px 10px var(--glow);
  transform: var(--interactive-press);
}

.rr-nav-link:hover .rr-nav-icon { transform: none; }

.rr-nav-link.active {
  color: var(--rr-text);
  border-color: var(--border-hover);
  background: var(--btn-bg-hover);
  box-shadow: 0 5px 15px var(--glow-soft);
}

.rr-nav-link.active .rr-nav-icon { color: var(--rr-text); }

.rr-nav-link-exit { color: var(--rr-text-muted); }
.rr-nav-link-exit:hover { color: var(--rr-text); }

.rr-back-link,
.rr-settings-back,
.rr-btn[data-proxy-back],
.rr-btn[data-edit-profile-back] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--rr-border);
  border-radius: 8px;
  color: var(--rr-text-muted);
  font-size: 0;
  text-decoration: none;
  background: var(--btn-bg);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.rr-back-link::before,
.rr-settings-back::before,
.rr-btn[data-proxy-back]::before,
.rr-btn[data-edit-profile-back]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.rr-back-link:hover,
.rr-settings-back:hover,
.rr-btn[data-proxy-back]:hover,
.rr-btn[data-edit-profile-back]:hover { color: var(--rr-text); border-color: var(--border-hover); background: var(--btn-bg-hover); box-shadow: 0 5px 15px var(--glow); transform: var(--interactive-raise); }
.rr-back-link:focus-visible,
.rr-settings-back:focus-visible,
.rr-btn[data-proxy-back]:focus-visible,
.rr-btn[data-edit-profile-back]:focus-visible { outline: none; color: var(--rr-text); border-color: var(--border-hover); background: var(--btn-bg-hover); box-shadow: 0 5px 15px var(--glow); }
.rr-back-link:active,
.rr-settings-back:active,
.rr-btn[data-proxy-back]:active,
.rr-btn[data-edit-profile-back]:active { border-color: var(--border-hover); box-shadow: 0 5px 10px var(--glow); transform: var(--interactive-press); }
.rr-key-new-link { width: auto; min-width: 148px; margin-top: 16px; }

.rr-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}

.rr-nav-dot-on { background: var(--rr-ok); box-shadow: 0 0 8px var(--rr-ok-glow); }
.rr-nav-dot-off { background: var(--rr-text-muted); }
.rr-nav-dot-warn { background: var(--rr-danger); box-shadow: 0 0 8px var(--rr-danger-glow); }

.rr-nav-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.rr-content { flex: 1; min-width: 0; margin-left: 232px; padding: 24px 32px 32px; position: relative; z-index: 1; max-width: none; }
.rr-modal-layer-open .rr-content { z-index: 400; }

.rr-admin-topbar {
  position: sticky;
  top: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 62px;
  margin: -24px -32px 36px;
  padding: 10px 32px;
  background: var(--bg-header);
  border-bottom: var(--line-thin);
  user-select: none;
}

.rr-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.rr-topbar-settings { margin-right: auto; }

.rr-topbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--rr-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.rr-topbar-action:visited { color: var(--rr-text); }

.rr-topbar-action:hover,
.rr-topbar-action:focus-visible {
  transform: translateY(-2px);
  background: var(--btn-bg-hover);
  border-color: var(--border-hover);
  box-shadow: 0 0 12px var(--glow);
  outline: none;
}

.rr-topbar-action:active {
  transform: scale(0.96);
  border-color: var(--border-hover);
  box-shadow: 0 0 8px var(--glow);
}

.rr-topbar-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

.rr-notification-wrap {
  position: relative;
  display: inline-flex;
}

.rr-notification-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rr-danger);
  color: var(--rr-text);
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 0 12px var(--rr-danger-glow);
}

.rr-notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 520;
  width: min(380px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid var(--border-main);
  border-radius: 8px;
  background: var(--bg-header);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rr-notification-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 26px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--border-main);
  border-top: 1px solid var(--border-main);
  background: var(--bg-header);
  transform: rotate(45deg);
}

.rr-notification-panel:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: rr-notification-in 0.2s ease both;
}

.rr-notification-panel.rr-notification-closing {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
}

@keyframes rr-notification-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rr-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 10px;
  border-bottom: var(--line-thin);
}

.rr-notification-head strong { font-size: 14px; }

.rr-panel-close {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--btn-bg);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rr-panel-close::before,
.rr-panel-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--text-main);
}

.rr-panel-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.rr-panel-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.rr-panel-close:hover,
.rr-panel-close:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 0 10px var(--glow);
  outline: none;
}
.rr-panel-close:active { transform: scale(0.96); border-color: var(--border-hover); }

.rr-notification-head span {
  color: var(--rr-text-muted);
  font-size: 12px;
}

.rr-notification-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-top: 10px;
}

.rr-notification-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: flex-start;
  padding: 11px;
  border-radius: 8px;
  background: var(--rr-bg-soft);
}
.rr-notification-dismiss { position: relative; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--rr-text-muted); cursor: pointer; transition: background .2s, color .2s; }
.rr-notification-dismiss::before, .rr-notification-dismiss::after { content: ''; position: absolute; top: 11px; left: 5px; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.rr-notification-dismiss::after { transform: rotate(-45deg); }
.rr-notification-dismiss:hover, .rr-notification-dismiss:focus-visible { background: #343434; color: white; }

.rr-notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--rr-text-muted);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
}

.rr-notification-danger .rr-notification-dot {
  background: var(--rr-danger);
  box-shadow: 0 0 10px var(--rr-danger-glow);
}

.rr-notification-warn .rr-notification-dot {
  background: var(--rr-warn);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.16);
}

.rr-notification-item strong,
.rr-notification-empty strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.rr-notification-item small,
.rr-notification-empty small {
  display: block;
  margin-top: 4px;
  color: var(--rr-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.rr-notification-empty {
  padding: 18px 12px 8px;
  text-align: center;
}

.rr-scroll-top {
  position: fixed;
  top: 74px;
  left: calc(232px + (100vw - 232px) / 2);
  z-index: 560;
  display: inline-flex;
  min-width: 112px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #1b2b21;
  color: var(--rr-text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.rr-scroll-top span {
  width: 11px;
  height: 11px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}

.rr-scroll-top strong {
  font: inherit;
  line-height: 1;
}

.rr-scroll-top.rr-scroll-top-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.rr-scroll-top:hover,
.rr-scroll-top:focus-visible {
  outline: none;
  transform: translate(-50%, 0);
  background: #24402e;
  border-color: #69c688;
  box-shadow: 0 5px 15px var(--rr-ok-glow);
}

.rr-scroll-top:active {
  transform: translate(-50%, 0);
  border-color: var(--border-hover);
  box-shadow: 0 5px 10px var(--glow);
}

.rr-panel {
  background: var(--rr-bg-soft);
  border: 1px solid var(--rr-border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  opacity: 0;
  transition: box-shadow 0.25s ease;
}

.rr-panel:hover { box-shadow: none; }

/* Rockstar section headings sit above the controls they describe. */
.rr-rockstar-section {
  border-color: rgba(174, 184, 203, 0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.rr-rockstar-section-title {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 18px !important;
  padding: 15px 48px;
  border: 1px solid #69c688;
  border-radius: 10px;
  background: #24402e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 5px 15px rgba(39,196,106,0.12);
  color: var(--rr-text);
  text-align: center;
  font-size: 18px !important;
  font-weight: 700;
  letter-spacing: 0.015em;
}
.rr-rockstar-options { display: grid; gap: 14px; }
.rr-refund-help { color: var(--rr-muted); line-height: 1.5; margin: 0 0 18px; }
.rr-refund-field { width: min(100%, 420px); }
.rr-refund-field small { color: var(--rr-muted); line-height: 1.4; }
.rr-rockstar-option { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 18px; border: 1px solid var(--rr-border); border-radius: 10px; background: #151515; cursor: pointer; transition: border-color .2s, background .2s; }
.rr-rockstar-option:hover { border-color: #69c688; background: #1a211d; }
.rr-rockstar-option-copy { display: grid; gap: 5px; }
.rr-rockstar-option-copy small { color: var(--rr-muted); line-height: 1.4; }
.rr-delivery-options { display: grid; gap: 12px; }
.rr-delivery-option { display: flex; align-items: center; gap: 14px; padding: 17px 20px; border: 1px solid var(--rr-border); border-radius: 10px; background: #151515; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.rr-delivery-option:hover { border-color: #a94a58; }
.rr-delivery-option:has(input:checked) { border-color: #d25062; background: #2b171c; }
.rr-delivery-option:has(input:focus-visible) { outline: 2px solid #d25062; outline-offset: 3px; }
.rr-delivery-option input { accent-color: #d25062; flex: none; }
.rr-delivery-option span { display: grid; gap: 5px; }
.rr-delivery-option small { color: var(--rr-muted); line-height: 1.4; }
.rr-rockstar-switch { position: relative; flex: none; width: 48px; height: 27px; }
.rr-rockstar-switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rr-rockstar-switch span { display: block; width: 100%; height: 100%; border-radius: 999px; background: #414141; transition: background .2s; }
.rr-rockstar-switch span::after { content: ''; position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; background: white; transition: transform .2s; }
.rr-rockstar-switch input:checked + span { background: var(--rr-ok); }
.rr-rockstar-switch input:checked + span::after { transform: translateX(21px); }
.rr-rockstar-switch input:focus-visible + span { outline: 2px solid white; outline-offset: 3px; }
.rr-fp-routing-options { display: grid; gap: 12px; margin-top: 18px; }
.rr-fp-routing-option { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; padding: 16px 18px; border: 1px solid var(--rr-border); border-radius: 10px; background: #151515; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.rr-fp-routing-option:hover { border-color: #777; box-shadow: 0 0 0 1px #555; }
.rr-fp-routing-option:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.rr-fp-routing-option .rr-rockstar-option-copy { min-width: 0; }
.rr-rockstar-section .rr-accordion-head { position: relative; padding: 16px 24px 0; }
.rr-rockstar-section .rr-accordion-head > div { width: 100%; }
.rr-rockstar-section .rr-accordion-head .rr-rockstar-section-title { margin-bottom: 16px !important; }
.rr-rockstar-section .rr-accordion-head > .rr-accordion-arrow,
.rr-rockstar-section .rr-accordion-head > .rr-accordion-control { position: absolute; right: 42px; top: 31px; z-index: 1; }
.rr-rockstar-section .rr-accordion-head > .rr-accordion-control { right: 40px; }
.rr-rockstar-section .rr-accordion-head > .rr-accordion-control .rr-accordion-arrow { width: 16px; }
.rr-rockstar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1px solid #8d3942;
  border-radius: 10px;
  background: #3a1b21;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.rr-account-toolbar label { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; }
.rr-account-toolbar [data-account-count] { color: #bdbdbd; margin-right: auto; }
.rr-account-toolbar button:disabled { opacity: .5; cursor: default; }
.rr-users-page .rr-clean-fields > .rr-inline-check { display: inline-flex; align-items: center; gap: 8px; }
.rr-users-toolbar { margin-bottom: 14px; }
.rr-users-toolbar > .rr-inline-check { margin-right: 4px; }
.rr-users-toolbar [data-users-selected-count] { margin-right: auto; color: var(--rr-text-muted); }
.rr-users-toolbar button:disabled { opacity: .5; cursor: default; }
.rr-users-table .rr-user-select-cell { width: 52px; text-align: center; }
.rr-users-table .rr-user-select-cell .rr-inline-check { margin: 0; }
.rr-fp-account-toolbar { margin-bottom: 14px; }
.rr-fp-account-toolbar [data-fp-selected-count] { margin-right: auto; color: var(--rr-text-muted); }
.rr-fp-account-toolbar form { margin: 0; }
.rr-fp-account-toolbar button:disabled { opacity: .5; cursor: default; }
.rr-fp-accounts-table th:first-child,.rr-fp-proxies-table th:first-child { width: 52px; }
.rr-fp-accounts-table td:first-child,.rr-fp-proxies-table td:first-child { text-align: center; }
.rr-fp-accounts-table td:first-child .rr-inline-check,.rr-fp-proxies-table td:first-child .rr-inline-check { margin: 0; }
.rr-fp-scope { margin-bottom: 16px; }
.rr-fp-select-field { display: grid; align-content: start; gap: 8px; min-width: 0; color: var(--rr-text); font-size: 14px; font-weight: 600; line-height: 1.35; }
.rr-fp-select-field .rr-select { width: 100%; }
.rr-fp-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rr-fp-account-identity { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.rr-fp-table-avatar { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--rr-border); border-radius: 50%; object-fit: cover; }
.rr-fp-table-avatar-fallback { display: inline-grid; place-items: center; background: #24282c; color: #f2f3f5; font-size: 15px; font-weight: 700; }
.rr-mafile-label-line { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.rr-game-field { display: grid; align-content: start; gap: 8px; min-width: 0; color: var(--rr-text); font-size: 14px; font-weight: 600; line-height: 1.35; }
.rr-fp-scope { position: relative; padding: 14px 16px; border: 1px solid #383838; border-radius: 10px; background: #282828; }
.rr-fp-scope:has(.rr-select-open) { z-index: 240; }
.rr-fp-scope label,.rr-fp-scope .rr-rockstar-input-field { display: grid; gap: 8px; max-width: 440px; color: var(--rr-text); font-size: 14px; font-weight: 600; }
.rr-game-picker { display: grid; gap: 9px; min-width: 0; }
.rr-game-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-game-modes .rr-btn { flex: 1 1 150px; }
.rr-game-modes .rr-game-mode-active { border-color: #69c688; color: #fff; background: #234030; }
.rr-game-modes .rr-btn:not(.rr-game-mode-active):hover { border-color: var(--rr-border); background: #1b1b1b; box-shadow: none; transform: none; }
.rr-game-list { position: relative; display: grid; gap: 8px; min-width: 0; }
.rr-game-list[hidden], .rr-game-picker > [data-game-manual][hidden] { display: none; }
.rr-game-options { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 300; max-height: 216px; overflow-y: auto; border: 1px solid var(--rr-border); border-radius: 9px; background: #151515; box-shadow: 0 14px 32px rgba(0,0,0,.55); }
.rr-game-options[hidden] { display: none; }
.rr-game-picker:has(.rr-game-options:not([hidden])) { position: relative; z-index: 301; }
.rr-game-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #303030; background: transparent; color: var(--rr-text); text-align: left; cursor: pointer; }
.rr-game-option:last-child { border-bottom: 0; }
.rr-game-option:hover, .rr-game-option-selected { background: #263a2f; }
.rr-game-option small { color: #89d6a7; white-space: nowrap; }
.rr-table .rr-table-group td { padding: 10px 14px; border-top: 1px solid #454545; border-bottom: 1px solid #383838; background: #252525; color: #eee; font-size: 13px; font-weight: 700; text-align: left; }
.rr-game-empty { margin: 0; padding: 12px; color: var(--rr-text-muted); font-size: 13px; }
[data-review-bonus-field][hidden] { display: none; }
[data-mafile-note] { color: #89d6a7; font-size: 12px; font-weight: 500; white-space: nowrap; }
[data-mafile-note][hidden] { display: none; }
.rr-review-rule-toolbar { position: relative; display: grid; grid-template-columns: minmax(240px,1fr) auto auto; align-items: end; gap: 12px; overflow: visible; }
.rr-review-rule-toolbar:has(.rr-select-open) { z-index: 220; }
.rr-review-rule-account { display: grid; gap: 8px; min-width: 0; max-width: 420px; color: var(--rr-text); font-size: 14px; font-weight: 700; }
.rr-review-rule-account .rr-select.rr-select-open { z-index: 240; }
.rr-review-rule-scope { position: relative; max-width: none; margin-bottom: 14px; padding: 14px 16px; border: 1px solid #383838; border-radius: 10px; background: #282828; }
.rr-review-rule-scope .rr-select { max-width: 440px; }
.rr-review-rule-scope:has(.rr-select-open) { z-index: 240; }
.rr-review-rule-toolbar { display: flex; justify-content: flex-start; }
.rr-review-rule-toolbar > .rr-btn { min-height: 48px; }
.rr-review-rule-create { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) 42px; align-items: end; gap: 12px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--rr-border); border-radius: 10px; background: #171717; }
.rr-hour-rule-create { grid-template-columns: repeat(3, minmax(0, 1fr)) 42px; }
.rr-hour-rule-create .rr-review-rule-equals { display: none; }
.rr-review-rule-close { position: relative; width: 42px; height: 42px; border: 1px solid #444; border-radius: 10px; background: #262626; cursor: pointer; }
.rr-review-rule-close::before,.rr-review-rule-close::after { content: ''; position: absolute; left: 12px; top: 20px; width: 17px; height: 2px; border-radius: 2px; background: #eee; transform: rotate(45deg); }
.rr-review-rule-close::after { transform: rotate(-45deg); }
.rr-review-rule-close:hover,.rr-review-rule-close:focus-visible { border-color: #aaa; background: #343434; }
.rr-review-rule-create[hidden] { display: none; }
.rr-review-rule-create label,.rr-review-rule-edit label { display: grid; gap: 7px; min-width: 0; color: var(--rr-text); font-size: 14px; font-weight: 600; }
.rr-review-rule-create .rr-review-rule-equals { padding-bottom: 12px; color: var(--rr-text-muted); }
.rr-review-rules-help { margin: 0 0 14px; color: var(--rr-text-muted); font-size: 13px; }
.rr-rockstar-section > .rr-review-rules-accordion { margin-top: 0; border: 0; overflow: visible; }
.rr-rockstar-section > .rr-review-rules-accordion > .rr-accordion-head { padding: 0; }
.rr-rockstar-section > .rr-review-rules-accordion > .rr-accordion-head:hover { background: transparent; box-shadow: none; }
.rr-rockstar-section > .rr-review-rules-accordion > .rr-accordion-body { padding: 0 0 4px; }
.rr-rockstar-section > .rr-review-rules-accordion > .rr-accordion-head > .rr-accordion-control { right: 18px; top: 15px; }
.rr-review-rule-bulk { justify-content: flex-start; margin-bottom: 14px; }
.rr-review-rule-bulk-actions { display: inline-flex; gap: 12px; margin-left: auto; }
.rr-lot-progress-open { overflow: hidden; }
.rr-lot-progress-overlay { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.rr-lot-progress-overlay[hidden] { display: none; }
.rr-lot-progress-dialog { width: min(100%, 480px); padding: 28px; border: 1px solid #515151; border-radius: 16px; background: #171717; box-shadow: 0 24px 70px rgba(0,0,0,.65); text-align: center; }
.rr-lot-progress-dialog h2 { margin: 14px 0 8px; color: #fff; font-size: 22px; }
.rr-lot-progress-dialog p { color: #bbb; }
.rr-lot-progress-dialog strong { display: block; margin: 22px 0 10px; color: #fff; font-size: 16px; }
.rr-lot-progress-dialog progress { display: block; width: 100%; height: 12px; border: 0; border-radius: 99px; overflow: hidden; background: #353535; }
.rr-lot-progress-dialog progress::-webkit-progress-bar { background: #353535; }
.rr-lot-progress-dialog progress::-webkit-progress-value { background: #57ba78; }
.rr-lot-progress-dialog progress::-moz-progress-bar { background: #57ba78; }
.rr-lot-progress-spinner { width: 34px; height: 34px; margin: 0 auto; border: 3px solid #3a3a3a; border-top-color: #65c784; border-radius: 50%; animation: rr-lot-progress-spin .8s linear infinite; }
.rr-lot-progress-spinner[hidden],.rr-lot-progress-eta[hidden],.rr-lot-progress-errors[hidden],.rr-lot-progress-dialog .rr-btn[hidden] { display: none; }
.rr-lot-progress-errors { max-height: 170px; overflow: auto; margin: 14px 0; padding-left: 22px; color: #ff9ca5; text-align: left; font-size: 13px; }
.rr-lot-progress-dialog .rr-btn { margin-top: 14px; }
@keyframes rr-lot-progress-spin { to { transform: rotate(360deg); } }
.rr-review-rules-table th:first-child,.rr-review-rules-table td:first-child { width: 44px; text-align: center; }
.rr-review-rules-table td:last-child { width: 220px; }
.rr-review-rule-edit { display: grid; gap: 14px; }
.rr-review-rule-note { display: block; margin-top: 5px; color: #a9d9b8; font-size: 12px; font-weight: 500; }
.rr-review-rule-note[hidden] { display: none; }
@media (max-width: 640px) { .rr-review-rule-account { max-width: none; } .rr-review-rule-create { grid-template-columns: 1fr 42px; } .rr-review-rule-create label { grid-column: 1; } .rr-review-rule-create .rr-review-rule-equals { display: none; } .rr-review-rule-close { grid-column: 2; grid-row: 1; } .rr-review-rule-bulk-actions { width: 100%; margin-left: 0; } }
.rr-rockstar-section .rr-form-toolbar { justify-content: flex-start; }
.rr-rockstar-section .rr-form-actions { justify-content: flex-start; }
.rr-rockstar-proxy-form { display: grid; gap: 18px; }
.rr-rockstar-proxy-form .rr-field-label { display: grid; gap: 9px; margin: 0; font-weight: 700; }
.rr-rockstar-proxy-form .rr-input { width: 100%; min-width: 0; font-weight: 400; }
.rr-rockstar-proxy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rr-rockstar-proxy-column { display: grid; align-content: start; gap: 18px; }
.rr-configuration-scope { display: grid; gap: 9px; flex: 1 1 280px; width: min(100%, 420px); margin: 0 auto 0 0; color: var(--rr-text); font-size: 15px; font-weight: 700; }
.rr-configuration-scope .rr-select { width: 100%; }
.rr-configuration-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--rr-border); border-radius: 10px; background: #292929; }
.rr-configuration-actions form { margin: 0; }
.rr-rockstar-proxy-account { flex: 1 1 300px; width: min(100%, 520px); margin-right: auto !important; }
.rr-rockstar-proxy-account .rr-field-label { display: grid; gap: 9px; color: var(--rr-text); font-size: 15px; font-weight: 700; }
.rr-funpay-account-panel { margin-top: 18px; }
.rr-funpay-account-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.rr-funpay-feature-form .rr-field-label { font-weight: 700; }
.rr-funpay-feature-form .rr-rockstar-actions { margin-bottom: 22px; }
.rr-funpay-feature-form .rr-funpay-feature-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 320px); align-items: stretch; gap: 0; }
.rr-funpay-feature-actions { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 10px; min-width: 0; padding-right: 18px; }
.rr-funpay-feature-scope { display: grid; align-content: center; gap: 8px; min-width: 0; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.3); }
.rr-funpay-feature-scope .rr-field-label { margin: 0; }
.rr-funpay-feature-scope .rr-select { width: 100%; }
@media (max-width: 760px) {
  .rr-funpay-feature-form .rr-funpay-feature-toolbar { grid-template-columns: minmax(0, 1fr); }
  .rr-funpay-feature-actions { padding: 0 0 14px; }
  .rr-funpay-feature-scope { padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
}

@media (max-width: 700px) { .rr-rockstar-proxy-grid { grid-template-columns: 1fr; } }
.rr-rockstar-choice { display: grid; gap: 9px; margin-top: 8px; margin-bottom: 9px; }
.rr-rockstar-section .rr-issue-fields { margin: 0 0 8px; }
.rr-rockstar-nick { display: grid; gap: 9px; margin-top: 12px; }
.rr-rockstar-field-label { display: block; color: var(--rr-text); font-size: 14px; font-weight: 600; }
.rr-rockstar-input-field { display: grid; align-content: start; gap: 9px; min-width: 0; margin: 0; }
.rr-rockstar-issue-target { display: grid; gap: 9px; }
.rr-rockstar-input-field > .rr-input { width: 100%; min-height: 48px; }
.rr-rockstar-nick .rr-input { width: 100%; }
.rr-rockstar-account-table { min-width: 1020px; }
.rr-rockstar-account-table td { vertical-align: middle; }
.rr-rockstar-account-table th:first-child, .rr-rockstar-account-table td:first-child { width: 42px; text-align: center; }
.rr-rockstar-state { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; font-weight: 600; }
.rr-rockstar-state .rr-funpay-dot-sm { flex: 0 0 auto; background: #e2535d; box-shadow: 0 0 7px rgba(226,83,93,.35); }
.rr-rockstar-state-active { color: #84db9f; }
.rr-rockstar-state-active .rr-funpay-dot-sm { background: #47c476; box-shadow: 0 0 7px rgba(71,196,118,.42); }
.rr-rockstar-state-busy { color: #efc574; }
.rr-rockstar-state-busy .rr-funpay-dot-sm { background: #efc574; box-shadow: 0 0 7px rgba(239,197,116,.32); }
.rr-rockstar-state-rotating { color: #9cc4ff; }
.rr-rockstar-state-rotating .rr-funpay-dot-sm { background: #6faeff; box-shadow: 0 0 7px rgba(111,174,255,.4); animation: rr-rotation-pulse 1.4s ease-in-out infinite; }
.rr-rockstar-state-rotation_failed { color: #f4868d; white-space: normal; }
.rr-rockstar-state-rotation_failed .rr-funpay-dot-sm { background: #e2535d; box-shadow: 0 0 7px rgba(226,83,93,.35); }
.rr-rotation-error { display: block; max-width: 280px; margin-top: 5px; color: var(--rr-text-muted); font-size: 11px; line-height: 1.35; }
@keyframes rr-rotation-pulse { 50% { opacity: .4; transform: scale(.72); } }
.rr-rockstar-state-stopped { color: #f4868d; }
.rr-lot-transfer-field { display: grid; align-content: start; gap: 9px; min-width: 0; }
.rr-lot-transfer-field-label { display: block; color: var(--rr-text); font-size: 14px; font-weight: 700; }
.rr-lot-transfer-field > :is(.rr-select, .rr-input) { width: 100%; min-width: 0; }
.rr-file-picker { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 8px; border: 1px solid var(--rr-border); border-radius: 10px; background: var(--rr-field-bg, #111); transition: border-color .2s ease, box-shadow .2s ease; }
.rr-file-picker:hover, .rr-file-picker:focus-within { border-color: #69c688; box-shadow: 0 0 0 3px rgba(105,198,136,.1); }
.rr-file-picker-button { flex: 0 0 auto; cursor: pointer; }
.rr-file-picker-name { min-width: 0; overflow: hidden; color: var(--rr-text-muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.rr-lot-transfer-status { display: grid; gap: 9px; margin-top: 18px; padding: 16px; border: 1px solid #8d3942; border-radius: 10px; background: #27191d; }
.rr-lot-transfer-status[hidden] { display: none; }
.rr-lot-transfer-status[data-state="done"] { border-color: #69c688; background: #1b2b21; }
.rr-lot-transfer-status > span { color: var(--rr-text-muted); font-size: 13px; }
.rr-lot-transfer-status progress { width: 100%; height: 9px; accent-color: #69c688; }
.rr-lot-transfer-status [data-transfer-errors] p { margin: 3px 0; color: #f4868d; font-size: 13px; }
.rr-bulk-toolbar.rr-rockstar-actions { justify-content: flex-start; margin-bottom: 14px; }
.rr-bulk-toolbar.rr-rockstar-actions .rr-bulk-active { border: 0; padding: 0; background: transparent; }
@media (max-width: 540px) {
  .rr-rockstar-section-title { padding: 15px 34px; font-size: 16px !important; }
  .rr-rockstar-section .rr-accordion-head > .rr-accordion-control { right: 29px; top: 35px; }
  .rr-rockstar-section .rr-accordion-head > .rr-accordion-control [data-accordion-label] { display: none; }
}

.rr-panel h2 { margin-top: 0; font-size: 18px; }

.rr-rise-in { animation: rr-rise-in 0.28s ease both; }

@keyframes rr-rise-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rr-table-scroll { width: 100%; overflow-x: auto; }

table.rr-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.rr-variable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.rr-variable-grid > div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: var(--btn-bg);
}

.rr-variable-grid code {
  user-select: text;
  color: var(--rr-text);
  font-weight: 800;
}

.rr-variable-grid span,
.rr-variable-list li { user-select: none; }

.rr-variable-grid code::selection,
.rr-variable-list code::selection { background: rgba(255,255,255,.28); }

.rr-variable-list { list-style: none; padding: 0 !important; }
.rr-variable-list li {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--btn-bg);
  font-size: 13px;
  line-height: 1.5;
}
.rr-variable-list code { user-select: text; }
.rr-template-help h3:not(:first-child),
#variables h3 { margin: 24px 0 12px; font-size: 15px; }

.rr-variable-grid span {
  color: var(--rr-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

table.rr-table th, table.rr-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rr-border);
  border-right: 1px solid var(--rr-border);
  text-align: left;
}

table.rr-table th:last-child,table.rr-table td:last-child { border-right: 0; }
table.rr-table th { background: #242424; color: var(--rr-text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }

table.rr-table tbody tr { transition: none; opacity: 0; }
table.rr-table tbody tr:hover { background: transparent; }
table.rr-table tbody tr:hover td { background: rgba(255,255,255,.035); }
.rr-copy-feedback-label { display: inline-block; white-space: nowrap; }

.rr-row-in { animation: rr-row-in 0.35s ease both; }

@keyframes rr-row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.rr-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.rr-badge-active { background: rgba(255,255,255,0.16); color: var(--rr-text); }
.rr-badge-busy { background: rgba(255,255,255,0.1); color: var(--rr-text-muted); }
.rr-badge-stopped { background: rgba(255,255,255,0.06); color: var(--rr-text-muted); }

.rr-badge-suspicious {
  background: var(--rr-state-bg-strong);
  color: var(--rr-text);
  animation: rr-suspicious-pulse 1.6s ease-in-out infinite;
}

@keyframes rr-suspicious-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow); }
  50% { box-shadow: 0 0 0 5px rgba(255,255,255,0); }
}

.rr-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rr-form-grid .rr-field-full { grid-column: 1 / -1; }
.rr-clean-fields > label { display: grid; align-content: start; gap: 8px; min-width: 0; color: var(--rr-text); font-size: 14px; font-weight: 600; line-height: 1.35; }
.rr-clean-fields > label > :is(.rr-input,.rr-select) { width: 100%; min-width: 0; }
.rr-auto-field { display: grid; align-content: start; gap: 8px; min-width: 0; color: var(--rr-text); font-size: 14px; font-weight: 600; line-height: 1.35; }
.rr-auto-field-label { display: block; min-height: 19px; }
.rr-auto-field > .rr-input { width: 100%; min-width: 0; }
.rr-auto-select-field { display: grid; gap: 8px; align-self: start; overflow: visible; }
.rr-auto-select-field > .rr-auto-field-label { position: static; color: var(--rr-text); font-size: 14px; font-weight: 600; line-height: 1.35; pointer-events: none; }
.rr-auto-select-field > .rr-select-trigger { width: 100%; }

/* ── Кастомный dropdown (замена нативного <select>) ──────────── */
.rr-select { position: relative; min-width: 0; }

.rr-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: #111111;
  border: 1px solid var(--rr-border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--rr-text);
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.rr-select-trigger:hover {
  border-color: var(--border-hover);
  box-shadow: none;
}

.rr-select-trigger:active { transform: none; }

.rr-select.rr-select-open .rr-select-trigger {
  border-color: var(--border-hover);
  box-shadow: var(--field-focus-glow);
  transform: none;
}

.rr-select-trigger-placeholder { color: var(--rr-text-muted); }

.rr-select-trigger-arrow {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--rr-text-muted);
  border-bottom: 2px solid var(--rr-text-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.rr-select.rr-select-open .rr-select-trigger-arrow { transform: rotate(-135deg) translateY(2px); }

.rr-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 120;
  background: #101010;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  padding: 6px;
  max-height: min(320px, 58vh);
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.rr-select-menu::-webkit-scrollbar,
.rr-table-scroll::-webkit-scrollbar,
textarea.rr-input::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.rr-select-menu::-webkit-scrollbar-track,
.rr-table-scroll::-webkit-scrollbar-track,
textarea.rr-input::-webkit-scrollbar-track {
  background: var(--bg-main);
}

.rr-select-menu::-webkit-scrollbar-thumb,
.rr-table-scroll::-webkit-scrollbar-thumb,
textarea.rr-input::-webkit-scrollbar-thumb {
  background: var(--border-main);
  border-radius: 999px;
}

.rr-select-menu::-webkit-scrollbar-thumb:hover,
.rr-table-scroll::-webkit-scrollbar-thumb:hover,
textarea.rr-input::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

.rr-select.rr-select-open .rr-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.rr-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--rr-text);
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rr-select-option:hover,
.rr-select-option:focus-visible {
  background: var(--rr-state-bg-strong);
  color: var(--rr-text);
  outline: none;
}
.rr-select-option.rr-select-option-active { background: var(--rr-state-bg-strong); color: var(--rr-text); }
.rr-select-option.rr-select-option-active::after {
  content: "";
  width: 7px;
  height: 11px;
  border-right: 2px solid var(--text-main);
  border-bottom: 2px solid var(--text-main);
  transform: rotate(45deg);
  margin-left: 12px;
  flex-shrink: 0;
}
.rr-select-option.rr-select-option-active:hover,
.rr-select-option.rr-select-option-active:focus-visible { background: var(--rr-state-bg-strong); }
.rr-select-option:active { transform: none; }

.rr-choice-list { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }
.rr-choice-list .rr-select-option { font-size: 16px; padding: 12px 14px; }

.rr-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.rr-stat-card {
  background: var(--rr-bg-soft);
  border: 1px solid var(--rr-border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transition: none;
}

.rr-stat-card:hover { background: var(--rr-bg-soft); transform: none; box-shadow: none; }

.rr-stat-number {
  font-size: 30px;
  font-weight: 700;
  color: var(--rr-text);
  display: block;
}

.rr-stat-label { color: var(--rr-text-muted); font-size: 13px; margin-top: 4px; display: block; }

.rr-plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.rr-sales-plugin-grid > .rr-plugin-card { order: 5; }
.rr-plugin-category-title { margin: 28px 0 16px; font-size: 20px; font-weight: 700; color: var(--rr-text, #f4f4f4); }
.rr-plugin-category-title:first-of-type { margin-top: 18px; }
.rr-autoticket-fields { margin-top: 18px; }
.rr-autoticket-fields > label:not(.rr-check-row) { display: flex; flex-direction: column; gap: 9px; font-weight: 650; color: #f4f4f4; }
.rr-autoticket-fields > label:not(.rr-check-row) { pointer-events: none; }
.rr-autoticket-fields > label:not(.rr-check-row) > .rr-input { pointer-events: auto; }
.rr-autoticket-template-scope { margin: 18px 0; padding: 16px; border-radius: 10px; background: #292929; }
.rr-autoticket-template-scope .rr-configuration-scope { max-width: 620px; }
.rr-autoticket-log-actions { margin-bottom: 14px; }
.rr-autoticket-log-actions label { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.rr-autoticket-log-actions button { margin-left: auto; }
.rr-autoticket-filter-panel { padding: 18px; border-radius: 10px; background: #292929; }
.rr-autoticket-filter-field { display: flex; flex-direction: column; gap: 9px; }
.rr-autoticket-filter-field > label { color: #f4f4f4; font-weight: 650; }
.rr-autoticket-error { max-width: 340px; overflow-wrap: anywhere; }
.rr-panel .rr-autoticket-table-scroll { overflow-x: auto; }
.rr-panel .rr-autoticket-log-table { min-width: 1000px; table-layout: fixed; }
.rr-autoticket-col-select { width: 42px; }
.rr-autoticket-col-time { width: 145px; }
.rr-autoticket-col-account { width: 145px; }
.rr-autoticket-col-ticket { width: 110px; }
.rr-autoticket-col-result { width: 105px; }
.rr-autoticket-col-details { width: 225px; }
.rr-autoticket-col-orders { width: 220px; }
.rr-panel .rr-autoticket-log-table th,
.rr-panel .rr-autoticket-log-table td { padding: 12px 10px; overflow-wrap: normal; word-break: normal; }
.rr-panel .rr-autoticket-log-table th { line-height: 1.3; white-space: normal; }
.rr-autoticket-time { white-space: nowrap !important; }
.rr-autoticket-error { max-width: none; overflow-wrap: anywhere !important; }
.rr-autoticket-orders-cell { min-width: 0; }
.rr-autoticket-orders-preview { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rr-autoticket-orders-preview small { color: var(--rr-text-muted); }
.rr-autoticket-orders summary { display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; list-style: none; }
.rr-autoticket-orders summary::-webkit-details-marker { display: none; }
.rr-autoticket-orders summary .rr-autoticket-orders-preview { flex: 1; min-width: 0; }
.rr-autoticket-expand-label, .rr-autoticket-collapse-label { flex: none; color: var(--rr-text); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rr-autoticket-collapse-label, .rr-autoticket-orders[open] .rr-autoticket-expand-label { display: none; }
.rr-autoticket-orders[open] .rr-autoticket-collapse-label { display: inline; }
.rr-autoticket-orders[open] .rr-autoticket-orders-preview { display: none; }
.rr-autoticket-orders-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rr-autoticket-orders-list span { padding: 4px 7px; border: 1px solid var(--rr-border); border-radius: 6px; background: #191919; font-size: 12px; white-space: nowrap; }
.rr-autoticket-orders summary:hover .rr-autoticket-expand-label,
.rr-autoticket-orders summary:hover .rr-autoticket-collapse-label { color: #fff; text-shadow: 0 0 9px rgba(255,255,255,.5); }
.rr-account-group-label { grid-column: 1 / -1; margin: 12px 0 2px; padding: 9px 12px; border-radius: 8px; background: #242424; color: #e9e9e9; font-weight: 700; }
.rr-plugin-grid-wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rr-settings-feature-list { grid-template-columns: repeat(auto-fit, minmax(240px, 360px)); }
.rr-settings-feature-card { min-height: 250px; }
.rr-admin-key-input { width: 100%; font-family: monospace; letter-spacing: .4px; }
.rr-key-modal-status { margin: 10px 0 0; color: var(--rr-accent); font-weight: 600; }
.rr-stats-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; margin-bottom: 24px; position: relative; z-index: 30; overflow: visible; }
.rr-stats-filter-field { display: grid; gap: 9px; min-width: 0; }
.rr-stats-filters .rr-field-label { color: var(--rr-text); font-size: 14px; font-weight: 700; line-height: 1.35; }
.rr-stats-filter-field .rr-select.rr-select-open { z-index: 240; }
.rr-stats-filter-dates { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 16px; min-width: 0; }
.rr-stats-date-field { display: grid; grid-template-columns: minmax(170px, .28fr) minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; }
.rr-stats-filter-submit { grid-column: 1 / -1; min-height: 50px; width: 100%; margin-top: 4px; font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.rr-stats-filters :is(.rr-select-trigger,.rr-input,.rr-date-button):hover { transform: none; }
.rr-stats-filter-submit:hover { transform: var(--interactive-raise); }
input[type="number"].rr-input { min-height: 48px; padding: 14px 16px; }
.rr-stats-table-panel { padding: 22px; overflow: hidden; }
.rr-stats-table-panel h2 { margin-bottom: 16px; }
.rr-stats-table-panel .rr-table-scroll { border: 1px solid var(--rr-border); border-radius: 8px; background: #0d0d0d; }
.rr-stats-table-panel table.rr-table th,
.rr-stats-table-panel table.rr-table td { padding: 12px 14px; }
.rr-stats-table-panel table.rr-table tr:last-child td { border-bottom: 0; }

.rr-plugin-card {
  background: var(--rr-bg-soft);
  border: 1px solid var(--rr-border);
  border-radius: 8px;
  padding: 24px;
  text-decoration: none;
  color: var(--rr-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  transition: none;
  position: relative;
  overflow: hidden;
}

.rr-plugin-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.rr-plugin-card:hover {
  background: var(--rr-bg-soft);
  transform: none;
  box-shadow: none;
}

.rr-plugin-card:hover::before { opacity: 0; }

.rr-plugin-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--btn-bg);
  border: 1px solid var(--rr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.rr-plugin-icon svg { width: 22px; height: 22px; fill: #fff; }

.rr-plugin-title { font-size: 17px; font-weight: 700; margin: 0; }
.rr-plugin-desc { color: var(--rr-text-muted); font-size: 13px; line-height: 1.5; margin: 0; }

.rr-plugin-card-big {
  max-width: 360px;
  padding: 28px;
  gap: 12px;
}

.rr-plugin-card-top { display: flex; align-items: center; justify-content: space-between; }

.rr-plugin-card-soon {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.rr-plugin-card-soon:hover { transform: none; box-shadow: none; background: var(--rr-bg-soft); }

.rr-plugin-locked {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--rr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rr-plugin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  width: 100%;
  margin-top: auto;
}

.rr-plugin-btn .rr-plugin-locked { color: #fff; opacity: 0.85; }

/* ── Аккордеон (карточки шаблонов) ────────────────────────── */
.rr-accordion { padding: 0; overflow: hidden; }

.rr-accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--rr-text);
  text-align: left;
  cursor: default;
  padding: 20px 24px;
}

.rr-accordion-title { font-size: 16px; font-weight: 700; margin: 0; }
.rr-accordion-desc { margin: 4px 0 0; }

.rr-accordion-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--rr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.rr-accordion-arrow { font-size: 0; border-color: transparent; }
.rr-accordion-arrow::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.rr-accordion.rr-accordion-open .rr-accordion-arrow::after { transform: translateY(2px) rotate(225deg); }
.rr-accordion-control { display: inline-flex; align-items: center; gap: 6px; color: var(--rr-text-muted); font-size: 13px; font-weight: 600; }
.rr-accordion-head { cursor: pointer; transition: color .22s ease, background-color .22s ease, box-shadow .22s ease; }
.rr-accordion-head:hover { background: rgba(255,255,255,.055); box-shadow: inset 3px 0 0 rgba(255,255,255,.2); }
.rr-accordion-head:hover .rr-accordion-control { color: var(--rr-text); }
.rr-accordion-head:focus-visible { outline: 1px solid var(--border-hover); outline-offset: -2px; }
.rr-accordion.rr-accordion-open .rr-accordion-arrow { background: transparent; }

.rr-accordion-body { padding: 0 24px 24px; }
.rr-accordion-body[hidden] { display: none; }
.rr-accordion-body:not([hidden]):not(.rr-accordion-closing) { animation: rr-accordion-in 0.26s ease both; }
.rr-accordion-body.rr-accordion-closing { animation: rr-accordion-out 0.26s ease both; pointer-events: none; }
@keyframes rr-accordion-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rr-accordion-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-5px); }
}
.rr-funpay-grid-full { grid-template-columns: 1fr; width: 100%; }
.rr-funpay-card-actions { flex-wrap: nowrap; align-items: center; margin-left: auto; }
.rr-funpay-card-actions > * { flex: 0 1 auto; }

.rr-template-textarea {
  white-space: pre-wrap;
  overflow-y: auto;
  text-overflow: initial;
  height: 140px;
  resize: none;
  transition: height 0.2s ease;
}

.rr-template-textarea.rr-template-textarea-expanded { height: 420px; }

.rr-template-editor { position: relative; }
.rr-template-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 110px;
  height: 28px;
  margin: 4px auto 0;
  padding: 2px 10px;
  border: 0;
  background: transparent;
  color: var(--rr-text-muted);
  cursor: pointer;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  transition: color .2s ease, transform .2s ease, background-color .2s ease;
}
.rr-template-expand-btn:hover { color: var(--rr-text); background: var(--rr-state-bg); transform: translateY(-1px); }
.rr-expand-chevron { display: block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.rr-template-expand-btn.is-expanded .rr-expand-chevron { transform: translateY(2px) rotate(225deg); }
.rr-template-editor { display: flex; flex-direction: column; }

/* ── Вкладки внутри плагина ───────────────────────────────── */
.rr-tabbar {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: var(--line-thin);
  position: sticky;
  top: 62px;
  z-index: 240;
  padding-top: 4px;
  background: var(--bg-main);
}

.rr-tab {
  position: relative;
  z-index: 2;
  padding: 10px 16px;
  color: var(--rr-text-muted);
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.rr-tab:hover { color: var(--rr-text); background: transparent; transform: none; }
.rr-tab:active { transform: none; }
.rr-tab.active { color: var(--rr-text); border-bottom-color: var(--border-hover); }

/* ── Статус FunPay ─────────────────────────────────────────── */
.rr-funpay-status-row { display: flex; align-items: center; gap: 14px; }

.rr-funpay-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rr-funpay-dot-on { background: var(--rr-text); box-shadow: 0 0 10px var(--glow); animation: rr-suspicious-pulse 2s ease-in-out infinite; }
.rr-funpay-dot-off { background: var(--rr-text-muted); box-shadow: 0 0 10px rgba(255,255,255,0.1); }

.rr-funpay-username { font-size: 18px; font-weight: 700; }
.rr-funpay-status-on { border-color: var(--border-hover); }
.rr-funpay-status-off { border-color: var(--rr-border); }

.rr-dash-funpay-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--rr-text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: transform 0.15s;
}

.rr-dash-funpay-banner:hover { transform: none; }
.rr-dash-funpay-on { background: var(--rr-state-bg); border: 1px solid var(--border-hover); }
.rr-dash-funpay-off { background: var(--rr-state-bg); border: 1px solid var(--rr-border); }

/* ── Профиль ───────────────────────────────────────────────── */
.rr-profile-avatar-row { display: flex; align-items: center; gap: 20px; }

.rr-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rr-border);
}

.rr-profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg);
  border: 1px solid var(--rr-border);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.rr-profile-avatar-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  cursor: pointer;
}

.rr-profile-avatar-edit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(5,5,7,0.6);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.rr-profile-avatar-wrap:hover .rr-profile-avatar-edit { opacity: 1; }

.rr-visually-hidden { display: none; }

.rr-profile-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.rr-profile-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--rr-border);
  border-radius: 10px;
}

.rr-profile-list-label { color: var(--rr-text-muted); font-size: 13px; }
.rr-profile-list-value { font-weight: 600; }

.rr-profile-panel {
  width: min(500px, calc(100vw - 24px));
  overflow: hidden;
}

.rr-profile-panel [data-profile-panel-view]:not([hidden]) {
  animation: rr-profile-view-in 0.22s ease both;
}

@keyframes rr-profile-view-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.rr-profile-panel-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 44px 22px 0;
  border-bottom: var(--line-thin);
}

.rr-profile-panel-head h2 { margin: 3px 0 0; padding: 0; font-size: 22px; }
.rr-profile-panel-kicker { color: var(--rr-text-muted); font-size: 12px; }
.rr-profile-panel .rr-profile-avatar { width: 68px; height: 68px; font-size: 24px; }
.rr-profile-panel .rr-profile-avatar-wrap { flex: 0 0 auto; cursor: pointer; }

.rr-profile-panel-actions {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.rr-profile-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--text-main);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rr-profile-action span { color: var(--rr-text-muted); }
.rr-profile-action:hover,
.rr-profile-action:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 0 10px var(--glow);
  outline: none;
}
.rr-profile-action:active { transform: scale(0.98); border-color: var(--border-hover); }
.rr-profile-logout { width: 100%; justify-content: center; }
.rr-profile-panel .rr-back-link { margin-bottom: 18px; }
.rr-profile-panel .rr-form { margin-top: 16px; }

.rr-remember-row {
  margin: -2px 0 2px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--btn-bg);
}

.rr-remember-row strong { font-size: 14px; }

/* ── Заголовок с переключателем плагина ──────────────────────── */
.rr-plugin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 62px;
  z-index: 241;
  padding: 10px 0 8px;
  background: var(--bg-main);
}

.rr-plugin-toggle {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.rr-plugin-toggle:hover {
  border-color: var(--border-hover);
  box-shadow: 0 5px 15px var(--glow);
  transform: var(--interactive-raise);
}

.rr-plugin-toggle:active {
  border-color: var(--border-hover);
  box-shadow: 0 5px 10px var(--glow);
  transform: var(--interactive-press);
}

.rr-plugin-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.rr-plugin-toggle-on { background: var(--rr-ok); box-shadow: 0 0 12px var(--rr-ok-glow); }
.rr-plugin-toggle-on::after { transform: translateX(20px); }
.rr-plugin-toggle-off { background: var(--rr-border); }

#rr-profile-edit-form.rr-rental-extend-open { display: grid; }

/* ── FunPay: аккаунты ─────────────────────────────────────── */
.rr-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.rr-page-title-row .rr-title { margin: 0; }

.rr-funpay-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.rr-funpay-toolbar form { margin: 0; }
.rr-icon-btn { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; flex-shrink: 0; }
.rr-icon-btn svg { display: block; width: 16px; height: 16px; fill: currentColor; }
.rr-btn .rr-icon-btn { margin-right: 8px; }
.rr-funpay-list-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px 14px; align-items: start; }
.rr-funpay-list-head .rr-accordion-control { grid-column: 3; grid-row: 1; justify-self: end; }
.rr-funpay-summary { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rr-funpay-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid var(--rr-border);
  border-radius: 8px;
  background: #101010;
  color: var(--rr-text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.rr-funpay-summary-pill b { color: var(--rr-text); font-size: 13px; }
.rr-funpay-summary-ok b { color: var(--rr-ok); }
.rr-funpay-summary-bad b { color: var(--rr-danger); }
.rr-funpay-summary-all b { color: var(--rr-text-muted); }

.rr-funpay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.rr-funpay-grid-full { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); width: 100%; }
.rr-funpay-grid.rr-funpay-grid-full { grid-template-columns: minmax(0, 1fr); }

#rr-add-proxy-fields[hidden] { display: none; }
#rr-add-proxy-fields:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.rr-inline-templates { display: none; }
.rr-inline-templates.rr-inline-templates-open { display: block; }

.rr-funpay-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--rr-bg-soft);
  border: 1px solid var(--rr-border);
  border-radius: 14px;
  padding: 14px;
  opacity: 0;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rr-funpay-card:hover { background: var(--rr-bg-soft); transform: none; box-shadow: none; }

.rr-funpay-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--rr-border);
}

.rr-funpay-card-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg);
  border: 1px solid var(--rr-border);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.rr-funpay-card-body { flex: 1; min-width: 0; padding-top: 2px; }
.rr-funpay-card-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-funpay-card-status { display: flex; align-items: center; gap: 6px; color: var(--rr-text-muted); font-size: 11px; margin-top: 1px; }
.rr-funpay-card-meta { color: var(--rr-text-muted); font-size: 10px; margin-top: 3px; }
.rr-funpay-card-actions {
  align-self: flex-end;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: auto;
  margin-left: auto;
  max-width: 520px;
  gap: 6px;
}
.rr-funpay-card-actions form { margin: 0; }
.rr-funpay-card-actions .rr-btn {
  min-width: 92px;
  min-height: 34px;
  padding: 8px 10px;
  font-size: 13px;
  justify-content: center;
}
.rr-funpay-card-actions .rr-icon-btn,
.rr-funpay-card-actions .rr-icon-btn svg {
  width: 14px;
  height: 14px;
}
.rr-funpay-card-actions .rr-btn .rr-icon-btn { margin-right: 6px; }

.rr-funpay-dot-sm { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; vertical-align: middle; }
.rr-funpay-dot-sm.rr-funpay-dot-on { background: var(--rr-ok); box-shadow: 0 0 8px var(--rr-ok-glow); }
.rr-funpay-dot-sm.rr-funpay-dot-off { background: var(--rr-danger); box-shadow: 0 0 8px var(--rr-danger-glow); }
.rr-proxy-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.rr-proxy-step[hidden] { display: none; }
.rr-proxy-check-result { min-height: 20px; margin: 0; font-size: 13px; color: var(--rr-text-muted); }
.rr-proxy-check-result[data-state="success"] { color: var(--rr-ok); }
.rr-proxy-check-result[data-state="error"] { color: var(--rr-danger); }
.rr-proxy-save { width: 100%; justify-content: center; }
.rr-proxy-save:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ── Статистика: аватар у имени аккаунта ─────────────────────── */
.rr-stats-account-cell { display: flex; align-items: center; gap: 10px; }

.rr-stats-account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Модальные окна (замена браузерного confirm) ────────────── */
.rr-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,5,7,0.72);
  backdrop-filter: none;
  align-items: center;
  justify-content: center;
  z-index: 620;
}

.rr-modal-backdrop.rr-modal-open { display: flex; }

.rr-modal {
  position: relative;
  background: var(--rr-bg-soft);
  border: 1px solid var(--rr-border);
  border-radius: 8px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.rr-modal h2 { margin-top: 0; padding-right: 46px; font-size: 18px; }
.rr-account-edit-modal { max-width: 680px; max-height: calc(100dvh - 40px); overflow-y: auto; }
.rr-account-edit-modal .rr-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rr-account-edit-modal .rr-fp-scope { margin-bottom: 0; }
.rr-account-edit-modal .rr-fp-scope label { max-width: none; }
.rr-account-edit-modal .rr-account-edit-help { color: var(--rr-text-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
@media (max-width: 600px) {
  .rr-account-edit-modal { max-width: calc(100% - 24px); }
  .rr-account-edit-modal .rr-form-grid { grid-template-columns: minmax(0, 1fr); }
}
.rr-modal-close-x {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #3b3b3b;
  border-radius: 8px;
  background: #222;
  color: var(--rr-text);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.rr-modal-close-x::before,
.rr-modal-close-x::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.rr-modal-close-x::before { transform: rotate(45deg); }
.rr-modal-close-x::after { transform: rotate(-45deg); }
.rr-modal-close-x:hover,
.rr-modal-close-x:focus-visible {
  transform: translateY(-2px);
  background: var(--btn-bg-hover);
  border-color: var(--border-hover);
  box-shadow: 0 0 12px var(--glow);
  outline: none;
}
.rr-modal-close-x:active {
  transform: scale(0.96);
  border-color: var(--border-hover);
  box-shadow: 0 0 8px var(--glow);
}
.rr-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.rr-modal-actions-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rr-modal-actions-even .rr-btn { width: 100%; justify-content: center; }
.rr-confirm-body { margin: -2px 0 16px; color: var(--rr-text-muted); font-size: 14px; line-height: 1.5; }
.rr-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 360px;
}
.rr-loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--rr-border);
  border-top-color: var(--border-hover);
  box-shadow: 0 0 14px var(--glow-soft);
  animation: rr-spin 0.8s linear infinite;
}
.rr-roblox-register-modal { max-width: 540px; }
.rr-roblox-register-modal [hidden] { display: none !important; }
.rr-roblox-register-status { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; }
.rr-roblox-register-status .rr-loading-spinner { width: 22px; height: 22px; flex: 0 0 22px; }
.rr-roblox-register-timer { color: var(--rr-text-muted); margin: 0 0 12px; }
.rr-roblox-register-results { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.rr-roblox-register-results li { padding: 10px 12px; border: 1px solid var(--rr-border); border-radius: 9px; background: rgba(255,255,255,.035); overflow-wrap: anywhere; }
.rr-roblox-register-results .rr-register-error { border-color: #8d3e48; color: #ffb8be; }
.rr-loading-box h2 { margin: 0; font-size: 18px; }
@keyframes rr-spin { to { transform: rotate(360deg); } }
.rr-account-data-modal { max-width: 620px; }
.rr-account-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rr-account-data-field { min-width: 0; }
.rr-account-data-field-full { grid-column: 1 / -1; }
.rr-account-data-field label { display: block; margin-bottom: 6px; color: var(--rr-text); font-size: 12px; font-weight: 600; }
.rr-account-data-field .rr-input { width: 100%; min-width: 0; }
.rr-account-data-actions { justify-content: center; margin-top: 18px; }
.rr-account-data-actions .rr-btn { min-width: 140px; }
.rr-live-code-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; align-items: center; }
.rr-live-code-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rr-live-code-hint { margin-right: auto; color: var(--rr-text); font-size: 12px; }
.rr-live-code-refresh-hint { color: var(--rr-text-muted); font-size: 13px; line-height: 1.4; }
.rr-live-code-refresh-hint[hidden], .rr-admin-live-code-btn[hidden] { display: none !important; }
.rr-live-code-row .rr-input { min-width: 0; }
.rr-security-box { display: flex; flex-direction: column; gap: 7px; padding: 14px; border: 1px solid var(--rr-border); border-radius: 10px; background: rgba(255,255,255,0.025); }
.rr-security-box label { color: var(--rr-text); font-size: 13px; font-weight: 700; }
.rr-security-box span { color: var(--rr-text-muted); font-size: 12px; line-height: 1.4; }

/* ── Аренды: действия ─────────────────────────────────────────── */
.rr-rental-actions { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 1160px) {
  .rr-stats-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rr-stats-filter-dates,
  .rr-stats-filter-submit { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .rr-admin-layout { flex-direction: column; }
  .rr-sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
    padding: 0 12px 12px;
    align-items: center;
    gap: 8px;
    border-right: 0;
    border-bottom: var(--line-thin);
  }
  .rr-content { margin-left: 0; z-index: 3; }
  .rr-sidebar-brand {
    display: inline-flex;
    flex-shrink: 0;
    min-height: 56px;
    padding: 8px 8px 8px 0;
    margin: 0 4px 0 0;
    border-bottom: 0;
  }
  .rr-sidebar-logo { width: 34px; height: 34px; }
  .rr-brand { font-size: 18px; }
  .rr-sidebar-spacer { display: none; }
  .rr-nav-link {
    padding: 10px 12px;
    border: 1px solid transparent;
    white-space: nowrap;
    margin-bottom: 0;
    margin-right: 0;
    flex-shrink: 0;
  }
  .rr-nav-link.active { border-color: var(--border-hover); }
  .rr-form-grid { grid-template-columns: 1fr; }
  .rr-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .rr-content { width: 100%; padding: 20px; }
  .rr-admin-topbar {
    margin: -20px -20px 24px;
    padding: 10px 20px;
    min-height: 58px;
  }
  .rr-topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .rr-notification-panel { right: 0; }
  .rr-scroll-top {
    top: 70px;
    left: 50%;
  }
  .rr-panel { padding: 18px; }
  .rr-funpay-toolbar { justify-content: stretch; }
  .rr-page-title-row { align-items: stretch; flex-direction: column; }
  .rr-funpay-toolbar, .rr-funpay-toolbar form { width: 100%; }
  .rr-funpay-toolbar .rr-btn { width: 100%; }
  .rr-funpay-list-head { grid-template-columns: 1fr auto; }
  .rr-funpay-list-head .rr-accordion-control { grid-column: 2; }
  .rr-funpay-summary { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; }
  .rr-plugin-header-row { flex-wrap: wrap; }
  .rr-profile-avatar-row { flex-wrap: wrap; }
  .rr-funpay-card { flex-wrap: wrap; align-items: flex-start; }
  .rr-funpay-card-avatar { width: 42px; height: 42px; }
  .rr-rental-actions { align-items: stretch; }
  .rr-rental-actions .rr-btn, .rr-rental-actions form { width: auto; }
  .rr-modal { max-width: calc(100% - 24px); padding: 20px; }
  .rr-account-data-modal { max-width: calc(100% - 24px); }
  .rr-account-data-grid { grid-template-columns: 1fr; }
  .rr-account-data-field-full { grid-column: auto; }
  .rr-live-code-row { grid-template-columns: 1fr 1fr; }
  .rr-live-code-row .rr-input { grid-column: 1 / -1; }
  table.rr-table { font-size: 13px; }
  table.rr-table th, table.rr-table td { padding: 8px 8px; white-space: nowrap; }
}

@media (max-width: 700px) {
  .rr-header { padding: 14px 16px; }
  .rr-sidebar { padding: 8px; }
  .rr-sidebar-brand { display: none; }
  .rr-content { padding: 16px; }
  .rr-admin-topbar {
    margin: -16px -16px 20px;
    padding: 10px 16px;
    top: 0;
  }
  .rr-topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .rr-topbar-settings { margin-right: 0; }
  .rr-topbar-action {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
  }
  .rr-tabbar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .rr-tab {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    text-align: center;
    padding: 10px 8px;
  }
  .rr-notification-wrap { width: 100%; }
  .rr-notification-wrap .rr-topbar-action { width: 100%; }
  .rr-notification-panel {
    position: fixed;
    top: 74px;
    left: 16px;
    right: 16px;
    width: auto;
  }
  .rr-notification-panel::before { right: 48px; }
  .rr-scroll-top {
    top: 132px;
    left: 50%;
    min-width: 98px;
    min-height: 34px;
  }
  .rr-panel { padding: 16px; }
  .rr-funpay-grid { grid-template-columns: 1fr; }
  .rr-funpay-card-actions { width: 100%; max-width: none; justify-content: stretch; }
  .rr-funpay-card-actions > * { flex: 1 1 calc(50% - 6px); }
  .rr-funpay-card-actions .rr-btn { width: 100%; min-width: 0; }
  .rr-rental-actions { flex-direction: row; flex-wrap: wrap; }
  .rr-stats-filters { grid-template-columns: 1fr; }
  .rr-stats-date-field { grid-template-columns: 1fr; gap: 8px; }
  .rr-stats-filter-submit { width: 100%; }
}

@media (max-width: 480px) {
  .rr-header-brand .rr-brand { display: none; }
  .rr-title { font-size: 22px; }
  .rr-topbar-action span { font-size: 12px; }
  .rr-select-trigger, .rr-input { font-size: 15px; padding: 12px 14px; }
  .rr-profile-list-item { flex-wrap: wrap; gap: 4px; }
  .rr-funpay-card-actions > * { flex-basis: 100%; }
  .rr-funpay-summary-pill { width: 100%; justify-content: space-between; }
  .rr-modal-actions-even { grid-template-columns: 1fr; }
}

.rr-otp-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--rr-muted);
  font: inherit;
  cursor: default;
}
.rr-otp-status:disabled { opacity: 1; }
.rr-action-grid .rr-action-btn:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 420px);
}
.rr-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  color: var(--rr-muted);
  font-size: 13px;
  white-space: nowrap;
}
.rr-inline-check input {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--rr-border);
  border-radius: 4px;
  background: var(--bg-main);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rr-inline-check input::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--text-main);
  transform: scale(0);
  transition: transform 0.15s ease;
}
.rr-inline-check input:checked { border-color: var(--border-hover); box-shadow: var(--field-ring); }
.rr-inline-check input:checked::before { transform: scale(1); }

.rr-refund-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 6px;
}
.rr-refund-choice[hidden] { display: none; }
.rr-refund-choice-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--btn-bg);
  color: var(--rr-text);
  font: inherit;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.rr-refund-choice-btn:hover { transform: var(--interactive-raise); border-color: var(--border-hover); background: var(--btn-bg-hover); box-shadow: 0 5px 15px var(--glow); }
.rr-refund-choice-btn:focus-visible { outline: none; border-color: var(--border-hover); background: var(--btn-bg-hover); box-shadow: 0 5px 15px var(--glow); }
.rr-refund-choice-btn:active { transform: var(--interactive-press); border-color: var(--border-hover); box-shadow: 0 5px 10px var(--glow); }
.rr-refund-choice-btn.active {
  background: var(--btn-bg-hover);
  border-color: var(--border-hover);
  box-shadow: 0 5px 15px var(--glow);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--rr-focus-ring);
  outline-offset: 3px;
}

.rr-input:focus-visible,
.rr-select-trigger:focus-visible {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: var(--field-focus-glow);
}

.rr-tab:focus-visible {
  outline: none;
  color: var(--rr-text);
  border-bottom-color: var(--border-hover);
}

/* ── blSells polish: единые controls и переходы ─────────────── */
input[type="number"].rr-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"].rr-input::-webkit-inner-spin-button,
input[type="number"].rr-input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

input[type="range"].rr-input {
  appearance: none;
  -webkit-appearance: none;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  overflow: visible;
}

input[type="range"].rr-input:hover,
input[type="range"].rr-input:focus {
  transform: none;
  box-shadow: none;
}

input[type="range"].rr-input::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid var(--rr-border);
  border-radius: 999px;
  background: var(--btn-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input[type="range"].rr-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  background: var(--text-main);
  box-shadow: 0 0 12px var(--glow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"].rr-input:hover::-webkit-slider-runnable-track,
input[type="range"].rr-input:focus-visible::-webkit-slider-runnable-track {
  border-color: var(--border-hover);
  background: var(--btn-bg-hover);
  box-shadow: 0 0 12px var(--glow-soft);
}

input[type="range"].rr-input:hover::-webkit-slider-thumb,
input[type="range"].rr-input:focus-visible::-webkit-slider-thumb {
  transform: translateY(-1px);
  box-shadow: 0 0 16px var(--glow);
}

input[type="range"].rr-input:active::-webkit-slider-thumb {
  transform: scale(0.96);
}

input[type="range"].rr-input::-moz-range-track {
  height: 8px;
  border: 1px solid var(--rr-border);
  border-radius: 999px;
  background: var(--btn-bg);
}

input[type="range"].rr-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  background: var(--text-main);
  box-shadow: 0 0 12px var(--glow-soft);
}

textarea.rr-input,
.rr-textarea {
  min-height: 132px;
  white-space: pre-wrap;
  overflow: auto;
  resize: none;
  resize: vertical;
  line-height: 1.55;
  vertical-align: top;
}

textarea.rr-input {
  white-space: pre-wrap;
  text-overflow: clip;
}

.rr-fixed-template-textarea,
.rr-template-textarea {
  width: 100%;
  min-height: 150px;
  resize: none;
}

.rr-check-row input,
.rr-inline-check input,
.rr-field-full > input[type="checkbox"],
.rr-field-full > input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 2px 8px 0 0;
  border: 1px solid var(--rr-border);
  border-radius: 4px;
  background: var(--bg-main);
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  box-shadow: none;
}

.rr-field-full > input[type="radio"] { border-radius: 50%; }

.rr-check-row input::before,
.rr-inline-check input::before,
.rr-field-full > input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--text-main);
  border-bottom: 2px solid var(--text-main);
  background: transparent;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s ease;
}

.rr-field-full > input[type="radio"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-main);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.rr-check-row input:checked::before,
.rr-inline-check input:checked::before,
.rr-field-full > input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

.rr-field-full > input[type="radio"]:checked::before {
  transform: scale(1);
}

.rr-check-row input:checked,
.rr-inline-check input:checked,
.rr-field-full > input[type="checkbox"]:checked,
.rr-field-full > input[type="radio"]:checked {
  border-color: var(--border-hover);
  box-shadow: var(--field-ring);
}

.rr-select-menu {
  z-index: 120;
  transform-origin: top center;
}

.rr-admin-transition .rr-admin-page {
  pointer-events: none;
  animation: rr-page-out 0.12s ease forwards;
}

.rr-admin-topbar { overflow: visible; flex-shrink: 0; }
.rr-admin-page { min-width: 0; }
.rr-funpay-feature-header { position: relative; top: auto; z-index: 1; }
.rr-funpay-feature-header + .rr-back-link { position: relative; z-index: 2; margin: 4px 0 10px; }
.rr-check-row { align-items: center; }
.rr-check-row input,
.rr-inline-check input { margin: 0; flex-shrink: 0; }
.rr-inline-check { display: inline-flex; align-items: center; gap: 8px; }
.rr-buyer-page-head { display: flex; justify-content: flex-start; margin-bottom: 22px; }
.rr-buyer-back { min-width: 100px; text-align: center; }
.rr-card-wide .rr-copyrow input,
.rr-card-wide input[readonly] {
  min-width: 0;
  color: var(--rr-text);
  background: var(--bg-main);
  border: 1px solid var(--rr-border);
  border-radius: 8px;
  padding: 11px 12px;
}
.rr-buyer-games-list { margin: 16px 0 0; padding-left: 22px; line-height: 1.8; max-height: 60vh; overflow: auto; }
.rr-modal-x { position: absolute; right: 16px; top: 16px; }
.rr-account-games-readonly { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--rr-text); background: var(--bg-main); border: 1px solid var(--rr-border); border-radius: 8px; padding: 12px; max-height: 220px; overflow-y: auto; }
.rr-check-row input:checked,
.rr-inline-check input:checked,
.rr-field-full > input[type="checkbox"]:checked { background: #23875b; border-color: #36b978; box-shadow: 0 0 0 2px rgba(54,185,120,.18); }
.rr-check-row input:checked::before,
.rr-inline-check input:checked::before,
.rr-field-full > input[type="checkbox"]:checked::before { border-color: #fff; background: transparent; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; border-radius: 0; transform: rotate(-45deg) scale(1); }
.rr-action-grid .rr-action-btn { min-width: 0; }
@media (max-width: 600px) {
  .rr-card-wide .rr-copyrow { flex-wrap: wrap; }
  .rr-card-wide .rr-copyrow input { flex-basis: 100%; }
}

/* Persistent language control and branded page transition. */
.rr-language-wrap { position: relative; flex-shrink: 0; }
.rr-language-toggle { min-width: 72px; }
.rr-language-globe { color: #8da8ff; font-size: 20px; line-height: 0; }
.rr-language-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.rr-language-toggle[aria-expanded="true"] .rr-language-chevron { transform: rotate(225deg) translate(-2px, -1px); }
.rr-language-menu { position: absolute; top: calc(100% + 9px); left: 0; z-index: 350; width: 170px; padding: 6px; border: 1px solid var(--rr-border); border-radius: 8px; background: var(--bg-header); box-shadow: 0 16px 35px rgba(0,0,0,.48); animation: rr-language-in .18s ease both; }
.rr-language-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 6px; color: var(--rr-muted); background: transparent; cursor: pointer; font: inherit; font-size: 13px; text-align: left; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.rr-language-menu button:hover { color: var(--rr-text); background: var(--btn-bg-hover); transform: translateX(2px); }
.rr-language-menu button:active { transform: scale(.97); }
.rr-language-menu button.active { color: var(--rr-text); background: var(--rr-state-bg); }
.rr-language-menu button span { color: var(--rr-muted); font-size: 11px; }
@keyframes rr-language-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.rr-route-transition { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none; opacity: 0; visibility: hidden; background: #08090d; transition: opacity .16s ease, visibility 0s linear .16s; }
.rr-route-transition-open { opacity: 1; visibility: visible; transition: opacity .16s ease; }
.rr-route-brand { display: grid; justify-items: center; gap: 10px; opacity: 0; transform: translateY(70px); }
.rr-route-brand img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 32px rgba(255,255,255,.14); }
.rr-route-brand strong { color: var(--rr-text); font-size: 22px; letter-spacing: 0; }
.rr-route-transition-open .rr-route-brand { animation: rr-route-brand-rise .72s cubic-bezier(.22,.75,.25,1) both; }
@keyframes rr-route-brand-rise { 0% { opacity: 0; transform: translateY(80px) scale(.92); } 30% { opacity: 1; transform: translateY(0) scale(1); } 68% { opacity: 1; transform: translateY(-8px) scale(1); } 100% { opacity: 0; transform: translateY(-88px) scale(.94); } }

.rr-plugin-icon svg,
.rr-topbar-action .rr-topbar-icon,
.rr-nav-link .rr-nav-icon { transform-origin: center; transition: transform .42s cubic-bezier(.2,.75,.2,1), color .3s ease, filter .4s ease; }
.rr-plugin-icon { transition: border-color .38s ease, box-shadow .42s ease, background-color .38s ease, transform .35s ease; }
.rr-plugin-icon:hover svg,
.rr-topbar-icon:hover,
.rr-nav-icon:hover { transform: rotate(10deg) scale(1.08); filter: drop-shadow(0 0 7px rgba(255,255,255,.58)); }
.rr-plugin-icon:hover { border-color: var(--border-hover); background: var(--rr-state-bg); box-shadow: 0 0 18px rgba(255,255,255,.15), inset 0 0 10px rgba(255,255,255,.04); transform: translateY(-1px); }
.rr-plugin-icon:active svg,
.rr-topbar-icon:active,
.rr-nav-icon:active { animation: rr-icon-press .48s cubic-bezier(.2,.75,.2,1); }
@keyframes rr-icon-press { 0% { transform: rotate(10deg) scale(1.08); } 45% { transform: rotate(-9deg) scale(.9); } 100% { transform: rotate(0) scale(1); } }

/* One checkbox system for old and new plugin forms. */
.rr-admin-page input[type="checkbox"]:not([role="switch"]) {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  border: 1px solid var(--rr-border);
  border-radius: 5px;
  background: var(--bg-main);
  vertical-align: middle;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .16s ease;
}
.rr-admin-page input[type="checkbox"]:not([role="switch"])::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .16s ease;
}
.rr-admin-page input[type="checkbox"]:not([role="switch"]):hover { border-color: var(--border-hover); box-shadow: 0 0 0 3px rgba(255,255,255,.07); }
.rr-admin-page input[type="checkbox"]:not([role="switch"]):active { transform: scale(.9); }
.rr-admin-page input[type="checkbox"]:not([role="switch"]):checked { background: #23875b; border-color: #42cf8d; box-shadow: 0 0 0 3px rgba(54,185,120,.15); }
.rr-admin-page input[type="checkbox"]:not([role="switch"]):checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.rr-admin-page label:has(> input[type="checkbox"]) { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; }
.rr-admin-page .rr-check-row:has(> input[type="checkbox"]) { display: flex; }

.rr-bulk-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 12px; }
.rr-bulk-active { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; width: 100%; padding: 10px; border: 1px solid var(--rr-border); border-radius: 8px; background: var(--bg-header); animation: rr-language-in .18s ease both; }
.rr-bulk-active[hidden] { display: none; }
.rr-bulk-all { margin-right: auto; }
.rr-bulk-count { color: var(--rr-muted); font-size: 13px; white-space: nowrap; }
.rr-bulk-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rr-bulk-heading,
.rr-bulk-cell { display: none; width: 42px; min-width: 42px; padding-inline: 10px !important; text-align: center; }
.rr-bulk-mode .rr-bulk-heading,
.rr-bulk-mode .rr-bulk-cell { display: table-cell; }
.rr-bulk-card-check { position: absolute; top: 12px; left: 12px; z-index: 3; display: none !important; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--rr-border); border-radius: 7px; background: var(--bg-header); }
.rr-bulk-mode .rr-bulk-card-check { display: flex !important; }
.rr-bulk-mode .rr-funpay-card { position: relative; padding-left: 52px; }
.rr-bulk-item { transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease; }
.rr-bulk-item.rr-bulk-selected { background: rgba(54,185,120,.055); box-shadow: inset 0 0 0 1px rgba(66,207,141,.45); }
.rr-table .rr-bulk-item.rr-bulk-selected td { background: rgba(54,185,120,.04); }
.rr-bulk-toolbar { width: 100%; }
.rr-bulk-active { min-height: 58px; padding: 12px 14px; border-color: #8d3942; border-radius: 10px; background: #3a1b21; animation: none; }
.rr-bulk-actions { flex: 1 1 auto; justify-content: flex-end; }
.rr-bulk-all { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.rr-bulk-toolbar .rr-bulk-toggle { flex: 0 0 auto; }
.rr-panel .rr-table-scroll { overflow-x: visible; border: 1px solid var(--rr-border); border-radius: 10px; background: #0d0d0d; }
.rr-panel .rr-table { width: 100%; min-width: 0; table-layout: auto; }
.rr-panel .rr-table th,
.rr-panel .rr-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
.rr-panel .rr-table td { transition: none; }
.rr-panel .rr-table tbody tr:hover td { background: inherit; }
.rr-panel .rr-table tbody tr.rr-bulk-selected:hover td { background: rgba(54,185,120,.04); }
.rr-panel .rr-table thead { background: #292929; color: #e6e6e6; }
.rr-panel .rr-table thead th { font-weight: 700; }
.rr-table .rr-rental-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; white-space: nowrap; }
.rr-table .rr-rental-actions form { display: inline-flex; flex: 0 0 auto; margin: 0; }
.rr-table .rr-rental-actions .rr-btn { min-width: 92px; white-space: nowrap; }
.rr-bulk-mode .rr-bulk-action-source { display: none !important; }

.rr-template-actions-panel { margin-bottom: 12px; padding: 14px 16px; border: 1px solid #8d3942; border-radius: 10px; background: #3a1b21; }
.rr-template-actions-panel .rr-modal-actions { margin: 0; }
.rr-template-actions-panel .rr-rockstar-actions { width: auto; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.rr-template-card { overflow: hidden; transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.rr-template-card:hover { border-color: #5a5a5a; box-shadow: 0 10px 28px rgba(0,0,0,.28); transform: translateY(-2px); }
.rr-template-card .rr-accordion-head { background: #242424; }
.rr-plugin-card-blue .rr-plugin-icon { border-color: #4779b8; background: #182a42; color: #78adf0; }
.rr-plugin-card-blue .rr-plugin-btn { border-color: #4779b8; background: #234f83; }
.rr-plugin-card-blue .rr-plugin-btn:hover { background: #2d65a5; }
.rr-plugin-list-filter { position: relative; z-index: 8; margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--rr-border); border-radius: 10px; background: #292929; }
.rr-plugin-list-filter:has(.rr-select-open) { z-index: 180; }
.rr-plugin-list-filter label { display: grid; gap: 8px; max-width: 440px; color: #ececec; font-size: 14px; font-weight: 700; }
.rr-plugin-list-filter .rr-select { width: 100%; }
.rr-table tbody tr.rr-filter-row-leaving { opacity: 0; transform: translateY(-5px); transition: opacity .18s ease, transform .18s ease; }
.rr-table tbody tr.rr-filter-row-entering { opacity: 0; transform: translateY(5px); }
.rr-table tbody tr:not(.rr-filter-row-entering) { transition: opacity .18s ease, transform .18s ease; }
@media (max-width: 760px) {
  .rr-panel .rr-table-scroll { border: 0; background: transparent; }
  .rr-panel .rr-table thead { display: none; }
  .rr-panel .rr-table, .rr-panel .rr-table tbody, .rr-panel .rr-table tr, .rr-panel .rr-table td { display: block; width: 100%; }
  .rr-panel .rr-table tr { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--rr-border); border-radius: 10px; background: #0d0d0d; }
  .rr-panel .rr-table td { display: grid; grid-template-columns: minmax(105px, .42fr) minmax(0, 1fr); gap: 10px; border-right: 0; }
  .rr-panel .rr-table td::before { content: attr(data-label); color: var(--rr-text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
}
@media (max-width: 700px) {
  .rr-bulk-active { justify-content: flex-start; }
  .rr-bulk-all { width: 100%; margin-right: 0; }
  .rr-bulk-actions { width: 100%; }
  .rr-bulk-actions .rr-btn { flex: 1; }
}

@media (max-width: 760px) {
  .rr-language-menu { left: auto; right: 0; }
  .rr-language-toggle { min-width: 62px; padding-inline: 9px; }
}

@keyframes rr-page-out {
  to { opacity: 0.55; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.rr-fp-filter,.rr-fp-bulk,.rr-fp-lot,.rr-fp-compose{margin-bottom:16px}
.rr-fp-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.rr-fp-filter label{font-weight:600}
.rr-fp-filter select{max-width:320px}
.rr-fp-bulk-head,.rr-fp-lot-head,.rr-fp-chat-header,.rr-fp-compose-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.rr-fp-bulk-head{justify-content:space-between}.rr-fp-hint{color:var(--rr-text-muted)}
.rr-fp-bulk-fields,.rr-fp-edit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.rr-fp-bulk-fields label,.rr-fp-edit-fields label{display:grid;gap:7px;min-width:0}
.rr-fp-lots,.rr-fp-chats{display:grid;gap:14px}
.rr-fp-lot-head strong{flex:1;min-width:160px}.rr-fp-lot-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--rr-text-muted);margin:12px 0}
.rr-fp-description,.rr-fp-edit{border-top:1px solid var(--rr-border);padding-top:12px;margin-top:12px}
.rr-fp-description summary,.rr-fp-edit summary{cursor:pointer;font-weight:600}
.rr-fp-description p,.rr-fp-message p{white-space:pre-wrap;overflow-wrap:anywhere}
.rr-fp-badge,.rr-fp-unread{display:inline-block;border:1px solid var(--rr-border);border-radius:99px;padding:4px 10px;font-size:12px}
.rr-fp-unread{background:#fff;color:#111}
.rr-fp-chat-link{display:grid;gap:7px;text-decoration:none;color:inherit}.rr-fp-chat-link:hover{border-color:#777}
.rr-fp-chat-title{display:flex;align-items:center;gap:10px}.rr-fp-preview{color:var(--rr-text-muted);overflow-wrap:anywhere}
.rr-fp-chat-header{margin-bottom:16px}.rr-fp-chat-header .rr-title{margin:0}
.rr-fp-thread{display:flex;flex-direction:column;gap:12px;min-height:220px;max-height:60vh;overflow-y:auto}
.rr-fp-message{max-width:min(78%,650px);align-self:flex-start;background:#202020;border:1px solid var(--rr-border);border-radius:14px;padding:10px 14px}
.rr-fp-message-mine{align-self:flex-end;background:#353535}.rr-fp-message small{color:var(--rr-text-muted)}
.rr-fp-message p{margin:6px 0 0}.rr-fp-message img{display:block;max-width:100%;max-height:340px;margin-top:8px;border-radius:8px}
.rr-fp-compose textarea{width:100%;margin:8px 0}.rr-fp-compose-actions{justify-content:space-between}
@media(max-width:700px){.rr-fp-bulk-fields,.rr-fp-edit-fields{grid-template-columns:1fr}.rr-fp-filter select{max-width:none;width:100%}.rr-fp-filter>*{width:100%}.rr-fp-message{max-width:92%}.rr-fp-thread{max-height:55vh}.rr-fp-compose-actions>*{width:100%}}

/* FunPay workspace */
.rr-content { padding-top: 98px; }
.rr-admin-topbar { position: fixed; left: 232px; right: 0; top: 0; margin: 0; }
.rr-fp-page { min-width: 0; }
.rr-fp-page > .rr-title { margin: 0 0 18px; }
.rr-fp-filter { display: grid; grid-template-columns: minmax(220px, 340px) auto; align-items: end; justify-content: start; gap: 12px; }
.rr-fp-filter-field { display: grid; gap: 7px; min-width: 0; }
.rr-fp-filter .rr-select { width: 100%; }
.rr-fp-filter > .rr-btn { min-height: 48px; }
.rr-fp-bulk { display: grid; gap: 12px; }
.rr-fp-bulk .rr-fp-hint { margin: 0; }
.rr-fp-bulk-fields { margin: 0; }
.rr-fp-bulk-fields label:has(> input[type="checkbox"]) { display: grid; grid-template-columns: 20px 96px minmax(0, 1fr); align-items: center; gap: 9px; width: 100%; }
.rr-fp-bulk-fields .rr-input { width: 100%; min-width: 0; }
.rr-fp-lots { grid-template-columns: repeat(auto-fit, minmax(min(100%, 410px), 1fr)); align-items: start; }
.rr-fp-lot { margin: 0; min-width: 0; transition: border-color .22s ease, box-shadow .22s ease; }
.rr-fp-lot:hover { border-color: var(--border-hover); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.rr-fp-lot-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.rr-fp-lot-head strong { min-width: 0; line-height: 1.35; overflow-wrap: anywhere; }
.rr-fp-lot-head .rr-fp-badge { justify-self: end; }
.rr-fp-lot-meta { gap: 8px; }
.rr-fp-lot-meta > span { padding: 6px 9px; border: 1px solid var(--rr-border); border-radius: 6px; }
.rr-fp-description summary,.rr-fp-edit summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; list-style: none; transition: color .2s ease; }
.rr-fp-description summary::-webkit-details-marker,.rr-fp-edit summary::-webkit-details-marker { display: none; }
.rr-fp-description summary::after,.rr-fp-edit summary::after { content: ''; width: 8px; height: 8px; flex: 0 0 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .22s ease; }
.rr-fp-description[open] summary::after,.rr-fp-edit[open] summary::after { transform: rotate(225deg); }
.rr-fp-description summary:hover,.rr-fp-edit summary:hover { color: var(--rr-text-muted); }
.rr-fp-description p { max-height: 220px; overflow: auto; }
.rr-fp-workspace { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); min-height: min(680px, calc(100vh - 175px)); border: 1px solid var(--rr-border); border-radius: 8px; background: var(--rr-bg-soft); overflow: hidden; }
.rr-fp-workspace-open { grid-template-columns: minmax(225px, 280px) minmax(0, 1fr) minmax(180px, 235px); }
.rr-fp-chat-sidebar { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--rr-border); }
.rr-fp-chat-filters { display: grid; gap: 8px; padding: 16px; border-bottom: 1px solid var(--rr-border); }
.rr-fp-chat-filters > label { font-size: 12px; font-weight: 700; color: var(--rr-text-muted); }
.rr-fp-chat-filters .rr-select { z-index: 2; }
.rr-fp-chat-filters .rr-select-trigger { padding: 11px 12px; font-size: 14px; }
.rr-fp-search-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 7px; }
.rr-fp-search-row .rr-input { min-width: 0; width: 100%; padding: 10px 12px; }
.rr-fp-search-row .rr-btn { padding: 0; font-size: 26px; line-height: 1; }
.rr-fp-chat-list { flex: 1; min-height: 0; max-height: calc(100vh - 350px); overflow: auto; }
.rr-fp-chat-item { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px 15px; color: var(--rr-text); text-decoration: none; border-bottom: 1px solid var(--rr-border); transition: background-color .2s ease, box-shadow .2s ease; }
.rr-fp-chat-item[hidden],.rr-fp-list-empty[hidden] { display: none; }
.rr-fp-chat-item:hover,.rr-fp-chat-item:focus-visible { background: var(--btn-bg-hover); box-shadow: inset 3px 0 var(--border-hover); outline: none; }
.rr-fp-chat-item-active { background: var(--rr-state-bg-strong); box-shadow: inset 3px 0 var(--rr-text); }
.rr-fp-chat-avatar { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; border: 1px solid var(--rr-border); border-radius: 50%; background: #292929; color: var(--rr-text); font-weight: 700; }
.rr-fp-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rr-fp-chat-item-body { display: grid; gap: 4px; min-width: 0; flex: 1; }
.rr-fp-chat-title { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.rr-fp-chat-title strong,.rr-fp-preview,.rr-fp-account-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-fp-preview,.rr-fp-account-name { font-size: 12px; color: var(--rr-text-muted); }
.rr-fp-unread-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--rr-ok); }
.rr-fp-list-empty { padding: 18px; color: var(--rr-text-muted); }
.rr-fp-chat-empty { display: grid; place-items: center; padding: 24px; color: var(--rr-text-muted); text-align: center; }
.rr-fp-conversation { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.rr-fp-conversation-head { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 12px 18px; border-bottom: 1px solid var(--rr-border); }
.rr-fp-conversation-name { display: grid; gap: 3px; min-width: 0; }
.rr-fp-conversation-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-fp-conversation-name small { color: var(--rr-text-muted); }
.rr-fp-profile-link { margin-left: auto; padding: 10px; font-size: 12px; white-space: nowrap; }
.rr-fp-mobile-back { display: none; }
.rr-fp-conversation .rr-fp-thread { flex: 1; min-height: 260px; max-height: calc(100vh - 350px); padding: 18px; border: 0; border-radius: 0; background: transparent; }
.rr-fp-conversation .rr-fp-compose { margin: 0; padding: 12px 16px; border-top: 1px solid var(--rr-border); }
.rr-fp-compose textarea { margin: 0 0 9px; min-height: 62px; resize: none; }
.rr-fp-compose-actions { justify-content: space-between; }
.rr-fp-compose-actions .rr-btn { min-height: 40px; padding: 10px 14px; }
.rr-fp-attach { position: relative; overflow: hidden; cursor: pointer; }
.rr-fp-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rr-fp-attach:focus-within { outline: 2px solid var(--border-hover); }
.rr-fp-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; padding: 20px; border-left: 1px solid var(--rr-border); }
.rr-fp-contact-avatar { flex-basis: 64px; width: 64px; height: 64px; font-size: 24px; }
.rr-fp-contact > strong { overflow-wrap: anywhere; }
.rr-fp-contact-detail { display: grid; gap: 4px; width: 100%; padding-top: 12px; border-top: 1px solid var(--rr-border); overflow-wrap: anywhere; }
.rr-fp-contact-detail span { font-size: 12px; color: var(--rr-text-muted); }
.rr-fp-contact-detail b { font-size: 13px; }
.rr-fp-contact .rr-btn { width: 100%; padding: 10px; text-align: center; font-size: 12px; text-decoration: none; }
.rr-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) { .rr-fp-workspace-open { grid-template-columns: minmax(220px, 275px) minmax(0, 1fr); } .rr-fp-contact { grid-column: 2; border-left: 0; border-top: 1px solid var(--rr-border); } }
@media (max-width: 900px) { .rr-sidebar { position: relative; } .rr-content { padding-top: 20px; } .rr-admin-topbar { position: sticky; left: auto; right: auto; top: 0; margin: -20px -20px 24px; } }
@media (max-width: 700px) { .rr-content { padding-top: 16px; max-width: 100vw; } .rr-admin-topbar { margin: -16px -16px 20px; } .rr-topbar-actions > * { min-width: 0; } .rr-topbar-action { white-space: normal; } .rr-fp-filter { grid-template-columns: 1fr; } .rr-fp-filter > .rr-btn { width: 100%; } .rr-fp-bulk-fields label:has(> input[type="checkbox"]) { grid-template-columns: 20px minmax(0, 1fr); } .rr-fp-bulk-fields label .rr-input { grid-column: 1 / -1; } .rr-fp-lot-head { grid-template-columns: auto minmax(0, 1fr); } .rr-fp-lot-head .rr-fp-badge { grid-column: 2; justify-self: start; } .rr-fp-workspace,.rr-fp-workspace-open { display: block; min-height: 0; } .rr-fp-workspace-open .rr-fp-chat-sidebar { display: none; } .rr-fp-chat-list { max-height: 65vh; } .rr-fp-mobile-back { display: inline-grid; place-items: center; width: 30px; height: 36px; color: var(--rr-text); text-decoration: none; font-size: 30px; } .rr-fp-profile-link { display: none; } .rr-fp-conversation .rr-fp-thread { max-height: 55vh; } .rr-fp-contact { border-left: 0; } .rr-fp-compose-actions > * { width: auto; } }

/* Full-height chat workspace */
body.rr-body:has(.rr-fp-chat-page) { height: 100dvh; overflow: hidden; }
body:has(.rr-fp-chat-page) .rr-sidebar,body:has(.rr-fp-chat-page) .rr-admin-topbar,body:has(.rr-fp-chat-page) .rr-scroll-top { display: none; }
body:has(.rr-fp-chat-page) .rr-admin-layout { height: 100dvh; min-height: 0; }
body:has(.rr-fp-chat-page) .rr-content { width: 100%; height: 100%; margin: 0; padding: 16px; }
body:has(.rr-fp-chat-page) .rr-admin-page { height: 100%; }
.rr-fp-chat-page { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.rr-fp-page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; min-height: 56px; padding-bottom: 14px; }
.rr-fp-page-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rr-fp-page-heading .rr-title { margin: 0; white-space: nowrap; }
.rr-fp-exit { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--rr-border); border-radius: 7px; background: var(--btn-bg); color: var(--rr-text); text-decoration: none; font-size: 28px; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.rr-fp-exit:hover { background: var(--btn-bg-hover); border-color: var(--border-hover); transform: translateX(-2px); }
.rr-fp-exit,.rr-fp-mobile-back { font-size: 0; }
.rr-fp-exit::before,.rr-fp-mobile-back::before { content: ''; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.rr-fp-mobile-back { border: 1px solid var(--rr-border); border-radius: 7px; background: var(--btn-bg); }
.rr-fp-page-toolbar .rr-fp-chat-filters { display: grid; grid-template-columns: minmax(160px, 250px) minmax(180px, 300px); align-items: center; gap: 10px; width: min(100%, 560px); padding: 0; border: 0; }
.rr-fp-page-toolbar .rr-select { min-width: 0; }
.rr-fp-page-toolbar .rr-select-menu { z-index: 500; }
.rr-fp-chat-page .rr-fp-workspace { flex: 1; height: 0; min-height: 0; overflow: visible; }
.rr-fp-chat-page .rr-fp-chat-sidebar { overflow: hidden; }
.rr-fp-chat-page .rr-fp-chat-list { height: 100%; max-height: none; overflow-y: auto; }
.rr-fp-chat-page .rr-fp-conversation { overflow: hidden; }
.rr-fp-chat-page .rr-fp-thread { min-height: 0; max-height: none; overflow-y: auto; }
.rr-fp-chat-page .rr-fp-contact { overflow-y: auto; }
.rr-fp-chat-avatar { position: relative; }
.rr-fp-chat-avatar img { position: absolute; inset: 0; }
.rr-fp-chat-avatar img[hidden] { display: none; }
.rr-fp-message { user-select: text; border-radius: 8px; }
.rr-fp-message-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--rr-text-muted); font-size: 11px; user-select: none; }
.rr-fp-message-head strong { color: var(--rr-text); font-size: 12px; }
.rr-fp-message-head time { margin-left: auto; white-space: nowrap; }
.rr-fp-message-badge { padding: 2px 5px; border: 1px solid var(--rr-border); border-radius: 4px; }
.rr-fp-message .rr-fp-message-text { margin: 0; white-space: pre-wrap; user-select: text; }
.rr-fp-image-open { display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.rr-fp-image-open img { margin: 0; }
.rr-fp-image-modal[hidden] { display: none; }
.rr-fp-image-modal { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.82); }
.rr-fp-image-dialog { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: min(100%, 1100px); max-height: 100%; padding: 14px; border: 1px solid var(--rr-border); border-radius: 8px; background: var(--rr-bg-soft); }
.rr-fp-image-dialog > img { display: block; max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; }
.rr-fp-image-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 1px solid var(--rr-border); border-radius: 6px; background: var(--btn-bg); color: var(--rr-text); font-size: 24px; cursor: pointer; }
.rr-fp-image-actions { display: flex; justify-content: flex-end; gap: 8px; }
.rr-fp-image-actions .rr-btn { padding: 10px 14px; }
@media (max-width: 1100px) { .rr-fp-chat-page .rr-fp-contact { display: none; } }
@media (max-width: 700px) { body:has(.rr-fp-chat-page) .rr-content { padding: 10px; } .rr-fp-page-toolbar { flex-wrap: wrap; } .rr-fp-page-heading .rr-title { font-size: 20px; } .rr-fp-page-toolbar .rr-fp-chat-filters { width: 100%; grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .rr-fp-chat-page .rr-fp-workspace { display: block; } .rr-fp-chat-page .rr-fp-chat-list { max-height: none; } .rr-fp-chat-page .rr-fp-conversation { height: 100%; } .rr-fp-chat-page .rr-fp-thread { max-height: none; } }

/* Lots use the same fixed workspace shell as chats. */
body.rr-body:has(.rr-fp-lots-page) { height: 100dvh; overflow: hidden; }
body:has(.rr-fp-lots-page) .rr-sidebar,
body:has(.rr-fp-lots-page) .rr-admin-topbar,
body:has(.rr-fp-lots-page) .rr-scroll-top { display: none; }
body:has(.rr-fp-lots-page) .rr-admin-layout { height: 100dvh; min-height: 0; }
body:has(.rr-fp-lots-page) .rr-content { width: 100%; height: 100%; margin: 0; padding: 16px; }
body:has(.rr-fp-lots-page) .rr-admin-page { height: 100%; }
.rr-fp-lots-page { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.rr-fp-lots-page .rr-fp-page-toolbar .rr-fp-chat-filters { display: grid; }
.rr-fp-lot-controls { position: relative; z-index: 40; flex: 0 0 auto; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--rr-border); border-radius: 8px; background: #242424; overflow: visible; }
.rr-fp-lot-filter-panel { width: 100% !important; grid-template-columns: minmax(220px,.8fr) minmax(300px,1.2fr) !important; align-items: end !important; }
.rr-fp-control-field { display: grid; gap: 5px; min-width: 0; color: var(--rr-text); font-size: 13px; font-weight: 700; line-height: 1.3; }
.rr-fp-control-field > span { display: block; }
.rr-fp-control-field .rr-fp-search-row { position: relative; display: block; min-width: 0; }
.rr-fp-control-field .rr-fp-search-row .rr-input { height: 40px; padding-right: 43px; }
.rr-fp-control-field .rr-fp-search-row .rr-fp-search-submit { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--rr-text-muted); cursor: pointer; transition: color .18s ease, background-color .18s ease; }
.rr-fp-control-field .rr-fp-search-row .rr-fp-search-submit:hover,.rr-fp-control-field .rr-fp-search-row .rr-fp-search-submit:focus-visible { color: var(--rr-text); background: var(--btn-bg-hover); outline: none; }
.rr-fp-search-submit svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rr-fp-lot-controls:has(.rr-select-open) { z-index: 600; }
.rr-fp-lot-controls .rr-select.rr-select-open { z-index: 620; }
.rr-fp-lot-controls .rr-select-menu { z-index: 640; }
.rr-fp-lots-control { position: relative; z-index: 10; display: grid; gap: 6px; flex: 0 0 auto; margin-bottom: 8px; }
.rr-fp-lots-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; padding: 3px 2px; color: var(--rr-text-muted); font-size: 12px; }
.rr-fp-lots-actions .rr-btn { min-width: 100px; }
.rr-fp-selection-close { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border: 1px solid var(--rr-border); border-radius: 6px; background: var(--btn-bg); color: var(--rr-text); font-size: 22px; cursor: pointer; }
.rr-fp-selection-close:hover { border-color: var(--border-hover); background: var(--btn-bg-hover); }
.rr-fp-bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.rr-fp-bulk-selection,.rr-fp-bulk-actions { display: flex; align-items: center; gap: 12px; }
.rr-fp-bulk-selection strong { color: var(--rr-text-muted); font-size: 13px; white-space: nowrap; }
.rr-fp-bulk-actions .rr-btn { width: auto; min-width: 120px; }
.rr-fp-bulk-panel[hidden],.rr-fp-lot-detail[hidden],.rr-admin-page .rr-fp-lot-choice[hidden] { display: none; }
.rr-fp-bulk-panel { position: static; z-index: auto; display: grid; gap: 9px; width: 100%; max-height: none; overflow: visible; padding: 11px 12px; border: 1px solid #8d3942; border-radius: 8px; background: #3a1b21; box-shadow: none; animation: none; }
.rr-fp-bulk-panel:has(.rr-select-open) { position: relative; z-index: 500; }
.rr-fp-bulk-panel .rr-fp-bulk-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0; }
.rr-fp-bulk-panel .rr-fp-bulk-field { display: grid; grid-template-columns: 1fr; align-content: start; gap: 5px; min-width: 0; }
.rr-fp-bulk-panel .rr-fp-bulk-field > span { display: inline-flex; align-items: center; gap: 7px; min-height: 20px; color: var(--rr-text); font-size: 12px; font-weight: 600; }
.rr-fp-bulk-panel .rr-fp-bulk-field > .rr-input { grid-column: auto; width: 100%; min-width: 0; }
.rr-fp-bulk-panel .rr-fp-bulk-field :is(input,textarea).rr-input { min-height: 38px; height: 38px; padding: 8px 10px; }
.rr-fp-language-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.rr-fp-language-field > span { color: var(--rr-text); font-size: 12px; font-weight: 600; }
.rr-fp-language-field > span label { display: inline-flex; align-items: center; gap: 7px; }
.rr-fp-language-tabs { display: inline-flex; justify-self: start; gap: 3px; padding: 3px; border: 1px solid var(--rr-border); border-radius: 8px; background: #181818; }
.rr-fp-language-tabs button { min-width: 36px; padding: 5px 9px; border: 0; border-radius: 5px; background: transparent; color: var(--rr-text-muted); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.rr-fp-language-tabs button.active { background: #343434; color: #fff; }
.rr-fp-language-tabs button:hover:not(.active) { color: #fff; }
.rr-fp-language-field .rr-input { width: 100%; min-width: 0; }
.rr-fp-language-field [data-fp-lang-input][hidden] { display: none; }
.rr-fp-bulk-panel .rr-fp-bulk-field textarea.rr-input { resize: vertical; }
.rr-fp-transfer-row { display: grid; grid-template-columns: auto minmax(230px,360px) auto; align-items: end; justify-content: end; gap: 10px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.1); }
.rr-fp-transfer-row > strong { align-self: center; font-size: 13px; white-space: nowrap; }
.rr-fp-transfer-row > label { display: grid; gap: 4px; min-width: 0; font-size: 11px; color: var(--rr-text-muted); }
.rr-fp-transfer-row .rr-select-trigger { min-height: 38px; padding-block: 8px; }
.rr-fp-transfer-row .rr-select.rr-select-open { z-index: 520; }
.rr-fp-transfer-row .rr-select-menu { z-index: 540; }
.rr-fp-transfer-row > .rr-btn { min-height: 38px; padding: 8px 14px; }
.rr-fp-lots-list { flex: 1; min-height: 0; overflow-y: auto; border: 1px solid var(--rr-border); border-radius: 8px; background: var(--rr-bg-soft); }
.rr-fp-lot-columns,.rr-fp-lot-main { display: grid; grid-template-columns: minmax(220px,1fr) 130px; align-items: stretch; gap: 0; }
.rr-fp-lot-columns { position: sticky; z-index: 2; top: 0; border-bottom: 1px solid var(--rr-border); background: #242424; color: var(--rr-text-muted); font-size: 11px; text-transform: uppercase; }
.rr-fp-lot-columns > * { padding: 12px 16px; }
.rr-fp-lot-columns > * + *,.rr-fp-lot-main > .rr-fp-lot-cell + .rr-fp-lot-cell { border-left: 1px solid var(--rr-border); }
.rr-fp-lot-category + .rr-fp-lot-category { border-top: 1px solid var(--rr-border); }
.rr-fp-lot-category-heading { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--rr-border); background: #202620; }
.rr-fp-lot-category-heading strong { color: var(--rr-text); font-size: 14px; }
.rr-fp-lot-category-heading > span { margin-left: auto; color: var(--rr-text-muted); font-size: 12px; }
.rr-fp-category-choice { display: inline-flex; align-items: center; }
.rr-fp-category-choice[hidden] { display: none; }
.rr-fp-lot-row { border-bottom: 1px solid var(--rr-border); }
.rr-fp-lot-row:has([data-fp-lot]:checked) { background: rgba(54,185,120,.08); box-shadow: inset 3px 0 0 rgba(66,207,141,.75); }
.rr-fp-lot-row:last-child { border-bottom: 0; }
.rr-fp-lot-main { min-height: 68px; }
.rr-fp-lot-cell { display: flex; align-items: center; min-width: 0; padding: 12px 16px; }
.rr-fp-lot-name { gap: 12px; }
.rr-fp-lot-name-text { display: grid; gap: 4px; min-width: 0; }
.rr-fp-lot-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.rr-fp-lot-name small { color: var(--rr-text-muted); font-size: 11px; }
.rr-fp-lot-meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.rr-fp-lot-meta-line small { white-space: nowrap; }
.rr-fp-lot-buttons { justify-content: flex-end; gap: 7px; }
.rr-fp-lot-buttons .rr-btn { min-height: 36px; padding: 7px 10px; white-space: nowrap; font-size: 12px; }
.rr-fp-lot-choice { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.rr-fp-selection-order { white-space: nowrap; color: #f5f5f5; font-size: 12px; font-weight: 700; }
.rr-fp-selection-order[hidden] { display: none; }
.rr-hour-rule-toggle { display: inline-flex !important; align-items: center; gap: 10px; }
.rr-hour-rule-toggle[hidden] { display: none !important; }
.rr-hour-rule-toggle input { width: 17px; height: 17px; }
[data-single-lot-field][hidden] { display: none; }
.rr-hour-rule-bulk[hidden] { display: none; }
.rr-hour-rule-bulk > label { display: grid; gap: 8px; }
.rr-hour-rule-bulk textarea { width: 100%; min-height: 130px; resize: vertical; }
.rr-hour-rule-preview { display: grid; gap: 6px; margin-top: 10px; }
.rr-hour-rule-preview-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid #363636; border-radius: 8px; background: #202020; font-size: 13px; }
.rr-hour-rule-preview-row span:first-child { overflow-wrap: anywhere; }
.rr-hour-rule-preview-error { color: #ff9d9d; border-color: #813b45; }
.rr-lot-title-cell { min-width: 260px; max-width: 520px; overflow-wrap: anywhere; line-height: 1.35; }
.rr-fp-lots-page input[type="checkbox"]:not([role="switch"]):hover { border-color: var(--rr-border); box-shadow: none; }
.rr-fp-lots-page input[type="checkbox"]:not([role="switch"]):active { transform: none; }
.rr-fp-lot-detail { padding: 18px; border-top: 1px solid var(--rr-border); background: var(--bg-main); }
.rr-fp-lot-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(290px,1fr); gap: 28px; }
.rr-fp-lot-detail h2 { margin: 0 0 14px; font-size: 16px; }
.rr-fp-lot-detail p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--rr-text-muted); font-size: 13px; user-select: text; }
.rr-fp-lot-edit { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.rr-fp-lot-edit h2,.rr-fp-lot-edit label:has(textarea),.rr-fp-lot-edit .rr-fp-description-language { grid-column: 1 / -1; }
.rr-fp-lot-edit label { display: grid; gap: 6px; min-width: 0; font-size: 12px; }
.rr-fp-lot-edit .rr-input { width: 100%; min-width: 0; }
.rr-fp-lot-edit > .rr-btn { justify-self: start; }
.rr-modal-actions-even .rr-btn[data-proxy-back],.rr-modal-actions-even .rr-btn[data-edit-profile-back] { width: 36px; min-width: 36px; flex: 0 0 36px; }
@media (max-width: 950px) {
  .rr-fp-bulk-panel .rr-fp-bulk-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rr-fp-lot-columns,.rr-fp-lot-main { grid-template-columns: minmax(170px,1fr) 110px; }
  .rr-fp-lot-buttons .rr-btn { padding-inline: 7px; }
}
@media (max-width: 700px) {
  body:has(.rr-fp-lots-page) .rr-content { padding: 10px; }
  .rr-fp-lots-page .rr-fp-page-toolbar { flex-wrap: wrap; }
  .rr-fp-lots-page .rr-fp-page-heading .rr-title { font-size: 20px; }
  .rr-fp-lot-filter-panel { grid-template-columns: 1fr !important; }
  .rr-fp-bulk-toolbar { align-items: stretch; flex-direction: column; }
  .rr-fp-bulk-selection,.rr-fp-bulk-actions { justify-content: space-between; }
  .rr-fp-transfer-row { grid-template-columns: 1fr auto; justify-content: stretch; }
  .rr-fp-transfer-row > strong { grid-column: 1 / -1; }
  .rr-fp-lot-columns { display: none; }
  .rr-fp-lot-main { grid-template-columns: minmax(0,1fr) auto; }
  .rr-fp-lot-main > .rr-fp-lot-cell + .rr-fp-lot-cell { border-left: 0; }
  .rr-fp-lot-main > .rr-fp-lot-cell { padding: 8px 12px; }
  .rr-fp-lot-name { grid-column: 1 / -1; }
  .rr-fp-lot-buttons { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--rr-border); }
  .rr-fp-lot-detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .rr-fp-lot-edit { grid-template-columns: 1fr; }
  .rr-fp-lot-edit h2,.rr-fp-lot-edit label:has(textarea) { grid-column: 1; }
}
@media (max-width: 420px) {
  .rr-fp-lots-page .rr-fp-page-toolbar .rr-fp-chat-filters { grid-template-columns: 1fr; }
  .rr-fp-bulk-panel .rr-fp-bulk-fields { grid-template-columns: 1fr; }
  .rr-fp-transfer-row { grid-template-columns: 1fr; }
  .rr-fp-transfer-row > strong { grid-column: auto; }
  .rr-fp-lots-actions { align-items: flex-start; }
  .rr-fp-bulk-selection { align-items: flex-start; flex-direction: column; }
  .rr-fp-bulk-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rr-fp-bulk-actions .rr-btn { width: 100%; min-width: 0; }
}

/* Shared back control: centered vector chevron, independent of the text font. */
:is(.rr-back-link, .rr-settings-back, .rr-btn[data-proxy-back], .rr-btn[data-edit-profile-back], .rr-fp-exit, .rr-fp-mobile-back, .rr-buyer-back) {
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--rr-border);
  border-radius: 8px;
  font-size: 0;
  line-height: 1;
  color: var(--rr-text-muted);
  background: var(--btn-bg);
}
:is(.rr-back-link, .rr-settings-back, .rr-btn[data-proxy-back], .rr-btn[data-edit-profile-back], .rr-fp-exit, .rr-fp-mobile-back, .rr-buyer-back)::before {
  content: "";
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 0;
  transform: none;
  background: currentColor;
  -webkit-mask: url('../img/chevron-left.svg') center / contain no-repeat;
  mask: url('../img/chevron-left.svg') center / contain no-repeat;
}
.rr-back-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rr-back-heading .rr-title { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rr-plugin-header-row > .rr-back-heading { flex: 1 1 0; }
.rr-plugin-header-row > form { flex: 0 0 auto; }
.rr-back-heading > .rr-back-link { margin: 0; }
.rr-buyer-back { display: inline-flex; }

/* Buyer account: align the back control with its heading and keep code fields calm. */
.rr-buyer-page-head { align-items: center; gap: 12px; margin-bottom: 14px; }
.rr-buyer-page-head .rr-title { margin: 0; line-height: 1.22; }
.rr-card-wide .rr-copyrow { align-items: stretch; gap: 10px; }
.rr-card-wide .rr-copyrow input[readonly] {
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
  outline: none;
}
.rr-card-wide .rr-copyrow input[readonly]:hover { border-color: var(--border-hover); background: var(--btn-bg); }
.rr-card-wide .rr-copyrow input[readonly]:focus { border-color: var(--border-hover); box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.rr-card-wide .rr-copyrow input[readonly]:active { background: var(--btn-bg-hover); }
.rr-card-wide .rr-field-2fa .rr-copyrow { margin-bottom: 10px; }
.rr-code-timer { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border-radius: 8px; background: var(--btn-bg); color: var(--rr-text-muted); font-size: 13px; }
.rr-card-wide .rr-code-kind-btn:not([hidden]) { margin-top: 4px; }
.rr-extension-buy { min-width: 230px; min-height: 46px; padding: 12px 22px; font-size: 15px; text-decoration: none !important; }
.rr-extension-buy[hidden], [data-extension-unavailable][hidden] { display: none !important; }
#rr-extension-lot-modal .rr-modal-actions { justify-content: center; }
.rr-card-wide ~ .rr-modal-backdrop { backdrop-filter: none; background: rgba(5,5,7,.76); }
.rr-card-wide ~ .rr-modal-backdrop.rr-modal-open { animation: none; }
.rr-card-wide ~ .rr-modal-backdrop .rr-modal { will-change: auto; }
.rr-card-wide .rr-action-grid .rr-action-btn-extend {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 56px;
  border-color: #69c688;
  background: #24402e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 5px 15px rgba(39,196,106,.12);
}
.rr-card-wide .rr-action-grid .rr-action-btn-extend:hover,
.rr-card-wide .rr-action-grid .rr-action-btn-extend:focus-visible { background: #30593d; border-color: #84d9a0; box-shadow: 0 8px 22px rgba(39,196,106,.2); }
.rr-card-wide .rr-action-grid .rr-action-btn-extend:active { background: #1f3929; }
.rr-card-wide .rr-action-grid .rr-action-btn-extend:only-child { width: 100%; max-width: none; }
.rr-extension-text { margin: 10px 30px 20px; text-align: center; line-height: 1.5; }
.rr-card-wide ~ .rr-modal-backdrop { display: flex; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility .22s ease; }
.rr-card-wide ~ .rr-modal-backdrop.rr-modal-open { opacity: 1; visibility: visible; pointer-events: auto; }
.rr-card-wide ~ .rr-modal-backdrop .rr-modal { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .22s ease, transform .22s ease; }
.rr-card-wide ~ .rr-modal-backdrop.rr-modal-open .rr-modal { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .rr-card-wide ~ .rr-modal-backdrop,
  .rr-card-wide ~ .rr-modal-backdrop .rr-modal { transition: none; }
}
.rr-rockstar-section:has(.rr-select-open) { position: relative; z-index: 200; }

/* The Rockstar section hierarchy is shared by all plugin pages. */
.rr-admin-page:has(.rr-plugin-header-row) .rr-panel:not(.rr-rockstar-section) > h2,
.rr-admin-page:has(.rr-plugin-header-row) .rr-panel:not(.rr-rockstar-section) .rr-accordion-head .rr-accordion-title {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 15px 48px;
  border: 1px solid #69c688;
  border-radius: 10px;
  background: #24402e;
  color: var(--rr-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 5px 15px rgba(39,196,106,.12);
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
.rr-admin-page:has(.rr-plugin-header-row) .rr-panel:not(.rr-rockstar-section) .rr-accordion-head { position: relative; padding: 16px 24px 0; }
.rr-admin-page:has(.rr-plugin-header-row) .rr-panel:not(.rr-rockstar-section) .rr-accordion-head > :first-child { width: 100%; }
.rr-admin-page:has(.rr-plugin-header-row) .rr-panel:not(.rr-rockstar-section) .rr-accordion-head > .rr-accordion-arrow,
.rr-admin-page:has(.rr-plugin-header-row) .rr-panel:not(.rr-rockstar-section) .rr-accordion-head > .rr-accordion-control { position: absolute; right: 40px; top: 29px; z-index: 1; }
.rr-admin-page:has(.rr-plugin-header-row) .rr-panel:not(.rr-rockstar-section) .rr-form-grid > :is(.rr-form-actions, .rr-form-toolbar) {
  justify-content: flex-start;
  width: 100%;
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1px solid #8d3942;
  border-radius: 10px;
  background: #3a1b21;
}

/* Form actions precede fields in DOM order on desktop and mobile. */
.rr-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 6px;
  grid-column: 1 / -1;
}
.rr-form-actions .rr-btn { width: auto; }
@media (max-width: 540px) {
  .rr-form-actions { justify-content: flex-start; }
}

.rr-form-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
  margin-bottom: 6px;
}
.rr-form-toolbar h2 { margin: 0; }
.rr-issue-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.rr-issue-fields[hidden] { display: none; }
@media (max-width: 640px) {
  .rr-issue-fields { grid-template-columns: minmax(0, 1fr); }
}

/* Rating switches reuse the compact monochrome toggle shape. */
.rr-review-star-toggle {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 40px;
  width: 40px !important;
  height: 22px !important;
  border: 1px solid var(--rr-border);
  border-radius: 999px;
  background: var(--btn-bg);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.rr-review-star-toggle::before { display: none !important; }
.rr-review-star-toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--rr-text-muted);
  transition: transform .15s, background .15s;
}
.rr-review-star-toggle:checked { background: #f2f2f2 !important; border-color: #f2f2f2 !important; box-shadow: none !important; }
.rr-review-star-toggle:checked::after { transform: translateX(18px); background: #111; }
.rr-review-star-toggle:focus-visible { outline: 2px solid var(--rr-text); outline-offset: 3px; }
.rr-review-template-card .rr-check-row { margin: 0 auto 0 0; }

/* blsells: the reference site's restrained, stationary controls. */
.rr-body :is(button:not(.rr-scroll-top), input[type="button"], input[type="submit"], input[type="reset"], .rr-btn, .rr-nav-link, .rr-topbar-action, .rr-back-link, .rr-settings-back):not(:disabled):is(:hover, :focus-visible, :active) {
  transform: none !important;
  border-color: var(--border-hover);
  box-shadow: var(--button-hover-ring);
}
.rr-body :is(.rr-btn, .rr-nav-link, .rr-topbar-action, .rr-back-link, .rr-settings-back):is(:hover, :focus-visible, :active) {
  background-color: var(--btn-bg);
}
.rr-body .rr-nav-link.active,
.rr-body .rr-nav-link.active:is(:hover, :focus-visible) {
  background-color: var(--btn-bg-hover);
}
.rr-body :is(.rr-topbar-icon, .rr-nav-icon, .rr-plugin-icon svg):hover,
.rr-body :is(.rr-topbar-action, .rr-nav-link, .rr-plugin-icon):hover svg {
  transform: none;
  filter: none;
}
.rr-language-menu button:is(:hover, :focus-visible, :active),
.rr-select-option:is(:hover, :focus-visible, :active) {
  transform: none !important;
}

/* Text fields and dropdowns gain a border on hover, then glow when engaged. */
.rr-body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]), textarea, select, [contenteditable="true"], .rr-select-trigger):hover {
  border-color: var(--border-hover);
  box-shadow: none;
  transform: none !important;
}
.rr-body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]), textarea, select, [contenteditable="true"], .rr-select-trigger):is(:focus, :focus-visible, :active),
.rr-body .rr-select.rr-select-open .rr-select-trigger {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: var(--field-focus-glow);
  transform: none !important;
}
/* Captions do not extend a text field's hover target. */
.rr-body label:not(.rr-inline-check):not(.rr-check-row):not(:has(input[type="checkbox"],input[type="radio"],input[type="file"])):has(.rr-input,.rr-select,textarea,select) {
  pointer-events: none;
  cursor: default;
}
.rr-body label:not(.rr-inline-check):not(.rr-check-row):has(.rr-input,.rr-select,textarea,select) :is(input,textarea,select,button,.rr-select,.rr-game-picker) {
  pointer-events: auto;
}
.rr-topbar-settings { width: 132px; flex: 0 0 132px; }
.rr-language-toggle { width: 72px; }
.rr-topbar-actions > a.rr-topbar-action { width: 156px; flex: 0 0 156px; }
.rr-notification-wrap { width: 175px; flex: 0 0 175px; }
.rr-notification-wrap > .rr-topbar-action { width: 100%; }
.rr-topbar-actions > button.rr-topbar-action:last-child { width: 116px; flex: 0 0 116px; }
.rr-topbar-label,
.rr-nav-link > span:not(.rr-nav-dot) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Panels rise into view and ease back down on close. */
.rr-modal-backdrop,
.rr-card-wide ~ .rr-modal-backdrop {
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}
.rr-modal-backdrop.rr-modal-open,
.rr-card-wide ~ .rr-modal-backdrop.rr-modal-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.rr-modal-backdrop .rr-modal,
.rr-card-wide ~ .rr-modal-backdrop .rr-modal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .24s ease, transform .24s cubic-bezier(.2,.8,.2,1);
}
.rr-modal-backdrop.rr-modal-open .rr-modal,
.rr-card-wide ~ .rr-modal-backdrop.rr-modal-open .rr-modal {
  opacity: 1;
  transform: translateY(0);
}
.rr-select-menu { transform: translateY(10px); transform-origin: bottom center; }
.rr-select.rr-select-open .rr-select-menu { transform: translateY(0); }
.rr-notification-panel { transform: translateY(10px); }
.rr-notification-panel:not([hidden]) { animation: rr-blsells-panel-in .22s cubic-bezier(.2,.8,.2,1) both; }
.rr-notification-panel.rr-notification-closing { transform: translateY(10px); }
.rr-language-menu:not([hidden]) { animation: rr-blsells-panel-in .22s cubic-bezier(.2,.8,.2,1) both; }
.rr-language-menu.rr-menu-closing:not([hidden]) { animation: rr-blsells-panel-out .2s ease-in both; pointer-events: none; }
.rr-accordion-body:not([hidden]):not(.rr-accordion-closing) { animation: rr-blsells-panel-in .26s cubic-bezier(.2,.8,.2,1) both; }
.rr-accordion-body.rr-accordion-closing { animation: rr-blsells-panel-out .22s ease-in both; }
@keyframes rr-blsells-panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rr-blsells-panel-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(12px); } }

/* Shared account dialogs and controls: separate heading, precise hover targets. */
.rr-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  margin: -28px -28px 22px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rr-border);
  background: #171717;
  border-radius: 8px 8px 0 0;
}
.rr-modal-header-icon { display: inline-flex; flex: none; color: var(--rr-text-muted); }
.rr-modal-header h2 { flex: 1; min-width: 0; margin: 0; padding: 0; font-size: 17px; line-height: 1.3; }
.rr-modal-header .rr-modal-close-x { position: relative; top: auto; right: auto; flex: none; width: 32px; height: 32px; margin-left: auto; border: 1px solid #3b3b3b; border-radius: 8px; background: #222; }
.rr-modal-header .rr-modal-close-x:hover { transform: none; }
.rr-account-edit-modal .rr-form-grid { align-items: start; }
.rr-account-edit-status-note { display: flex; align-items: center; min-height: 48px; color: #f4868d; font-size: 14px; }
.rr-account-inline-retry { display: block; margin-top: 8px; }
.rr-account-inline-retry .rr-btn { padding: 7px 12px; font-size: 12px; }
.rr-inline-copy-field { position: relative; display: block; width: 100%; min-width: 0; }
.rr-inline-copy-field .rr-input { display: block; width: 100%; padding-right: 54px; }
.rr-inline-copy-button {
  position: absolute;
  right: 8px;
  top: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-block: auto;
  padding: 0;
  border: 1px solid var(--rr-border);
  border-radius: 8px;
  background: #1a1a1a;
  color: var(--rr-text-muted);
  cursor: pointer;
  pointer-events: auto;
  transform: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.rr-body .rr-inline-copy-button:is(:hover,:focus-visible) { transform: none !important; color: #fff; border-color: var(--border-hover); box-shadow: var(--button-hover-ring); }
.rr-mafile-access { display: grid; gap: 10px; }
.rr-mafile-access > .rr-btn { justify-self: start; }
.rr-mafile-auth { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; }
.rr-mafile-auth[hidden], .rr-mafile-access [data-mafile-result][hidden], .rr-mafile-access [data-mafile-open][hidden] { display: none; }
.rr-mafile-auth label { margin: 0; }
.rr-mafile-auth .rr-btn { grid-column: 1 / -1; justify-self: start; }
.rr-mafile-access [data-mafile-result] { max-height: 230px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.rr-clean-fields > label,
.rr-clean-fields .rr-issue-fields label,
.rr-clean-fields .rr-rockstar-field-label { pointer-events: auto; cursor: default; }
.rr-account-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.rr-rockstar-code-fields { padding: 18px; border: 1px solid var(--border, #303030); border-radius: 12px; background: var(--surface, #161616); }
.rr-rockstar-code-fields h3 { margin: 0 0 14px; font-size: 16px; color: var(--text, #f5f5f5); }
.rr-rockstar-code-fields .rr-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) { .rr-rockstar-code-fields .rr-form-grid { grid-template-columns: minmax(0, 1fr); } }
.rr-account-fields .rr-fp-scope { min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.rr-account-fields .rr-fp-scope label { max-width: none; min-width: 0; align-content: start; }
.rr-account-fields :is(label, .rr-mafile-label-line) { pointer-events: none; }
.rr-account-fields :is(input, textarea, button, .rr-select, .rr-game-picker) { pointer-events: auto; }
.rr-account-fields .rr-input:not(.rr-field-invalid):not(:is(:hover, :focus, :focus-visible, :active)),
.rr-account-data-modal .rr-input:not(.rr-field-invalid):not(:is(:hover, :focus, :focus-visible, :active)),
.rr-account-fields .rr-select:not(.rr-select-open) > .rr-select-trigger:not(:is(:hover, :focus, :focus-visible, :active)) {
  border-color: var(--rr-border);
  box-shadow: none;
}
@media (max-width: 700px) {
  .rr-panel > .rr-account-fields { grid-template-columns: minmax(0, 1fr); }
}
.rr-table .rr-table-group td,
.rr-account-group-label { text-align: center; }
.rr-fp-lot-category-heading { display: grid; grid-template-columns: minmax(32px,1fr) minmax(0,auto) minmax(32px,1fr); }
.rr-fp-lot-category-heading > .rr-fp-category-choice { justify-self: start; }
.rr-fp-lot-category-heading > strong { text-align: center; overflow-wrap: anywhere; }
.rr-fp-lot-category-heading > span { justify-self: end; margin-left: 0; text-align: right; }
.rr-manual-issue .rr-rockstar-input-field, .rr-issue-fields > .rr-field-full { width: 100%; }
.rr-manual-issue-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.rr-manual-issue-control { display: grid; align-content: start; gap: 9px; min-width: 0; }
.rr-manual-issue-control > .rr-select { width: 100%; align-self: start; }
.rr-manual-issue-top .rr-select-trigger,
.rr-manual-issue-top .rr-manual-issue-control > .rr-input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 12px 16px;
}
.rr-manual-issue .rr-rockstar-field-label { pointer-events: none; }
.rr-manual-issue .rr-input:not(:is(:hover, :focus, :focus-visible, :active)),
.rr-manual-issue .rr-select:not(.rr-select-open) > .rr-select-trigger:not(:is(:hover, :focus, :focus-visible, :active)) {
  border-color: var(--rr-border);
  box-shadow: none;
}
@media (max-width: 700px) {
  .rr-manual-issue-top { grid-template-columns: minmax(0, 1fr); }
}
.rr-game-list .rr-game-search { min-height: 48px; padding-right: 42px; cursor: pointer; }
.rr-game-chevron { position: absolute; right: 18px; top: 20px; width: 9px; height: 9px; border-right: 2px solid #ddd; border-bottom: 2px solid #ddd; transform: rotate(45deg); pointer-events: none; transition: transform .2s ease; }
.rr-game-list:has(.rr-game-options:not([hidden])) .rr-game-chevron { transform: translateY(4px) rotate(225deg); }
.rr-game-options { top: calc(100% + 6px); border-color: var(--border-hover); border-radius: 10px; background: #111; box-shadow: 0 14px 36px rgba(0,0,0,.55), 0 0 12px rgba(255,255,255,.08); animation: rr-blsells-panel-in .2s cubic-bezier(.2,.8,.2,1) both; }
.rr-game-option { padding: 12px 16px; border-bottom-color: #292929; }
.rr-game-option:hover, .rr-game-option-selected { background: #252525; }
.rr-panel .rr-table tbody tr.rr-game-category-row td,
.rr-panel .rr-table tbody tr.rr-game-category-row:hover td {
  padding: 4px 0;
  border: 0;
  background: transparent;
}
.rr-game-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 5px 12px;
  border: 1px solid #b9b9b9;
  border-radius: 13px;
  background: #303030;
  color: var(--rr-text);
}
.rr-game-category-context { min-width: 0; overflow-wrap: anywhere; text-align: left; color: #c9c9c9; font-size: 12px; }
.rr-game-category-name { min-width: 0; max-width: 480px; padding: 6px 14px; border: 1px solid #f0f0f0; border-radius: 9px; background: #dedede; color: #151515; font-size: 16px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.rr-game-category-count { justify-self: end; min-width: 26px; padding: 3px 7px; border: 1px solid #6b6b6b; border-radius: 7px; background: #222; color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.rr-game-category-count[hidden] { display: none; }
@media (max-width: 700px) {
  .rr-game-category { min-height: 44px; padding: 4px 8px; gap: 8px; }
  .rr-game-category-name { padding: 5px 10px; font-size: 14px; }
  .rr-game-category-context { font-size: 11px; }
}

/* Shared dropdown appearance: a dark tray with individually framed choices. */
:is(.rr-select-menu, .rr-game-options, .rr-language-menu, .rr-choice-list) {
  background: #171717;
  border: 1px solid #343434;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .55), 0 0 10px rgba(255, 255, 255, .04);
}
:is(.rr-select-menu .rr-select-option, .rr-game-options .rr-game-option, .rr-language-menu button, .rr-choice-list .rr-select-option) {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  border: 1px solid #333;
  border-radius: 9px;
  background: #101010;
  color: var(--rr-text);
  padding: 9px 12px;
  text-align: left;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
:is(.rr-select-menu .rr-select-option, .rr-game-options .rr-game-option, .rr-language-menu button, .rr-choice-list .rr-select-option):not(:last-child) {
  margin-bottom: 5px;
}
:is(.rr-select-menu .rr-select-option, .rr-game-options .rr-game-option, .rr-language-menu button, .rr-choice-list .rr-select-option):is(:hover, :focus-visible) {
  background: #1c1c1c;
  border-color: var(--border-hover);
  box-shadow: var(--button-hover-ring);
  transform: none;
}
:is(.rr-select-menu .rr-select-option.rr-select-option-active, .rr-game-options .rr-game-option-selected, .rr-language-menu button.active) {
  background: #202020;
  border-color: #777;
}
:is(.rr-select-menu .rr-select-option.rr-select-option-active, .rr-game-options .rr-game-option-selected, .rr-language-menu button.active):is(:hover, :focus-visible) {
  background: #202020;
  border-color: var(--border-hover);
  box-shadow: var(--button-hover-ring);
}
.rr-body .rr-game-modes .rr-game-mode-active:is(:hover,:focus-visible,:active) { background: #234030; color: #fff; border-color: #fff; box-shadow: var(--button-hover-ring); }
.rr-body .rr-game-modes .rr-btn:not(.rr-game-mode-active):is(:hover,:focus-visible) { background: var(--btn-bg); border-color: #fff; box-shadow: var(--button-hover-ring); }
.rr-plugin-toggle { border-color: rgba(255,255,255,.18); transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease; }
.rr-plugin-toggle::after { transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease; }
.rr-plugin-toggle-on::after { box-shadow: 0 0 9px rgba(255,255,255,.45); }
.rr-flash-stack,.rr-toast-stack { z-index: 1000; }
.rr-flash-out { opacity: 0; transform: translateY(14px); }
.rr-sidebar-top { position: relative; display: flex; align-items: center; gap: 6px; flex: none; min-height: 62px; margin: 0 -12px 10px; padding: 0 12px; border-bottom: var(--line-thin); }
.rr-sidebar-top .rr-sidebar-brand { flex: 1 1 auto; min-width: 0; min-height: 60px; margin: 0; padding: 8px 8px 8px 12px; border: 0; }
.rr-sidebar-top .rr-brand { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-sidebar-top .rr-notification-wrap { flex: none; width: 36px; }
.rr-sidebar-top [data-notifications-toggle] { position: relative; width: 36px; min-width: 36px; min-height: 36px; padding: 8px; }
.rr-sidebar-top [data-notifications-toggle] .rr-topbar-label { display: none; }
.rr-sidebar-top .rr-notification-count { position: absolute; top: -6px; right: -6px; }
.rr-sidebar-top .rr-notification-panel { top: 0; left: calc(100% + 12px); right: auto; }
.rr-sidebar-top .rr-notification-panel::before { top: 18px; left: -6px; right: auto; transform: rotate(-45deg); }
.rr-body .rr-topbar-actions > .rr-notification-wrap { flex: 0 0 38px; width: 38px; }
.rr-body .rr-topbar-actions > .rr-notification-wrap > .rr-topbar-action {
  position: relative;
  width: 38px;
  min-width: 38px;
  padding: 8px;
}
.rr-body .rr-topbar-actions > .rr-notification-wrap .rr-topbar-label { display: none; }
.rr-body .rr-topbar-actions > .rr-notification-wrap .rr-notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
}
.rr-topbar-profile-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; object-fit: cover; }
.rr-topbar-profile-initial { font-size: 12px; font-weight: 700; }
.rr-topbar-actions { gap: 8px; }
.rr-topbar-action { min-height: 38px; }
@media (max-width: 640px) {
  .rr-modal-header { margin: -20px -20px 18px; padding: 11px 15px; }
  .rr-mafile-auth { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 900px) {
  .rr-sidebar-top { min-height: 42px; margin: 0 8px 0 0; padding: 0; border: 0; }
  .rr-sidebar-top .rr-sidebar-brand { min-height: 42px; margin: 0; padding: 4px 6px 4px 0; }
  .rr-sidebar-top .rr-notification-panel { position: fixed; top: 62px; left: auto; right: 12px; width: min(380px,calc(100vw - 24px)); }
  .rr-sidebar-top .rr-notification-panel::before { display: none; }
}

@media (max-width: 900px) {
  .rr-sidebar {
    position: relative;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    border-right: 0;
    border-bottom: var(--line-thin);
  }
  .rr-sidebar::-webkit-scrollbar { display: none; }
  .rr-sidebar-brand { display: inline-flex; min-height: 42px; margin: 0 8px 0 0; padding: 4px 8px 4px 0; }
  .rr-nav-link { width: 168px; min-height: 42px; flex: 0 0 168px; margin: 0; padding: 9px 12px; }
  .rr-topbar-settings, .rr-topbar-actions > a.rr-topbar-action,
  .rr-notification-wrap, .rr-topbar-actions > button.rr-topbar-action:last-child {
    width: auto; flex: 0 1 auto;
  }
}
@media (max-width: 700px) {
  .rr-sidebar-brand { display: inline-flex; }
  .rr-topbar-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .rr-topbar-settings, .rr-language-wrap, .rr-language-toggle,
  .rr-topbar-actions > a.rr-topbar-action, .rr-notification-wrap,
  .rr-topbar-actions > button.rr-topbar-action:last-child { width: 100%; min-width: 0; }
  .rr-topbar-action { width: 100%; min-height: 38px; padding: 7px 4px; }
  .rr-modal-backdrop { padding: 12px; }
  .rr-modal { max-width: min(100%, 480px); max-height: calc(100dvh - 24px); overflow-y: auto; }
  .rr-topbar-label { display: none; }
  .rr-topbar-actions { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .rr-modal-backdrop, .rr-modal-backdrop .rr-modal,
  .rr-select-menu, .rr-notification-panel, .rr-language-menu,
  .rr-accordion-body { animation: none !important; transition-duration: .01ms !important; }
}
.rr-rental-report { margin-top: 24px; }
.rr-rental-report-grid { margin: 18px 0 22px; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.rr-stats-note { color: var(--rr-muted, #999); font-size: 13px; margin: 12px 2px 24px; }

/* The ticket history keeps its columns readable even when one request has many orders. */
.rr-panel .rr-autoticket-table-scroll { overflow-x: auto; }
.rr-panel table.rr-autoticket-log-table { width: 100%; min-width: 1000px; table-layout: fixed; }
@media (max-width: 760px) {
  .rr-panel .rr-autoticket-log-table { display: table; }
  .rr-panel .rr-autoticket-log-table thead { display: table-header-group; }
  .rr-panel .rr-autoticket-log-table tbody { display: table-row-group; }
  .rr-panel .rr-autoticket-log-table tr { display: table-row; width: auto; margin: 0; border: 0; border-radius: 0; }
  .rr-panel .rr-autoticket-log-table td { display: table-cell; width: auto; border-right: 1px solid var(--rr-border); }
  .rr-panel .rr-autoticket-log-table td::before { display: none; }
}

/* Sales and delivery plugins share the Steam rental form rhythm. */
.rr-sales-issue-panel .rr-form-grid,
.rr-sales-form-panel .rr-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.rr-sales-issue-panel .rr-issue-fields { min-width: 0; }
.rr-sales-issue-panel .rr-manual-issue-control > :is(.rr-input, .rr-select),
.rr-sales-form-panel .rr-manual-issue-control > :is(.rr-input, .rr-select) { min-width: 0; width: 100%; }
.rr-sales-issue-panel .rr-input:not([type="file"]),
.rr-sales-form-panel .rr-input:not([type="file"]),
.rr-sales-issue-panel .rr-select-trigger,
.rr-sales-form-panel .rr-select-trigger { box-sizing: border-box; width: 100%; min-height: 48px; }
.rr-sales-issue-panel .rr-form-toolbar,
.rr-sales-form-panel .rr-form-toolbar { display: flex; align-items: center; gap: 12px; }
.rr-sales-issue-panel .rr-form-toolbar h2,
.rr-sales-form-panel .rr-form-toolbar h2 { margin: 0; }
.rr-admin-page:has(.rr-sales-plugin-header) .rr-form-grid > label:not(.rr-check-row):not(:has(input[type="checkbox"])) {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  color: var(--rr-text);
  font-size: 14px;
  font-weight: 600;
}
.rr-admin-page:has(.rr-sales-plugin-header) .rr-form-grid label:not(.rr-check-row):not(:has(input[type="checkbox"])) { pointer-events: none; cursor: default; }
.rr-admin-page:has(.rr-sales-plugin-header) .rr-form-grid label:not(.rr-check-row) :is(input, textarea, select, button, .rr-select) { pointer-events: auto; }
.rr-admin-page:has(.rr-sales-plugin-header) .rr-form-grid .rr-input:not(.rr-field-invalid):not(:is(:hover, :focus, :focus-visible, :active)),
.rr-admin-page:has(.rr-sales-plugin-header) .rr-form-grid .rr-select:not(.rr-select-open) > .rr-select-trigger:not(:is(:hover, :focus, :focus-visible, :active)) {
  border-color: var(--rr-border);
  box-shadow: none;
}
.rr-admin-page:has(.rr-sales-plugin-header) .rr-check-row { cursor: pointer; }
@media (max-width: 700px) {
  .rr-sales-issue-panel .rr-form-grid,
  .rr-sales-form-panel .rr-form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Confirmation dialogs use one centered action and balanced header spacing. */
.rr-confirm-modal { max-width: 440px; padding: 0 22px 22px; border-radius: 12px; overflow: hidden; }
.rr-confirm-modal .rr-modal-header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  column-gap: 12px;
  min-height: 64px;
  margin: 0 -22px 20px;
  padding: 12px 18px;
  border-radius: 12px 12px 0 0;
}
.rr-confirm-modal .rr-modal-header::before { content: ""; width: 32px; height: 32px; }
.rr-confirm-modal .rr-modal-header h2 { text-align: center; }
.rr-confirm-modal .rr-modal-header .rr-modal-close-x { margin: 0; }
.rr-confirm-modal .rr-modal-actions { justify-content: center; margin: 0; }
.rr-confirm-modal .rr-modal-actions .rr-btn { min-width: 180px; min-height: 46px; }
.rr-confirm-modal .rr-confirm-body:not([hidden]),
.rr-confirm-modal .rr-refund-choice:not([hidden]) { margin-bottom: 18px; }

/* Hover lighting never changes a button's position, including disabled actions. */
.rr-body :is(button:not(.rr-scroll-top), .rr-btn):is(:hover, :focus-visible, :active) { transform: none !important; }
.rr-body :is(button:not(.rr-scroll-top), .rr-btn):disabled:is(:hover, :focus-visible, :active) { box-shadow: none; }

/* AI consultant settings follow the same section, action and switch layout as rentals. */
.rr-ai-consultant .rr-ai-tabbar { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.rr-ai-tab {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--rr-text-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.rr-ai-tab.active { color: var(--rr-text); border-bottom-color: var(--border-hover); }
.rr-body .rr-ai-consultant button.rr-ai-tab:is(:hover, :focus-visible, :active) { color: var(--rr-text); border-color: transparent; border-bottom-color: var(--border-hover); background: transparent; box-shadow: none; }
.rr-ai-tab:focus-visible { outline: 2px solid var(--border-hover); outline-offset: -3px; }
.rr-ai-section[hidden], .rr-ai-action-bar[hidden] { display: none !important; }
.rr-ai-consultant .rr-ai-section { opacity: 1; }
.rr-ai-consultant .rr-ai-action-bar { justify-content: space-between; margin-bottom: 18px; }
.rr-ai-action-bar > span { color: var(--rr-text); font-size: 15px; font-weight: 700; }
.rr-ai-action-bar > form { margin: 0; }
.rr-ai-section-help { margin: 0 0 18px; color: var(--rr-text-muted); font-size: 14px; line-height: 1.5; }
.rr-ai-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.rr-ai-provider-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rr-ai-field-full { grid-column: 1 / -1; }
.rr-ai-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.rr-ai-field > label { color: var(--rr-text); font-size: 14px; font-weight: 700; line-height: 1.35; pointer-events: none; }
.rr-ai-field > small { color: var(--rr-text-muted); font-size: 12px; line-height: 1.4; }
.rr-ai-field > :is(.rr-input, .rr-select) { width: 100%; min-width: 0; }
.rr-ai-field .rr-select-trigger { min-height: 48px; }
.rr-ai-field .rr-badge { margin-left: 5px; vertical-align: middle; }
.rr-ai-section #rr-ai-system-prompt { min-height: 220px; }
.rr-ai-section .rr-ai-prefix-input { min-height: 88px; }
.rr-ai-section > .rr-ai-fields + .rr-ai-option,
.rr-ai-section > .rr-ai-field + .rr-ai-option,
.rr-ai-section > .rr-ai-option + :is(.rr-ai-field, .rr-ai-fields) { margin-top: 18px; }
.rr-ai-option { min-height: 76px; }
.rr-ai-context-count { max-width: 360px; }
.rr-ai-empty-log { margin: 0; }
.rr-ai-provider-warning { margin: 18px 0 0; padding: 12px 15px; border: 1px solid #c86464; border-radius: 9px; background: #351d21; color: #ffd9d9; font-size: 13px; line-height: 1.5; }
.rr-ai-provider-note { margin: 16px 0 12px; color: var(--rr-text-muted); font-size: 13px; line-height: 1.5; }
.rr-ai-test-provider { min-height: 42px; margin-top: 14px; }
.rr-ai-key-help, .rr-ai-guide { margin-top: 24px; }
.rr-ai-key-help > .rr-rockstar-section-title,
.rr-ai-guide > .rr-rockstar-section-title { margin-bottom: 14px !important; }
.rr-ai-key-help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rr-ai-key-help-item { min-width: 0; padding: 16px; border: 1px solid var(--rr-border); border-radius: 10px; background: #151515; }
.rr-ai-key-help-item strong { display: block; margin-bottom: 8px; color: var(--rr-text); }
.rr-ai-key-help-item p, .rr-ai-guide p { margin: 0 0 10px; color: var(--rr-text-muted); font-size: 13px; line-height: 1.55; }
.rr-ai-key-help-item a { color: #9ce0b4; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rr-ai-key-help-item a:hover { color: #fff; }
.rr-ai-guide details { padding: 12px 15px; border: 1px solid var(--rr-border); border-radius: 10px; background: #151515; }
.rr-ai-guide summary { color: var(--rr-text); cursor: pointer; font-weight: 700; }
.rr-ai-guide ul { margin: 12px 0 0; padding-left: 20px; color: var(--rr-text-muted); font-size: 13px; line-height: 1.6; }
.rr-ai-guide li + li { margin-top: 8px; }
.rr-ai-guide code { color: #a1e9ba; }

/* Compact sales and delivery forms keep actions below their fields. */
.rr-ai-consultant .rr-ai-action-bar { justify-content: center; margin: 16px 0 0; }
.rr-ai-consultant .rr-ai-section { margin-bottom: 0; }
.rr-ai-consultant .rr-ai-section > .rr-rockstar-section-title { display: flex; align-items: center; justify-content: center; }
.rr-ai-section-body[hidden] { display: none; }
.rr-ai-section-body { display: grid; gap: 18px; }
.rr-ai-section-body > :is(.rr-ai-fields, .rr-ai-field, .rr-ai-option, .rr-ai-key-help) { margin: 0; }
.rr-section-collapse { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; background: rgba(0,0,0,.16); color: #e9f6ec; cursor: pointer; font-size: 12px; }
.rr-section-collapse:hover, .rr-section-collapse:focus-visible { background: rgba(0,0,0,.3); border-color: #fff; }
.rr-ai-key-link { min-height: 42px; text-align: center; text-decoration: none; }
.rr-ai-log-text { max-width: 320px; }
.rr-ai-action-bar > form { width: auto; }
.rr-sales-template-card .rr-accordion-head { margin: 16px 18px 0; width: calc(100% - 36px); padding: 14px 18px; border: 1px solid #69c688; border-radius: 10px; background: #24402e; text-align: center; }
.rr-sales-template-card .rr-accordion-head:hover { background: #2c5137; }
.rr-sales-template-card .rr-accordion-head > div { flex: 1; }
.rr-sales-template-card .rr-accordion-title { margin: 0; }
.rr-sales-template-card .rr-accordion-control { flex: none; }
.rr-sales-template-card .rr-accordion-body { padding: 18px; }
.rr-sales-template-card .rr-template-actions-panel { margin: 18px 0 0; }
.rr-sales-template-card .rr-template-expand-btn { width: fit-content; min-width: 126px; min-height: 34px; margin: 10px auto 0; border: 1px solid #565656; border-radius: 8px; background: #222; color: #eee; }
.rr-sales-template-card .rr-template-expand-btn:hover { border-color: #9b9b9b; background: #2b2b2b; }
.rr-admin-page:has(.rr-sales-plugin-header) .rr-form-toolbar.rr-sales-actions-only { justify-content: center; margin: 18px 0 0; padding: 14px 16px; border: 1px solid #8d3942; border-radius: 10px; background: #3a1b21; }
.rr-sales-issue-form > .rr-rockstar-section-title { margin-bottom: 0 !important; }
.rr-sales-form-panel .rr-form-grid > .rr-rockstar-section-title { margin-bottom: 0 !important; }
.rr-admin-page:has(.rr-sales-plugin-header) .rr-sales-form-panel .rr-form-grid > .rr-form-toolbar.rr-sales-actions-only { margin: 0 0 8px; }
.rr-sales-issue-form > .rr-form-toolbar.rr-sales-actions-only,
.rr-admin-page:has(.rr-sales-plugin-header) .rr-sales-issue-form > .rr-form-toolbar.rr-sales-actions-only { margin: 0 0 8px; }
.rr-sales-section-heading { grid-column: 1 / -1; }
.rr-sales-field-note { margin-left: 8px; color: #b8b8b8; font-size: 12px; font-weight: 400; letter-spacing: .02em; }
.rr-sales-form-panel .rr-form-grid > div:has(> label),
.rr-sales-field-row > div { display: grid; align-content: start; gap: 8px; min-width: 0; }
.rr-sales-form-panel .rr-form-grid > div:has(> label) > label,
.rr-sales-field-row > div > label { color: var(--rr-text); font-size: 14px; font-weight: 600; }
.rr-sales-form-panel .rr-form-grid > div:has(> label) > :is(.rr-input, .rr-select),
.rr-sales-field-row > div > .rr-input { width: 100%; min-width: 0; }
.rr-sales-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.rr-admin-page:has(.rr-sales-plugin-header) .rr-form-grid > label:has(.rr-sales-field-note) { display: block; }
.rr-admin-page:has(.rr-sales-plugin-header) .rr-form-grid > label:has(.rr-sales-field-note) > .rr-input { display: block; width: 100%; margin-top: 8px; }
.rr-plugin-card-blue .rr-plugin-btn { background: #234f83 !important; border-color: #4779b8 !important; }
.rr-plugin-card-blue .rr-plugin-icon { background: #182a42 !important; border-color: #4779b8 !important; }

.rr-table-preview-button { display: block; margin-top: 6px; padding: 4px 8px; border: 1px solid #5c5c5c; border-radius: 6px; background: #252525; color: #eee; cursor: pointer; font-size: 12px; }
.rr-table-preview-button:hover { border-color: #a3a3a3; }
.rr-text-preview-overlay { position: fixed; z-index: 1600; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.82); }
.rr-text-preview-dialog { display: flex; flex-direction: column; width: min(100%, 780px); max-height: calc(100dvh - 32px); border: 1px solid #505050; border-radius: 12px; background: #171717; box-shadow: 0 22px 70px rgba(0,0,0,.55); }
.rr-text-preview-header { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid #3c3c3c; }
.rr-text-preview-header h2 { flex: 1; min-width: 0; margin: 0; font-size: 17px; }
.rr-text-preview-header .rr-modal-close-x { position: relative; top: auto; right: auto; flex: none; }
.rr-text-preview-body { min-height: 0; overflow: auto; padding: 18px; }
.rr-text-preview-content { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #eee; font: inherit; line-height: 1.55; }
.rr-text-preview-editor { width: 100%; min-height: min(60dvh, 560px); resize: vertical; }
.rr-text-preview-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 18px 18px; }
.rr-text-preview-actions:empty { display: none; }
.rr-ai-consultant .rr-table-scroll,
.rr-admin-page:has(.rr-sales-plugin-header) .rr-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; }
.rr-ai-consultant .rr-table { min-width: 680px; }
@media (max-width: 700px) {
  .rr-sales-field-row { grid-template-columns: minmax(0, 1fr); }
  .rr-ai-provider-fields, .rr-ai-fields, .rr-ai-key-help-grid { grid-template-columns: minmax(0, 1fr); }
  .rr-ai-consultant .rr-ai-section > .rr-rockstar-section-title { padding-right: 96px; padding-left: 12px; font-size: 15px !important; }
  .rr-sales-template-card .rr-accordion-head { margin: 12px; width: calc(100% - 24px); }
  .rr-sales-template-card .rr-accordion-body { padding: 12px; }
  .rr-text-preview-body { padding: 12px; }
}
@media (max-width: 950px) { .rr-ai-provider-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
  .rr-ai-fields, .rr-ai-provider-fields { grid-template-columns: minmax(0, 1fr); }
  .rr-ai-key-help-grid { grid-template-columns: minmax(0, 1fr); }
  .rr-ai-consultant .rr-ai-action-bar { align-items: stretch; }
  .rr-ai-action-bar > .rr-btn, .rr-ai-action-bar > form, .rr-ai-action-bar > form > .rr-btn { width: 100%; }
  .rr-ai-context-count { max-width: none; }
}
.rr-telegram-panel{margin-top:18px}
.rr-telegram-status{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid #333;border-radius:10px;background:#171717}
.rr-telegram-status strong{font-size:17px;color:#fff}
.rr-telegram-status span{color:#aaa;line-height:1.5}
.rr-telegram-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}
.rr-telegram-actions form{margin:0}
.rr-telegram-tabs{flex-wrap:wrap}
.rr-telegram-panel[hidden]{display:none!important}
.rr-telegram-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.rr-telegram-template-input{width:100%;min-height:115px;resize:vertical;line-height:1.5}
@media(max-width:800px){.rr-telegram-template-grid{grid-template-columns:1fr}}

/* FunPay account directory: silver engraved headings and compact status rows. */
.rr-rockstar-section-title.rr-fp-ornate-title,
.rr-core-page .rr-rockstar-section-title {
  isolation: isolate;
  min-height: 58px;
  margin-bottom: 18px !important;
  padding: 15px 94px;
  border: 1px solid #a7adb2;
  border-radius: 11px;
  background: linear-gradient(180deg, #4a4d50 0%, #303235 49%, #25272a 52%, #383a3d 100%);
  box-shadow: inset 0 0 0 2px #292b2e, inset 0 0 0 4px #888d92,
              inset 0 2px 9px rgba(255,255,255,.18), 0 7px 20px rgba(0,0,0,.28);
  color: #f3f4f5;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px !important;
  font-weight: 700;
  letter-spacing: .018em;
  text-shadow: 0 1px 2px #101112;
}
.rr-fp-ornate-title::before,
.rr-fp-ornate-title::after,
.rr-core-page .rr-rockstar-section-title::before,
.rr-core-page .rr-rockstar-section-title::after {
  content: '';
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 74px;
  background: none;
  opacity: .9;
  pointer-events: none;
}
.rr-fp-ornate-title::before,
.rr-core-page .rr-rockstar-section-title::before { left: 3px; }
.rr-fp-ornate-title::after,
.rr-core-page .rr-rockstar-section-title::after { right: 3px; transform: scaleX(-1); }
.rr-fp-directory-panel,
.rr-fp-directory-panel:hover {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.2);
}
.rr-fp-directory-panel .rr-accordion-head {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-bottom: 16px;
  transition: none;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.rr-fp-directory-panel .rr-accordion-head:hover,
.rr-fp-directory-panel .rr-accordion-head:focus-visible { background: transparent !important; box-shadow: none !important; outline: none !important; }
.rr-rockstar-section.rr-fp-directory-panel .rr-accordion-head .rr-rockstar-section-title {
  min-height: 68px;
  margin-bottom: 0 !important;
  padding-top: 11px;
  padding-bottom: 29px;
}
.rr-fp-directory-panel .rr-accordion-head > .rr-accordion-arrow {
  position: relative;
  top: auto;
  right: auto;
  align-self: center;
  width: 26px;
  height: 20px;
  margin-top: -27px;
  margin-bottom: 7px;
  z-index: 2;
  color: #f2f3f4;
  border: 0;
  background: transparent;
  transition: color .18s ease, transform .18s ease;
}
.rr-fp-directory-panel .rr-accordion-head > .rr-accordion-arrow:hover { color: #fff; transform: scale(1.15); }
.rr-fp-directory-panel .rr-accordion-head:focus-visible > .rr-accordion-arrow { outline: 2px solid #d3d6d9; outline-offset: 2px; }
.rr-fp-directory-panel.rr-accordion-open .rr-accordion-arrow { background: transparent; }
.rr-fp-directory-panel .rr-accordion-body {
  box-sizing: border-box;
  overflow: hidden;
  transition: height .26s cubic-bezier(.4,0,.2,1), padding-bottom .26s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.rr-fp-directory-panel .rr-accordion-body:not([hidden]):not(.rr-accordion-closing) {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.rr-fp-settings-scope { padding: 0; border: 0; border-radius: 0; background: transparent; }
.rr-fp-proxy-select .rr-select-trigger:has(.rr-select-trigger-text:empty) { justify-content: flex-end; }
.rr-fp-proxy-select .rr-select-trigger-text:empty { display: none; }
.rr-fp-accounts-page .rr-fp-account-selection { display: grid; gap: 8px; margin-right: auto; }
.rr-fp-accounts-page .rr-fp-account-selection [data-fp-selected-count] { margin: 0; }
.rr-fp-accounts-page .rr-fp-account-selection .rr-inline-check { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: 13px; cursor: pointer; }
.rr-fp-accounts-page .rr-fp-account-selection input { margin: 0; accent-color: #bfc5ca; }
.rr-fp-accounts-page .rr-input,
.rr-fp-accounts-page .rr-select-trigger { height: 48px; min-height: 48px; }
.rr-fp-accounts-page .rr-fp-account-toolbar .rr-btn { width: auto; min-height: 48px; padding: 0 17px; }
.rr-fp-select-field { pointer-events: none; }
.rr-fp-select-field .rr-select { pointer-events: auto; }
.rr-fp-accounts-table .rr-fp-account-state { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; color: #c8cdd0; white-space: nowrap; }
.rr-fp-accounts-table .rr-fp-account-state-ok { color: #66d49a; }
.rr-fp-accounts-table .rr-fp-account-state-bad { color: #ef8e95; }
.rr-fp-accounts-table .rr-fp-account-state .rr-funpay-dot-sm { width: 9px; height: 9px; animation: rr-fp-status-pulse 1.9s ease-in-out infinite; }
@keyframes rr-fp-status-pulse { 50% { opacity: .68; transform: scale(.83); } }
.rr-fp-accounts-table .rr-fp-proxy-stack { display: grid; gap: 4px; min-width: 0; font-variant-numeric: tabular-nums; }
.rr-fp-accounts-table .rr-fp-proxy-line { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: #e2e5e8; }
.rr-fp-accounts-table .rr-fp-proxy-line > span { overflow-wrap: anywhere; }
.rr-fp-accounts-table .rr-fp-proxy-line .rr-fp-copy-address { flex-basis: 29px; width: 29px; height: 29px; border-radius: 6px; }
.rr-fp-accounts-table .rr-fp-proxy-stack small { color: #9299a1; font-size: 12px; overflow-wrap: anywhere; }
.rr-fp-accounts-table .rr-fp-copy-field,
.rr-fp-accounts-table .rr-fp-proxy-name { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; max-width: 100%; }
.rr-fp-accounts-table .rr-fp-account-identity .rr-fp-copy-address,
.rr-fp-accounts-table .rr-fp-copy-field .rr-fp-copy-address { flex: 0 0 27px; width: 27px; height: 27px; border-radius: 6px; }
.rr-fp-accounts-table .rr-fp-copy-small,
.rr-fp-accounts-table .rr-fp-copy-field .rr-fp-copy-small { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 5px; }
.rr-fp-accounts-table .rr-fp-copy-small svg { width: 13px; height: 13px; }
.rr-fp-accounts-table .rr-fp-proxy-name { gap: 5px; }

.rr-fp-directory-panel .rr-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #3b4045;
  border-radius: 8px;
  background: #111315;
  box-shadow: none;
}
.rr-fp-directory-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.rr-fp-directory-table th,
.rr-fp-directory-table td { padding: 15px 17px !important; border-right-color: #303439 !important; border-bottom-color: #303439 !important; }
.rr-fp-directory-table thead th {
  background: linear-gradient(180deg, #25282b, #1b1e21) !important;
  color: #aeb3b9 !important;
  font-size: 13px;
  font-weight: 750 !important;
  letter-spacing: .035em;
}
.rr-fp-directory-table tbody tr { background: #111315; }
.rr-fp-directory-table tbody tr:nth-child(even) { background: #16191c; }
.rr-fp-directory-table thead th:first-child { border-top-left-radius: 7px; }
.rr-fp-directory-table thead th:last-child { border-top-right-radius: 7px; }
.rr-fp-directory-table tbody tr:last-child td:first-child { border-bottom-left-radius: 7px; }
.rr-fp-directory-table tbody tr:last-child td:last-child { border-bottom-right-radius: 7px; }
.rr-fp-directory-table tbody tr:hover td { background: #111315 !important; }
.rr-fp-directory-table tbody tr:nth-child(even):hover td { background: #16191c !important; }
.rr-fp-directory-table tbody tr,
.rr-fp-directory-table tbody tr td { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
.rr-fp-directory-table tbody tr:last-child td { border-bottom: 0; }
.rr-fp-directory-table strong { color: #f2f3f5; font-weight: 700; }
.rr-fp-directory-table .rr-fp-account-identity strong { overflow-wrap: anywhere; }
.rr-fp-status-pill,
.rr-fp-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e6e8eb;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.rr-fp-status-pill-ok { color: #66d49a; }
.rr-fp-status-pill-bad { color: #ef8e95; }
.rr-fp-status-pill-idle { color: #c7cbd0; }
.rr-fp-status-pill .rr-funpay-dot-sm { flex: 0 0 auto; box-shadow: 0 0 9px currentColor; }
.rr-fp-checked { color: #c9cdd1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rr-fp-address { display: inline-flex; align-items: center; gap: 11px; max-width: 100%; }
.rr-fp-address > span { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rr-fp-copy-address {
  display: inline-grid;
  place-items: center;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid #4e555b;
  border-radius: 8px;
  background: linear-gradient(180deg, #292d31, #1e2125);
  color: #cdd2d7;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rr-fp-copy-address svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rr-body .rr-fp-directory-table button.rr-fp-copy-address:is(:hover,:focus-visible,:active) { border-color: #f2f5f8; box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 0 12px rgba(235,244,255,.42); outline: none; }
.rr-fp-copy-address:active,
.rr-fp-copy-address.rr-fp-copy-done { transform: none; }

/* All admin tables show values as text; only controls retain their frames. */
.rr-admin-page table td :is(span, div, small, strong)[class*="badge"],
.rr-admin-page table td :is(span, div, small, strong)[class*="pill"],
.rr-admin-page table td :is(span, div, small, strong)[class*="chip"],
.rr-admin-page table td :is(span, div, small, strong)[class*="tag"] {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.rr-admin-page table td .rr-table-copy {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  margin-left: 7px;
  padding: 0;
  vertical-align: middle;
  border: 1px solid #4e555b;
  border-radius: 6px;
  background: #22262a;
  color: #cdd2d7;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rr-admin-page table td .rr-table-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rr-admin-page table td .rr-table-copy:is(:hover, :focus-visible) { border-color: #f2f5f8; box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 0 12px rgba(235,244,255,.42); outline: none; }

/* Account selection belongs to the action bar on every admin page. */
.rr-admin-page .rr-account-scope-toolbar,
.rr-admin-page .rr-configuration-actions.rr-account-scope-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #8d3942;
  border-radius: 10px;
  background: #3a1b21;
}
.rr-admin-page .rr-account-scope-toolbar > .rr-account-scope-control {
  display: grid;
  align-content: center;
  gap: 8px;
  flex: 0 1 320px;
  width: min(100%, 320px);
  max-width: 100%;
  min-width: 0;
  margin: 0 0 0 auto;
  padding: 0 0 0 18px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.3);
  border-radius: 0;
  background: transparent;
  color: var(--rr-text);
  font-size: 15px;
  font-weight: 700;
}
.rr-admin-page .rr-account-scope-control .rr-select { width: 100%; max-width: none; }
.rr-admin-page .rr-account-scope-control > .rr-account-scope-label { display: block; }
.rr-admin-page .rr-account-scope-toolbar:has(.rr-select-open) { z-index: 240; position: relative; }
@media (max-width: 700px) {
  .rr-admin-page .rr-account-scope-toolbar > .rr-account-scope-control { flex: 1 1 100%; width: 100%; margin: 2px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.3); }
}
#rr-fp-key-modal .rr-modal { max-width: 440px; }
#rr-fp-key-modal .rr-field-label { display: grid; gap: 10px; width: 100%; }
#rr-fp-key-modal .rr-input { width: 100%; }
#rr-fp-key-modal .rr-modal-actions { justify-content: center; margin-top: 18px; }
#rr-fp-key-modal .rr-modal-actions .rr-btn { min-width: 160px; }
#rr-fp-assign-modal .rr-modal { max-width: 440px; }
#rr-fp-assign-modal .rr-fp-select-field { width: 100%; gap: 10px; }
#rr-fp-assign-modal .rr-modal-actions { justify-content: center; margin-top: 18px; }
#rr-fp-assign-modal .rr-modal-actions .rr-btn { min-width: 160px; }
@media (max-width: 760px) {
  .rr-rockstar-section-title.rr-fp-ornate-title { min-height: 52px; padding: 13px 50px; font-size: 14px !important; }
  .rr-fp-ornate-title::before,.rr-fp-ornate-title::after { width: 42px; }
  .rr-rockstar-section.rr-fp-directory-panel .rr-accordion-head .rr-rockstar-section-title { min-height: 60px; padding-top: 9px; padding-bottom: 25px; }
  .rr-fp-directory-panel .rr-accordion-head > .rr-accordion-arrow { margin-top: -25px; margin-bottom: 6px; }
  .rr-fp-directory-panel .rr-table-scroll { border: 0; background: transparent; box-shadow: none; }
  .rr-fp-directory-panel .rr-fp-directory-table tr { border: 1px solid #34383d; border-radius: 8px; background: #15181b; }
  .rr-fp-directory-panel .rr-fp-directory-table tr:hover td { background: #15181b !important; }
  .rr-fp-directory-panel .rr-fp-directory-table td { border-bottom: 1px solid #303439; }
  .rr-fp-directory-panel .rr-fp-directory-table td:last-child { border-bottom: 0; }
  .rr-fp-accounts-table td[data-label="Прокси"] { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .rr-fp-copy-address,.rr-fp-copy-address svg { transition: none; }
  .rr-fp-accounts-table .rr-fp-account-state .rr-funpay-dot-sm { animation: none; }
}

/* Main panel pages share the FunPay account directory treatment; plugin pages opt out. */
.rr-core-page .rr-core-selection { display: grid; gap: 8px; margin-right: auto; }
.rr-core-page .rr-core-selection > small { color: var(--rr-text-muted); font-size: 13px; }
.rr-core-page .rr-core-selection > .rr-inline-check { width: fit-content; margin: 0; font-size: 13px; }
.rr-core-page .rr-users-page .rr-clean-fields > .rr-inline-check { max-width: 100%; min-width: 0; white-space: normal; }
.rr-core-page .rr-users-page .rr-clean-fields > .rr-inline-check > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.rr-core-page .rr-core-state { display: inline-flex; align-items: center; gap: 9px; color: #c8cdd0; white-space: nowrap; }
.rr-core-page .rr-core-state-ok { color: #66d49a; }
.rr-core-page .rr-core-state-off { color: #ef8e95; }
.rr-core-page .rr-core-table-actions { display: flex; align-items: center; gap: 14px; }
.rr-core-page .rr-core-table-actions form { margin: 0; }
.rr-core-page .rr-core-table-actions .rr-btn { width: auto; min-height: 38px; padding: 8px 15px; }
.rr-core-page .rr-stats-filters > .rr-rockstar-section-title,
.rr-core-page .rr-stats-filter-actions { grid-column: 1 / -1; }
.rr-core-page .rr-stats-filter-actions { margin: 2px 0 0; }
.rr-core-page .rr-stats-filter-submit { width: auto; min-height: 48px; margin: 0; padding: 0 20px; font-size: 14px; font-weight: 700; }
.rr-core-page .rr-stats-table-panel.rr-fp-directory-panel { padding: 0; }
.rr-core-page .rr-stats-table-panel .rr-accordion-body > .rr-stat-grid { margin: 0 0 18px; }
.rr-core-page .rr-panel .rr-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #3b4045; border-radius: 8px; background: #111315; box-shadow: none; }
.rr-core-page table.rr-table { border-collapse: separate; border-spacing: 0; background: #111315; }
.rr-core-page table.rr-table th,
.rr-core-page table.rr-table td { padding: 15px 17px; border-right-color: #303439; border-bottom-color: #303439; }
.rr-core-page table.rr-table thead th { background: linear-gradient(180deg, #25282b, #1b1e21); color: #aeb3b9; font-size: 13px; font-weight: 750; letter-spacing: .035em; }
.rr-core-page table.rr-table thead th:first-child { border-top-left-radius: 7px; }
.rr-core-page table.rr-table thead th:last-child { border-top-right-radius: 7px; }
.rr-core-page table.rr-table tbody tr { background: #111315; opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
.rr-core-page table.rr-table tbody tr:nth-child(even) { background: #16191c; }
.rr-core-page table.rr-table tbody tr td { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
.rr-core-page table.rr-table tbody tr:hover td { background: #111315 !important; }
.rr-core-page table.rr-table tbody tr:nth-child(even):hover td { background: #16191c !important; }
.rr-core-page table.rr-table tbody tr:last-child td { border-bottom: 0; }
.rr-core-page table.rr-table tbody tr:last-child td:first-child { border-bottom-left-radius: 7px; }
.rr-core-page table.rr-table tbody tr:last-child td:last-child { border-bottom-right-radius: 7px; }
.rr-core-page :is(input.rr-input:not([type="hidden"]),.rr-select-trigger) { min-height: 48px; }
.rr-core-page .rr-telegram-panel .rr-telegram-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; margin: 18px 0 0; padding: 14px 16px; border: 1px solid #8d3942; border-radius: 10px; background: #3a1b21; }
.rr-core-page .rr-telegram-panel .rr-telegram-actions form { margin: 0; }
.rr-core-page .rr-telegram-panel > .rr-telegram-actions,
.rr-core-page .rr-telegram-panel > form > .rr-telegram-actions { margin: 0 0 18px; }
.rr-core-page .rr-telegram-panel .rr-rockstar-option { margin-bottom: 12px; border-color: #373b3f; background: #151719; transition: border-color .18s ease, box-shadow .18s ease; }
.rr-core-page .rr-telegram-panel .rr-rockstar-option:is(:hover, :focus-within) { border-color: #f2f5f8; background: #151719; box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 0 13px rgba(235,244,255,.36); }
.rr-telegram-tabs button.rr-ai-tab:is(:hover, :focus-visible, :active) { color: var(--rr-text); border: 0; border-bottom: 2px solid var(--border-hover); background: transparent; box-shadow: none; outline: none; }
.rr-telegram-tabs button.rr-ai-tab:not(.active):not(:hover):focus { border-bottom-color: transparent; }
.rr-telegram-template-list { display: grid; gap: 16px; }
.rr-telegram-template-section { margin: 0; }
.rr-telegram-template-section .rr-accordion-body { display: grid; gap: 10px; }
.rr-telegram-template-section .rr-accordion-body[hidden] { display: none; }
.rr-telegram-template-section .rr-accordion-body > label { font-weight: 700; }
.rr-telegram-template-section .rr-accordion-body > small { color: var(--rr-text-muted); }
.rr-users-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #464b50; border-radius: 50%; object-fit: cover; }
.rr-users-avatar-initial { background: #25292d; color: #f5f5f5; font-size: 13px; font-weight: 700; }
.rr-users-table input[type="checkbox"]:disabled { opacity: .55; cursor: not-allowed; }
.rr-core-page .rr-fp-lots-list { border-color: #3b4045; border-radius: 8px; background: #111315; }
.rr-core-page .rr-fp-lot-columns { background: linear-gradient(180deg, #25282b, #1b1e21); color: #aeb3b9; }
.rr-core-page .rr-fp-lot-category-heading { border-color: #555b61; background: linear-gradient(180deg, #404347, #292c30); }
.rr-core-page .rr-fp-lot-row { background: #111315; border-color: #303439; }
.rr-core-page .rr-fp-lot-row:nth-child(even) { background: #16191c; }
.rr-core-page .rr-fp-lot-row:hover { transform: none; box-shadow: none; }
@media (max-width: 760px) {
  .rr-core-page .rr-rockstar-section-title { min-height: 52px; padding: 13px 50px; font-size: 14px !important; }
  .rr-core-page .rr-rockstar-section-title::before,
  .rr-core-page .rr-rockstar-section-title::after { width: 42px; }
  .rr-core-page .rr-panel .rr-table-scroll { border: 0; background: transparent; }
  .rr-core-page table.rr-table tr { border: 1px solid #34383d; border-radius: 8px; background: #15181b; }
  .rr-core-page table.rr-table tr:hover td { background: #15181b !important; }
  .rr-core-page table.rr-table td { border-bottom: 1px solid #303439; }
  .rr-core-page table.rr-table td:last-child { border-bottom: 0; }
  .rr-core-page .rr-stats-filters { grid-template-columns: minmax(0, 1fr); }
  .rr-core-page .rr-stats-filter-actions .rr-btn { width: 100%; }
}

/* The FunPay account directory is the shared visual language for every admin
   section, including plugin lists and forms. */
.rr-admin-page .rr-rockstar-section-title,
.rr-admin-page .rr-panel > h2,
.rr-admin-page .rr-panel > h3,
.rr-admin-page .rr-panel .rr-accordion-head .rr-accordion-title {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin: 0 0 18px !important;
  padding: 15px 94px !important;
  border: 1px solid #a7adb2 !important;
  border-radius: 11px !important;
  background: linear-gradient(180deg, #4a4d50 0%, #303235 49%, #25272a 52%, #383a3d 100%) !important;
  box-shadow: inset 0 0 0 2px #292b2e, inset 0 0 0 4px #888d92,
              inset 0 2px 9px rgba(255,255,255,.18), 0 7px 20px rgba(0,0,0,.28) !important;
  color: #f3f4f5 !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px !important;
  font-weight: 700;
  letter-spacing: .018em;
  text-align: center;
  text-shadow: 0 1px 2px #101112;
}
.rr-admin-page .rr-rockstar-section-title::before,
.rr-admin-page .rr-rockstar-section-title::after,
.rr-admin-page .rr-panel > h2::before,
.rr-admin-page .rr-panel > h2::after,
.rr-admin-page .rr-panel > h3::before,
.rr-admin-page .rr-panel > h3::after,
.rr-admin-page .rr-panel .rr-accordion-head .rr-accordion-title::before,
.rr-admin-page .rr-panel .rr-accordion-head .rr-accordion-title::after {
  content: '';
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 74px;
  background: none;
  opacity: .9;
  pointer-events: none;
}
.rr-admin-page .rr-rockstar-section-title::before,
.rr-admin-page .rr-panel > h2::before,
.rr-admin-page .rr-panel > h3::before,
.rr-admin-page .rr-panel .rr-accordion-head .rr-accordion-title::before { left: 3px; }
.rr-admin-page .rr-rockstar-section-title::after,
.rr-admin-page .rr-panel > h2::after,
.rr-admin-page .rr-panel > h3::after,
.rr-admin-page .rr-panel .rr-accordion-head .rr-accordion-title::after { right: 3px; transform: scaleX(-1); }

.rr-admin-page .rr-fp-directory-panel .rr-accordion-head {
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 24px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.rr-admin-page .rr-fp-directory-panel .rr-accordion-head > div { width: 100%; }
.rr-admin-page .rr-fp-directory-panel .rr-accordion-head .rr-accordion-desc { display: none; }
.rr-admin-page .rr-fp-directory-panel .rr-accordion-head > .rr-accordion-arrow {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  align-self: center;
  margin: -27px 0 7px !important;
}
.rr-admin-page .rr-fp-directory-panel .rr-accordion-head .rr-rockstar-section-title {
  min-height: 68px;
  margin: 0 !important;
  padding: 11px 94px 29px !important;
}
.rr-admin-page .rr-fp-directory-panel .rr-accordion-body[hidden] { display: none !important; }
.rr-admin-page .rr-fp-directory-panel .rr-accordion-body:not([hidden]) { transform: none !important; animation: none !important; }

.rr-admin-page .rr-panel .rr-table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #3b4045;
  border-radius: 8px;
  background: #111315;
  box-shadow: none;
}
.rr-admin-page table.rr-table { border-collapse: separate; border-spacing: 0; background: #111315; }
.rr-admin-page table.rr-table th,
.rr-admin-page table.rr-table td { padding: 15px 17px; border-right-color: #303439; border-bottom-color: #303439; }
.rr-admin-page table.rr-table thead th {
  background: linear-gradient(180deg, #25282b, #1b1e21);
  color: #aeb3b9;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .035em;
}
.rr-admin-page table.rr-table thead th:first-child { border-top-left-radius: 7px; }
.rr-admin-page table.rr-table thead th:last-child { border-top-right-radius: 7px; }
.rr-admin-page table.rr-table tbody tr,
.rr-admin-page table.rr-table tbody tr td { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
.rr-admin-page table.rr-table tbody tr { background: #111315; }
.rr-admin-page table.rr-table tbody tr:nth-child(even) { background: #16191c; }
.rr-admin-page table.rr-table tbody tr:hover td { background: #111315 !important; }
.rr-admin-page table.rr-table tbody tr:nth-child(even):hover td { background: #16191c !important; }
.rr-admin-page table.rr-table tbody tr:last-child td { border-bottom: 0; }
.rr-admin-page table.rr-table tbody tr:last-child td:first-child { border-bottom-left-radius: 7px; }
.rr-admin-page table.rr-table tbody tr:last-child td:last-child { border-bottom-right-radius: 7px; }

@media (max-width: 760px) {
  .rr-admin-page .rr-rockstar-section-title,
  .rr-admin-page .rr-panel > h2,
  .rr-admin-page .rr-panel > h3,
  .rr-admin-page .rr-panel .rr-accordion-head .rr-accordion-title {
    min-height: 52px;
    padding: 13px 50px !important;
    font-size: 14px !important;
  }
  .rr-admin-page .rr-fp-directory-panel .rr-accordion-head .rr-rockstar-section-title {
    min-height: 60px;
    padding: 9px 50px 25px !important;
  }
  .rr-admin-page .rr-rockstar-section-title::before,
  .rr-admin-page .rr-rockstar-section-title::after,
  .rr-admin-page .rr-panel > h2::before,
  .rr-admin-page .rr-panel > h2::after,
  .rr-admin-page .rr-panel > h3::before,
  .rr-admin-page .rr-panel > h3::after,
  .rr-admin-page .rr-panel .rr-accordion-head .rr-accordion-title::before,
  .rr-admin-page .rr-panel .rr-accordion-head .rr-accordion-title::after { width: 42px; }
  .rr-admin-page .rr-panel .rr-table-scroll { border: 0; background: transparent; }
  .rr-admin-page table.rr-table tr { border: 1px solid #34383d; border-radius: 8px; background: #15181b; }
  .rr-admin-page table.rr-table td { border-bottom: 1px solid #303439; }
  .rr-admin-page table.rr-table td:last-child { border-bottom: 0; }
}

.rr-roblox-register-place {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
  gap: 16px;
  align-items: end;
  padding: 16px 18px;
  border: 1px solid #34383d;
  border-radius: 9px;
  background: #151719;
}
.rr-roblox-register-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.rr-roblox-register-choice input { width: 18px; height: 18px; flex: none; accent-color: #27c879; }
.rr-roblox-register-choice label { cursor: pointer; pointer-events: auto !important; }
.rr-roblox-register-choice input:disabled + label { opacity: .55; cursor: not-allowed; }
.rr-roblox-register-price { display: grid; gap: 7px; }
.rr-roblox-register-price strong { font-size: 16px; font-weight: 600; }
@media (max-width: 620px) {
  .rr-roblox-register-place { grid-template-columns: 1fr; gap: 10px; }
}

/* Zeus dashboard theme — one background and one visual language for all admin pages. */
body.rr-body:has(.rr-admin-layout)::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,6,7,.48) 0%, rgba(5,6,7,.12) 58%, rgba(5,6,7,.2) 100%),
    url('../img/zeus-dashboard.png') right center / cover no-repeat,
    #070809;
}
.rr-admin-layout { position: relative; z-index: 1; }
.rr-sidebar {
  background: rgba(14,15,17,.94);
  border-right-color: rgba(210,216,224,.18);
  box-shadow: 8px 0 28px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}
.rr-sidebar-brand { border-bottom-color: rgba(210,216,224,.18); }
.rr-nav-link { background: rgba(29,30,32,.72); }
.rr-nav-link:hover, .rr-nav-link.active { background: rgba(40,42,45,.85); }
.rr-admin-topbar {
  background: rgba(12,13,15,.89);
  border-bottom-color: rgba(210,216,224,.18);
  backdrop-filter: blur(16px);
}
.rr-admin-page > .rr-title,
.rr-admin-page .rr-plugin-header-row .rr-title,
.rr-admin-page .rr-page-title-row .rr-title {
  color: #f7f7f8;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.rr-admin-page :is(.rr-panel, .rr-plugin-card, .rr-stat-card, .rr-funpay-card),
.rr-card {
  background: rgba(13,14,16,.79);
  border-color: rgba(205,211,219,.23);
  box-shadow: 0 12px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(9px);
}
.rr-admin-page .rr-panel:hover { box-shadow: 0 12px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.035); }
.rr-admin-page .rr-plugin-card:hover {
  background: rgba(17,18,20,.86);
  border-color: rgba(225,231,238,.42);
  box-shadow: 0 12px 34px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.07);
}
.rr-admin-page .rr-plugin-icon,
.rr-admin-page .rr-plugin-btn { background-color: rgba(29,30,32,.78); }
.rr-admin-page .rr-plugin-icon { border-color: rgba(214,221,230,.2); }
.rr-admin-page .rr-settings-feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rr-admin-page .rr-settings-feature-card { max-width: none; min-height: 276px; padding: 30px; }
.rr-admin-page .rr-settings-feature-card .rr-plugin-btn { min-height: 52px; margin-top: 10px; }
.rr-admin-page .rr-rockstar-section-title,
.rr-admin-page .rr-panel > h2,
.rr-admin-page .rr-panel > h3,
.rr-admin-page .rr-panel .rr-accordion-head .rr-accordion-title {
  border-color: rgba(208,218,230,.48) !important;
  background: linear-gradient(170deg, rgba(105,112,123,.54), rgba(37,40,47,.76) 44%, rgba(24,27,33,.88)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(255,255,255,.08), 0 9px 26px rgba(0,0,0,.3) !important;
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px !important;
  text-shadow: 0 2px 7px rgba(0,0,0,.75);
}
.rr-admin-page .rr-rockstar-section-title::before,
.rr-admin-page .rr-rockstar-section-title::after,
.rr-admin-page .rr-panel > h2::before,
.rr-admin-page .rr-panel > h2::after,
.rr-admin-page .rr-panel > h3::before,
.rr-admin-page .rr-panel > h3::after,
.rr-admin-page .rr-panel .rr-accordion-head .rr-accordion-title::before,
.rr-admin-page .rr-panel .rr-accordion-head .rr-accordion-title::after {
  display: block !important;
  opacity: .88;
  filter: drop-shadow(0 0 5px rgba(215,224,237,.22));
}
.rr-admin-page .rr-rockstar-actions,
.rr-admin-page .rr-account-scope-toolbar,
.rr-admin-page .rr-configuration-actions.rr-account-scope-toolbar {
  background: rgba(51,27,32,.84);
  border-color: rgba(183,93,105,.48);
}
.rr-admin-page .rr-panel .rr-table-scroll,
.rr-admin-page table.rr-table { background-color: rgba(13,15,17,.88); }

/* The page transition uses the supplied blSells and marble portrait artwork. */
.rr-route-transition {
  overflow: hidden;
  background: #050608;
  transition: opacity .34s cubic-bezier(.2,.75,.25,1), visibility 0s linear .34s;
}
.rr-route-transition::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/blsells-transition.png') center / cover no-repeat;
  transform: scale(1.045);
  opacity: .75;
  transition: transform .9s cubic-bezier(.2,.75,.25,1), opacity .45s ease;
}
.rr-route-transition-open { transition: opacity .34s cubic-bezier(.2,.75,.25,1); }
.rr-route-transition-open::before { transform: scale(1); opacity: 1; }
.rr-route-brand {
  display: none;
}
@media (max-width: 1080px) {
  .rr-admin-page .rr-settings-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .rr-admin-layout, .rr-content, .rr-admin-page { max-width: 100vw; min-width: 0; }
  body.rr-body:has(.rr-admin-layout)::before {
    background-position: center, 67% center, center;
    background-size: cover, auto 100%, cover;
  }
  .rr-admin-page .rr-settings-feature-list { grid-template-columns: minmax(0, 1fr); }
  .rr-admin-page .rr-settings-feature-card { width: 100%; max-width: 100%; min-width: 0; min-height: 230px; padding: 22px; }
  .rr-route-transition::before { background-position: 84% center; }
  .rr-route-brand {
    position: absolute;
    left: 29%;
    top: 49%;
    display: grid;
    transform: translate(-50%, -50%);
    gap: 8px;
    padding: 15px 18px;
    border: 1px solid rgba(221,228,238,.25);
    border-radius: 15px;
    background: rgba(9,11,15,.62);
    box-shadow: 0 15px 36px rgba(0,0,0,.4);
    backdrop-filter: blur(10px);
  }
  .rr-route-brand img { width: 52px; height: 52px; }
  .rr-route-brand strong { font-size: 18px; }
  .rr-route-transition-open .rr-route-brand { animation: rr-glass-logo-in .55s ease both; }
}
@media (prefers-reduced-motion: reduce) {
  .rr-route-transition, .rr-route-transition::before { transition-duration: .01ms; }
  .rr-route-transition-open .rr-route-brand { animation: none; opacity: 1; transform: translate(-50%, -50%); }
}

/* Greek marble and liquid-glass finish. The single border carries focus; the
   glow has no extra ring, so copy and action buttons never appear double-framed. */
body.rr-body {
  --button-hover-ring: 0 9px 28px rgba(0,0,0,.32), 0 0 17px rgba(205,222,245,.28);
  --glass-line: rgba(216,228,244,.3);
  --glass-light: rgba(235,243,255,.12);
  --interactive-raise: none;
  --interactive-raise-soft: none;
}
.rr-admin-page {
  animation: rr-glass-page-in .52s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes rr-glass-page-in {
  from { opacity: .16; }
  to { opacity: 1; }
}
.rr-admin-page :is(.rr-panel, .rr-plugin-card, .rr-stat-card, .rr-funpay-card),
.rr-card,
.rr-modal,
.rr-text-preview-dialog {
  background: linear-gradient(155deg, rgba(217,228,244,.11), rgba(27,31,39,.81) 15%, rgba(12,15,20,.94) 54%, rgba(82,91,106,.12)), rgba(11,13,17,.88);
  border-color: var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 18px 42px rgba(0,0,0,.3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.rr-admin-page :is(.rr-panel, .rr-plugin-card, .rr-stat-card, .rr-funpay-card) {
  transition: border-color .38s ease, background-color .38s ease, box-shadow .38s ease, transform .38s cubic-bezier(.2,.75,.25,1);
}
.rr-admin-page .rr-panel:hover {
  border-color: rgba(222,235,255,.43);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.19), 0 20px 46px rgba(0,0,0,.31);
}
.rr-admin-page .rr-plugin-card:hover {
  transform: none;
  border-color: rgba(230,239,255,.62);
  background: linear-gradient(150deg, rgba(229,238,252,.16), rgba(20,25,32,.78) 26%, rgba(13,16,22,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 22px 48px rgba(0,0,0,.42), 0 0 26px rgba(205,221,244,.1);
}
.rr-admin-page :is(.rr-template-card, .rr-plugin-icon, .rr-profile-action):hover {
  transform: none !important;
}
.rr-admin-page .rr-plugin-card::before {
  background: linear-gradient(115deg, transparent 18%, rgba(232,243,255,.085) 47%, transparent 73%);
  transform: translateX(-22%);
  transition: transform .6s cubic-bezier(.2,.75,.25,1), opacity .6s ease;
}
.rr-admin-page .rr-plugin-card:hover::before { opacity: 1; transform: translateX(0); }
.rr-admin-page .rr-rockstar-section-title,
.rr-admin-page .rr-panel > h2,
.rr-admin-page .rr-panel > h3,
.rr-admin-page .rr-panel .rr-accordion-head .rr-accordion-title {
  transition: border-color .4s ease, box-shadow .4s ease, background-color .4s ease;
}
.rr-admin-page :is(.rr-rockstar-section-title, .rr-panel > h2, .rr-panel > h3, .rr-panel .rr-accordion-head .rr-accordion-title)::before,
.rr-admin-page :is(.rr-rockstar-section-title, .rr-panel > h2, .rr-panel > h3, .rr-panel .rr-accordion-head .rr-accordion-title)::after {
  background-image: none;
}
.rr-admin-page .rr-panel .rr-table-scroll,
.rr-admin-page table.rr-table {
  background: rgba(12,15,20,.93);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.rr-admin-page table.rr-table thead th {
  background: linear-gradient(180deg, rgba(96,108,124,.3), rgba(25,29,36,.8));
}
.rr-admin-page table.rr-table tbody tr td,
.rr-fp-directory-table tbody tr td {
  transition: background-color .32s ease, border-color .32s ease !important;
}
.rr-admin-page table.rr-table tbody tr:hover td,
.rr-admin-page table.rr-table tbody tr:nth-child(even):hover td {
  background: rgba(205,222,245,.07) !important;
}
.rr-body :is(button:not(.rr-scroll-top), input[type="button"], input[type="submit"], input[type="reset"], .rr-btn, .rr-nav-link, .rr-topbar-action, .rr-back-link, .rr-settings-back) {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .36s ease, transform .36s cubic-bezier(.2,.75,.25,1), opacity .3s ease;
}
.rr-body :is(button:not(.rr-scroll-top), input[type="button"], input[type="submit"], input[type="reset"], .rr-btn, .rr-nav-link, .rr-topbar-action, .rr-back-link, .rr-settings-back):not(:disabled):hover {
  transform: none !important;
  border-color: rgba(230,239,255,.82);
  box-shadow: var(--button-hover-ring);
}
.rr-body :is(button:not(.rr-scroll-top), input[type="button"], input[type="submit"], input[type="reset"], .rr-btn, .rr-nav-link, .rr-topbar-action, .rr-back-link, .rr-settings-back):not(:disabled):active {
  transform: translateY(0) scale(.985) !important;
}
.rr-body :is(.rr-accordion-head, .rr-fp-copy-address, .rr-table-copy, .rr-inline-copy-button):is(:hover,:focus-visible,:active) {
  transform: none !important;
}
.rr-body :is(button, input[type="button"], input[type="submit"], input[type="reset"], .rr-btn, .rr-nav-link, .rr-topbar-action, .rr-back-link, .rr-settings-back):focus-visible {
  outline: none !important;
  border-color: rgba(244,248,255,.95) !important;
  box-shadow: 0 0 19px rgba(215,231,255,.33) !important;
}
.rr-admin-page :is(.rr-btn, .rr-plugin-btn, .rr-topbar-action, .rr-fp-copy-address, .rr-table-copy) {
  background-image: linear-gradient(145deg, rgba(248,252,255,.12), rgba(245,250,255,.025) 38%, rgba(10,13,19,.12));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.rr-body .rr-admin-page button.rr-fp-copy-address:is(:hover,:focus-visible,:active),
.rr-body .rr-admin-page button.rr-table-copy:is(:hover,:focus-visible,:active),
.rr-body .rr-admin-page button.rr-inline-copy-button:is(:hover,:focus-visible,:active) {
  outline: none !important;
  border-color: rgba(239,246,255,.95) !important;
  box-shadow: 0 0 16px rgba(213,230,255,.35) !important;
}
.rr-body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select, .rr-select-trigger) {
  transition: border-color .3s ease, box-shadow .35s ease, background-color .35s ease;
}
.rr-admin-page :is(.rr-input, .rr-select-trigger, textarea, select:not([multiple])) {
  background-image: linear-gradient(150deg, rgba(231,241,255,.085), rgba(27,32,42,.12) 38%, rgba(5,8,12,.24));
  border-color: rgba(209,222,239,.2);
}
.rr-admin-page :is(.rr-input, .rr-select-trigger, textarea, select:not([multiple])):hover {
  border-color: rgba(222,235,253,.53);
}
.rr-admin-page :is(.rr-ai-tab, .rr-plugin-tab, .rr-topbar-action),
.rr-sidebar .rr-nav-link {
  transition: color .3s ease, background-color .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2,.75,.25,1);
}
.rr-admin-page .rr-rise-in { animation: rr-glass-item-in .62s cubic-bezier(.2,.75,.25,1) both; }
@keyframes rr-glass-item-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes rr-glass-logo-in {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
/* Sections below the viewport materialize as they enter it. JavaScript adds
   the pending state only after measuring them, so content stays visible if JS
   is unavailable and the first screen never flashes empty. */
.rr-admin-page [data-rr-scroll-reveal] {
  transition: opacity .48s cubic-bezier(.18,.78,.26,1),
              transform .48s cubic-bezier(.18,.78,.26,1),
              border-color .38s ease, box-shadow .38s ease !important;
}
.rr-admin-page [data-rr-scroll-reveal="pending"] {
  opacity: 0 !important;
  transform: translateY(14px);
}
.rr-admin-page [data-rr-scroll-reveal="visible"] {
  opacity: 1 !important;
  transform: none;
}
.rr-admin-page [data-rr-scroll-reveal="done"] {
  opacity: 1 !important;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rr-admin-page, .rr-admin-page .rr-rise-in { animation: none !important; opacity: 1 !important; }
  .rr-admin-page [data-rr-scroll-reveal] { opacity: 1 !important; transform: none; transition-duration: .01ms !important; }
  .rr-body :is(button, .rr-btn, .rr-nav-link, .rr-topbar-action, .rr-back-link, .rr-settings-back),
  .rr-admin-page :is(.rr-panel, .rr-plugin-card, .rr-stat-card, .rr-funpay-card),
  .rr-admin-page table.rr-table tbody tr td { transition-duration: .01ms !important; transform: none !important; }
}

/* Marble glass headings and action trays, shared by the panel and plugins. */
.rr-admin-page :is(.rr-rockstar-section-title, .rr-panel > h2, .rr-panel > h3, .rr-panel .rr-accordion-head .rr-accordion-title) {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  padding: 20px 152px !important;
  border: 1px solid rgba(235,239,245,.82) !important;
  border-radius: 29px !important;
  background:
    radial-gradient(ellipse 60% 44% at 26% -8%, rgba(242,247,255,.2), transparent 76%),
    radial-gradient(ellipse 54% 50% at 90% 120%, rgba(204,215,232,.15), transparent 78%),
    linear-gradient(160deg, rgba(72,77,85,.7), rgba(10,12,16,.87) 38%, rgba(17,19,24,.88) 62%, rgba(84,90,100,.53)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(255,255,255,.16),
              0 0 0 1px rgba(220,230,245,.17), 0 0 19px rgba(210,225,245,.22),
              0 16px 30px rgba(0,0,0,.37) !important;
  color: #fff !important;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 25px !important;
  font-weight: 750;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.85);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.rr-admin-page :is(.rr-rockstar-section-title, .rr-panel > h2, .rr-panel > h3, .rr-panel .rr-accordion-head .rr-accordion-title)::before,
.rr-admin-page :is(.rr-rockstar-section-title, .rr-panel > h2, .rr-panel > h3, .rr-panel .rr-accordion-head .rr-accordion-title)::after {
  content: '';
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 160px;
  background: url('../img/marble-transition.png') right 18% / auto 270px no-repeat;
  opacity: .9;
  filter: grayscale(1) contrast(1.2) brightness(2.05);
  pointer-events: none;
}
.rr-admin-page :is(.rr-rockstar-section-title, .rr-panel > h2, .rr-panel > h3, .rr-panel .rr-accordion-head .rr-accordion-title)::before {
  left: 0;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 72%);
  mask-image: linear-gradient(to right, transparent, #000 72%);
}
.rr-admin-page :is(.rr-rockstar-section-title, .rr-panel > h2, .rr-panel > h3, .rr-panel .rr-accordion-head .rr-accordion-title)::after {
  right: 0;
  transform: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 72%);
  mask-image: linear-gradient(to right, transparent, #000 72%);
}
.rr-admin-page .rr-fp-directory-panel .rr-accordion-head .rr-rockstar-section-title {
  min-height: 88px;
  padding: 20px 152px 35px !important;
}

.rr-admin-page :is(.rr-rockstar-actions, .rr-template-actions-panel, .rr-configuration-actions, .rr-bulk-active, .rr-fp-bulk-panel, .rr-telegram-actions, .rr-form-grid > .rr-form-actions, .rr-form-grid > .rr-form-toolbar) {
  min-height: 92px;
  padding: 18px 26px;
  border: 1px solid rgba(229,235,244,.8) !important;
  border-radius: 27px !important;
  background:
    radial-gradient(ellipse 65% 55% at 22% -8%, rgba(237,245,255,.18), transparent 77%),
    radial-gradient(ellipse 56% 59% at 85% 113%, rgba(210,220,236,.21), transparent 77%),
    linear-gradient(160deg, rgba(68,73,81,.65), rgba(11,13,17,.89) 43%, rgba(19,21,27,.85) 64%, rgba(77,82,90,.55)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44), inset 0 -1px 0 rgba(255,255,255,.19),
              0 0 0 1px rgba(202,215,233,.1), 0 0 21px rgba(211,226,248,.17),
              0 14px 28px rgba(0,0,0,.34) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.rr-admin-page .rr-template-actions-panel .rr-rockstar-actions {
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}
.rr-admin-page :is(.rr-rockstar-actions, .rr-template-actions-panel, .rr-configuration-actions, .rr-bulk-active, .rr-fp-bulk-panel, .rr-telegram-actions, .rr-form-grid > .rr-form-actions, .rr-form-grid > .rr-form-toolbar) .rr-btn:not(.rr-btn-danger) {
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(215,224,236,.58);
  border-radius: 13px;
  background: linear-gradient(155deg, rgba(69,75,83,.55), rgba(12,14,18,.92) 47%, rgba(24,27,33,.89)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.27), 0 0 15px rgba(220,234,252,.18), 0 7px 18px rgba(0,0,0,.3);
  color: #fff;
}
.rr-admin-page :is(.rr-rockstar-actions, .rr-template-actions-panel, .rr-configuration-actions, .rr-bulk-active, .rr-fp-bulk-panel, .rr-telegram-actions, .rr-form-grid > .rr-form-actions, .rr-form-grid > .rr-form-toolbar) .rr-btn:not(.rr-btn-danger):not(:disabled):hover {
  border-color: rgba(246,249,255,.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 19px rgba(226,237,255,.3), 0 9px 21px rgba(0,0,0,.35);
}
.rr-admin-page .rr-account-scope-toolbar > .rr-account-scope-control { border-left-color: rgba(235,241,249,.43); }
.rr-admin-page .rr-plugin-list-filter.rr-account-scope-control {
  margin: 0 0 0 auto;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
}
.rr-admin-page .rr-plugin-list-filter.rr-account-scope-control label { width: 100%; max-width: none; }
.rr-admin-page .rr-bulk-toolbar:has(.rr-select-open) { position: relative; z-index: 300; }
.rr-admin-page .rr-plugin-list-filter.rr-account-filter-only {
  justify-content: flex-end;
  width: 100%;
}
.rr-admin-page .rr-plugin-list-filter.rr-account-filter-only label { width: min(100%, 340px); }
@media (max-width: 760px) {
  .rr-admin-page :is(.rr-rockstar-section-title, .rr-panel > h2, .rr-panel > h3, .rr-panel .rr-accordion-head .rr-accordion-title) {
    min-height: 65px;
    padding: 12px 69px !important;
    border-radius: 20px !important;
    font-size: 16px !important;
  }
  .rr-admin-page :is(.rr-rockstar-section-title, .rr-panel > h2, .rr-panel > h3, .rr-panel .rr-accordion-head .rr-accordion-title)::before,
  .rr-admin-page :is(.rr-rockstar-section-title, .rr-panel > h2, .rr-panel > h3, .rr-panel .rr-accordion-head .rr-accordion-title)::after {
    width: 72px;
    background-size: auto 190px;
    opacity: .7;
  }
  .rr-admin-page .rr-fp-directory-panel .rr-accordion-head .rr-rockstar-section-title {
    min-height: 70px;
    padding: 10px 69px 27px !important;
  }
  .rr-admin-page :is(.rr-rockstar-actions, .rr-template-actions-panel, .rr-configuration-actions, .rr-bulk-active, .rr-fp-bulk-panel, .rr-telegram-actions, .rr-form-grid > .rr-form-actions, .rr-form-grid > .rr-form-toolbar) {
    min-height: 76px;
    padding: 14px;
    border-radius: 20px !important;
  }
  .rr-admin-page .rr-bulk-active.rr-account-scope-toolbar > .rr-plugin-list-filter {
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(235,241,249,.43);
  }
}

/* Review templates: compact controls, fixed editor size and a light dialog transition. */
.rr-review-template-card .rr-review-star-toggle {
  flex: 0 0 48px;
  width: 48px !important;
  height: 27px !important;
  margin: 0 10px 0 0;
  border: 1px solid rgba(200, 211, 225, .48);
  border-radius: 999px;
  background: linear-gradient(155deg, #343b45, #11151b) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .13) !important;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.rr-review-template-card .rr-review-star-toggle::after {
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: linear-gradient(145deg, #fff, #bbc5d2);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .75);
  transition: transform .22s cubic-bezier(.2, .7, .2, 1), background .22s ease;
}
.rr-review-template-card .rr-review-star-toggle:checked {
  border-color: #65d79b !important;
  background: linear-gradient(155deg, #39d783, #148a51) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .26), 0 0 12px rgba(44, 209, 117, .27) !important;
}
.rr-review-template-card .rr-review-star-toggle:checked::after {
  transform: translateX(21px);
  background: linear-gradient(145deg, #fff, #e3f8eb);
}
.rr-review-template-card .rr-review-star-toggle:focus-visible {
  outline: 2px solid #d9f9e7;
  outline-offset: 3px;
}

textarea.rr-input.rr-template-textarea,
textarea.rr-input.rr-text-preview-editor {
  resize: none !important;
}
textarea.rr-input.rr-text-preview-editor {
  min-height: min(55vh, 540px);
  max-height: calc(100dvh - 170px);
}
html,
body.rr-body,
.rr-review-template-card textarea.rr-input {
  scrollbar-color: #778491 #101419;
}
html::-webkit-scrollbar-thumb,
body.rr-body::-webkit-scrollbar-thumb,
.rr-review-template-card textarea.rr-input::-webkit-scrollbar-thumb {
  border: 2px solid #101419;
  border-radius: 999px;
  background: linear-gradient(160deg, #a9b3c1, #555f6e);
}
html::-webkit-scrollbar-thumb:hover,
body.rr-body::-webkit-scrollbar-thumb:hover,
.rr-review-template-card textarea.rr-input::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(160deg, #d5deeb, #768392);
}
.rr-admin-page .rr-template-expand-btn {
  width: 34px;
  min-width: 34px;
  min-height: 30px;
  height: 30px;
  margin: 5px auto 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #adb9c8;
}
.rr-admin-page .rr-template-expand-btn [data-expand-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.rr-admin-page .rr-template-expand-btn .rr-expand-chevron {
  width: 10px;
  height: 10px;
}
.rr-body .rr-admin-page .rr-template-expand-btn:not(:disabled):is(:hover, :focus-visible, :active) {
  border: 0;
  background: rgba(223, 235, 253, .08);
  box-shadow: none !important;
  color: #fff;
}

.rr-text-preview-overlay {
  animation: rr-text-preview-backdrop-in .19s ease-out both;
}
.rr-text-preview-dialog {
  animation: rr-text-preview-dialog-in .19s cubic-bezier(.2, .75, .25, 1) both;
}
.rr-text-preview-overlay.rr-text-preview-closing {
  animation: rr-text-preview-backdrop-out .18s ease-in both;
  pointer-events: none;
}
.rr-text-preview-closing .rr-text-preview-dialog {
  animation: rr-text-preview-dialog-out .18s ease-in both;
}
@keyframes rr-text-preview-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes rr-text-preview-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes rr-text-preview-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rr-text-preview-dialog-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(5px) scale(.985); }
}
@media (prefers-reduced-motion: reduce) {
  .rr-text-preview-overlay,
  .rr-text-preview-dialog,
  .rr-text-preview-overlay.rr-text-preview-closing,
  .rr-text-preview-closing .rr-text-preview-dialog { animation: none; }
  .rr-review-template-card .rr-review-star-toggle,
  .rr-review-template-card .rr-review-star-toggle::after { transition: none; }
}

/* Compact navigation for phones and touch tablets. */
.rr-mobile-menu-toggle,
.rr-mobile-brand,
.rr-sidebar-close,
.rr-sidebar-backdrop { display: none; }
.rr-body :is(button, a, input, select, textarea, [role="button"], [tabindex]) {
  -webkit-tap-highlight-color: transparent;
}
.rr-body :is(button, a, .rr-select-trigger) { touch-action: manipulation; }

@media (max-width: 1100px), (pointer: coarse) and (max-width: 1366px) {
  .rr-body.rr-mobile-nav-open { overflow: hidden; }
  .rr-body .rr-admin-layout { display: block; }
  .rr-body .rr-content {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    margin-left: 0;
    padding: 20px;
  }
  .rr-body .rr-admin-topbar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    z-index: 300;
    justify-content: flex-start;
    gap: 10px;
    min-height: 62px;
    margin: -20px -20px 24px;
    padding: 8px 16px;
    background: #11151a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .rr-body .rr-mobile-menu-toggle {
    display: flex;
    flex: 0 0 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(209, 221, 239, .3);
    border-radius: 10px;
    background: rgba(32, 37, 45, .75);
    color: #fff;
    cursor: pointer;
  }
  .rr-mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .rr-body .rr-mobile-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    min-width: 0;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    white-space: nowrap;
  }
  .rr-mobile-brand img { width: 31px; height: 31px; border-radius: 7px; object-fit: cover; }
  .rr-body .rr-topbar-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: auto;
    min-width: 0;
    margin-left: auto;
  }
  .rr-body .rr-topbar-settings { margin-right: 0; }
  .rr-body .rr-topbar-actions > :is(.rr-topbar-settings, .rr-notification-wrap, .rr-language-wrap, a.rr-topbar-action, button.rr-topbar-action:last-child),
  .rr-body .rr-topbar-actions .rr-language-toggle {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
  }
  .rr-body .rr-topbar-actions .rr-topbar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid rgba(209, 221, 239, .3);
    border-radius: 10px;
    background: rgba(32, 37, 45, .75);
  }
  .rr-body .rr-topbar-actions > .rr-notification-wrap > .rr-topbar-action { width: 100%; }
  .rr-body .rr-topbar-actions > .rr-notification-wrap .rr-notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
  }
  .rr-body .rr-topbar-actions > .rr-notification-wrap .rr-notification-panel {
    position: fixed;
    top: 68px;
    left: auto;
    right: 12px;
    width: min(350px, calc(100vw - 24px));
    max-height: calc(100dvh - 82px);
  }
  .rr-body .rr-topbar-actions > .rr-notification-wrap .rr-notification-panel::before { display: none; }
  .rr-body .rr-topbar-label,
  .rr-body .rr-language-toggle [data-language-current],
  .rr-body .rr-language-chevron { display: none; }
  .rr-body .rr-topbar-icon { width: 19px; height: 19px; }
  .rr-body .rr-language-globe { font-size: 22px; }
  .rr-body .rr-topbar-profile-avatar { width: 27px; height: 27px; }
  .rr-body .rr-language-menu { left: auto; right: 0; }

  .rr-body .rr-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 620;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: min(300px, calc(100vw - 52px));
    height: 100dvh;
    padding: 0 12px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid rgba(214, 225, 239, .26);
    border-bottom: 0;
    background: #111418;
    box-shadow: 14px 0 36px rgba(0, 0, 0, .38);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s cubic-bezier(.2, .75, .25, 1), visibility .25s;
  }
  .rr-body.rr-mobile-nav-open .rr-sidebar {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .rr-body .rr-sidebar-top {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: 100%;
    min-height: 64px;
    margin: 0 0 12px;
    padding: 0 3px;
    border-bottom: 1px solid rgba(214, 225, 239, .2);
  }
  .rr-body .rr-sidebar-top .rr-sidebar-brand {
    display: flex;
    flex: 1 1 auto;
    min-height: 56px;
    margin: 0;
    padding: 4px;
  }
  .rr-body .rr-sidebar .rr-nav-link {
    flex: 0 0 auto;
    width: 100%;
    min-height: 46px;
    margin: 0 0 5px;
    padding: 10px 13px;
    white-space: normal;
  }
  .rr-body .rr-sidebar-close {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(209, 221, 239, .3);
    border-radius: 9px;
    background: #222831;
    color: #fff;
    font: inherit;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
  }
  .rr-body .rr-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 610;
    display: block;
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: default;
    transition: opacity .25s ease, visibility .25s;
  }
  .rr-body.rr-mobile-nav-open .rr-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .rr-body .rr-sidebar-backdrop:is(:hover, :focus-visible, :active) {
    border: 0;
    box-shadow: none !important;
    transform: none !important;
  }
  .rr-body .rr-sidebar-top .rr-notification-wrap { width: 36px; }
  .rr-body .rr-sidebar-top .rr-notification-panel {
    position: fixed;
    top: 70px;
    left: 12px;
    right: auto;
    width: min(350px, calc(100vw - 24px));
    max-height: calc(100dvh - 82px);
  }
  .rr-body .rr-admin-page,
  .rr-body .rr-admin-page :is(.rr-panel, .rr-card, .rr-plugin-card) { min-width: 0; max-width: 100%; }
  .rr-body .rr-admin-page .rr-table-scroll { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 520px) {
  .rr-body .rr-content { padding: 12px; }
  .rr-body .rr-admin-topbar { gap: 6px; min-height: 56px; margin: -12px -12px 18px; padding: 7px 10px; }
  .rr-body .rr-mobile-menu-toggle { flex-basis: 37px; width: 37px; height: 37px; }
  .rr-body .rr-mobile-brand { gap: 6px; font-size: 16px; }
  .rr-mobile-brand img { width: 27px; height: 27px; }
  .rr-body .rr-topbar-actions { gap: 4px; }
  .rr-body .rr-topbar-actions > :is(.rr-topbar-settings, .rr-notification-wrap, .rr-language-wrap, a.rr-topbar-action, button.rr-topbar-action:last-child),
  .rr-body .rr-topbar-actions .rr-language-toggle {
    flex-basis: 36px;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
  }
  .rr-body .rr-topbar-actions .rr-topbar-action { height: 36px; min-height: 36px; }
  .rr-body .rr-topbar-profile-avatar { width: 24px; height: 24px; }
}
@media (max-width: 360px) {
  .rr-body .rr-admin-topbar { gap: 4px; padding-inline: 7px; }
  .rr-body .rr-mobile-brand { gap: 4px; font-size: 14px; }
  .rr-mobile-brand img { width: 24px; height: 24px; }
  .rr-body .rr-topbar-actions { gap: 3px; }
  .rr-body .rr-topbar-actions > :is(.rr-topbar-settings, .rr-notification-wrap, .rr-language-wrap, a.rr-topbar-action, button.rr-topbar-action:last-child),
  .rr-body .rr-topbar-actions .rr-language-toggle {
    flex-basis: 33px;
    width: 33px;
    min-width: 33px;
    max-width: 33px;
  }
  .rr-body .rr-topbar-actions .rr-topbar-action { height: 34px; min-height: 34px; }
  .rr-body .rr-topbar-settings { display: none !important; }
}
@media (max-width: 700px) {
  .rr-body .rr-admin-page .rr-plugin-header-row,
  .rr-body .rr-admin-page .rr-tabbar { position: static; top: auto; }
  .rr-body .rr-scroll-top { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rr-body .rr-sidebar,
  .rr-body .rr-sidebar-backdrop { transition: none; }
}
