.player-crm {
  box-sizing: border-box;
  width: min(1120px, calc(100vw - 24px));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 10px 0 24px;
  color: var(--text);
}
.player-crm__hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.45));
}
.player-crm__hero .player-crm__hero-back {
  position: static !important;
  inset: auto !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  transform-origin: center !important;
  font-size: 22px !important;
}
[data-theme="light"] .player-crm__hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.76));
}
.player-crm__eyebrow {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
}
.player-crm__title {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.05;
}
.player-crm__subtitle {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}
.player-crm__hero-tools,
.player-crm__broadcast-actions,
.player-crm__tabs,
.player-crm__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.player-crm__hero-tools {
  align-items: end;
  justify-content: flex-end;
}
.player-crm__hero-tools.player-crm__period-toolbar {
  justify-content: flex-start;
  margin: 0 0 8px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.18)),
    rgba(15, 23, 42, 0.18);
}
.player-crm__tracking-notice:empty {
  display: none;
}
.player-crm__tracking-notice .player-crm__notice {
  margin: 10px 0 0;
}
[data-theme="light"] .player-crm__hero-tools.player-crm__period-toolbar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.66)),
    rgba(255, 255, 255, 0.7);
}
.player-crm__period,
.player-crm__form-grid label,
.player-crm__message-label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.player-crm__period--main {
  width: 100%;
  min-width: 0;
}
.player-crm__period-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}
.player-crm__period-tabs button {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: var(--text-muted);
  font: inherit;
  font-size: clamp(8px, 1.45vw, 11px);
  font-weight: 900;
  cursor: pointer;
}
.player-crm__period-tabs button:hover,
.player-crm__period-tabs button:focus-visible {
  border-color: rgba(248, 217, 138, 0.62);
  color: var(--text);
  outline: none;
}
.player-crm__period-tabs .player-crm__period-tab--active {
  border-color: rgba(255, 231, 160, 0.96);
  background: linear-gradient(180deg, #f8d98a, #c89642);
  color: #0b1220;
  box-shadow: 0 5px 14px rgba(199, 163, 106, 0.22);
}
[data-theme="light"] .player-crm__period-tabs button {
  background: rgba(255, 255, 255, 0.86);
}
[data-theme="light"] .player-crm__period-tabs .player-crm__period-tab--active {
  background: linear-gradient(180deg, #f8d98a, #d3a24f);
  color: #0b1220;
}
.player-crm__period-range {
  grid-column: 1;
  grid-row: 2;
  color: #aebdd0;
  font-size: clamp(11px, 2.8vw, 15px);
  font-weight: 800;
  line-height: 1.25;
}
.player-crm__selected-period {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  column-gap: 12px;
  gap: 3px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid rgba(199, 163, 106, 0.42);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(199, 163, 106, 0.14), rgba(15, 23, 42, 0.28)),
    rgba(7, 12, 22, 0.72);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 235, 184, 0.08);
}
.player-crm__selected-period strong {
  grid-column: 1;
  grid-row: 1;
  color: #f7d88f;
  font-size: clamp(12px, 3.2vw, 17px);
  font-weight: 950;
}
.player-crm__selected-period-refresh {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid rgba(130, 207, 97, 0.48);
  border-radius: 999px;
  background: rgba(94, 167, 61, 0.14);
  color: #a9e68f;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.player-crm__selected-period-refresh:hover,
.player-crm__selected-period-refresh:focus-visible {
  border-color: rgba(154, 230, 120, 0.82);
  background: rgba(94, 167, 61, 0.24);
  color: #d8ffc7;
  outline: none;
}
.player-crm__date-field {
  display: none;
  min-width: 142px;
}
.player-crm__date-field--visible {
  display: grid;
}
.player-crm__chart-period-row {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.44), rgba(2, 6, 23, 0.14)),
    rgba(2, 6, 23, 0.18);
}
.player-crm__chart-period-row .player-crm__period {
  min-width: 170px;
  flex: 1 1 210px;
}
.player-crm__chart-date-field {
  display: none;
}
.player-crm__chart-date-field--visible {
  display: grid;
}
.player-crm select,
.player-crm input,
.player-crm textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.68);
  color: var(--text);
  font: inherit;
}
[data-theme="light"] .player-crm select,
[data-theme="light"] .player-crm input,
[data-theme="light"] .player-crm textarea {
  background: rgba(255, 255, 255, 0.92);
}
.player-crm select,
.player-crm input {
  min-height: 36px;
  padding: 0 11px;
}
.player-crm input[type="date"] {
  color-scheme: dark;
}
[data-theme="light"] .player-crm input[type="date"] {
  color-scheme: light;
}
.player-crm__date-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: stretch;
}
.player-crm__date-control input {
  border-radius: 8px 0 0 8px;
}
.player-crm__date-picker-btn {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
  cursor: pointer;
}
[data-theme="light"] .player-crm__date-picker-btn {
  background: rgba(255, 255, 255, 0.96);
}
.player-crm__date-picker-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.player-crm__date-picker-btn:hover,
.player-crm__date-picker-btn:focus-visible {
  border-color: rgba(245, 158, 11, 0.65);
  color: var(--accent);
  outline: none;
}
.player-crm__date-range-field {
  position: relative;
  min-width: 220px;
  flex: 1 1 260px;
}
.player-crm__date-range-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.68);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
[data-theme="light"] .player-crm__date-range-btn {
  background: rgba(255, 255, 255, 0.92);
}
.player-crm__date-range-btn svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.player-crm__date-range-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-crm__date-range-btn:hover,
.player-crm__date-range-btn:focus-visible,
.player-crm__date-range-btn[aria-expanded="true"] {
  border-color: rgba(245, 158, 11, 0.72);
  color: var(--accent);
  outline: none;
}
.player-crm__range-calendar {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  width: min(332px, calc(100vw - 32px));
  padding: 9px;
  border: 1px solid rgba(199, 163, 106, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98)),
    #020617;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}
[data-theme="light"] .player-crm__range-calendar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}
.player-crm__range-calendar-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 34px;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.player-crm__range-calendar-head strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-crm__range-calendar-nav,
.player-crm__range-calendar-close {
  display: grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.52);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}
[data-theme="light"] .player-crm__range-calendar-nav,
[data-theme="light"] .player-crm__range-calendar-close {
  background: rgba(255, 255, 255, 0.86);
}
.player-crm__range-calendar-nav:hover,
.player-crm__range-calendar-nav:focus-visible,
.player-crm__range-calendar-close:hover,
.player-crm__range-calendar-close:focus-visible {
  border-color: rgba(245, 158, 11, 0.68);
  color: var(--accent);
  outline: none;
}
.player-crm__range-calendar-state {
  min-height: 18px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.player-crm__range-calendar-weekdays,
.player-crm__range-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.player-crm__range-calendar-weekdays {
  margin-bottom: 5px;
}
.player-crm__range-calendar-weekdays span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}
.player-crm__range-calendar-day {
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}
[data-theme="light"] .player-crm__range-calendar-day {
  background: rgba(255, 255, 255, 0.86);
}
.player-crm__range-calendar-day--outside {
  opacity: 0.42;
}
.player-crm__range-calendar-day--current-week {
  border-color: rgba(130, 207, 97, 0.58);
  background: rgba(94, 167, 61, 0.2);
  color: #b8f09f;
}
.player-crm__range-calendar-day--today {
  border-color: rgba(56, 189, 248, 0.64);
}
.player-crm__range-calendar-day--inside {
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.16);
}
.player-crm__range-calendar-day--start,
.player-crm__range-calendar-day--end,
.player-crm__range-calendar-day--single {
  border-color: rgba(245, 158, 11, 0.86);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.94), rgba(180, 83, 9, 0.92));
  color: #111827;
}
.player-crm__range-calendar-day:hover,
.player-crm__range-calendar-day:focus-visible {
  border-color: rgba(245, 158, 11, 0.72);
  color: var(--accent);
  outline: none;
}
.player-crm__range-calendar-day--start:hover,
.player-crm__range-calendar-day--end:hover,
.player-crm__range-calendar-day--single:hover,
.player-crm__range-calendar-day--start:focus-visible,
.player-crm__range-calendar-day--end:focus-visible,
.player-crm__range-calendar-day--single:focus-visible {
  color: #111827;
}
.player-crm textarea {
  min-height: 132px;
  padding: 11px;
  resize: vertical;
  line-height: 1.45;
}
.player-crm__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
  margin: 0 0 12px;
  padding: 5px;
  border: 1px solid rgba(167, 139, 92, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(74, 58, 37, 0.18), rgba(2, 6, 23, 0.24)),
    rgba(15, 23, 42, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 240, 214, 0.04);
}
.player-crm__subtabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: -6px 10px 12px;
  padding: 28px 7px 7px;
  border: 1px solid rgba(199, 163, 106, 0.32);
  border-top-color: rgba(251, 191, 36, 0.58);
  border-radius: 6px 6px 10px 10px;
  background:
    linear-gradient(180deg, rgba(199, 163, 106, 0.11), transparent 38px),
    rgba(7, 12, 22, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 225, 145, 0.08);
}
.player-crm__subtabs::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 16.666%;
  width: 2px;
  height: 7px;
  background: rgba(251, 191, 36, 0.72);
}
.player-crm__subtabs-heading {
  position: absolute;
  top: 6px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f4cf7c;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}
