.productivity-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: start center;
  padding: min(14vh, 140px) 24px 24px;
  background: rgba(5, 16, 32, 0.58);
  backdrop-filter: blur(14px);
}
.productivity-backdrop[hidden],
.notification-surface[hidden] {
  display: none !important;
}
.sidebar nav em[hidden],
#notifications i[hidden] {
  display: none !important;
}
body.productivity-open {
  overflow: hidden;
}
.global-search-card {
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid rgba(145, 174, 212, 0.4);
  border-radius: 24px;
  background: rgba(252, 253, 255, 0.98);
  box-shadow: 0 36px 100px rgba(1, 15, 35, 0.34);
}
.global-search-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 28px 18px;
}
.global-search-card header small,
.notification-surface header small {
  color: #b18b3d;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.global-search-card h2,
.notification-surface h3 {
  margin: 5px 0 3px;
  color: #10223b;
}
.global-search-card p {
  margin: 0;
  color: #758297;
}
.productivity-close {
  border: 0;
  background: transparent;
  color: #718096;
  font-size: 32px;
  cursor: pointer;
}
.global-search-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 28px 20px;
  padding: 0 18px;
  border: 1px solid #b7c9e1;
  border-radius: 16px;
  background: #f4f8fd;
  box-shadow: inset 0 1px 0 #fff;
}
.global-search-input i {
  color: #1c75dc;
  font-size: 24px;
}
.global-search-input input {
  min-width: 0;
  padding: 17px 0;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 18px;
}
.global-search-input kbd {
  padding: 4px 8px;
  border: 1px solid #d7e0ec;
  border-radius: 7px;
  color: #77859a;
  background: #fff;
}
.global-search-results {
  max-height: min(55vh, 560px);
  overflow: auto;
  padding: 0 18px 18px;
}
.global-search-results > button,
.notification-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.global-search-results > button:hover,
.notification-item:hover {
  background: #edf5ff;
}
.global-search-results > button > i {
  min-width: 46px;
  padding: 7px 8px;
  border-radius: 9px;
  color: #2465ad;
  background: #e1efff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.global-search-results span,
.notification-item span {
  display: grid;
  gap: 3px;
}
.global-search-results b,
.notification-item b {
  color: #14243a;
}
.global-search-results small,
.notification-item small,
.notification-item time {
  color: #758297;
}
.global-search-results em,
.notification-item em {
  color: #8aa0ba;
  font-size: 22px;
  font-style: normal;
}
.productivity-empty,
.productivity-loading {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 190px;
  padding: 28px;
  color: #8190a5;
  text-align: center;
}
.productivity-empty i {
  color: #5e84b2;
  font-size: 32px;
  font-style: normal;
}
.productivity-empty b {
  color: #32455f;
}
.productivity-empty.compact {
  min-height: 120px;
}
.productivity-empty.error i,
.productivity-empty.error b {
  color: #bf3d49;
}
.productivity-loading i {
  width: 24px;
  height: 24px;
  border: 3px solid #d6e5f7;
  border-top-color: #1478e8;
  border-radius: 50%;
  animation: productivity-spin 0.75s linear infinite;
}
@keyframes productivity-spin {
  to {
    transform: rotate(360deg);
  }
}
.notification-surface {
  position: fixed;
  top: 92px;
  right: 26px;
  z-index: 1100;
  width: min(430px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid #c7d5e6;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 72px rgba(7, 27, 54, 0.24);
}
.notification-surface > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e1e8f0;
}
.notification-surface h3 {
  margin-bottom: 0;
}
.notification-surface header button {
  border: 0;
  color: #176aca;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
#notificationList {
  max-height: 520px;
  overflow: auto;
  padding: 8px;
}
.notification-item > i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c5cfdb;
}
.notification-item.unread > i {
  background: #1680ee;
  box-shadow: 0 0 0 5px #e6f2ff;
}
.notification-item time {
  font-size: 11px;
}
.notification-surface > footer {
  padding: 12px 18px;
  border-top: 1px solid #e7edf4;
  color: #8592a5;
  font-size: 12px;
  text-align: center;
}
.records-hero-actions {
  display: flex;
  gap: 10px;
}
body.theme-dark .global-search-card,
body.theme-dark .notification-surface {
  border-color: #334c6a;
  background: rgba(12, 30, 53, 0.98);
}
body.theme-dark .global-search-card h2,
body.theme-dark .notification-surface h3,
body.theme-dark .global-search-results b,
body.theme-dark .notification-item b,
body.theme-dark .productivity-empty b {
  color: #edf5ff;
}
body.theme-dark .global-search-input {
  border-color: #365575;
  background: #102b49;
}
body.theme-dark .global-search-input input {
  color: #fff;
}
body.theme-dark .global-search-results > button:hover,
body.theme-dark .notification-item:hover {
  background: #16395e;
}
@media (max-width: 760px) {
  .productivity-backdrop {
    padding: 24px 12px;
  }
  .global-search-card {
    border-radius: 18px;
  }
  .notification-surface {
    top: 78px;
    right: 16px;
  }
}
