/* A small entry point; history lives in its own native modal. */
.pal-life-launch{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;margin:0 0 12px;padding:9px 0;border:0;background:transparent;color:#43594c;font-family:inherit;font-size:13px;font-weight:600;text-align:start;cursor:pointer}.pal-life-launch svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.pal-life-launch-arrow{margin-inline-start:auto;color:#748174}.pal-life-launch:hover{color:#213e2c}.pal-life-launch:focus-visible{outline:2px solid #637d62;outline-offset:3px;border-radius:5px}
dialog.pal-life{--ink:#2f4237;--muted:#687369;--rule:#e5e6dc;box-sizing:border-box;width:min(560px,calc(100vw - 40px));max-height:min(740px,calc(100dvh - 72px));padding:0;margin:auto;border:1px solid #e1e4d8;border-radius:24px;color:var(--ink);background:#fcfbf6;box-shadow:0 24px 90px #142a2538;overflow:hidden;font-family:Inter,"Segoe UI",Arial,sans-serif}dialog.pal-life[open]{display:flex;flex-direction:column;animation:pal-history-enter .18s ease-out}.pal-life::backdrop{background:#233c3447;backdrop-filter:blur(5px)}.pal-life-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:28px 28px 22px;flex-shrink:0}.pal-life-owner{margin:0 0 9px;font-size:11px;font-weight:650;letter-spacing:1.2px;color:#697565;overflow-wrap:anywhere}.pal-life-title{font-family:Georgia,"Times New Roman",serif;font-size:32px;font-weight:400;letter-spacing:-.7px;margin:0 0 8px;line-height:1.15}.pal-life-subtitle{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.pal-life-close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:12px;border:1px solid var(--rule);border-radius:50%;background:transparent;color:#687369;cursor:pointer}.pal-life-close:hover{background:#eeefe6;color:#2f4237}.pal-life-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.pal-life-tabs{display:flex;gap:26px;padding:0 28px;border-bottom:1px solid var(--rule);flex-shrink:0}.pal-life-tab{position:relative;min-height:48px;padding:0 2px;border:0;background:transparent;font:600 13px Inter,"Segoe UI",sans-serif;color:var(--muted);cursor:pointer}.pal-life-tab[aria-selected="true"]{color:#334d37}.pal-life-tab[aria-selected="true"]::after{position:absolute;content:"";height:2px;bottom:-1px;inset-inline:0;background:#61795a;border-radius:2px}.pal-life-panel{min-height:260px;overflow:auto;overscroll-behavior:contain;padding:24px 28px 28px;scrollbar-width:thin;scrollbar-color:#ccd3c5 transparent}.pal-life-day{font-size:11px;font-weight:650;letter-spacing:.8px;margin:0 0 18px;color:#74816f}.pal-life-day:not(:first-child){margin-top:30px}.pal-life-moments{list-style:none;padding:0;margin:0}.pal-life-moment{position:relative;display:flex;align-items:flex-start;gap:16px;padding:0 0 25px}.pal-life-moment:not(:last-child)::before{content:"";position:absolute;inset-inline-start:17px;top:39px;bottom:5px;width:1px;background:#e0e5d8}.pal-life-moment:last-child{padding-bottom:0}.pal-life-icon{flex:0 0 36px;width:36px;height:36px;border:1px solid #e1e6d9;border-radius:50%;background:#f1f3ea;color:#647b5d;display:grid;place-items:center}.pal-life-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.pal-life-moment-copy{min-width:0;display:grid;gap:6px;padding-top:2px;font-size:14px;line-height:1.5}.pal-life-moment-line{overflow-wrap:anywhere}.pal-life-moment-line b{font-weight:600}.pal-life-moment time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.pal-life-state{padding:30px 0;margin:0;color:var(--muted);font-size:14px;line-height:1.6}.pal-life-retry{min-height:44px;padding:9px 16px;border:1px solid #d8dfcf;border-radius:12px;background:#f1f3ea;color:#425a3d;font-size:13px;cursor:pointer}.pal-life-map-title{margin:0 0 16px;font-size:13px;color:var(--muted)}.pal-life-map-wrap{width:100%;aspect-ratio:1;max-width:390px;margin:auto;border:1px solid #e0e5d8;border-radius:18px;background-color:#f1f3e9;background-image:linear-gradient(#657a5610 1px,transparent 1px),linear-gradient(90deg,#657a5610 1px,transparent 1px);background-size:24px 24px;overflow:hidden}.pal-life-map-wrap svg{display:block;width:100%;height:100%}.pal-life-north{font:600 4px sans-serif;fill:#52694e}.pal-life-cell{stroke:#f1f3e9;stroke-width:.45;cursor:pointer}.pal-life-current{fill:#344f3b;stroke:#fffdf6;stroke-width:1.1;pointer-events:none}.pal-life-cell-selected{stroke:#354e37!important;stroke-width:1!important}.pal-life-legend{display:flex;align-items:center;justify-content:center;gap:12px;margin:17px 0 0;font-size:11px;color:var(--muted)}.pal-life-legend-scale{display:flex;gap:4px}.pal-life-legend-swatch{height:8px;width:20px;border-radius:3px}.pal-life-disclaimer{font-size:11px;line-height:1.6;color:var(--muted);margin:24px 0 0;padding-top:16px;border-top:1px solid var(--rule)}.pal-life-cell-detail{font-size:12px;line-height:1.5;color:var(--muted);margin:14px 0 0}.pal-life-refresh-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:12px;border-radius:12px;background:#f2eedf;font-size:12px;line-height:1.5}.pal-life :is(button,[tabindex="0"]):focus-visible{outline:2px solid #61795a;outline-offset:-3px;border-radius:6px}.pal-life-close:focus-visible{border-radius:50%}
@media(max-width:600px){dialog.pal-life{width:100%;max-width:100%;max-height:calc(100dvh - max(24px,env(safe-area-inset-top)));margin:auto 0 0;border-radius:24px 24px 0 0;border-bottom:0}.pal-life-header{padding:25px 22px 18px}.pal-life-title{font-size:30px}.pal-life-tabs{padding-inline:22px}.pal-life-panel{padding:22px 22px max(24px,env(safe-area-inset-bottom));min-height:300px}.pal-life-map-wrap{max-width:350px}}@media(max-height:500px){dialog.pal-life{max-height:calc(100dvh - 16px)}.pal-life-header{padding-block:14px}.pal-life-panel{min-height:100px}}@keyframes pal-history-enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){dialog.pal-life[open]{animation:none}.pal-life *{scroll-behavior:auto!important;transition:none!important}}

/* Quiet illustrated actions: three equal controls, one compact bottom row. */
#resident-profile .profile-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:stretch}
#resident-profile .profile-actions>button{grid-column:auto;display:flex;justify-content:center;align-items:center;gap:4px;box-sizing:border-box;min-width:0;width:100%;min-height:44px;margin:0;padding:5px 6px;border:1px solid #e2e7db;border-radius:10px;background:transparent;box-shadow:none;color:#53674d;font-family:inherit;font-size:11px;font-weight:500;line-height:1.25;text-align:center;cursor:pointer}
#resident-profile .profile-actions>button>span{min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:11px;font-weight:500;line-height:1.25}
#resident-profile .profile-actions .profile-action-art{display:block;flex:none;width:22px;height:22px;object-fit:contain}
#resident-profile .profile-actions>button:hover{background:#eef2e8;border-color:#cbd7c0}
#resident-profile .profile-actions>button:focus-visible{outline:2px solid #718367;outline-offset:2px}
#resident-profile .profile-actions>button:disabled{cursor:wait;opacity:.65}
@media(max-width:360px){#resident-profile .profile-actions{gap:4px}#resident-profile .profile-actions>button{padding:5px 4px;gap:3px}#resident-profile .profile-actions .profile-action-art{width:20px;height:20px}#resident-profile .profile-actions>button>span{font-size:10.5px}}

.pal-life-friend{color:inherit;font-weight:650;text-decoration:underline;text-decoration-color:#9daa91;text-underline-offset:3px;border-radius:3px}.pal-life-friend:hover{color:#45613b;text-decoration-color:currentColor}.pal-life-friend:focus-visible{outline:2px solid #6e8660;outline-offset:4px}

.pal-life-measurements{display:block;margin-top:5px;font-size:12px;font-weight:500;color:#64715e;font-variant-numeric:tabular-nums}

.pal-life-measurement-note{display:block;margin-top:2px;font-size:11px;color:#747c70}

/* Local illustrated diary: completed memories, not action cards. */
.pal-life-moments{position:relative;display:block;list-style:none;margin:0;padding:0}.pal-life-moments::before{content:"";position:absolute;inset-inline-start:4px;top:11px;bottom:42px;width:1px;background:#dce2d4}.pal-life-moment{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 96px;align-items:start;gap:18px;min-height:112px;padding:0 0 26px 0;padding-inline-start:25px;border:0;border-radius:0;background:none;box-shadow:none;cursor:default}.pal-life-moment:last-child{padding-bottom:0;min-height:90px}.pal-life-moment::after{content:"";position:absolute;inset-inline-start:0;top:7px;width:7px;height:7px;border:1px solid #8b9d81;border-radius:50%;background:#fcfbf6}.pal-life-moment:not(:last-child)::before{display:none}.pal-life-icon{width:96px;height:96px;flex:none;margin-top:-7px;border:0;border-radius:0;background:none;overflow:visible}.pal-life-art{display:block;width:100%;height:100%;object-fit:contain}.pal-life-moment-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:8px;font-size:14px;line-height:1.55}.pal-life-moment time{font-size:11px;line-height:20px;letter-spacing:.3px;color:#75816e;font-variant-numeric:tabular-nums}.pal-life-moment-line{font-weight:400;color:#394c3e}.pal-life-moment-line b{font-weight:600}.pal-life-day{margin:0 0 22px;font-size:12px;font-weight:600;letter-spacing:0;color:#53694c}.pal-life-day:not(:first-child){margin-top:28px;padding-top:22px;border-top:1px solid #e8e9e0}.pal-life-panel{padding-top:26px}.pal-life-disclaimer{margin-top:20px}
@media(max-width:420px){.pal-life-moment{grid-template-columns:minmax(0,1fr) 76px;gap:10px;min-height:104px;padding-inline-start:22px;padding-bottom:22px}.pal-life-moment:last-child{padding-bottom:0;min-height:82px}.pal-life-icon{width:76px;height:76px;margin-top:0}.pal-life-moment-copy{font-size:13px;gap:7px}.pal-life-panel{padding-inline:20px}.pal-life-day{margin-bottom:20px}}

/* Journal polish: warm paper, editorial headings, a restrained printed timeline. */
dialog.pal-life{background:#fdfcf7;border-color:#e4e4d7;border-radius:26px;box-shadow:0 28px 90px #20372e2e,0 2px 8px #20372e0c}.pal-life-header{padding:30px 30px 24px;background:linear-gradient(140deg,#f2f4e9 0%,#fdfcf7 75%)}.pal-life-owner{font-size:12px;letter-spacing:.8px;color:#64775c;margin-bottom:9px}.pal-life-title{font-size:37px;letter-spacing:-.8px;color:#344735}.pal-life-subtitle{max-width:32ch;font-size:12px;color:#70796a;line-height:1.65}.pal-life-close{border-color:transparent;background:#ffffff75}.pal-life-close:hover{background:#e8eddf}.pal-life-tabs{padding-inline:30px;gap:28px;border-bottom-color:#e8e8de}.pal-life-tab{font-weight:500;font-size:12px}.pal-life-tab[aria-selected="true"]{font-weight:650}.pal-life-panel{padding:28px 30px 26px}.pal-life-day{display:flex;align-items:baseline;justify-content:space-between;gap:16px;font-family:Georgia,"Times New Roman",serif;font-size:19px;font-weight:400;color:#3c5138;margin-bottom:25px}.pal-life-date{font-family:Inter,"Segoe UI",sans-serif;font-size:11px;font-weight:400;letter-spacing:.2px;color:#727c6a;white-space:nowrap}.pal-life-day:not(:first-child){margin-top:20px;padding-top:23px;border-top:1px solid #e8e9df}.pal-life-moments::before{background:linear-gradient(#d1dbc7,#e7ebdf)}.pal-life-moment{gap:22px;min-height:116px;padding-bottom:29px}.pal-life-moment::after{top:7px;width:6px;height:6px;background:#8a9d78;border:2px solid #fdfcf7;box-shadow:0 0 0 1px #c7d2bd}.pal-life-moment-copy{gap:9px;font-size:15px;line-height:1.55}.pal-life-moment time{font-size:11px;letter-spacing:.55px;color:#738269}.pal-life-icon{opacity:.97}.pal-life-disclaimer{font-size:11px;border-top:0;color:#79816f;line-height:1.7;margin-top:19px;padding-top:6px}.pal-life-map-title{font-size:12px;margin-bottom:20px}.pal-life-map-wrap{border-radius:18px;border-color:#dfe6d6;background-color:#f2f5eb;background-image:linear-gradient(#7587680b 1px,transparent 1px),linear-gradient(90deg,#7587680b 1px,transparent 1px);background-size:26px 26px;box-shadow:inset 0 0 38px #dfe7d124}.pal-life-current{filter:drop-shadow(0 1px 1px #284a3030)}.pal-life-position-key{display:flex;align-items:center;justify-content:center;gap:7px;margin:14px 0 0;font-size:11px;color:#556a4e}.pal-life-position-dot{width:7px;height:7px;border-radius:50%;background:#344f3b;box-shadow:0 0 0 3px #e2e9d8}.pal-life-legend{font-size:11px;margin-top:17px}.pal-life-legend-swatch{height:6px;width:18px}.pal-life-cell-detail{padding-top:12px;border-top:1px solid #e7eadd;font-size:11px}
@media(max-width:600px){dialog.pal-life{border-radius:26px 26px 0 0}.pal-life-header{padding:25px 23px 20px}.pal-life-title{font-size:33px}.pal-life-tabs{padding-inline:23px}.pal-life-panel{padding:25px 23px max(25px,env(safe-area-inset-bottom))}.pal-life-day{font-size:18px}.pal-life-moment-copy{font-size:14px}.pal-life-moment{gap:14px}}
@media(max-width:360px){.pal-life-panel{padding-inline:19px}.pal-life-header{padding-inline:19px}.pal-life-tabs{padding-inline:19px}.pal-life-moment-copy{font-size:13px}.pal-life-moment{gap:9px}.pal-life-title{font-size:31px}}