.player-crm__subtabs-heading span {
  font-weight: 900;
}
.player-crm__subtabs-heading b {
  padding-left: 7px;
  border-left: 1px solid rgba(199, 163, 106, 0.36);
  color: #899bb1;
  font-size: 8px;
  letter-spacing: 0.08em;
}
.player-crm__subtabs--players {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: -7px;
  margin-right: 24px;
  margin-left: 24px;
  padding-top: 5px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(7, 12, 22, 0.5);
}
.player-crm__subtabs--players::before {
  display: none;
}
.player-crm__subtabs[hidden] {
  display: none;
}
.player-crm__subtabs .player-crm__tab {
  min-height: 34px;
  font-size: 11px;
}
.player-crm__calculations-host {
  min-width: 0;
}
.player-crm__calculations-host > .admin-report-panel {
  margin-top: 0;
}
.player-crm__tab,
.player-crm__chip,
.player-crm__ghost-btn,
.player-crm__primary-btn,
.player-crm__danger-btn {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  cursor: pointer;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}
.player-crm__tab,
.player-crm__chip,
.player-crm__ghost-btn {
  background: rgba(15, 23, 42, 0.48);
  color: var(--text);
}
.player-crm__tab {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 7px 10px;
  border-color: rgba(199, 163, 106, 0.2);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.34)),
    rgba(15, 23, 42, 0.34);
  color: rgba(255, 237, 213, 0.8);
  font-size: 13px;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
  box-shadow: inset 0 1px 0 rgba(255, 240, 214, 0.04);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.player-crm__tab--active,
.player-crm__chip--active {
  border-color: rgba(199, 163, 106, 0.48);
  background:
    linear-gradient(180deg, rgba(199, 163, 106, 0.16), rgba(91, 71, 44, 0.12)),
    rgba(15, 23, 42, 0.38);
  color: #fff7df;
  box-shadow: inset 0 1px 0 rgba(255, 240, 214, 0.08);
}
.player-crm__tab.player-crm__tab--active {
  border-color: rgba(251, 191, 36, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 231, 160, 0.98), rgba(217, 158, 58, 0.94)),
    #d99e3a;
  color: #0b1220;
  box-shadow:
    0 0 0 1px rgba(255, 240, 214, 0.18),
    0 10px 24px rgba(251, 191, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}
.player-crm__tab:hover,
.player-crm__tab:focus-visible {
  border-color: rgba(199, 163, 106, 0.42);
  color: #fff7df;
  outline: none;
}
.player-crm__tab.player-crm__tab--active:hover,
.player-crm__tab.player-crm__tab--active:focus-visible {
  border-color: rgba(255, 231, 160, 0.95);
  color: #0b1220;
}
[data-theme="light"] .player-crm__tab--active,
[data-theme="light"] .player-crm__chip--active {
  color: #075985;
}
.player-crm__ghost-btn,
.player-crm__primary-btn,
.player-crm__danger-btn {
  padding: 0 14px;
}
.player-crm__primary-btn {
  border-color: rgba(34, 197, 94, 0.68);
  background: linear-gradient(180deg, #34d399, #16a34a);
  color: #052e16;
}
.player-crm__danger-btn {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
}
.player-crm__stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 12px;
  --crm-stat-color: #c7a36a;
  --crm-stat-color-soft: rgba(199, 163, 106, 0.18);
}
.player-crm__stats > * {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.player-crm__current-stats {
  display: grid;
  gap: 10px;
  margin: 10px 0;
  --crm-stat-color: #8fa3b8;
  --crm-stat-color-soft: rgba(143, 163, 184, 0.16);
}
.player-crm__current-stats:empty {
  display: none;
}

.player-crm__week-report:empty {
  display: none;
}

.player-crm__week-report-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(199, 163, 106, 0.35);
  border-radius: 18px;
  background: rgba(7, 12, 21, 0.78);
  color: #f4ead6;
}

.player-crm__week-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.player-crm__week-report-head h3 {
  margin: 0;
  color: #ffe7ad;
  font-size: 20px;
}

.player-crm__week-report-head span {
  display: block;
  margin-top: 3px;
  color: rgba(244, 234, 214, 0.62);
  font-size: 12px;
}

.player-crm__week-report-head button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(199, 163, 106, 0.38);
  border-radius: 10px;
  background: rgba(199, 163, 106, 0.09);
  color: #ffe7ad;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.player-crm__week-report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.player-crm__week-report-head .player-crm__week-report-copy-btn {
  display: inline-grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 8px;
  place-items: center;
}

.player-crm__week-report-copy-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-crm__week-report-head .player-crm__week-report-copy-btn--success {
  border-color: rgba(74, 222, 128, 0.5);
  color: #86efac;
}

.player-crm__week-report-main,
.player-crm__week-report-group {
  display: grid;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid rgba(199, 163, 106, 0.28);
  border-radius: 14px;
  background: rgba(35, 32, 28, 0.76);
}

.player-crm__week-report-group {
  margin-top: 6px;
}

.player-crm__week-report-group--calc {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(5, 37, 52, 0.6);
  color: #ccefff;
}

.player-crm__week-report-calc-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.player-crm__week-report-calc-details summary::-webkit-details-marker {
  display: none;
}

.player-crm__week-report-calc-details summary span::before {
  display: inline-block;
  width: 16px;
  margin-right: 4px;
  content: "›";
  color: #7dd3fc;
  transform-origin: center;
  transition: transform 0.16s ease;
}

.player-crm__week-report-calc-details[open] summary span::before {
  transform: rotate(90deg);
}

.player-crm__week-report-calc-body {
  display: grid;
  gap: 5px;
  padding-top: 6px;
}

.player-crm__week-report-group--payments {
  border-color: rgba(167, 139, 250, 0.34);
  background: rgba(45, 31, 78, 0.52);
  color: #e3d8ff;
}

.player-crm__week-report-group--payments h4 {
  margin: 0 0 7px;
  color: #cbb8ff;
  font-size: 13px;
  font-weight: 900;
}

.player-crm__week-report-payments-body {
  display: grid;
  gap: 5px;
}

.player-crm__week-report-group--sergey {
  border-color: rgba(45, 212, 191, 0.32);
  background: rgba(15, 64, 61, 0.48);
  color: #bdf8ec;
}

.player-crm__week-report-group--danger {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(61, 20, 30, 0.56);
  color: #ffd1d8;
}

.player-crm__week-report-bonuses-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.player-crm__week-report-bonuses-details summary::-webkit-details-marker {
  display: none;
}

.player-crm__week-report-bonuses-details summary span::before {
  display: inline-block;
  width: 16px;
  margin-right: 4px;
  content: "›";
  color: #fda4af;
  transform-origin: center;
  transition: transform 0.16s ease;
}

.player-crm__week-report-bonuses-details[open] summary span::before {
  transform: rotate(90deg);
}

.player-crm__week-report-bonuses-body {
  display: grid;
  gap: 5px;
  padding-top: 6px;
}

.player-crm__week-report-group--rakeback {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(92, 48, 8, 0.5);
  color: #ffe2a8;
}

.player-crm__week-report-rakeback-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.player-crm__week-report-rakeback-details summary::-webkit-details-marker {
  display: none;
}

.player-crm__week-report-rakeback-details summary span::before {
  display: inline-block;
  width: 16px;
  margin-right: 4px;
  content: "›";
  transform-origin: center;
  transition: transform 0.16s ease;
}

.player-crm__week-report-rakeback-details[open] summary span::before {
  transform: rotate(90deg);
}

.player-crm__week-report-rakeback-body {
  display: grid;
  gap: 5px;
  padding-top: 6px;
}

.player-crm__week-report-group--salary {
  border-color: rgba(199, 163, 106, 0.28);
  background: rgba(35, 32, 28, 0.76);
  color: #f4ead6;
}

.player-crm__week-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

.player-crm__week-report-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.player-crm__week-report-row strong {
  color: inherit;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.player-crm__week-report-row--subdetail {
  padding-left: 14px;
  color: rgba(255, 209, 216, 0.82);
  font-size: 0.92em;
}

.player-crm__week-report-row--return,
.player-crm__week-report-row--return strong {
  color: #8ee0ad;
}

.player-crm__week-report-row--deposit {
  color: #ffe7ad;
  font-size: 18px;
}

.player-crm__week-report-deposit {
  color: #ffe7ad;
}

.player-crm__week-report-deposit summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 800;
}

.player-crm__week-report-deposit summary::-webkit-details-marker {
  display: none;
}

.player-crm__week-report-deposit summary span::before {
  display: inline-block;
  width: 18px;
  margin-right: 4px;
  content: "›";
  transform-origin: center;
  transition: transform 0.16s ease;
}

.player-crm__week-report-deposit[open] summary span::before {
  transform: rotate(90deg);
}

.player-crm__week-report-deposit summary strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.player-crm__week-report-deposit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}

