@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root{color-scheme:light;--ink:#202c28;--ink-soft:#475650;--muted:#829089;--line:#e1e8e3;--surface:#fff;--canvas:#f5f7f4;--green:#315b49;--green-deep:#244536;--green-pale:#eaf1eb;--orange:#d96d47;--orange-pale:#fbefe9;--shadow:0 12px 32px rgba(40,61,49,.055);font-family:'DM Sans','Noto Sans SC',system-ui,sans-serif}*{box-sizing:border-box}html{min-width:320px;background:var(--canvas)}body{margin:0;color:var(--ink);font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit}button{color:inherit}.app-shell{min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--line);padding:27px 17px 18px;z-index:5}.brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none;padding:0 9px 34px}.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:12px 12px 12px 4px;background:var(--green);color:#fff;font-weight:800;font-size:20px}.brand b{display:block;font-size:16px;line-height:1.2}.brand small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.side-label{padding:0 12px 10px;color:#9aa59f;font-size:10px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.side-nav{display:grid;gap:5px}.nav-item{height:44px;padding:0 12px;border:0;background:transparent;border-radius:7px;display:flex;align-items:center;gap:11px;text-align:left;color:#6f7d76;cursor:pointer;font-weight:600}.nav-item:hover,.nav-item.active{background:var(--green-pale);color:var(--green)}.nav-icon{width:20px;text-align:center;font-size:21px;line-height:1}.nav-count{margin-left:auto;min-width:22px;padding:1px 6px;text-align:center;border-radius:12px;background:#fff;font-size:11px}.sidebar-bottom{margin-top:auto}.service-state{display:flex;gap:10px;align-items:center;margin:0 4px 14px;padding:13px 11px;background:#f7f9f6;border-radius:7px}.service-state>i,.online-pill i,.camera-live i{width:7px;height:7px;flex:none;border-radius:50%;background:#55a879;box-shadow:0 0 0 3px #e1f1e7}.service-state b,.service-state small{display:block}.service-state b{font-size:12px}.service-state small{margin-top:2px;font-size:10px;color:var(--muted)}.docs-link{display:flex;justify-content:space-between;padding:10px 12px;color:var(--muted);text-decoration:none;font-size:12px}.docs-link:hover{color:var(--green)}.main-area{margin-left:248px;min-height:100dvh;padding:48px clamp(25px,5vw,76px) 70px}.view{display:none;max-width:1220px;margin:0 auto}.view.active{display:block}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin-bottom:30px}.kicker{margin:0 0 7px;color:var(--orange);font-size:10px;font-weight:700;letter-spacing:.14em}.page-heading h1{margin:0;font-size:31px;line-height:1.2;font-weight:700;letter-spacing:-.025em}.heading-copy{margin:8px 0 0;color:var(--muted);font-size:13px}.total-chip{display:flex;align-items:baseline;gap:6px;padding:7px 0 7px 15px;border-left:2px solid var(--orange)}.total-chip strong{font-size:27px;line-height:1;font-weight:700}.total-chip span{font-size:11px;color:var(--muted)}.identify-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:17px;align-items:stretch}.capture-panel,.result-panel,.form-panel{background:var(--surface);border:1px solid var(--line);border-radius:9px}.capture-panel{padding:14px}.capture-stage{position:relative;display:grid;place-items:center;overflow:hidden;aspect-ratio:4/3;min-height:280px;background:#e9eee9;border-radius:6px}.capture-stage video,.capture-stage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none}.capture-stage video.visible,.capture-stage>img.visible{display:block}.stage-empty{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px}.stage-empty .camera-glyph{display:grid;place-items:center;width:57px;height:57px;margin-bottom:14px;border:1px solid #cbd7cd;border-radius:50%;font-size:30px;color:var(--green)}.stage-empty b{font-size:14px}.stage-empty>span:last-child{margin-top:5px;font-size:11px;color:var(--muted)}.camera-live{position:absolute;z-index:2;top:12px;left:12px;display:none;align-items:center;gap:8px;padding:6px 9px;border-radius:20px;color:#fff;background:#19231d99;font-size:10px}.capture-stage.camera-on .camera-live{display:flex}.camera-live i{width:6px;height:6px;background:#ef8563;box-shadow:none}.capture-tools{position:relative;display:flex;align-items:center;gap:8px;padding:15px 2px 4px}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:0 15px;border:1px solid transparent;border-radius:6px;cursor:pointer;font-weight:700;font-size:12px;transition:background .15s,border .15s,transform .15s}.button:active{transform:translateY(1px)}.button-dark{background:var(--green);color:#fff}.button-dark:hover{background:var(--green-deep)}.button-light{background:#f2f5f2;color:var(--ink-soft)}.button-light:hover,.button-outline:hover{background:var(--green-pale);border-color:#cddbd0}.button span{font-size:18px;line-height:0}.shutter{display:grid;place-items:center;width:52px;height:52px;margin-left:auto;border:3px solid var(--green);border-radius:50%;background:#fff;cursor:pointer}.shutter span{width:36px;height:36px;border-radius:50%;background:var(--green);transition:transform .15s}.shutter:hover span{transform:scale(.9)}.shutter:disabled{opacity:.4;cursor:not-allowed}.capture-foot{display:flex;justify-content:space-between;gap:10px;padding:5px 3px 1px;color:var(--muted);font-size:10px}.text-button{padding:4px 0;border:0;background:transparent;color:var(--green);font-size:11px;font-weight:700;cursor:pointer}.result-panel{display:flex;flex-direction:column;min-height:360px;padding:0 19px}.result-topline{display:flex;justify-content:space-between;align-items:center;min-height:49px;border-bottom:1px solid var(--line);font-weight:700;font-size:12px}.result-state{color:var(--muted);font-size:10px;font-weight:500}.result-content{display:flex;flex:1;padding:18px 0}.result-placeholder{align-self:center;max-width:290px;margin:auto;text-align:center}.target-glyph{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 13px;border-radius:50%;background:var(--green-pale);color:var(--green);font-size:27px}.result-placeholder h2{font-size:15px}.result-placeholder p{margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.7}.privacy-note{display:flex;align-items:flex-start;gap:9px;margin-top:12px;padding:11px 13px;background:#eef1ed;border-radius:6px;color:#6f7c74}.privacy-note>span{display:grid;place-items:center;width:16px;height:16px;flex:none;border:1px solid #94a198;border-radius:50%;font-size:10px}.privacy-note p{margin:0;font-size:10px;line-height:1.65}.result-success{width:100%}.result-animal{display:grid;grid-template-columns:86px 1fr;gap:13px;align-items:center}.result-animal img{width:86px;height:86px;object-fit:cover;border-radius:6px;background:var(--canvas)}.result-animal h2{font-size:19px}.result-animal p{margin-top:3px;color:var(--muted);font-size:11px}.match-score{display:inline-flex;margin-top:8px;padding:4px 7px;border-radius:4px;background:var(--green-pale);color:var(--green);font-size:10px;font-weight:700}.result-facts{margin-top:17px;padding-top:13px;border-top:1px solid var(--line);color:var(--ink-soft);font-size:12px}.result-facts p+p{margin-top:6px}.candidate-list{width:100%}.candidate-list h2{margin-bottom:5px;font-size:16px}.candidate-list>p{margin:0 0 13px;color:var(--muted);font-size:11px}.candidate-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}.candidate-row b,.candidate-row small{display:block}.candidate-row small{margin-top:2px;color:var(--muted);font-size:10px}.candidate-row strong{color:var(--green);font-size:12px}.result-unknown{align-self:center;margin:auto;text-align:center}.result-unknown>span{font-size:29px;color:var(--orange)}.result-unknown h2{margin-top:10px;font-size:16px}.result-unknown p{max-width:290px;margin:7px auto 0;color:var(--muted);font-size:11px;line-height:1.7}.page-heading .step-mark{color:var(--muted);font-size:11px}.step-mark b{display:inline-grid;place-items:center;width:29px;height:29px;margin-left:7px;border-radius:50%;background:var(--orange-pale);color:var(--orange)}.register-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(310px,.9fr);gap:15px;align-items:start}.form-panel{padding:22px}.section-heading{display:flex;align-items:center;gap:11px;margin-bottom:18px}.section-index{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--green-pale);color:var(--green);font-size:10px;font-weight:700}.section-heading h2{font-size:15px}.section-heading p{margin:2px 0 0;color:var(--muted);font-size:10px}.species-picker{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:18px}.species-option{position:relative;display:flex;align-items:center;gap:10px;min-height:66px;padding:10px;border:1px solid var(--line);border-radius:6px;cursor:pointer}.species-option.selected{border-color:#70927c;background:#f4f8f4}.species-option input{position:absolute;opacity:0;pointer-events:none}.species-emoji{display:grid;place-items:center;width:38px;height:38px;border-radius:5px;background:#faeee9;color:#bd6043;font-weight:800}.species-emoji.dog{background:#edf1e8;color:#647849}.species-option b,.species-option small{display:block}.species-option b{font-size:12px}.species-option small{margin-top:2px;color:var(--muted);font-size:9px}.species-option i{display:none;margin-left:auto;color:var(--green);font-size:12px;font-style:normal}.species-option.selected i{display:block}.field-label{display:block;margin:0 0 6px;color:#52615a;font-size:11px;font-weight:700}.field-label>span{margin-left:5px;color:var(--orange);font-size:9px;font-weight:500}.field-label small,.field-label em{color:var(--muted);font-size:9px;font-style:normal;font-weight:400}.field{width:100%;min-height:42px;padding:9px 11px;border:1px solid #dce4de;border-radius:5px;background:#fff;color:var(--ink);outline:none}.field::placeholder{color:#a8b1ac}.field:focus{border-color:#6d947b;box-shadow:0 0 0 3px #eaf1eb}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:13px}.field-row label{min-width:0}.species-picker+.field-label{margin-top:0}.photo-uploader{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;min-height:154px;padding:17px 12px 14px;border:1px dashed #b9c8bd;border-radius:6px;background:#fafbf9;text-align:center;transition:border .15s,background .15s}.photo-uploader.drag-over{border-color:var(--orange);background:#fff7f3}.upload-symbol{display:grid;place-items:center;width:32px;height:32px;margin-bottom:3px;border-radius:50%;background:var(--green-pale);color:var(--green);font-size:20px}.photo-uploader>b{font-size:12px}.photo-uploader>small{color:var(--muted);font-size:10px}.button-outline{min-height:32px;margin-top:4px;border-color:var(--line);background:#fff;color:var(--ink-soft);font-size:10px}.photo-selection{margin:8px 0 0;color:var(--muted);font-size:10px}.photo-strip{display:flex;gap:7px;overflow:auto;margin-top:9px}.photo-strip img{width:60px;height:60px;flex:none;object-fit:cover;border-radius:4px}.details-panel .section-heading{margin-bottom:20px}.stray-toggle{display:flex;align-items:center;gap:10px;margin-bottom:17px;padding:11px;background:#f7f9f6;border-radius:6px;cursor:pointer}.stray-toggle input{position:absolute;opacity:0}.toggle-track{position:relative;width:34px;height:19px;flex:none;border-radius:15px;background:#cbd3cd;transition:background .15s}.toggle-track:after{position:absolute;top:3px;left:3px;width:13px;height:13px;border-radius:50%;background:#fff;content:"";transition:transform .15s}.stray-toggle input:checked+.toggle-track{background:var(--green)}.stray-toggle input:checked+.toggle-track:after{transform:translateX(15px)}.stray-toggle b,.stray-toggle small{display:block}.stray-toggle b{font-size:11px}.stray-toggle small{margin-top:2px;color:var(--muted);font-size:9px}.owner-fields{display:grid;gap:11px;margin:-6px 0 16px;padding:13px;border:1px solid var(--line);border-radius:5px}.owner-fields[hidden],.disease-field[hidden]{display:none}.private-note{margin:0;color:var(--muted);font-size:9px}.check-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.check-card{display:flex;align-items:center;gap:8px;min-height:39px;padding:7px 9px;border:1px solid var(--line);border-radius:5px;font-size:10px;cursor:pointer}.check-card input{position:absolute;opacity:0}.check-box{display:grid;place-items:center;width:16px;height:16px;border:1px solid #c6d0c8;border-radius:3px;color:transparent;font-size:11px}.check-card input:checked+.check-box{border-color:var(--green);background:var(--green);color:#fff}.disease-field{display:block;margin-top:12px}.location-heading{display:flex;justify-content:space-between;align-items:center;margin:16px 0 9px}.location-heading .field-label{margin:0}.location-heading small{display:block;color:var(--muted);font-size:9px}.form-panel>.field-label[for="animalDescription"]{margin-top:14px}.form-panel textarea.field{resize:vertical;min-height:68px}.form-message{min-height:19px;margin-top:10px;color:var(--muted);font-size:10px}.form-message.error{color:#b74132}.form-message.success{color:#35734e}.button-submit{width:100%;min-height:46px;margin-top:2px;background:var(--orange);color:#fff;font-size:12px}.button-submit:hover{background:#c45c38}.button-submit:disabled{opacity:.6;cursor:wait}.button-submit span{margin-left:auto;font-size:17px}.records-heading{align-items:flex-end}.desktop-add{min-height:39px}.records-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px;background:#fff;border:1px solid var(--line);border-radius:7px}.search-box{display:flex;align-items:center;gap:9px;flex:1;max-width:350px}.search-box>span{font-size:21px;color:var(--muted)}.search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:12px}.filter-group{display:flex;gap:4px;padding:3px;background:#f4f6f3;border-radius:5px}.filter{min-height:31px;padding:0 10px;border:0;border-radius:4px;background:transparent;color:var(--muted);font-size:10px;cursor:pointer}.filter.active{background:#fff;color:var(--green);box-shadow:0 1px 3px #1c332216}.filter b{margin-left:3px}.record-summary{display:flex;justify-content:space-between;align-items:center;margin:17px 1px 10px;color:var(--muted);font-size:10px}.records-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.record-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:6px;cursor:pointer;transition:transform .15s,box-shadow .15s}.record-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.record-photo{position:relative;display:grid;place-items:center;aspect-ratio:1.25;background:#e9eee8}.record-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.record-photo-placeholder{color:#89958e;font-size:29px}.record-badge{position:absolute;top:8px;left:8px;padding:4px 7px;border-radius:3px;background:#fffE;color:var(--green);font-size:9px;font-weight:700}.record-body{padding:11px}.record-title{display:flex;justify-content:space-between;gap:8px;align-items:center}.record-title h2{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.record-title span{flex:none;color:var(--muted);font-size:9px}.record-detail{overflow:hidden;margin-top:5px;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.empty-records{grid-column:1/-1;padding:65px 20px;border:1px dashed #d1dad3;border-radius:6px;text-align:center}.empty-records>span{display:block;color:#a2ada5;font-size:30px}.empty-records h2{margin-top:9px;font-size:14px}.empty-records p{margin:5px 0 15px;color:var(--muted);font-size:11px}.mobile-topbar,.mobile-nav{display:none}.visually-hidden{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}.button:focus-visible,.nav-item:focus-visible,.filter:focus-visible,.mobile-nav-item:focus-visible{outline:3px solid #a7c6af;outline-offset:2px}

@media(max-width:1050px){.sidebar{width:215px}.main-area{margin-left:215px;padding-right:27px;padding-left:27px}.identify-layout{grid-template-columns:minmax(0,1fr) minmax(270px,.78fr)}.register-layout{grid-template-columns:1fr 1fr}.records-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sidebar{display:none}.main-area{margin:0;padding:0 17px calc(84px + env(safe-area-inset-bottom))}.mobile-topbar{position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:center;height:55px;margin:0 -17px;padding:0 17px;border-bottom:1px solid var(--line);background:#ffffffed;backdrop-filter:blur(12px)}.brand.compact{gap:8px;padding:0}.brand.compact .brand-mark{width:30px;height:30px;border-radius:9px 9px 9px 3px;font-size:16px}.brand.compact>b{font-size:14px}.online-pill{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px}.online-pill i{width:6px;height:6px}.page-heading{align-items:flex-start;margin:23px 0 20px}.page-heading h1{font-size:25px}.heading-copy{max-width:300px;font-size:11px}.total-chip{padding-left:11px}.total-chip strong{font-size:23px}.identify-layout{grid-template-columns:1fr;gap:10px}.capture-panel{padding:9px}.capture-stage{min-height:0;aspect-ratio:1.2;background:#e9eee8}.capture-tools{gap:7px;padding:9px 1px 3px}.button{min-height:43px;padding:0 11px;font-size:10px}.shutter{width:48px;height:48px;border-width:3px}.shutter span{width:32px;height:32px}.result-panel{min-height:190px;padding:0 13px}.result-topline{min-height:40px}.result-content{padding:13px 0}.result-placeholder{max-width:280px}.result-placeholder h2{font-size:13px}.result-placeholder p{font-size:10px}.privacy-note{margin-top:9px;padding:9px 10px}.privacy-note p{font-size:9px}.register-layout{grid-template-columns:1fr;gap:10px}.form-panel{padding:16px}.section-heading{margin-bottom:15px}.species-option{min-height:61px}.field{min-height:45px;font-size:16px}.field-row{gap:9px}.photo-uploader{min-height:145px}.records-heading{align-items:flex-start}.desktop-add{display:none}.records-toolbar{display:block;padding:10px}.search-box{max-width:none;min-height:35px}.filter-group{overflow:auto;margin-top:8px}.filter{flex:1;white-space:nowrap}.records-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.record-photo{aspect-ratio:.98}.record-body{padding:9px}.record-title h2{font-size:12px}.record-detail{font-size:9px}.mobile-nav{position:fixed;inset:auto 0 0;z-index:10;display:grid;grid-template-columns:repeat(3,1fr);min-height:calc(62px + env(safe-area-inset-bottom));padding:5px 15px calc(5px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffF;backdrop-filter:blur(15px)}.mobile-nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:0;background:transparent;color:#8a968f;cursor:pointer}.mobile-nav-item>span{font-size:21px;line-height:1.15}.mobile-nav-item small{font-size:9px}.mobile-nav-item.active{color:var(--green)}.mobile-nav-item[data-view="register"]>span{display:grid;place-items:center;width:33px;height:28px;border-radius:6px;background:var(--green);color:#fff;font-size:23px}.mobile-nav-item[data-view="register"] small{color:var(--green)}}
@media(max-width:380px){.main-area{padding-right:11px;padding-left:11px}.mobile-topbar{margin-right:-11px;margin-left:-11px;padding-right:11px;padding-left:11px}.capture-tools{gap:5px}.capture-tools .button{padding:0 8px;font-size:9px}.shutter{width:44px;height:44px;flex:none}.field-row{grid-template-columns:1fr 1fr}.records-grid{gap:6px}}
.detector-warning{margin-top:8px!important;padding:8px 9px;border-radius:4px;background:#fbefe9;color:#9c4d31!important;font-size:10px!important}
