.notif-dd {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: var(--dropdown-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  box-shadow: var(--dropdown-shadow);
  z-index: 2000;
  display: none;
  overflow: hidden;
  max-height: 400px;
  display: none;
  flex-direction: column;
}
.notif-dd.open { display: flex; }
.notif-dd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--divider);
  flex-shrink: 0;
}
.notif-dd-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.notif-dd-title svg { width: 14px; height: 14px; flex-shrink: 0; }
.notif-dd-clear {
  font-size: 11px;
  color: #FF3B30;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.notif-dd-clear:hover { opacity: 0.75; }
.notif-dd-body {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}
.notif-dd-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--divider);
  transition: background 0.1s;
}
.notif-dd-item:last-child { border-bottom: none; }
.notif-dd-item:hover { background: var(--row-hover); }
.notif-dd-item.unread { background: var(--today-bg); }
.notif-dd-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 1px; }
.notif-dd-text { font-size: 12px; color: var(--text); line-height: 1.4; flex: 1; }
.notif-dd-time { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.notif-dd-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; padding: 28px 16px;
  text-align: center;
}
.notif-dd-empty svg { width: 28px; height: 28px; color: var(--text-tertiary); }
.notif-dd-empty p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }


  /* ===== Custom confirm modal ===== */
  .cconfirm-overlay {
  display: none; position: fixed; inset: 0; z-index: 20000;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(3px);
  align-items: center; justify-content: center;
}
.cconfirm-overlay.open { display: flex; }
.cconfirm-modal {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 28px 24px 22px;
  width: calc(100% - 40px); max-width: 320px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: cconfirmIn 0.18s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes cconfirmIn {
  from { opacity:0; transform: scale(0.88); }
  to   { opacity:1; transform: scale(1); }
}
.cconfirm-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,59,48,0.10); border: 1px solid rgba(255,59,48,0.20);
  display: flex; align-items: center; justify-content: center; color: #FF3B30;
  margin-bottom: 2px;
}
.cconfirm-icon svg { width: 22px; height: 22px; }
.cconfirm-title { font-size: 16px; font-weight: 700; color: var(--text); text-align: center; }
.cconfirm-text  { font-size: 13px; color: var(--text-secondary); text-align: center; line-height: 1.5; }
.cconfirm-btns  { display: flex; gap: 10px; width: 100%; margin-top: 6px; }
.cconfirm-cancel {
  flex: 1; height: 40px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--filter-border);
  color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: background 0.15s;
}
.cconfirm-cancel:hover { background: var(--row-hover); }
.cconfirm-ok {
  flex: 1; height: 40px; border-radius: 8px;
  background: #FF3B30; border: none;
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: opacity 0.15s;
}
.cconfirm-ok:hover { opacity: 0.87; }
.cconfirm-ok:active { transform: scale(0.97); }
  /* cconfirm circle overrides */
  [data-style="circle"] .cconfirm-modal { border-radius: 20px !important; }
  [data-style="circle"] .cconfirm-icon { border-radius: 50% !important; }
  [data-style="circle"] .cconfirm-cancel { border-radius: 12px !important; }
  [data-style="circle"] .cconfirm-ok { border-radius: 12px !important; }
  /* cconfirm square overrides */
  [data-style="square"] .cconfirm-modal { border-radius: 6px !important; }
  [data-style="square"] .cconfirm-icon { border-radius: 4px !important; }
  [data-style="square"] .cconfirm-cancel { border-radius: 3px !important; }
  [data-style="square"] .cconfirm-ok { border-radius: 3px !important; }

/* ===== PROJECTS MODULE v24 ===== */
/* Plus button next to star in table */
.proj-add-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); border-radius: 5px;
  transition: color 0.15s, transform 0.15s; flex-shrink: 0;
  opacity: 0; pointer-events: none;
}
.proj-add-btn svg { width: 14px; height: 14px; }
.proj-add-btn:hover { color: #0078D4; transform: scale(1.15); }
/* Show plus only for logged in */
body.is-logged-in .proj-add-btn { opacity: 1; pointer-events: auto; }

/* ===== SPEC INPUT OVERLAY ===== */