.player-crm__week-report-deposit-column {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.player-crm__week-report-deposit-column h4 {
  margin: 0 0 1px;
  text-align: center;
  font-size: 15px;
}

.player-crm__week-report-deposit-column > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  color: #f4ead6;
  font-size: 13px;
  line-height: 1.12;
}

.player-crm__week-report-deposit-column > div strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.player-crm__week-report-deposit-column > .player-crm__week-report-deposit-total {
  margin-top: 2px;
  padding-top: 5px;
  border-top: 1px solid rgba(199, 163, 106, 0.28);
  color: #ffe7ad;
  font-weight: 800;
}

.player-crm__week-report-row--total {
  padding-top: 6px;
  border-top: 1px solid rgba(199, 163, 106, 0.28);
  color: #ffe7ad;
}

.player-crm__week-report-totals {
  display: grid;
  gap: 4px;
}

.player-crm__week-report-totals .player-crm__week-report-row--total + .player-crm__week-report-row--total {
  padding-top: 0;
  border-top: 0;
}

.player-crm__week-report-details {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.player-crm__week-report-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: rgba(244, 234, 214, 0.78);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
}

.player-crm__week-report-details summary::-webkit-details-marker {
  display: none;
}

.player-crm__week-report-details summary::before {
  content: "›";
  grid-column: 1;
  grid-row: 1;
  width: 16px;
  color: #ffe7ad;
  transform-origin: center;
  transition: transform 0.16s ease;
}

.player-crm__week-report-details summary span {
  grid-column: 1;
  grid-row: 1;
  padding-left: 22px;
}

.player-crm__week-report-details summary strong {
  grid-column: 2;
  grid-row: 1;
  color: #f4ead6;
  white-space: nowrap;
}

.player-crm__week-report-details[open] summary::before {
  transform: rotate(90deg);
}

.player-crm__week-report-details-body {
  display: grid;
  gap: 5px;
  padding: 1px 9px 7px;
}

.player-crm__week-report-empty {
  color: rgba(244, 234, 214, 0.68);
  font-size: 14px;
}

