:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#243c31;background:#f6f7f3;font-synthesis:none;font-weight:400;line-height:1.5;--green: #234c3b;--muted: #68746d;--border: #dfe5dc;--red: #af342b}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button{min-height:48px}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button,input,select,textarea{border-radius:9px}button{border:1px solid transparent;background:transparent;color:inherit;font-weight:600}button:hover{filter:brightness(.97)}:focus-visible{outline:3px solid #b48231;outline-offset:3px}h1:focus{outline:none}h1,h2,h3,p{margin:0}h1{font-size:34px;letter-spacing:-1.2px;line-height:1.25;font-weight:650;margin:7px 0 9px}h2{font-size:20px;letter-spacing:-.4px;font-weight:650}h3{font-size:16px;line-height:1.5;font-weight:650}svg{flex-shrink:0}input,select,textarea{width:100%;min-height:52px;border:1px solid #ccd5ca;background:#fff;color:#243c31;padding:12px 14px;font-size:16px}textarea{resize:vertical;line-height:1.6}input::placeholder,textarea::placeholder{color:#7c857f}.muted{color:var(--muted)}.small{font-size:13px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:750;color:#758076}.app-shell{display:flex;min-height:100vh}.sidebar{width:235px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:34px 20px 22px;border-right:1px solid var(--border);background:#fff;z-index:10}.brand{display:flex;align-items:center;gap:11px;font-size:27px;letter-spacing:-1px;font-weight:750;padding:0 10px}.brand-icon{background:var(--green);color:#fbf7e9;border-radius:10px;display:grid;place-items:center;width:41px;height:45px}.brand-sub{display:block;font-size:8px;letter-spacing:2.3px;font-weight:600;margin-top:0}.workspace-label{font-size:9px;font-weight:700;letter-spacing:1.6px;color:#8c958e;margin:48px 15px 13px}.nav-item{display:flex;align-items:center;gap:13px;padding:14px 15px;margin:5px 0;border-radius:8px;font-size:14px;min-height:51px;color:#626f66;font-weight:550}.nav-item.active{background:#eaf0e8;color:var(--green);font-weight:700}.nav-count{margin-left:auto;font-size:11px;background:#f4dcd6;color:#a5362f;border-radius:5px;min-width:21px;text-align:center}.sidebar-bottom{margin-top:auto;padding:15px 11px 0;color:#506357;font-size:12px}.sidebar-bottom>p{font-size:10px;color:#7f8b81;margin-top:6px}.local-dot{display:inline-block;width:6px;height:6px;background:#578261;border-radius:50%;margin-right:7px;flex-shrink:0}.sidebar-note{border-top:1px solid var(--border);display:flex;gap:10px;align-items:center;padding-top:20px;margin-top:22px;font-size:11px;color:#7a847c;line-height:1.7}.main-shell{margin-left:235px;flex:1;min-width:0}.topbar{height:73px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 42px;font-size:12px;color:#6e796f}.topbar .desktop-only{display:flex;align-items:center;gap:13px;font-size:10px;letter-spacing:.7px}.local-pill{display:flex;align-items:center;border:1px solid var(--border);background:#f8faf5;border-radius:20px;padding:5px 10px;font-size:10px;font-weight:600}main{max-width:1300px;padding:38px 42px 0;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:28px}.page-heading p{font-size:13px}.primary,.secondary,.cream-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 19px;font-size:13px;border:1px solid var(--green);white-space:nowrap}.primary{background:var(--green);color:#fff}.secondary{border-color:#d8ded4;background:#fff;color:#48594e}.cream-button{color:#244b38;background:#f5f1dd;border-color:#f5f1dd;gap:20px;padding:10px 17px;min-height:44px}.hero{position:relative;background:#244d3c;border-radius:13px;overflow:hidden;min-height:243px;color:#fff;display:flex;align-items:center;padding:32px 35px}.hero>div:first-child{max-width:440px;z-index:1}.hero-label{display:flex;gap:8px;align-items:center;font-size:9px;letter-spacing:1.6px;color:#c7d4ba;font-weight:650}.hero h2{font-family:Georgia,serif;font-size:32px;font-weight:400;letter-spacing:-.7px;margin:13px 0 11px}.hero p{font-size:13px;line-height:1.8;max-width:370px;color:#c6d5c9;margin-bottom:21px}.pasture-art{position:absolute;right:0;top:0;bottom:0;width:36%;overflow:hidden;opacity:.8}.sun{position:absolute;right:62px;top:34px;width:58px;height:58px;background:#d7c990;border-radius:50%;opacity:.85}.hill{position:absolute;width:390px;height:200px;transform:rotate(-14deg);border-radius:50%}.hill-back{background:#42664a;top:95px;left:0}.hill-front{background:#31583e;top:148px;left:50px}.pasture-art>svg{position:absolute;right:30px;bottom:27px;color:#a3b292;width:200px;height:95px}.pasture-art>span{position:absolute;bottom:17px;right:35px;font-size:6px;letter-spacing:1.8px;color:#b9c5ae}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin:22px 0 32px}.quick-card{text-align:left;position:relative;border:1px solid var(--border);background:#fff;padding:22px;border-radius:12px;display:flex;flex-wrap:wrap;gap:14px;align-items:center;transition:border-color .15s,transform .15s}.quick-card:hover{border-color:#78947b;transform:translateY(-2px)}.icon-tile{width:44px;height:44px;display:grid;place-items:center;border-radius:10px}.green{background:#edf2e8;color:#486444}.red{background:#fbefea;color:#ae4b3b}.tan{background:#f6f0df;color:#8e7840}.quick-stat{display:block;font-size:30px;line-height:1;font-weight:600;letter-spacing:-.5px}.quick-stat>span{display:block;font-size:10px;color:#7b847c;line-height:1.5;font-weight:400;letter-spacing:0;margin-top:7px}.quick-title{font-size:16px;letter-spacing:-.3px}.quick-link{display:flex;justify-content:space-between;align-items:center;width:100%;border-top:1px solid #edf0e9;padding-top:15px;margin-top:3px;font-size:13px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 17px}.section-heading p{margin-top:5px}.count-bubble{display:inline-block;font-size:11px;background:#eee9df;border-radius:5px;padding:2px 7px;margin-left:5px;vertical-align:middle;color:#776e59}.text-link{display:inline-flex;align-items:center;gap:7px;font-size:13px;min-height:44px;padding:0;color:#315640}.action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.action-card{background:#fff;border:1px solid var(--border);border-top:3px solid #ca6451;border-radius:10px;padding:15px 18px 18px;min-width:0}.spread{display:flex;justify-content:space-between;align-items:center;gap:10px}.action-card h3{margin:10px 0 9px;font-size:14px;min-height:42px;overflow-wrap:anywhere}.action-badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 7px;background:#fcebe5;color:#a32f24;font-size:10px;font-weight:800;letter-spacing:.5px;white-space:nowrap}.action-buttons{display:flex;gap:8px;margin-top:17px}.action-buttons button{flex:1;font-size:11px;padding:8px;min-height:44px}.action-card.closed{border-top-color:#8ca38e}.status-done{display:inline-flex;gap:4px;align-items:center;font-size:11px;color:#416f4d}.local-notice{display:flex;gap:12px;align-items:center;color:#7b867a;font-size:11px;border:1px dashed #d8dfcf;background:#f0f3e9;padding:17px 20px;border-radius:8px;margin-top:30px}.local-notice strong{font-weight:600;color:#53674f}.local-notice p{line-height:1.8}footer{display:flex;align-items:center;gap:7px;border-top:1px solid var(--border);margin-top:38px;padding:19px 0 22px;color:#869083;font-size:10px}footer>span{margin-left:auto;font-size:9px}.filters{display:flex;gap:12px;margin-bottom:21px}.search{display:flex;align-items:center;flex:1;min-width:0;position:relative;background:#fff;border:1px solid #ccd5ca;border-radius:9px;padding:0 13px;gap:10px;color:#7e887e}.search input{border:0;padding-left:0;min-width:0;outline-offset:0}.search button{padding:5px}.filter-select{display:flex;align-items:center;gap:4px;background:#fff;border:1px solid #ccd5ca;border-radius:9px;padding-left:12px}.filter-select select{border:0;background:transparent;width:auto;font-size:13px;padding-right:6px}.filter-toggle{background:#fff;border:1px solid #ccd5ca;display:flex;align-items:center;gap:7px;padding:10px 13px;font-size:12px}.filter-toggle.selected{background:#fcebe5;border-color:#b75342;color:#a32f24}.list-caption{display:flex;justify-content:space-between;color:#7b877e;font-size:11px;margin-bottom:12px}.animal-list{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden}.animal-list:empty{display:none}.animal-row{width:100%;display:flex;align-items:center;gap:18px;padding:20px 23px;border-radius:0;border-bottom:1px solid #e9ede5;text-align:left;min-height:97px}.animal-row:last-child{border-bottom:0}.animal-row:hover{background:#f6f9f1}.tag-tile{background:#f1f4ec;border:1px solid #e4e9dd;border-radius:10px;display:grid;place-items:center;min-width:47px;height:47px;color:#6e8266}.animal-name{width:125px;flex-shrink:0}.animal-name strong{font-size:24px;line-height:1.2;display:block;font-weight:650;letter-spacing:-.7px}.animal-name>span{font-size:11px;font-weight:400;color:#71806f;display:block;margin-top:5px}.animal-place{display:flex;flex-direction:column;gap:5px}.animal-place strong{font-size:13px;font-weight:550}.animal-place>span{display:flex;align-items:center;gap:4px;font-size:11px;color:#7d887a;font-weight:400}.animal-action{margin-left:auto}.segment{display:inline-flex;border:1px solid #d9e0d3;border-radius:9px;background:#eaf0e5;padding:4px;margin-bottom:15px;gap:3px}.segment button{font-size:13px;min-width:125px;padding:8px 19px;min-height:44px}.segment .selected{background:#fff;box-shadow:0 1px 4px #283d2914}.segment+p{margin-bottom:22px}.back-link{margin-bottom:14px}.record-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:27px}.record-identity{display:flex;align-items:center;gap:15px;margin-bottom:26px}.record-tag{font-size:44px;letter-spacing:-2px;display:flex;align-items:center;gap:12px;line-height:1;font-weight:650}.class-pill{border-radius:20px;background:#edf2e7;color:#496240;padding:5px 11px;font-size:11px;font-weight:600}.record-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:24px 21px}.record-facts div>span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#7b857b;margin-bottom:6px}.record-facts strong{font-size:13px;font-weight:550;display:block}.observation{background:#f5f6ef;border-left:3px solid #8ca577;padding:15px 18px;margin-top:26px;border-radius:0 6px 6px 0}.observation p{font-size:14px;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}.record-id{font-size:10px;color:#7e8b7c;margin-top:20px}.record-card>.text-link{margin-right:20px}.record-tabs{display:flex;overflow-x:auto;gap:6px;border-bottom:1px solid #d5dece;margin-top:30px}.record-tabs button{padding:13px 18px;min-height:52px;border-radius:7px 7px 0 0;font-size:13px;border-bottom:3px solid transparent;color:#6a7a66}.record-tabs .selected{border-bottom-color:#345f42;color:#2d533c;background:#eaf0e4}.history-panel{padding-top:20px}.history-panel>.action-card{margin-bottom:12px}.history-entry{padding:21px 24px;border:1px solid var(--border);border-radius:9px;background:#fff;margin-bottom:12px}.history-entry h3{font-size:14px}.history-entry p{font-size:13px;color:#667461;margin-top:9px;white-space:pre-wrap;overflow-wrap:anywhere}.breeding-summary{background:#edf2e7;border:1px solid #d4dfc8;border-radius:10px;padding:22px;margin-bottom:18px}.breeding-summary h3{display:flex;align-items:center;gap:7px;font-size:14px}.breeding-dates{display:flex;gap:35px;margin:22px 0 14px}.breeding-dates span{display:block;font-size:10px;color:#74816c;margin-bottom:5px}.breeding-dates strong{font-size:18px;font-weight:600}.clear-state{display:flex;align-items:center;gap:8px;color:#5e7a54;font-size:13px}.empty{text-align:center;padding:40px 20px;background:#f0f3eb;border:1px dashed #d3ddc9;border-radius:10px;color:#6b7c60}.empty>svg{margin-bottom:8px}.empty h3{font-size:16px}.empty p{font-size:13px;margin-top:6px}.entry-form{max-width:760px}.form-card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:25px;margin-bottom:18px}.form-card h2{display:flex;align-items:center;gap:11px;font-size:18px;margin-bottom:22px}.step-number{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#edf2e6;font-size:12px}.form-card label{display:block;font-size:13px;font-weight:600;margin-top:20px}.form-card label>input,.form-card label>select,.form-card label>textarea{display:block;margin-top:8px}.entry-kinds{display:grid;grid-template-columns:1fr 1fr;gap:10px}.entry-kinds button{display:flex;align-items:center;gap:10px;border:1px solid #dbe3d4;padding:17px 13px;min-height:64px;font-size:13px;text-align:left}.entry-kinds button>svg:last-child:not(:first-child){margin-left:auto}.entry-kinds .selected{background:#eaf1e4;border-color:#597b4e;color:#2c5637}.form-row{display:flex;gap:18px}.form-row>label{flex:1;min-width:0}.optional{font-weight:400;color:#788570}.form-help{display:flex;gap:10px;align-items:flex-start;background:#f1f5eb;border-radius:7px;padding:13px 15px;font-size:12px;margin-top:13px;color:#58734a}.form-help p{line-height:1.7}.form-help strong{display:block;font-weight:600}.quick-notes{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.quick-notes button{display:flex;align-items:center;gap:5px;border:1px solid #dce3d5;background:#f6f8f1;border-radius:20px;padding:7px 12px;min-height:44px;font-size:12px;color:#607852}.form-card>.muted{margin-top:17px}.form-actions{display:flex;justify-content:flex-end;gap:12px}.form-actions button{min-height:54px;padding:13px 27px}.save-note{display:flex;gap:6px;align-items:center;justify-content:flex-end;margin-top:13px;font-size:10px;color:#819077}.error{padding:16px;background:#fff0e9;border:1px solid #e3ab9b;border-radius:9px;color:#9d392c;font-size:14px;margin-bottom:18px;display:flex;justify-content:space-between;gap:10px}.toast{position:fixed;bottom:25px;left:calc(50% + 117px);transform:translate(-50%);z-index:30;display:flex;gap:10px;align-items:center;padding:15px 20px;background:#234c3b;color:#fff;box-shadow:0 6px 30px #112d2a30;border:1px solid #779080;border-radius:10px;font-size:13px;max-width:90vw;width:max-content}.fatal{padding:50px;max-width:700px}.fatal p{margin:20px 0}.fatal button{background:#234c3b;color:#fff;padding:12px 20px}.mobile-only,.mobile-brand,.bottom-nav{display:none}@media(min-width:1450px){main{padding-top:45px}.hero{min-height:265px}.hero h2{font-size:36px}.quick-card{padding:25px}.hero>div:first-child{max-width:500px}}@media(max-width:1150px){.sidebar{width:205px;padding-left:13px;padding-right:13px}.main-shell{margin-left:205px}main{padding:30px 26px 0}.topbar{padding:0 26px}.quick-card{padding:17px;gap:11px}.quick-stat{font-size:27px}.quick-title{font-size:14px}.action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero>div:first-child{max-width:360px}.pasture-art{width:31%}.record-facts{grid-template-columns:repeat(3,1fr)}.toast{left:calc(50% + 102px)}}@media(max-width:850px){.sidebar{width:180px}.main-shell{margin-left:180px}.brand{font-size:23px;padding:0 4px;gap:8px}.brand-icon{width:35px;height:40px}.brand-sub{font-size:7px}.nav-item{font-size:13px;padding:12px}.quick-grid{gap:10px}.quick-card{align-items:flex-start;flex-direction:column}.quick-stat{font-size:25px}.quick-title{font-size:16px;line-height:1.4}.quick-link{margin-top:auto}.hero h2{font-size:28px}.pasture-art{opacity:.35}.hero p{max-width:320px}.filters{flex-wrap:wrap}.search{flex-basis:100%}.filter-select{flex:1}.filter-select select{width:100%}.animal-row{gap:12px;padding:17px}.animal-name{width:75px}.animal-place{display:none}.record-facts{grid-template-columns:repeat(2,1fr)}.record-tabs button{padding:12px}.toast{left:calc(50% + 90px)}}@media(max-width:650px){:root{font-size:16px}.sidebar{display:none}.main-shell{margin-left:0}.topbar{height:62px;padding:0 20px}.topbar .desktop-only,.desktop-only{display:none!important}.mobile-brand{display:flex;align-items:center;gap:9px;font-size:23px;letter-spacing:-.7px;font-weight:750;color:var(--green)}.mobile-only{display:inline}.local-pill{font-size:10px}main{padding:26px 18px calc(100px + env(safe-area-inset-bottom,0px))}.page-heading{margin-bottom:22px;align-items:flex-start}.eyebrow{font-size:10px}h1{font-size:29px;margin-top:7px}.page-heading p{font-size:13px;max-width:310px;line-height:1.6}.heading-add{display:none}.hero{padding:25px 22px;min-height:242px;border-radius:12px}.hero-label{font-size:8px;letter-spacing:1.1px}.hero h2{font-size:29px;max-width:245px;line-height:1.2;margin:16px 0 11px}.hero p{max-width:260px;font-size:12px;line-height:1.8}.hero>div:first-child{max-width:100%}.cream-button{min-height:48px;font-size:12px}.pasture-art{width:40%;opacity:.3}.sun{right:23px;top:24px;width:45px;height:45px}.pasture-art>svg{right:-40px;bottom:25px}.pasture-art>span{display:none}.quick-grid{grid-template-columns:1fr;gap:10px;margin:18px 0 26px}.quick-card{flex-direction:row;align-items:center;flex-wrap:nowrap;gap:13px;padding:16px;min-height:91px}.quick-card .icon-tile{width:43px;height:43px;flex-shrink:0}.quick-stat{font-size:24px;min-width:110px}.quick-stat>span{font-size:10px;margin-top:5px}.quick-title{font-size:16px;min-width:0}.quick-link{border:0;padding:0;margin:0 0 0 auto;font-size:12px;width:auto;gap:8px;white-space:nowrap}.quick-card:last-child .quick-link{font-size:0;gap:0}.quick-title>span{font-size:10px}.section-heading h2{font-size:18px}.section-heading .text-link{font-size:12px}.action-grid{grid-template-columns:1fr;gap:13px}.action-card{padding:14px 17px 17px}.action-card h3{font-size:16px;min-height:0;margin:8px 0 9px}.action-card .text-link{font-size:15px}.action-badge{font-size:10px;padding:5px 8px}.action-buttons button{min-height:48px;font-size:13px}.action-buttons{margin-top:16px}.local-notice{padding:15px;font-size:11px;align-items:flex-start}.local-notice strong{display:block}footer{margin-top:28px;font-size:10px;flex-wrap:wrap}footer>span{font-size:8px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;border-top:1px solid #d8e0d2;background:#fff;padding:6px 5px calc(7px + env(safe-area-inset-bottom));z-index:20;justify-content:space-around}.bottom-nav a{min-height:53px;min-width:70px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:10px;color:#798475;font-weight:550;border-radius:9px;padding:4px 9px}.bottom-nav a.active{color:#234c3b;background:#edf2e7}.bottom-nav a:last-child{background:#234c3b;color:#fff}.toast{bottom:calc(83px + env(safe-area-inset-bottom));left:50%;font-size:12px;padding:13px 16px}.filters{gap:9px}.filter-select select{font-size:13px}.filter-toggle{font-size:12px;padding:9px}.list-caption{font-size:10px}.animal-row{padding:17px 12px;gap:10px;min-height:99px;flex-wrap:wrap}.tag-tile{min-width:39px;height:43px}.tag-tile svg{width:20px}.animal-name{width:auto;flex:1}.animal-name strong{font-size:26px}.animal-name>span{font-size:11px}.animal-name .mobile-only{display:none}.animal-row>svg{width:16px}.animal-action{margin-left:0}.record-card{padding:21px 18px}.record-tag{font-size:43px}.record-identity{gap:10px;flex-wrap:wrap}.record-facts{gap:22px 18px}.record-facts strong{font-size:14px}.record-facts div>span{font-size:9px}.observation{margin-top:22px;padding:15px}.record-id{line-height:1.8}.record-id>span{display:block}.record-tabs{gap:0;margin-left:-18px;margin-right:-18px;padding:0 8px}.record-tabs button{font-size:12px;padding:12px 10px;min-width:fit-content}.breeding-summary{padding:19px 16px}.breeding-summary>.spread{align-items:flex-start;flex-wrap:wrap}.breeding-summary h3{font-size:15px}.breeding-dates{gap:22px;flex-wrap:wrap}.breeding-dates strong{font-size:18px}.history-entry{padding:18px 16px}.history-entry .spread{align-items:flex-start;flex-wrap:wrap}.history-entry h3{font-size:15px}.history-entry p{font-size:14px}.form-card{padding:21px 17px}.form-card h2{font-size:17px}.entry-kinds{gap:9px}.entry-kinds button{font-size:12px;padding:13px 10px;gap:7px;flex-wrap:wrap;min-height:86px}.entry-kinds button svg:first-child{width:100%;height:22px;object-fit:contain;margin-right:auto}.entry-kinds button svg:last-child:not(:first-child){display:none}.entry-kinds .selected{box-shadow:inset 0 0 0 1px #597b4e}.form-card label{font-size:14px}.form-row{flex-direction:column;gap:0}.form-actions button{flex:1;font-size:15px}.save-note{justify-content:center}.form-help{font-size:13px}.quick-notes button{font-size:12px}.segment{display:flex}.segment button{flex:1}.segment+p{font-size:13px}.error{font-size:13px}.back-link,.empty p{font-size:14px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.herd-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:0 0 22px}.record-card .herd-tools{margin:22px 0 0}.family-links{border-top:1px solid var(--border);margin-top:20px;padding-top:18px;font-size:14px}.family-links h3{margin:12px 0 5px}.family-links strong{font-weight:600}.danger-link{color:#a33025;padding:8px 4px;font-size:13px;text-decoration:underline;min-height:44px}.remove-entry{float:right;margin:0 0 8px 12px}.action-card .spread{clear:both}.danger-button{background:#aa3428;color:#fff;padding:12px 20px}.delete-confirm{border:1px solid #d4ddd0;border-radius:14px;padding:26px;max-width:480px;width:calc(100% - 32px);color:var(--green)}.delete-confirm::backdrop{background:#132a25aa}.delete-confirm p{margin:14px 0;overflow-wrap:anywhere}.checkbox-label{display:flex!important;align-items:center;gap:10px;min-height:48px;font-weight:500!important}.checkbox-label input{min-height:24px;width:24px;height:24px;accent-color:#234c3b;flex-shrink:0}details{margin-top:20px}summary{cursor:pointer;padding:14px 0;font-weight:600;font-size:14px}.photo-picker{border:0;padding:0;margin:22px 0;min-width:0}.photo-picker legend{font-size:14px;font-weight:600}.photo-controls{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px}.photo-controls label{position:relative;overflow:hidden;flex:1;min-height:50px;margin-top:12px;cursor:pointer}.photo-controls input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;width:100%;cursor:pointer}.photo-controls label:focus-within{outline:3px solid #b48231;outline-offset:3px}.photo-gallery,.photo-drafts{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}.photo-gallery:empty{display:none}.photo-gallery figure{margin:0;width:min(100%,200px)}.photo-gallery img,.photo-drafts img{width:100%;max-height:240px;object-fit:contain;background:#eef1e8;border-radius:8px}.photo-gallery figcaption{font-size:13px;overflow-wrap:anywhere}.photo-drafts>div{width:min(100%,200px)}.photo-drafts label{margin-top:6px}.record-tag,.animal-name strong{overflow-wrap:anywhere;min-width:0}.record-tag{font-size:clamp(22px,5vw,44px)}button:disabled{opacity:.5}@media(max-width:650px){.herd-tools>.primary,.herd-tools>.secondary{flex:1;font-size:14px;min-height:52px}.herd-tools>.text-link{width:100%}.record-identity{align-items:flex-start}.animal-name{min-width:0}.photo-controls{gap:8px}}.photo-gallery figure>button{display:block;padding:0;width:100%}.photo-viewer{border:0;border-radius:12px;width:min(95vw,900px);max-height:90vh;padding:18px;color:var(--green)}.photo-viewer::backdrop{background:#132a25bb}.photo-viewer img{display:block;max-height:70vh;width:100%;object-fit:contain;margin-top:12px}.management-add{margin:20px 0}.lookup-list{margin-top:20px}.lookup-list .herd-tools{margin:15px 0 0}.medical-fields{margin-top:22px;padding-top:8px;border-top:1px solid var(--border)}.medical-fields>.muted{margin-top:10px}.medical-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.medical-summary dt{font-size:12px;color:var(--muted)}.medical-summary dd{margin:3px 0 0;font-size:15px;overflow-wrap:anywhere}@media(max-width:650px){.herd-tools .secondary{white-space:normal}.medical-summary{grid-template-columns:1fr}}.operation-controls{border:0;padding:0;margin:0;min-width:0}.account-screen{max-width:480px;margin:8vh auto;padding:20px}.account-screen .form-card>button{margin-top:16px;width:100%}.watch-calendar{display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:3px;overflow-x:auto;padding:6px 0}.watch-calendar>span{text-align:center;font-size:12px}.watch-calendar button{min-height:56px;padding:4px;border:1px solid #bac8bf;border-radius:8px;background:#fff;color:#163b2c}.watch-calendar button small{display:block;font-size:11px}.watch-calendar button.selected{background:#163b2c;color:#fff}.watch-expected{border-left:5px solid #245d42}.watch-range,.watch-group{border-left:5px dashed #946b23}.watch-unknown{border-left:5px solid #687383}.bottom-nav a{min-width:0;flex:1}.month-navigation{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:8px;margin-block:16px}.calendar-month{position:relative;min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:700}.calendar-month input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.calendar-month:focus-within{outline:3px solid #b48231;border-radius:9px}.exposure-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center;border-bottom:1px solid var(--border);padding-block:10px}.exposure-row a{font-size:20px;font-weight:750}.exposure-row p{grid-column:1;font-size:13px;color:var(--muted)}.exposure-row button{grid-column:2;grid-row:1 / 3;padding:8px 10px}.exposure-review summary{padding-block:12px}.calving-watch .history-entry{padding:12px;margin-block:10px}.calving-watch .history-entry p{margin-top:6px}@media(max-width:650px){.bottom-nav{position:fixed;inset:auto 0 0;width:100%}.exposure-review{padding:14px}}.entry-mode{display:flex;gap:8px;margin-bottom:16px;border:0;padding:0}.entry-mode button{flex:1;border:1px solid var(--border);background:#fff}.entry-mode button[aria-pressed=true]{background:var(--green);color:#fff}.bulk-tools,.bulk-tags{display:flex;flex-wrap:wrap;gap:8px;margin-block:12px}.bulk-tools button,.bulk-tags button,.bulk-tags span{border:1px solid var(--border);border-radius:8px;padding:8px 12px}.bulk-animal-list{max-height:360px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:4px}.bulk-animal-list label{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px;margin:0;border-bottom:1px solid var(--border)}.bulk-animal-list input{width:24px;height:24px;flex-shrink:0}.bulk-animal-list small{display:block;font-size:12px}.bulk-entry [hidden]{display:none!important}.bulk-notes{white-space:pre-wrap;overflow-wrap:anywhere}.bulk-confirm .bulk-tags{max-height:300px;overflow:auto}.bulk-selection summary{min-height:48px;padding-block:12px}@media(max-width:650px){.bulk-entry .form-actions{flex-wrap:wrap}.bulk-entry .form-actions button{flex:1 1 140px}.bulk-selection{padding:14px}}.manage-users .member-row{border-top:1px solid var(--border, #d5ddd5);padding:1rem 0;display:grid;gap:.65rem}.manage-users strong{overflow-wrap:anywhere}.manage-users button,.manage-users select{min-height:48px}.help-center{width:100%;max-width:850px;margin:0 auto}.help-center label{display:grid;gap:8px;margin:16px 0}.help-results{display:grid;gap:12px}.help-results a{display:grid;gap:6px;padding:16px;border:1px solid var(--border, #d5ddd5);border-radius:12px;min-height:48px}.help-results span{font-size:.9rem}.help-center li{margin-bottom:16px;line-height:1.65}.help-back{display:block;padding:16px 0}.help-note{padding:16px;background:#f4f6ef;border-radius:12px}.account-screen .sign-in-links{display:flex;justify-content:center;margin-top:8px;padding-top:8px}.account-screen .sign-in-links a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px}.account-screen .entry-form>button.primary{margin-top:8px;width:100%}.report-selection{max-height:360px;overflow-y:auto;border:1px solid #ddd;padding:8px}.report-selection label{display:flex;align-items:center;gap:12px;min-height:48px}.report-selection input[type=checkbox]{width:24px;height:24px}.animal-portrait{margin:16px 0}.report-toggle{display:flex;align-items:center;gap:12px;min-height:48px}.report-toggle input[type=checkbox]{width:24px;height:24px;margin:0}.hero{flex-direction:column;align-items:stretch;gap:20px}.home-actions{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%}.home-actions a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 12px;border:1px solid #f5f1dd;border-radius:9px;background:#f5f1dd;color:#244d3c;text-align:center;font-size:13px;font-weight:650}.home-actions a:hover{background:#e5dcc4}.animal-actions{margin:16px 0 22px}.animal-actions>a{display:inline-flex;align-items:center;justify-content:center;min-height:48px}@media(max-width:850px){.home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.home-actions{gap:8px}.home-actions a{font-size:12px;padding:10px 8px}.bottom-nav{bottom:var(--mobile-dock-inset, 0px)}main{padding-bottom:calc(var(--mobile-dock-height, 80px) + var(--mobile-dock-inset, 0px) + 24px + env(safe-area-inset-bottom,0px))}.animal-actions>a,.animal-actions>button{flex:1 1 140px}}.record-card .animal-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 22px}.animal-actions>.secondary{min-height:52px;height:100%;padding:10px 12px;border-radius:9px;white-space:normal;font-weight:600;text-align:center}@media(max-width:650px){.record-card .animal-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.animal-actions>button:last-child,.animal-actions>a:only-child{grid-column:1 / -1}}.deleted-records .action-buttons{flex-wrap:wrap;align-items:center}.deleted-records .action-buttons .checkbox-label{flex:1 1 200px;min-height:44px}.deleted-records .action-buttons button{flex:1 1 160px}.animal-selection-row{display:flex;align-items:center;gap:.75rem}.animal-select>input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;min-height:0;margin:0 0 0 12px;padding:0}.animal-selection-row:not(:last-child){border-bottom:1px solid #e9ede5}.animal-selection-row .animal-row{flex:1;min-width:0}.animals-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(0,1fr));align-items:stretch}.animals-filters .filter-select,.animals-filters select{min-width:0}.animals-filters>.secondary,.animals-filters>.filter-toggle{justify-self:start}@media(max-width:1000px){.animals-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.animals-filters>.search{grid-column:1 / -1}}@media(max-width:650px){.animals-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.animals-filters>select:last-of-type{grid-column:1 / -1}.animals-filters>button{justify-self:stretch}.animals-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px}.animals-tools>button:first-child{grid-column:1 / -1}.animals-tools>.animals-history-action{min-width:0;padding-inline:6px}}.animal-select{display:flex}.animal-select>svg{display:none}@media(max-width:650px){.animal-selection-row{gap:5px}.animal-select{position:relative;display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;margin-left:4px;border:1px solid #ccd5ca;border-radius:9px;background:#f1f4ec;color:var(--green)}.animal-select>input[type=checkbox]{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.animal-select:has(input:focus-visible){outline:3px solid #b48231;outline-offset:-3px}.animal-select:has(input:checked){background:var(--green);color:#fff}.animal-select .animal-select-tag,.animal-select:has(input:checked) .animal-select-check{display:block;pointer-events:none}.animal-select:has(input:checked) .animal-select-tag,.animal-selection-row .tag-tile{display:none}.animal-selection-row .animal-row{display:grid;grid-template-columns:minmax(46px,max-content) minmax(0,1fr) auto;grid-template-areas:"identity place action" "identity place arrow";gap:3px 6px;min-height:68px;padding:9px 7px}.animal-selection-row .animal-name{grid-area:identity;max-width:65px}.animal-selection-row .animal-name strong{font-size:23px}.animal-selection-row .animal-place{display:flex;grid-area:place;gap:3px;min-width:0;padding:0;overflow-wrap:anywhere;line-height:1.2}.animal-selection-row .animal-place strong{font-size:14px;font-weight:700}.animal-selection-row .animal-place>span{align-items:flex-start}.animal-selection-row .animal-action{grid-area:action;justify-self:end}.animal-selection-row .action-badge{gap:2px;padding:3px;letter-spacing:0}.animal-selection-row .animal-row>svg{grid-area:arrow;justify-self:end}.animal-selection-row .animal-row:not(:has(.action-badge))>svg{grid-row:1 / -1}}.animal-bulk-controls>.bulk-review-action{order:1}.animal-bulk-controls>.bulk-archive-action{order:2}@media(max-width:650px){.animal-bulk-controls>.animal-selection-count,.animal-bulk-controls>label{flex:0 0 100%;min-width:0;width:100%}.animal-bulk-controls>label>select{width:100%;min-width:0}.animal-bulk-controls>.bulk-archive-action,.animal-bulk-controls>.bulk-review-action{order:0;flex:1 0 auto;min-height:48px}}@media(max-width:360px){.animal-bulk-controls>.bulk-archive-action,.animal-bulk-controls>.bulk-review-action{flex-basis:100%}}.help-manual{width:min(100%,48rem);margin:auto;padding:1.5rem;background:#fff;color:#172c23}.help-manual nav{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}@media print{body:has(.help-manual) .account-screen{display:block;min-height:0;padding:0;background:#fff}.help-manual{width:auto;padding:0;color:#000;font-size:10pt}.help-manual nav{display:none}.help-manual h2,.help-manual h3{break-after:avoid}.help-manual article{break-inside:avoid}}
