.chat-activity-dialog.life-dialog { width: min(960px, calc(100vw - 24px)); }
.life-dialog .chat-detail-body { text-align: left; padding: 24px; }
.life-dialog .chat-detail-body > [role="status"] { color: #f4ce75; }
.life-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; min-height: 300px; background: linear-gradient(90deg, #000, #12212e); color: white; }
.life-portrait { display: block; flex: 0 0 auto; width: 46px; height: 56px; border-radius: 14px; background-image: url('/portal-life-ages.png'); background-size: 600% auto; background-position: 0% center; }
.life-portrait-hero { position: absolute; top: 0; right: 0; width: 260px; height: 100%; border-radius: 0; background-size: 600% auto; }
.life-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, #000c, transparent), linear-gradient(90deg, #000a, transparent 85%); }
.life-hero-copy { position: relative; z-index: 2; padding: 24px; padding-top: 70px; }
.life-hero-copy > small { color: #87ddeb; letter-spacing: 3px; }
.life-hero h2 { font: bold 34px Georgia, serif; margin: 12px 0; }
.life-hero p { margin: 10px 0; }
.life-hero .life-image-note { font-size: 11px; color: #ffffff99; }
.life-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin: 24px 0; background: #ffffff10; border-radius: 12px; }
.life-tabs button { padding: 9px 5px; background: transparent; border: 0; font-size: 13px; }
.life-tabs button[aria-pressed="true"] { background: #356075; color: white; }
.life-section { padding: 20px; margin: 20px 0; border: 1px solid #ffffff20; border-radius: 18px; background: #ffffff06; }
.life-section h3 { margin: 0 0 6px; font-size: 22px; }
.life-section h4 { margin: 16px 0 8px; }
.life-muted { color: #abc2ce; font-size: 12px; }
.life-prose { white-space: pre-wrap; line-height: 1.8; }
.life-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.life-metrics small, .life-metrics strong { display: block; }
.life-metrics small { color: #abc2ce; margin-bottom: 8px; }
.life-attributes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px 16px; margin-top: 20px; }
.life-attribute > div { display: flex; justify-content: space-between; gap: 10px; }
.life-attribute progress { appearance: none; display: block; width: 100%; height: 5px; border: 0; border-radius: 4px; overflow: hidden; margin-top: 9px; background: #ffffff20; }
.life-attribute progress::-webkit-progress-bar { background: #ffffff20; }
.life-attribute progress::-webkit-progress-value { background: #75d8e9; }
.life-attribute progress::-moz-progress-bar { background: #75d8e9; }
.life-attribute progress.life-warning::-webkit-progress-value { background: #f0a952; }
.life-attribute progress.life-warning::-moz-progress-bar { background: #f0a952; }
.life-attribute small { display: block; color: #abc2ce; font-size: 11px; margin-top: 6px; }
.life-timeline { list-style: none; padding: 0 0 0 16px; margin: 24px 0 0 4px; border-left: 1px solid #75d8e935; }
.life-timeline li { position: relative; padding: 0 0 14px 12px; }
.life-timeline li::before { content: ''; position: absolute; left: -21px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #75d8e9; }
.life-timeline h4 { margin-top: 0; }
.life-dialog .chat-life-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-life-pin > button:first-child { flex-direction: row; align-items: center; gap: 12px; }
.life-entry-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
@media (max-width: 540px) {
  .life-dialog .chat-detail-body { padding: 12px; }
  .life-section { padding: 14px; }
  .life-hero-copy { padding: 20px; padding-top: 90px; }
  .life-hero-copy > strong { display: block; max-width: 90%; }
  .life-metrics { gap: 10px; font-size: 12px; }
  .life-tabs button { font-size: 12px; padding: 9px 2px; }
  .chat-life-pin .life-portrait { width: 36px; height: 46px; }
  .chat-life-pin .life-entry-copy > span { max-width: 130px; }
}

.life-portrait.life-age-0 { background-position: 0% center; }
.life-portrait.life-age-1 { background-position: 20% center; }
.life-portrait.life-age-2 { background-position: 40% center; }
.life-portrait.life-age-3 { background-position: 60% center; }
.life-portrait.life-age-4 { background-position: 80% center; }
.life-portrait.life-age-5 { background-position: 100% center; }
