/* Dashboard Redesign */
body.dashboard-page-active {
  background: linear-gradient(180deg, #f2f6ff 0%, #edf3ff 100%);
}

body.dashboard-page-active .topnav {
  display: none !important;
}

body.dashboard-page-active .container {
  max-width: 1540px;
  padding: 24px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.dashboard-sidebar,
.dashboard-profile-card,
.dashboard-calendar-card,
.dashboard-calendar-editor,
.dashboard-online-card,
.dashboard-section,
.dashboard-card,
.dashboard-stat,
.quick-feedback-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(205, 219, 248, 0.9);
  box-shadow: 0 20px 45px rgba(86, 104, 150, 0.12);
}

.dashboard-sidebar {
  position: sticky;
  top: 24px;
  border-radius: 28px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: calc(100vh - 48px);
  background: linear-gradient(180deg, #6f6ae7 0%, #5e62d7 100%);
  color: #fff;
}

.dashboard-sidebar-brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.dashboard-sidebar-group {
  display: grid;
  gap: 16px;
}

.dashboard-sidebar-bottom {
  margin-top: auto;
}

.dashboard-side-link {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #f7f8ff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.dashboard-side-link:hover,
.dashboard-side-link.active {
  background: rgba(255, 255, 255, 0.22);
}

.dashboard-main {
  display: grid;
  gap: 20px;
}

.dashboard-main-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.dashboard-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.12);
  color: #5370a5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-main h1 {
  margin: 14px 0 8px;
  font-size: 46px;
  color: #21325b;
}

.dashboard-subtitle {
  margin: 0;
  color: #60739b;
  font-size: 18px;
  line-height: 1.6;
  max-width: 720px;
}

.dashboard-primary-action,
.dashboard-icon-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.dashboard-primary-action {
  border-radius: 18px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #4f8cff 0%, #7b61ff 100%);
  box-shadow: 0 16px 28px rgba(93, 119, 255, 0.22);
}

.dashboard-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-stat {
  border-radius: 22px;
  padding: 18px 20px;
}

.dashboard-stat-label {
  color: #7387ad;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-stat-value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 900;
  color: #26345d;
}

.dashboard-section {
  border-radius: 28px;
  padding: 22px;
}

.dashboard-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-section-head.compact {
  margin-bottom: 12px;
}

.dashboard-section-head h2,
.dashboard-calendar-card h2,
.dashboard-profile-card h2,
.dashboard-online-card h2 {
  margin: 0;
  color: #22325a;
  font-size: 24px;
}

.dashboard-section-head p,
.dashboard-calendar-card p,
.dashboard-profile-card p,
.dashboard-online-card p {
  margin: 6px 0 0;
  color: #7a8cae;
  line-height: 1.5;
}

.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card-grid-single {
  grid-template-columns: 1fr;
}

.dashboard-card {
  border-radius: 24px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.dashboard-card::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -36px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.dashboard-card.popular {
  background: linear-gradient(135deg, #edf2ff 0%, #f3f6ff 100%);
}

.dashboard-card.last {
  background: linear-gradient(135deg, #f8ecff 0%, #f7f2ff 100%);
}

.dashboard-card.recommended {
  background: linear-gradient(135deg, #fff2ec 0%, #fff7f3 100%);
}

.dashboard-card small {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.12);
  color: #5271a7;
  font-weight: 800;
  margin-bottom: 12px;
}

.dashboard-card h3 {
  margin: 0 0 8px;
  color: #24365d;
  font-size: 24px;
}

.dashboard-card p {
  margin: 0;
  color: #7082a7;
  line-height: 1.55;
  max-width: 75%;
}

.dashboard-card-footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.dashboard-card-meta {
  color: #62749b;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-card-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f8cff 0%, #7b61ff 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.dashboard-task-list {
  display: grid;
  gap: 12px;
}

.dashboard-task-item {
  border-radius: 20px;
  padding: 16px 18px;
  background: #f7faff;
  border: 1px solid #dbe7ff;
}

.dashboard-task-item h3 {
  margin: 0 0 6px;
  color: #22325a;
  font-size: 18px;
}

.dashboard-task-item p {
  margin: 0;
  color: #6f81a6;
  line-height: 1.55;
}

.dashboard-right {
  display: grid;
  gap: 18px;
}

.dashboard-profile-card,
.dashboard-calendar-card,
.dashboard-calendar-editor,
.dashboard-online-card {
  border-radius: 26px;
  padding: 22px;
}

.dashboard-profile-card {
  display: grid;
  gap: 14px;
}

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

.dashboard-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8cff 0%, #7b61ff 100%);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-profile-name {
  color: #22325a;
  font-size: 20px;
  font-weight: 900;
}

.dashboard-profile-role {
  color: #7387ad;
  font-size: 14px;
  font-weight: 700;
}


.dashboard-profile-meta {
  display: grid;
  gap: 4px;
}

.dashboard-profile-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-profile-field {
  display: grid;
  gap: 6px;
  color: #7387ad;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-profile-select {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid #d7e4ff;
  background: #f5f8ff;
  color: #22325a;
  font-size: 14px;
  font-weight: 800;
  padding: 0 14px;
}

.dashboard-profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-mini-badge {
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #5d7098;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-calendar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.dashboard-calendar-nav {
  display: flex;
  gap: 8px;
}

.dashboard-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eef3ff;
  color: #41598c;
  font-size: 22px;
  font-weight: 900;
}

.dashboard-calendar-month {
  margin: 16px 0 12px;
  color: #2a395f;
  font-size: 20px;
  font-weight: 900;
}

.dashboard-calendar-weekdays,
.dashboard-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-calendar-weekdays span {
  text-align: center;
  color: #7b8db1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-day,
.dashboard-day.empty {
  min-height: 56px;
  border-radius: 16px;
}

.dashboard-day.empty {
  background: transparent;
}

.dashboard-day {
  border: 1px solid #dde7fb;
  background: #f8fbff;
  color: #314264;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
}

.dashboard-day:hover,
.dashboard-day.selected {
  background: #ecf3ff;
  border-color: #b8cdff;
}

.dashboard-day.today {
  box-shadow: inset 0 0 0 2px #7b61ff;
}

.day-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.day-dot.red { background: #ef4444; }
.day-dot.orange { background: #f59e0b; }
.day-dot.green { background: #22c55e; }
.day-dot.blue { background: #3b82f6; }

.dashboard-calendar-form {
  display: grid;
  gap: 12px;
}

.dashboard-calendar-form textarea,
.dashboard-calendar-form select {
  background: #f0f5ff;
  color: #24345d;
  border: 1px solid #d8e6ff;
  border-radius: 18px;
  padding: 14px 16px;
}

.dashboard-color-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-pill {
  border: 1px solid #d8e6ff;
  border-radius: 999px;
  padding: 10px 14px;
  background: #f6f9ff;
  color: #4e638f;
  font-size: 13px;
  font-weight: 900;
}

.color-pill.active {
  color: #fff;
}

.color-pill[data-color="red"].active { background: #ef4444; border-color: #ef4444; }
.color-pill[data-color="orange"].active { background: #f59e0b; border-color: #f59e0b; }
.color-pill[data-color="green"].active { background: #22c55e; border-color: #22c55e; }
.color-pill[data-color="blue"].active { background: #3b82f6; border-color: #3b82f6; }

.dashboard-calendar-entry-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.dashboard-entry-card {
  border-radius: 18px;
  padding: 14px 16px;
  background: #f7faff;
  border: 1px solid #dce8ff;
  border-left-width: 6px;
}

.dashboard-entry-card.red { border-left-color: #ef4444; }
.dashboard-entry-card.orange { border-left-color: #f59e0b; }
.dashboard-entry-card.green { border-left-color: #22c55e; }
.dashboard-entry-card.blue { border-left-color: #3b82f6; }

.dashboard-entry-card strong {
  display: block;
  margin-bottom: 6px;
  color: #24345d;
}

.dashboard-entry-card p,
.dashboard-entry-card small {
  margin: 0;
  color: #6f81a6;
  line-height: 1.45;
}

.dashboard-entry-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-entry-actions button {
  border-radius: 999px;
  padding: 8px 12px;
  border: 0;
  background: #e7efff;
  color: #33476f;
  font-weight: 800;
}

.dashboard-entry-actions button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.dashboard-online-list {
  display: grid;
  gap: 12px;
}

.dashboard-online-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(240, 245, 255, 0.72);
  border: 1px solid rgba(210, 224, 255, 0.85);
}

.dashboard-online-user-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-online-user-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.challenge-quick-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #4f8cff 0%, #7b61ff 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(79, 140, 255, 0.22);
}

.challenge-quick-btn[disabled] {
  background: #d7e1f4;
  color: #6c7c9c;
  box-shadow: none;
  cursor: not-allowed;
}

.dashboard-online-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b6d0ff 0%, #e1d4ff 100%);
  color: #3d5387;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-online-user strong {
  color: #23325a;
}

.dashboard-online-user small {
  color: #7a8cb1;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online { background: #22c55e; }
.status-dot.afk { background: #facc15; }
.status-dot.dnd { background: #ef4444; }
.status-dot.offline { background: #94a3b8; }

.dashboard-status-legend {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #7286aa;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.challenge-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(210, 224, 255, 0.9);
}

.challenge-list {
  display: grid;
  gap: 14px;
}

.challenge-group {
  display: grid;
  gap: 10px;
}

.challenge-group-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f83a9;
}

.challenge-item,
.challenge-history-item,
.challenge-target-chip {
  border-radius: 18px;
  background: rgba(240, 245, 255, 0.78);
  border: 1px solid rgba(210, 224, 255, 0.88);
}

.challenge-item {
  padding: 12px 14px;
}

.challenge-item-head,
.challenge-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.challenge-item-head strong,
.challenge-history-item span,
.challenge-target-chip {
  color: #24345d;
}

.challenge-item-meta {
  margin-top: 4px;
  color: #7082a7;
  font-size: 13px;
  font-weight: 700;
}

.challenge-item p {
  margin: 8px 0 0;
  color: #647697;
  line-height: 1.45;
  font-size: 13px;
}

.challenge-item-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.challenge-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.challenge-btn.accept {
  background: linear-gradient(135deg, #4f8cff 0%, #7b61ff 100%);
  color: #fff;
}

.challenge-btn.ghost {
  background: #e8efff;
  color: #54678f;
}

.challenge-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.challenge-status.pending {
  background: rgba(79, 140, 255, 0.14);
  color: #3559a6;
}

.challenge-status.accepted {
  background: rgba(34, 197, 94, 0.14);
  color: #188249;
}

.challenge-status.declined,
.challenge-status.cancelled {
  background: rgba(239, 68, 68, 0.14);
  color: #b02b2b;
}

.challenge-empty {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(243, 247, 255, 0.72);
  border: 1px dashed rgba(183, 199, 233, 0.9);
  color: #6f82a7;
}

.challenge-target-chip {
  padding: 12px 14px;
  font-weight: 700;
}

.feedback-fab {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #4f8cff 0%, #7b61ff 100%);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 18px 30px rgba(79, 140, 255, 0.3);
}

.quick-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.quick-feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 38, 72, 0.35);
  backdrop-filter: blur(4px);
}

.quick-feedback-panel {
  position: absolute;
  left: 86px;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, calc(100vw - 110px));
  border-radius: 26px;
  padding: 24px;
}

.quick-feedback-panel h2 {
  margin: 0 0 8px;
  color: #23325a;
}

.quick-feedback-panel p {
  margin: 0 0 16px;
  color: #7082a7;
  line-height: 1.55;
}

.quick-feedback-panel input,
.quick-feedback-panel textarea {
  background: #f0f5ff;
  color: #24345d;
  border: 1px solid #d8e6ff;
  border-radius: 18px;
}

.quick-feedback-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #edf3ff;
  color: #50658f;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 1280px) {
  .dashboard-shell {
    grid-template-columns: 220px 1fr;
  }

  .dashboard-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-shell,
  .dashboard-right {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    min-height: auto;
  }

  .dashboard-stat-row,
  .dashboard-card-grid {
    grid-template-columns: 1fr;
  }

  .feedback-fab {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .quick-feedback-panel {
    left: 50%;
    top: auto;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 24px));
  }
}

/* Shared private area redesign */
body.authenticated-shell {
  background: linear-gradient(180deg, #f2f6ff 0%, #edf3ff 100%);
}

body.authenticated-shell .topnav {
  display: none !important;
}

body.authenticated-shell .container {
  max-width: 1540px;
  padding: 24px;
}

.private-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.private-shell-wide {
  grid-template-columns: 220px minmax(0, 1fr) 290px;
}

.private-sidebar,
.private-card,
.private-right-card,
.private-check-card,
.private-table-wrap,
.private-feature-card,
.private-stack-list .panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(205, 219, 248, 0.92);
  box-shadow: 0 20px 45px rgba(86, 104, 150, 0.12);
}

.private-sidebar {
  position: sticky;
  top: 24px;
  border-radius: 28px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: calc(100vh - 48px);
  background: linear-gradient(180deg, rgba(113, 110, 232, 0.98) 0%, rgba(93, 100, 215, 0.98) 100%);
  color: #fff;
}

.private-sidebar-brand {
  font-size: 28px;
  font-weight: 900;
}

.private-sidebar-copy {
  color: rgba(248, 250, 255, 0.84);
  line-height: 1.6;
  font-size: 14px;
}

.private-sidebar-group {
  display: grid;
  gap: 14px;
}

.private-sidebar-group-bottom {
  margin-top: auto;
}

.private-side-link {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8f9ff;
  font-weight: 800;
  font-size: 15px;
}

.private-side-link:hover,
.private-side-link.active {
  background: rgba(255, 255, 255, 0.24);
}

.private-main,
.private-right {
  display: grid;
  gap: 20px;
}

.private-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.private-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.12);
  color: #5370a5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.private-page-header h1 {
  margin: 12px 0 8px;
  font-size: 42px;
  color: #20325c;
}

.private-page-header p {
  margin: 0;
  color: #66799f;
  line-height: 1.6;
  max-width: 780px;
}

.private-gradient-btn,
.private-secondary-btn {
  border: 0;
  border-radius: 18px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.private-gradient-btn {
  color: #fff;
  background: linear-gradient(135deg, #4f8cff 0%, #7b61ff 100%);
  box-shadow: 0 16px 28px rgba(93, 119, 255, 0.22);
}

.private-secondary-btn {
  color: #33466f;
  background: rgba(79, 140, 255, 0.09);
}

.private-card,
.private-right-card {
  border-radius: 28px;
  padding: 22px;
}

.private-card-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.96) 100%);
}

.private-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.private-card-head h2,
.private-right-card h3 {
  margin: 0;
  color: #22325a;
  font-size: 24px;
}

.private-card-head p,
.private-right-card p {
  margin: 6px 0 0;
  color: #778bad;
  line-height: 1.55;
}

.private-form-grid {
  display: grid;
  gap: 14px;
}

.private-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.private-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.authenticated-shell .private-shell input,
body.authenticated-shell .private-shell select,
body.authenticated-shell .private-shell textarea,
body.authenticated-shell .dashboard-shell input,
body.authenticated-shell .dashboard-shell select,
body.authenticated-shell .dashboard-shell textarea {
  background: #f3f6fd;
  color: #25365c;
  border: 1px solid #d9e5fb;
  border-radius: 18px;
  padding: 13px 15px;
}

.private-chip-host {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 52px;
  align-items: center;
}

.private-chip-host .badge {
  background: rgba(79, 140, 255, 0.12);
  color: #47659a;
  border-color: rgba(79, 140, 255, 0.15);
}

.private-inline-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.private-inline-note {
  color: #7b8daf;
  line-height: 1.55;
}

.private-check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #3f5179;
  font-weight: 700;
}

.private-check-card input {
  width: auto !important;
  margin: 0;
}

.private-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.private-feature-card {
  border-radius: 24px;
  padding: 22px;
  display: grid;
  gap: 8px;
  color: #28406e;
}

.private-feature-card strong {
  font-size: 22px;
}

.private-feature-card span {
  color: #6f82a7;
  line-height: 1.55;
}

.private-feature-card.lilac { background: linear-gradient(135deg, #f7f2ff 0%, #f2efff 100%); }
.private-feature-card.blue { background: linear-gradient(135deg, #eef4ff 0%, #f5f7ff 100%); }
.private-feature-card.peach { background: linear-gradient(135deg, #fff4ec 0%, #fff8f4 100%); }

.private-idea-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.private-idea-item,
.private-idea-empty {
  background: rgba(243, 246, 253, 0.92);
  border: 1px solid #d9e5fb;
  border-radius: 20px;
  padding: 16px 18px;
}

.private-idea-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.private-idea-item-top strong {
  color: #23335c;
  font-size: 16px;
}

.private-idea-item-top span,
.private-idea-empty {
  color: #7387ab;
  font-size: 14px;
}

.private-idea-item p {
  margin: 0;
  color: #516788;
  line-height: 1.6;
}

.private-stack-list {
  display: grid;
  gap: 12px;
}

.private-stack-list .panel,
body.authenticated-shell #teacherSavedGames .panel,
body.authenticated-shell #teacherClassesList .panel,
body.authenticated-shell #teacherOverview .panel,
body.authenticated-shell #saveList .panel,
body.authenticated-shell #adminFeedbackList .panel,
body.authenticated-shell #blockedAccountsList .panel,
body.authenticated-shell #adminActivityLog .panel {
  background: rgba(255,255,255,0.9);
  color: #27365c;
  border: 1px solid rgba(205, 219, 248, 0.92);
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(86, 104, 150, 0.08);
}

body.authenticated-shell .muted,
body.authenticated-shell .footer-note {
  color: #7b8daf;
}

body.authenticated-shell .badge {
  background: rgba(79, 140, 255, 0.12);
  color: #47659a;
  border-color: rgba(79, 140, 255, 0.15);
}

body.authenticated-shell .danger-zone {
  background: rgba(255, 109, 109, 0.08);
  border: 1px solid rgba(236, 123, 123, 0.24);
  color: #35486d;
}

.private-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.private-info-grid > div {
  background: rgba(244, 247, 255, 0.96);
  border: 1px solid rgba(216, 228, 251, 0.96);
  border-radius: 20px;
  padding: 16px;
  color: #304365;
}

.private-profile-snapshot {
  display: grid;
  gap: 12px;
  color: #2a3b61;
}

.private-side-stat {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(213, 223, 245, 0.82);
  color: #6f81a8;
}

.private-side-stat:last-child {
  border-bottom: 0;
}

.private-side-stat strong {
  color: #293961;
  font-size: 18px;
}

.private-mini-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #667ba3;
}

.private-right-card.accent-blue { background: linear-gradient(180deg, rgba(238, 244, 255, 0.96) 0%, rgba(244, 247, 255, 0.96) 100%); }
.private-right-card.accent-purple { background: linear-gradient(180deg, rgba(247, 241, 255, 0.96) 0%, rgba(251, 247, 255, 0.96) 100%); }
.private-right-card.accent-peach { background: linear-gradient(180deg, rgba(255, 244, 236, 0.96) 0%, rgba(255, 249, 244, 0.96) 100%); }

.private-section-grid {
  display: grid;
  gap: 18px;
}

.private-section-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.private-table-wrap table {
  color: #2a3b61;
}

.private-table-wrap th {
  color: #5673ac;
}

body.authenticated-shell table td,
body.authenticated-shell table th {
  border-bottom: 1px solid rgba(213, 223, 245, 0.82);
}

body.authenticated-shell .pill.student { background: rgba(79, 140, 255, 0.12); color: #41639a; }
body.authenticated-shell .pill.teacher { background: rgba(123, 97, 255, 0.12); color: #5f4eb3; }
body.authenticated-shell .pill.admin { background: rgba(255, 147, 91, 0.12); color: #b76634; }
body.authenticated-shell .pill.active { background: rgba(41, 192, 118, 0.12); color: #1f8e56; }
body.authenticated-shell .pill.blocked { background: rgba(255, 109, 109, 0.12); color: #bb4f4f; }

@media (max-width: 1320px) {
  .private-shell,
  .private-shell-wide,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .private-sidebar,
  .dashboard-sidebar {
    position: static;
    min-height: auto;
  }
}

@media (max-width: 920px) {
  .private-form-grid-2,
  .private-form-grid-3,
  .private-section-grid.two-up,
  .private-feature-grid,
  .private-info-grid,
  .dashboard-stat-row,
  .dashboard-card-grid {
    grid-template-columns: 1fr;
  }

  .private-page-header,
  .dashboard-main-header {
    flex-direction: column;
  }
}


.private-input-stack {
  display: grid;
  gap: 10px;
}

.private-field-label {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 900;
  color: #5370a5;
  letter-spacing: 0.01em;
}

.user-quick-controls {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(205, 219, 248, 0.94);
  box-shadow: 0 24px 44px rgba(86, 104, 150, 0.16);
  backdrop-filter: blur(14px);
}

.user-quick-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.user-quick-label {
  color: #7890b7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.user-quick-name {
  margin-top: 4px;
  color: #21325b;
  font-size: 22px;
  font-weight: 900;
}

.user-quick-role {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.12);
  color: #4c6ba2;
  font-size: 13px;
  font-weight: 800;
}

.user-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.user-quick-field {
  display: grid;
  gap: 8px;
  color: #60749b;
  font-size: 13px;
  font-weight: 800;
}

body.auth-focus-mode .user-quick-controls,
body:not(.authenticated-shell) .user-quick-controls {
  display: none !important;
}

body.theme-dark.authenticated-shell,
body.theme-dark.dashboard-page-active {
  background: linear-gradient(180deg, #0f162d 0%, #111c34 100%);
}

body.theme-dark .dashboard-sidebar,
body.theme-dark .private-sidebar {
  background: linear-gradient(180deg, rgba(49, 61, 126, 0.98) 0%, rgba(35, 47, 104, 0.98) 100%);
}

body.theme-dark .dashboard-profile-card,
body.theme-dark .dashboard-calendar-card,
body.theme-dark .dashboard-calendar-editor,
body.theme-dark .dashboard-online-card,
body.theme-dark .dashboard-section,
body.theme-dark .dashboard-card,
body.theme-dark .dashboard-stat,
body.theme-dark .quick-feedback-panel,
body.theme-dark .private-card,
body.theme-dark .private-right-card,
body.theme-dark .private-check-card,
body.theme-dark .private-table-wrap,
body.theme-dark .private-feature-card,
body.theme-dark .private-stack-list .panel,
body.theme-dark .user-quick-controls {
  background: rgba(19, 28, 52, 0.92);
  border-color: rgba(85, 104, 164, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

body.theme-dark .dashboard-card.popular { background: linear-gradient(135deg, #16213f 0%, #1a2547 100%); }
body.theme-dark .dashboard-card.last { background: linear-gradient(135deg, #201d42 0%, #26224d 100%); }
body.theme-dark .dashboard-card.recommended { background: linear-gradient(135deg, #2b203a 0%, #332647 100%); }
body.theme-dark .private-feature-card.lilac { background: linear-gradient(135deg, #1d203f 0%, #27284a 100%); }
body.theme-dark .private-feature-card.blue { background: linear-gradient(135deg, #16213f 0%, #1a2749 100%); }
body.theme-dark .private-feature-card.peach { background: linear-gradient(135deg, #2a223a 0%, #302845 100%); }
body.theme-dark .private-right-card.accent-blue { background: linear-gradient(180deg, rgba(22, 33, 63, 0.96) 0%, rgba(25, 39, 73, 0.96) 100%); }
body.theme-dark .private-right-card.accent-purple { background: linear-gradient(180deg, rgba(30, 32, 64, 0.96) 0%, rgba(38, 34, 77, 0.96) 100%); }
body.theme-dark .private-right-card.accent-peach { background: linear-gradient(180deg, rgba(42, 34, 58, 0.96) 0%, rgba(48, 40, 69, 0.96) 100%); }

body.theme-dark .dashboard-main h1,
body.theme-dark .dashboard-section-head h2,
body.theme-dark .dashboard-calendar-card h2,
body.theme-dark .dashboard-profile-card h2,
body.theme-dark .dashboard-online-card h2,
body.theme-dark .dashboard-card h3,
body.theme-dark .dashboard-profile-name,
body.theme-dark .private-page-header h1,
body.theme-dark .private-card-head h2,
body.theme-dark .private-right-card h3,
body.theme-dark .private-feature-card strong,
body.theme-dark .private-side-stat strong,
body.theme-dark .user-quick-name {
  color: #eef3ff;
}

body.theme-dark .dashboard-subtitle,
body.theme-dark .dashboard-section-head p,
body.theme-dark .dashboard-calendar-card p,
body.theme-dark .dashboard-profile-card p,
body.theme-dark .dashboard-online-card p,
body.theme-dark .dashboard-card p,
body.theme-dark .dashboard-stat-label,
body.theme-dark .dashboard-stat-value,
body.theme-dark .dashboard-profile-role,
body.theme-dark .private-page-header p,
body.theme-dark .private-card-head p,
body.theme-dark .private-right-card p,
body.theme-dark .private-inline-note,
body.theme-dark .private-feature-card span,
body.theme-dark .private-side-stat,
body.theme-dark .private-mini-list,
body.theme-dark .muted,
body.theme-dark .footer-note,
body.theme-dark .user-quick-label,
body.theme-dark .user-quick-role,
body.theme-dark .user-quick-field {
  color: #b6c4e8 !important;
}

body.theme-dark .private-idea-item,
body.theme-dark .private-idea-empty {
  background: rgba(17, 27, 54, 0.88);
  border-color: rgba(89, 114, 176, 0.35);
}

body.theme-dark .dashboard-online-user,
body.theme-dark .challenge-item,
body.theme-dark .challenge-history-item,
body.theme-dark .challenge-target-chip {
  background: rgba(17, 27, 54, 0.88);
  border-color: rgba(89, 114, 176, 0.35);
}

body.theme-dark .challenge-panel {
  border-top-color: rgba(89, 114, 176, 0.35);
}

body.theme-dark .challenge-item-head strong,
body.theme-dark .challenge-history-item span,
body.theme-dark .challenge-target-chip,
body.theme-dark .challenge-group-title {
  color: #d8e3ff;
}

body.theme-dark .challenge-item-meta,
body.theme-dark .challenge-item p,
body.theme-dark .challenge-empty {
  color: #aab8db;
}

body.theme-dark .challenge-btn.ghost,
body.theme-dark .challenge-quick-btn[disabled] {
  background: rgba(73, 91, 143, 0.45);
  color: #d7e2ff;
}

body.theme-dark .challenge-empty {
  background: rgba(17, 27, 54, 0.66);
  border-color: rgba(89, 114, 176, 0.35);
}

body.theme-dark .private-idea-item-top strong {
  color: #eaf0ff;
}

body.theme-dark .private-idea-item-top span,
body.theme-dark .private-idea-item p,
body.theme-dark .private-idea-empty {
  color: #a9bbde;
}

body.theme-dark .dashboard-kicker,
body.theme-dark .private-kicker,
body.theme-dark .dashboard-mini-badge,
body.theme-dark .private-chip-host .badge,
body.theme-dark .badge {
  background: rgba(95, 122, 204, 0.2);
  color: #d9e4ff;
  border-color: rgba(95, 122, 204, 0.3);
}

body.theme-dark.authenticated-shell .private-shell input,
body.theme-dark.authenticated-shell .private-shell select,
body.theme-dark.authenticated-shell .private-shell textarea,
body.theme-dark.authenticated-shell .dashboard-shell input,
body.theme-dark.authenticated-shell .dashboard-shell select,
body.theme-dark.authenticated-shell .dashboard-shell textarea {
  background: #121b34;
  color: #eef3ff;
  border-color: rgba(82, 99, 156, 0.44);
}

body.theme-dark .dashboard-calendar-weekdays,
body.theme-dark .dashboard-calendar-month,
body.theme-dark .dashboard-calendar-entry-card,
body.theme-dark .private-info-grid > div,
body.theme-dark .private-stack-list .panel,
body.theme-dark #teacherSavedGames .panel,
body.theme-dark #teacherClassesList .panel,
body.theme-dark #teacherOverview .panel,
body.theme-dark #saveList .panel,
body.theme-dark #adminFeedbackList .panel,
body.theme-dark #blockedAccountsList .panel,
body.theme-dark #adminActivityLog .panel {
  background: rgba(17, 24, 44, 0.92) !important;
  color: #eef3ff;
  border-color: rgba(82, 99, 156, 0.44) !important;
}

body.theme-dark .dashboard-icon-btn,
body.theme-dark .private-secondary-btn {
  background: rgba(95, 122, 204, 0.16);
  color: #e5edff;
}

body.theme-dark .private-field-label {
  color: #c8d5f8;
}

@media (max-width: 1024px) {
  .user-quick-controls {
    position: static;
    width: 100%;
    margin-bottom: 18px;
  }
}


body.theme-dark .dashboard-profile-field {
  color: #aab6d6;
}

body.theme-dark .dashboard-profile-select {
  background: rgba(14, 24, 54, 0.88);
  border-color: rgba(138, 167, 255, 0.2);
  color: #eef3ff;
}

@media (max-width: 640px) {
  .dashboard-profile-controls {
    grid-template-columns: 1fr;
  }
}

.admin-overview {
  display: grid;
  gap: 16px;
}
.admin-risk-high {
  border-color: rgba(255,120,120,.35);
}

.teacher-overview {
  display: grid;
  gap: 16px;
}
