body.player-v2-open {
  overflow: hidden;
}

.player-v2-shell {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100dvh;
  color: #0d1b33;
  background: #f5f7fb;
  overflow: hidden;
}

.player-v2-sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  min-height: 0;
  padding: 20px 14px;
  color: #ffffff;
  background: linear-gradient(180deg, #062a55 0%, #02162d 100%);
}

.player-v2-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-v2-brand > span {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  font-weight: 950;
}

.player-v2-brand strong,
.player-v2-brand small {
  display: block;
}

.player-v2-brand strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.player-v2-brand small {
  margin-top: 2px;
  color: #8fd3ff;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.player-v2-nav {
  display: grid;
  align-content: start;
  gap: 7px;
  overflow: auto;
}

.player-v2-nav span,
.player-v2-nav button {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.player-v2-nav span.active,
.player-v2-nav button.active {
  background: #0b58f4;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(8, 84, 244, 0.34);
}

.player-v2-nav button:hover,
.player-v2-nav button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  outline: 0;
}

.player-v2-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 16px 22px 24px;
}

.player-v2-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.player-v2-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #526176;
  font-size: 0.85rem;
  font-weight: 800;
}

.player-v2-breadcrumb span::after {
  content: ">";
  margin-left: 10px;
  color: #8190a5;
}

.player-v2-breadcrumb strong {
  color: #101b2f;
}

.player-v2-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.player-v2-search {
  position: relative;
  display: block;
  width: clamp(190px, 22vw, 320px);
}

.player-v2-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.player-v2-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dfe5ee;
  border-radius: 7px;
  padding: 0 12px;
  background: #ffffff;
  color: #12203a;
  font: inherit;
  font-size: 0.84rem;
}

.player-v2-summary,
.player-v2-card,
.player-v2-note-card,
.player-v2-reminder-card {
  border: 1px solid #e2e7f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(22, 40, 72, 0.07);
}

.player-v2-summary {
  display: grid;
  grid-template-columns: auto minmax(220px, 0.8fr) minmax(420px, 1.2fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
  margin-bottom: 14px;
}

.player-v2-photo {
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 1;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #d6f2ff 0 18%, transparent 19%),
    linear-gradient(140deg, #0a58f4, #0b2447 64%, #16a34a);
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 12px 26px rgba(8, 59, 132, 0.18);
}

.player-v2-identity {
  min-width: 0;
}

.player-v2-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.player-v2-name-line h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.player-v2-identity p {
  margin: 7px 0 0;
  color: #182842;
  font-size: 0.87rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.player-v2-identity p strong {
  color: #0f1f39;
  font-weight: 900;
}

.player-v2-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 0;
  min-width: 0;
}

.player-v2-metrics div {
  min-width: 0;
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 0 14px;
  border-left: 1px solid #e4e9f2;
}

.player-v2-metrics span,
.player-v2-card-head h3,
.player-v2-facts dt,
.player-v2-totals span,
.player-v2-pause-strip span {
  margin: 0;
  color: #14213d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.player-v2-metrics strong {
  color: #0e8f3d;
  font-size: 0.87rem;
  font-weight: 950;
}

.player-v2-metrics small {
  color: #ef1f1f;
  font-size: 0.76rem;
  font-weight: 900;
}

.danger-text {
  color: #e11d48 !important;
}

.player-v2-tabs {
  display: flex;
  gap: 22px;
  padding: 0 16px;
  border-bottom: 1px solid #dfe5ef;
  overflow-x: auto;
}

.player-v2-tabs button {
  min-height: 48px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #14213d;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.player-v2-tabs button.active {
  border-bottom-color: #0b58f4;
  color: #0b45c9;
}

.player-v2-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 18px;
  align-items: start;
  padding-top: 14px;
}

.player-v2-primary,
.player-v2-billing-grid,
.player-v2-overview-grid {
  min-width: 0;
}

.player-v2-tab-panel {
  display: none;
}

.player-v2-tab-panel.active {
  display: block;
}

.player-v2-billing-grid,
.player-v2-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 12px;
}

.player-v2-wide-card {
  grid-column: 1 / -1;
}

.player-v2-card,
.player-v2-note-card,
.player-v2-reminder-card {
  padding: 14px;
}

.player-v2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.player-v2-card-head h3 {
  color: #4318b8;
  font-size: 0.96rem;
}

.player-v2-card-head strong {
  color: #0b58f4;
  font-size: 0.9rem;
}

.player-v2-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.player-v2-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: #111827;
  font-size: 0.82rem;
}