@media (max-width: 600px) {
  .player-crm__week-report-card {
    padding: 12px;
    border-radius: 14px;
  }

  .player-crm__week-report-head {
    align-items: flex-start;
  }

  .player-crm__week-report-row {
    gap: 10px;
    font-size: 14px;
  }

  .player-crm__week-report-details summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    font-size: 12px;
  }

}
.player-crm__stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.player-crm__period-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.player-crm__period-metric {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(42px, auto) auto;
  align-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 116px;
  padding: 14px 14px 13px 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-right: 4px solid #8fa3b8;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 214, 0.035),
    inset 0 0 0 1px rgba(143, 163, 184, 0.1);
  color: inherit;
  font: inherit;
  text-align: left;
}
.player-crm__period-metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #8fa3b8;
}
.player-crm__period-metric::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 14px;
  top: 63px;
  border-top: 1px solid rgba(143, 163, 184, 0.2);
}
[data-theme="light"] .player-crm__period-metric {
  background: rgba(255, 255, 255, 0.86);
}
button.player-crm__period-metric {
  cursor: pointer;
}
button.player-crm__period-metric:hover,
button.player-crm__period-metric:focus-visible {
  border-color: rgba(199, 163, 106, 0.58);
  outline: none;
}
.player-crm__period-metric span {
  color: #9fb0c5;
  font-size: clamp(10px, 1.35vw, 13px);
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}
.player-crm__period-metric .player-crm__period-metric-title--with-eyebrow {
  display: grid;
  align-content: start;
  gap: 1px;
}
.player-crm__period-metric .player-crm__period-metric-title--with-eyebrow small {
  color: #8f80ad;
  font-size: clamp(7px, 0.9vw, 9px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
}
.player-crm__period-metric .player-crm__period-metric-title--with-eyebrow b {
  color: inherit;
  font: inherit;
  line-height: inherit;
}
.player-crm__period-metric strong {
  color: var(--text);
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1;
  white-space: nowrap;
}
.player-crm__period-metric .player-crm__period-comparison {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  justify-items: end;
  gap: 1px;
  max-width: 105px;
  padding: 5px 7px;
  border: 1px solid rgba(143, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(5, 10, 16, 0.72);
  text-transform: none;
}
.player-crm__period-comparison small {
  overflow: hidden;
  max-width: 100%;
  color: #8293a7;
  font-size: 9px;
  font-style: normal;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-crm__period-metric .player-crm__period-comparison b {
  color: #eef3f8;
  font-size: 14px;
  line-height: 1;
}
.player-crm__period-comparison em {
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}
.player-crm__period-comparison--positive em { color: #8fc9a2; }
.player-crm__period-comparison--negative em { color: #d88f91; }
.player-crm__period-comparison--neutral em { color: #9fb0c5; }
.player-crm__period-metric .player-crm__period-balance {
  position: absolute;
  top: 76px;
  left: 35%;
  right: 8px;
  display: grid;
  gap: 4px;
  text-transform: none;
}
.player-crm__period-metric .player-crm__period-balance small {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  color: #91a4bb;
  font-size: clamp(8px, 3cqw, 12px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
@container (max-width: 190px) {
  .player-crm__period-metric--engagement > span:first-child {
    max-width: calc(100% - 80px);
    overflow: hidden;
    font-size: 8px;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .player-crm__period-metric--engagement .player-crm__period-comparison {
    top: 8px;
    right: 6px;
    max-width: 78px;
    padding: 4px 5px;
  }
  .player-crm__period-metric--engagement .player-crm__period-comparison small,
  .player-crm__period-metric--engagement .player-crm__period-comparison em {
    font-size: 7px;
  }
  .player-crm__period-metric--engagement .player-crm__period-comparison b {
    font-size: 11px;
  }
  .player-crm__period-metric .player-crm__period-balance {
    left: 34%;
    gap: 2px;
  }
  .player-crm__period-metric .player-crm__period-balance small {
    font-size: clamp(7px, 5.5cqw, 10px);
  }
}
.player-crm__period-metric--engagement .player-crm__period-balance {
  left: 46%;
}
.player-crm__period-metric .player-crm__period-balance b {
  color: #eaf3fb;
  font-size: 1.2em;
}
.player-crm__period-metric--has-details {
  grid-template-rows: 42px auto minmax(0, 1fr);
  align-content: start;
  gap: 7px;
}
.player-crm__period-metric-details {
  display: grid;
  align-self: end;
  gap: 3px;
  min-width: 0;
}
.player-crm__period-metric .player-crm__period-metric-details span,
.player-crm__period-metric .player-crm__period-metric-details button {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  color: #9fb0c5;
  font-size: clamp(10px, 1.25vw, 13px);
  line-height: 1.2;
  text-transform: none;
}
.player-crm__period-metric .player-crm__period-metric-details button {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.player-crm__period-metric--audience {
  border-color: rgba(226, 119, 22, 0.82);
  background: radial-gradient(circle at 12% 0, rgba(134, 72, 16, 0.28), transparent 46%), linear-gradient(145deg, #17140f, #0c1015 72%);
  box-shadow: inset 3px 0 rgba(239, 132, 28, 0.82), 0 0 18px rgba(217, 104, 10, 0.13);
}
.player-crm__period-metric--audience > .player-crm__period-metric-title {
  max-width: calc(100% - 118px);
  font-size: clamp(10px, 4.3cqw, 14px);
  line-height: 1.12;
}
.player-crm__period-metric--audience > strong { color: #ef963e; }
.player-crm__period-metric--audience::before { background: #df791c; }
.player-crm__period-metric--registration {
  border-color: rgba(35, 132, 220, 0.82);
  background: radial-gradient(circle at 88% 0, rgba(14, 101, 177, 0.3), transparent 48%), linear-gradient(145deg, #0b1a29, #09111b 72%);
  box-shadow: inset 3px 0 rgba(43, 143, 232, 0.84), 0 0 18px rgba(18, 112, 196, 0.14);
}
.player-crm__period-metric--registration > strong { color: #3f9aeb; }
.player-crm__period-metric--registration::before { background: #268bdc; }
.player-crm__period-metric--engagement {
  border-color: rgba(119, 69, 181, 0.78);
  background: radial-gradient(circle at 50% 0, rgba(91, 52, 146, 0.3), transparent 50%), linear-gradient(145deg, #17152a, #0d1020 72%);
  box-shadow: inset 3px 0 rgba(133, 81, 199, 0.76), 0 0 16px rgba(92, 47, 154, 0.13);
}
.player-crm__period-metric--engagement > strong { color: #9a6ae0; }
.player-crm__period-metric--engagement::before { background: #7e4fbd; }
.player-crm__period-metric--activity {
  border-color: rgba(84, 157, 48, 0.8);
  background: radial-gradient(circle at 50% 0, rgba(51, 117, 38, 0.3), transparent 50%), linear-gradient(145deg, #102519, #091510 72%);
  box-shadow: inset 3px 0 rgba(101, 179, 63, 0.78), 0 0 16px rgba(60, 132, 37, 0.13);
}
.player-crm__period-metric--activity > strong { color: #72c84e; }
.player-crm__period-metric--activity::before { background: #5ca53c; }
.player-crm__period-metric--audience,
.player-crm__period-metric--registration,
.player-crm__period-metric--engagement,
.player-crm__period-metric--activity {
  border-right-width: 1px;
  border-radius: 18px;
}
.player-crm__period-metric .player-crm__period-metric-details .player-crm__period-metric-detail--positive,
.player-crm__period-metric-details .player-crm__period-metric-detail--positive b {
  color: #8fc9a2;
}
.player-crm__period-metric .player-crm__period-metric-details .player-crm__period-metric-detail--negative,
.player-crm__period-metric-details .player-crm__period-metric-detail--negative b {
  color: #d88f91;
}
.player-crm__period-metric-details .player-crm__period-metric-detail--total {
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(143, 163, 187, 0.14);
}
.player-crm__period-metric-details .player-crm__period-metric-detail--total b {
  color: #e7edf4;
}
.player-crm__period-metric .player-crm__period-metric-details .player-crm__period-metric-detail--highlight {
  margin: 2px -5px;
  padding: 5px 6px;
  border-left: 3px solid #d6a94f;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(214, 169, 79, 0.2), rgba(214, 169, 79, 0.04));
  color: #f0d89f;
}
.player-crm__period-metric-details .player-crm__period-metric-detail--highlight b {
  color: #fff1cf;
  font-size: 1.14em;
}
.player-crm__period-metric .player-crm__period-metric-details .player-crm__period-metric-detail--subdetail {
  padding-left: 10px;
  color: #7f91a7;
  font-size: clamp(9px, 1vw, 11px);
}
.player-crm__period-metric-details .player-crm__period-metric-detail--subdetail b {
  color: #b7c4d3;
  font-size: 1em;
}
.player-crm__period-metric-details b {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 1.08em;
}
.player-crm__period-metric--registration .player-crm__period-metric-details {
  align-self: start;
  margin-top: 18px;
  gap: 7px;
}
.player-crm .player-crm__period-metric--registration .player-crm__period-metric-details button,
.player-crm .player-crm__period-metric--registration .player-crm__period-metric-details span {
  font-size: clamp(12px, 3.5cqw, 16px);
  line-height: 1.25;
}
@container (min-width: 220px) {
  .player-crm__period-metric > span {
    font-size: clamp(13px, 5.5cqw, 16px);
  }
  .player-crm__period-metric > strong {
    font-size: clamp(40px, 15cqw, 56px);
  }
  .player-crm__period-metric .player-crm__period-metric-details span,
  .player-crm__period-metric .player-crm__period-metric-details button {
    font-size: clamp(12px, 4.7cqw, 15px);
    line-height: 1.2;
  }
  .player-crm__period-metric-details {
    gap: 5px;
  }
}
@container (min-width: 360px) {
  .player-crm__period-metric > span {
    font-size: clamp(14px, 3.8cqw, 17px);
  }
  .player-crm__period-metric > strong {
    font-size: clamp(48px, 12cqw, 64px);
  }
  .player-crm__period-metric .player-crm__period-metric-details span,
  .player-crm__period-metric .player-crm__period-metric-details button {
    font-size: clamp(13px, 3.4cqw, 16px);
  }
}
.player-crm__analytics-breakdown {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #29364a;
  border-radius: 16px;
  background: #0d1422;
}
.player-crm__analytics-breakdown h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 18px;
}
.player-crm__period-metric--plus strong {
  color: #6ee7a0;
}
.player-crm__period-metric--plus {
  border-right-color: #34d399;
}
.player-crm__period-metric--plus::before {
  background: #34d399;
}
.player-crm__period-metric--minus strong {
  color: #fb7185;
}
.player-crm__period-metric--minus {
  border-right-color: #fb7185;
}
.player-crm__period-metric--minus::before {
  background: #fb7185;
}
.player-crm__stats-grid--chat {
  --crm-stat-color: #8fa3b8;
  --crm-stat-color-soft: rgba(143, 163, 184, 0.16);
}
.player-crm__stats-section {
  --crm-stat-color: #8fa3b8;
  --crm-stat-color-soft: rgba(143, 163, 184, 0.16);
  padding: 11px 10px 10px;
  border: 1px solid rgba(143, 163, 184, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.3), rgba(15, 23, 42, 0.12)),
    rgba(2, 6, 23, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 240, 214, 0.04);
}
[data-theme="light"] .player-crm__stats-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.72)),
    rgba(255, 255, 255, 0.76);
}
.player-crm__stats-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(143, 163, 184, 0.2);
}
.player-crm__stats-section-head h3 {
  margin: 0;
  color: #b8c4d1;
  font-size: 19px;
  line-height: 1.15;
}
.player-crm__stats-section-head span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.player-crm__notice {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.player-crm__notice--error {
  border-color: rgba(248, 113, 113, 0.52);
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
}
.player-crm__notice--loading {
  border-color: rgba(248, 217, 138, 0.42);
  background: rgba(248, 217, 138, 0.1);
  color: var(--text);
}
.player-crm__notice--warning {
  margin-bottom: 10px;
  border-color: rgba(248, 217, 138, 0.42);
  background: rgba(248, 217, 138, 0.1);
  color: var(--text);
}
.player-crm__stat,
.player-crm__panel,
.player-crm__segment-card,
.player-crm__queue-item,
.player-crm__metric,
.player-crm__timeline-item {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.48);
}
[data-theme="light"] .player-crm__stat,
[data-theme="light"] .player-crm__panel,
[data-theme="light"] .player-crm__segment-card,
[data-theme="light"] .player-crm__queue-item,
[data-theme="light"] .player-crm__metric,
[data-theme="light"] .player-crm__timeline-item {
  background: rgba(255, 255, 255, 0.86);
}
.player-crm__stat {
  position: relative;
  min-height: 74px;
  padding: 10px 10px 10px;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 214, 0.035),
    inset 0 0 0 1px var(--crm-stat-color-soft, rgba(148, 163, 184, 0.08));
}
.player-crm__stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--crm-stat-color, rgba(148, 163, 184, 0.5));
  opacity: 0.92;
}
.player-crm__stat::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 48px;
  border-top: 1px solid var(--crm-stat-color-soft, rgba(148, 163, 184, 0.14));
  pointer-events: none;
}
button.player-crm__stat {
  cursor: pointer;
}
button.player-crm__stat:hover,
button.player-crm__stat:focus-visible,
.player-crm__stat--active {
  border-color: rgba(199, 163, 106, 0.48);
  outline: none;
}
.player-crm__stat-label {
  display: block;
  color: var(--crm-stat-color, var(--text-muted));
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.player-crm__stat-hint {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
}
.player-crm__stat-value {
  display: block;
  margin-top: 18px;
  font-size: 21px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.player-crm__stat--registration {
  display: grid;
  gap: 6px;
  min-height: 112px;
}
.player-crm__stat--pokerplus,
.player-crm__stat--bot,
.player-crm__stat--push {
  display: grid;
  gap: 7px;
  min-height: 140px;
}
.player-crm__stat--visits {
  display: grid;
  gap: 7px;
  min-height: 172px;
}
.player-crm__stat-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}
.player-crm__stat-mini-grid button,
.player-crm__stat-mini-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid rgba(199, 163, 106, 0.26);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(199, 163, 106, 0.08), rgba(2, 6, 23, 0.24)),
    rgba(2, 6, 23, 0.22);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.player-crm__stat-mini-grid button::before {
  content: none;
}
[data-theme="light"] .player-crm__stat-mini-grid button {
  background: rgba(241, 245, 249, 0.78);
}
.player-crm__stat-mini-grid button:hover,
.player-crm__stat-mini-grid button:focus-visible {
  border-color: rgba(199, 163, 106, 0.62);
  outline: none;
}
.player-crm__stat-mini-grid small,
.player-crm__stat-mini-grid strong {
  display: block;
}
.player-crm__stat-mini-grid small {
  color: var(--text-muted);
  min-width: 0;
  font-size: 7.5px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
.player-crm__stat-mini-grid strong {
  margin-top: 0;
  font-size: 15px;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}
.player-crm__stat-mini-grid--flow {
  margin-top: 6px;
}
.player-crm__stat-mini-row--plus small,
.player-crm__stat-mini-row--plus strong {
  color: #86efac;
}
.player-crm__stat-mini-row--plus {
  border-color: rgba(74, 222, 128, 0.45);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(2, 6, 23, 0.24)),
    rgba(22, 101, 52, 0.18);
  box-shadow: inset 3px 0 0 rgba(74, 222, 128, 0.62);
}
.player-crm__stat-mini-row--minus small,
.player-crm__stat-mini-row--minus strong {
  color: #f87171;
}
.player-crm__manager-dialogs {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.player-crm__manager-dialogs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.player-crm__manager-dialogs-head h4 {
  margin: 0;
  font-size: 15px;
}
.player-crm__manager-dialogs-head span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.player-crm__manager-dialog-wrap {
  display: grid;
  gap: 6px;
}
.player-crm__manager-dialog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.34);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
[data-theme="light"] .player-crm__manager-dialog {
  background: rgba(255, 255, 255, 0.76);
}
.player-crm__manager-dialog:hover,
.player-crm__manager-dialog:focus-visible,
.player-crm__manager-dialog--active {
  border-color: rgba(245, 158, 11, 0.58);
  outline: none;
}
.player-crm__manager-dialog strong,
.player-crm__manager-dialog small {
  display: block;
}
.player-crm__manager-dialog small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}
.player-crm__conversation {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.28);
}
.player-crm__conversation-head,
.player-crm__conversation-empty {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.player-crm__conversation-msg {
  max-width: 88%;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
}
.player-crm__conversation-msg--manager {
  justify-self: end;
  background: rgba(245, 158, 11, 0.12);
}
[data-theme="light"] .player-crm__conversation-msg {
  background: rgba(241, 245, 249, 0.9);
}
[data-theme="light"] .player-crm__conversation-msg--manager {
  background: rgba(245, 158, 11, 0.16);
}
.player-crm__conversation-msg span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
}
.player-crm__conversation-msg p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}
.player-crm-dialog-modal-open {
  overflow: hidden;
}
.player-crm__dialog-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: hidden;
  touch-action: none;
}
.player-crm__dialog-modal[hidden] {
  display: none;
}
.player-crm__dialog-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}
.player-crm__dialog-modal-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(920px, 100%);
  height: min(760px, calc(100dvh - 28px));
  max-height: min(760px, calc(100vh - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}
[data-theme="light"] .player-crm__dialog-modal-panel {
  background: rgba(255, 255, 255, 0.98);
}
.player-crm__dialog-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.player-crm__dialog-modal-head h3 {
  margin: 0;
  color: var(--accent);
  font-size: 18px;
}
.player-crm__dialog-modal-head span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.player-crm__dialog-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.player-crm__dialog-modal-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}
.player-crm__modal-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.player-crm__modal-content--manager-dialogs {
  height: 100%;
  padding-right: 2px;
  touch-action: pan-y;
}
.player-crm__modal-content--player {
  display: grid;
  gap: 12px;
}
.player-crm__modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.player-crm__modal-period-row {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.22);
}
.player-crm__modal-period-row .player-crm__period {
  min-width: 156px;
}
.player-crm__modal-date-field {
  display: none;
}
.player-crm__modal-date-field--visible {
  display: grid;
}
.player-crm__workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.player-crm__panel {
  min-width: 0;
  max-width: 100%;
  padding: 12px;
}
.player-crm__filters {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.player-crm__players-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.player-crm__chip {
  padding: 0 10px;
  min-height: 32px;
  font-size: 12px;
}
.player-crm__list {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
}
.player-crm__player {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 10px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.2);
  color: inherit;
  cursor: pointer;
}
.player-crm__player--active {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: inset 3px 0 0 #38bdf8;
}
.player-crm__show-all {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}
.player-crm__player-head,
.player-crm__section-head,
.player-crm__detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.player-crm__player-name {
  font-size: 14px;
  font-weight: 800;
}
.player-crm__player-meta,
.player-crm__player-note,
.player-crm__section-head span,
.player-crm__detail-muted {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}
.player-crm__badge,
.player-crm__tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.player-crm__badge {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}
.player-crm__badge--risk {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}
.player-crm__badge--good {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}
.player-crm__tag {
  margin-right: 4px;
  margin-bottom: 4px;
  background: rgba(148, 163, 184, 0.16);
  color: var(--text);
}
.player-crm__tab-panel {
  display: none;
  min-width: 0;
  max-width: 100%;
}
.player-crm__tab-panel--active {
  display: block;
}
.player-crm__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.player-crm__section-head > div {
  min-width: 0;
}
.player-crm__section-head h3 {
  margin: 0;
  color: var(--accent);
  font-size: 20px;
}
.player-crm__section-head span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}
.player-crm__send-section-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(248, 217, 138, 0.46);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.28);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.player-crm__send-section-btn:hover,
.player-crm__send-section-btn:focus-visible {
  border-color: rgba(248, 217, 138, 0.72);
  background: rgba(248, 217, 138, 0.12);
}
.player-crm__queue,
.player-crm__segments,
.player-crm__analytics {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.player-crm__chart-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 5%, rgba(56, 189, 248, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.34)),
    rgba(2, 6, 23, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 240, 214, 0.04);
}
.player-crm__chart-scroll {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 10px 10px 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.22);
}
.player-crm__chart {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.player-crm__chart-grid line {
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 1;
}
.player-crm__chart-grid text,
.player-crm__chart-ticks text {
  fill: var(--text);
  font-size: 16px;
  font-weight: 900;
  text-anchor: middle;
}
.player-crm__chart-grid text {
  fill: var(--text-muted);
  font-size: 15px;
  text-anchor: start;
}
.player-crm__chart-lines polyline {
  fill: none;
  stroke: var(--line-color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.player-crm__chart-lines circle {
  fill: var(--line-color);
  stroke: rgba(15, 23, 42, 0.95);
  stroke-width: 2;
}
.player-crm__chart-guide {
  stroke: rgba(255, 237, 213, 0.72);
  stroke-width: 2;
  stroke-dasharray: 7 7;
  pointer-events: none;
}
.player-crm__chart-guide[hidden] {
  display: none;
}
.player-crm__chart-hover rect {
  fill: transparent;
  cursor: crosshair;
}
.player-crm__chart-tooltip {
  position: absolute;
  z-index: 3;
  width: min(230px, calc(100% - 16px));
  padding: 10px;
  border: 1px solid rgba(248, 217, 138, 0.38);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.player-crm__chart-tooltip[hidden] {
  display: none;
}
.player-crm__chart-tooltip-date {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}
.player-crm__chart-tooltip-values {
  display: grid;
  gap: 5px;
}
.player-crm__chart-tooltip-values span {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
}
.player-crm__chart-tooltip-values i {
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--line-color);
}
.player-crm__chart-tooltip-values b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-crm__chart-tooltip-values strong {
  color: var(--text);
  font-size: 13px;
}
.player-crm__chart-tooltip-values em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}
.player-crm__chart-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.player-crm__chart-toggle {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.34);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.player-crm__chart-toggle span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-crm__chart-toggle input {
  width: 15px;
  height: 15px;
  accent-color: #f8d98a;
}
.player-crm__chart-toggle--disabled {
  color: var(--text-muted);
  opacity: 0.64;
}
.player-crm__chart-toggle--disabled input {
  cursor: not-allowed;
}
.player-crm__chart-swatch {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--line-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--line-color) 50%, transparent);
}
.player-crm__chart-summary {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.player-crm__chart-summary h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}
.player-crm__chart-summary-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.player-crm__chart-summary-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}
.player-crm__chart-summary-table th,
.player-crm__chart-summary-table td {
  min-width: 0;
  padding: 5px 3px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text);
  font-size: clamp(8px, 1.4vw, 12px);
  line-height: 1.12;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.player-crm__chart-summary-table th {
  color: var(--text-muted);
  font-weight: 800;
}
.player-crm__chart-summary-table th:first-child,
.player-crm__chart-summary-table td:first-child {
  width: 11%;
  padding-left: 2px;
  text-align: left;
  white-space: nowrap;
}
.player-crm__import {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.player-crm__queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
}
.player-crm__queue-title {
  margin: 0 0 5px;
  font-weight: 800;
}
.player-crm__queue-reason {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.42;
}
.player-crm__detail {
  display: grid;
  gap: 12px;
}
.player-crm__detail-title {
  margin: 0;
  font-size: 24px;
}
.player-crm__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.player-crm__metrics--registrations {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 12px;
}
.player-crm__metric {
  padding: 10px;
}
.player-crm__metric span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.player-crm__metric strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}
.player-crm__timeline {
  display: grid;
  gap: 8px;
}
.player-crm__edit {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.25);
}
.player-crm__edit-title {
  margin: 0;
  font-size: 14px;
}
.player-crm__timeline-item {
  padding: 10px;
  font-size: 13px;
  line-height: 1.42;
}
.player-crm__player--blocked {
  border-color: rgba(248, 113, 113, 0.46);
  background: rgba(127, 29, 29, 0.2);
}
.player-crm__blocked-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(254, 226, 226, 0.96);
  background: rgba(127, 29, 29, 0.34);
  border: 1px solid rgba(248, 113, 113, 0.42);
}
.player-crm__block-warning {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(248, 113, 113, 0.42);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(254, 226, 226, 0.98);
  background: rgba(127, 29, 29, 0.24);
}
.player-crm__block-warning span {
  font-size: 13px;
  color: rgba(254, 226, 226, 0.78);
}
.player-crm__blocked-list {
  display: grid;
  gap: 10px;
}
.player-crm__blocked-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.16);
}
.player-crm__blocked-row div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.player-crm__blocked-row span,
.player-crm__blocked-row small {
  color: rgba(226, 232, 240, 0.72);
  overflow-wrap: anywhere;
}
.player-crm__blocked-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .player-crm__blocked-row {
    grid-template-columns: 1fr;
  }
  .player-crm__blocked-actions {
    justify-content: stretch;
  }
  .player-crm__blocked-actions .player-crm__ghost-btn,
  .player-crm__blocked-actions .player-crm__danger-btn {
    flex: 1 1 auto;
  }
}
.player-crm__segment-card {
  display: grid;
  gap: 9px;
  padding: 12px;
}
.player-crm__segment-card h4 {
  margin: 0;
  font-size: 15px;
}
.player-crm__segment-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.42;
}
.player-crm__segment-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.player-crm__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
  margin-bottom: 10px;
}
.player-crm__form-grid label {
  min-width: 0;
}
.player-crm__broadcast-channel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
  padding: 5px;
  border: 1px solid rgba(199, 163, 106, 0.3);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.28);
}
.player-crm__broadcast-channel-tab {
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(8, 13, 24, 0.72);
  color: var(--text-muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.player-crm__broadcast-channel-tab:hover,
.player-crm__broadcast-channel-tab:focus-visible {
  border-color: rgba(199, 163, 106, 0.64);
  color: var(--text);
  outline: none;
}
.player-crm .player-crm__broadcast-channel-tab--active,
.player-crm .player-crm__broadcast-channel-tab[aria-selected="true"] {
  border-color: #ffd66f !important;
  background: linear-gradient(180deg, #ffe39a, #d9a43f) !important;
  color: #101522 !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 249, 218, 0.9),
    0 0 0 1px rgba(255, 194, 67, 0.38),
    0 6px 18px rgba(211, 158, 56, 0.28) !important;
}
.player-crm__broadcast-actions--send {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 0.7fr) minmax(0, 1fr);
  width: 100%;
}
.player-crm__broadcast-actions--send > button {
  width: 100%;
  min-height: 46px;
}
.player-crm__broadcast-send-main {
  border-color: #4ade80 !important;
  background: linear-gradient(180deg, #4ade80, #16a34a) !important;
  color: #052e16 !important;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(220, 252, 231, 0.58),
    0 7px 20px rgba(22, 163, 74, 0.25);
}
.player-crm__broadcast-send-main:hover,
.player-crm__broadcast-send-main:focus-visible {
  border-color: #86efac !important;
  background: linear-gradient(180deg, #6ee7a0, #22c55e) !important;
  outline: none;
}
.player-crm__message-label {
  margin-bottom: 10px;
}
.player-crm__broadcast-text-counter {
  float: right;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.player-crm__broadcast-text-counter[hidden],
[data-crm-bot-only][hidden],
[data-crm-push-only][hidden] {
  display: none !important;
}
.player-crm__broadcast-format-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  clear: both;
  padding: 7px 0 8px;
}
.player-crm__broadcast-format-toolbar button {
  min-width: 38px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid rgba(199, 163, 106, 0.48);
  border-radius: 9px;
  background: rgba(8, 13, 24, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.player-crm__broadcast-format-toolbar button:hover,
.player-crm__broadcast-format-toolbar button:focus-visible {
  border-color: rgba(199, 163, 106, 0.8);
  background: rgba(199, 163, 106, 0.18);
  outline: none;
}
.player-crm__broadcast-message-wrap {
  position: relative;
  display: block;
  min-width: 0;
}
.player-crm__broadcast-message-wrap textarea {
  display: block;
  width: 100%;
  padding-right: 52px;
}
.player-crm__broadcast-emoji-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(199, 163, 106, 0.48);
  border-radius: 9px;
  background: rgba(8, 13, 24, 0.88);
  color: var(--text);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.player-crm__broadcast-emoji-toggle:hover,
.player-crm__broadcast-emoji-toggle:focus-visible,
.player-crm__broadcast-emoji-toggle[aria-expanded="true"] {
  border-color: rgba(199, 163, 106, 0.8);
  background: rgba(199, 163, 106, 0.18);
  outline: none;
}
.player-crm__broadcast-emoji-panel {
  position: absolute;
  right: 8px;
  bottom: 52px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: min(390px, calc(100% - 16px));
  padding: 8px;
  border: 1px solid rgba(199, 163, 106, 0.3);
  border-radius: 8px;
  background: rgba(8, 13, 24, 0.98);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}
.player-crm__broadcast-emoji-panel[hidden] {
  display: none;
}
.player-crm__broadcast-emoji-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.player-crm__broadcast-emoji-item:hover,
.player-crm__broadcast-emoji-item:focus-visible {
  border-color: rgba(199, 163, 106, 0.62);
  background: rgba(199, 163, 106, 0.16);
  outline: none;
}
.player-crm__broadcast-button-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}
.player-crm__broadcast-button-toggle input[type="checkbox"] {
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  min-width: 16px;
  max-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(199, 163, 106, 0.34);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.34);
  accent-color: var(--accent);
}
.player-crm__push-destination {
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.28);
}
.player-crm__push-destination label {
  display: grid;
  gap: 7px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 900;
}
#playerCrmBroadcastButtonFields[hidden] {
  display: none !important;
}
#playerCrmBroadcastButtonFields2[hidden] {
  display: none !important;
}
.player-crm__broadcast-add-button-row {
  grid-column: 1 / -1;
}
.player-crm__broadcast-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.player-crm__broadcast-filters label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(199, 163, 106, 0.34);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.34);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.player-crm__broadcast-filters input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.player-crm__broadcast-batch-grid {
  margin-bottom: 6px;
}
.player-crm__broadcast-batch-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.player-crm__broadcast-batch-row span {
  min-width: 180px;
}
.player-crm__broadcast-batch-row button {
  min-width: 42px;
  padding-inline: 12px;
}
.player-crm__broadcast-batch-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.player-crm__broadcast-preview-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.player-crm__broadcast-preview-link span {
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.player-crm__broadcast-preview-link {
  margin: 10px 0;
  padding: 9px 10px;
  border: 1px solid rgba(199, 163, 106, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.32);
}
.player-crm__broadcast-preview-link {
  flex-wrap: wrap;
}
.player-crm__broadcast-preview-link strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 12px;
}
.player-crm__broadcast-preview-link em {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-style: normal;
}
.player-crm__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.player-crm__broadcast-attachment {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.28);
}
.player-crm__broadcast-attachment-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.player-crm__broadcast-attachment-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-crm__broadcast-image-preview {
  width: min(260px, 100%);
  overflow: hidden;
  border: 1px solid rgba(199, 163, 106, 0.24);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.44);
}
.player-crm__broadcast-image-preview[hidden] {
  display: none;
}
.player-crm__broadcast-image-preview img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}
.player-crm__broadcast-telegram-image {
  padding: 18px 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
.player-crm__send-result {
  min-height: 42px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}
.player-crm__broadcast-report {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(74, 222, 128, 0.38);
  border-radius: 10px;
  background: rgba(20, 83, 45, 0.14);
}
.player-crm__broadcast-report h4 {
  margin: 0 0 10px;
  color: #86efac;
  font-size: 16px;
}
.player-crm__broadcast-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.player-crm__broadcast-report-grid > span {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.34);
}
.player-crm__broadcast-report-grid small,
.player-crm__broadcast-report-grid strong {
  display: block;
}
.player-crm__broadcast-report-grid small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
}
.player-crm__broadcast-report-grid strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
}
.player-crm__broadcast-report-note {
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}
.player-crm__broadcast-report-refresh {
  width: 100%;
  margin-top: 9px;
}
.player-crm__broadcast-report-ok {
  margin-top: 9px;
  color: #86efac;
  font-weight: 800;
}
.player-crm__broadcast-report-problems {
  margin-top: 10px;
}
.player-crm__broadcast-report-problems summary {
  color: #fca5a5;
  font-weight: 900;
  cursor: pointer;
}
.player-crm__broadcast-report-problems p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 10px;
  margin: 7px 0 0;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(127, 29, 29, 0.14);
}
.player-crm__broadcast-report-problems span {
  color: var(--text-muted);
}
@media (max-width: 620px) {
  .player-crm__broadcast-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .player-crm__broadcast-report-problems p {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
.player-crm__send-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.player-crm__delivery-log {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.player-crm__delivery-log summary {
  cursor: pointer;
  color: var(--text);
}
.player-crm__delivery-log div {
  max-height: 260px;
  margin-top: 8px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}
.player-crm__delivery-log table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.player-crm__delivery-log th,
.player-crm__delivery-log td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
  white-space: nowrap;
}
.player-crm__delivery-log th {
  color: var(--text);
}
.player-crm__campaigns {
  margin-top: 12px;
}
.player-crm__broadcast-preview-body {
  grid-template-rows: minmax(0, 1fr);
  padding: 12px;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.12), transparent 32%),
    rgba(2, 6, 23, 0.28);
}
.player-crm__broadcast-preview-scroll {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.player-crm__broadcast-preview-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.player-crm__broadcast-preview-meta span {
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.46);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.player-crm__broadcast-preview-meta strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-crm__recipient-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 12px;
  align-items: start;
}
.player-crm__recipient-preview-grid--bot-only,
.player-crm__recipient-preview-grid--push-only {
  grid-template-columns: minmax(0, 1fr);
}
.player-crm__recipient-phone {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96)),
    #020617;
}
.player-crm__recipient-phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 900;
}
.player-crm__recipient-phone-head span {
  color: var(--text-muted);
  font-size: 11px;
}
.player-crm__recipient-chat {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-height: 280px;
  padding: 14px;
  background:
    radial-gradient(circle at 80% 0%, rgba(199, 163, 106, 0.12), transparent 30%),
    rgba(2, 6, 23, 0.5);
}
.player-crm__recipient-bubble {
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid rgba(199, 163, 106, 0.2);
  border-radius: 8px;
  background: rgba(23, 37, 84, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}
.player-crm__recipient-bubble img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}
.player-crm__recipient-bubble-text {
  margin: 0;
  padding: 10px 12px;
  color: #fff7ed;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.player-crm__recipient-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0 10px 10px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  color: #eff6ff;
  font-size: 13px;
  font-weight: 900;
}
.player-crm__recipient-open-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 10px 10px;
}
.player-crm__recipient-open-buttons .player-crm__recipient-open-btn {
  flex: 1 1 110px;
  min-width: 0;
  margin: 0;
}
.player-crm__push-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.player-crm__push-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 231, 160, 0.94), rgba(217, 158, 58, 0.92)),
    #d99e3a;
  color: #0b1220;
  font-size: 22px;
  font-weight: 900;
  line-height: 42px;
  text-align: center;
}
.player-crm__push-card strong {
  display: block;
  margin-bottom: 3px;
  color: #e5e7eb;
  font-size: 14px;
}
.player-crm__push-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.player-crm__links {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}
.player-crm__links-builder {
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.35);
}
.player-crm__links-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.player-crm__links-result:empty {
  display: none;
}
.player-crm__links-list {
  min-width: 0;
  max-width: 100%;
}
.player-crm__links-table {
  min-width: 1040px;
}
.player-crm__links-url-btn {
  display: block;
  max-width: 360px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  text-decoration: underline;
  text-decoration-color: rgba(199, 163, 106, 0.55);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.player-crm__links-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.player-crm__links-action-row .player-crm__ghost-btn,
.player-crm__links-action-row .player-crm__primary-btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.player-crm__link-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.player-crm__link-detail-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
}
.player-crm__link-detail-item small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.player-crm__link-detail-item strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
}
.player-crm__link-detail-json {
  max-height: 220px;
  overflow: auto;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.5);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.player-crm__bar {
  display: grid;
  gap: 5px;
}
.player-crm__bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 64px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.player-crm__bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}
.player-crm__bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #34d399);
}
.player-crm__source-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.player-crm__source-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 12px;
}
.player-crm__registrations-table {
  min-width: 900px;
}
.player-crm__pokerplus-table {
  min-width: 1040px;
}
.player-crm__pokerplus-table--modal {
  min-width: 0;
  table-layout: fixed;
  font-size: 10px;
  line-height: 1.15;
}
.player-crm__pokerplus-table--modal th,
.player-crm__pokerplus-table--modal td {
  height: auto !important;
  padding: 4px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-crm__pokerplus-table--modal th {
  white-space: normal;
  vertical-align: bottom;
}
.player-crm__pokerplus-table--modal td { white-space: nowrap; }
.player-crm__pokerplus-table--modal .player-crm__sort-btn {
  min-height: 18px;
  gap: 2px;
  line-height: 1.1;
}
.player-crm__pokerplus-table--modal th:nth-child(1),
.player-crm__pokerplus-table--modal td:nth-child(1) { width: 23%; }
.player-crm__pokerplus-table--modal th:nth-child(2),
.player-crm__pokerplus-table--modal td:nth-child(2) { width: 13%; }
.player-crm__pokerplus-table--modal th:nth-child(3),
.player-crm__pokerplus-table--modal td:nth-child(3) { width: 17%; }
.player-crm__pokerplus-table--modal th:nth-child(4),
.player-crm__pokerplus-table--modal td:nth-child(4) { width: 7%; text-align: right; }
.player-crm__pokerplus-table--modal th:nth-child(5),
.player-crm__pokerplus-table--modal td:nth-child(5) { width: 15%; text-align: right; overflow: visible; text-overflow: clip; }
.player-crm__pokerplus-table--modal th:nth-child(6),
.player-crm__pokerplus-table--modal td:nth-child(6) { width: 13%; text-align: right; overflow: visible; text-overflow: clip; }
.player-crm__pokerplus-table--modal th:nth-child(7),
.player-crm__pokerplus-table--modal td:nth-child(7) { width: 12%; white-space: normal; overflow-wrap: anywhere; }
.player-crm__channel-table {
  min-width: 820px;
}
.player-crm__channel-table--modal {
  min-width: 0;
  table-layout: fixed;
  font-size: 11px;
}
.player-crm__channel-table--modal th,
.player-crm__channel-table--modal td {
  padding: 6px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-crm__channel-table--modal th:nth-child(1),
.player-crm__channel-table--modal td:nth-child(1) { width: 30%; }
.player-crm__channel-table--modal th:nth-child(2),
.player-crm__channel-table--modal td:nth-child(2) { width: 24%; }
.player-crm__channel-table--modal th:nth-child(3),
.player-crm__channel-table--modal td:nth-child(3) { width: 25%; }
.player-crm__channel-table--modal th:nth-child(4),
.player-crm__channel-table--modal td:nth-child(4) { width: 21%; white-space: normal; overflow-wrap: normal; word-break: normal; }
.player-crm__daily-winners-list { display: grid; gap: 8px; }
.player-crm__daily-winners-spoiler {
  overflow: hidden;
  border: 1px solid rgba(199, 163, 106, 0.34);
  border-radius: 10px;
  background: rgba(7, 12, 22, 0.52);
}
.player-crm__daily-winners-spoiler > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}
.player-crm__daily-winners-spoiler > summary::-webkit-details-marker { display: none; }
.player-crm__daily-winners-spoiler > summary::before { content: "▸"; }
.player-crm__daily-winners-spoiler[open] > summary::before { content: "▾"; }
.player-crm__daily-winners-spoiler > summary b {
  margin-left: auto;
  color: var(--text);
}
.player-crm__daily-winners-spoiler > .player-crm__daily-winners-list {
  padding: 0 8px 8px;
}
.player-crm__daily-winner {
  padding: 10px 12px;
  border: 1px solid rgba(94, 167, 61, 0.34);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(23, 58, 31, 0.34), rgba(8, 17, 23, 0.76));
}
.player-crm__daily-winner-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.player-crm__daily-winner-head strong { color: #82cf61; font-size: 13px; }
.player-crm__daily-winner-head span { color: var(--text-muted); font-size: 10px; white-space: nowrap; }
.player-crm__daily-winner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px 12px;
}
.player-crm__daily-winner-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 9px;
}
.player-crm__daily-winner-grid b { overflow-wrap: anywhere; color: var(--text); font-size: 11px; }
.player-crm__raffle-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.player-crm__raffle-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.player-crm__raffle-tabs button {
  padding: 7px 13px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.48);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}
