.cc-photo-target{display:flex;gap:12px;align-items:center;padding:10px 12px;margin:12px 0;background:#f6f4ef;border-radius:14px;overflow-wrap:anywhere}
.cc-photo-target img{width:56px;height:56px;object-fit:cover;border-radius:50%;flex:none}
.cc-photo-victory{display:grid;justify-items:center;gap:8px;padding:22px 16px;border-radius:18px;background:linear-gradient(140deg,#fff9e6,#f2d17c);color:#705014;text-align:center;animation:photo-match-in .35s ease-out}
.cc-photo-victory svg{width:56px;height:56px}
.cc-photo-victory strong{font-size:22px;line-height:1.25;overflow-wrap:anywhere}
.cc-photo-victory span{font-size:14px}
.cc-photo-dialog.is-photo-complete .cc-photo-victory{background:linear-gradient(140deg,#edf8ed,#c6e8c9);color:#245a32}
@keyframes photo-match-in{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.cc-photo-victory{animation:none}}
.cc-photo-dialog{box-sizing:border-box;max-width:calc(100vw - 24px)}
.cc-photo-dialog .cc-dialog-actions{flex-wrap:wrap}
.cc-photo-dialog .button,.cc-share-dialog .button{white-space:normal;overflow-wrap:anywhere;max-width:100%;height:auto;min-height:44px}
.cc-photo-match{display:flex;align-items:center;gap:14px;margin:14px 0;padding:12px;border:1px solid #ded9cd;border-radius:16px;min-width:0}
.cc-photo-match img{width:88px;height:88px;flex:0 0 88px;object-fit:cover;border-radius:12px}
.cc-photo-match div{min-width:0;overflow-wrap:anywhere}
.cc-photo-match p{margin:6px 0}
.cc-share-dialog .cc-share-preview{aspect-ratio:4/5}
.cc-share-dialog .cc-share-preview img{object-fit:contain}
.cc-share-dialog .cc-share-editor,.cc-share-dialog .cc-share-layout{min-width:0;max-width:100%}
.cc-share-dialog input,.cc-share-dialog textarea{box-sizing:border-box;min-width:0;max-width:100%}
.cc-share-dialog #cc-share-caption-preview,.cc-share-dialog a{overflow-wrap:anywhere}
.cc-actions .home-support-stamps{margin-top:14px}
.cc-actions .home-support-stamps .pet-stamp-tray{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:400px){.cc-share-dialog{padding:16px;box-sizing:border-box;max-width:calc(100vw - 16px)}.cc-photo-match img{width:64px;height:64px;flex-basis:64px}}
/* CARE demo collection album */
.cc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cc-tag{display:inline-block;margin:8px 0 0;padding:4px 10px;border-radius:999px;border:1px solid var(--f-gold-d,#946300);background:var(--f-gold-l,#fff1c2);color:var(--f-gold-d,#946300);font:600 11px/1.4 var(--f-body,system-ui)}
.cc-actions{margin:28px 0;padding:20px 16px;border-radius:24px;background:var(--f-white,#fff);border:1px solid var(--f-line,#e6e1d8)}
.cc-actions h2{margin:0 0 6px}
.cc-action-grid{display:grid;gap:10px;margin:14px 0 4px}
.cc-action{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:52px;padding:10px 14px;text-align:left;touch-action:manipulation}
.cc-action small{font-weight:500;color:var(--f-muted,#5c5751);font-size:12px}
.cc-action.is-collected{border-color:var(--f-green,#1a7a43);border-style:dashed}
.cc-action.is-collected small{color:var(--f-green,#1a7a43)}
.cc-action.is-collected small:before{content:"\2713  "}
.cc-action:disabled{opacity:.55;cursor:not-allowed}
.cc-tally{display:flex;gap:10px;margin:12px 0 16px}
.cc-tally span{flex:1;padding:12px;border-radius:12px;background:var(--f-white,#fff);color:var(--f-muted,#5c5751);font-size:12px}
.cc-tally strong{display:block;font:700 24px/1 var(--f-head,system-ui);color:var(--f-ink,#1f1d1a)}
.cc-album{display:grid;gap:14px}
.cc-card{padding:16px;border-radius:24px;background:var(--f-white,#fff);border:0;animation:cc-in .35s ease both}
.cc-card:nth-child(2){animation-delay:.05s}.cc-card:nth-child(3){animation-delay:.1s}
.cc-card-head{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.cc-card-head h2{font-size:20px;margin:0}.cc-card-head .meta{margin:2px 0 6px;font-size:12px;color:var(--f-muted,#5c5751)}
.cc-care-awards{margin:20px 0}
.cc-care-awards>h2{margin:0 0 6px}
.cc-care-awards>p{margin:0 0 12px;color:var(--f-muted,#5c5751);font-size:13px;line-height:1.45}
.cc-care-award-list{display:grid;gap:12px}
.cc-care-award{min-width:0;padding:16px;border-radius:18px;background:var(--f-white,#fff);border:1px solid var(--f-line,#e6e1d8)}
.cc-care-award h3{margin:0 0 4px;font:700 18px/1.2 var(--f-head,system-ui);overflow-wrap:anywhere}
.cc-care-award .cp-summary{margin-top:8px}
.cc-media{flex:none;width:72px;height:72px;border-radius:50%;object-fit:cover;background:var(--f-gold-l,#fff1c2);border:3px solid var(--f-gold,#f3c64f)}
.cc-media-missing{display:grid;place-items:center;text-align:center;font-size:10px;line-height:1.2;color:var(--f-gold-d,#946300);padding:6px}
.cc-slots{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cc-slot{display:grid;justify-items:center;gap:4px;padding:12px 6px;border-radius:12px;text-align:center;font-size:12px;min-width:0;overflow-wrap:anywhere}
.cc-slot.is-collected{background:var(--f-tint,#fdecec);border:1px solid var(--f-red,#cf0404)}
.cc-slot.is-locked{background:var(--f-bg,#f6f4ef);border:1px dashed var(--f-grey,#d9d9d9);color:var(--f-muted,#5c5751)}
.cc-seal{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-weight:700}
.is-collected .cc-seal{background:var(--f-red,#cf0404);color:var(--f-white,#fff);transform:rotate(-8deg)}
.is-locked .cc-seal{border:2px dashed var(--f-grey,#d9d9d9)}
.cc-slot-name{font:700 14px var(--f-head,system-ui);color:var(--f-ink,#1f1d1a)}
.cc-slot-state{font-weight:600}.is-collected .cc-slot-state{color:var(--f-red,#cf0404)}
.cc-slot-how{font-size:11px;line-height:1.35}
.cc-slots-compact .cc-slot{padding:8px 4px}.cc-slots-compact .cc-seal{width:26px;height:26px}
.cc-open{width:100%;margin-top:12px}
.cc-empty{text-align:center;padding:28px 16px;border-radius:24px;background:var(--f-white,#fff);border:1px dashed var(--f-grey,#d9d9d9)}
.cc-empty-slots{display:flex;justify-content:center;gap:10px;margin-bottom:12px}
.cc-empty-slots span{width:40px;height:40px;border-radius:50%;border:2px dashed var(--f-gold,#f3c64f)}
.cc-empty .button{width:100%;margin-top:8px}
.cc-history{margin-top:12px;padding-top:12px;border-top:1px solid var(--f-line,#e6e1d8)}
.cc-skeleton{display:grid;gap:12px}.cc-skeleton i{display:block;height:160px;border-radius:24px;background:var(--f-line,#e6e1d8);animation:cc-pulse 1.2s ease-in-out infinite alternate}
.cc-dialog{width:min(370px,calc(100vw - 32px));padding:24px 20px}
.cc-dialog::backdrop{background:rgba(31,29,26,.45)}
.cc-dialog h2{margin:0 0 8px}
.cc-dialog-status{min-height:1.5em;font-size:13px;margin:10px 0 0}
.cc-dialog-status.is-error{color:#8a0202;font-weight:600}
.cc-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.cc-dialog-actions .button{min-height:48px;touch-action:manipulation}
.cc-dialog-actions [hidden]{display:none}
.cc-impact-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding:clamp(18px,5vw,28px);border-radius:20px}
.cc-impact-dialog h2{font-size:clamp(22px,6vw,28px);line-height:1.2}
.cc-impact-list{display:grid;gap:10px;margin:16px 0;padding:0;list-style:none}
.cc-impact-list li{padding:12px;border-left:4px solid var(--f-red,#cf0404);border-radius:8px;background:var(--f-bg,#f6f4ef);font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.cc-impact-disclosure{padding:12px;border-radius:12px;background:var(--f-gold-l,#fff1c2);font-size:13px;line-height:1.5}
.cc-impact-dialog .cc-dialog-actions{grid-template-columns:1fr}
.cc-impact-dialog .cc-impact-donate{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:56px;margin:18px 0 12px;padding:14px 18px;border:0;border-radius:14px;background:var(--f-red,#cf0404);color:#fff;font-size:18px;font-weight:700;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
.cc-impact-dialog .cc-impact-donate:hover{filter:brightness(.9)}
.cc-impact-dialog .cc-impact-donate:focus-visible{outline:3px solid var(--f-gold-d,#946300);outline-offset:3px}
.cc-support-action-controls{grid-column:2;display:grid;justify-items:start;gap:8px;min-width:0}
.cc-support-action-controls .cc-impact-open{width:100%;max-width:100%;min-width:0;min-height:44px;overflow-wrap:anywhere}
.cc-photo-dialog{width:min(460px,calc(100vw - 24px));max-height:min(90dvh,760px);overflow:auto;padding:clamp(18px,5vw,28px)}
.cc-photo-dialog h2{font-size:clamp(22px,6vw,30px)}
.cc-photo-preview{display:grid;place-items:center;min-height:150px;margin:16px 0 10px;padding:18px;border:1px dashed var(--f-grey,#d9d9d9);border-radius:16px;background:var(--f-bg,#f6f4ef);color:var(--f-muted,#5c5751);text-align:center}
.cc-photo-preview img{display:block;width:auto;max-width:100%;max-height:280px;object-fit:contain;border-radius:12px}
.cc-photo-preview[role="button"]{cursor:pointer;border:2px dashed #c9bdab;transition:background .15s,border-color .15s;min-width:0}
.cc-photo-preview[role="button"]:hover,.cc-photo-preview.is-drag-over{border-color:var(--f-red,#c90000);background:#fff0ed}
.cc-photo-preview[role="button"]:focus-visible{outline:3px solid #a87812;outline-offset:3px}
#cc-photo-preview-empty{display:grid;justify-items:center;gap:8px}
#cc-photo-preview-empty strong{color:#302b27;font-size:18px}
#cc-photo-preview-empty small{font-size:12px}
.cc-photo-outcome{display:grid;justify-items:center;gap:12px;margin:16px 0;padding:22px 18px;border:2px solid #cf6969;border-radius:18px;background:#fff2f0;text-align:center;color:#762020;overflow-wrap:anywhere}
.cc-photo-outcome svg{width:48px;height:48px}
.cc-photo-outcome h3{margin:0;font-size:23px;line-height:1.2;color:inherit}
.cc-photo-outcome p{margin:0;line-height:1.5}
.cc-photo-outcome.is-uncertain,.cc-photo-outcome.is-no_pet{border-color:#c49c48;background:#fff8e8;color:#6e5018}
.cc-photo-outcome.is-error{border-color:#b1a99b;background:#f6f4ef;color:#4e4840}
.cc-photo-no-stamp{display:block;padding:7px 12px;border-radius:8px;background:#fff;font-size:14px}
.cc-photo-outcome .cc-photo-next-step{color:#514b44;font-size:14px}
.cc-photo-outcome .button{width:100%;max-width:290px;white-space:normal}
.cc-photo-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cc-photo-inputs .button{min-height:48px}
.cc-photo-inputs .button:disabled{opacity:.58;cursor:not-allowed}
.cc-photo-dialog .cc-dialog-actions{grid-template-columns:1fr}
.cc-photo-dialog .cc-photo-status{margin-top:14px}
@media(max-width:380px){.cc-photo-inputs{grid-template-columns:1fr}}
@keyframes cc-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cc-pulse{from{opacity:.5}to{opacity:1}}
@media(max-width:340px){.cc-slots{grid-template-columns:1fr}.cc-dialog-actions{grid-template-columns:1fr}}
@media(min-width:900px){.cc-support-action-controls{width:100%;margin-top:auto}}
@media(prefers-reduced-motion:reduce){.cc-card,.cc-skeleton i{animation:none}.is-collected .cc-seal{transform:none}}
.cc-share-source-option{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 0}
#cc-share-source{width:20px;height:20px;flex:none;accent-color:var(--f-red,#cf0404)}
#cc-share-source-help{margin:0;font-size:12px;color:var(--f-muted,#5c5751)}
#cc-share-source-preview,#cc-sheet-source{overflow-wrap:anywhere;font-size:13px;text-underline-offset:3px}
/* Instagram-style local share composer */
dialog.cc-share-dialog.cc-dialog{box-sizing:border-box;width:min(920px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;overscroll-behavior:contain;padding:0;background:var(--f-bg,#f6f4ef)!important}
.cc-share-dialog [hidden]{display:none!important}
.cc-share-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:10px;min-height:56px;padding:6px 12px;border-bottom:1px solid var(--f-line,#e6e1d8);background:var(--f-white,#fff)}
.cc-share-header [data-cc-cancel]{min-height:44px;min-width:44px;padding:8px 12px;border:0;border-radius:12px;background:transparent;color:var(--f-ink,#1f1d1a);font:600 14px var(--f-body,system-ui);cursor:pointer;touch-action:manipulation}
.cc-share-header [data-cc-cancel]:hover{background:var(--f-tint,#fdecec);color:var(--f-red,#cf0404)}
.cc-share-wordmark{margin-left:auto;font:700 18px/1 var(--f-head,system-ui);letter-spacing:-.01em;color:var(--f-ink,#1f1d1a);white-space:nowrap}
.cc-share-wordmark small{display:block;margin-top:5px;font:600 10px/1.2 var(--f-body,system-ui);letter-spacing:.08em}
.cc-share-dialog>h2{margin:16px 16px 6px;font-size:clamp(22px,6vw,28px)}
.cc-share-dialog #cc-dialog-body{margin:0 16px 14px;padding:10px 12px;border-radius:12px;border:1px solid var(--f-gold-d,#946300);background:var(--f-gold-l,#fff1c2);color:var(--f-ink,#1f1d1a);font-size:13px;line-height:1.45}
.cc-share-layout{display:grid;grid-template-columns:1fr;margin:0 16px;border:1px solid var(--f-line,#e6e1d8);border-radius:16px;overflow:hidden;background:var(--f-white,#fff)}
.cc-share-preview{position:relative;display:grid;place-items:center;aspect-ratio:1;min-width:0;background:var(--f-bg,#f6f4ef);border-bottom:1px solid var(--f-line,#e6e1d8);color:var(--f-muted,#5c5751);text-align:center}
#cc-share-image{display:block;width:100%;height:100%;object-fit:cover}
#cc-share-empty{max-width:24ch;padding:20px;font-size:13px;border:2px dashed var(--f-grey,#d9d9d9);border-radius:12px;margin:16px}
.cc-share-editor{display:grid;align-content:start;gap:8px;padding:14px;min-width:0}
#cc-share-pet{margin:0 0 4px;font:700 15px var(--f-head,system-ui);color:var(--f-ink,#1f1d1a);overflow-wrap:anywhere}
.cc-share-editor label{font-weight:600;font-size:13px;color:var(--f-ink,#1f1d1a)}
#cc-share-file{box-sizing:border-box;width:100%;max-width:100%;min-height:44px;padding:8px;border:1px dashed var(--f-grey,#d9d9d9);border-radius:12px;background:var(--f-bg,#f6f4ef);font:inherit;font-size:13px}
#cc-share-file::file-selector-button{min-height:32px;margin-right:10px;padding:6px 12px;border:1px solid var(--f-line,#e6e1d8);border-radius:10px;background:var(--f-white,#fff);color:var(--f-ink,#1f1d1a);font:600 13px var(--f-body,system-ui);cursor:pointer}
#cc-share-help{margin:0 0 6px;font-size:12px;color:var(--f-muted,#5c5751)}
#cc-share-caption{box-sizing:border-box;width:100%;max-width:100%;min-height:110px;padding:10px 12px;border:1px solid var(--f-line,#e6e1d8);border-radius:12px;background:var(--f-white,#fff);color:var(--f-ink,#1f1d1a);font:14px/1.5 var(--f-body,system-ui);resize:vertical}
#cc-share-caption-preview{margin:4px 0 0;padding-top:10px;border-top:1px solid var(--f-line,#e6e1d8);font-size:13px;color:var(--f-ink,#1f1d1a);white-space:pre-wrap;overflow-wrap:anywhere}
.cc-share-dialog #cc-dialog-status{margin:12px 16px 0}
.cc-share-dialog .cc-dialog-actions{grid-template-columns:1fr;margin:12px 16px 16px}
.cc-share-dialog .cc-dialog-actions .button:disabled{opacity:.58;cursor:not-allowed}
@media(min-width:720px){
.cc-share-layout{grid-template-columns:minmax(0,1.35fr) minmax(260px,1fr)}
.cc-share-preview{border-bottom:0;border-right:1px solid var(--f-line,#e6e1d8)}
.cc-share-editor{padding:18px}
.cc-share-dialog .cc-dialog-actions{justify-content:end;grid-template-columns:minmax(200px,auto)}}
@media(max-width:360px){dialog.cc-share-dialog.cc-dialog{width:100vw;max-width:100vw;max-height:100dvh;border-radius:0!important}.cc-share-layout,.cc-share-dialog #cc-dialog-body,.cc-share-dialog .cc-dialog-actions,.cc-share-dialog #cc-dialog-status{margin-inline:10px}.cc-share-dialog>h2{margin-inline:10px}}
/* Phone share-sheet mock (local-only demo) */
.cc-share-dialog .cc-phone-sheet{display:none}
dialog.cc-share-dialog.cc-dialog.is-phone-sharing{width:min(400px,calc(100vw - 16px));background:var(--f-white,#fff)!important;border-radius:24px!important;animation:cc-sheet-up .28s ease both}
.cc-share-dialog.is-phone-sharing #cc-dialog-body{display:none!important}
.cc-share-dialog.is-phone-sharing .cc-phone-sheet:not([hidden]){display:grid;gap:12px;padding:10px 18px 4px}
.cc-sheet-handle{justify-self:center;width:40px;height:5px;border-radius:999px;background:var(--f-grey,#d9d9d9)}
.cc-phone-sheet h3{margin:4px 0 0;font:700 20px/1.2 var(--f-head,system-ui);color:var(--f-ink,#1f1d1a)}
.cc-phone-sheet>p{margin:0;padding:8px 10px;border-radius:12px;border:1px solid var(--f-gold-d,#946300);background:var(--f-gold-l,#fff1c2);color:var(--f-ink,#1f1d1a);font-size:12px;line-height:1.45}
.cc-sheet-summary{display:flex;gap:12px;align-items:center;padding:10px;border:1px solid var(--f-line,#e6e1d8);border-radius:16px;background:var(--f-bg,#f6f4ef);min-width:0}
#cc-sheet-image{flex:none;width:64px;height:64px;border-radius:12px;object-fit:cover;background:var(--f-gold-l,#fff1c2)}
.cc-sheet-summary>div{min-width:0}
.cc-sheet-summary strong{display:block;font:700 14px var(--f-head,system-ui);color:var(--f-ink,#1f1d1a)}
#cc-sheet-caption{margin:2px 0 0;font-size:12px;color:var(--f-muted,#5c5751);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.cc-sheet-apps{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cc-sheet-apps [data-share-destination]{display:grid;justify-items:center;gap:6px;min-height:112px;padding:12px 8px;border:2px solid var(--f-line,#e6e1d8);border-radius:16px;background:var(--f-white,#fff);color:var(--f-ink,#1f1d1a);font:600 13px/1.3 var(--f-body,system-ui);text-align:center;cursor:pointer;touch-action:manipulation;transition:border-color .15s,transform .15s}
.cc-sheet-apps [data-share-destination]:hover{border-color:var(--f-gold,#f3c64f)}
.cc-sheet-apps [data-share-destination]:active{transform:scale(.97)}
.cc-sheet-apps [data-share-destination][aria-pressed="true"]{border-color:var(--f-red,#cf0404);background:var(--f-tint,#fdecec)}
.cc-sheet-app-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#f3c64f,#cf0404 60%,#8a2a6a);color:#fffaf2}
.cc-sheet-app-icon svg{width:26px;height:26px}
.cc-sheet-apps small{font-weight:500;font-size:11px;color:var(--f-muted,#5c5751)}
.cc-share-dialog [data-share-sheet-back]{min-height:44px;padding:8px 12px;border:1px solid var(--f-line,#e6e1d8);border-radius:12px;background:transparent;color:var(--f-ink,#1f1d1a);font:600 14px var(--f-body,system-ui);cursor:pointer;touch-action:manipulation}
.cc-phone-sheet button:focus-visible,.cc-share-dialog [data-cc-confirm]:focus-visible{outline:3px solid var(--f-gold-d,#946300);outline-offset:2px}
.cc-share-dialog.is-phone-sharing .cc-dialog-actions{grid-template-columns:1fr;margin:12px 18px 18px}
@media(max-width:600px){dialog.cc-share-dialog.cc-dialog.is-phone-sharing{width:100vw;max-width:100vw;margin:auto 0 0;border-radius:24px 24px 0 0!important;max-height:92dvh;padding-bottom:env(safe-area-inset-bottom)}}
@keyframes cc-sheet-up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){dialog.cc-share-dialog.is-phone-sharing{animation:none}.cc-sheet-apps [data-share-destination]{transition:none}}
