:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#213046;background:#f3f6fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;background:#1361ac;color:#fff;border:0;border-radius:8px;padding:11px 16px}button:disabled{opacity:.6;cursor:wait}button:hover:not(:disabled){filter:brightness(.95)}label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}input,select{border:1px solid #ced8e2;border-radius:7px;padding:10px;background:#fff;min-width:0}.auth{min-height:100vh;display:grid;place-items:center;padding:20px}.auth .panel{max-width:400px;width:100%}.auth form{display:grid;gap:14px}.panel{background:#fff;border:1px solid #e2e8f0;padding:22px;border-radius:14px;box-shadow:0 4px 16px #2030400b;margin-bottom:18px}.panel p{color:#536172;line-height:1.5}.link{background:none;color:#1361ac;margin-top:16px;padding:0}.layout{display:grid;grid-template-columns:225px 1fr;min-height:100vh}aside{background:#123654;color:#fff;padding:25px 14px;display:flex;flex-direction:column;gap:20px}aside h2{font-size:21px;margin:0 0 5px}aside label{color:#dae6f5}aside nav{display:grid;gap:5px}aside nav button{text-align:left;background:transparent;color:#e1edfb}aside nav button.active,aside nav button:hover{background:#25628f}.logout{margin-top:auto;background:#19496e}.content{padding:28px;max-width:1160px;width:100%;margin:auto}.content header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.content h1{margin:0;font-size:28px}.stats{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:15px}.stats div{background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:22px;display:grid;gap:10px}.stats strong{color:#1361ac;font-size:28px}.record-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end;gap:12px}.panel h3{margin-top:0}.panel ul{padding-left:20px;line-height:2}.error{padding:12px;background:#fff0ec;border:1px solid #eeb6a1;color:#963b23;border-radius:8px;margin-bottom:15px}footer{color:#697789;margin:36px 0;font-size:12px}@media(max-width:700px){.layout{display:block}aside{padding:15px}aside nav{grid-template-columns:repeat(2,1fr)}.content{padding:18px}.stats,.record-form{grid-template-columns:1fr}}.inline-edit{margin-left:12px;padding:5px 12px;background:#e1efe8;border:1px solid #a8c7b6;border-radius:8px;color:#175d48;cursor:pointer;font-weight:600}.inline-edit:hover{background:#c9e8d7}.record-form button.link{background:transparent;color:#175d48;box-shadow:none;border:1px solid #a8c7b6}.refresh-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.refresh-state{font-size:12px;color:#51687a;font-weight:500}.refresh-state-error{color:#a34b27}@media(max-width:700px){.content header{align-items:flex-start;gap:12px;flex-wrap:wrap}.refresh-actions{justify-content:flex-start}}.animals-registry{display:grid;gap:16px}.animal-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:2px}.animal-toolbar h2{margin:0;color:#173f31;font-size:21px}.animal-toolbar p{margin:6px 0 0;color:#64748b;font-size:14px}.animal-toolbar button,.animal-form-actions button:first-child{background:#176a4b}.animal-editor{border-color:#b9d7c6;background:linear-gradient(180deg,#f9fefa,#fff 90px)}.animal-panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.animal-panel-head h3{margin:4px 0 0}.animal-kicker{letter-spacing:.08em;color:#1e7354;font-weight:700;text-transform:uppercase;font-size:11px}.animal-editor h4{font-size:13px;margin:23px 0 12px;padding-bottom:8px;border-bottom:1px solid #dfebe2;color:#315947}.animal-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.animal-editor textarea{border:1px solid #ced8e2;border-radius:8px;padding:10px;resize:vertical;font:inherit;width:100%}.animal-notes{margin-top:14px}.animal-form-actions{display:flex;gap:10px;margin-top:18px;align-items:center;flex-wrap:wrap}.animal-text-button{background:#e9f1ec;color:#275740}.animal-filter{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin-bottom:20px}.animal-filter>label:first-child{flex:2 1 220px}.animal-filter>label:nth-child(2){flex:1 1 120px}.animal-count{padding:9px 0;color:#5d6a76;font-size:12px;white-space:nowrap}.animal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.animal-card{border:1px solid #dbe7df;background:#fff;border-radius:14px;padding:16px;box-shadow:0 3px 12px #123b2810;min-width:0}.animal-card-head,.animal-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}.animal-tag{font-size:12px;font-weight:800;color:#196044;background:#e6f4ed;padding:5px 9px;border-radius:6px}.animal-pill{border-radius:12px;background:#f1f5f9;color:#526073;padding:4px 8px;font-size:11px;font-weight:700}.animal-pill.is-active{background:#dcfce7;color:#14532d}.animal-card h3{margin:14px 0 5px;color:#1e384c;font-size:19px}.animal-muted{color:#64748b;font-size:13px}.animal-card dl{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:18px 0}.animal-card dt{font-size:11px;color:#64748b;margin-bottom:4px}.animal-card dd{font-size:13px;font-weight:600;color:#304a43;margin:0;overflow-wrap:anywhere}.animal-note-preview{padding:10px;background:#f6faf7;border-left:3px solid #71ab8b;font-size:12px;color:#43586b;max-height:58px;overflow:auto}.animal-card-foot{border-top:1px solid #eef2f0;padding-top:12px}.animal-card-foot span{font-size:11px;color:#789}.animal-card-foot button{background:#e9f4ed;color:#175d48;font-size:12px;padding:9px 11px}.animal-empty{color:#64748b;text-align:center;padding:24px}@media(max-width:640px){.animal-toolbar{align-items:flex-start;flex-direction:column}.animal-toolbar button{width:100%}.animal-card dl{grid-template-columns:1fr 1fr}}
