**
 * HDM_Styles.js — CSS styles for HomeDashboardModule
 * Auto-generated by refactor-hdm.mjs
 */
// ── CSS ────────────────────────────────────────────────────────────────────────
const STYLES = `
/* ── Family Files Widget ── */
.hdb-ff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.hdb-ff-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hdb-ff-item:hover { opacity: 0.8; }
.hdb-ff-item img, .hdb-ff-item video {
  width: 100%; height: 100%; object-fit: cover;
}
.hdb-ff-icon { font-size: 28px; line-height: 1; }
.hdb-ff-del {
  position: absolute; top: 4px; right: 4px; z-index: 5;
  width: 20px; height: 20px; border-radius: 50%; border: none;
  background: rgba(220,38,38,0.92); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
  cursor: pointer; display: none;
  align-items: center; justify-content: center; padding: 0;
  transition: background 0.15s;
}
.hdb-ff-item:hover .hdb-ff-del { display: flex; }
.hdb-ff-del:hover { background: rgb(185,28,28); }
.hdb-ff-send {
  position: absolute; bottom: 4px; right: 4px; z-index: 5;
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(var(--primary-rgb),0.9); color: #fff;
  font-size: 11px; line-height: 1;
  cursor: pointer; display: none;
  align-items: center; justify-content: center; padding: 0;
  transition: background 0.15s;
}
.hdb-ff-item:hover .hdb-ff-send { display: flex; }
.hdb-ff-send:hover { background: rgba(var(--primary-rgb),1); }
.hdb-ff-more {
  font-size: 11px; color: #64748b;
  text-align: center; margin-bottom: 8px;
}
/* ── View container ── */
.hdb-view {
  position: fixed;
  inset: 0 0 0 260px;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent;
  background-size: cover;
  padding-top: 65px;
  z-index: 10;
  display: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e2e8f0;
}
.hdb-view::before {
  content: '';
  position: fixed;
  inset: 0 0 0 260px;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: -1;
}
.hdb-view.visible { display: block; }
/* Ambient glow */
.hdb-glow {
  position: fixed;
  inset: 0 0 0 260px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(var(--primary-rgb),0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(var(--secondary-rgb),0.15) 0%, transparent 50%);
}
/* ── Layout ── */
.hdb-wrap {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) {
  .hdb-wrap {
    grid-template-columns: 1fr;
    padding: 20px 16px 80px;
  }
}
@media (max-width: 768px) {
  .hdb-view, .hdb-view::before, .hdb-glow {
    left: 0 !important;
  }
  .hdb-view {
    padding-top: 20px;
    bottom: 60px;
  }
}
.hdb-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
/* ── Glass panel (base for all cards) ── */
.hdb-card {
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(45px) saturate(180%);
  -webkit-backdrop-filter: blur(45px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 16px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 480px) {
  .hdb-card {
    padding: 18px;
    border-radius: 20px;
  }
}
.hdb-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.hdb-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* ── Section label (outside cards, like reference) ── */
.hdb-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 2px;
  margin-bottom: 4px;
}
/* ── Hero ── */
.hdb-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(55px) saturate(200%);
  -webkit-backdrop-filter: blur(55px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
@media (max-width: 960px) {
  .hdb-hero {
    padding: 28px 32px;
  }
  .hdb-greeting {
    font-size: 24px;
    margin-bottom: 16px;
  }
}
@media (max-width: 600px) {
  .hdb-hero {
    padding: 20px;
    border-radius: 24px;
  }
  .hdb-greeting {
    font-size: 22px;
    margin-bottom: 12px;
  }
}
.hdb-hero-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: rgba(var(--primary-rgb),0.1);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}
.hdb-greeting {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.2;
  position: relative;
}
.hdb-hero-insights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 600px) {
  .hdb-hero-insights {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
    gap: 12px;
  }
}
.hdb-hero-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .hdb-hero-insight {
    font-size: 13px;
  }
}
.hdb-hero-insight .material-symbols-outlined {
  font-size: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}
.hdb-hero-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .hdb-hero-actions-wrapper {
    flex-wrap: wrap-reverse;
    justify-content: center;
  }
}
.hdb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  flex: 1;
}
.hdb-hero-btn-voice {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}
.hdb-hero-btn-voice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
  opacity: 0.9;
}
.hdb-hero-btn-voice .material-symbols-outlined {
  font-size: 28px;
}
.hdb-hero-btn {
  flex: 1 1 auto;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 12px;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.hdb-hero-btn:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
  color: #fff;
}
.hdb-hero-btn.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}
.hdb-hero-btn.primary:hover {
  background: var(--primary-color);
  opacity: 0.9;
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}
.hdb-hero-btn .material-symbols-outlined {
  font-size: 18px;
}
.hdb-btn-primary {
  padding: 12px 24px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb),0.25);
}
.hdb-btn-primary:hover { background: var(--primary-color); opacity: 0.85; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(var(--primary-rgb),0.35); }
.hdb-btn-primary:active { transform: scale(0.95); }
.hdb-btn-secondary {
  padding: 11px 24px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.hdb-btn-secondary:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }
.hdb-btn-secondary:active { transform: scale(0.95); }
/* ── Skill Pills (Hero + Chat) ── */
.hdb-skill-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  padding-right: 16px;
  cursor: grab;
  touch-action: pan-x;
}
.hdb-skill-pills.is-swiping { cursor: grabbing; }
.hdb-skill-pills::-webkit-scrollbar { display: none; }
.hdb-skill-pills-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.hdb-skill-pill {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  white-space: nowrap;
}
.hdb-skill-pill:hover {
  background: rgba(var(--primary-rgb),0.15);
  border-color: rgba(var(--primary-rgb),0.35);
  color: #a5b4fc;
  transform: translateY(-1px);
}
.hdb-skill-pill:active { transform: scale(0.96); }
.hdb-skill-pill .pill-icon { font-size: 14px; line-height: 1; }
.hdb-skill-pill--create {
  background: var(--primary-color) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 18px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb),0.3) !important;
}
.hdb-skill-pill--create:hover {
  background: var(--primary-dark) !important;
  box-shadow: 0 10px 28px rgba(var(--primary-rgb),0.45) !important;
  transform: translateY(-2px);
  color: #fff !important;
}
/* ── Hero Agent Suggestions (inline) ── */
.hdb-hero-suggest-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
}
.hdb-hero-suggest-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(var(--primary-rgb),0.7);
  margin-bottom: 10px;
}
.hdb-hero-suggest-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hdb-hero-suggest-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1 1 200px;
  min-width: 0;
}
.hdb-hero-suggest-card:hover {
  background: rgba(var(--primary-rgb),0.1);
  border-color: rgba(var(--primary-rgb),0.25);
  transform: translateY(-1px);
}
.hdb-hero-suggest-icon {
  font-size: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}
.hdb-hero-suggest-body { min-width: 0; flex: 1; }
.hdb-hero-suggest-text {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdb-hero-suggest-hint {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.hdb-hero-suggest-cta {
  font-size: 16px;
  color: rgba(var(--primary-rgb),0.5);
  flex-shrink: 0;
  transition: color 0.2s;
}
.hdb-hero-suggest-card:hover .hdb-hero-suggest-cta { color: var(--primary-color); }
@media (max-width: 500px) {
  .hdb-hero-suggest-card { flex: 1 1 100%; }
}
/* ── Hero Weather ── */
.hdb-hero-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hdb-hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
/* Tablet: wrap skill-pills to second row */
@media (max-width: 960px) {
  .hdb-hero-top-row {
    flex-wrap: wrap;
    gap: 16px;
  }
  .hdb-hero-main { flex: 1 1 auto; min-width: 0; }
  .hdb-hero-actions { flex-shrink: 0; }
  .hdb-skill-pills {
    flex: 0 0 100%;
    order: 10;
    margin-top: 4px;
  }
}
.hdb-hero-main { flex: 1; }
.hdb-hero-weather {
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(10px);
}
.hdb-hero-weather-temp { font-size: 28px; font-weight: 700; color: #fff; }
.hdb-hero-weather-cond { font-size: 12px; color: #94a3b8; }
.hdb-hero-weather-info { font-size: 11px; color: #64748b; }
.hdb-hero-weather-footer { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 8px; width: 100%; }
.hdb-hero-weather-icon { font-size: 28px; color: #fbbf24; margin-bottom: 2px; }
/* ── Family Status ── */
.hdb-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.hdb-member-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.hdb-member-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.hdb-member-msg-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(var(--primary-rgb),0.25);
  background: rgba(var(--primary-rgb),0.12);
  color: rgba(var(--primary-rgb),1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0;
}
.hdb-member-msg-btn:hover {
  background: rgba(var(--primary-rgb),0.28);
  border-color: rgba(var(--primary-rgb),0.5);
  transform: scale(1.1);
}
.hdb-member-msg-btn .material-symbols-outlined { font-size: 16px; }
/* ── Location Map ── */
.hdb-family-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.hdb-loc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: none;
  color: rgba(var(--primary-rgb),1);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.hdb-loc-btn:hover {
  background: rgba(var(--primary-rgb),0.22);
  border-color: rgba(var(--primary-rgb),0.45);
}
.hdb-loc-btn:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.hdb-loc-btn .material-symbols-outlined { font-size: 16px; }
/* Location Map Card style handled via hdb-loc-map-wrap */
.hdb-loc-map-wrap {
  display: none;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.hdb-loc-map-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border-color: rgba(var(--primary-rgb),0.3);
}
.hdb-loc-map-wrap.visible { display: flex; }
.hdb-loc-map-wrap .leaflet-container {
  height: 100%; width: 100%;
  background: #1a1a2e;
  pointer-events: none;
}
.hdb-loc-status {
  font-size: 11px; color: #64748b;
  text-align: center;
}
/* Location modal */
.hdb-loc-modal {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  align-items: center; justify-content: center;
}
.hdb-loc-modal.open { display: flex; }
.hdb-loc-modal-inner {
  position: relative;
  width: 85vw; height: 80vh;
  border-radius: 36px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(30,30,50,0.45);
  backdrop-filter: blur(50px) saturate(200%);
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
}
.hdb-loc-modal-inner .leaflet-container { pointer-events: auto; }
.hdb-loc-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 1000;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(20,20,35,0.6); color: #fff;
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.hdb-loc-modal-close:hover { background: rgba(20,20,35,0.8); transform: scale(1.1); }
/* Modal Overlay */
.hdb-msg-overlay, .hdb-notif-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  display: flex; align-items: center; justify-content: center;
  animation: hdbFadeIn 0.3s ease;
}
@keyframes hdbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hdbModalSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hdb-msg-modal, .hdb-notif-modal {
  background: rgba(18, 20, 36, 0.82);
  backdrop-filter: blur(60px) saturate(210%);
  -webkit-backdrop-filter: blur(60px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  padding: 0;
  width: 95%; 
  max-width: 520px;
  max-height: 85vh;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.06) inset;
  position: relative;
  overflow: hidden !important;
  animation: hdbModalSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hdb-msg-modal { padding: 36px; }
.hdb-msg-modal-title {
  font-size: 24px; font-weight: 800; color: #fff;
  margin-bottom: 6px; letter-spacing: -0.02em;
}
.hdb-msg-modal-sub {
  font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 24px;
  font-weight: 500;
}
.hdb-msg-textarea {
  width: 100%; min-height: 120px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 16px 20px;
  color: #fff; font-size: 15px; resize: none;
  font-family: inherit;
  box-sizing: border-box;
  outline: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hdb-msg-textarea:focus { 
  border-color: var(--primary-color); 
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}
.hdb-msg-actions {
  display: flex; gap: 14px; margin-top: 24px;
}
.hdb-msg-btn {
  padding: 14px 24px; border-radius: 18px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none; font-family: inherit;
}
.hdb-msg-cancel {
  flex: 1; 
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}
.hdb-msg-cancel:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.hdb-msg-send {
  flex: 2; 
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}
.hdb-msg-send:hover { 
  box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.45); 
  transform: translateY(-2px); 
}
.hdb-msg-send.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}
.hdb-msg-send.danger:hover {
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.45);
}
.hdb-msg-send:disabled { opacity: 0.5; cursor: default; transform: none !important; box-shadow: none !important; }
.hdb-msg-file-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; min-height: 32px;
}
.hdb-msg-attach-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: rgba(255,255,255,0.7);
  cursor: pointer; font-size: 13px;
  transition: all 0.2s;
}
.hdb-msg-attach-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.hdb-msg-file-name {
  font-size: 12px; color: rgba(255,255,255,0.5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px;
}
.hdb-msg-file-clear {
  background: none; border: none; color: rgba(255,255,255,0.3);
  cursor: pointer; font-size: 16px; padding: 0 4px;
  line-height: 1; transition: color 0.15s;
}
.hdb-msg-file-clear:hover { color: #ef4444; }
/* ── Notification badge & modal ── */
.hdb-hero-insight--notif { cursor: pointer; }
.hdb-hero-insight--notif:hover { opacity: 0.82; }
.hdb-notif-badge {
  background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 800;
  border-radius: 10px; padding: 2px 6px;
  margin-left: 4px; min-width: 20px; text-align: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}
.hdb-notif-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.hdb-notif-modal-title {
  font-size: 20px; font-weight: 800; color: #fff;
  letter-spacing: -0.01em;
}
.hdb-notif-read-all {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; color: #94a3b8;
  font-size: 13px; font-weight: 600; padding: 6px 14px; cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.hdb-notif-read-all:hover { 
  background: rgba(255,255,255,0.1); 
  border-color: rgba(255,255,255,0.2);
  color: #fff; 
}
.hdb-notif-list { 
  flex: 1 1 0% !important;
  overflow-y: auto !important; 
  overflow-x: hidden !important;
  min-height: 0; 
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
/* Custom Scrollbar */
.hdb-notif-list::-webkit-scrollbar { width: 6px; }
.hdb-notif-list::-webkit-scrollbar-track { background: transparent; }
.hdb-notif-list::-webkit-scrollbar-thumb { 
  background: rgba(255,255,255,0.15); 
  border-radius: 10px; 
}
.hdb-notif-list::-webkit-scrollbar-thumb:hover { 
  background: rgba(255,255,255,0.25); 
}
.hdb-notif-loading, .hdb-notif-empty {
  padding: 40px 24px; text-align: center; color: #64748b; font-size: 14px;
}
.hdb-notif-item {
  display: flex; gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
  cursor: pointer;
}
.hdb-notif-item:hover { background: rgba(255,255,255,0.03); }
.hdb-notif-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
}
.hdb-notif-item:hover .hdb-notif-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  transform: scale(1.05);
}
.hdb-notif-content { flex: 1; min-width: 0; }
.hdb-notif-item--unread .hdb-notif-icon {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
}
.hdb-notif-item-title {
  font-size: 14px; font-weight: 700; color: #f1f5f9; margin-bottom: 4px;
}
.hdb-notif-item--unread .hdb-notif-item-title { color: #fff; }
.hdb-notif-item-body {
  font-size: 13px; color: #94a3b8; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.hdb-notif-item-time {
  font-size: 11px; color: #475569; margin-top: 6px; font-weight: 500;
}
.hdb-notif-item--unread .hdb-notif-item-time { color: var(--primary-color); }
.hdb-notif-back {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.1); 
  color: #94a3b8; border-radius: 10px;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; font-size: 13px; padding: 6px 12px;
  transition: all 0.2s;
}
.hdb-notif-back:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hdb-notif-detail { 
  padding: 0 28px 40px; 
  overflow-y: auto !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
}
.hdb-notif-detail a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.hdb-notif-detail a:hover { text-decoration: underline; }
.hdb-notif-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.05); border: none; color: #94a3b8;
  cursor: pointer; width: 32px; height: 32px; border-radius: 50%;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center; z-index: 100;
}
.hdb-notif-close:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; transform: rotate(90deg); }
.hdb-notif-detail-title {
  font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; padding-right: 20px;
  line-height: 1.2; letter-spacing: -0.02em;
}
.hdb-notif-detail-time {
  font-size: 13px; color: #64748b; margin-bottom: 24px; font-weight: 500;
}
.hdb-notif-detail-body {
  font-size: 15px; color: #cbd5e1; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}
.hdb-member-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hdb-member-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}
.hdb-member-avatar-placeholder {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(59,130,246,0.4));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: #fff;
}
.hdb-member-title { flex: 1; min-width: 0; }
.hdb-member-name-row { font-size: 16px; display: block; }
.hdb-member-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}
.hdb-member-badge.home   { background: rgba(16,185,129,0.1);  color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.hdb-member-badge.away   { background: rgba(245,158,11,0.1);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.hdb-member-badge.school { background: rgba(var(--primary-rgb),0.1);  color: var(--primary-color); border: 1px solid rgba(var(--primary-rgb),0.2); }
.hdb-member-badge.work   { background: rgba(245,158,11,0.1);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.hdb-member-badge.other  { background: rgba(255,255,255,0.06); color: #94a3b8; border: 1px solid rgba(255,255,255,0.1); }
.hdb-member-activity { font-size: 13px; font-weight: 600; color: #fff; }
.hdb-member-return   { font-size: 12px; color: #64748b; margin-top: 4px; }
/* ── Suggestions Grid & Scroll ── */
.hdb-suggestions-container {
  position: relative;
  width: 100%;
}
.hdb-suggestions-grid {
  display: flex !important;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 8px;
  flex: 1;
  width: 100%;
  padding: 4px 0;
  scrollbar-width: none; /* Firefox */
}
.hdb-suggestions-grid::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.hdb-suggestion-btn {
  flex: 0 0 calc(25% - 7px);
  min-width: 150px;
  background: rgba(20,20,35,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px 16px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 760px) {
  .hdb-suggestion-btn { flex: 0 0 calc(50% - 4px); min-width: 130px; }
}
.hdb-suggestion-btn:hover {
  border-color: rgba(var(--primary-rgb), 0.4);
  background: rgba(var(--primary-rgb), 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.hdb-suggestion-btn:active { transform: scale(0.97); }
.hdb-suggestion-icon {
  font-size: 32px !important;
  transition: transform 0.3s ease;
}
.hdb-suggestion-btn:nth-child(5n+1) .hdb-suggestion-icon { color: #6366f1; } /* Indigo */
.hdb-suggestion-btn:nth-child(5n+2) .hdb-suggestion-icon { color: #a855f7; } /* Purple */
.hdb-suggestion-btn:nth-child(5n+3) .hdb-suggestion-icon { color: #10b981; } /* Emerald */
.hdb-suggestion-btn:nth-child(5n+4) .hdb-suggestion-icon { color: #f43f5e; } /* Rose */
.hdb-suggestion-btn:nth-child(5n+5) .hdb-suggestion-icon { color: #f59e0b; } /* Amber */
.hdb-suggestion-btn:hover .hdb-suggestion-icon {
  transform: scale(1.1) rotate(5deg);
}
.hdb-suggestion-text {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.4;
}
.hdb-suggestions-prev, .hdb-suggestions-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 44px;
  background: none;
  border: none;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
  z-index: 10;
  opacity: 1;
}
.hdb-suggestions-prev { left: -24px; }
.hdb-suggestions-next { right: -24px; }
@media (max-width: 760px) {
  .hdb-suggestions-prev { left: -8px; }
  .hdb-suggestions-next { right: -8px; }
}
.hdb-suggestions-prev:active, .hdb-suggestions-next:active { transform: translateY(-50%) scale(0.9); }
.hdb-suggestions-prev .material-symbols-outlined, .hdb-suggestions-next .material-symbols-outlined { font-size: 24px; }
/* ── Agent Suggestions ("\u0410\u0433\u0435\u043d\u0442 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442") ── */
.hdb-agent-suggest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
@media (max-width: 760px) {
  .hdb-agent-suggest-grid { grid-template-columns: minmax(0, 1fr); }
}
.hdb-agent-suggest-card {
  box-sizing: border-box;
  min-width: 0;
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.hdb-agent-suggest-card:hover {
  background: rgba(var(--primary-rgb), 0.11);
  border-color: rgba(var(--primary-rgb), 0.32);
  transform: translateY(-1px);
}
.hdb-agent-suggest-card:active { transform: scale(0.98); }
.hdb-agent-suggest-icon {
  font-size: 24px !important;
  color: var(--primary-color, #2A6659);
  flex-shrink: 0;
}
.hdb-agent-suggest-body { flex: 1; min-width: 0; }
.hdb-agent-suggest-text {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdb-agent-suggest-hint {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdb-agent-suggest-cta {
  background: rgba(var(--primary-rgb), 0.14);
  border: 1px solid rgba(var(--primary-rgb), 0.28);
  color: var(--primary-color, #2A6659);
  border-radius: 10px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  pointer-events: none; /* parent card handles click */
}
.hdb-agent-suggest-card:hover .hdb-agent-suggest-cta {
  background: rgba(var(--primary-rgb), 0.24);
}
/* ── Timeline ── */
.hdb-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 0;
}
.hdb-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.hdb-timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 10px 0;
  position: relative;
  overflow: visible;
}
.hdb-timeline-item.inactive { opacity: 0.6; }
.hdb-tl-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.hdb-tl-dot.reminder {
  background: rgba(var(--primary-rgb),0.15);
  border: 1px solid var(--primary-color);
}
.hdb-tl-dot.reminder::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}
.hdb-tl-dot.inferred {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.hdb-tl-dot.family_event {
  background: rgba(245,158,11,0.15);
  border: 1px solid #f59e0b;
}
.hdb-tl-dot.family_event::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f59e0b;
}
.hdb-timeline-time.family_event { color: #f59e0b; }
/* Accent dot for the closest upcoming event */
.hdb-tl-dot.closest::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  display: block !important;
}
.hdb-tl-dot.closest {
  border-color: var(--primary-color);
}
.hdb-timeline-time { font-size: 13px; font-weight: 700; color: var(--primary-color); min-width: 46px; margin-top: 3px; }
.hdb-timeline-time.inferred { color: #64748b; }
.hdb-timeline-event { font-size: 14px; color: #e2e8f0; font-weight: 500; line-height: 1.4; margin-top: 3px; word-break: break-all; }
.hdb-timeline-item.inactive .hdb-timeline-event { color: #cbd5e1; }
.hdb-timeline-item:hover .hdb-tl-delete { opacity: 1; pointer-events: auto; }
/* ── Tomorrow plan styles ── */
.hdb-tl-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 6px;
}
.hdb-tl-separator-line {
  flex: 1;
  border: none;
  border-top: 1.5px dashed rgba(255,255,255,0.18);
}
.hdb-tl-separator-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
  white-space: nowrap;
}
.hdb-tl-dot.plan {
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.5);
}
.hdb-tl-dot.plan::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(99,102,241,0.8);
}
.hdb-timeline-time.plan { color: #818cf8; }
.hdb-timeline-item.tomorrow .hdb-timeline-event { color: #94a3b8; }
.hdb-tl-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  align-self: center;
}
.hdb-tl-delete {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  padding: 0;
}
.hdb-tl-delete:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}
.hdb-tl-delete .material-symbols-outlined {
  font-size: 18px;
  font-family: 'Material Symbols Outlined';
}
/* Bell toggle */
.hdb-tl-bell {
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
  background: none; border: none; padding: 4px; border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.hdb-tl-bell .material-symbols-outlined { font-size: 18px; color: rgba(255,255,255,0.25); transition: color 0.15s; }
.hdb-tl-bell.active { opacity: 1; pointer-events: auto; }
.hdb-tl-bell.active .material-symbols-outlined { color: var(--primary-color); }
.hdb-timeline-item:hover .hdb-tl-bell { opacity: 0.4; pointer-events: auto; }
.hdb-tl-bell:hover .material-symbols-outlined { color: rgba(255,255,255,0.6); }
.hdb-tl-bell.active:hover .material-symbols-outlined { color: #f87171; }
/* ── Timeline: task button ── */
.hdb-tl-task {
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
  background: none; border: none; padding: 4px; border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.hdb-tl-task .material-symbols-outlined { font-size: 18px; color: rgba(255,255,255,0.25); transition: color 0.15s; }
.hdb-tl-task.active { opacity: 1; pointer-events: auto; }
.hdb-tl-task.active .material-symbols-outlined { color: #f59e0b; }
.hdb-timeline-item:hover .hdb-tl-task { opacity: 0.4; pointer-events: auto; }
.hdb-tl-task:hover .material-symbols-outlined { color: rgba(255,255,255,0.6); }
.hdb-tl-task.active:hover .material-symbols-outlined { color: #f87171; }
.hdb-tl-task-count { gap: 3px; }
.hdb-tl-task-badge {
  font-size: 10px; font-weight: 700; color: #f59e0b;
  background: rgba(245,158,11,.15); border-radius: 8px;
  padding: 0 5px; line-height: 16px; min-width: 16px; text-align: center;
}
.hdb-tl-task-count:hover .hdb-tl-task-badge { background: rgba(239,68,68,.15); color: #f87171; }
.hdb-event-tasks-popup {
  position: fixed; z-index: 9999;
  background: #1a1f2e;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px;
  min-width: 240px; max-width: 300px;
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
}
.hdb-etp-title { font-size: 11px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.hdb-etp-event { font-size: 13px; color: #94a3b8; margin-bottom: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdb-etp-task {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; border-radius: 8px;
}
.hdb-etp-task:hover { background: rgba(255,255,255,.04); }
.hdb-etp-task.done .hdb-etp-task-title { text-decoration: line-through; color: #475569; }
.hdb-etp-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(245,158,11,.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: all .15s;
}
.hdb-etp-check:hover { border-color: #f59e0b; background: rgba(245,158,11,.15); }
.hdb-etp-check.checked {
  background: rgba(34,197,94,.15); border-color: #22c55e;
}
.hdb-etp-check.checked::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border: 2px solid #22c55e;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.hdb-etp-task-title { flex: 1; font-size: 13px; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdb-etp-delete {
  background: none; border: none; color: #475569; cursor: pointer;
  font-size: 14px; padding: 2px 4px; border-radius: 4px; line-height: 1;
  opacity: 0; transition: opacity .15s, color .15s;
}
.hdb-etp-task:hover .hdb-etp-delete { opacity: 1; }
.hdb-etp-delete:hover { color: #ef4444; }
.hdb-etp-add {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; margin-top: 8px; padding: 7px 10px;
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.1);
  border-radius: 8px; color: #64748b; font-size: 12px; cursor: pointer;
  transition: background .15s, color .15s; box-sizing: border-box;
}
.hdb-etp-add:hover { background: rgba(255,255,255,.08); color: #94a3b8; }
.hdb-etp-new-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; border-radius: 8px;
}
.hdb-etp-task-title[contenteditable="true"] {
  outline: none; border-bottom: 1px solid #2A6659;
  white-space: normal; word-break: break-word;
  min-width: 20px;
}
.hdb-etp-circle {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #f59e0b; background: transparent;
}
.hdb-etp-new-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #e2e8f0; font-size: 13px; padding: 0;
  min-width: 0;
}
.hdb-etp-new-input::placeholder { color: #475569; }
/* ── My Tasks widget ── */
#hdb-my-tasks-widget {}
.hdb-task-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
}
.hdb-task-item:last-child { border-bottom: none; }
.hdb-task-check {
  width: 18px; height: 18px; min-width: 18px; border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.2); background: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; margin-top: 1px;
}
.hdb-task-check:hover { border-color: var(--primary-color); }
.hdb-task-check.done { background: var(--primary-color); border-color: var(--primary-color); }
.hdb-task-check.done::after { content: '✓'; color: #fff; font-size: 11px; line-height: 1; }
.hdb-task-body { flex: 1; min-width: 0; }
.hdb-task-title { font-size: 13px; color: #e2e8f0; line-height: 1.4; word-break: break-word; }
.hdb-task-item.done-item .hdb-task-title { color: #64748b; text-decoration: line-through; }
.hdb-task-meta { font-size: 11px; color: #64748b; margin-top: 2px; }
.hdb-task-del {
  opacity: 0; pointer-events: none; background: none; border: none;
  cursor: pointer; color: #64748b; font-size: 13px; padding: 2px 4px;
  transition: opacity 0.15s; flex-shrink: 0;
}
.hdb-task-item:hover .hdb-task-del { opacity: 1; pointer-events: auto; }
.hdb-task-del:hover { color: #f87171; }
/* ── Task file badge (attachment icon) ── */
.hdb-task-file-badge {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px !important; color: #94a3b8;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s;
  margin-top: 2px;
}
.hdb-task-item.has-files .hdb-task-file-badge { opacity: 0.6; }
.hdb-task-item:hover .hdb-task-file-badge { opacity: 1; color: var(--primary-color); }
/* ── Task View Modal ── */
.hdb-task-view-overlay {
  position: fixed; inset: 0; z-index: 2500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: hdb-fade-in 0.2s ease;
}
@keyframes hdb-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hdb-task-view-modal {
  background: rgba(15, 17, 30, 0.88);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  width: 95%; max-width: 540px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position: relative;
  overflow: hidden;
  animation: hdb-slide-up 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes hdb-slide-up {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.hdb-task-view-header {
  padding: 24px 24px 0;
  display: flex; align-items: flex-start; gap: 12px;
}
.hdb-task-view-status {
  width: 22px; height: 22px; min-width: 22px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.2);
  background: none; margin-top: 2px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hdb-task-view-status.done {
  background: var(--primary-color);
  border-color: var(--primary-color);
}
.hdb-task-view-status.done::after { content: '✓'; color: #fff; font-size: 12px; }
.hdb-task-view-title {
  flex: 1; font-size: 20px; font-weight: 700; color: #fff;
  line-height: 1.3; word-break: break-word;
}
.hdb-task-view-title.done-title { color: #64748b; text-decoration: line-through; }
.hdb-task-view-close {
  width: 36px; height: 36px; min-width: 36px; min-height: 36px;
  padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05); color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; font-size: 18px; line-height: 1;
  transition: all 0.2s;
}
.hdb-task-view-close:hover { background: rgba(255,255,255,0.1); color: #fff; transform: scale(1.1); }
.hdb-day-popover-add-btn {
  width: 100%; padding: 10px 16px; border-radius: 12px;
  background: rgba(var(--primary-rgb),0.12); border: 1px solid rgba(var(--primary-rgb),0.25);
  color: #a5b4fc; font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 6px; justify-content: center;
  transition: all 0.2s ease;
}
.hdb-day-popover-add-btn:hover {
  background: rgba(var(--primary-rgb),0.2); border-color: rgba(var(--primary-rgb),0.4);
  color: #c7d2fe;
}
.hdb-task-view-body {
  padding: 16px 24px 24px;
  overflow-y: auto; flex: 1;
}
.hdb-task-view-body::-webkit-scrollbar { width: 4px; }
.hdb-task-view-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
.hdb-task-view-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 16px; margin-top: 8px;
}
.hdb-task-view-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
}
.hdb-task-view-chip.overdue {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}
.hdb-task-view-desc {
  font-size: 14px; color: #cbd5e1; line-height: 1.6;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 14px 16px;
  margin-bottom: 16px;
  white-space: pre-wrap; word-break: break-word;
}
.hdb-task-view-files-title {
  font-size: 11px; font-weight: 700; color: #475569;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.hdb-task-view-files-loading {
  font-size: 13px; color: #475569; padding: 8px 0;
}
.hdb-task-view-files-empty {
  font-size: 13px; color: #334155; font-style: italic; padding: 4px 0;
}
.hdb-task-view-file {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 8px;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer; text-decoration: none;
}
.hdb-task-view-file:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(var(--primary-rgb), 0.25);
}
.hdb-task-view-file-icon {
  font-size: 22px; flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex; align-items: center; justify-content: center;
}
.hdb-task-view-file-info { flex: 1; min-width: 0; }
.hdb-task-view-file-name {
  font-size: 13px; font-weight: 600; color: #e2e8f0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hdb-task-view-file-size {
  font-size: 11px; color: #475569; margin-top: 2px;
}
.hdb-task-view-file-ext {
  font-size: 10px; font-weight: 700; color: var(--primary-color);
  opacity: 0.7;
}
.hdb-task-view-img-preview {
  width: 100%; border-radius: 12px; margin-bottom: 12px;
  max-height: 280px; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
}
.hdb-task-view-actions {
  display: flex; gap: 10px; padding: 0 24px 24px;
}
.hdb-task-view-btn {
  flex: 1; padding: 11px 16px; border-radius: 14px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s;
}
.hdb-task-view-btn.primary {
  background: rgba(var(--primary-rgb), 0.85);
  color: #fff;
}
.hdb-task-view-btn.primary:hover { opacity: 0.9; transform: translateY(-1px); }
.hdb-task-view-btn.secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
}
.hdb-task-view-btn.secondary:hover { background: rgba(255,255,255,0.09); color: #e2e8f0; }
.hdb-task-view-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.hdb-task-view-btn.danger:hover { background: rgba(239, 68, 68, 0.2); }
/* Download button inside task file row */
.hdb-task-file-download-btn {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #64748b;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.hdb-task-file-download-btn .material-symbols-outlined { font-size: 17px; }
.hdb-task-file-download-btn:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.4);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}
/* ── Timeline: add button + empty state ── */
.hdb-tl-add-btn {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
  width: 32px; height: 32px;
  min-width: 32px; min-height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}
.hdb-tl-add-btn:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; }
.hdb-tl-add-btn .material-symbols-outlined { font-size: 14px; }
.hdb-tl-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding: 20px 0;
  color: #475569; font-size: 13px;
}
.hdb-tl-generate-btn {
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.12), rgba(var(--secondary-rgb),0.08));
  border: 1px solid rgba(var(--primary-rgb),0.25);
  color: var(--primary-color);
  padding: 9px 20px; border-radius: 10px;
  cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all 0.2s;
}
.hdb-tl-generate-btn:hover { background: rgba(var(--primary-rgb),0.22); }
.hdb-tl-generate-hint {
  padding: 16px 0;
  text-align: center;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  margin-bottom: 10px;
}
.hdb-add-ev-input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #e2e8f0; font-size: 14px;
  padding: 9px 12px;
  outline: none;
  color-scheme: dark;
}
.hdb-add-ev-input:focus { border-color: var(--primary-color); }
.hdb-add-ev-date-row { display: flex; gap: 6px; flex-wrap: wrap; }
.hdb-add-ev-date-chip {
  padding: 5px 14px; border-radius: 20px; font-size: 13px; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: #94a3b8; transition: all 0.15s; flex-shrink: 0;
}
.hdb-add-ev-date-chip.active { background: rgba(99,102,241,0.2); border-color: #6366f1; color: #818cf8; font-weight: 600; }
.hdb-add-ev-reminder-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: background 0.18s;
}
.hdb-add-ev-reminder-row:hover { background: rgba(163,166,255,0.06); border-color: rgba(163,166,255,0.15); }
.hdb-add-ev-reminder-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.18s;
}
.hdb-add-ev-reminder-row input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
.hdb-add-ev-reminder-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
/* ── Timeline inline editing ── */
.hdb-tl-time-input {
  width: 80px;
  background: rgba(99,102,241,0.15);
  border: 1px solid #6366f1;
  border-radius: 4px;
  color: #818cf8;
  font-size: 13px;
  font-weight: 700;
  padding: 1px 4px;
  outline: none;
  font-family: inherit;
}
.hdb-timeline-time { cursor: pointer; }
.hdb-timeline-time:hover { text-decoration: underline dotted; }
.hdb-timeline-event { cursor: text; }
.hdb-tl-event-editable {
  outline: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  min-width: 40px;
  display: inline-block;
}
.hdb-tl-event-editable:focus { border-bottom-color: #6366f1; }
/* ── Timeline drag-and-drop ── */
.hdb-timeline-item[draggable="true"] { cursor: grab; }
.hdb-timeline-item[draggable="true"]:active { cursor: grabbing; }
.hdb-timeline-item.drag-over {
  background: rgba(99,102,241,0.08);
  border-radius: 8px;
  outline: 1px dashed rgba(99,102,241,0.4);
}
.hdb-timeline-item.dragging { opacity: 0.35; }
/* ── Sidebar ── */
.hdb-sidebar { display: flex; flex-direction: column; gap: 16px; }
.hdb-ff-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hdb-ff-item:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb),0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.hdb-reminder-item, .hdb-task-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.hdb-reminder-item:hover, .hdb-task-item:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.1);
}
.hdb-reminder-item:last-child, .hdb-task-item:last-of-type { margin-bottom: 0; }
.hdb-reminder-item .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.hdb-reminder-msg  { font-size: 13px; color: #f1f5f9; font-weight: 500; line-height: 1.4; overflow-wrap: break-word; word-break: break-word; }
.hdb-reminder-time { font-size: 11px; color: #64748b; margin-top: 3px; overflow-wrap: break-word; word-break: break-word; }
.hdb-item-del-btn {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  min-width: 24px; min-height: 24px;
  border-radius: 50%;
  background: #ef4444;
  border: none;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
  flex-shrink: 0;
}
.hdb-reminder-item:hover .hdb-item-del-btn,
.hdb-task-item:hover .hdb-item-del-btn {
  display: flex;
  opacity: 1;
}
/* \u041d\u0430 \u0442\u0430\u0447-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u0434\u0430, \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043e\u043b\u044c\u0448\u0435 */
@media (pointer: coarse) {
  .hdb-item-del-btn {
    display: flex !important;
    opacity: 0.7;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    top: 8px;
    right: 8px;
  }
  .hdb-reminder-item:hover .hdb-item-del-btn,
  .hdb-task-item:hover .hdb-item-del-btn {
    opacity: 1;
  }
}
.hdb-add-btn {
  width: 100%;
  margin-top: 16px;
  padding: 8px;
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}
.hdb-add-btn:hover { opacity: 0.75; }
.hdb-pattern-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin: 0 -14px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s ease;
  cursor: default;
}
.hdb-pattern-item:last-child { border-bottom: none; }
.hdb-pattern-item:hover {
  background: rgba(255,255,255,0.04);
  transform: translateX(4px);
}
.hdb-pattern-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.hdb-pattern-icon-wrap.indigo { background: rgba(var(--primary-rgb),0.1); color: var(--primary-color); }
.hdb-pattern-icon-wrap.purple { background: rgba(var(--secondary-rgb),0.1); color: var(--secondary-color); }
.hdb-pattern-icon-wrap.green  { background: rgba(16,185,129,0.1);  color: #34d399; }
.hdb-pattern-icon-wrap .material-symbols-outlined { font-size: 18px; }
.hdb-pattern-title  { 
  font-size: 14px; 
  font-weight: 500; 
  color: #f1f5f9; 
  line-height: 1.5; 
  word-break: break-word; 
  white-space: normal !important; 
}
.hdb-pattern-detail { font-size: 11px; color: #64748b; margin-top: 1px; }
.hdb-empty { font-size: 13px; color: #475569; text-align: center; padding: 12px 0; }
.hdb-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 12px; text-align: center; }
/* ── Loading skeleton ── */
.hdb-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: hdb-shimmer 1.5s infinite;
  border-radius: 8px;
  height: 14px;
  margin-bottom: 10px;
}
@keyframes hdb-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* ── Responsive ── */
@media (max-width: 1100px) {
  .hdb-wrap { grid-template-columns: 1fr; }
  .hdb-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 768px) {
  .hdb-view { inset: 60px 0 60px 0; }
  .hdb-glow { left: 0; }
  .hdb-wrap { padding: 16px; }
  .hdb-hero { padding: 18px; }
  .hdb-hero-top-row { flex-direction: column; flex-wrap: nowrap; gap: 12px; align-items: center; text-align: center; }
  .hdb-skill-pills { order: 0; margin-top: 0; justify-content: flex-start; width: 100%; }
  .hdb-skill-pills-label { text-align: center; }
  .hdb-hero-actions { justify-content: center; width: 100%; }
  .hdb-btn-secondary[data-hero-action="reminders"] { display: none; }
  .hdb-hero-weather { width: 100%; min-width: 0; box-sizing: border-box; }
  .hdb-loc-modal-close { position: absolute; top: 12px; right: 12px; border: none; background: none; color: #fff; cursor: pointer; opacity: 0.7; }
  .hdb-loc-modal-close:hover { opacity: 1; }
  /* Sidebar — \u0432\u0441\u0435 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0432 \u043e\u0434\u043d\u0443 \u043a\u043e\u043b\u043e\u043d\u043a\u0443 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u0435 */
  .hdb-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 50px;
  }
  .hdb-edit-recipient {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #f1f5f9;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    margin-top: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='16' viewBox='0 -960 960 960' width='16' fill='%2364748b'%3E%3Cpath d='M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
  }
  /* ── Recipient Multi-Picker ── */
  .hdb-recip-picker { margin-top: 8px; }
  .hdb-recip-list { display: flex; flex-direction: column; gap: 2px; max-height: 150px; overflow-y: auto; width: 100%; }
  .hdb-recip-item {
    display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
    padding: 8px 12px; border-radius: 12px; cursor: pointer; user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
  }
  .hdb-recip-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); transform: translateX(4px); }
  .hdb-recip-item:active { transform: scale(0.98); }
  .hdb-recip-chk { display: none !important; }
  .hdb-recip-chk-box {
    width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.3); background: transparent;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; box-sizing: border-box;
  }
  .hdb-recip-chk:checked + .hdb-recip-chk-box {
    background: #2A6659; border-color: #2A6659;
  }
  .hdb-recip-chk:checked + .hdb-recip-chk-box::after {
    content: ''; display: block; width: 4px; height: 8px;
    border: 2px solid #fff; border-top: none; border-left: none;
    transform: rotate(45deg) translate(-1px,-1px);
  }
  .hdb-recip-avatar-sm {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    background: #2A6659; color: #fff;
    font-size: 11px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
  }
  .hdb-recip-name { font-size: 13px; color: #e2e8f0; }
  .hdb-recip-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
  .hdb-recip-chip {
    font-size: 10px; padding: 1px 6px; border-radius: 20px;
    background: rgba(42,102,89,0.25); color: #2A6659;
    border: 1px solid rgba(42,102,89,0.4);
  }
  /* Date/time inputs — white icons */
  .hdb-datetime-input {
    flex: 1; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
    color: #f1f5f9; padding: 10px 14px; font-size: 14px; outline: none;
    color-scheme: dark; font-family: inherit;
    transition: all 0.2s;
  }
  .hdb-datetime-input:focus { border-color: var(--primary-color); background: rgba(255,255,255,0.08); }
  .hdb-datetime-wrap { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.03); padding: 4px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.05); }
  /* ── File Lightbox ── */
  .file-lightbox {
    position: fixed; inset: 0; z-index: 5000;
    background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
    backdrop-filter: blur(10px);
  }
  .file-lightbox.active { opacity: 1; pointer-events: auto; }
  .lightbox-overlay { position: absolute; inset: 0; z-index: 10; }
  .lightbox-close {
    position: absolute; top: 24px; right: 24px; z-index: 50;
    background: none; border: none; color: #fff; font-size: 40px;
    cursor: pointer; opacity: 0.6; transition: opacity 0.2s;
    line-height: 1;
  }
  .lightbox-close:hover { opacity: 1; }
  .lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 50;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; width: 56px; height: 56px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .lightbox-nav:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
  .lightbox-content {
    position: relative; z-index: 20;
    max-width: 90vw; max-height: 85vh;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
  }
  .lightbox-media {
    max-width: 100%; max-height: 75vh;
    border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  }
  .lightbox-doc {
    background: rgba(25,25,40,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 40px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    min-width: 320px;
  }
  .lightbox-doc-icon { font-size: 64px; }
  .lightbox-info {
    text-align: center; color: #fff;
  }
  .lightbox-name { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
  .lightbox-counter { font-size: 13px; opacity: 0.5; font-family: 'JetBrains Mono', monospace; }
}
/* ── Schedule view toggle — matches hdb-tl-add-btn style ── */
.hdb-tl-view-toggle { display:flex; gap:4px; }
.hdb-tl-view-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  padding: 0;
}
.hdb-tl-view-btn:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; }
.hdb-tl-view-btn.active {
  background: rgba(42,102,89,0.18);
  border-color: rgba(42,102,89,0.7);
  color: var(--primary-color,#2A6659);
}
.hdb-tl-view-btn .material-symbols-outlined { font-size: 14px; }
/* ── Calendar mode: kill timeline vertical rule ── */
.hdb-timeline.hdb-calendar-mode::before { display: none; }
/* ── Month Calendar shell ── */
.hdb-cal-month { display:flex; flex-direction:column; gap:8px; }
.hdb-cal-nav {
  display:flex; align-items:center; justify-content:space-between;
}
.hdb-cal-nav-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}
.hdb-cal-nav-btn:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; }
.hdb-cal-nav-btn .material-symbols-outlined { font-size: 15px; }
.hdb-cal-nav-title { font-size: 13px; font-weight: 700; color: #e2e8f0; letter-spacing: 0.02em; }
.hdb-cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.hdb-cal-weekdays span {
  font-size: 10px; font-weight: 700; color: #475569;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 0;
}
/* ── Calendar grid ── */
.hdb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hdb-cal-cell {
  min-height: 96px;
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; gap: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}
.hdb-cal-cell:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.hdb-cal-cell.other-month {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 255, 255, 0.03);
  opacity: 0.25;
}
.hdb-cal-cell.past {
  opacity: 0.55;
}
.hdb-cal-cell.today {
  background: rgba(34, 197, 94, 0.08);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 
    0 0 0 1px rgba(34, 197, 94, 0.15) inset,
    0 0 20px rgba(34, 197, 94, 0.1);
}
.hdb-cal-cell.today::after {
  content: ''; position: absolute; top: 8px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: hdb-pulse-glow 2s infinite;
}
@keyframes hdb-pulse-glow {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}
.hdb-cal-cell-num {
  font-size: 14px; font-weight: 800; color: #94a3b8; 
  line-height: 1; padding: 2px 4px;
}
.hdb-cal-cell.today .hdb-cal-cell-num { color: #22c55e; }
.hdb-cal-cell.other-month .hdb-cal-cell-num { color: #475569; }
.hdb-cal-cell-events { display: flex; flex-direction: column; gap: 4px; flex: 1; }
/* ── Event chips ── */
.hdb-cal-ev-chip {
  border-radius: 6px;
  padding: 3px 6px 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: row; align-items: center; gap: 4px;
  transition: all 0.15s ease;
  position: relative;
  cursor: pointer;
  min-height: 22px;
  overflow: visible;
}
.hdb-cal-ev-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}
.hdb-cal-ev-chip.inactive { opacity: 0.4; }
/* Left accent bar */
.hdb-cal-ev-chip::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; border-radius: 5px 0 0 5px;
}
.hdb-cal-ev-chip.reminder::before { background: #3b82f6; }
.hdb-cal-ev-chip.reminder { background: rgba(59, 130, 246, 0.07); }
.hdb-cal-ev-chip.family_event::before { background: #8b5cf6; }
.hdb-cal-ev-chip.family_event { background: rgba(139, 92, 246, 0.07); }
.hdb-cal-ev-chip.plan::before { background: #f59e0b; }
.hdb-cal-ev-chip.plan { background: rgba(245, 158, 11, 0.07); }
.hdb-cal-ev-chip.task::before { background: #10b981; }
.hdb-cal-ev-chip.task { background: rgba(16, 185, 129, 0.07); }
.hdb-cal-ev-time {
  font-size: 10px; font-weight: 700; flex-shrink: 0;
  color: #64748b; line-height: 1; white-space: nowrap;
}
.hdb-cal-ev-chip.reminder .hdb-cal-ev-time { color: #60a5fa; }
.hdb-cal-ev-chip.family_event .hdb-cal-ev-time { color: #a78bfa; }
.hdb-cal-ev-chip.plan .hdb-cal-ev-time { color: #fbbf24; }
.hdb-cal-ev-chip.task .hdb-cal-ev-time { color: #34d399; }
.hdb-cal-ev-text {
  font-size: 11px; font-weight: 500; color: #e2e8f0; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
/* Icons hidden by default, shown on cell hover */
.hdb-cal-ev-icons {
  display: none; gap: 2px; flex-shrink: 0; align-items: center;
}
.hdb-cal-cell:hover .hdb-cal-ev-icons { display: flex; }
/* Icon sizes in small chips */
.hdb-cal-ev-chip .material-symbols-outlined { font-size: 12px !important; }
.hdb-cal-ev-chip .hdb-tl-bell,
.hdb-cal-ev-chip .hdb-tl-task {
  width: 18px; height: 18px; padding: 0; border-radius: 4px;
  background: transparent; border: none; color: #64748b; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  opacity: 1; pointer-events: auto; line-height: 1;
}
.hdb-cal-ev-chip .hdb-tl-bell:hover,
.hdb-cal-ev-chip .hdb-tl-task:hover { color: #e2e8f0; background: rgba(255,255,255,0.1); border-radius: 4px; }
.hdb-cal-ev-chip .hdb-tl-bell.active { color: #6366f1; }
.hdb-cal-ev-chip .hdb-tl-task.active { color: #22c55e; }
.hdb-cal-ev-more {
  font-size: 11px; font-weight: 700; color: #64748b;
  padding: 4px 8px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  margin-top: 2px; text-align: center; cursor: pointer;
  transition: all 0.2s;
}
.hdb-cal-ev-more:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
}
.hdb-cal-today-btn {
  padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 700;
  background: rgba(255, 255, 255, 0.05); color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer;
  transition: all 0.2s; margin: 0 10px;
}
.hdb-cal-today-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
/* ── Family Dashboard Enhancements ── */
.family-task-counts {
  display: none !important;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding: 0;
  background: none;
  border: none;
  width: 100%;
  align-items: flex-start;
  text-align: left;
}
.family-task-stat {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
  width: 100%;
  text-align: left;
}
.family-task-stat span {
  flex-shrink: 0;
  color: #60a5fa;
}
.family-task-stat strong {
  color: #f1f5f9;
}
.family-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  align-items: flex-start;
  width: 100%;
}
.family-action-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: center;
}
.family-assign-task-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none !important;
  border: none !important;
  color: #60a5fa !important;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 0 !important;
  transition: all 0.2s ease;
  text-decoration: none;
}
.family-assign-task-btn:hover {
  color: #93c5fd !important;
  text-decoration: none;
}
.hdb-member-msg-btn-inline {
  margin-left: auto;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  box-sizing: border-box;
}
.hdb-member-msg-btn-inline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.hdb-member-msg-btn-inline .material-symbols-outlined {
  font-size: 18px;
}
/* ═══════════════════════════════════════════════════════════════════
   LIGHT THEME — HomeDashboard overrides
   ═══════════════════════════════════════════════════════════════════ */
[data-mode="light"] .hdb-view {
  color: #0f172a;
}
[data-mode="light"] .hdb-view::before {
  background: rgba(255, 255, 255, 0.35);
}
[data-mode="light"] .hdb-glow {
  background:
    radial-gradient(circle at 20% 30%, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(var(--secondary-rgb), 0.06) 0%, transparent 50%);
}
/* Cards — white glass */
[data-mode="light"] .hdb-card {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-card:hover {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10) !important;
}
[data-mode="light"] .hdb-card-title {
  color: #64748b !important;
}
/* Hero — white glass */
[data-mode="light"] .hdb-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.60) 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
}
[data-mode="light"] .hdb-greeting {
  color: #0f172a !important;
}
[data-mode="light"] .hdb-hero-insight {
  color: #334155 !important;
}
[data-mode="light"] .hdb-hero-weather {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-hero-weather-temp {
  color: #0f172a !important;
}
[data-mode="light"] .hdb-hero-weather-cond {
  color: #475569 !important;
}
[data-mode="light"] .hdb-hero-weather-info {
  color: #64748b !important;
}
[data-mode="light"] .hdb-hero-weather-footer {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}
/* Hero actions */
[data-mode="light"] .hdb-hero-btn {
  background: rgba(var(--primary-rgb), 0.08) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.20) !important;
  color: var(--primary-dark) !important;
}
[data-mode="light"] .hdb-hero-btn:hover {
  background: rgba(var(--primary-rgb), 0.15) !important;
  border-color: rgba(var(--primary-rgb), 0.40) !important;
  color: var(--primary-dark) !important;
}
/* Hero suggest cards */
[data-mode="light"] .hdb-hero-suggest-section {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-hero-suggest-card {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-hero-suggest-card:hover {
  background: rgba(var(--primary-rgb), 0.06) !important;
  border-color: rgba(var(--primary-rgb), 0.20) !important;
}
[data-mode="light"] .hdb-hero-suggest-text {
  color: #0f172a !important;
}
[data-mode="light"] .hdb-hero-suggest-hint {
  color: #64748b !important;
}
/* Skill pills */
[data-mode="light"] .hdb-skill-pills-label {
  color: rgba(0, 0, 0, 0.30) !important;
}
[data-mode="light"] .hdb-skill-pill {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}
[data-mode="light"] .hdb-skill-pill:hover {
  background: rgba(var(--primary-rgb), 0.10) !important;
  border-color: rgba(var(--primary-rgb), 0.25) !important;
  color: var(--primary-dark) !important;
}
/* Section labels */
[data-mode="light"] .hdb-section-label {
  color: #ffffff !important;
}
/* Family member cards — white glass */
[data-mode="light"] .hdb-member-card {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-member-card:hover {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(0, 0, 0, 0.10) !important;
}
/* Location */
[data-mode="light"] .hdb-loc-modal {
  background: rgba(0, 0, 0, 0.25) !important;
}
[data-mode="light"] .hdb-loc-modal-inner {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.10) !important;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.15) !important;
}
[data-mode="light"] .hdb-loc-modal-close {
  background: rgba(255, 255, 255, 0.80) !important;
  border-color: rgba(0, 0, 0, 0.10) !important;
  color: #0f172a !important;
}
[data-mode="light"] .hdb-loc-status {
  color: #475569 !important;
}
/* Modals */
[data-mode="light"] .hdb-msg-overlay,
[data-mode="light"] .hdb-notif-overlay {
  background: rgba(0, 0, 0, 0.25) !important;
}
[data-mode="light"] .hdb-msg-modal,
[data-mode="light"] .hdb-notif-modal {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}
[data-mode="light"] .hdb-msg-modal-title {
  color: #0f172a !important;
}
[data-mode="light"] .hdb-msg-modal-sub {
  color: rgba(0, 0, 0, 0.5) !important;
}
[data-mode="light"] .hdb-msg-textarea {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  color: #0f172a !important;
}
[data-mode="light"] .hdb-msg-textarea:focus {
  background: rgba(0, 0, 0, 0.02) !important;
}
[data-mode="light"] .hdb-msg-cancel {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  color: #334155 !important;
}
[data-mode="light"] .hdb-msg-cancel:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}
[data-mode="light"] .hdb-msg-attach-btn {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.10) !important;
  color: #475569 !important;
}
[data-mode="light"] .hdb-msg-attach-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}
[data-mode="light"] .hdb-msg-file-name {
  color: #475569 !important;
}
[data-mode="light"] .hdb-msg-file-clear {
  color: rgba(0, 0, 0, 0.3) !important;
}
/* Notification in light */
[data-mode="light"] .hdb-notif-modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-notif-modal-title {
  color: #0f172a !important;
}
[data-mode="light"] .hdb-notif-read-all {
  border-color: rgba(0, 0, 0, 0.10) !important;
  color: #64748b !important;
}
[data-mode="light"] .hdb-notif-read-all:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}
/* Family Files widget */
[data-mode="light"] .hdb-ff-item {
  background: rgba(0, 0, 0, 0.03) !important;
}
[data-mode="light"] .hdb-ff-more {
  color: #64748b !important;
}
/* Calendar cells */
[data-mode="light"] .hdb-cal-cell {
  background: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-cal-cell:hover {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(0, 0, 0, 0.10) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-cal-cell-num {
  color: #475569 !important;
}
[data-mode="light"] .hdb-cal-ev-text {
  color: #0f172a !important;
}
[data-mode="light"] .hdb-cal-ev-chip {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-cal-ev-chip:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-cal-ev-more {
  background: rgba(0, 0, 0, 0.03) !important;
  color: #64748b !important;
}
[data-mode="light"] .hdb-cal-today-btn {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}
[data-mode="light"] .hdb-cal-today-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}
/* Family task stats */
[data-mode="light"] .family-task-stat {
  color: #475569 !important;
}
[data-mode="light"] .family-task-stat strong {
  color: #0f172a !important;
}
/* Inline msg button */
[data-mode="light"] .hdb-member-msg-btn-inline {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}
[data-mode="light"] .hdb-member-msg-btn-inline:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
}
/* Buttons secondary light */
[data-mode="light"] .hdb-btn-secondary {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #334155 !important;
}
[data-mode="light"] .hdb-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}
/* Quick action cards — white glass */
[data-mode="light"] .hdb-suggestion-btn {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}
[data-mode="light"] .hdb-suggestion-btn:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(var(--primary-rgb), 0.25) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08) !important;
}
[data-mode="light"] .hdb-suggestion-text {
  color: #1e293b !important;
}
/* Agent suggestion cards — light */
[data-mode="light"] .hdb-agent-suggest-card {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-agent-suggest-card:hover {
  background: rgba(255, 255, 255, 0.80) !important;
  border-color: rgba(var(--primary-rgb), 0.25) !important;
}
[data-mode="light"] .hdb-agent-suggest-text {
  color: #0f172a !important;
}
[data-mode="light"] .hdb-agent-suggest-hint {
  color: #64748b !important;
}
[data-mode="light"] .hdb-agent-suggest-cta {
  background: rgba(var(--primary-rgb), 0.08) !important;
  border-color: rgba(var(--primary-rgb), 0.20) !important;
}
/* Timeline items — light */
[data-mode="light"] .hdb-timeline-item {
  background: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-timeline-item:hover {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(0, 0, 0, 0.10) !important;
}
[data-mode="light"] .hdb-timeline-title {
  color: #0f172a !important;
}
[data-mode="light"] .hdb-timeline-time {
  color: #64748b !important;
}
[data-mode="light"] .hdb-timeline-desc {
  color: #475569 !important;
}
/* Notification dot & badge in light */
[data-mode="light"] .hdb-notif-card {
  background: rgba(255, 255, 255, 0.60) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}
[data-mode="light"] .hdb-notif-card:hover {
  background: rgba(255, 255, 255, 0.75) !important;
}
[data-mode="light"] .hdb-notif-title {
  color: #0f172a !important;
}
[data-mode="light"] .hdb-notif-text {
  color: #475569 !important;
}
[data-mode="light"] .hdb-notif-time {
  color: #94a3b8 !important;
}

/* === Extracted from HDM_HTMLBuilders.js (block 1) === */
.hdb-sel-wrap { margin-top: 12px; }
.hdb-sel-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.hdb-premium-select {
    width: 100%; appearance: none;
    background: rgba(255,255,255,0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
    padding: 12px 16px; color: #fff; font-size: 14px; outline: none; cursor: pointer;
    transition: all 0.2s;
}
.hdb-premium-select:focus { border-color: var(--primary-color); background-color: rgba(255,255,255,0.08); }
.hdb-premium-select option { background: #1a1e2e; color: #fff; }

/* === Extracted from HDM_HTMLBuilders.js (block 2) === */
.hdb-recip-picker-p { margin-top: 16px; }
    .hdb-recip-label-p { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
    .hdb-recip-list-p { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
    .hdb-recip-item {
        display: flex; align-items: center; gap: 10px; padding: 10px 12px;
        background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
        border-radius: 14px; cursor: pointer; transition: all 0.25s ease;
        position: relative; overflow: hidden;
    }
    .hdb-recip-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); transform: translateY(-1px); }
    .hdb-recip-chk { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; padding: 0; }
    .hdb-recip-chk-visual { 
        width: 18px; height: 18px; border-radius: 6px; border: 2px solid rgba(255,255,255,0.2); 
        transition: all 0.2s; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
        margin: 0; padding: 0;
    }
    .hdb-recip-chk:checked + .hdb-recip-chk-visual { background: var(--primary-color); border-color: var(--primary-color); }
    .hdb-recip-chk-visual::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 900; opacity: 0; transform: scale(0.5); transition: all 0.2s; }
    .hdb-recip-chk:checked + .hdb-recip-chk-visual::after { opacity: 1; transform: scale(1); }
    
    .hdb-recip-avatar-p { 
        width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); 
        display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
    }
    .hdb-recip-name { font-size: 13px; color: #e2e8f0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    
    .hdb-recip-item:has(input:checked) {
        background: rgba(var(--primary-rgb), 0.1); border-color: rgba(var(--primary-rgb), 0.3);
    }

/* === Extracted from HDM_TaskModals (block 1) === */
.hdb-task-modal-body { display: flex; flex-direction: column; gap: 20px; }
.hdb-task-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.hdb-add-ev-date-chips { display: flex; gap: 8px; margin-bottom: 12px; }
.hdb-add-ev-date-chip { 
padding: 8px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; 
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); 
color: rgba(255,255,255,0.6); cursor: pointer; transition: all 0.2s;
}
.hdb-add-ev-date-chip.active { 
background: rgba(var(--primary-rgb), 0.15); border-color: rgba(var(--primary-rgb), 0.4); 
color: var(--primary-color); 
}
.hdb-task-input-p {
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
border-radius: 14px; padding: 12px 16px; color: #fff; font-size: 14px; outline: none;
width: 100%; box-sizing: border-box; transition: all 0.2s;
}
.hdb-task-input-p:focus { border-color: var(--primary-color); background: rgba(255,255,255,0.08); }

/* === Extracted from HDM_TaskModals (block 2) === */
.hdb-ed-row { display: flex; gap: 12px; margin-bottom: 20px; }
.hdb-ed-row > div { flex: 1; }
.hdb-ed-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.hdb-ed-input-p {
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
border-radius: 14px; padding: 12px 16px; color: #fff; font-size: 14px; outline: none;
width: 100%; box-sizing: border-box; transition: all 0.2s;
}
.hdb-ed-input-p:focus { border-color: var(--primary-color); background: rgba(255,255,255,0.08); }
.hdb-days-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 20px; }
.hdb-day-btn-p {
padding: 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6);
font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.hdb-day-btn-p.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3); }
.hdb-day-btn-p:hover:not(.active) { background: rgba(255,255,255,0.1); color: #fff; }

/* === Extracted from HDM_TaskModals (block 3) === */
.hdb-ed-row { display: flex; gap: 12px; margin-bottom: 20px; }
.hdb-ed-row > div { flex: 1; }
.hdb-ed-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.hdb-ed-input-p {
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
border-radius: 14px; padding: 12px 16px; color: #fff; font-size: 14px; outline: none;
width: 100%; box-sizing: border-box; transition: all 0.2s;
}
.hdb-ed-input-p:focus { border-color: var(--primary-color); background: rgba(255,255,255,0.08); }
.hdb-days-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 20px; }
.hdb-day-btn-p {
padding: 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6);
font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.hdb-day-btn-p.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3); }
.hdb-day-btn-p:hover:not(.active) { background: rgba(255,255,255,0.1); color: #fff; }

/* === Extracted from HDM_GenericModals (block 1) === */
.hdb-ev-modal-body { display: flex; flex-direction: column; gap: 18px; }
.hdb-ev-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.hdb-ev-date-chips { display: flex; gap: 8px; margin-bottom: 2px; }
.hdb-ev-date-chip { 
padding: 8px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; 
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); 
color: rgba(255,255,255,0.6); cursor: pointer; transition: all 0.2s;
}
.hdb-ev-date-chip.active { 
background: rgba(var(--primary-rgb), 0.15); border-color: rgba(var(--primary-rgb), 0.4); 
color: var(--primary-color); 
}
.hdb-ev-input-p {
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
border-radius: 14px; padding: 12px 16px; color: #fff; font-size: 14px; outline: none;
width: 100%; box-sizing: border-box; transition: all 0.2s;
}
.hdb-ev-input-p:focus { border-color: var(--primary-color); background: rgba(255,255,255,0.08); }
.hdb-ev-row { display: flex; gap: 12px; }
.hdb-ev-row > div { flex: 1; }

.hdb-ev-reminder-opt {
display: flex; align-items: center; gap: 10px;
padding: 12px 16px; background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
cursor: pointer; transition: all 0.2s;
}
.hdb-ev-reminder-opt:hover { background: rgba(255,255,255,0.06); }
.hdb-ev-reminder-opt input { width: 18px; height: 18px; cursor: pointer; }
.hdb-ev-reminder-opt span { font-size: 14px; color: #cbd5e1; font-weight: 500; }
