/* A quiet, photo-first space for one pet's everyday life. */
.pet-memory{max-width:980px;margin:0 auto;color:var(--ink)}
.memory-profile{display:flex;align-items:center;gap:23px;padding:14px 0 30px}
.memory-profile-avatar{display:grid;place-items:center;width:104px;height:104px;flex:none;border-radius:50%;background:#e6eadf;overflow:hidden}
.memory-profile-avatar>img{width:100%;height:100%;object-fit:cover}
.memory-profile-avatar>svg{width:37px;height:37px;color:#819177;stroke-width:1.3}
.memory-profile-copy{min-width:0;flex:1}
.memory-profile-copy h1{font-size:31px;letter-spacing:-.6px;margin:0 0 9px;overflow-wrap:anywhere}
.memory-profile-copy p{font-size:14px;color:var(--muted);margin:0;line-height:1.7;overflow-wrap:anywhere}
.memory-profile-copy>span{display:block;margin-top:5px;font-size:12px;color:var(--muted)}
.memory-edit-profile{flex:none;font-weight:500}
.memory-quick-links{display:flex;align-items:center;gap:28px;padding:0 0 16px;font-size:13px}
.memory-quick-links>button{display:flex;align-items:center;gap:8px;padding:4px 0;min-height:44px;color:var(--muted)}
.memory-quick-links>button:last-child{margin-left:auto;font-size:12px}
.memory-quick-links>button>span{font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}
.memory-quick-links svg{width:15px;height:15px}
.memory-tabs{display:flex;gap:34px;border-bottom:1px solid var(--line);margin-bottom:33px}
.memory-tabs>button{position:relative;min-height:53px;padding:10px 0 17px;font-size:16px;color:var(--muted);font-weight:500}
.memory-tabs>button.active{color:var(--green);font-weight:650}
.memory-tabs>button.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--green)}
.memory-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px}
.memory-section-heading>div{min-width:0}
.memory-section-heading h2{font-size:22px;line-height:1.4;letter-spacing:-.4px;margin:0 0 8px}
.memory-section-heading p{font-size:13px;color:var(--muted);margin:0}
.memory-section-heading>.primary{flex:none}
.memory-age-filter{display:flex;gap:8px;overflow:auto;scrollbar-width:thin;margin:0 0 29px;padding:2px 0 7px}
.memory-age-button{display:flex;align-items:center;justify-content:center;gap:8px;flex:none;min-height:44px;padding:8px 15px;border-radius:8px;font-size:13px;color:var(--muted)}
.memory-age-button.active{background:#e5eadf;color:var(--green);font-weight:600}
.memory-age-button small{font-size:11px;font-weight:400;opacity:.8}
.memory-age-group{margin:0 0 33px}
.memory-age-heading{display:flex;align-items:baseline;gap:10px;margin-bottom:15px}
.memory-age-heading h3{font-size:19px;margin:0;font-weight:550}
.memory-age-heading>span{font-size:12px;color:var(--muted)}
.memory-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 18px}
.memory-photo{display:block;min-width:0;text-align:left;padding:0}
.memory-photo-frame{display:block;aspect-ratio:1;overflow:hidden;border-radius:12px;background:#e8eae2}
.memory-photo-frame>img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.memory-photo:hover .memory-photo-frame>img{transform:scale(1.025)}
.memory-photo-unavailable{display:grid;place-items:center;height:100%;font-size:13px;color:var(--muted)}
.memory-photo-caption{display:block;padding-top:10px;line-height:1.7;min-width:0}
.memory-photo-caption>time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.memory-photo-caption>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px;font-size:14px;overflow-wrap:anywhere}
.memory-empty{min-height:220px;padding:45px 20px 50px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;border-top:1px solid var(--line);margin-top:25px}
.memory-empty h3{font-size:23px;line-height:1.5;font-weight:500;letter-spacing:-.4px;margin:0 0 12px}
.memory-empty p{font-size:14px;color:var(--muted);max-width:430px;margin:0 0 23px}
.memory-hint{font-size:12px;color:var(--muted);line-height:1.8;margin:20px 0 0}
.memory-hint>.text-button{font-size:12px;padding:0 5px;min-height:44px}
.memory-storage{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);margin-top:44px;padding-top:17px;color:var(--muted);font-size:12px;line-height:1.8}
.memory-storage>.text-button{flex:none;font-size:12px;font-weight:400}
.memory-storage svg{width:16px;height:16px}
.memory-error{font-size:13px;line-height:1.8;color:#93442d;border-left:2px solid #93442d;padding:8px 12px}
.memory-calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.8fr);gap:40px;align-items:start}
.memory-calendar{min-width:0}
.memory-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px;min-width:0}
.memory-month-input{font:inherit;font-size:16px;font-weight:550;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:8px;min-width:0;width:184px;max-width:calc(100% - 98px);min-height:44px;padding:6px 9px}
.memory-calendar-head>div{display:flex;align-items:center;flex:none}
.memory-calendar-head button{display:grid;place-items:center;min-height:44px;padding:5px;font-size:12px}
.memory-calendar-head .memory-calendar-today{padding:5px 10px;color:var(--muted)}
.memory-month-arrow{width:44px}
.memory-month-arrow>svg{width:17px;height:17px}
.memory-month-arrow.memory-prev>svg{transform:rotate(180deg)}
.memory-date-shortcuts{display:flex;justify-content:flex-end;gap:6px;margin:0 0 8px}
.memory-date-shortcuts>button{min-width:54px;min-height:44px;padding:6px 12px;border-radius:8px;font-size:12px;color:var(--muted)}
.memory-date-shortcuts>button[aria-pressed=true]{color:var(--green);background:#e5eadf}
.memory-weekdays,.memory-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.memory-weekdays{margin-bottom:8px;font-size:11px;text-align:center;color:var(--muted)}
.memory-weekdays>span{padding:8px 0}
.memory-day{min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:7px 0 5px;border-radius:9px;font-size:14px;font-variant-numeric:tabular-nums}
.memory-day>i{display:block;width:4px;height:4px;border-radius:50%;background:transparent}
.memory-day>i.has-entry{background:var(--rust)}
.memory-day.outside{color:#899185}
.memory-day.today>span{font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.memory-day.selected{background:var(--green);color:var(--white)}
.memory-day.selected>i.has-entry{background:#e8c19e}
.memory-day:hover:not(.selected){background:#e8ecdf}
.memory-calendar-legend{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);margin:17px 0 0}
.memory-calendar-legend>i{width:4px;height:4px;display:block;background:var(--rust);border-radius:50%}
.memory-day-entry{border-left:1px solid var(--line);min-height:310px;padding-left:30px;padding-top:9px;min-width:0}
.memory-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.memory-entry-heading h3{font-size:19px;font-weight:550;margin:0}
.memory-mood{font-size:12px;color:var(--green);padding:5px 9px;background:#e6ebdf;border-radius:5px}
.memory-activity-list{display:flex;flex-wrap:wrap;gap:9px 14px;color:var(--muted);font-size:12px;margin:0 0 17px}
.memory-entry-text{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;margin:0 0 17px}
.memory-entry-actions{display:flex;gap:21px;justify-content:flex-start}
.memory-entry-actions .text-button{font-size:12px;font-weight:400}
.memory-entry-actions svg{width:15px;height:15px}
.memory-day-blank p{font-size:14px;color:var(--muted);margin:0 0 8px}
.memory-day-blank .text-button{font-size:13px}
.memory-intent-switch{display:inline-flex;border:1px solid var(--line);border-radius:11px;padding:4px;gap:4px;margin-bottom:28px}
.memory-intent-switch>button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 25px;border-radius:7px;font-size:14px;color:var(--muted)}
.memory-intent-switch>button.active{color:var(--white);background:var(--green)}
.memory-intent-switch svg{width:17px;height:17px}
.memory-my-match{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:25px 0}
.memory-my-match-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:13px}
.memory-my-match-heading>div{min-width:0}
.memory-my-match-heading h3{margin:6px 0 0;font-size:21px;font-weight:550;overflow-wrap:anywhere}
.memory-my-match-heading .secondary{flex:none}
.memory-my-match p{font-size:14px;color:var(--muted);margin:0 0 13px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:650px}
.memory-muted{font-size:12px;color:var(--muted)}
.memory-match-location{display:inline-flex;align-items:center;gap:5px;font-size:12px;margin-right:15px;color:var(--muted)}
.memory-match-location svg{width:14px;height:14px}
.memory-private-note{font-size:12px;color:var(--muted)}
.memory-match-publish-actions{margin-top:10px}
.memory-match-publish-actions>.text-button{font-size:12px;font-weight:500}
.memory-match-results-heading{display:flex;align-items:center;gap:15px;margin-top:32px}
.memory-match-results-heading h3{font-size:17px;font-weight:550;margin:0}
.memory-match-results-heading>span{font-size:12px;color:var(--muted)}
.memory-match-results-heading>.text-button{margin-left:auto;font-size:12px;font-weight:400}
.memory-match-results-heading+.memory-empty{min-height:180px;margin-top:17px;padding:26px 0;border:0}
.memory-match-results-heading+.memory-empty h3{font-size:19px}
.memory-match-results-heading+.memory-empty p{margin-bottom:0}
.memory-match-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 25px;margin-top:12px}
.memory-match-card{display:flex;align-items:center;gap:15px;min-width:0;text-align:left;padding:20px 0;border-bottom:1px solid var(--line)}
.memory-match-card>img,.memory-match-avatar{width:68px;height:68px;object-fit:cover;border-radius:12px;flex:none}
.memory-match-avatar{display:grid;place-items:center;background:#e5eadf;color:#7e8c72}
.memory-match-card>span:not(.memory-match-avatar){min-width:0;flex:1}
.memory-match-card strong,.memory-match-card small,.memory-match-card>span>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.memory-match-card strong{font-size:16px;font-weight:550;margin-bottom:5px}
.memory-match-card small{font-size:12px;color:var(--muted)}
.memory-match-card>span>span{font-size:13px;color:var(--muted);margin-top:6px}
.memory-match-card>svg{width:16px;height:16px}
.memory-form{display:grid;gap:22px}
.memory-form .form-grid{gap:20px}
.memory-form .field{gap:8px}
.memory-form .field>label{font-weight:500;font-size:13px}
.memory-form .field input,.memory-form .field select,.memory-form .field textarea{font-size:16px}
.memory-form .field input[type=file]{width:100%;padding:16px 12px;border:1px dashed #bac6b2;background:#edf0e7;line-height:1.7;font-size:13px}
.memory-form .field input[type=file]::file-selector-button{background:var(--white);border:1px solid #b8c3b0;min-height:44px;border-radius:7px;padding:8px 13px;font:inherit;color:var(--green);margin-right:10px;cursor:pointer}
.memory-form .field small{font-size:12px}
.memory-optional{font-size:11px;color:var(--muted);font-weight:400;margin-left:5px}
.memory-form .memory-hint{margin:0}
.memory-form-error:empty{display:none}
.memory-form-error{margin:0}
.memory-choice-fieldset{padding:0;margin:0;border:0;min-width:0}
.memory-choice-fieldset legend{font-size:13px;font-weight:500;margin-bottom:12px;padding:0}
.memory-choice-fieldset legend small{font-size:11px;font-weight:400;color:var(--muted);margin-left:8px}
.memory-choices{display:flex;flex-wrap:wrap;gap:9px}
.memory-choice{position:relative;display:block;cursor:pointer}
.memory-choice>input{position:absolute;opacity:0;width:1px;height:1px}
.memory-choice>span{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:62px;padding:9px 16px;border:1px solid #cfd5c8;border-radius:8px;font-size:13px;color:var(--muted)}
.memory-choice>input:checked+span{border-color:var(--green);background:var(--green);color:var(--white)}
.memory-choice>input:focus-visible+span{outline:3px solid var(--rust);outline-offset:3px}
.memory-form-pet{padding-bottom:18px;border-bottom:1px solid var(--line)}
.memory-form-pet strong{font-size:21px;font-weight:550;display:block;overflow-wrap:anywhere;margin-bottom:6px}
.memory-form-pet span{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.memory-confirmation{align-items:flex-start;font-size:12px;padding-top:2px}
.memory-confirmation input{margin-top:2px}
.memory-photo-preview{display:block;width:100%;max-height:260px;object-fit:contain;border-radius:12px;background:#e9ebe3}
.memory-photo-detail>img{width:100%;max-height:54vh;object-fit:contain;border-radius:12px;background:#e9ebe3}
.memory-photo-detail-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:19px 0 12px;font-size:12px;color:var(--muted)}
.memory-photo-detail-meta>span{font-size:16px;color:var(--ink)}
.memory-photo-detail>p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0;line-height:1.8}
.memory-download-photo{margin-top:15px;font-size:12px;font-weight:400}
.memory-match-detail h3{font-size:22px;margin:15px 0 12px;overflow-wrap:anywhere}
.memory-match-detail h4{font-size:13px;margin:24px 0 8px}
.memory-match-detail>p{font-size:14px;color:var(--muted);line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.memory-match-detail>.memory-photo-preview{margin-bottom:20px}
.memory-account h3{font-size:23px;font-weight:500;margin-bottom:15px}
.memory-account>p{font-size:14px;color:var(--muted);line-height:1.9}
.memory-account-actions{display:flex;gap:13px;flex-wrap:wrap;margin:25px 0}
.memory-account .memory-hint{font-size:12px}
.memory-auth-intro{font-size:17px;line-height:1.8;margin:0 0 3px;font-weight:500;letter-spacing:-.2px}
.memory-account-guest{display:flex;align-items:center;gap:20px;margin-top:14px;border-top:1px solid var(--line);padding-top:10px}
.memory-account-guest>.text-button{font-size:12px;font-weight:400}
.memory-auth-methods{display:flex;gap:28px;margin:0 0 27px;border-bottom:1px solid var(--line)}
.memory-auth-methods>button{position:relative;min-height:48px;padding:5px 0 15px;font-size:14px;color:var(--muted)}
.memory-auth-methods>button.active{color:var(--green);font-weight:600}
.memory-auth-methods>button.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--green)}
.memory-auth-form{gap:22px}
.memory-auth-form .field>label{font-size:13px}
.memory-password-input,.memory-code-input,.memory-phone-input{display:flex;align-items:center;min-width:0;gap:12px}
.memory-password-input{position:relative}
.memory-password-input>input{padding-right:66px!important}
.memory-password-input>button{position:absolute;right:3px;top:2px;bottom:2px;width:58px;min-height:44px;font-size:12px;color:var(--green);border-radius:7px}
.memory-phone-input{border:1px solid #d6dbce;border-radius:9px;background:var(--white);padding-left:13px;gap:0}
.memory-phone-input>span{font-size:14px;color:var(--muted);padding-right:11px;border-right:1px solid var(--line);flex:none}
.memory-phone-input>input{border:0!important;background:transparent!important;flex:1;width:0;min-width:0}
.memory-code-input>input{flex:1;width:0;min-width:0;font-variant-numeric:tabular-nums;letter-spacing:2px}
.memory-code-input>.memory-send-code{min-width:104px;min-height:46px;padding:9px 11px;border:1px solid #cfd5c8;border-radius:9px;color:var(--green);font-size:12px;flex:none}
.memory-code-input>.memory-send-code:disabled{color:var(--muted);opacity:.75}
.memory-auth-links{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:13px;margin-top:19px;border-top:1px solid var(--line)}
.memory-auth-links>.text-button,.memory-auth-back{font-size:12px;font-weight:400}
.memory-auth-back{margin-top:18px}
.memory-auth-availability{font-size:13px;line-height:1.8;padding:13px 15px;margin:0 0 23px;background:#edf0e7;color:var(--muted)}
.memory-auth-notice{font-size:13px;color:var(--green);line-height:1.8;margin:0}
.memory-auth-notice:empty{display:none}
.memory-auth-privacy{font-size:11px;color:var(--muted);line-height:1.8;margin:-10px 0 0}
.memory-account-detail{display:flex;align-items:baseline;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}
.memory-account-detail>span{color:var(--muted);flex:none}
.memory-account-detail>strong{font-size:14px;line-height:1.7;font-weight:500;overflow-wrap:anywhere;min-width:0;text-align:right}
.memory-bind-button{margin-top:15px;font-size:13px}
@media(max-width:767px){.memory-auth-form .field input{font-size:16px}.memory-auth-methods{margin-bottom:24px}.memory-code-input{gap:9px}.memory-code-input>.memory-send-code{min-width:98px;padding-inline:8px}.memory-auth-links{margin-top:16px}.memory-auth-availability{font-size:12px}}
@media(min-width:1440px){.memory-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:767px){
  .memory-profile{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px 16px;padding:10px 0 19px}
  .memory-profile-avatar{width:76px;height:76px}
  .memory-profile-avatar>svg{width:30px;height:30px}
  .memory-profile-copy h1{font-size:26px;margin-bottom:6px}
  .memory-profile-copy p{font-size:12px}
  .memory-profile-copy>span{font-size:11px}
  .memory-edit-profile{grid-column:2;justify-self:start;margin:0;font-size:12px;padding:8px 12px}
  .memory-edit-profile svg{width:16px;height:16px}
  .memory-quick-links{gap:23px;padding-bottom:12px;font-size:12px}
  .memory-quick-links>button:last-child{font-size:11px;gap:5px}
  .memory-tabs{justify-content:space-between;gap:12px;margin-bottom:25px}
  .memory-tabs>button{font-size:15px;min-height:51px;padding:10px 0 15px}
  .memory-section-heading{gap:11px;margin-bottom:20px;align-items:flex-start}
  .memory-section-heading h2{font-size:20px;line-height:1.45;margin-bottom:6px}
  .memory-section-heading p{font-size:12px;line-height:1.7}
  .memory-section-heading>.primary{font-size:12px;gap:5px;padding:9px 11px;min-height:44px}
  .memory-section-heading>.primary>svg{width:15px;height:15px}
  .memory-age-filter{margin-bottom:22px;gap:5px}
  .memory-age-button{padding:8px 12px;font-size:12px}
  .memory-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 12px}
  .memory-photo-frame{border-radius:10px}
  .memory-age-heading{margin-bottom:12px}
  .memory-age-heading h3{font-size:18px}
  .memory-photo-caption{padding-top:7px}
  .memory-photo-caption>time{font-size:11px}
  .memory-photo-caption>span{font-size:12px;margin-top:3px}
  .memory-empty{padding:24px 0 28px;min-height:180px;margin-top:20px}
  .memory-empty h3{font-size:21px;line-height:1.6;max-width:260px}
  .memory-empty p{font-size:13px;line-height:1.9;margin-bottom:21px}
  .memory-hint{font-size:12px}
  .memory-storage{margin-top:29px;padding-top:14px;gap:4px;flex-direction:column;align-items:flex-start;font-size:11px}
  .memory-storage>.text-button{font-size:12px}
  .memory-calendar-layout{grid-template-columns:minmax(0,1fr);gap:25px}
  .memory-calendar-head{margin-bottom:10px}
  .memory-weekdays,.memory-days{gap:0}
  .memory-day{min-height:46px;border-radius:8px;font-size:13px}
  .memory-calendar-legend{margin-top:14px}
  .memory-day-entry{padding:23px 0 0;border-left:0;border-top:1px solid var(--line);min-height:150px}
  .memory-entry-heading{margin-bottom:18px}
  .memory-entry-heading h3{font-size:18px}
  .memory-entry-text{font-size:13px}
  .memory-intent-switch{display:flex;margin-bottom:23px}
  .memory-intent-switch>button{flex:1;font-size:13px;padding:10px 14px;gap:8px}
  .memory-my-match{padding:21px 0}
  .memory-my-match-heading{gap:12px}
  .memory-my-match-heading h3{font-size:20px}
  .memory-my-match-heading .secondary{padding:9px 11px;font-size:12px;gap:5px}
  .memory-my-match-heading .secondary svg{width:15px;height:15px}
  .memory-my-match p{font-size:13px;line-height:1.8}
  .memory-match-location,.memory-private-note,.memory-muted{font-size:11px}
  .memory-match-results-heading{margin-top:27px}
  .memory-match-results-heading+.memory-empty{padding:20px 0;min-height:150px}
  .memory-match-results-heading+.memory-empty h3{font-size:18px}
  .memory-match-grid{grid-template-columns:minmax(0,1fr);gap:0}
  .memory-form .form-grid{grid-template-columns:1fr 1fr;gap:20px 14px}
  .memory-form .full-width{grid-column:1/-1}
  .memory-form .field>label{font-size:12px}
  .memory-form .field small{font-size:11px}
  .memory-choice>span{padding:9px 13px;font-size:12px}
  .memory-photo-detail>img{max-height:48vh}
  .memory-photo-detail-meta{font-size:11px}
  .memory-photo-detail>p{font-size:13px}
}
@media(max-width:359px){
  .memory-section-heading{flex-wrap:wrap}
  .memory-section-heading>.primary{margin-top:2px}
  .memory-profile-copy h1{font-size:23px}
  .memory-profile-avatar{width:67px;height:67px}
  .memory-profile{grid-template-columns:67px minmax(0,1fr)}
  .memory-quick-links{gap:17px}
  .memory-calendar-head .memory-calendar-today{padding-inline:6px}
  .memory-calendar{margin-inline:-14px}
  .memory-calendar-head,.memory-calendar-legend{padding-inline:14px}
  .memory-weekdays,.memory-days{gap:0}
  .memory-form .form-grid{grid-template-columns:1fr}
}

.memory-inbox h3{font-size:17px;margin:24px 0 12px}.memory-inbox-row{padding:18px 0;border-bottom:1px solid var(--line)}.memory-inbox-row>div:first-child{display:flex;justify-content:space-between;gap:16px}.memory-inbox-row>div>span,.memory-inbox-row small{font-size:12px;color:var(--muted)}.memory-inbox-row p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.memory-inbox-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
