/* RC2: owner/coach today dashboard. */
#slTodayDashboard.slTodayDashboard {
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}

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

.slTodayHead span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 900;
}

.slTodayHead h2 {
  margin: 8px 0 4px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #0f172a;
}

.slTodayHead p {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

.slTodayActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.slTodayPeriod {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
}

.slTodayPeriod button {
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font-weight: 900;
  cursor: pointer;
}

.slTodayPeriod button.active {
  background: #1966db;
  color: #fff;
}

.slTodayBriefing {
  margin-bottom: 14px;
  padding: 13px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.slTodayBriefing b,
.slTodaySectionTitle {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-weight: 900;
}

.slTodayBriefing ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-weight: 700;
  line-height: 1.55;
}

.slTodayGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.slTodayCard {
  display: block;
  width: 100%;
  min-height: 104px;
  padding: 14px;
  text-align: left;
  border-radius: 8px;
  border: 1px solid #dbe4f0;
  background: #ffffff;
  color: #0f172a;
  box-shadow: none;
  cursor: pointer;
}

.slTodayCard:hover {
  border-color: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
}

.slTodayCard span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.slTodayCard b {
  display: block;
  margin-bottom: 7px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.slTodayCard small {
  display: block;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.slTodayAlerts {
  margin-top: 14px;
}

.slTodayColumns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
  margin-top: 14px;
}

.slTodayPanel {
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.slTodayTaskList {
  display: grid;
  gap: 8px;
}

.slTodayTask {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.slTodayTask span {
  color: #1966db;
  font-weight: 900;
}

.slTodayTask b {
  font-size: 14px;
}

.slTodayTask.is-done {
  background: #f0fdf4;
}

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

.slTodayAlert {
  display: block;
  width: 100%;
  padding: 12px 13px;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
}

.slTodayAlert b,
.slTodayAlert span {
  display: block;
}

.slTodayAlert b {
  margin-bottom: 4px;
  font-size: 14px;
}

.slTodayAlert span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.slTodayEmpty {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-weight: 800;
}

.slTodayDashboard.is-loading {
  opacity: .72;
}

@media (max-width: 920px) {
  .slTodayGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slTodayColumns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #slTodayDashboard.slTodayDashboard {
    padding: 14px;
    margin-bottom: 12px;
  }

  .slTodayHead {
    display: block;
  }

  .slTodayActions {
    display: block;
  }

  .slTodayHead button,
  .slTodayActions button {
    margin-top: 10px;
    min-height: 42px;
  }

  .slTodayPeriod {
    overflow-x: auto;
  }

  .slTodayGrid,
  .slTodayAlertList {
    grid-template-columns: 1fr;
  }

  .slTodayCard {
    min-height: 92px;
  }
}

/* Admin AI Center: keep AI tools available without expanding them on the main dashboard. */
body.sl-dashboard-admin #slAiHighlightEngine,
body.sl-dashboard-admin #slAiPhotoIntelligence,
body.sl-dashboard-admin #slAiDirectorAssistant,
body.sl-dashboard-admin #slAiGptBriefingEngine,
body.sl-dashboard-admin #slAiCounselingAssistant,
body.sl-dashboard-admin #slAiNoteAssistant {
  display: none !important;
}

body.sl-dashboard-admin .slAiCenterPanel.is-active > #slAiHighlightEngine,
body.sl-dashboard-admin .slAiCenterPanel.is-active > #slAiPhotoIntelligence,
body.sl-dashboard-admin .slAiCenterPanel.is-active > #slAiDirectorAssistant,
body.sl-dashboard-admin .slAiCenterPanel.is-active > #slAiGptBriefingEngine,
body.sl-dashboard-admin .slAiCenterPanel.is-active > #slAiCounselingAssistant,
body.sl-dashboard-admin .slAiCenterPanel.is-active > #slAiNoteAssistant {
  display: block !important;
}

body.sl-dashboard-admin .slAiCenterShortcut {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

body.sl-dashboard-admin .slAiCenterMiniCard {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

body.sl-dashboard-admin .slAiCenterNavButton {
  border-color: rgba(255, 255, 255, .45) !important;
}

body.sl-dashboard-admin .slAiCenterHeroCard {
  margin: 16px 0;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

body.sl-dashboard-admin .slAiCenterHeroCard h2 {
  margin: 0 0 6px;
  color: #0f172a;
}

body.sl-dashboard-admin .slAiCenterHeroCard p {
  margin: 0 0 12px;
  color: #475569;
  font-weight: 800;
}

body.sl-dashboard-admin .slAiCenterIntro {
  margin-bottom: 14px;
}

body.sl-dashboard-admin .slAiCenterDashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

body.sl-dashboard-admin .slAiFeatureCard {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 98px;
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #0f172a;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  cursor: pointer;
}

body.sl-dashboard-admin .slAiFeatureCard:hover,
body.sl-dashboard-admin .slAiFeatureCard.active {
  border-color: #1966db;
  box-shadow: 0 14px 30px rgba(25, 102, 219, .16);
}

body.sl-dashboard-admin .slAiFeatureIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #eaf2ff;
  color: #0f4fb8;
  font-weight: 1000;
  font-size: 15px;
}

body.sl-dashboard-admin .slAiFeatureText b,
body.sl-dashboard-admin .slAiFeatureText small {
  display: block;
}

body.sl-dashboard-admin .slAiFeatureText b {
  margin-bottom: 5px;
  font-size: 17px;
  font-weight: 1000;
}

body.sl-dashboard-admin .slAiFeatureText small {
  color: #64748b;
  font-weight: 800;
  line-height: 1.4;
}

body.sl-dashboard-admin .slAiFeatureOpen {
  color: #1966db;
  font-weight: 1000;
}

body.sl-dashboard-admin .slAiCenterTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

body.sl-dashboard-admin .slAiCenterTabs button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 900;
  cursor: pointer;
}

body.sl-dashboard-admin .slAiCenterTabs button.active {
  border-color: #1966db;
  background: #1966db;
  color: #fff;
}

body.sl-dashboard-admin .slAiCenterPanels {
  margin-bottom: 16px;
}

body.sl-dashboard-admin .slAiCenterEmpty,
body.sl-dashboard-admin .slAiCenterPanel {
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

body.sl-dashboard-admin .slAiCenterPanel {
  display: none;
}

body.sl-dashboard-admin .slAiCenterPanel.is-active {
  display: block;
}

body.sl-dashboard-admin .slAiCenterPanelTitle {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 1000;
}

body.sl-dashboard-admin .slAiCenterPanel > section {
  margin: 0;
}

@media (max-width: 560px) {
  body.sl-dashboard-admin .slAiCenterTabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.sl-dashboard-admin .slAiCenterTabs button {
    width: 100%;
  }

  body.sl-dashboard-admin .slAiCenterDashboard {
    grid-template-columns: 1fr;
  }

  body.sl-dashboard-admin .slAiFeatureCard {
    grid-template-columns: 44px 1fr;
  }

  body.sl-dashboard-admin .slAiFeatureOpen {
    grid-column: 2;
  }
}
