:root{--ink:#17202a;--muted:#6b7280;--line:#e8ecef;--bg:#f7f8fa;--card:#fff;--brand:#6d5dfc;--brand2:#5146d8;--good:#17875b;--warn:#a56708;--danger:#c43d4b;--radius:18px}*{box-sizing:border-box}html,body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:#fff;border-right:1px solid var(--line);padding:26px 18px;overflow:auto;z-index:20}.brand{text-align:center;margin-bottom:28px}.brand img{width:132px;max-height:95px;object-fit:contain}.nav-title{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#9aa1aa;margin:22px 12px 8px}.nav a{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:12px;color:#59616d;margin:3px 0;font-weight:600;font-size:14px}.nav a:hover,.nav a.active{background:#f0efff;color:var(--brand2)}.nav .ico{width:20px;text-align:center}.main{margin-left:250px;padding:34px 42px 60px;max-width:1500px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.topbar h1{font-size:28px;margin:0 0 4px}.muted{color:var(--muted)}.small{font-size:13px}.avatar{width:42px;height:42px;border-radius:50%;background:#eceaff;color:var(--brand2);display:grid;place-items:center;font-weight:800}.grid{display:grid;gap:18px}.stats{grid-template-columns:repeat(4,1fr)}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:0 5px 20px rgba(18,25,38,.035)}.stat{display:flex;align-items:center;gap:15px}.stat-icon{width:44px;height:44px;border-radius:13px;background:#f0efff;color:var(--brand2);display:grid;place-items:center;font-size:20px}.stat strong{display:block;font-size:25px;margin-top:3px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:30px 0 14px}.section-head h2{font-size:20px;margin:0}.btn{border:0;border-radius:11px;padding:11px 16px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn-primary{background:var(--brand);color:#fff}.btn-primary:hover{background:var(--brand2)}.btn-light{background:#fff;border:1px solid var(--line);color:#454c56}.btn-danger{background:#fff0f1;color:var(--danger)}.quick{grid-template-columns:repeat(3,1fr)}.quick .card{min-height:130px;display:flex;flex-direction:column;justify-content:space-between}.quick-icon{font-size:25px;color:var(--brand)}.pets-grid{grid-template-columns:repeat(3,1fr)}.pet-card{display:flex;gap:16px;align-items:center}.pet-photo{width:66px;height:66px;border-radius:17px;background:#f0efff;display:grid;place-items:center;font-size:30px;overflow:hidden;flex:none}.pet-photo img{width:100%;height:100%;object-fit:cover}.pet-card h3{margin:0 0 5px}.pill{display:inline-block;border-radius:99px;padding:5px 9px;font-size:12px;font-weight:700}.pill.good{background:#eaf8f1;color:var(--good)}.pill.warn{background:#fff5df;color:var(--warn)}.privacy-card{margin-top:24px;background:linear-gradient(135deg,#f0efff,#fafaff);border-color:#dfdcff;display:flex;gap:18px;align-items:flex-start}.privacy-card .shield{font-size:30px}.empty{text-align:center;padding:38px 20px;color:var(--muted)}.form-card{max-width:780px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{margin-bottom:16px}.field label{display:block;font-size:13px;font-weight:700;margin:0 0 7px}.input{width:100%;border:1px solid #dfe3e8;border-radius:11px;padding:12px 13px;background:#fff;outline:none}.input:focus{border-color:#9b92ff;box-shadow:0 0 0 3px #efedff}textarea.input{min-height:110px;resize:vertical}.notice{border-radius:12px;padding:13px 15px;margin:0 0 18px;font-size:14px}.notice.error{background:#fff0f1;color:#8e2631}.notice.success{background:#eaf8f1;color:#11623f}.notice.info{background:#eff5ff;color:#31598c}.auth{min-height:100vh;display:grid;grid-template-columns:minmax(0,520px) 1fr;background:#fff}.auth-panel{padding:55px clamp(28px,6vw,78px);display:flex;flex-direction:column;justify-content:center}.auth-logo{width:160px;margin-bottom:35px}.auth h1{font-size:34px;margin:0 0 8px}.auth-side{background:linear-gradient(145deg,#eeecff,#d9d5ff);display:flex;align-items:center;justify-content:center;padding:60px}.auth-message{max-width:520px}.auth-message h2{font-size:38px;line-height:1.15}.auth-message p{font-size:18px;line-height:1.6;color:#58517d}.mobilebar{display:none}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:14px 10px;border-bottom:1px solid var(--line);font-size:14px}.table th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.05em}.setting-row{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border-bottom:0}.switch{position:relative;width:46px;height:26px;flex:none}.switch input{opacity:0}.switch span{position:absolute;inset:0;background:#ccd1d7;border-radius:99px;cursor:pointer}.switch span:after{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}.switch input:checked+span{background:var(--brand)}.switch input:checked+span:after{transform:translateX(20px)}@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.pets-grid{grid-template-columns:repeat(2,1fr)}.auth-side{display:none}.auth{display:block}.auth-panel{max-width:620px;margin:auto;min-height:100vh}}@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.main{margin:0;padding:78px 18px 40px}.mobilebar{display:flex;position:fixed;z-index:15;top:0;left:0;right:0;height:60px;background:#fff;border-bottom:1px solid var(--line);align-items:center;justify-content:space-between;padding:0 18px}.mobilebar img{height:40px;max-width:110px;object-fit:contain}.menu-btn{border:0;background:none;font-size:25px}.stats,.quick,.pets-grid,.form-grid{grid-template-columns:1fr}.topbar{align-items:flex-start}.topbar .avatar{display:none}.section-head{align-items:center}.card{padding:18px}}

/* Tag + finder workflow */
.tag-list{display:grid;gap:14px}.tag-row{display:flex;justify-content:space-between;align-items:center;gap:18px}.tag-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800;letter-spacing:.08em}.actions{display:flex;gap:9px;flex-wrap:wrap}.finder-shell{min-height:100vh;background:#f7f8fa;padding:28px 16px}.finder-wrap{max-width:680px;margin:auto}.finder-brand{text-align:center;margin:8px 0 24px}.finder-brand img{width:145px;max-height:90px;object-fit:contain}.finder-pet{text-align:center}.finder-photo{width:120px;height:120px;border-radius:30px;margin:0 auto 16px;background:#f0efff;display:grid;place-items:center;font-size:56px;overflow:hidden}.finder-photo img{width:100%;height:100%;object-fit:cover}.finder-pet h1{margin:0 0 7px;font-size:32px}.finder-hero{background:linear-gradient(135deg,#f0efff,#fff);border-color:#dfdcff}.detail-list{display:grid;gap:0}.detail{padding:14px 0;border-bottom:1px solid var(--line)}.detail:last-child{border-bottom:0}.detail strong{display:block;margin-bottom:4px}.finder-success{text-align:center;padding:34px}.badge-new{background:#fff0f1;color:#9a2d39}.scan-meta{font-size:12px;color:var(--muted);margin-top:5px}@media(max-width:600px){.tag-row{align-items:flex-start;flex-direction:column}.finder-shell{padding:16px 12px}.finder-pet h1{font-size:28px}}

/* Finder Incident v1 */
.incident-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 20px}.incident-choice label{display:block;cursor:pointer}.incident-choice input{position:absolute;opacity:0}.incident-choice span{display:flex;flex-direction:column;gap:3px;border:1px solid var(--line);border-radius:13px;padding:14px;background:#fff}.incident-choice input:checked+span{border-color:#8d83ff;background:#f5f3ff;box-shadow:0 0 0 2px #ebe8ff}.incident-choice small{color:var(--muted)}.location-box{border:1px solid var(--line);border-radius:14px;padding:15px;margin:0 0 16px;background:#fafbfc}.location-box p{margin:5px 0 10px}@media(max-width:600px){.incident-choice{grid-template-columns:1fr}}

/* Secure Finder Chat */
.secure-chat{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}
.chat-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}
.chat-head h3{margin:0 0 4px}.chat-head p{margin:0}
.chat-messages{height:360px;overflow-y:auto;background:#f7f8fa;border:1px solid var(--line);border-radius:15px;padding:15px;display:flex;flex-direction:column;gap:10px}
.chat-row{display:flex}.chat-row.mine{justify-content:flex-end}.chat-row.theirs{justify-content:flex-start}
.chat-bubble{max-width:min(78%,560px);padding:10px 13px;border-radius:15px;background:#fff;border:1px solid var(--line);line-height:1.4;overflow-wrap:anywhere}
.chat-row.mine .chat-bubble{background:#efedff;border-color:#dfdcff}
.chat-label{font-size:11px;font-weight:800;margin-bottom:4px;color:var(--brand2)}
.chat-time{font-size:10px;color:var(--muted);margin-top:5px}
.chat-compose{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-top:12px}
.chat-compose textarea.input{min-height:54px;max-height:140px}
.chat-note{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.5}.chat-note-title{display:flex;align-items:center;gap:6px;color:#4b5563;font-size:12px;font-weight:800}.chat-note-copy{margin-top:4px}.chat-note-links{display:flex;align-items:center;gap:8px;margin-top:7px}.chat-note-links a{color:var(--brand2);font-weight:700;text-decoration:none}.chat-note-links a:hover{text-decoration:underline}
@media(max-width:600px){.chat-head{flex-direction:column}.chat-messages{height:330px}.chat-bubble{max-width:88%}.chat-compose{grid-template-columns:1fr}.chat-compose .btn{width:100%}}

.missing-public-alert{background:#fff1f1;border:2px solid #b42318;border-radius:18px;padding:18px;text-align:center;margin-bottom:16px;color:#7a1610}.missing-public-alert strong{display:block;font-size:28px}.missing-public-alert span{display:block;margin-top:5px}

/* Missing Pet v1.1 */
.photo-open{position:relative;border:0;padding:0;background:transparent;cursor:zoom-in;width:100%;height:100%;display:block}.photo-open img{width:100%;height:100%;object-fit:cover}.photo-open span{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);background:rgba(17,24,39,.76);color:#fff;border-radius:999px;padding:5px 9px;font-size:11px;white-space:nowrap}.photo-lightbox{position:fixed;inset:0;z-index:2000;background:rgba(9,12,18,.9);display:grid;place-items:center;padding:30px}.photo-lightbox[hidden]{display:none}.photo-lightbox img{max-width:min(1100px,94vw);max-height:90vh;object-fit:contain;border-radius:12px}.photo-lightbox-close{position:fixed;right:20px;top:16px;border:0;background:#fff;color:#111;width:42px;height:42px;border-radius:50%;font-size:28px;cursor:pointer}.lightbox-open{overflow:hidden}.missing-hero{border:2px solid #d94841}.home-safe .safe-check{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#eaf8ef;color:#167044;font-size:34px;font-weight:900}.missing-public-alert{box-shadow:0 8px 24px rgba(180,35,24,.08)}

/* Photo source controls + visible finder errors */
.photo-source-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:8px 0 10px}.photo-source-btn{position:relative;overflow:hidden}.photo-source-btn input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.photo-file-name{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.finder-form-error{max-width:680px;margin:16px 0;border:1px solid #f0b7bd;box-shadow:0 6px 20px rgba(142,38,49,.08)}
@media(max-width:600px){.photo-source-actions .btn{flex:1}.photo-file-name{width:100%}}
.finder-account-hint{margin:16px 0;padding:11px 14px;border:1px solid var(--line,#e2e4ea);border-radius:12px;background:#f8f9fb;font-size:14px}.finder-account-hint strong{margin-right:6px}.finder-account-hint span+span{margin-left:5px}.care-alert{margin-top:18px;padding:16px 18px;border:2px solid #d19b00;border-radius:14px;background:#fff8dd;text-align:left;color:#342b10}.care-alert h2{margin:0 0 10px;font-size:19px}.care-alert p{margin:7px 0;line-height:1.45}


/* Care prominence + unactivated tag setup */
.care-alert-critical{margin-top:16px;border:2px solid #c2410c;background:#fff7ed;color:#431407;border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(194,65,12,.08)}.care-alert-heading{display:flex;gap:13px;align-items:flex-start}.care-warning-icon{width:38px;height:38px;border-radius:50%;background:#c2410c;color:#fff;display:grid;place-items:center;font-size:25px;font-weight:900;flex:none}.care-eyebrow{font-size:12px;font-weight:900;letter-spacing:.09em;color:#9a3412}.care-alert-critical h2{margin:3px 0 0;font-size:20px;line-height:1.25}.care-items{display:grid;gap:10px;margin-top:15px}.care-item{background:#fff;border:1px solid #fed7aa;border-radius:12px;padding:13px 14px;font-size:16px;line-height:1.45}.care-item strong{display:block;color:#9a3412;font-size:11px;letter-spacing:.08em;margin-bottom:4px}.tag-setup-card{max-width:620px;margin:auto;text-align:center;padding-top:30px}.tag-setup-icon{width:66px;height:66px;margin:0 auto 14px;border-radius:20px;background:#f0efff;color:#5146d8;display:grid;place-items:center;font-size:34px}.tag-setup-card h1{margin-top:14px}.tag-setup-code{display:inline-block;margin:8px 0 18px;padding:8px 12px;border-radius:9px;background:#f7f8fa;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800;letter-spacing:.08em}.tag-setup-button{display:flex;width:100%;max-width:340px;margin:0 auto 12px}

/* Finder just-in-time privacy notice */
.finder-privacy-notice{margin:2px 0 14px;padding:12px 13px;border:1px solid #dce7e2;border-radius:11px;background:#f5faf7;color:#43524b;font-size:12px;line-height:1.5}.finder-privacy-notice strong{color:#243c31}.finder-privacy-notice a{color:#19734b;font-weight:700;text-decoration:underline}
.scan-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:10px}.scan-gallery .photo-open{aspect-ratio:1;border-radius:14px;overflow:hidden;background:#eef1f4}.scan-gallery-card h2{margin-top:0}.scan-gallery .photo-open span{bottom:6px}

.demo-profile-banner{margin:0 0 16px;padding:14px 16px;border:1px solid #b9dfc0;border-radius:16px;background:#edf9ef;color:#164d25;display:flex;gap:8px;flex-direction:column}
.demo-profile-banner strong{font-size:1.05rem}.demo-profile-banner span{font-size:.9rem;line-height:1.45;color:#3e6448}
.demo-contact-card .incident-choice label{cursor:default;opacity:.82}.demo-contact-card button[disabled]{opacity:.72;cursor:not-allowed}

/* Secure Finder Chat human-review transparency */
.chat-row.system{justify-content:center;margin:10px 0}
.chat-row.system .chat-bubble{max-width:min(92%,640px);background:#f7f6ff;border-color:#dcd8ff;text-align:center}
.chat-row.system .chat-label{color:var(--brand2)}
.chat-review-live{position:sticky;top:0;z-index:2;margin:0 0 12px;padding:10px 13px;border:1px solid #d8d3ff;border-radius:11px;background:#f7f6ff;box-shadow:0 4px 12px rgba(35,31,70,.06)}
.chat-review-live strong,.chat-review-live span{display:block}
.chat-review-live span{margin-top:2px;font-size:11px;color:var(--muted)}
/* 20 Sep accessibility: visible keyboard focus and reduced-motion support */
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #1769aa;outline-offset:3px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
