.studio-dashboard-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  margin: 0 0 14px;
  background: #e8efed;
  border: 1px solid #bfd4e8;
  border-radius: 8px;
}

.studio-dashboard-tab {
  flex: 1 1 0;
  min-width: 132px;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: transparent;
  color: #0b2239;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.studio-dashboard-tab.active {
  background: #1e7ec2;
  color: #fff;
}

.studio-dashboard-panel[data-studio-tab="installed"] .studio-dashboard-web-zone,
.studio-dashboard-panel[data-studio-tab="installed"] .studio-player-dashboard-panel,
.studio-dashboard-panel[data-studio-tab="installed"] .studio-dashboard-downloads-panel,
.studio-dashboard-panel[data-studio-tab="player"] .studio-dashboard-hero-action,
.studio-dashboard-panel[data-studio-tab="player"] .studio-dashboard-sections,
.studio-dashboard-panel[data-studio-tab="player"] .studio-dashboard-web-zone,
.studio-dashboard-panel[data-studio-tab="player"] .studio-dashboard-vehicle-panel,
.studio-dashboard-panel[data-studio-tab="player"] .studio-dashboard-downloads-panel,
.studio-dashboard-panel[data-studio-tab="web"] .studio-dashboard-hero-action,
.studio-dashboard-panel[data-studio-tab="web"] .studio-dashboard-installed-zone,
.studio-dashboard-panel[data-studio-tab="web"] .studio-player-dashboard-panel,
.studio-dashboard-panel[data-studio-tab="web"] .studio-dashboard-downloads-panel,
.studio-dashboard-panel[data-studio-tab="downloads"] .studio-dashboard-hero-action,
.studio-dashboard-panel[data-studio-tab="downloads"] .studio-dashboard-sections,
.studio-dashboard-panel[data-studio-tab="downloads"] .studio-dashboard-web-zone,
.studio-dashboard-panel[data-studio-tab="downloads"] .studio-player-dashboard-panel,
.studio-dashboard-panel[data-studio-tab="downloads"] .studio-dashboard-vehicle-panel {
  display: none !important;
}

.studio-dashboard-panel[data-studio-tab="installed"] .studio-dashboard-sections,
.studio-dashboard-panel[data-studio-tab="web"] .studio-dashboard-sections {
  grid-template-columns: minmax(0, 1fr);
}

.studio-dashboard-hero-action,
.studio-dashboard-web-launch-card,
.studio-player-dashboard-panel,
.studio-dashboard-downloads-panel {
  border: 1px solid #bfd4e8;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.studio-dashboard-web-launch-card {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.studio-dashboard-web-launch-card span {
  display: block;
  color: #24486a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.studio-dashboard-web-launch-card h3 {
  margin: 2px 0 5px;
  color: #0b2239;
  font-size: 20px;
}

.studio-dashboard-web-launch-card p {
  margin: 0;
  color: #24486a;
  line-height: 1.35;
}

.studio-dashboard-web-launch-card button {
  border: 1px solid #1e7ec2;
  background: #1e7ec2;
  color: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.studio-dashboard-tab-status {
  min-height: 22px;
  color: #1e7ec2;
  font-size: 13px;
  font-weight: 800;
}

.studio-dashboard-tab-status.error {
  color: #9b1c1c;
}

.studio-tab-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.studio-tab-panel-heading span {
  display: block;
  color: #24486a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.studio-tab-panel-heading h3 {
  margin: 2px 0 0;
  color: #0b2239;
  font-size: 20px;
}

.studio-tab-panel-heading button,
.studio-player-row-actions button {
  border: 1px solid #1e7ec2;
  background: #1e7ec2;
  color: #fff;
  border-radius: 6px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.studio-tab-panel-heading button:disabled,
.studio-player-row-actions button:disabled {
  background: #d8e3ee;
  border-color: #c6d4e2;
  color: #52677c;
  cursor: not-allowed;
}

.studio-player-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.studio-player-metric-card,
.studio-player-info-panel,
.studio-player-vehicle-table-panel {
  border: 1px solid #bfd4e8;
  border-radius: 8px;
  background: #f8fbff;
}

.studio-player-metric-card {
  padding: 12px;
  min-height: 86px;
}

.studio-player-metric-card span,
.studio-player-info-panel h4 {
  display: block;
  color: #24486a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.studio-player-metric-card strong {
  display: block;
  margin: 4px 0;
  color: #0b2239;
  font-size: 26px;
}

.studio-player-metric-card em {
  color: #27496b;
  font-size: 12px;
  font-style: normal;
}

.studio-player-vehicles {
  margin-bottom: 14px;
}

.studio-player-vehicle-table-panel {
  overflow: hidden;
  background: #fff;
}

.studio-player-table-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.studio-player-table-head h4 {
  margin: 0;
  color: #0b2239;
  font-size: 20px;
}

.studio-player-table-head span {
  display: block;
  margin-top: 2px;
  color: #516c86;
  font-size: 13px;
  font-weight: 800;
}

.studio-player-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #d4e3f0;
  border-bottom: 1px solid #d4e3f0;
  background: #f8fbff;
}

.studio-player-filter-bar label {
  display: grid;
  gap: 6px;
  color: #24486a;
  font-size: 12px;
  font-weight: 900;
}

.studio-player-filter-bar input,
.studio-player-filter-bar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c7d7e6;
  border-radius: 6px;
  background: #fff;
  color: #0b2239;
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
}

