/* Life HQ — domain modules */

.life-mode .content-area { padding-top: 8px; }

.life-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fff 0%, #f5f5f7 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.life-hero-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.life-hero-sub { color: var(--muted); font-size: 15px; margin: 0; }
.life-hero-meta { font-size: 13px; color: var(--muted); background: var(--surface2); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }

.life-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.life-domain-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.life-domain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--domain-color, var(--accent));
}

.life-domain-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--domain-color, var(--accent));
}

.ldc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  margin-bottom: 12px;
}

.life-domain-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.life-domain-card ul { list-style: none; padding: 0; margin: 0 0 12px; }
.life-domain-card li { font-size: 13px; color: var(--muted); padding: 3px 0; }
.ldc-arrow { font-size: 12px; color: var(--domain-color, var(--accent)); font-weight: 600; }

.life-hq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .life-hq-columns, .life-two-col { grid-template-columns: 1fr; }
}

.life-panel .panel-body { padding: 16px 20px; }

.life-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: capitalize;
}

.life-stat .value { font-size: 28px; }

.life-list { display: flex; flex-direction: column; gap: 10px; }
.life-list-item {
  padding: 12px 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.life-list-meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.life-section-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.02em; }
.life-section-sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.life-sub-title { font-size: 14px; font-weight: 600; margin: 0 0 12px; color: var(--text); }
.life-notes { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }
.life-notes-sm { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

.life-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.life-progress-row { margin-bottom: 14px; }
.lpr-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }

.job-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* University */
.life-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.life-course-card {
  padding: 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.lcc-code { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 600; }
.lcc-meta, .lcc-schedule { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Jobs */
.life-job-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--job-color, var(--accent));
}
.ljc-header { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.ljc-brand {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.ljc-role { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.life-project-list { display: flex; flex-direction: column; gap: 10px; }
.life-project-item {
  padding: 12px 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.lpi-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.lpi-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; }
.life-meeting-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.life-meeting-list li { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.life-details { margin-top: 16px; font-size: 13px; }
.life-details summary { cursor: pointer; color: var(--muted); font-weight: 500; }

/* Freelance */
.life-platform-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.life-platform-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.lpc-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.lpc-stat { font-size: 13px; color: var(--muted); }
.life-gig-list { display: flex; flex-direction: column; gap: 10px; }
.life-gig-item { padding: 12px; background: var(--surface2); border-radius: var(--radius-sm); }
.lgi-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.lgi-meta { font-size: 12px; color: var(--muted); }
.plat-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }

/* YouTube hub */
.life-yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
.life-yt-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--yt-color);
}
.lyc-handle { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.lyc-lang { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.lyc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; margin-bottom: 12px; }
.lyc-num { display: block; font-size: 20px; font-weight: 700; }
.lyc-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lyc-folder { font-size: 11px; color: var(--muted); }
.life-quick-links { margin-bottom: 24px; }
.life-link-row { display: flex; flex-wrap: wrap; gap: 8px; }
.life-link-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.life-link-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,113,227,0.04); }

/* Learning */
.life-track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.life-track-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.ltc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.ltc-target { font-size: 12px; color: var(--muted); margin-top: 8px; }
.life-cert-list, .life-resource-list { list-style: none; padding: 0; margin: 0; }
.life-cert-item { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.lci-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lci-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.life-resource-list li { padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border-light); }

.study-track-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.study-track-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.study-track-bar { margin: 12px 0 18px; }
.study-track-phases { display: flex; flex-direction: column; gap: 18px; }
.study-track-phase h4 { margin: 0 0 10px; font-size: 14px; }
.study-phase-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.study-phase-head h4 { margin-bottom: 3px; }
.study-phase-head p { margin: 0; color: var(--muted); font-size: 11px; }
.study-phase-head > strong { color: #5856d6; font-size: 13px; }
.study-track-phase.done .study-phase-head > strong { color: #248a3d; }
.study-phase-evidence { display: flex; gap: 7px; margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.study-phase-evidence strong { flex: 0 0 auto; color: #5856d6; }
.study-week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.study-week-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
}
.study-week-card:hover { border-color: #5856d6; background: rgba(88, 86, 214, 0.05); }
.study-week-card.done { border-color: rgba(52, 199, 89, 0.45); background: rgba(52, 199, 89, 0.06); }
.study-week-card span { font-size: 11px; color: var(--muted); }
.study-week-card small { color: var(--muted); line-height: 1.35; }
.study-week-number { color: #5856d6 !important; font-weight: 700; text-transform: uppercase; }

/* Lifestyle */
.life-routine-grid { display: flex; flex-direction: column; gap: 10px; }
.life-routine-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.lrc-icon { font-size: 24px; line-height: 1; }
.lrc-time { font-size: 12px; color: var(--muted); margin-top: 2px; }

.life-wellness-today {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.lwt-metric { text-align: center; padding: 16px; background: var(--surface2); border-radius: var(--radius-sm); }
.lwt-val { display: block; font-size: 22px; font-weight: 700; color: var(--accent); }
.lwt-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; }

.life-wellness-chart {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  height: 120px;
  padding: 12px 0;
}
.lwc-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lwc-bars { display: flex; gap: 3px; align-items: flex-end; height: 90px; width: 100%; justify-content: center; }
.lwc-bar { width: 10px; border-radius: 4px 4px 0 0; min-height: 4px; }
.lwc-bar.sleep { background: #5856d6; }
.lwc-bar.energy { background: #ff9500; }
.lwc-label { font-size: 10px; color: var(--muted); font-family: var(--mono); }

.life-journal-list { display: flex; flex-direction: column; gap: 16px; }
.life-journal-entry {
  padding: 16px 18px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.life-journal-entry header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.life-journal-entry h4 { margin: 0 0 6px; font-size: 15px; }
.life-journal-entry p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.life-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.life-tag { font-size: 11px; padding: 3px 8px; background: #fff; border: 1px solid var(--border-light); border-radius: 6px; color: var(--muted); }

.muted-sm { font-size: 12px; color: var(--muted); margin-top: 2px; }

@media (max-width: 640px) {
  .life-wellness-today { grid-template-columns: repeat(2, 1fr); }
  .life-hero { flex-direction: column; }
  .life-panel .table-wrap,
  .life-table-scroll { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .life-panel .data-table { min-width: 520px; }
}

.life-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.life-status-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.field-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.content-area.life-mode .topbar-filters { display: none !important; }
