:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;color:var(--accent-text,#202623);background:var(--surface-raised,#f5f5f7);font-synthesis:none;--ink:#202623;--muted:#616965;--line:#dde0df;--paper:#fff;--green:#264d38;--soft:#eef2ef;--gold:#b49b5d}
*{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}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus,#b49447);outline-offset:3px}.skip{position:absolute;left:20px;top:-60px;background:var(--tone-paper,white);padding:15px;z-index:20}.skip:focus{top:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
button{border:0;background:none;color:inherit}svg{width:24px;height:24px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.layout{display:grid;grid-template-columns:244px 1fr;min-height:100vh}.sidebar{background:var(--surface-muted,#eeeeef);color:var(--ink);border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;width:244px;padding:34px 24px;display:flex;flex-direction:column}.brand{text-decoration:none;display:flex;gap:13px;align-items:center;padding-bottom:44px}.brandmark{width:43px;height:43px;border:1px solid var(--tone-line,#c9d2cb);border-radius:12px;display:grid;place-items:center;font-size:23px;font-weight:600;color:var(--green)}.brand strong{font-size:22px;font-weight:600;display:block;letter-spacing:.3px}.brand small{font-size:11px;letter-spacing:2.4px;display:block;margin-top:5px}.sidebar .nav-label{color:var(--muted);font-size:11px;font-weight:600;letter-spacing:1.8px;margin:0 12px 12px}.sidebar nav{display:grid;gap:8px}.sidebar nav a{display:flex;align-items:center;gap:14px;text-decoration:none;padding:15px 14px;border-radius:10px;color:var(--accent-text,#48514c);font-size:16px;min-height:54px}.sidebar nav a.active{background:var(--positive-bg,#dbe5de);color:var(--accent-text,#234a34);font-weight:600}.sidebar nav a:hover{background:var(--surface-muted,#e0e3e1)}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:20px}.person{display:flex;align-items:center;gap:12px}.avatar{width:38px;height:38px;background:var(--positive-bg,#ced8c2);color:var(--accent-text,#20392d);border-radius:50%;display:grid;place-items:center;font-weight:600;font-size:13px}.person span{display:block;font-size:14px}.person small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.main-shell{grid-column:2;min-width:0}.topbar{height:82px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 48px;background:var(--surface-raised,#fafafb);gap:16px}.crumb{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:10px}.crumb strong{font-weight:500;color:var(--ink)}.preview{border:1px solid var(--tone-line,#d5decf);padding:8px 12px;border-radius:5px;color:var(--accent-text,#53624d);font-size:12px;letter-spacing:.2px;white-space:nowrap}.topbar-right{display:flex;align-items:center;gap:20px}.status-dot{height:7px;width:7px;background:var(--positive-bg,#819a65);border-radius:50%;display:inline-block;margin-right:7px}.workspace{max-width:1240px;margin:auto;padding:40px 48px 48px}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:600;color:var(--accent-text,#788668);text-transform:uppercase;margin:0 0 10px}.page-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:30px}h1{font-size:34px;letter-spacing:-1px;font-weight:600;margin:0 0 10px;line-height:1.2}h2{font-size:20px;letter-spacing:-.3px;margin:0;font-weight:600}h3{font-size:18px;margin:0 0 8px}p{line-height:1.55;margin:0 0 16px}.subtitle{color:var(--muted);font-size:16px;margin:0}.quiet{color:var(--muted)}.small{font-size:13px}.date-stamp{font-size:13px;color:var(--muted);padding-top:13px}.home-columns{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:30px}.section-header{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px;gap:12px}.text-link{color:var(--accent-text,#3b6240);font-size:14px;font-weight:500;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;gap:7px}.text-link svg{width:17px;height:17px}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.action{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:21px 23px;text-align:left;min-height:117px;display:flex;align-items:center;gap:18px;transition:background .12s,border-color .12s;text-decoration:none}.action:hover{border-color:var(--tone-line,#91aa83);background:var(--surface-raised,#fbfcf9)}.action strong{display:block;font-weight:600;font-size:17px;margin-bottom:6px}.action small{font-size:13px;display:block;color:var(--muted);line-height:1.4}.action .action-icon{color:var(--accent-text,#4c6c43);width:42px;height:42px;background:var(--surface-muted,#f0f4ec);display:grid;place-items:center;border-radius:9px;flex-shrink:0}.action.primary{background:var(--action-bg,#294d37);color:var(--on-action,#fff);border-color:var(--tone-line,#294d37)}.action.primary small{color:var(--tone-muted,#d3dece)}.action.primary .action-icon{background:var(--action-bg,#3d6048);color:var(--tone-muted,#f3f5e9)}.action.primary:hover{background:var(--action-bg,#315c42)}.action .chevron{margin-left:auto;color:var(--accent-text,#92a087);width:17px}.recent-section{margin-top:34px}.animal-list{background:var(--tone-paper,white);border:1px solid var(--line);border-radius:10px;overflow:hidden}.animal-row{display:flex;width:100%;align-items:center;gap:15px;padding:16px 18px;text-decoration:none;border-bottom:1px solid var(--tone-line,#e7ebe4);min-height:84px;text-align:left}.animal-row:last-child{border-bottom:0}.animal-row:hover{background:var(--surface-raised,#f7faf3)}.tag-tile{background:var(--surface-muted,#eff2e9);border:1px solid var(--tone-line,#e2e7d9);min-width:50px;height:48px;border-radius:8px;display:grid;place-items:center;font-size:16px;font-weight:600;color:var(--accent-text,#516842)}.animal-row strong{font-size:16px;font-weight:600;display:block;margin-bottom:6px}.animal-row small{font-size:13px;color:var(--muted)}.row-main{min-width:0;flex:1}.row-main strong,.row-main small{overflow-wrap:anywhere}.row-meta{font-size:12px;color:var(--muted);text-align:right}.row-meta svg{width:17px}.aside-panel{background:var(--surface-muted,#f0f2f1);border:1px solid var(--line);border-radius:10px;padding:24px}.aside-panel h2{font-size:18px;margin:10px 0}.aside-panel p{font-size:14px;color:var(--accent-text,#5f7056)}.aside-panel .source-line{font-size:12px;color:var(--accent-text,#54694d);margin-top:15px}.aside-panel .subtle-label{font-size:10px;letter-spacing:1.5px;color:var(--accent-text,#758560)}.aside-panel svg{color:var(--accent-text,#617955)}.aside-rule{border-top:1px solid var(--tone-line,#d8e1cc);margin:18px 0}.count-line{display:flex;justify-content:space-between;align-items:center;margin:15px 0;font-size:14px}.count-line strong{font-size:20px;font-weight:500}.aside-note{font-size:13px;color:var(--accent-text,#6d785f);padding:22px 3px}.aside-note strong{display:block;color:var(--accent-text,#43523b);margin-bottom:8px}.task-item{padding:18px 0;border-bottom:1px solid var(--line)}.task-item:last-child{border:0}.task-item a{display:block;text-decoration:none;font-size:15px;font-weight:500;margin-bottom:7px}.task-item small{font-size:12px;color:var(--muted)}.footer-note{margin-top:35px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--accent-text,#7a8474);font-size:12px}.footer-note button{font-size:12px;text-decoration:underline;color:var(--accent-text,#617357);padding:0}.mobile-nav{display:none}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--tone-paper,#fff);border:1px solid var(--tone-line,#ced8c7);border-radius:8px;padding:13px 20px;min-height:54px;font-size:16px;font-weight:500;text-decoration:none}.button.primary{background:var(--action-bg,var(--green));border-color:var(--green);color:var(--on-action,#fff)}.button:hover{filter:brightness(.97)}.button.danger{color:var(--danger-text,#9c3c30);border-color:var(--tone-line,#ddb7af)}.button svg{width:20px}.back-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--muted);text-decoration:none;font-size:14px;margin-bottom:20px}.back-link svg{width:18px}.searchbox{display:flex;align-items:center;gap:12px;background:var(--tone-paper,white);border:1px solid var(--tone-line,#bacab3);padding:0 18px;border-radius:9px;min-height:60px;max-width:100%;margin:20px 0}.searchbox svg{color:var(--accent-text,#69805b)}.searchbox input{border:0;background:none;outline:none!important;width:100%;padding:18px 0;font-size:18px;color:var(--ink)}.searchbox:focus-within{outline:3px solid var(--focus,#b49447);outline-offset:3px}.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.chip{border:1px solid var(--tone-line,#dbe2d6);border-radius:6px;padding:10px 17px;min-height:44px;background:var(--tone-paper,white);font-size:14px}.chip.active{color:var(--on-action,#fff);background:var(--action-bg,#38533a);border-color:var(--tone-line,#38533a)}.result-count{font-size:14px;color:var(--muted);margin:16px 0}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:20px;gap:12px}.empty{text-align:center;padding:40px 20px;color:var(--muted)}.empty svg{width:42px;height:42px;margin-bottom:20px}.empty h2{color:var(--ink);margin-bottom:12px}.profile-heading{display:flex;gap:22px;align-items:center;margin-bottom:28px}.profile-tag{height:88px;min-width:88px;background:var(--positive-bg,#e5ecd9);color:var(--accent-text,#466239);border-radius:16px;display:grid;place-items:center;font:36px Georgia,serif}.profile-heading h1{margin:5px 0 8px}.badge{display:inline-block;padding:5px 9px;border-radius:4px;background:var(--positive-bg,#edf2e6);color:var(--accent-text,#4c633e);font-size:12px;font-weight:500}.badge.warn{background:var(--surface-muted,#f6edda);color:var(--warning-text,#805c22)}.profile-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:30px}.facts{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:23px 0;gap:16px;margin:24px 0}.facts dt{font-size:12px;color:var(--muted);margin-bottom:8px}.facts dd{margin:0;font-size:16px;font-weight:500}.profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:30px}.profile-actions .button{font-size:14px;padding:12px 16px}.timeline{padding-top:3px}.timeline-item{display:grid;grid-template-columns:35px 1fr;gap:13px;position:relative;padding-bottom:27px}.timeline-icon{background:var(--positive-bg,#edf2e7);border:1px solid var(--tone-line,#dfe7d8);border-radius:50%;height:34px;width:34px;display:grid;place-items:center;z-index:1}.timeline-icon svg{width:17px;height:17px}.timeline-item:not(:last-child):after{content:'';position:absolute;left:16px;top:34px;bottom:0;border-left:1px solid var(--tone-line,#dbe3d3)}.timeline-item h3{font-size:15px;margin:3px 0 7px}.timeline-item p{font-size:14px;color:var(--muted);margin:0 0 8px;overflow-wrap:anywhere}.timeline-item small{font-size:11px;color:var(--accent-text,#7a8475)}.form-layout{max-width:790px}.form-card{background:var(--tone-paper,white);border:1px solid var(--line);border-radius:12px;overflow:hidden}.animal-context{display:flex;align-items:center;gap:15px;padding:22px 28px;background:var(--surface-muted,#f1f4ec);border-bottom:1px solid var(--tone-line,#dfe7d7)}.animal-context strong{display:block;margin-bottom:5px}.animal-context small{display:block;font-size:13px;color:var(--accent-text,#647359)}.animal-context .text-link{margin-left:auto}.form-body{padding:28px}.form-intro{font-size:14px;color:var(--muted);padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid var(--line)}.field{margin:0 0 24px;display:block;font-size:16px;font-weight:500}.field small{display:block;font-size:13px;font-weight:400;color:var(--muted);margin:8px 0}.field input,.field select,.field textarea{display:block;width:100%;border:1px solid var(--tone-line,#c8d3c0);border-radius:7px;padding:15px 16px;margin-top:10px;color:var(--ink);background:var(--tone-paper,white);font-size:18px;min-height:56px}.field textarea{resize:vertical;min-height:100px}.field input.big-number{font-size:36px;min-height:86px}.field input:invalid:not(:placeholder-shown){box-shadow:none}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.choice-field{border:0;padding:0;margin:0 0 24px}.choice-field legend{font-size:16px;font-weight:500;margin-bottom:12px}.choices{display:flex;gap:10px;flex-wrap:wrap}.choices label{position:relative;flex:1;min-width:100px}.choices input{position:absolute;opacity:0;width:1px;height:1px}.choices span{display:flex;align-items:center;justify-content:center;min-height:58px;border:1px solid var(--tone-line,#c8d3c0);border-radius:7px;font-size:17px;cursor:pointer;background:var(--tone-paper,white)}.choices input:checked+span{background:var(--positive-bg,#e9f0df);color:var(--accent-text,#284a2f);border:2px solid var(--tone-line,#5a7945);font-weight:600}.choices input:focus-visible+span{outline:3px solid var(--focus,#b49447);outline-offset:3px}.form-actions{padding:22px 28px;background:var(--surface-raised,#fafbf7);border-top:1px solid var(--line);display:flex;gap:12px;align-items:center;flex-wrap:wrap}.form-actions .primary{margin-left:auto}.form-actions .button{min-height:58px}.form-card details{border-top:1px solid var(--line);padding-top:20px;margin-top:8px}.form-card summary{cursor:pointer;min-height:44px;color:var(--accent-text,#49633e);font-size:15px}.callout{background:var(--surface-muted,#f7f1e2);color:var(--warning-text,#715726);padding:16px 18px;border:1px solid var(--tone-line,#e6dabc);border-radius:7px;font-size:14px;line-height:1.5;margin-bottom:22px}.error{color:var(--danger-text,#8d3129);background:var(--surface-raised,#fff0eb);border:1px solid var(--tone-line,#ebc5ba);border-radius:7px;padding:16px;margin-bottom:20px;font-size:16px}.success{max-width:640px;margin:35px auto;background:var(--tone-paper,white);border:1px solid var(--line);padding:44px;border-radius:12px;text-align:center}.success-icon{width:60px;height:60px;background:var(--positive-bg,#e8f0df);color:var(--accent-text,#52753b);border-radius:50%;display:grid;place-items:center;margin:0 auto 25px}.success h1{font-size:28px}.success .saved-detail{padding:20px;background:var(--surface-muted,#f6f8f1);border-radius:7px;margin:25px 0;text-align:left;font-size:16px;line-height:1.7;overflow-wrap:anywhere}.success .button{margin:6px}.location-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.location-card{background:var(--tone-paper,white);border:1px solid var(--line);border-radius:10px;padding:25px}.location-card svg{color:var(--accent-text,#66834d);margin-bottom:18px}.location-card h2{font-size:18px;margin-bottom:12px}.source-block{border-top:1px solid var(--line);margin-top:20px;padding-top:15px;font-size:12px;line-height:1.8;color:var(--muted)}.task-list{max-width:760px}.task-row{background:var(--tone-paper,white);border:1px solid var(--line);border-radius:10px;padding:23px;display:flex;gap:18px;align-items:center;margin-bottom:12px}.task-row input{width:24px;height:24px;accent-color:var(--green);flex-shrink:0}.task-row label{flex:1;font-size:17px}.task-row small{font-size:14px;color:var(--muted);display:block;margin-top:7px}.task-row:has(input:checked) label{text-decoration:line-through;color:var(--muted)}.storage-warning{margin:0 0 20px}.section-space{margin-top:30px}.reset-panel{max-width:600px;background:var(--tone-paper,white);padding:30px;border:1px solid var(--line);border-radius:10px}
@media(min-width:1450px){.workspace{padding-top:48px}.action{min-height:129px}}@media(max-width:1180px){.sidebar{width:210px;padding:30px 18px}.layout{grid-template-columns:210px 1fr}.topbar{padding:0 30px}.workspace{padding:32px 30px}.home-columns,.profile-grid{grid-template-columns:minmax(0,1fr) 245px;gap:22px}.action{padding:20px 16px;gap:12px}.action .chevron{display:none}.action small{font-size:12px}.action strong{font-size:16px}.brand strong{font-size:20px}.brandmark{width:38px;height:38px}.aside-panel{padding:20px}.topbar-right .quiet{display:none}}
@media(max-width:980px){.home-columns,.profile-grid{grid-template-columns:1fr}.home-aside{display:grid;grid-template-columns:1fr 1fr;gap:22px}.aside-note{display:none}.location-grid{grid-template-columns:1fr}.action small{font-size:14px}.action strong{font-size:18px}.action{min-height:112px}.facts{grid-template-columns:1fr 1fr}.date-stamp{display:none}}
@media(max-width:700px){.layout{display:block}.sidebar{display:none}.topbar{height:72px;padding:0 20px}.crumb{font-family:inherit;font-size:19px;font-weight:600}.crumb svg,.crumb .crumb-parent,.crumb .separator{display:none}.preview{font-size:11px;padding:7px 9px}.workspace{padding:28px 20px 106px}h1{font-size:30px}.page-heading{margin-bottom:26px}.eyebrow{font-size:11px}.subtitle{font-size:16px}.home-aside{display:block}.home-aside .section-space{margin:24px 0}.home-columns{gap:28px}.action-grid{gap:12px}.action{flex-direction:column;align-items:flex-start;padding:20px;gap:13px;min-height:156px}.action small{font-size:13px}.action strong{font-size:18px}.action .action-icon{height:36px;width:36px}.action.primary{grid-column:1/-1;flex-direction:row;align-items:center;min-height:90px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--surface-raised,#fafafb);border-top:1px solid var(--line);padding:10px 14px max(10px,env(safe-area-inset-bottom));justify-content:space-around;z-index:5}.mobile-nav a{flex:1;min-width:0!important;color:var(--accent-text,#697860);text-decoration:none;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:64px;min-height:48px;font-size:12px}.mobile-nav a.active{color:var(--accent-text,#264d38);font-weight:600}.row-meta .badge{display:none}.animal-row{min-height:88px;padding:17px 15px}.animal-row strong{font-size:18px}.animal-row small{font-size:14px}.footer-note{font-size:12px}.profile-tag{height:72px;min-width:72px;font-size:30px}.profile-heading{gap:16px}.profile-heading h1{font-size:28px}.profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.profile-actions .button{font-size:16px;min-height:58px}.form-body{padding:23px 20px}.animal-context{padding:20px;gap:12px}.animal-context .text-link{font-size:13px}.animal-context small{font-size:13px}.form-two{grid-template-columns:1fr;gap:0}.form-actions{padding:20px;display:grid;grid-template-columns:1fr 1fr}.form-actions .primary{margin:0;grid-column:1/-1;grid-row:1;min-height:64px;font-size:18px}.form-actions .secondary-save{grid-column:2}.field{font-size:18px}.field small{font-size:14px}.timeline-item h3{font-size:17px}.timeline-item p{font-size:16px}.timeline-item small{font-size:13px}.choices label{min-width:80px}.choices span{font-size:16px}.facts dt{font-size:14px}.facts dd{font-size:18px}.success{padding:30px 22px;margin:10px 0}.success .button{display:flex;margin:12px 0}.task-row{padding:18px;flex-wrap:wrap}.task-row .text-link{margin-left:42px}.topbar-right{gap:8px}.location-card h2{font-size:21px}.source-block{font-size:14px}.small{font-size:14px}.aside-panel p{font-size:16px}.aside-panel .source-line{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}@media(max-width:350px){.workspace{padding-left:14px;padding-right:14px}.action{padding:16px}.action strong{font-size:17px}.topbar{padding:0 14px}.preview{font-size:10px}.crumb{font-size:19px}.animal-context{flex-wrap:wrap}}

.table-scroll{overflow-x:auto} .table-scroll table{width:100%;border-collapse:collapse;text-align:left} .table-scroll th,.table-scroll td{padding:12px;border-bottom:1px solid var(--tone-line,#d4ddd5);white-space:nowrap} #bulk-error,#identity-error,#bulk-save-error{color:var(--danger-text,#9b2929)}

.animal-filters{margin:12px 0 20px}.animal-filters>summary{cursor:pointer;min-height:48px;padding:13px 17px;width:fit-content;background:var(--tone-paper,white);border:1px solid var(--line);border-radius:8px;font-weight:600}.animal-filters[open]>summary{margin-bottom:16px}.animal-filters .aside-panel{margin-top:12px}[hidden]{display:none!important}
.filter-toolbar{display:flex;align-items:center;gap:20px;margin:14px 0}.filter-toolbar .text-link{min-height:48px}.profile-action-bar{margin:20px 0 28px}.dialog-panel{border:1px solid var(--line);border-radius:16px;padding:24px;width:min(600px,calc(100vw - 32px));max-height:88dvh;overflow-y:auto;color:var(--ink);background:var(--paper)}.dialog-panel::backdrop{background:var(--backdrop,#14281f80)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.dialog-heading h2{margin:0;font-size:24px}.dialog-heading p{margin:6px 0 0}.dialog-footer{display:flex;justify-content:space-between;gap:12px;position:sticky;bottom:-24px;background:var(--tone-paper,white);padding:20px 0 4px;margin-top:16px;border-top:1px solid var(--line)}.filter-group{border-top:1px solid var(--line);padding:0}.filter-group>summary{cursor:pointer;min-height:60px;padding:19px 0;font-size:18px;font-weight:600}.filter-group .form-two{padding-top:10px}.action-menu-group h3{font-size:14px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:24px 0 8px}.action-menu-link{display:flex;align-items:center;gap:14px;min-height:56px;padding:13px 2px;border-bottom:1px solid var(--line);text-decoration:none;font-size:17px}.action-menu-link span{flex:1}.action-menu-link:hover{background:var(--soft)}body:has(dialog[open]){overflow:hidden}@media(max-width:700px){.dialog-panel{width:100%;max-width:100%;max-height:92dvh;margin:auto 0 0;border-radius:20px 20px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom))}.dialog-footer{bottom:-22px;padding-bottom:env(safe-area-inset-bottom)}.profile-action-bar>.button{width:100%;min-height:58px}.dialog-heading .button{min-height:48px}.action-menu-link{font-size:18px;min-height:60px}}

.history-selector{max-width:260px;margin:12px 0 24px}.dialog-heading{position:sticky;top:-24px;background:var(--tone-paper,white);z-index:2;padding-top:12px;padding-bottom:12px}@media(max-width:700px){.dialog-heading{top:-22px}}

.profile-action-bar{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.file-add{margin:20px 0}.file-add>summary{width:fit-content;cursor:pointer}.file-add[open]>summary{margin-bottom:18px}.file-row{display:flex;align-items:flex-start;gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}.file-row h2{font-size:19px;overflow-wrap:anywhere}.file-row p{line-height:1.5}.file-row>div{min-width:0;flex:1}.file-thumbnail{width:120px;height:100px;object-fit:cover;border-radius:8px}.file-row summary{cursor:pointer;padding:14px 0;min-height:48px}.archived-file{background:var(--surface-muted,#f0f1ed)}.file-row details form{max-width:400px}#file-error{color:var(--danger-text,#8d3129)}@media(max-width:700px){.file-thumbnail{width:82px;height:82px}.file-row{gap:14px}.profile-action-bar{gap:16px}}

#treatment-batch .check-label{display:flex;align-items:center;gap:12px;min-height:48px;margin:12px 0;line-height:1.5;cursor:pointer}
#treatment-batch .check-label[hidden]{display:none}
#treatment-batch .check-label input{width:22px;height:22px;flex-shrink:0;accent-color:var(--tone-line,#294d37)}
#treatment-batch .form-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#treatment-batch [data-batch-member] h3{margin-bottom:16px}
#treatment-batch [data-individual]{padding-top:16px}
@media(max-width:640px){#treatment-batch .form-row{grid-template-columns:1fr;gap:0}}

.report-animal{border-bottom:1px solid var(--line)}
.report-animal:last-child{border-bottom:0}
.report-animal .animal-row{border-bottom:0}
.report-animal-details{padding:0 20px 20px}
.report-animal-details details{margin-top:12px}
.report-animal-details summary{min-height:44px;cursor:pointer;line-height:1.6}

#sire-review-form .sire-confirm{display:flex;align-items:flex-start;gap:12px;min-height:44px;cursor:pointer}#sire-review-form .sire-confirm[hidden]{display:none}#sire-review-form .sire-confirm input{width:24px;height:24px;min-height:24px;flex:0 0 24px;margin:2px 0 0;padding:0;accent-color:var(--green)}

.female-table-scroll{overflow:auto;max-width:100%;margin-top:1rem}.female-management-table{border-collapse:collapse;white-space:nowrap}.female-management-table th,.female-management-table td{padding:1rem;text-align:left;border-bottom:1px solid var(--tone-line,var(--tone-line,#d8ded6))}.female-management-table th{background:var(--surface-muted,#eef1e8)}.female-mobile-list{display:none}@media(max-width:700px){.female-table-scroll{display:none}.female-mobile-list{display:block}}

/* Report controls stay optional; printing contains the complete reviewed report. */
.female-column-order{list-style:none;margin:0;padding:0}.female-column-order li{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border,var(--tone-line,#d8dfd4))}.female-column-order li>div{display:flex;gap:5px;flex-shrink:0}.female-column-order button{min-width:44px;min-height:44px;padding:8px}
#female-print-dialog{width:min(960px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:90vh;padding:24px;border:1px solid var(--tone-line,#c7d0c2);border-radius:12px;color:var(--accent-text,#243b30);background:var(--tone-paper,#fff);box-sizing:border-box}
#female-print-dialog::backdrop{background:rgba(20,38,27,.65)}.female-print-actions{padding-bottom:20px;border-bottom:1px solid var(--tone-line,#c7d0c2)}.female-print-report{font-family:Arial,sans-serif;font-size:12pt;line-height:1.4;overflow-wrap:anywhere}.female-print-report h1{font-size:24pt}.female-print-report h2{font-size:18pt;margin:0 0 8px}.female-print-report h3{font-size:13pt}.female-print-context,.female-print-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}.female-print-context>div,.female-print-fields>div{padding:5px 0;border-bottom:1px solid var(--tone-line,#e1e6df)}.female-print-report dt{font-weight:bold;font-size:10pt}.female-print-report dd{margin:0}.female-print-animal{margin-top:24px;padding:20px 0;border-top:2px solid var(--tone-line,#294b3b)}.female-print-source{font-size:10pt;color:var(--accent-text,#49564d)}.female-print-writing p{min-height:35px}.female-print-context{font-size:10pt}.female-print-why{font-size:10pt}
@media(max-width:600px){.female-column-order li{align-items:flex-start;flex-direction:column}.female-print-context,.female-print-fields{grid-template-columns:1fr}#female-print-dialog{padding:16px}.female-print-actions .button{margin-bottom:8px}}
@media print{
 @page{size:A4 portrait;margin:14mm}
 body:has(#female-print-dialog[open])>*:not(#female-print-dialog){display:none!important}
 body:has(#female-print-dialog[open]),html:has(#female-print-dialog[open]){overflow:visible!important;height:auto!important;background:white!important}
 #female-print-dialog[open]{display:block!important;position:static!important;inset:auto!important;overflow:visible!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
 #female-print-dialog::backdrop,.female-print-actions{display:none!important}
 .female-print-report{font-size:10pt;line-height:1.3;color:#000}.female-print-report h1{font-size:20pt}.female-print-report h2{font-size:15pt}.female-print-report h2,.female-print-report h3{break-after:avoid;page-break-after:avoid}.female-print-context,.female-print-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.female-print-report header{break-after:page}.female-print-animal{break-inside:avoid}.female-print-report dt{font-size:9pt}.female-print-source,.female-print-why{font-size:9pt}.female-print-context{font-size:9pt}
}
.female-print-field-table{overflow-x:auto}.female-print-field-table table{border-collapse:collapse;width:100%;min-width:900px;table-layout:fixed;font-size:10pt}.female-print-field-table th,.female-print-field-table td{border:1px solid var(--tone-line,#9ba99d);padding:7px;text-align:left;vertical-align:top;overflow-wrap:anywhere}.female-print-field-table th{background:var(--positive-bg,#edf2e9)}.female-print-field-table td{height:64px}.female-print-field-table small{display:block;font-size:8pt;margin-top:6px}.female-print-field-table th:nth-child(4),.female-print-field-table th:nth-child(5){width:5%}.female-print-field-table th:nth-child(8){width:18%}.female-print-field-table th:nth-child(10){width:16%}.female-print-source-appendix{margin-top:30px;font-size:9pt}
@media print{
 @page female-field{size:A4 landscape;margin:12mm}
 html:has(#female-print-dialog .female-print-field),body:has(#female-print-dialog .female-print-field),#female-print-dialog:has(.female-print-field),.female-print-field{page:female-field}.female-print-field header{break-after:auto}.female-print-field .female-print-context{grid-template-columns:repeat(3,minmax(0,1fr));font-size:8pt}.female-print-field-table{overflow:visible}.female-print-field-table table{min-width:0;font-size:9pt}.female-print-field-table thead{display:table-header-group}.female-print-field-table tr{break-inside:avoid}.female-print-source-appendix{break-before:page}.female-print-field-table td{height:48px}
 .female-print-field-table th:nth-child(1),.female-print-field-table th:nth-child(9){width:8%}.female-print-field-table th:nth-child(2),.female-print-field-table th:nth-child(3){width:12%}.female-print-field-table th:nth-child(4),.female-print-field-table th:nth-child(5){width:6%}.female-print-field-table th:nth-child(6),.female-print-field-table th:nth-child(7){width:7%}.female-print-field-table th:nth-child(8){width:14%}.female-print-field-table th:nth-child(10){width:10%}
}
.herd-report-links a{display:block;padding:18px 0;border-bottom:1px solid var(--tone-line,#d7dfd1);color:inherit;text-decoration:none}.herd-report-links a:last-child{border-bottom:0}.herd-report-links strong{display:block;font-size:1.05rem;color:var(--accent-text,#294b3b)}.herd-report-links span{display:block;margin-top:7px;color:var(--accent-text,#58655b);line-height:1.5}.herd-report-links a:focus-visible{outline:3px solid var(--focus,#668d70);outline-offset:3px}.herd-report-links a:hover strong{text-decoration:underline}

/* Make the parentage confirmation easy to tap on cattle-side forms. */
#maternal-parentage-form .check-option, [data-calf-parentage] .check-option { display:flex; align-items:flex-start; gap:12px; min-height:48px; padding:12px 0; cursor:pointer; }
#maternal-parentage-form .check-option input, [data-calf-parentage] .check-option input { flex:0 0 24px; width:24px; height:24px; margin:0; }

/* Animal facts and identity lead; location and compact genetics follow. */
.profile-overview,.profile-secondary{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;margin:24px 0;align-items:start}.profile-overview>section{padding:24px;background:var(--tone-paper,#fff);border:1px solid var(--tone-line,#d7dfd1);border-radius:12px;min-width:0}.profile-overview h2,.profile-secondary h2{margin-top:0}.profile-secondary>.aside-panel{margin:0;min-width:0}.profile-identification{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-identification h2,.profile-identification>details,.profile-identification>a{grid-column:1/-1}.profile-identification p{margin:0}.genetics-quick-facts{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px;margin:20px 0}.genetics-quick-facts dt{font-size:.9rem;color:var(--accent-text,#58655b)}.genetics-quick-facts dd{margin:5px 0 0;font-size:1.4rem;font-weight:650;color:var(--accent-text,#294b3b)}.genetics-deep-dive summary{min-height:48px;padding:12px 0;color:var(--accent-text,#294b3b);font-weight:600}.untagged-notice{padding:16px 20px;border:1px solid var(--tone-line,#d7dfd1);border-radius:12px;background:var(--surface-muted,#f5f7ed)}.untagged-notice p{margin-top:0}.profile-overview .facts{margin:0}.profile-overview .facts dd{overflow-wrap:anywhere}
@media(max-width:700px){.profile-overview,.profile-secondary{grid-template-columns:1fr;gap:16px;margin:20px 0}.profile-overview>section{padding:20px}.profile-identification{gap:16px}.genetics-quick-facts dd{font-size:1.25rem}}

/* The profile has no location panel; genetics uses the full available row. */
.profile-secondary{grid-template-columns:minmax(0,1fr)}
@media(min-width:701px){.genetics-quick-facts{grid-template-columns:repeat(4,minmax(0,1fr))}}

.animal-toolbar{gap:8px;flex-wrap:wrap}.animal-toolbar>.button{padding-left:16px;padding-right:16px}.animal-toolbar #clear-visible-filters{margin-left:8px}#animal-options-dialog button.action-menu-link{width:100%;text-align:left}

#preg-estimate-fields{border:0;padding:0;margin:0;min-width:0}
.birth-loss-fields{border:0;padding:0;margin:0;min-width:0}

/* Secondary navigation needs the same usable touch area as primary actions. */
.task-item a{display:flex;align-items:center;min-height:44px}
.footer-note a,.footer-note button{display:inline-flex;align-items:center;min-height:44px}
.button:disabled{background:var(--surface-muted,#e8ece4);border-color:var(--tone-line,#d5dccf);color:var(--accent-text,#626e5b);cursor:not-allowed;filter:none}
.female-print-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.female-print-actions p{flex-basis:100%;margin:0}
@media(max-width:700px){
 .task-row{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:12px}
 .task-row input{margin:4px 0 0}
 .task-row label{min-height:44px}
 .task-row .text-link{grid-column:2;margin-left:0;justify-self:start}
}
#twin-fields{min-width:0;margin:0 0 20px;padding:16px;border:1px solid var(--line);border-radius:10px}
#twin-fields>legend{padding:0 6px;font-weight:600}
@media(max-width:420px){
 #record-form .form-actions .secondary-save{grid-column:1/-1;grid-row:2}
 #record-form .form-actions>a{grid-column:1/-1;grid-row:3}
}

/* Keep the primary profile cards balanced and their label/value rows aligned. */
.profile-overview{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.profile-overview h2{margin-bottom:20px}
.profile-overview .facts{grid-template-columns:repeat(2,minmax(0,1fr));border:0;padding:0;gap:8px 20px}
.profile-overview .facts>div{display:grid;grid-template-rows:subgrid;grid-row:span 2;padding-bottom:12px}
.profile-overview .facts dt{margin:0}
.profile-overview .facts dd small{display:block;font-size:13px;font-weight:400;color:var(--muted);margin-top:4px}
.profile-identification{align-content:start}
.profile-identification h2{margin-bottom:8px}
.profile-heading>div:last-child{min-width:0;overflow-wrap:anywhere}
.profile-tag.long-tag{flex:0 0 112px;min-width:0;height:auto;min-height:88px;padding:12px;font-size:18px;line-height:1.3;text-align:center;overflow-wrap:anywhere}
@media(max-width:700px){.profile-tag.long-tag{display:none}}
@media(max-width:700px){.profile-overview{grid-template-columns:1fr}}

/* Owner tables retain row identity and readable source context while scrolling. */
@media screen and (min-width:701px){
 .female-table-scroll{max-height:65vh;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
 .female-table-scroll:focus-visible{outline:3px solid var(--focus,#b49447);outline-offset:3px}
 .female-management-table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
 .female-management-table th,.female-management-table td{min-width:140px;white-space:nowrap;padding:12px 16px;line-height:1.45;vertical-align:top;background:var(--paper)}
 .female-management-table th{position:sticky;top:0;z-index:2;background:var(--surface-muted,#f0f2f1);font-size:13px}
 .female-management-table [data-column=tested]{min-width:280px;max-width:320px;white-space:normal;overflow-wrap:anywhere}
 .female-management-table th .text-link{color:var(--ink);text-align:left;margin:0}
 .female-management-table th[aria-sort=ascending] button::after{content:' ↑'}
 .female-management-table th[aria-sort=descending] button::after{content:' ↓'}
 .female-management-table [data-column=tag]{position:sticky;left:0;z-index:1;box-shadow:1px 0 var(--line);min-width:120px;max-width:180px;font-weight:600;white-space:normal;overflow-wrap:anywhere}
 .female-management-table th[data-column=tag]{z-index:3}
 .female-management-table td small{display:block;min-width:220px;max-width:300px;color:var(--muted);font-size:13px;line-height:1.45}
 .female-management-table tbody tr:hover td{background:var(--surface-raised,#f5f7f5)}
}

/* Current reproductive state stays readable beside identity on desktop and in the field. */
.animal-row .current-reproduction{display:block;margin-top:4px;color:var(--ink)}

/* Task 16: field hierarchy, disclosure focus and narrow-screen resilience. */
.more-field-tasks{margin:16px 0 24px;border-bottom:1px solid var(--line)}
.more-field-tasks>summary{padding:14px 0;min-height:48px;cursor:pointer;font-weight:600}
.field-task-links{padding:4px 0 12px}.field-task-links .action{border:0;border-radius:0;background:transparent;min-height:64px;padding:12px 0;box-shadow:none}
summary:focus-visible{outline:3px solid var(--focus,#b49447);outline-offset:3px;border-radius:4px}
.subtitle:empty{display:none}
.form-card fieldset{min-width:0}.animal-context>div{min-width:0;overflow-wrap:anywhere}
.animal-context .tag-tile{max-width:32%;overflow-wrap:anywhere;height:auto;min-height:48px;padding:8px}
.field select{min-width:0;max-width:100%}
@media(max-width:700px){
 .field-actions .action:not(.primary){min-height:120px;padding:16px;gap:12px}
 .field-actions .action:not(.primary) .action-icon{display:none}
 .field-actions .action strong{font-size:17px;line-height:1.3}
 .field-actions .action small{font-size:14px;line-height:1.4}
 .field-task-links .action{flex-direction:row;align-items:center}.field-task-links .action-icon{flex:none}
 .field-task-links .action>span:nth-child(2){flex:1;min-width:0}
 .form-layout .page-heading{margin-bottom:22px}
 .form-layout .animal-context .text-link{min-height:44px;display:flex;align-items:center}
 .choices span{padding:10px 8px;overflow-wrap:anywhere}
}

summary{min-height:44px;padding-top:12px;padding-bottom:12px;cursor:pointer}
.field-actions .action.primary{grid-column:1/-1}
.profile-identification strong{overflow-wrap:anywhere}
@media(min-width:701px) and (max-width:1000px){.profile-overview,.profile-secondary{grid-template-columns:1fr}}

/* Task 17: owner summaries use readable figures and disclosed supporting context. */
.genetics-overview .facts{gap:20px 24px}
.genetics-overview .facts dt{font-size:13px;line-height:1.45}
.genetics-overview .facts dd{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;margin-top:6px}
.dashboard-detail{border-top:1px solid var(--line);margin-top:16px}
.dashboard-detail>summary{font-weight:600;padding:16px 0;line-height:1.5}
#genemax-filters{margin-top:24px}
@media(max-width:700px){.genetics-overview .facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}.genetics-overview .facts dd{font-size:22px}}
/* Wrapped owner actions remain distinct on narrow screens. */
.workspace>p:has(>.button){display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.workspace form>p:has(>.button){display:flex;flex-wrap:wrap;gap:10px;align-items:center}
#female-saved-panel,#female-management-form>details.aside-panel{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 8px;margin:16px 0}
#female-management-form>details.aside-panel+p{margin-top:16px}

/* Owner follow-up 1: four quiet entry points, attention before recent history. */
.home-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:32px}
.home-column{display:flex;flex-direction:column;gap:32px;min-width:0}
.home-start{grid-area:start}.home-attention{grid-area:attention}.home-recent{grid-area:recent}.home-summary{grid-area:summary}
.home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.home-actions .action{min-height:104px;padding:18px;text-align:left;font:inherit}.home-actions .action.primary{grid-column:auto}
.home-actions .action strong{font-size:17px}.home-actions .action small{font-size:13px;line-height:1.45}.home-work-links{display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:12px}.home-work-links a{display:inline-flex;align-items:center;min-height:44px}
.home-summary{border-top:1px solid var(--line);padding-top:20px}.home-summary h2{font-size:16px}.home-summary p{line-height:1.8;color:var(--muted)}.home-summary strong{color:var(--ink);font-variant-numeric:tabular-nums}
@media(max-width:980px){.home-column{display:contents}.home-layout{grid-template-columns:1fr;grid-template-areas:"start" "attention" "recent" "summary";gap:28px}}
@media(max-width:700px){.home-actions .action{min-height:114px;padding:16px;align-items:flex-start;flex-direction:column;gap:10px}.home-actions .action strong{font-size:16px}.home-actions .action-icon{width:28px;height:28px}.home-actions .action .chevron{display:none}.home-attention .task-item{margin-bottom:12px}}

/* Owner follow-up 2: concise current situation, details on demand. */
.profile-now{padding:4px 0 24px}.profile-now .facts{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px 24px}.profile-now dd{font-size:17px}.profile-now dd small{display:block;margin-top:4px}
.profile-detail{padding:0;border-bottom:1px solid var(--line);margin-top:8px}.profile-detail>summary{font-weight:600;padding:16px 0;min-height:52px}.profile-detail>section,.profile-detail>p{padding:8px 0 16px}.profile-detail .facts{padding:8px 0 16px}.profile-identification{background:transparent;border-radius:0}.profile-identification>p{display:inline-block;vertical-align:top;min-width:180px;margin-right:20px}
.profile-photo{width:88px;height:88px;flex:none;border-radius:18px;overflow:hidden}.profile-photo img{width:100%;height:100%;object-fit:cover}.profile-heading.has-photo>.profile-tag{display:none}
.profile-secondary{display:block}.genetics-quick-reference{border:0;background:transparent;border-radius:0;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.genetics-quick-reference h2{font-size:16px}
@media(max-width:700px){.profile-now .facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-now dd{font-size:15px}.profile-heading{gap:14px}.profile-photo{width:72px;height:72px}.profile-detail>summary{font-size:15px}.profile-now dd,.profile-detail dd{overflow-wrap:anywhere}}
.profile-action-bar{margin:16px 0 12px}.profile-now{padding:0 0 4px}.profile-now .facts{margin:0;padding:16px 0;border:0}.profile-secondary{margin:12px 0}.genetics-quick-reference .genetics-quick-facts{margin:14px 0}

/* Owner follow-up 3: one keyboard/touch accessible help surface. */
.title-with-help{display:flex;align-items:center;gap:10px}.title-with-help h1{min-width:0}.context-help-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border-radius:50%;color:var(--green);cursor:pointer;font-size:23px;line-height:1}.context-help-button:hover{background:var(--soft)}.context-help-button:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.action-with-help{display:flex;align-items:center;border-bottom:1px solid var(--line)}.action-with-help .action-menu-link{flex:1;min-width:0;border-bottom:0}.action-with-help .context-help-button{margin-left:4px}.context-help-dialog{max-width:540px}.context-help-content{display:grid;gap:20px}.context-help-content h3{font-size:15px;margin:0 0 6px;line-height:1.45}.context-help-content p{margin:0;font-size:15px;line-height:1.6}.context-help-dialog .eyebrow{margin-bottom:8px}.context-help-dialog .dialog-heading h2{font-size:24px;line-height:1.25}
@media(max-width:700px){.title-with-help{align-items:flex-start}.context-help-dialog{padding:24px 20px}.context-help-dialog .dialog-heading{gap:12px}}

/* Focused polish: existing routes and controls, calmer shared presentation. */
@media screen {
 .topbar{height:68px;position:relative;z-index:6}.crumb{min-width:0}.crumb strong{overflow-wrap:anywhere}.topbar-right{gap:12px;flex-shrink:0}
 .preview{border:0;padding:0;color:var(--muted);font-size:13px;letter-spacing:0}
 .settings-trigger{display:inline-flex;gap:8px;align-items:center;min-height:44px;padding:10px 12px;border-radius:8px;font-size:14px;font-weight:500}
 .settings-trigger:hover,.settings-trigger:focus-visible{background:var(--soft)}
 .settings-popover{position:fixed;inset:64px 24px auto auto;margin:0;width:248px;max-width:calc(100vw - 28px);padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);box-shadow:0 12px 32px var(--shadow,#20262320)}
 .settings-popover nav{display:grid}.settings-popover a,.settings-popover>button{display:flex;align-items:center;width:100%;min-height:44px;padding:12px;text-decoration:none;border-radius:6px;font-size:15px;text-align:left}
 .settings-popover a:hover,.settings-popover a[aria-current],.settings-popover>button:hover{background:var(--soft)}.settings-popover>button{margin-top:6px;border-top:1px solid var(--line);border-radius:0}
 .sidebar{overflow-y:auto}.sidebar nav{gap:4px}.sidebar nav a{min-height:48px;padding:12px 14px}.brand{padding-bottom:32px}.avatar{flex-shrink:0}.person>div:last-child{min-width:0;overflow-wrap:anywhere}
 .workspace{padding-top:32px}.page-heading{margin-bottom:24px}.page-heading>div{min-width:0}.subtitle{max-width:68ch;line-height:1.55}
 h1{font-size:30px;letter-spacing:-.7px;line-height:1.25}h2{line-height:1.35}.eyebrow{font-size:12px;text-transform:none;letter-spacing:.04em;color:var(--muted)}
 .button{min-height:48px;padding:11px 16px;font-size:15px}.back-link{margin-bottom:12px}.section-header{margin-bottom:12px}.section-space{margin-top:24px}
 .field{font-size:15px;margin-bottom:20px;line-height:1.4}.field input,.field select,.field textarea{font-size:16px;min-height:48px;padding:12px;margin-top:8px}.field small{line-height:1.5}
 .field input.big-number{font-size:30px;min-height:68px}.form-body{padding:24px}.form-two{gap:16px}.animal-context{padding:16px 24px}.form-actions{padding:16px 24px;gap:10px;background:var(--surface-raised,#fafbfa)}.form-actions .button{min-height:48px}
 .choice-field legend{font-size:15px}.choices span{min-height:48px;font-size:16px}.form-card details{padding-top:12px}.form-card summary{line-height:1.5}.form-card details[open]>summary{margin-bottom:12px}
 .form-card{border-radius:10px}.form-intro{padding-bottom:16px;margin-bottom:20px}.callout{padding:12px 16px;margin-bottom:18px}.error{line-height:1.5;font-size:15px}
 .animal-row{min-height:76px;padding:14px 16px;gap:14px}.animal-row strong{margin-bottom:4px;font-size:16px}.animal-row small{font-size:14px;line-height:1.4}.tag-tile{flex-shrink:0}
 .animal-row:focus-visible{outline-offset:-3px;background:var(--soft)}.searchbox{min-height:52px;margin:16px 0}.searchbox input{font-size:16px;padding:14px 0}
 .task-item{padding:10px 0}.task-item small{font-size:13px;line-height:1.5}.home-attention .task-item{margin-bottom:0}.home-layout{align-items:start}.home-actions .action{min-height:100px}.home-actions .action-icon{background:transparent}.home-actions .action.primary .action-icon{background:var(--action-bg,#3d6048)}
 .aside-panel{background:var(--surface-muted,#f0f2f1);border-color:transparent}.genetics-overview{background:transparent;border:0;border-radius:0;padding:12px 0}.facts,.table-scroll table{font-variant-numeric:tabular-nums}.facts dt{line-height:1.4}.facts dd{line-height:1.45}
 .table-scroll th{font-size:13px;font-weight:600;color:var(--muted);background:var(--surface-muted,#f0f2f1)}.table-scroll tbody tr:hover{background:var(--surface-raised,#f5f7f5)}
 .action-menu-group h3{font-size:14px;text-transform:none;letter-spacing:0;margin-top:20px}.action-menu-link{font-size:16px;min-height:52px}.action-with-help:focus-within{background:var(--soft)}
 .dialog-heading h2,.context-help-dialog .dialog-heading h2{font-size:22px}.dialog-panel::backdrop{background:var(--backdrop,#14281f55)}.filter-group>summary{font-size:16px;min-height:52px;padding:16px 0}
 .success{padding:32px;margin:24px auto}.success .saved-detail{margin:20px 0;padding:16px}.footer-note{color:var(--muted);line-height:1.6}
 button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--green);outline-offset:3px}.searchbox:focus-within{outline-color:var(--green)}.choices input:focus-visible+span{outline-color:var(--green)}
}
@media screen and (max-width:700px){
 .topbar{height:auto;min-height:60px;padding:8px 20px;gap:8px}.crumb{font-size:15px;line-height:1.35}.topbar-right .preview{display:none}.settings-trigger{padding:10px 8px}.settings-popover{top:60px;right:14px}
 .workspace{padding-top:22px}.page-heading{margin-bottom:20px}h1{font-size:27px}.profile-heading h1{font-size:26px}.eyebrow{margin-bottom:8px}
 .form-body{padding:20px 16px}.form-two{gap:0}.animal-context{padding:16px}.form-actions{padding:16px}.form-actions .primary{min-height:52px;font-size:16px}
 .animal-row{min-height:80px;padding:14px}.form-layout .page-heading{margin-bottom:20px}.home-actions .action{min-height:108px}.home-actions .action strong{font-size:16px}
 .dialog-heading{gap:10px}.dialog-heading .button{padding:10px 12px}.context-help-dialog{padding:22px 20px}.action-menu-link{font-size:16px;min-height:52px}
 .mobile-nav{padding-top:8px}.mobile-nav a{border-radius:8px;padding:4px 0}.mobile-nav a.active{background:var(--soft)}.success{margin:12px 0;padding:24px 20px}
}
@media screen {
 .animal-row .tag-tile{max-width:28%;height:auto;min-height:48px;padding:8px;overflow-wrap:anywhere;text-align:center;line-height:1.3}
 .animal-row .search-match{display:block;margin-top:4px}
.animal-row .row-mother,.animal-row .row-groups{display:block;margin-bottom:3px;color:var(--ink);font-weight:500}.animal-row .row-groups.unassigned{color:var(--muted);font-weight:400}
}

/* Record corrections stay available without competing with the history itself. */
.timeline-content{min-width:0}.timeline-record-heading{display:flex;align-items:flex-start;gap:12px}.timeline-record-heading h3{flex:1;min-width:0;padding-top:10px;margin-bottom:8px;overflow-wrap:anywhere}
.record-options{position:relative;flex:none;margin:0}.record-options>summary{display:flex;align-items:center;justify-content:center;list-style:none;min-width:44px;min-height:44px;padding:8px;color:var(--muted);border-radius:8px;font-size:16px;letter-spacing:2px;line-height:1}
.record-options>summary::-webkit-details-marker{display:none}.record-options>summary:hover,.record-options[open]>summary{background:var(--soft);color:var(--ink)}
.record-options-panel{position:absolute;right:0;top:46px;z-index:4;width:240px;max-width:calc(100vw - 80px);padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:0 8px 24px var(--shadow,#20262318)}
.record-options-panel .text-link{display:flex;width:100%;min-height:44px;padding:10px 12px;border-radius:6px;line-height:1.4;font-size:14px;color:var(--ink)}.record-options-panel .text-link:hover{background:var(--soft)}
.timeline-content>small{display:block;margin-top:10px;line-height:1.5}.timeline-content>.text-link{margin-top:8px}
@media print{.record-options{display:none}}

/* The current collar is a primary animal identifier; history remains disclosed. */
.profile-collar{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:12px 0 0;line-height:1.45}.profile-collar span{font-size:14px;color:var(--muted)}.profile-collar strong{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}

.profile-groups{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:8px;font-size:14px;line-height:1.5}.profile-groups>span{min-width:0}.profile-groups .text-link{font-size:14px}.group-membership{display:inline-block;padding:3px 8px;margin:3px 6px 3px 0;background:var(--soft);border-radius:6px;overflow-wrap:anywhere;max-width:100%}.animal-group-picker{border:0;padding:0;margin:0 0 24px;min-width:0}.animal-group-picker legend{font-weight:500;font-size:15px;margin-bottom:8px}.group-choice{display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer;padding:8px 0}.group-choice input{width:20px;height:20px;flex:none;accent-color:var(--green)}.group-choice span{overflow-wrap:anywhere;min-width:0}
.breeding-member{padding:12px 0;border-bottom:1px solid var(--line)}.breeding-member fieldset{border:0;padding:12px 0 0;margin:0;min-width:0}.breeding-review-row{padding:12px 0;border-bottom:1px solid var(--line)}.breeding-review-row p{margin:5px 0;overflow-wrap:anywhere}

/* Full UX audit: answers first; details stay available without dominating lists. */
@media screen {
 .performance-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:20px 0}
 .performance-overview>div{min-width:0}.performance-overview dt{font-size:14px;color:var(--muted);margin-bottom:8px}.performance-overview dd{margin:0;font-size:24px;font-weight:600;line-height:1.25;font-variant-numeric:tabular-nums}.performance-overview small{display:block;color:var(--muted);line-height:1.5;margin-top:6px;font-size:13px}
 #maternal-list>article{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:20px 0}
 #maternal-list h2{font-size:20px}#maternal-list>article>.filter-group{margin-top:8px}
 .home-work-links{display:flex;flex-wrap:wrap;gap:8px 20px}.home-work-links a{min-height:44px;display:inline-flex;align-items:center}
 .workspace>p,.workspace>details>p,.form-body>p{max-width:75ch}
 .aside-panel>details,.form-card details{min-width:0}summary{cursor:pointer;overflow-wrap:anywhere}details>summary{min-height:44px;align-content:center}
 /* Keep save actions after the fields so keyboard focus is never covered. */
 .form-actions{position:static;border-top:1px solid var(--line)}
 .success .button{margin:4px}
 .table-scroll{overscroll-behavior-x:contain}.table-scroll:focus-visible{outline:3px solid var(--green);outline-offset:3px}
}
@media screen and (max-width:900px){.performance-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.performance-overview dd{font-size:21px}}
@media screen and (max-width:700px){.form-actions{bottom:72px}.performance-overview small{font-size:13px}.performance-overview dd{font-size:20px}.performance-overview{gap:16px 12px}.date-stamp{display:none}}
@media screen {
 .form-card{overflow:visible}.form-card>.animal-context{border-radius:10px 10px 0 0}.form-actions{border-radius:0 0 10px 10px}
}
@media screen and (max-width:700px){
 #record-form .form-actions{grid-template-columns:1fr 1fr;padding:10px 16px;gap:8px}
 #record-form .form-actions .primary{grid-column:1/-1;grid-row:1}
 #record-form .form-actions .secondary-save{grid-column:2;grid-row:2}
 #record-form .form-actions>a{grid-column:1;grid-row:2}
}
@media screen {
 .change-history article{padding:18px 0;border-bottom:1px solid var(--line)}.change-history h3{font-size:16px;margin:0 0 6px}.change-history p{margin:6px 0}.change-history small{color:var(--muted)}.change-history summary{font-size:14px;color:var(--green)}
 .workspace>form:not(#female-form):not(#report-form){max-width:900px}
}
@media screen {
 .form-card fieldset:not(.choice-field):not(.animal-group-picker){border:0;padding:0;margin:20px 0;min-width:0}.form-card fieldset>legend{font-weight:600;margin-bottom:16px}
 #lab-review>label:not(.field),#veterinary-evidence>label:not(.field){display:flex;align-items:flex-start;gap:10px;padding:12px 0;min-height:44px;line-height:1.5}
 #lab-review input[type=checkbox],#veterinary-evidence input[type=checkbox]{width:20px;height:20px;flex:none;margin-top:2px;accent-color:var(--green)}
}
@media screen and (max-width:700px){
 .profile-action-bar{position:sticky;top:0;z-index:5;background:var(--paper);padding:8px 0;gap:8px;display:grid;grid-template-columns:minmax(0,1fr) auto}
 .profile-action-bar>.button{min-height:52px;font-size:15px;padding:10px 12px}.profile-action-bar>.text-link{min-height:48px;padding:10px 8px;font-size:13px}
 html{scroll-padding-bottom:220px}.field input,.field select,.field textarea{scroll-margin-bottom:220px;scroll-margin-top:20px}
}
@media screen {
 .check-option{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px 8px 0;cursor:pointer}.check-option input[type=checkbox]{width:20px;height:20px;margin:0;accent-color:var(--green)}
}
@media screen{.profile-alerts{display:flex;flex-wrap:wrap;gap:4px 16px;margin:12px 0;color:var(--warning-text,#684e26)}.profile-alerts .text-link{min-height:44px;text-align:left;color:var(--warning-text,#684e26);font-weight:600}#profile-health,#profile-withdrawal{scroll-margin-top:80px}}
@media screen and (max-width:700px){.female-mobile-list>article{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:18px 0;margin-top:12px}.female-mobile-list h2{font-size:18px}.female-mobile-list p{margin:10px 0}}

/* Visual checkpoint: deliberately scoped until owner approval. */
.checkpoint-home .home-actions{display:flex;flex-direction:column;gap:0;border:1px solid var(--line);border-radius:14px;background:var(--paper);overflow:hidden}
.checkpoint-home .home-actions .action{display:flex;flex-direction:row;align-items:center;min-height:68px;padding:14px 18px;border:0;border-radius:0;border-top:1px solid var(--line);background:transparent;box-shadow:none;gap:14px}
.checkpoint-home .home-actions .action:first-child{border:0;background:var(--action-bg,var(--green));color:var(--on-action,white);min-height:80px}
.checkpoint-home .home-actions .action-icon{width:28px;height:32px;background:transparent;flex:none}
.checkpoint-home .home-actions strong{font-size:17px}.checkpoint-home .home-actions small{font-size:14px;line-height:1.4;margin-top:3px}
.checkpoint-home .home-actions .chevron{display:block;width:18px;height:18px;margin-left:auto}
.checkpoint-home .home-work-links{gap:0 16px;margin-top:10px}.checkpoint-home .home-work-links a{font-size:14px}
.checkpoint-home .home-attention .task-item{padding:14px 0}.checkpoint-home .home-attention .task-item a{min-height:44px;display:flex;align-items:center}
.checkpoint-home .home-recent .animal-list{border:0;background:transparent}.checkpoint-home .home-recent .animal-row{padding-left:0;padding-right:0}
.checkpoint-profile .profile-heading{align-items:flex-start;margin-bottom:12px;gap:16px}.checkpoint-profile .profile-heading h1{margin:4px 0 8px}.checkpoint-profile .profile-heading .eyebrow{margin:0 0 6px}
.checkpoint-profile .profile-tag{width:60px;min-width:60px;height:60px;font-size:26px;border-radius:12px;margin-top:5px}
.checkpoint-profile .profile-collar{margin:12px 0 0}.checkpoint-profile .profile-groups{margin:6px 0 0}
.checkpoint-profile .profile-action-bar{position:static;margin:16px 0 20px;padding:0;display:flex;background:transparent;gap:18px}
.checkpoint-profile .profile-action-bar>.primary{min-height:48px;flex:1;max-width:320px}.checkpoint-profile .profile-action-bar>.text-link{font-size:14px;min-height:44px;display:flex;align-items:center}
.checkpoint-profile .profile-now{margin:16px 0}.checkpoint-profile .profile-now .facts{gap:14px;margin:0}.checkpoint-profile .profile-now dd{font-size:16px;line-height:1.5}
.checkpoint-profile .profile-secondary{margin:20px 0}.checkpoint-profile .genetics-quick-reference{padding:0;background:transparent;border:0}
.checkpoint-profile .profile-secondary h2{font-size:17px}.checkpoint-profile .profile-secondary dl{gap:16px}.checkpoint-profile .profile-secondary dd{font-size:19px}
.checkpoint-profile>.profile-detail,.checkpoint-profile>.profile-production{border:0;border-top:1px solid var(--line);padding:0;margin:0;background:transparent;border-radius:0}
.checkpoint-profile>.profile-detail>summary,.checkpoint-profile>.profile-production>summary{padding:18px 0;font-size:16px;font-weight:600;line-height:1.5;min-height:56px}
.profile-production .production-content{padding:4px 0 20px}.production-intro{margin:6px 0 20px}.production-intro p:last-child{font-size:21px;font-weight:600;margin:8px 0}
.production-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0 0 20px}.production-summary dt{font-size:16px}.production-summary dd{margin:8px 0 0}.production-summary strong{display:block;font-size:30px;line-height:1.2;font-variant-numeric:tabular-nums}.production-summary span{display:block;color:var(--muted);font-size:14px;line-height:1.5;margin-top:7px}
.production-context{font-size:17px;line-height:1.55;margin:16px 0 8px}.production-limit{font-size:14px;line-height:1.5;color:var(--muted);margin:8px 0 24px}
.production-content>details{border-top:1px solid var(--line);margin:0;padding:0;background:transparent;border-radius:0}.production-content>details>summary{font-size:16px;font-weight:600;padding:16px 0;line-height:1.5;min-height:52px}
.production-section{padding:10px 0 18px}.production-section h3{font-size:18px;margin:12px 0 6px;line-height:1.4}.production-rows{margin:0}.production-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,2fr);gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.production-row:last-child{border-bottom:0}.production-row dt{font-size:16px;line-height:1.5}.production-row dd{margin:0;min-width:0}.production-row strong{display:block;font-size:18px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}.production-row p{font-size:15px;color:var(--muted);line-height:1.6;margin:7px 0 0;max-width:65ch}
.production-content details p{line-height:1.65}.production-content article{padding:16px 0;border-bottom:1px solid var(--line)}.production-content article h3{font-size:18px;line-height:1.5}
.checkpoint-profile #animal-action-dialog{padding:0 24px 20px;max-height:88dvh}.checkpoint-profile #animal-action-dialog .dialog-heading{position:sticky;top:0;background:var(--tone-paper,white);z-index:2;padding:20px 0 16px;margin:0;border-bottom:1px solid var(--line)}
.checkpoint-profile #animal-action-dialog h2{font-size:22px}.menu-animal{font-size:16px;margin:8px 0 0}.menu-animal span{font-size:14px;color:var(--muted);margin-left:8px}
.checkpoint-profile #animal-action-dialog .action-menu-group{margin:0;padding:0;border-bottom:1px solid var(--line)}.checkpoint-profile #animal-action-dialog summary{font-size:16px;font-weight:600;padding:16px 0;min-height:52px}.checkpoint-profile #animal-action-dialog .action-menu-link{min-height:52px;font-size:16px;padding:12px 4px;line-height:1.45}.checkpoint-profile #animal-action-dialog .action-with-help:last-child .action-menu-link{border:0}
.form-layout:has(.checkpoint-entry){max-width:640px}.form-layout:has(.checkpoint-entry) .page-heading{margin-bottom:18px}.form-layout:has(.checkpoint-entry) .eyebrow{display:none}.form-layout:has(.checkpoint-entry) h1{font-size:28px}
.checkpoint-entry .animal-context{padding:14px 18px}.checkpoint-entry .form-body{padding:18px}.checkpoint-entry .field{font-size:16px;margin-bottom:18px}.checkpoint-entry input,.checkpoint-entry select{font-size:16px;min-height:48px}.checkpoint-entry .big-number{font-size:24px;height:58px}.checkpoint-entry .big-number::placeholder{font-size:18px}.checkpoint-entry .form-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 18px;bottom:0}.checkpoint-entry .form-actions .button{font-size:16px;min-height:46px;margin:0}.checkpoint-entry .form-actions .primary{grid-column:1/-1;grid-row:1}.checkpoint-entry .form-actions .secondary-save{grid-column:2;grid-row:2}.checkpoint-entry .form-actions>a{grid-column:1;grid-row:2}.checkpoint-entry #form-error:not(:empty){padding:12px;margin-bottom:16px;line-height:1.5;scroll-margin:24px 0 220px}
@media(max-width:700px){
 .workspace:has(.checkpoint-home){padding-top:20px}.workspace:has(.checkpoint-home) .page-heading{margin-bottom:20px}.workspace:has(.checkpoint-home) h1{font-size:27px}.checkpoint-home{gap:24px}.checkpoint-home .home-work-links{margin-bottom:0}.checkpoint-home .home-attention{margin-top:0}
 .checkpoint-profile .profile-heading h1{font-size:26px}.checkpoint-profile .profile-collar{font-size:14px}.checkpoint-profile .profile-group-summary{font-size:14px}.checkpoint-profile .profile-heading>div:last-child{min-width:0}.checkpoint-profile .profile-heading .quiet{font-size:16px}
 .checkpoint-profile .profile-secondary{padding:0}.checkpoint-profile .profile-secondary .genetics-quick-reference{padding:0}.checkpoint-profile .profile-secondary dl{gap:14px 12px}.checkpoint-profile .profile-secondary dt{font-size:14px}.checkpoint-profile .profile-secondary dd{font-size:18px}
 .production-row{grid-template-columns:1fr;gap:7px;padding:18px 0}.production-row dt{font-weight:500;color:var(--muted)}.production-row strong{font-size:18px}.production-row p{font-size:16px;line-height:1.5}.production-section h3{margin-top:18px}
 .checkpoint-profile #animal-action-dialog{padding:0 20px 20px;margin:auto 0 0;width:100%;max-width:100%;max-height:90dvh;border-radius:20px 20px 0 0}.checkpoint-profile #animal-action-dialog .dialog-heading{padding:18px 0 14px}.checkpoint-profile #animal-action-dialog .action-menu-group summary{padding:14px 0}.checkpoint-profile #animal-action-dialog .dialog-heading .button{min-width:56px;min-height:44px}
 .form-layout:has(.checkpoint-entry) .back-link{margin-bottom:16px}.form-layout:has(.checkpoint-entry) .page-heading{margin-bottom:16px}.checkpoint-entry .form-actions{bottom:72px}.checkpoint-entry .animal-context .text-link{font-size:14px;min-height:44px;display:flex;align-items:center}.checkpoint-entry .animal-context small{font-size:14px}
}
@media(max-height:600px){.checkpoint-entry .form-actions{position:static}.checkpoint-profile #animal-action-dialog .dialog-heading{position:static}}
.checkpoint-home .home-actions .action:not(:first-child) small{display:none}
.checkpoint-home .home-actions .action:not(:first-child){min-height:60px}
.checkpoint-home .home-work-links{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.checkpoint-home .home-work-links a:first-child{grid-column:1/-1}
.checkpoint-entry .field input.big-number{height:56px;padding:12px;font-size:24px}
.checkpoint-entry .weight-options{border-top:1px solid var(--line);margin:2px 0 0}.checkpoint-entry .weight-options summary{font-weight:600;font-size:16px;line-height:1.5;padding:14px 0}.checkpoint-entry .weight-options summary span{display:block;font-size:14px;font-weight:400;color:var(--muted);margin:5px 0 0 16px;line-height:1.5}
.checkpoint-entry .weight-options[open]{padding-bottom:10px}.checkpoint-entry .weight-options[open] summary{margin-bottom:12px}
.production-season header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.production-season header h3{margin:0}.production-season .season-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.season-facts dt{font-size:14px;color:var(--muted)}.season-facts dd{font-size:18px;font-weight:600;margin:5px 0}.production-season .season-source{padding:14px 0;border-top:1px solid var(--line)}.production-season h4{font-size:16px;margin:6px 0}.production-season p{margin:8px 0}.production-season details>summary{font-size:16px;font-weight:600}
.checkpoint-entry .save-pending{color:var(--green);background:var(--soft);border-radius:8px;border:1px solid var(--line)}
.checkpoint-profile .profile-identification{display:block}
.checkpoint-entry .form-actions .button{padding:10px 12px;gap:6px}.checkpoint-entry .form-actions .button svg{width:18px;height:18px}
@media(min-width:701px) and (max-width:1000px){.checkpoint-profile .genetics-quick-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Approved field-record direction, extended after the owner's visual checkpoint. */
.task-list{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--paper)}
.task-list .task-row{border:0;border-radius:0;border-bottom:1px solid var(--line);margin:0;box-shadow:none;background:transparent;padding:18px}
.task-list .task-row:last-child{border-bottom:0}.task-row small{line-height:1.5}.task-row input{min-width:24px;min-height:24px}
.checkpoint-entry .form-actions{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
@media(max-width:700px){
 .workspace>.action-grid{display:flex;flex-direction:column;gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--paper)}
 .workspace>.action-grid>.action{display:flex;align-items:center;gap:14px;padding:16px;border:0;border-radius:0;border-bottom:1px solid var(--line);box-shadow:none;min-height:72px}
 .workspace>.action-grid>.action:last-child{border-bottom:0}.workspace>.action-grid .action-icon{width:28px;height:28px;flex:none;background:transparent;margin:0}
 .workspace>.action-grid .action>span:nth-child(2){flex:1}.workspace>.action-grid .action strong{font-size:17px}.workspace>.action-grid .action small{font-size:14px;line-height:1.5;margin-top:4px}
 .workspace>.action-grid .chevron{display:block;width:18px;height:18px;flex:none;margin:0}
}
@media(max-width:700px){.workspace>.action-grid>.action{flex-direction:row;text-align:left}.workspace>.action-grid .action>span:nth-child(2){min-width:0}}
/* Supporting evidence uses aligned label/value rows, never browser-default indents. */
.workspace dl:not([class]){display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,1.5fr);column-gap:24px;margin:16px 0}
.workspace dl:not([class])>dt,.workspace dl:not([class])>dd{margin:0;padding:14px 0;border-bottom:1px solid var(--line);line-height:1.55;overflow-wrap:anywhere}
.workspace dl:not([class])>dt{font-size:15px;color:var(--muted)}.workspace dl:not([class])>dd{font-size:16px;font-variant-numeric:tabular-nums}
#genemax-list>article,#maternal-list>article{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:22px 0}
#maternal-list .production-summary{margin-top:20px}.herd-overview-disclosure,.genetics-record-tools{margin:0;border-bottom:1px solid var(--line)}
.report-export{margin:14px 0 20px}.genetics-overview .facts{margin:18px 0}
@media(max-width:700px){
 .workspace dl:not([class]){display:block}.workspace dl:not([class])>dt{padding:16px 0 4px;border:0}.workspace dl:not([class])>dd{padding:0 0 16px}
 .workspace .page-heading:has(+form) .eyebrow,.form-layout .eyebrow{display:none}
 #genemax-filters,#maternal-filters{padding:14px 0;background:transparent;border:0}
 #genemax-filters .field,#maternal-filters .field{margin-bottom:16px}
}
.genetics-tools{margin:0 0 20px;border-bottom:1px solid var(--line)}.genetics-tools>summary{font-weight:600;min-height:48px;padding:14px 0}
.genetic-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.genetic-reference-grid dt{font-size:14px;color:var(--muted);line-height:1.5}.genetic-reference-grid dd{margin:6px 0 0;font-size:17px;line-height:1.5;overflow-wrap:anywhere}
.retention-summary{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.retention-summary h3{font-size:17px;line-height:1.5}.retention-summary .genetic-reference-grid dd{font-size:15px}
.report-choice{border-bottom:1px solid var(--line);padding:8px 0 14px}.report-choice:last-child{border-bottom:0}
.herd-report-links .report-choice>a{display:flex;align-items:center;justify-content:space-between;gap:16px;border:0;padding:12px 0;min-height:48px}.report-choice .chevron{width:18px;height:18px;flex:none}
.report-choice details{margin:0}.report-choice summary{font-size:14px;padding:8px 0;min-height:44px;color:var(--muted)}.report-choice p{font-size:16px;line-height:1.6}
.workspace:has(#bull-bse-form)>section.aside-panel{padding:16px 0;background:transparent;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;margin:16px 0}
/* Report controls are disclosure rows; results retain the visual emphasis. */
.workspace details.aside-panel{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0;margin:12px 0}
.workspace details.aside-panel>summary{padding:16px 0;min-height:52px;font-weight:600;line-height:1.5}
.workspace details.aside-panel[open]{padding-bottom:16px}
.workspace form.aside-panel:has(>details){background:transparent;border:0;padding:0}
#reproduction-report-results .animal-list>article{border-bottom:1px solid var(--line);padding-bottom:16px}#reproduction-report-results .animal-list>article:last-child{border-bottom:0}
#reproduction-report-results .animal-list>article>p{padding:0 18px;margin:10px 0;line-height:1.55}
#reproduction-report-results .animal-list .animal-row{border-bottom:0}
.data-options{max-width:760px}.data-options>section{padding:20px 0;border-bottom:1px solid var(--line)}.data-options>section:first-child{padding-top:0}.data-options h2{font-size:21px}.data-options p{line-height:1.6;max-width:65ch}.data-options details{margin:16px 0 0}.data-options summary{min-height:44px;padding:10px 0}
.checkpoint-profile .profile-tag.untagged-tag{font-family:inherit;font-size:15px;font-weight:600;white-space:nowrap;display:flex;align-items:center;justify-content:center}

/* Group navigation by the ranch question without adding another menu level. */
.report-directory{display:grid;gap:28px}.report-directory h2{font-size:18px;line-height:1.4;margin:0 0 12px}.report-directory .animal-row{min-height:76px}
.owner-tool-directory{display:grid;gap:20px;margin:24px 0}.owner-tool-directory h3{font-size:16px;line-height:1.5;margin:0 0 6px}.owner-tool-directory a{display:block;min-height:48px;padding:12px 0;border-bottom:1px solid var(--line);color:var(--green);line-height:1.5;text-decoration:none}.owner-tool-directory a:hover{text-decoration:underline}.owner-tool-directory a:focus-visible{outline:3px solid var(--green);outline-offset:3px}
@media(min-width:1000px){.report-directory{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.owner-tool-directory{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Help stays above the current screen so an unfinished entry remains intact. */
.help-center-dialog{width:calc(100% - 32px);max-width:680px;max-height:85dvh;overflow-y:auto}.help-center-dialog .dialog-heading{position:sticky;top:-32px;background:var(--tone-paper,var(--tone-paper,#fff));z-index:1;padding-bottom:12px}.help-intro{font-size:16px;line-height:1.6;color:var(--muted);margin:0 0 20px}.help-search-label{display:block;font-weight:600;margin-bottom:8px}.help-center-dialog input{width:100%;box-sizing:border-box}.help-result-count{font-size:13px;color:var(--muted);margin:18px 0 4px}.help-guide-row{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;padding:17px 2px;border-bottom:1px solid var(--line);cursor:pointer;background:transparent}.help-guide-row strong{font-size:16px;font-weight:600;color:var(--ink)}.help-guide-row span{font-size:14px;line-height:1.5;color:var(--muted)}.help-guide-row:hover{background:var(--soft)}.help-guide-row:focus-visible{outline:2px solid var(--green);outline-offset:2px}.help-article h3{font-size:24px;line-height:1.3;margin:22px 0 10px}.help-article section{margin:24px 0}.help-article h4{font-size:16px;margin:0 0 6px}.help-article section p{font-size:16px;line-height:1.65;margin:0}.help-task-link{margin-top:24px}.help-trigger{min-height:44px}.help-back{margin-top:4px}
@media(max-width:700px){.topbar-right{gap:8px}.help-trigger{padding:8px 10px}.help-center-dialog{padding:24px 20px}.help-center-dialog .dialog-heading{top:-24px}.help-article h3{font-size:22px}}
.help-center-dialog #help-search{min-height:48px;padding:11px 13px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:16px}.help-center-dialog .dialog-heading{top:-24px}
@media(max-width:700px){.help-center-dialog{width:100%;max-width:100%;padding-bottom:calc(24px + env(safe-area-inset-bottom))}}

/* Appearance tokens preserve the light palette above and adapt every screen surface. */
:root{color-scheme:light}
.appearance-control{display:grid;gap:8px;font-size:14px;font-weight:600;margin:16px 0 8px}.appearance-control select{min-height:44px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}.appearance-control small{font-weight:400;color:var(--muted)}.appearance-status{font-size:13px;color:var(--muted);max-width:28ch;margin:0 0 12px}.appearance-status:empty{display:none}.settings-popover .appearance-control{border-top:1px solid var(--line);padding-top:16px}.form-layout>.appearance-control{max-width:260px;margin-top:24px}
@media screen{
 :root[data-theme="dark"]{color-scheme:dark;--ink:#e6ede8;--muted:#b3bfb7;--line:#48564d;--paper:#212a24;--green:#a4d5b5;--soft:#2b3a30;--gold:#dec38c;--surface-muted:#1b231e;--surface-raised:#263129;--positive-bg:#304637;--warning-bg:#423620;--danger-bg:#472c2a;--action-bg:#315e42;--on-action:#fff;--accent-text:#b3d9bd;--warning-text:#eed299;--danger-text:#ffb4aa;--focus:#ebcd89;--tone-line:var(--line);--tone-muted:var(--muted);--tone-paper:var(--paper);--tone-ink:var(--ink);--backdrop:#0009;--shadow:#0005;background:#171c19;color:var(--ink)}
 :root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{color:var(--ink);background-color:var(--paper);border-color:var(--line)}
 :root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:var(--muted);opacity:1}
 :root[data-theme="dark"] input[type="checkbox"],:root[data-theme="dark"] input[type="radio"]{accent-color:#a4d5b5}
}

@media screen{:root[data-theme="dark"] .action.primary small{color:#e0ebe3}}
.remember-choice{display:flex;align-items:flex-start;gap:10px;margin:20px 0;font-size:15px;line-height:1.5;cursor:pointer}.remember-choice input{flex:none;width:20px;height:20px;margin:2px 0}.remember-choice small{display:block;color:var(--muted);font-size:13px;margin-top:4px}.session-recovery{max-width:520px}.session-recovery>h2{margin-bottom:16px}.session-recovery>p:last-child{margin:20px 0 0}.session-recovery [data-session-error]:empty{display:none}.session-recovery::backdrop{background:var(--paper)}
.highland-registration{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0}.highland-registration h2{font-size:14px;color:var(--muted);margin-bottom:6px}.highland-registration p{margin:0;overflow-wrap:anywhere}.highland-registration p span{display:block;font-size:14px;color:var(--muted);margin-top:4px}.highland-registration .text-link{flex:none}.highland-registration>div{min-width:0}
@media(max-width:500px){.highland-registration{align-items:flex-start;flex-direction:column;gap:4px}}
.highland-registration .highland-tattoo{margin-top:12px}.highland-tattoo strong{display:block;font-size:16px;margin-top:4px}
.ranch-logo{display:block;object-fit:contain;height:auto;max-width:100%;flex:none}.sidebar .brand{justify-content:center;padding-bottom:22px}.sidebar-logo{width:160px}.login-logo{width:120px;margin-bottom:24px}.mobile-brand{display:none}
@media(max-width:700px){.mobile-brand{display:flex;flex:none;align-items:center;width:40px;min-height:44px}.topbar .crumb{min-width:0;flex:1}.topbar .crumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-right{flex:none}.login-logo{width:100px}}

.favorite-filters{margin:20px 0}.favorite-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.favorite-filter-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.favorite-filter-list .chip{white-space:normal;overflow-wrap:anywhere;text-align:left;max-width:100%;min-height:44px}#calf-season-guidance a{display:inline-block;margin-top:8px;text-decoration:underline}

.season-filter-summary{margin:16px 0}.season-filter-summary summary{min-height:44px;cursor:pointer;padding:12px 0;font-weight:600}.season-filter-summary p{line-height:1.5}

/* Occupied calving seasons replace the form with a clear decision. */
.entry-fields{border:0;padding:0;margin:0;min-width:0}
.entry-blocked{padding:24px;border:2px solid var(--ink);border-radius:12px;margin:16px 0;background:var(--paper)}
.entry-blocked h2{margin:0 0 12px;font-size:1.35rem;line-height:1.35}
.blocked-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
.entry-blocked[hidden],.entry-fields[hidden]{display:none}

/* Blocking save feedback keeps the form underneath intact in either theme. */
.save-feedback{width:calc(100% - 32px);max-width:520px;max-height:85dvh;overflow-y:auto;border-top:5px solid var(--danger-text,#a33125)}.save-feedback h2{font-size:24px;margin:0 0 16px}.save-feedback p{font-size:16px;line-height:1.6;overflow-wrap:anywhere;margin:0 0 20px}.save-feedback .button{width:100%;min-height:48px}.save-feedback::backdrop{background:var(--backdrop,#0008)}
@media(max-width:700px){.save-feedback{width:100%;max-width:100%;max-height:92dvh}}
.save-feedback [data-refresh-records]:not([hidden]){margin-bottom:12px}
/* Cleared save errors must not leave an empty warning box in the form. */
.error:empty{display:none}

.home-collar-attention{display:flex;flex-wrap:wrap;align-items:center;margin-top:12px;gap:0 24px}.home-collar-attention .collar-attention{margin:0}.home-collar-attention .text-link{display:inline-flex;align-items:center;min-height:44px;text-align:left;padding:8px 0}

/* Daily cattle work: quiet rows, short actions, consistent navigation. */
.page-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0 0 16px;padding:0 8px 0 0;border:0;background:transparent;color:var(--green);font:inherit;cursor:pointer}.page-back:disabled{opacity:.45;cursor:default}.page-back svg{width:18px;height:18px}.herd-search-start{display:flex;align-items:center;gap:14px;padding:20px;border:1px solid var(--line);border-radius:14px;text-decoration:none;font-weight:600;color:inherit;background:var(--paper)}.herd-search-start svg{width:22px;height:22px}.herd-search-start span{flex:1}.simple-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 24px}.daily-lists{margin-top:24px}.daily-list-row{display:flex;width:100%;align-items:center;gap:14px;min-height:56px;padding:14px 2px;border:0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit;background:transparent;font:inherit;text-align:left;cursor:pointer}.daily-list-row span:first-child{flex:1}.daily-list-row small{display:block;font-size:12px;color:var(--muted,#667067);margin-top:4px}.daily-list-row strong{font-size:20px;font-variant-numeric:tabular-nums;font-weight:600}.daily-list-row svg{width:16px;height:16px;flex-shrink:0;margin-left:auto}.daily-list-row.selected{color:var(--green);font-weight:600}.daily-list-row:hover{background:var(--soft)}.list-context{margin:0 12px 16px 76px;color:var(--muted,#667067);font-size:14px}.count-badge{font-size:16px;color:var(--muted,#667067);padding-left:6px}.cattle-picker{max-height:320px;overflow:auto;border-block:1px solid var(--line)}.picker-row{display:flex;align-items:center;gap:14px;min-height:58px;padding:10px 8px;border-bottom:1px solid var(--line);cursor:pointer}.picker-row[hidden]{display:none}.picker-row input{width:20px;height:20px;flex-shrink:0}.picker-row small{display:block;font-size:12px;margin-top:4px;color:var(--muted,#667067)}.sale-total strong{display:block;font-size:32px;letter-spacing:-.6px}.sale-total span{display:block;margin-top:6px;color:var(--muted,#667067)}.watch-notice{font-size:14px;padding:12px 0}.season-totals{max-width:760px}#season-cows{margin-top:32px}.home-start{margin-bottom:20px}
@media(max-width:700px){.daily-list-row{min-height:56px}.simple-actions .button{flex:1;white-space:nowrap}.herd-search-start{padding:18px 14px}.list-context{margin-left:12px}.page-back{margin-bottom:12px}.home-layout .home-recent{display:none}.daily-lists{margin-top:18px}.sale-total strong{font-size:28px}}
.checkpoint-home .home-column{gap:24px}.checkpoint-home .home-start{margin:0}.checkpoint-home .home-start .simple-actions{margin:12px 0 0}.checkpoint-home .daily-lists{margin-top:0}.checkpoint-home .home-attention>p{margin:4px 0 8px}.checkpoint-home .home-attention .task-item{padding:6px 0}.checkpoint-home .home-attention .task-item a{min-height:36px}.checkpoint-home .home-attention .task-item small{margin-top:0}
@media(max-width:980px){.checkpoint-home{grid-template-areas:"start" "lists" "attention" "recent"}.checkpoint-home .daily-lists{grid-area:lists}}
@media(max-width:700px){.checkpoint-home{grid-template-areas:"start" "lists" "attention"}.checkpoint-home .home-attention .task-item a{min-height:44px}}

/* The everyday animal page ends after a few facts; supporting records have their own page. */
.simple-cow-profile{max-width:760px}.simple-cow-profile .profile-heading p{margin:0}.simple-cow-profile .profile-action-bar{margin:22px 0 24px}.simple-cow-facts{margin:0}.simple-cow-facts>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:20px;padding:18px 0;border-top:1px solid var(--line)}.simple-cow-facts dt{color:var(--muted)}.simple-cow-facts dd{margin:0;font-weight:500;overflow-wrap:anywhere}.simple-cow-facts small{display:block;font-size:14px;font-weight:400;color:var(--muted);margin-top:5px}.simple-cow-facts a{color:var(--accent-text)}.simple-cow-attention{display:flex;flex-wrap:wrap;gap:8px 20px;border-top:1px solid var(--line);padding-top:12px}.simple-cow-attention a{min-height:44px;display:flex;align-items:center;color:var(--accent-text);font-weight:500}.simple-history-link{margin-top:18px}.simple-cow-profile .profile-action-bar>.primary{max-width:240px}@media(max-width:700px){.simple-cow-facts>div{grid-template-columns:88px minmax(0,1fr);gap:16px}.simple-cow-profile .profile-heading .quiet{font-size:14px}}

.sale-layout{max-width:760px}.sale-selection{margin-bottom:24px}.sale-selection h2{font-size:17px}.sale-selected{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.sale-selected-tag{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding-left:12px;border:1px solid var(--line);border-radius:8px;background:var(--soft);overflow-wrap:anywhere}.sale-selected-tag>span{min-width:0}.sale-selected-tag small{display:block;font-size:12px;color:var(--muted)}.sale-selected-tag button{display:grid;place-items:center;flex-shrink:0;min-width:44px;min-height:44px;padding:10px}.sale-selection summary,.sale-extra summary{min-height:44px;padding:12px 0;cursor:pointer}.sale-selection .field{margin-top:8px}.sale-selection .field textarea{min-height:72px;resize:vertical}.sale-selection [role=alert]:empty,.sale-selection [role=status]:empty{display:none}.sale-selection [role=alert]{color:var(--danger-text);margin-top:12px}.sale-selection [role=status]{margin:12px 0 0}.sale-extra{margin-bottom:16px}

/* Keep filter management out of the everyday favorite shortcuts. */
.favorite-filter-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.manage-filter-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.manage-filter-row>div{min-width:0;overflow-wrap:anywhere}.manage-filter-row small{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.5}.manage-filter-row .button{flex-shrink:0}.deleted-filters{margin-top:20px}#manage-favorites-message:not(:empty){margin:16px 0}#manage-favorites-message .text-link{margin-left:8px}

/* Keep page orientation compact and put everyday work first. */
.page-heading{margin-bottom:18px}.page-heading h1{font-size:24px;line-height:1.25;letter-spacing:-.5px;margin-bottom:4px}.page-heading .subtitle{font-size:14px;line-height:1.45}.home-herd-count{margin:0 0 12px;color:var(--muted);font-size:14px;line-height:1.4}

/* Season evidence stays readable without stacking large cards. */
.production-filters{display:flex;flex-wrap:wrap;gap:8px}.production-context p{margin:0 0 8px}.cow-season-history{margin:12px 0;color:var(--ink)}.cow-season-history>div{display:grid;grid-template-columns:minmax(100px,150px) minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.cow-season-history dt{font-weight:600;overflow-wrap:anywhere}.cow-season-history dd{margin:0;overflow-wrap:anywhere}.cow-season-history small{display:block;color:var(--muted);margin-top:6px}.production-actions{display:flex;flex-wrap:wrap;gap:8px 20px}.production-context .cow-season-history>div{padding:8px 0}.production-context{margin-top:12px}.simple-cow-facts .text-link{display:flex}
@media(max-width:700px){.cow-season-history>div{grid-template-columns:1fr;gap:4px}.production-context{margin-right:14px;margin-left:14px}.production-filters .chip{flex:1;min-width:130px}}

/* Tasks are a scannable list; notes and actions live in the task editor. */
.tasks-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}.tasks-heading .page-heading{margin:0}.tasks-heading .button{flex:none;min-height:44px;padding:10px 16px}.tasks-page .collar-attention{margin:0 0 8px}.tasks-page .collar-attention .text-link{min-height:44px;padding:8px 0;text-align:left}
.task-section{margin-top:16px}.task-section h2{font-size:16px;line-height:1.4;margin:0 0 6px}.compact-task-list{list-style:none;padding:0;margin:0}.compact-task-list>li{margin:0;border-bottom:1px solid var(--line)}.compact-task-row{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:16px;min-height:56px;padding:12px 2px;text-decoration:none;color:var(--ink);line-height:1.4}.compact-task-title{font-size:16px;font-weight:600;overflow-wrap:anywhere}.compact-task-meta{font-size:14px;color:var(--muted);text-align:right}.compact-task-meta.overdue{color:var(--danger-text,#a33125)}.compact-task-row>svg{width:16px;height:16px;color:var(--muted)}.compact-task-row:hover{background:var(--soft)}.compact-task-row:focus-visible{outline:2px solid var(--focus,var(--green));outline-offset:2px;border-radius:4px}.task-history{margin:8px 0 0}.task-history>summary{min-height:44px;padding:12px 0;font-size:14px;line-height:1.4;color:var(--muted);cursor:pointer}.task-empty{margin:12px 0;font-size:14px;color:var(--muted)}
@media(max-width:700px){.compact-task-row{grid-template-columns:minmax(0,1fr) 16px;gap:3px 12px;min-height:68px;padding:10px 2px}.compact-task-title{grid-column:1;grid-row:1}.compact-task-meta{grid-column:1;grid-row:2;text-align:left}.compact-task-row>svg{grid-column:2;grid-row:1/3}.task-section{margin-top:14px}}
