/* Task4Today release r181 - theme continuity, dark calendar/dashboard contrast,
   meeting history compatibility, and Manage Team spacing. */

/* --------------------------------------------------------------------------
   Sidebar footer: keep a deliberate gap between the Teams divider and button.
   -------------------------------------------------------------------------- */
.sidebar > .sidebar-scroll-content > .sidebar-footer,
.sidebar .sidebar-footer {
  box-sizing: border-box !important;
  margin-top: 10px !important;
  padding-top: 14px !important;
  padding-right: 12px !important;
  padding-left: 12px !important;
  padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
}

/* --------------------------------------------------------------------------
   Dark dashboard: no white welcome/header surfaces or white Details pills.
   -------------------------------------------------------------------------- */
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body:not([data-page="login"]) #dashboardView .home-welcome {
  background: #161b22 !important;
  background-image: none !important;
  border-color: #30363d !important;
  color: #f0f6fc !important;
  box-shadow: none !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body:not([data-page="login"]) #dashboardView .home-welcome h2 {
  color: #f0f6fc !important;
  -webkit-text-fill-color: #f0f6fc !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body:not([data-page="login"]) #dashboardView .home-welcome p {
  color: #9aa4af !important;
  -webkit-text-fill-color: #9aa4af !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body:not([data-page="login"]) #dashboardView .ref-chart-subtitle {
  background: #21262d !important;
  background-image: none !important;
  border: 1px solid #484f58 !important;
  color: #dbeafe !important;
  -webkit-text-fill-color: #dbeafe !important;
  box-shadow: none !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body:not([data-page="login"]) #dashboardView .ref-chart-subtitle:hover {
  background: #30363d !important;
  border-color: #6e7681 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* --------------------------------------------------------------------------
   Project calendar: remove every legacy white/green surface in Dark and keep
   calendar text legible. Priority colors remain functional and unchanged.
   -------------------------------------------------------------------------- */
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView,
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar,
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar,
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .ref-calendar-body,
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .ref-calendar-grid-wrap {
  background: #0d1117 !important;
  background-image: none !important;
  border-color: #30363d !important;
  color: #f0f6fc !important;
  box-shadow: none !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar :is(
  .cal-toolbar,.cal-weekdays,.cal-three-week-grid,.cal-pop,.cal-filter-menu,.cal-view-menu,.cal-search-pop,.cal-nodate
) {
  background: #161b22 !important;
  background-image: none !important;
  border-color: #30363d !important;
  color: #f0f6fc !important;
  box-shadow: none !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar .cal-three-week-grid {
  background: #0d1117 !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar .cal-day,
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar .cal-day.center-week,
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar .cal-day.weekend {
  background: #0d1117 !important;
  background-image: none !important;
  border-color: #30363d !important;
  color: #c9d1d9 !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar .cal-day:hover:not(.today) {
  background: #161b22 !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar .cal-day.today,
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar .cal-day.today.weekend {
  background: linear-gradient(180deg, rgba(79,140,255,.14), rgba(79,140,255,.055)), #0d1117 !important;
  border-color: #4f8cff !important;
  box-shadow: inset 0 0 0 1px rgba(79,140,255,.62), inset 4px 0 0 #4f8cff !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar .cal-day.today::before {
  background: linear-gradient(90deg,#4f8cff 0%,#69a0ff 58%,transparent 100%) !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar .cal-day.today::after {
  background: #21262d !important;
  border-color: #4f8cff !important;
  color: #dbeafe !important;
  box-shadow: none !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar .cal-day.today .cal-date.today-badge {
  background: #2563eb !important;
  border-color: #8bb5ff !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(79,140,255,.18) !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar :is(
  .cal-title,.cal-date,.cal-weekdays>div,.pop-head,.mini-head,.row-between
) {
  color: #f0f6fc !important;
  -webkit-text-fill-color: #f0f6fc !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar :is(
  .cal-btn,.field-btn,.filter-pill,.field-list button,.cal-search-pop input,.mini-grid button
) {
  background: #1c2128 !important;
  background-image: none !important;
  border-color: #30363d !important;
  color: #c9d1d9 !important;
  box-shadow: none !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar :is(
  .cal-btn,.field-btn,.filter-pill,.field-list button,.mini-grid button
):hover:not(.sel) {
  background: #262c36 !important;
  border-color: #484f58 !important;
  color: #fff !important;
}

/* Right-side 3-week overview cards. */
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView :is(.ref-cal-card,.ref-cal-stat,.ref-cal-upcoming-item),
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body .asana-calendar-page :is(.ref-cal-card,.ref-cal-stat,.ref-cal-upcoming-item) {
  background: #161b22 !important;
  background-image: none !important;
  border-color: #30363d !important;
  color: #c9d1d9 !important;
  box-shadow: none !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView :is(
  .ref-cal-card-header strong,.ref-cal-stat-value,.ref-cal-upcoming-title,.ref-cal-row-value
),
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body .asana-calendar-page :is(
  .ref-cal-card-header strong,.ref-cal-stat-value,.ref-cal-upcoming-title,.ref-cal-row-value
) {
  color: #f0f6fc !important;
  -webkit-text-fill-color: #f0f6fc !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView :is(
  .ref-cal-card-header span,.ref-cal-stat-label,.ref-cal-upcoming-meta,.ref-cal-row-label,.ref-cal-empty
),
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body .asana-calendar-page :is(
  .ref-cal-card-header span,.ref-cal-stat-label,.ref-cal-upcoming-meta,.ref-cal-row-label,.ref-cal-empty
) {
  color: #9aa4af !important;
  -webkit-text-fill-color: #9aa4af !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .ref-cal-upcoming-item:hover {
  background: #21262d !important;
  border-color: #484f58 !important;
}

/* Alternate Asana-style calendar renderer, if that view is active. */
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView :is(
  .asana-calendar-page,.asana-calendar-toolbar,.asana-calendar-grid,.asana-cal-day-header,.asana-cal-day,
  .asana-cal-day.weekend,.asana-cal-day.other-month,.asana-calendar-popover,.asana-calendar-search
) {
  background: #0d1117 !important;
  background-image: none !important;
  border-color: #30363d !important;
  color: #c9d1d9 !important;
  box-shadow: none !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView :is(.asana-calendar-toolbar,.asana-cal-day-header,.asana-calendar-popover,.asana-calendar-search) {
  background: #161b22 !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .asana-cal-day:hover {
  background: #161b22 !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .asana-cal-day.today {
  background: rgba(79,140,255,.12) !important;
  box-shadow: inset 0 0 0 2px rgba(79,140,255,.68) !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView :is(.asana-calendar-title,.asana-cal-day-num) {
  color: #f0f6fc !important;
  -webkit-text-fill-color: #f0f6fc !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .asana-calendar-toolbar :is(.outline-btn,.circle-btn,.chip-btn) {
  background: #1c2128 !important;
  border-color: #30363d !important;
  color: #c9d1d9 !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .asana-calendar-toolbar :is(.outline-btn,.circle-btn,.chip-btn):hover {
  background: #262c36 !important;
  border-color: #484f58 !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Schedule Meeting calendar + history: dark surfaces/text are explicit so no
   white fallback survives when a legacy --surface variable is present.
   -------------------------------------------------------------------------- */
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body :is(
  .meeting-calendar-page,.meeting-calendar-month,.meeting-calendar-weekdays,.meeting-calendar-grid,
  .meeting-calendar-day,.meeting-calendar-day.is-empty,.meeting-calendar-day.is-past,.meeting-calendar-tooltip,
  .meeting-history-page,.meeting-history-summary-card,.meeting-history-table-wrap,.meeting-history-table
) {
  background: #0d1117 !important;
  background-image: none !important;
  border-color: #30363d !important;
  color: #c9d1d9 !important;
  box-shadow: none !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body :is(
  .meeting-calendar-month-title,.meeting-calendar-weekdays,.meeting-history-table thead,.meeting-history-table th,
  .meeting-history-summary-card
) {
  background: #161b22 !important;
  background-image: none !important;
  border-color: #30363d !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body .meeting-calendar-day:hover:not(.is-empty):not(.is-past) {
  background: #161b22 !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body .meeting-calendar-day.is-past:hover {
  background: #161b22 !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body :is(
  .meeting-calendar-visible-month,.meeting-calendar-month-title,.meeting-calendar-day-number,.meeting-calendar-event,
  .meeting-calendar-tooltip-title,.meeting-calendar-tooltip-row strong,.meeting-history-page-head h2,
  .meeting-history-title-copy h2,.meeting-history-summary-card>strong,.meeting-history-title-cell strong,
  .meeting-history-person strong,.meeting-history-time strong,.meeting-history-created strong,.meeting-history-empty>strong
) {
  color: #f0f6fc !important;
  -webkit-text-fill-color: #f0f6fc !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body :is(
  .meeting-calendar-weekdays span,.meeting-calendar-more,.meeting-calendar-tooltip-row,.meeting-history-page-head p,
  .meeting-history-summary-card>span,.meeting-history-summary-card>small,.meeting-history-title-cell small,
  .meeting-history-person small,.meeting-history-time small,.meeting-history-created span,.meeting-history-muted
) {
  color: #9aa4af !important;
  -webkit-text-fill-color: #9aa4af !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body :is(
  .meeting-calendar-nav-btn,.meeting-calendar-actions .outline-btn,.meeting-history-back-icon-btn,.meeting-history-page-btn
) {
  background: #1c2128 !important;
  border-color: #30363d !important;
  color: #c9d1d9 !important;
  box-shadow: none !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body :is(
  .meeting-calendar-nav-btn,.meeting-calendar-actions .outline-btn,.meeting-history-back-icon-btn,.meeting-history-page-btn
):hover:not(:disabled) {
  background: #262c36 !important;
  border-color: #484f58 !important;
  color: #fff !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body .meeting-history-page-btn.active {
  background: #2563eb !important;
  border-color: #4f8cff !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Bug review page must follow the organization theme instead of its legacy
   DemandNXT-green CSS. Tenant branding runtime sets these data attributes.
   -------------------------------------------------------------------------- */
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] :is(
  .bug-review-stat:hover,.bug-review-stat.active,.bug-review-row:hover,.bug-review-row.active
) {
  border-color: rgba(81,143,238,.48) !important;
}
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] .bug-review-stat.active,
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] .bug-review-row.active {
  background: rgba(81,143,238,.11) !important;
  box-shadow: 0 0 0 3px rgba(81,143,238,.10) !important;
}
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] :is(
  .bug-review-row-id,.bug-review-row-sender i,.bug-review-detail-icon,.bug-review-section h3,
  .bug-review-search input:focus,.bug-review-toolbar select:focus
) {
  border-color: #518fee !important;
  color: #3977d6 !important;
}
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] .bug-review-stat-icon.new {
  background: rgba(81,143,238,.13) !important;
  color: #3977d6 !important;
}

:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body[data-page="bug-reports-review"] :is(
  .report-bug-workspace,.report-bug-page,.bug-review-page,.report-bug-card,.bug-review-stat,
  .bug-review-list-card,.bug-review-detail-card,.bug-review-toolbar,.bug-review-sender-card,
  .bug-review-meta-box,.bug-review-section,.bug-review-resolution-card,.bug-delete-modal
) {
  background: #161b22 !important;
  background-image: none !important;
  border-color: #30363d !important;
  color: #c9d1d9 !important;
  box-shadow: none !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body[data-page="bug-reports-review"] :is(
  .bug-review-search input,.bug-review-toolbar select,.bug-review-pagination button,
  .bug-review-resolution-card input,.bug-review-resolution-card select,.bug-review-resolution-card textarea
) {
  background: #0d1117 !important;
  border-color: #30363d !important;
  color: #f0f6fc !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body[data-page="bug-reports-review"] :is(
  .bug-review-stat strong,.bug-review-list-head h2,.bug-review-detail-card h2,.bug-review-row-title,
  .bug-review-sender-main strong,.bug-review-meta-box strong,.bug-review-section-content,.bug-delete-modal h2
) {
  color: #f0f6fc !important;
  -webkit-text-fill-color: #f0f6fc !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body[data-page="bug-reports-review"] :is(
  .bug-review-stat small,.bug-review-list-head p,.bug-review-row-time,.bug-review-row-sender,
  .bug-review-row-attachments,.bug-review-page-number,.bug-review-sender-main span,.bug-review-sender-extra,
  .bug-review-meta-box span,.bug-delete-modal p
) {
  color: #9aa4af !important;
  -webkit-text-fill-color: #9aa4af !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body[data-page="bug-reports-review"] .bug-review-row:hover {
  background: #1c2128 !important;
  border-color: #30363d !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body[data-page="bug-reports-review"] .bug-review-row.active {
  background: rgba(79,140,255,.13) !important;
  border-color: rgba(79,140,255,.56) !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body[data-page="bug-reports-review"] :is(
  .bug-review-row-id,.bug-review-row-sender i,.bug-review-section h3
) {
  color: #8bb5ff !important;
}

/* Blue bug-review accents: replace the remaining legacy DemandNXT green cues. */
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] :is(
  .bug-review-empty-detail > span,.bug-review-stat-icon.new
) {
  background: rgba(81,143,238,.13) !important;
  color: #3977d6 !important;
}
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] :is(
  .bug-review-detail-loading span,.bug-review-loading span
) {
  border-color: rgba(81,143,238,.22) !important;
  border-top-color: #518fee !important;
}
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] .bug-status.submitted {
  background: rgba(81,143,238,.13) !important;
  color: #3977d6 !important;
}
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] .bug-review-sender-avatar {
  background: linear-gradient(145deg,#518fee,#3977d6) !important;
}
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] :is(
  .bug-review-section h3,.bug-review-section-content a,.bug-review-file i,
  .bug-review-row-id,.bug-review-row-sender i
) {
  color: #3977d6 !important;
}
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] .bug-review-file:hover {
  border-color: rgba(81,143,238,.64) !important;
}
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] .bug-review-resolution {
  border-color: rgba(81,143,238,.28) !important;
  background: rgba(81,143,238,.055) !important;
}
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] :is(
  .bug-review-resolution select:focus,.bug-review-resolution textarea:focus,
  .bug-review-search input:focus,.bug-review-toolbar select:focus
) {
  border-color: #518fee !important;
  box-shadow: 0 0 0 3px rgba(81,143,238,.12) !important;
}
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] .bug-review-stat:hover {
  border-color: rgba(81,143,238,.42) !important;
  box-shadow: 0 8px 26px rgba(81,143,238,.10) !important;
}
html[data-site-theme="infoclutch-blue"] body[data-page="bug-reports-review"] .bug-review-row:hover {
  background: rgba(81,143,238,.055) !important;
  border-color: rgba(81,143,238,.28) !important;
}

/* Dark bug-review detail content and modal: eliminate legacy white fallbacks. */
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body[data-page="bug-reports-review"] :is(
  .bug-review-section-content,.bug-review-file,.bug-review-resolution,.bug-review-meta-box,
  .bug-review-sender-card,.bug-review-empty-detail,.bug-review-detail-loading
) {
  background: #0d1117 !important;
  background-image: none !important;
  border-color: #30363d !important;
  color: #c9d1d9 !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body[data-page="bug-reports-review"] :is(
  .bug-review-resolution select,.bug-review-resolution textarea
) {
  background: #0d1117 !important;
  border-color: #30363d !important;
  color: #f0f6fc !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body[data-page="bug-reports-review"] :is(
  .bug-review-resolution-head h3,.bug-review-resolution label,.bug-review-file,.bug-review-section-content
) {
  color: #f0f6fc !important;
  -webkit-text-fill-color: #f0f6fc !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body[data-page="bug-reports-review"] .bug-delete-modal-close:hover {
  background: #21262d !important;
  color: #f0f6fc !important;
}

/* Calendar overview summary tiles are child surfaces; keep them dark as well. */
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar :is(
  .ref-cal-card,.ref-cal-summary-grid,.ref-cal-stat,.ref-cal-priority-row,.ref-cal-upcoming-item
) {
  background-color: #161b22 !important;
  background-image: none !important;
  border-color: #30363d !important;
}
:is(html[data-personal-theme="dark"],html[data-theme="dark-platform"],html[data-site-theme="dark-slate"],html[data-site-scheme="dark"]) body #calendarView .fixed-calendar.rolling-three-week-calendar .ref-cal-stat {
  background: #0d1117 !important;
}