.player-v2-billing-table {
  min-width: 860px;
}

.player-v2-card:not(.player-v2-wide-card) .player-v2-table {
  min-width: 0;
  font-size: 0.72rem;
}

.player-v2-table th,
.player-v2-table td {
  padding: 12px 10px;
  border: 1px solid #e6ebf3;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.player-v2-card:not(.player-v2-wide-card) .player-v2-table th,
.player-v2-card:not(.player-v2-wide-card) .player-v2-table td {
  padding: 9px 5px;
}

.player-v2-table th {
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 950;
}

.player-v2-table td:first-child,
.player-v2-table th:first-child {
  text-align: left;
}

.player-v2-badge,
.player-v2-size-chip {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: #eef2f7;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 950;
}

.player-v2-badge.success {
  background: #dff8e8;
  color: #087436;
}

.player-v2-badge.warning {
  background: #fff3d8;
  color: #b45309;
}

.player-v2-badge.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.player-v2-size-chip {
  background: #dfe9ff;
  color: #1948c2;
}

.player-v2-actions,
.player-v2-billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-v2-action,
.player-v2-back,
.player-v2-link-action {
  border: 1px solid #cdd8ea;
  border-radius: 7px;
  background: #ffffff;
  color: #0b45c9;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}

.player-v2-back {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.player-v2-action.primary {
  border-color: #0b58f4;
  background: #0b58f4;
  color: #ffffff;
}

.player-v2-action.danger {
  color: #b91c1c;
}

.player-v2-link-action {
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  background: transparent;
}

.player-v2-pause-strip {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto minmax(80px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #e5ebf4;
  border-radius: 7px;
  background: #fbfcff;
  font-size: 0.82rem;
}

.player-v2-pause-strip strong {
  color: #0d1b33;
}

.player-v2-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid #e4e9f2;
  border-radius: 7px;
  overflow: hidden;
}

.player-v2-totals div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  text-align: center;
  border-left: 1px solid #e4e9f2;
}

.player-v2-totals div:first-child {
  border-left: 0;
}

.player-v2-totals strong {
  color: #e11d48;
  font-size: 1.04rem;
  font-weight: 950;
}

.player-v2-totals div:nth-child(2) strong {
  color: #0e8f3d;
}

.player-v2-totals.compact {
  margin-top: 12px;
}

.player-v2-totals.compact strong {
  color: #0d1b33;
  font-size: 0.94rem;
}

.player-v2-rail {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.player-v2-rail-card {
  display: grid;
  gap: 12px;
}

.player-v2-note-card {
  background: #fff7df;
}

.player-v2-reminder-card {
  background: #eefbf1;
}

.player-v2-note-card h3,
.player-v2-reminder-card h3 {
  margin: 0 0 10px;
  color: #13233d;
  font-size: 0.96rem;
}

.player-v2-note-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #1f2f48;
  font-size: 0.82rem;
  line-height: 1.45;
}

.player-v2-reminder-card p {
  margin: 0 0 12px;
  color: #24364f;
  font-size: 0.84rem;
  line-height: 1.45;
}

.player-v2-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.player-v2-facts div {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f7;
}

.player-v2-facts.compact div {
  grid-template-columns: 96px minmax(0, 1fr);
}

.player-v2-facts div:last-child {
  border-bottom: 0;
}

.player-v2-facts dd {
  min-width: 0;
  margin: 0;
  color: #10213d;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.player-v2-facts a {
  color: #0b45c9;
}

.player-v2-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #263852;
  font-size: 0.84rem;
}

.player-v2-attendance-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 8px;
  height: 150px;
  padding: 14px;
  border-radius: 7px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
}

.player-v2-attendance-bars span {
  min-height: 10px;
  height: var(--bar, 10%);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #0b58f4, #22c55e);
}

.player-v2-attendance-card {
  overflow: hidden;
}

.player-v2-attendance-calendar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 176px;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  background: #f8fbff;
  overflow-x: auto;
}

.player-v2-month-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e6ebf3;
  border-radius: 8px;
  background: #ffffff;
}

.player-v2-month-card > div:first-child {
  display: grid;
  gap: 2px;
}

.player-v2-month-card strong {
  color: #0d1b33;
  font-size: 0.86rem;
}

.player-v2-month-card small {
  color: #0b58f4;
  font-size: 0.72rem;
  font-weight: 850;
}

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

.player-v2-weekdays span {
  color: rgba(15, 34, 64, 0.42);
  font-size: 0.66rem;
  font-weight: 900;
  text-align: center;
}