.player-crm__raffle-tabs button b {
  margin-left: 4px;
  color: inherit;
}
.player-crm__raffle-tabs button.is-active {
  border-color: rgba(130, 207, 97, 0.72);
  background: rgba(94, 167, 61, 0.2);
  color: #9ae678;
}
.player-crm__raffle-return {
  grid-template-columns: 24px minmax(80px, 1fr) minmax(105px, 1fr) minmax(135px, 1.25fr) minmax(150px, 1.35fr) minmax(105px, 0.9fr) minmax(110px, 0.9fr) minmax(90px, 0.75fr);
}
.player-crm__daily-return {
  grid-template-columns: 24px minmax(80px, 1fr) minmax(110px, 1fr) minmax(145px, 1.35fr) minmax(150px, 1.3fr) minmax(120px, 1fr) minmax(90px, 0.8fr);
}
.player-crm__raffle-return .player-crm__raffle-return-kind {
  display: grid;
  gap: 1px;
  color: #82cf61;
}
.player-crm__raffle-return .player-crm__raffle-recipient-total {
  color: #9ae678;
}
.player-crm__raffle-sort span {
  margin-right: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
}
.player-crm__raffle-sort button {
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.48);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}
.player-crm__raffle-sort button.is-active {
  border-color: rgba(130, 207, 97, 0.72);
  background: rgba(94, 167, 61, 0.2);
  color: #9ae678;
}
.player-crm__raffle-recipient {
  display: grid;
  grid-template-columns: 24px minmax(80px, 1fr) minmax(110px, 1.15fr) minmax(145px, 1.4fr) minmax(75px, 0.7fr) minmax(75px, 0.7fr) minmax(90px, 0.8fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}
.player-crm__raffle-recipient-number {
  color: var(--text-muted);
  font-size: 10px;
  text-align: center;
}
.player-crm__raffle-recipient-name {
  min-width: 0;
  overflow: hidden;
  color: #82cf61;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-crm__raffle-recipient span {
  display: flex;
  min-width: 0;
  gap: 4px;
  color: var(--text-muted);
  font-size: 9px;
  white-space: nowrap;
}
.player-crm__raffle-recipient span b {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
}
.player-crm__raffle-recipient .player-crm__raffle-recipient-cash,
.player-crm__raffle-recipient .player-crm__raffle-recipient-tickets {
  align-self: stretch;
  align-items: center;
  padding: 5px 7px;
  border-radius: 7px;
}
.player-crm__raffle-recipient .player-crm__raffle-recipient-cash {
  border: 1px solid rgba(59, 130, 246, 0.34);
  background: rgba(37, 99, 235, 0.14);
  color: #7fb4ff;
}
.player-crm__raffle-recipient .player-crm__raffle-recipient-cash b {
  color: #b9d6ff;
}
.player-crm__raffle-recipient .player-crm__raffle-recipient-tickets {
  border: 1px solid rgba(245, 190, 65, 0.38);
  background: rgba(217, 158, 58, 0.14);
  color: #e9bd59;
}
.player-crm__raffle-recipient .player-crm__raffle-recipient-tickets b {
  color: #ffe29a;
}
.player-crm__raffle-recipient-total {
  color: var(--text);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .player-crm__daily-winner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-crm__raffle-recipient {
    grid-template-columns: 16px minmax(58px, 0.9fr) minmax(72px, 1fr) minmax(82px, 1.15fr) minmax(48px, 0.65fr) minmax(48px, 0.65fr) minmax(58px, 0.7fr);
    gap: 4px;
    padding: 7px 6px;
  }
  .player-crm__raffle-return {
    grid-template-columns: 16px minmax(58px, 0.9fr) minmax(70px, 1fr) minmax(82px, 1.15fr) minmax(90px, 1.25fr) minmax(65px, 0.8fr) minmax(72px, 0.85fr) minmax(58px, 0.7fr);
  }
  .player-crm__daily-return {
    grid-template-columns: 16px minmax(58px, 0.9fr) minmax(72px, 1fr) minmax(85px, 1.15fr) minmax(95px, 1.2fr) minmax(80px, 1fr) minmax(58px, 0.7fr);
  }
  .player-crm__raffle-recipient span { display: grid; gap: 1px; font-size: 7px; }
  .player-crm__raffle-recipient span b { font-size: 8px; }
  .player-crm__raffle-recipient-name,
  .player-crm__raffle-recipient-total { font-size: 9px; }
  .player-crm__raffle-recipient-number { font-size: 8px; }
}
.player-crm__visits-table {
  min-width: 920px;
}
.player-crm__campaigns-table {
  min-width: 1320px;
}
.player-crm__visit-sections-table {
  width: max-content;
  min-width: 330px;
  max-width: 100%;
}
.player-crm__visit-sections-table th:nth-child(2),
.player-crm__visit-sections-table th:nth-child(3),
.player-crm__visit-sections-table td:nth-child(2),
.player-crm__visit-sections-table td:nth-child(3) {
  width: 1%;
  padding-left: 18px;
  text-align: right;
}
.player-crm__analytics-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 11px;
}
.player-crm__analytics-table th,
.player-crm__analytics-table td {
  padding: 5px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-crm__analytics-table th:first-child,
.player-crm__analytics-table td:first-child {
  width: 34%;
  padding-left: 2px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.player-crm__analytics-table th:not(:first-child),
.player-crm__analytics-table td:not(:first-child) {
  width: 16.5%;
  text-align: right;
}
.player-crm__analytics-table tbody td:first-child {
  font-size: 16px;
}
.player-crm__analytics-table tbody td:not(:first-child) {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 620px) {
  .player-crm__analytics-breakdown { padding: 9px; }
  .player-crm__analytics-table { font-size: 9px; }
  .player-crm__analytics-table th,
  .player-crm__analytics-table td { padding: 4px 3px; }
  .player-crm__analytics-table th:first-child,
  .player-crm__analytics-table td:first-child { width: 30%; }
  .player-crm__analytics-table th:not(:first-child),
  .player-crm__analytics-table td:not(:first-child) { width: 17.5%; }
  .player-crm__analytics-table tbody td:first-child { font-size: 16px; }
  .player-crm__analytics-table tbody td:not(:first-child) { font-size: 16px; }
}
.player-crm__table-link {
  display: inline;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(199, 163, 106, 0.55);
  text-underline-offset: 3px;
}
.player-crm__pokerplus-filters {
  margin-bottom: 12px;
}
.player-crm__registration-filters {
  margin-bottom: 12px;
}
.player-crm__source-table th,
.player-crm__source-table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  text-align: left;
  white-space: nowrap;
}
.player-crm__source-table th:first-child,
.player-crm__source-table td:first-child {
  padding-left: 4px;
}
.player-crm__source-table th {
  color: var(--text-muted);
  font-weight: 800;
}
.player-crm__sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}
.player-crm__sort-btn:focus-visible {
  outline: 2px solid rgba(248, 217, 138, 0.7);
  outline-offset: 3px;
}
.player-crm__sort-mark {
  min-width: 11px;
  color: rgba(248, 217, 138, 0.58);
  font-size: 10px;
  line-height: 1;
  text-align: center;
}
.player-crm__sort-btn--active .player-crm__sort-mark {
  color: var(--accent);
}
.footer-admin-visitors__btn--primary {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.14);
}
@media (max-width: 760px) {
  .player-crm__hero {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .player-crm__hero-copy {
    flex: 0 0 auto;
  }
  .player-crm__hero-tools {
    flex: 1 1 210px;
    justify-content: flex-end;
  }
  .player-crm__period {
    flex: 1 1 120px;
    min-width: 120px;
  }
  .player-crm__date-range-field {
    flex-basis: 100%;
    min-width: 0;
  }
  .player-crm__range-calendar {
    right: auto;
    left: 0;
    width: min(100%, calc(100vw - 32px));
  }
  .player-crm__hero-tools #playerCrmRefreshBtn {
    flex: 0 0 auto;
  }
  .player-crm__stats-grid,
  .player-crm__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .player-crm__workbench,
  .player-crm__players-grid,
  .player-crm__list,
  .player-crm__form-grid,
  .player-crm__links-form-grid,
  .player-crm__link-detail-grid {
    grid-template-columns: 1fr;
  }
  .player-crm__queue-item {
    grid-template-columns: 1fr;
  }
  .player-crm__bar-row {
    grid-template-columns: 88px 1fr 50px;
  }
}
@media (max-width: 420px) {
  .player-crm__stats-grid,
  .player-crm__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .player-crm__tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
  }
  .player-crm__stat-value {
    font-size: 19px;
  }
  .player-crm__tab {
    min-height: 40px;
    padding: 7px 4px;
    font-size: 10px;
  }
}
@media (max-width: 680px) {
  .player-crm__broadcast-preview-meta,
  .player-crm__recipient-preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .player-crm__recipient-chat {
    min-height: 220px;
    padding: 10px;
  }
  .player-crm__recipient-bubble img {
    max-height: 240px;
  }
}