.studio-player-table-wrap {
  overflow-x: auto;
}

.studio-player-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  color: #0b2239;
}

.studio-player-table th {
  padding: 12px 12px;
  background: #eaf2f9;
  border-bottom: 1px solid #c9dae9;
  color: #456075;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.studio-player-table td {
  padding: 12px;
  border-bottom: 1px solid #d7e4ef;
  color: #24486a;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

.studio-player-table td:first-child strong {
  color: #061a2d;
  font-size: 14px;
}

.studio-player-table-empty {
  text-align: center;
  color: #52677c !important;
  font-weight: 800;
}

.studio-player-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e9f3fb;
  color: #24486a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.studio-player-pill.good {
  background: #dff5eb;
  color: #08713c;
}

.studio-player-row-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.studio-player-row-actions button {
  padding: 7px 10px;
  font-size: 12px;
}

.studio-player-mid-grid,
.studio-player-lower-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

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

.studio-player-info-panel {
  padding: 14px;
}

.studio-player-info-panel h4 {
  margin: 0 0 8px;
}

.studio-player-info-panel div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #d4e3f0;
  padding: 8px 0 0;
  margin-top: 8px;
}

.studio-player-info-panel strong {
  color: #456789;
  font-size: 12px;
}

.studio-player-info-panel span {
  color: #0b2239;
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.studio-player-loading,
.studio-player-empty {
  grid-column: 1 / -1;
  border: 1px dashed #bfd4e8;
  border-radius: 8px;
  color: #24486a;
  padding: 18px;
  text-align: center;
}

.studio-dashboard-downloads-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.studio-dashboard-downloads-head h3 {
  margin: 0;
  font-size: 18px;
  color: #0b2239;
}

.studio-dashboard-download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.studio-dashboard-download-card {
  border: 1px solid #bfd4e8;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-dashboard-download-card h4 {
  margin: 0;
  font-size: 16px;
  color: #0b2239;
}

.studio-dashboard-download-meta {
  color: #27496b;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.studio-dashboard-download-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.studio-dashboard-download-actions button {
  border: 1px solid #1e7ec2;
  background: #1e7ec2;
  color: #fff;
  border-radius: 6px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.studio-dashboard-download-actions button:disabled {
  background: #d8e3ee;
  border-color: #c6d4e2;
  color: #52677c;
  cursor: not-allowed;
}

.studio-dashboard-download-status {
  min-height: 20px;
  color: #1e7ec2;
  font-size: 13px;
  font-weight: 700;
}

.studio-dashboard-download-status.error {
  color: #9b1c1c;
}

@media (max-width: 920px) {
  .studio-player-metrics,
  .studio-player-filter-bar,
  .studio-player-mid-grid,
  .studio-player-lower-grid {
    grid-template-columns: 1fr;
  }

  .studio-dashboard-download-grid {
    grid-template-columns: 1fr;
  }

  .studio-dashboard-web-launch-card {
    align-items: stretch;
    flex-direction: column;
  }

  .studio-dashboard-web-launch-card button {
    width: 100%;
  }
}
