/* Independent life-journey overlay. Does not change Genogram SVG or board canvases. */
.life-journey {
  position: fixed; z-index: 1200; inset: 0;
  display: flex; flex-direction: column;
  background: #11172a; color: #e5edfc; font: 14px/1.4 system-ui, sans-serif;
  isolation: isolate;
}
.life-journey--light { background: #faf8f2; color: #334052; }
.life-journey button,.life-journey select {
  font: inherit; cursor: pointer; border: 1px solid #64708a;
  border-radius: 8px; padding: 7px 10px;
  color: inherit; background: #26314b;
}
.life-journey--light button,.life-journey--light select {
  background: #fffdfa; border-color: #c8c3b8;
}
.life-journey button:focus-visible,.life-journey select:focus-visible,
.life-journey input:focus-visible,.life-journey .lj-canvas-wrap:focus-visible {
  outline: 3px solid #e6b85f; outline-offset: 2px;
}
.life-journey .lj-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px; border-bottom: 1px solid #63718d55;
}
.life-journey .lj-header strong { display: block; font-size: 18px; letter-spacing: .02em; }
.life-journey .lj-header small { display: block; opacity: .7; font-size: 12px; }
.life-journey .lj-top-actions { display: flex; gap: 8px; }
.life-journey .lj-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center;
  padding: 10px 18px; border-bottom: 1px solid #63718d55;
}
.life-journey .lj-toolbar label { display: flex; align-items: center; gap: 7px; }
.life-journey .lj-toolbar input { accent-color: #bf9ad7; }
.life-journey .lj-canvas-wrap {
  position: relative; flex: 1; min-height: 180px;
  width: 100%; overflow-x: auto; overflow-y: hidden;
}
.life-journey .lj-canvas { display: block; cursor: pointer; max-width: none; }
.life-journey .lj-empty {
  position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%);
  max-width: 360px; padding: 16px; background: #26314b; border-radius: 12px;
  text-align: center;
}
.life-journey--light .lj-empty { background: #ede8de; }
.life-journey .lj-footer {
  flex-shrink: 0; padding: 10px 18px 13px; border-top: 1px solid #63718d55;
  background: #1a233a;
}
.life-journey--light .lj-footer { background: #f0ece3; }
.life-journey .lj-transport { display: flex; align-items: center; gap: 12px; }
.life-journey .lj-transport input { flex: 1; min-width: 40px; accent-color: #e8be76; }
.life-journey .lj-transport output { min-width: 130px; text-align: right; font-variant-numeric: tabular-nums; }
.life-journey .lj-summary { font-size: 12px; opacity: .87; padding-top: 7px; }
.life-journey .lj-disclaimer { margin: 6px 0 0; font-size: 11px; opacity: .73; }
@media (max-width: 720px) {
  .life-journey .lj-header, .life-journey .lj-toolbar, .life-journey .lj-footer { padding-left: 10px; padding-right: 10px; }
  .life-journey .lj-header strong { font-size: 16px; }
  .life-journey .lj-transport { gap: 6px; }
  .life-journey .lj-transport output { min-width: 85px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .life-journey * { scroll-behavior: auto !important; transition: none !important; }
}
