/* QPal dashboard empty-subject polish.
   Presentation only: keep existing Set tab IDs/filtering and subject-list height,
   while making the controls read as one composition on the orange dashboard surface. */

body.qpal-persistent-dashboard-shell:not(.qpal-session-active) .game-container .matrix-tabs-container {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px !important;
  padding: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

body.qpal-persistent-dashboard-shell:not(.qpal-session-active) .game-container .matrix-tab {
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 7px 8px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.78) !important;
  box-shadow: none !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
}

body.qpal-persistent-dashboard-shell:not(.qpal-session-active) .game-container .matrix-tab.active {
  background: color-mix(in srgb, var(--surface) 92%, transparent) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 4px 12px rgba(40, 20, 10, 0.14), var(--inner-highlight) !important;
}

body.qpal-persistent-dashboard-shell:not(.qpal-session-active) .game-container .matrix-tab::after,
body.qpal-persistent-dashboard-shell:not(.qpal-session-active) .game-container .matrix-tab.active::after {
  display: none !important;
  content: none !important;
}

body.qpal-persistent-dashboard-shell:not(.qpal-session-active) #subj-list-box > .empty-state.qpal-dashboard-empty-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  padding: 28px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--surface) 62%, transparent) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  text-align: center !important;
}

html.dark-mode body.qpal-persistent-dashboard-shell:not(.qpal-session-active) #subj-list-box > .empty-state.qpal-dashboard-empty-state {
  background: color-mix(in srgb, var(--surface) 72%, transparent) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.qpal-dashboard-empty-state-icon-shell {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 2px;
  border: 1px solid color-mix(in srgb, var(--border-subtle) 72%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-elevated) 82%, transparent);
  box-shadow: var(--inner-highlight);
}

.qpal-dashboard-empty-state-icon-shell .empty-state-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 !important;
  color: var(--text-secondary) !important;
}

.qpal-dashboard-empty-state-icon-shell .empty-state-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.qpal-dashboard-empty-state-title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(17px, 2.8vw, 19px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.qpal-dashboard-empty-state-copy {
  max-width: 430px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.qpal-dashboard-empty-state-meta {
  margin: 1px 0 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.qpal-dashboard-empty-state-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  margin-top: 2px;
  padding: 9px 16px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 18%, transparent);
  border-radius: 12px;
  background: var(--text-primary);
  color: var(--surface);
  box-shadow: 0 6px 16px rgba(24, 18, 14, 0.14);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.qpal-dashboard-empty-state-action:hover,
.qpal-dashboard-empty-state-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(24, 18, 14, 0.18);
}

.qpal-dashboard-empty-state-action:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.qpal-dashboard-empty-state-action-mark {
  font-size: 18px;
  font-weight: 700;
  line-height: 0.8;
}

@media (max-width: 620px) {
  body.qpal-persistent-dashboard-shell:not(.qpal-session-active) .game-container .matrix-tabs-container {
    gap: 3px !important;
    padding: 3px !important;
    border-radius: 14px !important;
  }

  body.qpal-persistent-dashboard-shell:not(.qpal-session-active) .game-container .matrix-tab {
    min-height: 38px !important;
    padding-inline: 5px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
  }

  body.qpal-persistent-dashboard-shell:not(.qpal-session-active) #subj-list-box > .empty-state.qpal-dashboard-empty-state {
    padding: 24px 18px !important;
  }
}