/* Period analytics always stay three-up, including narrow admin WebViews. */
.player-crm .player-crm__period-metrics {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  width: 100% !important;
  min-width: 0 !important;
}
.player-crm .player-crm__period-metrics--three {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 8px;
  width: 100% !important;
  min-width: 0 !important;
}
.player-crm .player-crm__period-metrics--three > .player-crm__period-metric {
  box-sizing: border-box !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}
.player-crm .player-crm__period-metric--audience,
.player-crm .player-crm__period-metric--registration {
  grid-column: span 3;
}
.player-crm .player-crm__period-metric--activity {
  grid-column: span 3;
}
.player-crm .player-crm__period-metric--engagement {
  grid-column: span 2;
}
.player-crm .player-crm__stats-grid--current {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: 100% !important;
  min-width: 0 !important;
}
[data-view="player-crm"] .player-crm__stats-grid--current {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: 100% !important;
  min-width: 0 !important;
}
.player-crm .player-crm__stats-grid--current .player-crm__stat {
  min-height: 94px;
}
.player-crm .player-crm__stats-grid--current .player-crm__stat-value {
  position: absolute;
  left: 10px;
  bottom: 10px;
  margin-top: 0;
}
@media (max-width: 620px) {
  .player-crm .player-crm__stats-grid--current,
  [data-view="player-crm"] .player-crm__stats-grid--current { gap: 5px; }
  .player-crm .player-crm__stats-grid--current .player-crm__stat { padding: 9px 7px; }
  .player-crm .player-crm__stats-grid--current .player-crm__stat-label { font-size: 8px; }
  .player-crm .player-crm__stats-grid--current .player-crm__stat-value { left: 7px; bottom: 9px; font-size: 17px; }
}
.player-crm .player-crm__period-metric {
  min-width: 0 !important;
}
@media (max-width: 520px) {
  .player-crm .player-crm__period-metrics,
  .player-crm .player-crm__period-metrics--three {
    gap: 5px;
  }
  .player-crm .player-crm__period-metrics--three > .player-crm__period-metric {
    width: auto !important;
    max-width: none !important;
  }
  .player-crm .player-crm__period-metric {
    min-height: 104px;
    padding: 10px 7px 10px 10px;
  }
  .player-crm .player-crm__period-metric span {
    font-size: 9px;
  }
}