.player-v2-month-grid span {
  display: grid;
  place-items: center;
  min-height: 22px;
  border-radius: 7px;
  background: #f1f5f9;
  color: rgba(15, 34, 64, 0.74);
  font-size: 0.68rem;
  font-weight: 760;
}

.player-v2-month-grid span.present {
  background: rgba(11, 88, 244, 0.13);
  color: #0b45c9;
  font-weight: 950;
}

.player-v2-month-grid span.empty {
  background: transparent;
  color: transparent;
}

.player-v2-timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.player-v2-timeline-filters button {
  min-height: 30px;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #ffffff;
  color: #40536f;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0 10px;
  cursor: pointer;
}

.player-v2-timeline-filters button.active {
  border-color: #0b58f4;
  background: #0b58f4;
  color: #ffffff;
}

.player-v2-timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player-v2-timeline li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #e6ebf3;
  border-radius: 7px;
  background: #ffffff;
}

.player-v2-timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 5px rgba(100, 116, 139, 0.12);
}

.player-v2-timeline-dot.success {
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
}

.player-v2-timeline-dot.warning {
  background: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.14);
}

.player-v2-timeline-dot.danger {
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
}

.player-v2-timeline strong {
  display: block;
  color: #10213d;
}

.player-v2-timeline small,
.player-v2-timeline p,
.player-v2-empty,
.player-v2-empty-cell {
  margin: 4px 0 0;
  color: #5f7087;
  font-size: 0.82rem;
  line-height: 1.45;
}

.player-v2-single-card {
  display: block;
}

@media (max-width: 1180px) {
  .player-v2-shell {
    grid-template-columns: 184px minmax(0, 1fr);
  }

  .player-v2-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .player-v2-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .player-v2-content {
    grid-template-columns: 1fr;
  }

  .player-v2-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .player-v2-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow: auto;
  }

  .player-v2-sidebar {
    position: sticky;
    top: 0;
    z-index: 3;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    min-height: auto;
    padding: 12px;
  }

  .player-v2-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .player-v2-nav span {
    min-height: 34px;
    white-space: nowrap;
  }

  .player-v2-back {
    width: auto;
    min-width: 118px;
  }

  .player-v2-main {
    overflow: visible;
    padding: 12px;
  }

  .player-v2-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-v2-top-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .player-v2-search {
    width: min(100%, 360px);
  }

  .player-v2-summary {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .player-v2-photo {
    width: 78px;
    font-size: 1.45rem;
  }

  .player-v2-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-v2-metrics div {
    border-left: 0;
    border-top: 1px solid #e4e9f2;
    padding: 10px 0;
  }

  .player-v2-billing-grid,
  .player-v2-overview-grid,
  .player-v2-rail {
    grid-template-columns: 1fr;
  }

  .player-v2-pause-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .player-v2-sidebar {
    gap: 12px;
  }

  .player-v2-brand > span {
    width: 40px;
  }

  .player-v2-brand strong {
    font-size: 0.9rem;
  }

  .player-v2-brand small {
    font-size: 0.68rem;
  }

  .player-v2-nav {
    display: none;
  }

  .player-v2-main {
    padding: 10px;
  }

  .player-v2-summary {
    grid-template-columns: 1fr;
  }

  .player-v2-photo {
    width: 72px;
  }

  .player-v2-name-line h2 {
    font-size: 1.35rem;
  }

  .player-v2-metrics {
    grid-template-columns: 1fr;
  }

  .player-v2-tabs {
    gap: 14px;
    padding: 0 6px;
  }

  .player-v2-tabs button {
    min-height: 42px;
    font-size: 0.8rem;
  }

  .player-v2-actions,
  .player-v2-billing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .player-v2-action,
  .player-v2-back {
    min-height: 38px;
    padding: 0 9px;
  }

  .player-v2-card,
  .player-v2-note-card,
  .player-v2-reminder-card {
    padding: 12px;
  }

  .player-v2-totals,
  .player-v2-facts div,
  .player-v2-facts.compact div {
    grid-template-columns: 1fr;
  }

  .player-v2-attendance-calendar {
    grid-auto-columns: 164px;
    padding: 10px;
  }

  .player-v2-totals div {
    border-left: 0;
    border-top: 1px solid #e4e9f2;
  }

  .player-v2-totals div:first-child {
    border-top: 0;
  }

  .player-v2-pause-strip {
    grid-template-columns: 1fr;
  }
}
