/* A quiet, quick response while the private record is loading. */
.person-card{position:relative;transition:border-color .26s,box-shadow .26s,transform .26s}
.person-card:has(.person-name:active),.person-card:has(.person-portrait:active){transform:scale(.988)}
.person-card.is-opening{border-color:#b29550;box-shadow:0 6px 24px #153e3118}
.person-card.is-opening::after{content:'';position:absolute;inset-inline-end:14px;top:14px;width:18px;height:18px;border:2px solid #c7ab70;border-top-color:transparent;border-radius:50%;background:#163c321a;animation:record-loading .7s linear infinite;pointer-events:none}
.back-registry[aria-busy="true"]{opacity:.7;cursor:progress}
.person-card.just-returned{animation:record-returned 850ms ease-out both}
@keyframes record-returned{0%,25%{border-color:#b29550;box-shadow:0 0 0 3px #c7ab7024,0 8px 28px #153e3112}100%{border-color:#d8e3dc;box-shadow:0 0 0 0 #c7ab7000}}
@keyframes record-loading{to{transform:rotate(360deg)}}

html.profile-opening{view-transition-name:none}
html.profile-opening #app{view-transition-name:person-page}
html.profile-opening::view-transition{pointer-events:none}
html.profile-opening::view-transition-group(*){animation-duration:780ms;animation-timing-function:cubic-bezier(.4,0,.2,1)}
html.profile-opening::view-transition-group(person-photo){z-index:3;overflow:hidden;border-radius:14px;box-shadow:0 16px 40px #102f2626}
html.profile-opening::view-transition-group(person-name){z-index:4}
html.profile-opening::view-transition-group(person-shell){z-index:2;overflow:hidden;border-radius:16px}
html.profile-opening::view-transition-old(*),html.profile-opening::view-transition-new(*){mix-blend-mode:normal;animation-duration:420ms}
html.profile-opening::view-transition-old(person-page){animation:profile-away 250ms ease-out both}
html.profile-opening::view-transition-new(person-page){animation:profile-arrive 680ms 90ms cubic-bezier(.4,0,.2,1) both}
html.profile-opening::view-transition-old(person-shell){animation:profile-fade-out 260ms ease-out both}
html.profile-opening::view-transition-new(person-shell){animation:profile-fade-in 520ms 100ms ease-out both}
html.profile-opening::view-transition-old(person-photo),html.profile-opening::view-transition-new(person-photo){width:100%;height:100%;object-fit:cover;object-position:center}
html.profile-returning::view-transition-group(*){animation-duration:700ms}
html.profile-returning::view-transition-old(person-page){animation:profile-return-away 250ms ease-out both}
html.profile-returning::view-transition-new(person-page){animation:profile-return-arrive 580ms 90ms cubic-bezier(.4,0,.2,1) both}
html.profile-returning::view-transition-new(person-shell){animation:profile-fade-in 410ms 100ms ease-out both}
@keyframes profile-return-away{to{opacity:0;transform:translateY(8px)}}
@keyframes profile-return-arrive{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@keyframes profile-away{to{opacity:0;transform:translateY(-6px)}}
@keyframes profile-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes profile-fade-out{to{opacity:0}}
@keyframes profile-fade-in{from{opacity:0}to{opacity:1}}
.motion-photo-ghost{position:fixed;z-index:100;max-width:none;object-fit:cover;object-position:center;pointer-events:none;box-shadow:0 14px 40px #102f2626}

/* The completed-save seal: one gold trace, a soft reveal and a green check. */
.save-celebration{position:fixed;inset:0;width:min(430px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - 40px);margin:auto;padding:38px 26px 24px;overflow:auto;border:1px solid #cbb27365;border-radius:28px;color:#f5f3e8;background:radial-gradient(ellipse at 50% 16%,#28493d 0%,#112f2a 55%,#0d251f 100%);box-shadow:0 30px 100px #06171066;text-align:center;animation:celebration-enter 570ms cubic-bezier(.4,0,.2,1) both}
.save-celebration::backdrop{background:#08231ac9;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);animation:profile-fade-in 180ms ease-out both}
.save-celebration-content{position:relative}
.brand-seal{position:relative;isolation:isolate;width:184px;height:184px;margin:0 auto 22px}
.seal-orbit{position:absolute;inset:0;width:100%;height:100%;fill:none;transform:rotate(-90deg)}
.seal-track{stroke:#d6bb7820;stroke-width:1}
.seal-draw{stroke:#d6bb78;stroke-width:1.4;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0;animation:seal-trace 1000ms 100ms cubic-bezier(.4,0,.2,1) both}
.seal-logo{position:absolute;inset:19px;border-radius:50%;overflow:hidden;animation:seal-reveal 900ms 100ms cubic-bezier(.4,0,.2,1) both}
.seal-logo img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 12px #050f1440)}
.seal-sheen{position:absolute;inset:-30%;background:linear-gradient(110deg,transparent 35%,#fff2c332 49%,transparent 62%);mix-blend-mode:screen;transform:translateX(120%);animation:seal-sheen 1050ms 420ms ease-out both;pointer-events:none}
.seal-check{position:absolute;inset-inline-end:2px;bottom:8px;display:grid;place-items:center;width:43px;height:43px;border:3px solid #13362c;border-radius:50%;background:#bde0c5;box-shadow:0 4px 16px #09261c35;animation:seal-check 570ms 780ms cubic-bezier(.4,0,.2,1) both}
.seal-check svg{width:28px;height:28px;fill:none;stroke:#174b32;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.seal-check path{stroke-dasharray:1;animation:seal-trace 430ms 920ms ease-out both}
.save-brand{font-size:14px;letter-spacing:1.8px;margin:0 0 16px;direction:ltr;animation:seal-copy 420ms 230ms ease-out both}.save-brand span{color:#d3b676}
.save-celebration h2{font-size:27px;line-height:1.3;letter-spacing:-.5px;margin:0 0 10px;text-wrap:balance;animation:seal-copy 420ms 380ms ease-out both}
#save-celebration-person{font-size:18px;line-height:1.4;color:#c5d6cb;margin:0;overflow-wrap:anywhere;direction:ltr;unicode-bidi:isolate;animation:seal-copy 420ms 450ms ease-out both}
.save-celebration .celebration-dismiss{margin-top:25px;min-height:44px;border-color:#7691837a;border-radius:10px;background:transparent;color:#e1e9e3;font-size:14px;padding:10px 18px;animation:seal-copy 400ms 540ms ease-out both}
.save-celebration .celebration-dismiss:focus-visible{outline:2px solid #d5bf85;outline-offset:4px}
.completion-page .brand-seal{background:#163d31;border-radius:50%;width:158px;height:158px;margin-bottom:28px}
.completion-page .seal-logo{inset:16px}.completion-page .seal-check{width:38px;height:38px;inset-inline-end:0;bottom:5px;border-color:white}
@keyframes celebration-enter{from{opacity:0;transform:translateY(18px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes seal-reveal{from{opacity:0;transform:translateY(12px) scale(.8);filter:blur(3px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes seal-trace{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes seal-sheen{from{transform:translateX(-120%)}to{transform:translateX(120%)}}
@keyframes seal-check{from{opacity:0;transform:scale(.45)}to{opacity:1;transform:scale(1)}}
@keyframes seal-copy{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:400px){.save-celebration{padding:28px 20px 22px}.brand-seal{width:160px;height:160px}.save-celebration h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){
 .person-card{transition:none}.person-card:has(.person-name:active),.person-card:has(.person-portrait:active){transform:none}
 .person-card.is-opening::after,.person-card.just-returned,.save-celebration,.save-celebration::backdrop,.brand-seal *,.save-celebration-content>*{animation:none!important}
 .seal-sheen{display:none}.seal-check path{stroke-dashoffset:0}
 html.profile-opening::view-transition-group(*),html.profile-opening::view-transition-old(*),html.profile-opening::view-transition-new(*){animation:none!important}
}
