:root{--mobile-bottom-nav-height:4.05rem;--mobile-launcher-size:3rem;--mobile-launcher-margin:0.75rem;--mobile-launcher-safe-region:0rem;--mobile-fixed-bottom-space:0rem;--mobile-edge-offset:0rem;--mobile-content-bottom-space:0rem}.app-shell{min-height:100vh}.organization-access-shell{display:grid;min-height:100vh;place-items:center;background:var(--ui-page);padding:1rem}.organization-access-main{display:grid;width:min(100%,30rem);grid-gap:1rem;gap:1rem;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-raised);color:var(--ui-text);padding:clamp(1rem,4vw,1.5rem)}.organization-access-main .brand-logo{width:min(13rem,60vw)}.organization-access-main h1,.organization-access-main p{margin:0}.organization-access-control{min-width:0}.organization-access-control .org-control{display:flex;min-height:2.75rem;align-items:center}.organization-access-control .org-control-select .input{min-height:2.75rem;width:100%}.organization-access-actions{display:flex;flex-wrap:wrap;gap:.5rem}.organization-access-actions .button{min-height:2.75rem}.app-chrome{position:-webkit-sticky;position:sticky;top:0;z-index:30;border-bottom:1px solid var(--ui-border)}.app-shell-body{display:grid;grid-template-columns:12.5rem minmax(0,1fr);min-height:calc(100vh - 2.75rem)}.app-workspace{min-width:0}.admin-topbar{display:grid;grid-template-columns:minmax(10rem,1fr) auto;min-height:2.75rem;align-items:center;grid-gap:.75rem;gap:.75rem;border-bottom:1px solid var(--ui-border);background:var(--ui-surface-subtle);color:var(--ui-text);padding:0 .75rem}.admin-topbar-left,.admin-topbar-right{display:flex;align-items:center;min-width:0;gap:.35rem}.admin-topbar-left{justify-content:flex-start}.admin-topbar-right{justify-content:flex-end}.topbar-org{min-width:0;flex:1 1 auto;overflow:hidden}.topbar-org .org-control{display:flex;min-height:2.75rem;max-width:16rem;align-items:center;overflow:hidden;color:var(--ui-text-muted);font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.topbar-org .org-control:not(.org-control-select){display:block;width:100%;line-height:2.75rem}.topbar-org .org-control-select .input{min-height:2.75rem;width:min(16rem,42vw);border-color:transparent;border-radius:4px;background:transparent;color:var(--ui-text);font-size:.78rem;padding:0 1.6rem 0 .25rem}.account-avatar,.icon-button{border:0;cursor:pointer;font:inherit}.toolbar-popover{position:relative}.account-avatar:hover,.account-avatar[aria-expanded=true]{background:var(--ui-primary-subtle);color:var(--ui-text)}.account-avatar{display:inline-flex;width:2.75rem;height:2.75rem;align-items:center;justify-content:center;border-radius:999px;background:var(--ui-primary-pressed);color:var(--ui-primary-text);font-size:.72rem;font-weight:700}.account-panel{display:grid;grid-gap:.45rem;gap:.45rem}.account-panel span{margin:0;color:var(--ui-text-muted);font-size:.86rem}.account-signout{min-height:2rem;border:0;border-radius:6px;background:transparent;color:var(--ui-text-muted);cursor:pointer;font:inherit;padding:.35rem .45rem;text-align:left}.account-panel a:hover,.account-signout:hover{background:var(--ui-primary-subtle);color:var(--ui-primary-subtle-text)}.shell-notices{display:grid;grid-gap:.5rem;gap:.5rem;padding:.75rem clamp(1rem,3vw,2rem) 0}.shell-notices:empty{display:none}.demo-banner{display:flex;align-items:flex-start;gap:.55rem;border:1px solid color-mix(in srgb,var(--ui-warning) 35%,var(--ui-border));border-radius:8px;background:var(--ui-warning-subtle);color:var(--ui-text);padding:.65rem .75rem}.demo-banner>svg{flex:0 0 auto;color:var(--ui-warning)}.demo-banner strong{display:block;margin-bottom:.15rem}.demo-banner p{margin:0}.single-appbar{min-height:2.75rem;border-bottom:0;background:var(--ui-surface-subtle)}.stockman-wordmark{display:inline-flex;align-items:center;min-height:2.75rem;color:var(--ui-primary-subtle-text);padding:0 .35rem}.stockman-wordmark .brand-logo-horizontal{width:min(13rem,24vw)}.stockman-wordmark .brand-logo-square{display:none}.chrome-context-label{color:var(--ui-text-muted);font-size:.76rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.desktop-rail{position:-webkit-sticky;position:sticky;top:2.75rem;display:grid;align-content:start;height:calc(100vh - 2.75rem);min-width:0;overflow-y:auto;border-right:1px solid var(--ui-border);background:color-mix(in srgb,var(--ui-surface-raised) 96%,var(--ui-page));padding:.45rem}.desktop-rail-nav{display:grid;grid-gap:.18rem;gap:.18rem}.desktop-rail a{display:grid;border:1px solid transparent;border-radius:7px;color:var(--ui-text-muted);padding:.52rem .55rem}.desktop-rail a:hover,.desktop-rail a[aria-current=page]{background:var(--ui-primary-subtle);color:var(--ui-primary-subtle-text)}.desktop-rail a[aria-current=page]{border-color:color-mix(in srgb,var(--ui-primary) 28%,var(--ui-border));box-shadow:inset 4px 0 0 var(--ui-primary)}.desktop-rail a span{color:inherit;font-size:.88rem;font-weight:800}.appbar-primary{display:flex;align-items:center;justify-content:center;min-width:0;gap:.25rem}.appbar-primary a{display:inline-flex;min-height:2rem;align-items:center;border-radius:7px;color:var(--ui-text-muted);font-size:.82rem;font-weight:700;padding:.2rem .7rem}.appbar-primary a:hover,.appbar-primary a[aria-current=page]{background:var(--ui-primary-subtle);color:var(--ui-text)}.appbar-primary a[aria-current=page]{background:color-mix(in srgb,var(--ui-primary) 16%,transparent);color:var(--ui-primary)}.current-section{color:var(--ui-text-muted);font-size:.76rem;font-weight:700}.theme-icon-toggle{display:inline-flex;width:2.75rem;min-height:2.75rem;align-items:center;justify-content:center;border:0;border-radius:999px;background:transparent;color:var(--ui-text-muted);cursor:pointer}.theme-icon-toggle:focus-visible,.theme-icon-toggle:hover{background:var(--ui-primary-subtle);color:var(--ui-text)}.account-panel a{border-radius:6px;color:var(--ui-text);font-weight:700;padding:.4rem .45rem}.account-identity{display:grid;grid-gap:.15rem;gap:.15rem;border-bottom:1px solid var(--ui-border-subtle);padding-bottom:.45rem}.shell-icon-label,.shell-nav-label{display:inline-flex;align-items:center;gap:.45rem}.shell-icon-label svg,.shell-nav-label svg{flex:0 0 auto}.desktop-rail .shell-nav-label{width:100%}.mobile-bottom-nav,.mobile-drawer-backdrop,.mobile-edge-nav,.radial-menu{display:none}@media (max-width:900px){:root{--mobile-launcher-safe-region:calc(var(--mobile-launcher-size) + var(--mobile-launcher-margin));--mobile-fixed-bottom-space:calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));--mobile-edge-offset:calc(var(--mobile-fixed-bottom-space) + var(--mobile-launcher-margin));--mobile-content-bottom-space:calc(var(--mobile-edge-offset) + var(--mobile-launcher-size) + var(--mobile-launcher-margin))}.admin-topbar{gap:.35rem;padding-inline:.5rem}.topbar-org .org-control{max-width:42vw}.appbar-primary,.chrome-context-label,.current-section,.desktop-rail{display:none}.app-shell-body{display:block;min-height:calc(100vh - 2.75rem);padding-bottom:var(--mobile-content-bottom-space)}.app-workspace{box-sizing:border-box;padding-right:calc(var(--mobile-launcher-safe-region) + env(safe-area-inset-right));scroll-padding-bottom:var(--mobile-content-bottom-space)}.stockman-wordmark{min-width:44px;min-height:44px;justify-content:center;padding:0}.stockman-wordmark .brand-logo-horizontal{display:none}.stockman-wordmark .brand-logo-square{display:block;width:2rem}.mobile-bottom-nav{position:fixed;right:0;bottom:0;left:0;z-index:40;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:.15rem;gap:.15rem;border-top:1px solid var(--ui-border);min-height:var(--mobile-fixed-bottom-space);background:color-mix(in srgb,var(--ui-surface-raised) 97%,transparent);padding:.35rem max(.45rem,env(safe-area-inset-right)) max(.35rem,env(safe-area-inset-bottom)) max(.45rem,env(safe-area-inset-left))}.mobile-bottom-nav a,.mobile-bottom-nav button{display:inline-flex;min-height:2.75rem;align-items:center;justify-content:center;flex-direction:column;gap:.15rem;border:0;border-radius:7px;background:transparent;color:var(--ui-text-muted);cursor:pointer;font:inherit;font-size:.72rem;font-weight:800;padding:.2rem .25rem}.mobile-bottom-nav a:hover,.mobile-bottom-nav a[aria-current=page],.mobile-bottom-nav button:hover{background:var(--ui-primary-subtle);color:var(--ui-primary-subtle-text)}.mobile-bottom-nav a[aria-current=page]{box-shadow:inset 0 3px 0 var(--ui-primary)}.mobile-edge-nav{position:fixed;right:max(.45rem,env(safe-area-inset-right));bottom:var(--mobile-edge-offset);z-index:42;display:inline-flex;min-width:var(--mobile-launcher-size);width:var(--mobile-launcher-size);height:var(--mobile-launcher-size);align-items:center;justify-content:center;border:1px solid color-mix(in srgb,var(--ui-primary) 35%,var(--ui-border));border-radius:999px 0 0 999px;background:var(--ui-surface-raised);color:var(--ui-primary-subtle-text);cursor:pointer;box-shadow:0 8px 24px var(--ui-shadow-strong);touch-action:none}.mobile-drawer-backdrop{position:fixed;inset:0;z-index:44;display:block;background:var(--ui-overlay)}.mobile-drawer{position:absolute;inset:0;display:grid;width:100%;max-height:100dvh;grid-gap:.8rem;gap:.8rem;overflow:auto;padding:max(.85rem,env(safe-area-inset-top)) max(.85rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) .85rem;border-left:0;background:var(--ui-surface);color:var(--ui-text)}.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.drawer-logo{width:min(12rem,58vw);color:var(--ui-text)}.drawer-nav-group{display:grid;grid-gap:.2rem;gap:.2rem}.drawer-nav-group>strong{color:var(--ui-text-muted);font-size:.72rem;letter-spacing:.06em;text-transform:uppercase}.drawer-nav-group a{display:grid;min-height:2.75rem;grid-gap:.1rem;gap:.1rem;border-radius:7px;padding:.55rem .65rem;overflow-wrap:anywhere}.drawer-nav-group a.active,.drawer-nav-group a:hover{background:var(--ui-primary-subtle);color:var(--ui-primary-subtle-text)}.drawer-nav-group a.active{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ui-primary-subtle-text) 24%,transparent)}.drawer-nav-group small{color:var(--ui-text-muted);font-size:.78rem}.radial-menu{position:fixed;right:max(.75rem,env(safe-area-inset-right));bottom:calc(var(--mobile-edge-offset) + 3.25rem);z-index:43;display:block;width:min(16rem,calc(100vw - 1.5rem));height:min(17rem,calc(100dvh - var(--mobile-fixed-bottom-space) - 4rem));pointer-events:none}.radial-menu a{position:absolute;display:inline-flex;width:5rem;min-height:2.75rem;align-items:center;justify-content:center;gap:.25rem;border:1px solid var(--ui-border);border-radius:999px;background:var(--ui-surface-raised);color:var(--ui-text);font-size:.78rem;font-weight:800;pointer-events:auto;box-shadow:0 8px 20px var(--ui-shadow)}.radial-menu a.active,.radial-menu a:hover{background:var(--ui-primary);color:var(--ui-primary-text)}.radial-menu a[data-position="0"]{right:.1rem;top:.2rem}.radial-menu a[data-position="1"]{right:4.9rem;top:2.1rem}.radial-menu a[data-position="2"]{right:7.6rem;top:6.5rem}.radial-menu a[data-position="3"]{right:4.9rem;top:10.8rem}.radial-menu a[data-position="4"]{right:.1rem;top:12.7rem}}@media (max-width:520px){.admin-topbar{grid-template-columns:auto minmax(0,1fr);min-height:2.75rem}.topbar-org .org-control{max-width:34vw;font-size:.75rem}.account-avatar,.theme-icon-toggle{min-height:2.75rem}}@media (max-height:580px),(max-width:380px){.radial-menu{right:max(.5rem,env(safe-area-inset-right));top:auto;bottom:calc(var(--mobile-fixed-bottom-space) + .5rem);width:calc(100vw - 1rem);height:auto;display:grid;grid-gap:.4rem;gap:.4rem}.radial-menu a{position:static;width:100%}}@media (prefers-reduced-motion:reduce){.mobile-drawer,.radial-menu a{transition:none}}.records-shell{display:grid;overflow:hidden;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-raised)}.record-table-shell{width:100%;min-width:0}.record-table{width:100%;border-collapse:collapse;font-size:.86rem}.record-table td,.record-table th{border-bottom:1px solid var(--ui-border-subtle);padding:.55rem .65rem;text-align:left;vertical-align:top}.record-table th{background:var(--ui-surface);color:var(--ui-text-muted);font-size:.72rem;letter-spacing:.04em;text-transform:uppercase}.record-table th button{display:inline-flex;align-items:center;gap:.3rem;min-height:2rem;border:0;border-radius:5px;background:transparent;color:inherit;cursor:pointer;font:inherit;font-weight:650;padding:.12rem .18rem;text-align:left;text-transform:inherit}.record-table th button:hover{background:var(--ui-primary-subtle);color:var(--ui-primary-subtle-text)}.record-table tbody tr{cursor:pointer}.record-table tbody tr.selected,.record-table tbody tr:hover,.record-table tbody tr[aria-selected=true]{background:var(--ui-selected)}.record-actions{white-space:nowrap}.record-row-actions{display:inline-flex;align-items:center;gap:.45rem}.sort-mark{display:inline-flex;color:var(--ui-text-muted);opacity:.72}.sort-mark.active{color:var(--ui-primary-subtle-text);opacity:1}.record-row-list{display:none}.record-table-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.5rem;border-top:1px solid var(--ui-border-subtle);padding:.55rem .65rem}.record-pagination span,.record-range,.record-table-footer label{color:var(--ui-text-muted);font-size:.82rem;font-weight:650}.record-range{margin-right:auto}.record-page-size{width:auto;min-height:2rem;padding-block:.25rem}.record-pagination{display:inline-flex;align-items:center;gap:.45rem}.record-pagination .button{min-height:2rem;padding:.32rem .6rem}.record-table-state-row td{padding:.7rem}.record-table-state{border:1px dashed var(--ui-border);border-radius:8px;background:var(--ui-surface-raised);color:var(--ui-text-muted);padding:.8rem}.record-table-mobile-state{padding:.7rem}.record-table-state.danger{border-color:var(--ui-danger);background:var(--ui-danger-subtle);color:var(--ui-danger)}@media (max-width:900px){.record-table{display:none}.record-row-list{display:grid}.record-mobile-sort{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;grid-gap:.5rem;gap:.5rem;border-bottom:1px solid var(--ui-border-subtle);padding:.65rem}.record-mobile-sort label{color:var(--ui-text-muted);font-size:.82rem;font-weight:650}.record-mobile-sort .button,.record-mobile-sort .input{min-height:44px}.record-mobile-sort .button{display:inline-flex;align-items:center;gap:.35rem}.record-condensed-row{display:grid;width:100%;grid-gap:.45rem;gap:.45rem;border-top:1px solid var(--ui-border-subtle);background:transparent;color:var(--ui-text);padding:.7rem;text-align:left}.record-condensed-row:first-child{border-top:0}.record-condensed-row.selected,.record-condensed-row:hover,.record-condensed-row[aria-selected=true]{background:var(--ui-selected)}.record-condensed-select{display:grid;width:100%;grid-gap:.45rem;gap:.45rem;border:0;background:transparent;color:inherit;cursor:default;padding:0;text-align:left}.record-condensed-main{display:grid;grid-gap:.1rem;gap:.1rem}.record-condensed-details b,.record-condensed-main small{color:var(--ui-text-muted)}.record-condensed-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:.35rem .6rem;gap:.35rem .6rem;min-width:0}.record-condensed-details span{display:grid;min-width:0;overflow-wrap:anywhere}.record-condensed-actions{display:flex;flex-wrap:wrap;gap:.35rem;width:100%}.record-condensed-actions>a,.record-condensed-actions>button{min-height:44px}.record-table-footer{justify-content:flex-start}.record-range{width:100%}.record-pagination{width:100%;justify-content:space-between}.record-page-size,.record-pagination .button{min-height:44px}}@media (max-width:520px){.record-mobile-sort{grid-template-columns:1fr 1fr}.record-mobile-sort label{grid-column:1/-1}}:root{--overlay-popover-layer:30;--overlay-picker-layer:40;--overlay-dialog-base:60;--overlay-dialog-step:10;--overlay-owned-portal-offset:2}.popover-panel{position:absolute;right:0;top:calc(100% + .4rem);z-index:var(--overlay-popover-layer);min-width:13rem;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-raised);box-shadow:0 10px 30px var(--ui-shadow);color:var(--ui-text);padding:.55rem}.context-help{position:relative;flex:0 0 auto}.context-help-trigger{min-height:2.75rem;white-space:nowrap}.context-help-panel{position:absolute;right:0;z-index:var(--overlay-popover-layer);display:grid;width:min(26rem,calc(100vw - 2rem));max-height:min(34rem,calc(100dvh - 5rem));grid-gap:.75rem;gap:.75rem;overflow:auto;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-raised);color:var(--ui-text);padding:.85rem;box-shadow:0 10px 28px var(--ui-shadow)}.context-help-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.context-help-heading h2{margin-bottom:0}.context-help-heading .icon-button,.drawer-heading .icon-button{min-height:2.75rem;min-width:2.75rem;border-radius:7px;background:transparent;color:var(--ui-text-muted);padding:0 .7rem}.context-help-heading .icon-button:hover,.drawer-heading .icon-button:hover{background:var(--ui-primary-subtle);color:var(--ui-primary-subtle-text)}.context-help-steps{display:grid;grid-gap:.45rem;gap:.45rem;margin:0;padding-left:1.2rem}.context-help-steps li{color:var(--ui-text);line-height:1.35}.context-help-tip{border-top:1px solid var(--ui-border-subtle);margin-bottom:0;padding-top:.65rem}.dialog-backdrop{position:fixed;inset:0;z-index:calc(var(--overlay-dialog-base) + var(--dialog-stack-index, 0) * var(--overlay-dialog-step));display:grid;align-items:start;justify-items:center;overflow-y:auto;background:var(--ui-overlay);padding:max(1rem,env(safe-area-inset-top)) 1rem max(1rem,env(safe-area-inset-bottom))}.dialog-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(48rem,100%);max-height:calc(100dvh - 2rem);min-height:0;overflow:hidden;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);color:var(--ui-text);box-shadow:0 20px 50px var(--ui-shadow-strong)}.dialog-panel-destructive{border-top:3px solid var(--ui-danger)}.dialog-footer,.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;border-bottom:1px solid var(--ui-border-subtle);padding:.75rem .85rem}.dialog-header h2{margin:0;font-size:1.08rem;font-weight:760;line-height:1.2}.dialog-panel-destructive .dialog-header h2{color:var(--ui-danger)}.dialog-close{min-height:44px;min-width:44px;border-radius:6px;background:transparent;color:var(--ui-text-muted);padding:0 .45rem}.dialog-close:hover:not(:disabled){background:var(--ui-primary-subtle);color:var(--ui-primary-subtle-text)}.dialog-close:disabled{cursor:not-allowed;opacity:.6}.dialog-body{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:.85rem}.dialog-body .detail-editor{border:0;background:transparent;padding:0}.dialog-footer{position:-webkit-sticky;position:sticky;bottom:0;flex-wrap:wrap;border-top:1px solid var(--ui-border-subtle);border-bottom:0;background:var(--ui-surface)}.dialog-footer a,.dialog-footer button{min-height:44px}.relationship-combobox,.relationship-picker{display:grid;grid-gap:.35rem;gap:.35rem}.relationship-combobox-search{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:.35rem;gap:.35rem}.entity-select-portal{position:fixed;inset:0;z-index:var(--overlay-picker-layer);pointer-events:none}.entity-select-portal[data-dialog-owner-index]{z-index:calc(var(--overlay-dialog-base) + var(--dialog-owner-index, 0) * var(--overlay-dialog-step) + var(--overlay-owned-portal-offset))}.relationship-popup{position:fixed;display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0;overflow:hidden;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-surface-raised);box-shadow:0 10px 28px var(--ui-shadow);color:var(--ui-text);pointer-events:auto}.relationship-options{display:grid;min-height:0;overflow-y:auto;overscroll-behavior:contain}.relationship-options button{display:grid;grid-gap:.1rem;gap:.1rem;min-height:44px;border:0;border-top:1px solid var(--ui-border-subtle);background:transparent;color:var(--ui-text);cursor:pointer;padding:.45rem .55rem;text-align:left}.relationship-options button:first-child{border-top:0}.relationship-options button.active,.relationship-options button:hover{background:var(--ui-primary-subtle);box-shadow:inset 3px 0 0 var(--ui-primary)}.relationship-options button.selected,.relationship-options button[aria-selected=true]{background:var(--ui-selected);color:var(--ui-primary-subtle-text)}.relationship-options button:focus-visible{position:relative;z-index:1;outline:3px solid var(--ui-focus);outline-offset:2px}.relationship-options small{color:var(--ui-text-muted)}.relationship-picker-feedback{display:grid;grid-gap:.35rem;gap:.35rem;border-top:1px solid var(--ui-border-subtle);padding:.45rem .55rem}.relationship-picker-closed-error{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.relationship-picker-status{color:var(--ui-text-muted)}.relationship-picker-meta{display:flex;min-height:1rem;align-items:center;gap:.75rem}.relationship-clear,.relationship-picker-meta .inline-action{min-height:44px}.animal-preset-actions{display:flex;flex-wrap:wrap;gap:.45rem}@media (max-width:900px){.context-help{align-self:flex-start}.context-help-panel{position:fixed;right:max(.5rem,env(safe-area-inset-right));bottom:calc(var(--mobile-fixed-bottom-space) + .5rem);left:max(.5rem,env(safe-area-inset-left));width:auto;max-height:min(26rem,calc(100dvh - var(--mobile-fixed-bottom-space) - 4.5rem))}.dialog-backdrop{align-items:end;padding:.5rem}.dialog-panel{width:min(100%,calc(100vw - 1rem));max-height:calc(100dvh - 1rem)}.dialog-footer{flex-direction:column-reverse;align-items:stretch}}.workspace-layout{grid-template-columns:minmax(0,1fr);align-items:start}.workspace-main{display:grid;grid-gap:.85rem;gap:.85rem;min-width:0}.workspace-nav{display:grid;grid-gap:.45rem;gap:.45rem;border-block:1px solid var(--ui-border);background:var(--ui-surface);padding:.45rem 0}.workspace-nav strong{color:var(--ui-text-muted);font-size:.72rem;letter-spacing:.06em;padding:0 .2rem;text-transform:uppercase}.workspace-nav-items{display:flex;flex-wrap:wrap;gap:.35rem;min-width:0}.workspace-nav a{position:relative;display:grid;min-height:2.75rem;min-width:min(11rem,100%);grid-gap:.08rem;gap:.08rem;border:1px solid transparent;border-radius:6px;color:var(--ui-text-muted);font-size:.86rem;padding:.5rem .6rem}.workspace-nav a small{color:var(--ui-text-muted);font-size:.72rem}.workspace-nav a:hover{background:var(--ui-surface-subtle);color:var(--ui-text)}.workspace-nav a.active,.workspace-nav a[aria-current=page]{border-color:color-mix(in srgb,var(--ui-primary) 24%,var(--ui-border));background:var(--ui-selected);color:var(--ui-primary-subtle-text);box-shadow:inset 3px 0 0 var(--ui-primary)}.setup-disclosure{border:1px solid var(--ui-border-subtle);border-radius:8px;background:var(--ui-surface);min-width:0}.setup-disclosure summary{display:grid;grid-gap:.12rem;gap:.12rem;cursor:pointer;font-weight:750;list-style-position:inside;padding:.65rem .75rem}.setup-disclosure summary small{color:var(--ui-text-muted);font-size:.8rem;font-weight:500}.setup-disclosure-body{border-top:1px solid var(--ui-border-subtle);padding:.6rem .75rem;min-width:0;overflow:hidden}@media (max-width:980px){.workspace-layout{grid-template-columns:1fr}.workspace-nav-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.workspace-nav a{min-width:0;width:100%}}@media (max-width:520px){.workspace-nav-items{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-nav a{align-content:center;min-height:2.75rem;padding:.4rem .5rem}.workspace-nav a small{display:none}}.today-primary-action{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid var(--ui-border-strong);border-left:4px solid var(--ui-primary);border-radius:8px;background:var(--ui-surface-raised);color:var(--ui-text);padding:.85rem 1rem}.today-primary-action h2,.today-primary-action p{margin:0}.today-primary-action h2{font-size:1.08rem}.today-primary-action p{color:var(--ui-text-muted)}.today-primary-eyebrow{color:var(--ui-primary-subtle-text)!important;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.today-icon-label{display:inline-flex;align-items:center;justify-content:center;gap:.4rem}.today-preview-note{margin:0 0 .6rem;color:var(--ui-text-muted);font-size:.82rem}.today-work-summary{display:flex;flex-wrap:wrap;margin:0;border-block:1px solid var(--ui-border)}.today-work-summary div{display:flex;min-width:9rem;flex:1 1 9rem;align-items:baseline;justify-content:space-between;gap:.65rem;border-right:1px solid var(--ui-border-subtle);padding:.55rem .75rem}.today-work-summary div:last-child{border-right:0}.today-work-summary dt{color:var(--ui-text-muted);font-size:.8rem}.today-work-summary dd{margin:0;color:var(--ui-text);font-size:1rem;font-weight:800}.today-animal-search,.today-search-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.65rem}.today-search-form .field{min-width:min(16rem,100%);flex:1 1 13rem}.today-search-result{display:grid;grid-gap:.25rem;gap:.25rem;align-items:center;grid-template-columns:auto minmax(0,1fr) auto;border-top:1px solid var(--ui-border-subtle);padding-top:.65rem}.today-snapshot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));border-block:1px solid var(--ui-border)}.today-snapshot-block{display:grid;grid-gap:.45rem;gap:.45rem;padding:.65rem .75rem}.today-snapshot-block+.today-snapshot-block{border-left:1px solid var(--ui-border-subtle)}.today-snapshot-block span{display:flex;justify-content:space-between;gap:.75rem;border-top:1px solid var(--ui-border-subtle);color:var(--ui-text-muted);padding-top:.4rem}.today-snapshot-block b{color:var(--ui-text)}@media (max-width:720px){.today-primary-action{align-items:stretch;flex-direction:column}.today-primary-action .button{width:100%;min-height:44px}.today-search-result{grid-template-columns:1fr}.today-search-form{align-items:stretch}.today-snapshot-grid{grid-template-columns:1fr}.today-snapshot-block+.today-snapshot-block{border-top:1px solid var(--ui-border-subtle);border-left:0}}.queue-empty-actions,.queue-reason-dialog{display:grid;grid-gap:.6rem;gap:.6rem}.queue-empty-actions{grid-template-columns:repeat(auto-fit,minmax(10rem,max-content))}.queue-row-actions{display:flex;min-width:18rem;flex-wrap:wrap;align-items:flex-end;gap:.65rem}.queue-row-actions .button{min-height:2.25rem;padding:.35rem .55rem}.queue-title-cell{display:grid;grid-gap:.25rem;gap:.25rem}.queue-title-cell small{display:block;color:var(--ui-text-muted);font-weight:400}.queue-assign-select{min-width:10rem}.queue-assign-select .input{min-height:2rem;padding:.35rem .55rem}@media (max-width:720px){.queue-empty-actions{grid-template-columns:1fr}.queue-empty-actions .button{min-height:44px}.queue-row-actions{min-width:0;align-items:stretch}.queue-assign-select,.queue-row-actions .button{min-height:2.75rem;flex:1 1 8rem}.queue-assign-select .input{min-height:2.75rem}}.dashboard-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;max-width:72rem;margin-bottom:1rem}.dashboard-header-copy,.dashboard-section-copy{min-width:0}.dashboard-page-header h1{margin-bottom:.35rem}.dashboard-page-header p{max-width:48rem;margin-bottom:0}.dashboard-eyebrow{margin-bottom:.35rem;color:var(--ui-primary-subtle-text);font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.dashboard-header-actions,.dashboard-header-meta,.dashboard-header-primary-action,.dashboard-section-actions,.dashboard-section-heading,.dashboard-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}.dashboard-header-meta{margin-top:.65rem}.dashboard-header-actions,.dashboard-header-primary-action,.dashboard-section-actions{justify-content:flex-end}.dashboard-section{display:grid;grid-gap:.75rem;gap:.75rem;min-width:0;border-block:1px solid var(--ui-border-subtle);background:transparent;padding:.85rem 0}.dashboard-section-primary{border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);padding:.85rem}.dashboard-section-heading{justify-content:space-between;padding-bottom:.15rem}.dashboard-section-heading h2{margin:0 0 .2rem}.dashboard-section-heading p{margin-bottom:0}.dashboard-toolbar{min-height:2.75rem;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-raised);padding:.5rem}.dashboard-grid{display:grid;grid-gap:.85rem;gap:.85rem;align-items:start}.dashboard-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid-primary{grid-template-columns:minmax(18rem,1.15fr) minmax(16rem,.85fr)}.dashboard-grid-auto{grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}.dashboard-form-grid{display:grid;grid-gap:12px;gap:12px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}@media (max-width:760px){.dashboard-page-header,.dashboard-section-heading{align-items:stretch;flex-direction:column}.dashboard-header-actions{width:100%;align-items:stretch}.dashboard-header-primary-action{flex:1 1 auto;justify-content:flex-start}.dashboard-header-primary-action>:first-child{min-height:44px}.dashboard-form-grid,.dashboard-grid-primary,.dashboard-grid-two{grid-template-columns:1fr}.dashboard-section-actions{justify-content:flex-start}}.filter-bar,.filter-disclosure-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),14rem));max-width:70rem;grid-gap:.65rem;gap:.65rem;align-content:start;align-items:start;justify-content:start}.filter-bar .field,.filter-bar label{min-width:0}.filter-bar-actions{display:flex;grid-column:1/-1;flex-wrap:wrap;gap:.5rem;align-items:center;justify-self:start}.filter-disclosure{grid-column:1/-1;border-block:1px solid var(--ui-border-subtle);background:transparent}.filter-disclosure summary{display:flex;min-height:2.75rem;align-items:center;justify-content:space-between;gap:.75rem;cursor:pointer;font-weight:700;padding:.55rem 0}.filter-disclosure-count{color:var(--ui-text-muted);font-size:.8rem;font-weight:650}.filter-disclosure-body{border-top:1px solid var(--ui-border-subtle);padding:.7rem 0}.filter-disclosure-body>.field-error{grid-column:1/-1;margin:0}.active-filter-chips{display:flex;grid-column:1/-1;flex-wrap:wrap;gap:.4rem;align-items:center}.active-filter-chip{display:inline-flex;min-height:2rem;align-items:center;gap:.35rem;border:1px solid var(--ui-border);border-radius:999px;background:var(--ui-surface-raised);color:var(--ui-text);font:inherit;font-size:.8rem;font-weight:700;padding:.28rem .6rem}button.active-filter-chip{cursor:pointer}.active-filter-chip span,.date-format-help{color:var(--ui-text-muted)}.active-filter-chip span{font-weight:650}.date-format-help{font-size:.78rem}@media (max-width:760px){.filter-bar,.filter-disclosure-body{grid-template-columns:minmax(0,1fr);width:100%;max-width:none}.filter-bar-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.active-filter-chip,.filter-bar-actions>.button,.filter-bar-actions>button,.filter-disclosure summary{min-height:44px}.filter-bar-actions>.button,.filter-bar-actions>button{width:100%}}.dashboard-metric-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));overflow:hidden;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface)}.dashboard-metric{display:grid;grid-gap:.2rem;gap:.2rem;min-height:4.5rem;border-right:1px solid var(--ui-border);padding:.75rem}.dashboard-metric:last-child{border-right:0}.dashboard-empty-state p,.dashboard-metric small,.dashboard-metric span,.dashboard-record-main small,.dashboard-record-meta{color:var(--ui-text-muted)}.dashboard-empty-state p,.dashboard-metric span,.dashboard-record-main small,.dashboard-record-meta{font-size:.84rem}.dashboard-metric span{font-weight:650}.dashboard-metric strong{font-size:1.05rem;font-weight:700}.dashboard-metric-success strong{color:var(--ui-success)}.dashboard-metric-warning strong{color:var(--ui-warning)}.dashboard-metric-danger strong{color:var(--ui-danger)}.dashboard-status{display:inline-flex;width:-moz-fit-content;width:fit-content;align-items:center;border:1px solid var(--ui-border);border-radius:999px;background:var(--ui-surface-raised);color:var(--ui-text-muted);font-size:.76rem;font-weight:700;line-height:1;padding:.28rem .5rem}.dashboard-status-info{border-color:color-mix(in srgb,var(--ui-info) 28%,var(--ui-border));background:var(--ui-info-subtle);color:var(--ui-info)}.dashboard-status-success{border-color:color-mix(in srgb,var(--ui-success) 28%,var(--ui-border));background:var(--ui-success-subtle);color:var(--ui-success)}.dashboard-status-warning{border-color:color-mix(in srgb,var(--ui-warning) 38%,var(--ui-border));background:var(--ui-warning-subtle);color:var(--ui-warning)}.dashboard-status-danger{border-color:color-mix(in srgb,var(--ui-danger) 38%,var(--ui-border));background:var(--ui-danger-subtle);color:var(--ui-danger)}.dashboard-record-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;grid-gap:.75rem;gap:.75rem;width:100%;border:0;border-top:1px solid var(--ui-border);background:transparent;color:var(--ui-text);font:inherit;padding:.68rem .75rem;text-align:left}.dashboard-record-row:first-child{border-top:0}button.dashboard-record-row{cursor:pointer}.dashboard-record-row.selected,button.dashboard-record-row:hover{background:var(--ui-selected)}.dashboard-record-main{display:grid;grid-gap:.15rem;gap:.15rem;min-width:0}.dashboard-record-main small,.dashboard-record-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-record-meta,.dashboard-record-status{justify-self:end}.dashboard-empty-state{display:grid;grid-gap:.4rem;gap:.4rem;border:1px dashed var(--ui-border);border-radius:8px;background:color-mix(in srgb,var(--ui-surface-raised) 72%,transparent);padding:.85rem}.dashboard-empty-state p{margin-bottom:0}@media (max-width:760px){.dashboard-record-row{grid-template-columns:1fr}.dashboard-record-meta,.dashboard-record-status{justify-self:start}}.csv-list,.detail-editor,.herd-layout,.workflow-resource{display:grid;grid-gap:.85rem;gap:.85rem;min-width:0}.resource-tabs,.table-first-resource,.workflow-resource{max-width:100%}.action-row,.lookup-actions,.resource-summary,.resource-tabs,.summary-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.resource-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:.2rem;scroll-padding-inline:.5rem;scrollbar-width:thin;width:100%;min-width:0;box-sizing:border-box}.resource-tabs a,.resource-tabs button{min-height:2.75rem;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--ui-text-muted);cursor:pointer;font-weight:650;padding:.48rem .65rem;white-space:nowrap}.resource-tabs a.active,.resource-tabs a[aria-selected=true],.resource-tabs button.active,.resource-tabs button[aria-selected=true]{border-color:color-mix(in srgb,var(--ui-primary) 24%,var(--ui-border));background:var(--ui-primary-subtle);color:var(--ui-primary-subtle-text);box-shadow:inset 0 -3px 0 var(--ui-primary)}.help-hook{margin-bottom:0;color:var(--ui-text-muted);font-size:.88rem}.resource-summary{justify-content:space-between;border-bottom:1px solid var(--ui-border-subtle);padding-bottom:.65rem}.resource-summary.slim{margin-top:-.2rem}.csv-row h3,.resource-summary h2,.section-heading h3{margin:0 0 .25rem}.split-workspace{display:grid;grid-template-columns:minmax(17rem,.82fr) minmax(22rem,1.18fr);grid-gap:.85rem;gap:.85rem;align-items:start}.compact-table{display:grid;overflow:hidden;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-raised)}.compact-row{display:grid;grid-template-columns:minmax(9rem,1.2fr) minmax(5rem,.55fr) minmax(6rem,.65fr);width:100%;border:0;border-top:1px solid var(--ui-border-subtle);background:transparent;color:var(--ui-text);cursor:pointer;grid-gap:.75rem;gap:.75rem;padding:.62rem .7rem;text-align:left}.compact-row:first-child{border-top:0}.compact-row.selected,.compact-row:hover{background:var(--ui-primary-subtle)}.compact-head{background:var(--ui-surface);color:var(--ui-text-muted);cursor:default;font-size:.72rem;font-weight:700;text-transform:uppercase}.csv-row,.detail-editor{display:grid;grid-gap:.75rem;gap:.75rem;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-raised);padding:.85rem}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:.7rem;gap:.7rem}.csv-row{grid-template-columns:minmax(12rem,1fr) auto;align-items:center}.context-event-actions,.csv-controls,.inline-calf-create,.terminal-action-panel{display:grid;grid-gap:.65rem;gap:.65rem}.context-event-actions,.inline-calf-create,.terminal-action-panel{width:min(100%,42rem);border:1px solid var(--ui-border);border-radius:8px;padding:.75rem}.context-event-actions .event-action-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:.45rem;gap:.45rem}.csv-row .notice{grid-column:1/-1}@media (max-width:800px){.herd-layout{scroll-padding-bottom:var(--mobile-content-bottom-space)}.compact-row,.context-event-actions .event-action-list,.csv-row,.field-grid,.split-workspace{grid-template-columns:1fr}.resource-summary{align-items:stretch;flex-direction:column}}.animal-first-actions,.animal-first-surface,.animal-lookup-panel,.form-decision-groups,.guided-entry,.import-cleanup-review,.lookup-result{display:grid;grid-gap:.75rem;gap:.75rem}.animal-context-strip,.animal-first-actions,.animal-lookup-panel{border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-raised);padding:.85rem}.compact-heading{align-items:start}.animal-action-card span,.animal-context-strip p,.compact-heading p,.form-decision-group p,.lookup-match-list p{margin:0;color:var(--ui-text-muted);font-size:.88rem}.animal-lookup-form{display:grid;grid-template-columns:minmax(12rem,1fr) auto auto;grid-gap:.55rem;gap:.55rem;align-items:end}.animal-lookup-field{margin:0}.animal-lookup-check{display:flex;align-items:center;gap:.4rem;min-height:2.4rem;color:var(--ui-text-muted);font-size:.86rem}.lookup-result{border-left:3px solid var(--ui-border);padding-left:.75rem}.lookup-exact{border-left-color:var(--ui-success)}.lookup-ambiguous,.lookup-historical,.lookup-inactive{border-left-color:var(--ui-warning)}.lookup-result-header{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}.lookup-match-list{display:grid;grid-gap:.55rem;gap:.55rem}.lookup-match{display:grid;grid-gap:.45rem;gap:.45rem;border:1px solid var(--ui-border-subtle);border-radius:6px;padding:.65rem}.lookup-match.primary{border-color:var(--ui-primary)}.lookup-match dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:.5rem;gap:.5rem;margin:0}.lookup-match dt{color:var(--ui-text-muted);font-size:.72rem;font-weight:700;text-transform:uppercase}.lookup-match dd{margin:.1rem 0 0}.animal-action-grid,.animal-context-strip,.animal-list-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:.6rem;gap:.6rem}.animal-action-card{display:grid;grid-gap:.22rem;gap:.22rem;min-width:0;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);color:var(--ui-text);cursor:pointer;padding:.75rem;text-align:left}.animal-action-card:focus-visible,.animal-action-card:hover{border-color:var(--ui-primary);background:var(--ui-primary-subtle)}.animal-action-card:disabled{cursor:not-allowed;opacity:.65}.animal-list-filters,.import-cleanup-review{border:1px solid var(--ui-border-subtle);border-radius:8px;background:var(--ui-surface);padding:.75rem}.animal-filter-count,.check-field{align-self:end}.check-field{display:flex;align-items:center;gap:.4rem;min-height:2.4rem}.import-cleanup-review ul{margin:0;padding-left:1.1rem}.cleanup-danger{color:var(--ui-danger)}.cleanup-warning{color:var(--ui-warning)}.cleanup-success{color:var(--ui-success)}@media (max-width:800px){.animal-context-strip,.animal-list-filters,.animal-lookup-form,.lookup-match dl{grid-template-columns:1fr}.lookup-result-header{align-items:stretch;flex-direction:column}.animal-first-surface{gap:.55rem;padding-bottom:max(.75rem,env(safe-area-inset-bottom))}.animal-action-card span,.animal-first-actions .section-heading p,.animal-first-surface .dashboard-section-heading p,.animal-lookup-panel .section-heading p{display:none}.animal-first-actions,.animal-lookup-panel{padding:.65rem}.animal-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.animal-action-card,.animal-lookup-form .button{min-height:2.75rem}.animal-lookup-check{min-height:auto}}.groups-locations-surface{display:grid;grid-gap:.85rem;gap:.85rem}.groups-locations-hero{border-left:3px solid var(--ui-primary)}.groups-locations-list{display:grid;grid-gap:.65rem;gap:.65rem;min-width:0;border:1px solid var(--ui-border-subtle);border-radius:8px;background:var(--ui-surface);padding:.65rem}.move-dialog-form label{display:grid;grid-gap:.25rem;gap:.25rem;color:var(--ui-text-muted);font-size:.82rem}.dialog-actions,.profile-animals-header,.profile-report-links{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.row-action-group{display:inline-flex;flex-wrap:nowrap;gap:.65rem;align-items:center;white-space:nowrap}.operational-tabs{display:flex;gap:.35rem;border-bottom:1px solid var(--ui-border)}.operational-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--ui-text-muted);cursor:pointer;padding:.45rem .65rem}.operational-tabs button.active{border-color:var(--ui-primary);color:var(--ui-text);font-weight:650}.group-location-profile{border-left:3px solid var(--ui-primary)}.group-name-action{text-align:left}.profile-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:.6rem;gap:.6rem}.profile-fact{display:grid;grid-gap:.12rem;gap:.12rem;border:1px solid var(--ui-border);border-radius:8px;padding:.6rem}.empty-copy,.groups-profile-list p,.profile-fact span{color:var(--ui-text-muted)}.profile-fact strong{font-size:.95rem}.inline-list{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.inline-list strong{width:100%;font-size:.86rem}.profile-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:.8rem;gap:.8rem}.groups-profile-list{border:1px solid var(--ui-border);border-radius:8px;padding:.65rem}.groups-profile-list h3,.profile-animals-header h3{margin:0;font-size:.95rem}.groups-profile-list ul{margin:.4rem 0 0;padding-left:1rem}.assigned-animal-list,.groups-profile-list ul{display:grid;grid-gap:.35rem;gap:.35rem}.assigned-animal-row{display:flex;gap:.55rem;align-items:center;border-top:1px solid var(--ui-border);padding:.45rem 0}.assigned-animal-row span{display:grid;grid-gap:.1rem;gap:.1rem}.assigned-animal-row small{color:var(--ui-text-muted)}.move-dialog-form{display:grid;grid-gap:.65rem;gap:.65rem}.checkbox-row{display:flex!important;flex-direction:row;align-items:center;color:var(--ui-text)!important}.operational-empty-state{display:grid;grid-gap:.35rem;gap:.35rem;justify-items:start}@media (max-width:900px){.profile-columns,.profile-summary-grid{grid-template-columns:1fr}.profile-animals-header{align-items:stretch;flex-direction:column}.dialog-actions .button,.profile-animals-header .button{width:100%}}.animal-profile-page,.profile-alerts,.profile-list,.profile-overview-grid{display:grid;grid-gap:.85rem;gap:.85rem}.animal-profile-header{border-left:3px solid var(--ui-primary)}.profile-header-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-gap:.65rem;gap:.65rem}.profile-definitions div,.profile-kv,.profile-list li{min-width:0;border-top:1px solid var(--ui-border-subtle);padding-top:.55rem}.profile-definitions dt,.profile-kv span{display:block;color:var(--ui-text-muted);font-size:.73rem;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.profile-definitions dd,.profile-kv strong{display:block;margin:.15rem 0 0}.animal-profile-actions{position:-webkit-sticky;position:sticky;top:4.75rem;z-index:5;display:flex;flex-wrap:wrap;gap:.45rem;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);padding:.55rem}.profile-action{display:inline-flex;align-items:center;min-height:2.25rem;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-surface-raised);color:var(--ui-text);font-weight:700;gap:.35rem;padding:.45rem .65rem}.profile-action:focus-visible,.profile-action:hover{border-color:var(--ui-primary);background:var(--ui-primary-subtle)}.profile-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-definitions{display:grid;grid-gap:.45rem;gap:.45rem;margin:0}.profile-definitions dd{margin-left:0}.profile-list{margin:0;border:1px solid var(--ui-border);border-radius:8px;padding:0}.profile-list li{display:flex;justify-content:space-between;gap:.75rem}.profile-event-help,.profile-list span{color:var(--ui-text-muted)}.profile-actions-mobile{display:none}.profile-event-dialog-list{display:grid}.profile-event-dialog-list .dashboard-record-row{min-height:2.75rem}.source-link{display:inline-block;margin-top:.55rem}.timeline-filters{display:grid;grid-template-columns:repeat(2,minmax(12rem,1fr));grid-gap:.65rem;gap:.65rem}@media (max-width:900px){.profile-header-grid,.profile-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:640px){.profile-actions-wide{display:none}.profile-actions-mobile{display:block;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);padding:.5rem}.profile-actions-mobile .button{width:100%;min-height:2.75rem}.profile-header-grid,.profile-overview-grid,.timeline-filters{grid-template-columns:1fr}}.feed-layout,.feed-panel,.ingredient-panel,.inline-form,.version-layout{display:grid;grid-gap:.85rem;gap:.85rem}.feed-panel,.ingredient-panel{border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);padding:.85rem}.feed-context-panel{order:5}.feed-context-link{display:grid;grid-gap:.2rem;gap:.2rem;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-raised);color:var(--ui-text);padding:.7rem}.feed-context-link small,.table-cap-copy{color:var(--ui-text-muted)}.table-cap-copy{margin:0;font-size:.82rem}.flat-panel{box-shadow:none}.version-layout{grid-template-columns:minmax(16rem,.8fr) minmax(22rem,1.2fr);align-items:start}.inline-form{grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end}.ingredient-workspace{display:grid;grid-gap:.75rem;gap:.75rem}.ingredient-workspace h4{margin:0}@media (max-width:900px){.feed-layout{scroll-padding-bottom:var(--mobile-content-bottom-space)}}@media (max-width:800px){.feed-context-links,.inline-form,.version-layout{grid-template-columns:1fr}.feed-context-link{padding:.55rem .65rem}}.feed-operations{display:grid;grid-gap:.85rem;gap:.85rem}.feed-command-surface{border-left:4px solid var(--ui-primary)}.feed-primary-actions,.feed-setup-gaps,.feed-setup-links{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center}.feed-primary-actions .button:first-child{min-width:9rem}.feed-action-note,.feed-ops-footnote,.feed-setup-gaps strong{color:var(--ui-text-muted);font-size:.85rem}.feed-activity-grid,.feed-operations-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(20rem,.8fr);grid-gap:.85rem;gap:.85rem;align-items:start}.feed-activity-column{display:grid;grid-gap:.55rem;gap:.55rem}.feed-activity-column h3{margin:0;font-size:1rem}.feed-delivery-report .record-table-shell{margin-top:.75rem}.feed-source-panel{display:grid;grid-gap:.75rem;gap:.75rem;border:1px solid var(--ui-border);border-radius:8px;padding:.8rem;background:var(--ui-surface-raised)}.feed-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:.6rem;gap:.6rem}.feed-source-grid span{display:grid;grid-gap:.2rem;gap:.2rem;color:var(--ui-text-muted);font-size:.9rem}.feed-source-grid b{color:var(--ui-text);font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}.feed-setup-gaps a,.feed-setup-links a{border:1px solid var(--ui-border);border-radius:7px;padding:.45rem .6rem;color:var(--ui-text);text-decoration:none}.feed-setup-gaps a:hover,.feed-setup-links a:hover{border-color:var(--ui-primary)}@media (max-width:1000px){.feed-activity-grid,.feed-operations-grid,.feed-source-grid{grid-template-columns:1fr}}@media (max-width:800px){.feed-primary-actions{position:-webkit-sticky;position:sticky;top:.5rem;z-index:2;padding:.45rem;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface)}.feed-primary-actions .button{flex:1 1 9rem;min-height:2.75rem}.feed-report-actions .button,.feed-report-filters .button,.feed-setup-gaps a,.feed-setup-links a{min-height:2.75rem}}.operation-form-shell{display:grid;grid-gap:.85rem;gap:.85rem}.operation-form-shell h3{margin:0;font-size:1rem}.operation-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:.75rem;gap:.75rem;align-items:end}.feed-report-actions,.operation-form .textarea,.operation-form-actions,.operation-form-section{grid-column:1/-1}.operation-form-section-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:.75rem;gap:.75rem;align-items:end}.operation-form-section-grid .notice,.operation-form-section-grid .textarea{grid-column:1/-1}@media (max-width:800px){.operation-form,.operation-form-section-grid{grid-template-columns:1fr}.operation-form-actions .button{min-height:2.75rem;width:100%}}.processing-page{gap:1rem}.processing-next-action,.processing-scope-copy,.processing-subheading p,.processing-task-order{color:var(--ui-text-secondary);font-size:.875rem;margin:0}.processing-next-action{border-left:3px solid var(--ui-primary);padding:.65rem .75rem}.processing-create-form{display:grid;grid-gap:.75rem;gap:.75rem;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.processing-form-section,.processing-manual-list,.processing-notes,.processing-task-actions,.processing-task-set{grid-column:1/-1}.processing-form-grid{display:grid;grid-gap:.75rem;gap:.75rem;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.processing-task-set{border:1px solid var(--ui-border-subtle);border-radius:.5rem;display:flex;flex-wrap:wrap;gap:.75rem 1rem;padding:.75rem}.processing-task-set legend{color:var(--ui-text-muted);font-size:.82rem;padding:0 .25rem}.processing-task-set label{align-items:center;display:inline-flex;min-height:2.75rem;gap:.5rem}.processing-manual-list{align-items:end;display:grid;grid-gap:.5rem;gap:.5rem;grid-template-columns:minmax(0,1fr) auto}.processing-manual-animals{display:flex;grid-column:1/-1;flex-wrap:wrap;gap:.5rem}.processing-manual-chip{align-items:center;background:var(--ui-surface-subtle);border:1px solid var(--ui-border-subtle);border-radius:.5rem;color:var(--ui-text);display:inline-flex;gap:.5rem;padding:.25rem .25rem .25rem .75rem}.processing-manual-chip .button{min-height:2.75rem}@media (max-width:900px){.processing-create-form,.processing-form-grid,.processing-manual-list{grid-template-columns:1fr}.processing-manual-list>.button{min-height:2.75rem;width:100%}}.processing-work-grid{display:grid;grid-gap:1rem;gap:1rem;grid-template-columns:minmax(40rem,2fr) minmax(22rem,1fr)}.processing-lookup-form{align-items:end;display:grid;grid-gap:.75rem;gap:.75rem;grid-template-columns:minmax(0,1fr) auto}.processing-lookup-input{font-size:1.2rem;min-height:3.25rem}.processing-lookup-result,.processing-review-summary{border:1px solid var(--ui-border-subtle);border-radius:.5rem;display:grid;grid-gap:.65rem;gap:.65rem;margin-top:.75rem;padding:.75rem}.processing-lookup-heading,.processing-match-list,.processing-match-row>span{display:grid;grid-gap:.35rem;gap:.35rem}.processing-match-row{align-items:center;background:var(--ui-surface);border:1px solid var(--ui-border-subtle);border-radius:.5rem;color:var(--ui-text);display:grid;grid-gap:.5rem;gap:.5rem;grid-template-columns:minmax(0,1fr) auto;min-height:2.75rem;padding:.65rem .75rem;text-align:left}.processing-match-row:focus-visible,.processing-match-row:hover{border-color:var(--ui-border-strong);background:var(--ui-primary-subtle)}.processing-match-row small,.processing-review-summary span{color:var(--ui-text-muted)}.processing-expected-list{display:grid;grid-gap:.5rem;gap:.5rem;margin-top:.9rem}.processing-subheading h3{font-size:.95rem;margin:0}.processing-review-actions,.processing-row-actions,.processing-row-secondary-actions{display:flex;flex-wrap:wrap;gap:.625rem}.processing-row-secondary-actions{align-items:center;border-left:1px solid var(--ui-border-subtle);padding-left:.625rem}.processing-lookup-form .button,.processing-review-actions .button,.processing-row-actions .button{min-height:2.75rem}@media (max-width:1320px){.processing-work-grid{grid-template-columns:1fr}}@media (max-width:900px){.processing-lookup-form{grid-template-columns:1fr}.processing-row-actions,.processing-row-secondary-actions{width:100%}.processing-row-secondary-actions{border-left:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding-left:0}.processing-lookup-form .button,.processing-review-actions .button,.processing-row-actions>.button{width:100%}}@media (max-width:520px){.processing-row-secondary-actions{grid-template-columns:1fr}}.processing-task-form{display:grid;grid-gap:.75rem;gap:.75rem}.processing-task-card{border:1px solid var(--ui-border-subtle);border-radius:.5rem;display:grid;grid-gap:.65rem;gap:.65rem;grid-template-columns:repeat(2,minmax(0,1fr));padding:.75rem}.processing-task-card legend{font-weight:700;padding:0 .25rem}.processing-task-card .relationship-combobox,.processing-task-card textarea{grid-column:1/-1}.processing-task-card .field{margin:0}.processing-task-actions .button,.processing-task-card .input,.processing-task-form .relationship-combobox{min-height:2.75rem}@media (max-width:900px){.processing-task-card{grid-template-columns:1fr}.processing-task-actions .button{width:100%}}.processing-session-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0}.processing-session-facts div{border-bottom:1px solid var(--ui-border-subtle);display:grid;grid-gap:.25rem;gap:.25rem;padding:.75rem}.processing-session-facts dt{color:var(--ui-text-muted);font-size:.8rem}.processing-session-facts dd{color:var(--ui-text);margin:0}@media (max-width:700px){.processing-session-facts{grid-template-columns:1fr}}.customer-list-search{display:grid;grid-template-columns:minmax(13rem,22rem) auto 1fr;align-items:end;grid-gap:.5rem;gap:.5rem;margin-bottom:.75rem}.customer-list-search label{display:grid;grid-gap:.25rem;gap:.25rem;color:var(--ui-text-muted);font-size:.82rem}.customer-list-search-status{align-self:center;font-size:.82rem}.customers-contracts-page .customer-profile-facts{display:grid;grid-gap:.625rem;gap:.625rem;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr))}.customer-profile-facts span{display:grid;grid-gap:.125rem;gap:.125rem;border-bottom:1px solid var(--ui-border-subtle);padding:.5rem 0}.customer-profile-facts small,.customer-source-row small{color:var(--ui-text-muted)}.customer-setup-actions,.customer-source-action{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.customer-source-list{display:grid;border-block:1px solid var(--ui-border-subtle)}.customer-source-row{display:flex;min-height:3.25rem;align-items:center;justify-content:space-between;gap:1rem;padding:.625rem .25rem;border-top:1px solid var(--ui-border-subtle);color:var(--ui-text);text-decoration:none}.customer-source-row:first-child{border-top:0}.customer-source-row>span{display:grid;grid-gap:.125rem;gap:.125rem}.customer-source-row>span:last-child{display:flex;grid-auto-flow:column;align-items:center;gap:.375rem;color:var(--ui-primary);font-weight:700;white-space:nowrap}.customer-source-row:focus-visible,.customer-source-row:hover{background:var(--ui-primary-subtle)}.customer-source-row-static>span:last-child{display:none}@media (max-width:760px){.customer-list-search{grid-template-columns:1fr;align-items:stretch}.customer-list-search .button,.customer-list-search .input{min-height:2.75rem}.customer-setup-actions{width:100%}.customer-setup-actions .button{min-height:2.75rem}.customers-contracts-page .record-condensed-main,.customers-contracts-page .record-condensed-main>strong{min-width:0}.customers-contracts-page .customer-source-action,.customers-contracts-page .record-condensed-main>strong .inline-action,.customers-contracts-page .table-cap-copy .inline-action{display:inline-flex;min-height:2.75rem;max-width:100%;align-items:center;overflow-wrap:anywhere}.customers-contracts-page .customer-source-row{display:inline-flex;width:100%;min-height:2.75rem;align-items:flex-start;flex-direction:column;overflow-wrap:anywhere}.customers-contracts-page .customer-source-row>span{min-width:0;max-width:100%}}.reports-selector .field{max-width:32rem}.reports-results-section{border-left:3px solid var(--ui-primary)}.report-source-actions{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;gap:.55rem}.settings-readonly-form .input:disabled,.settings-readonly-form .select:disabled{border-color:var(--ui-border-subtle);background:color-mix(in srgb,var(--ui-surface-raised) 74%,var(--ui-page));color:var(--ui-text);opacity:1}.settings-readonly-form .field span{color:var(--ui-text-muted)}.settings-save-actions{position:-webkit-sticky;position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;padding:.75rem;border-top:1px solid var(--ui-border-subtle);background:var(--ui-surface-raised)}@media (max-width:760px){.reports-advanced-controls,.reports-quick-controls,.reports-results-section,.reports-selector{order:0}.report-source-actions,.report-source-actions .inline-action,.reports-page .record-condensed-actions{width:100%}.report-source-actions{justify-content:flex-start}.report-source-actions .inline-action{display:inline-flex;min-height:2.75rem;align-items:center}.settings-save-actions{position:static}.settings-save-actions,.settings-save-actions .button{width:100%}}.platform-ops{display:grid;grid-gap:.85rem;gap:.85rem;min-width:0}.platform-ops .platform-tabs{display:flex;gap:.3rem;overflow-x:auto;border-bottom:1px solid var(--ui-border);padding-bottom:.4rem}.platform-ops .platform-tabs a{border-radius:6px;color:var(--ui-text-muted);font-weight:650;min-height:2.75rem;padding:.65rem;white-space:nowrap}.platform-ops .platform-tabs a.active{background:var(--ui-primary-subtle);color:var(--ui-primary-subtle-text)}@media (max-width:900px){.platform-ops .platform-tabs{flex-wrap:wrap;overflow-x:visible}}.platform-ops .platform-stack{display:grid;grid-gap:.85rem;gap:.85rem;min-width:0}.platform-ops .platform-panel{display:grid;grid-gap:.75rem;gap:.75rem;min-width:0;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);padding:.85rem}.platform-ops .platform-panel h3{margin:0 0 .3rem;font-size:.95rem}.platform-ops .platform-panel p,.platform-ops .section-heading p{margin-bottom:0}.platform-ops .inline-form,.platform-ops .platform-form,.platform-ops .platform-mini-grid,.platform-ops .quick-grid{display:grid;grid-gap:.65rem;gap:.65rem}.platform-ops .platform-mini-grid,.platform-ops .quick-grid{grid-template-columns:repeat(auto-fit,minmax(13rem,1fr))}.platform-ops .quick-grid a{min-height:2.75rem;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-surface-raised);color:var(--ui-text-muted);font-weight:650;padding:.65rem}.platform-ops .quick-grid a:hover{background:var(--ui-primary-subtle);color:var(--ui-primary-subtle-text)}.platform-ops .platform-two-column{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-gap:.85rem;gap:.85rem;align-items:start;min-width:0}.platform-ops .platform-two-column>*{min-width:0}.platform-ops .platform-two-column.wide-left{grid-template-columns:minmax(18rem,.85fr) minmax(0,1.15fr)}.platform-ops .key-value-list,.platform-ops .platform-list{display:grid}.platform-ops .key-value-list div,.platform-ops .platform-list-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);align-items:center;grid-gap:.65rem;gap:.65rem;min-width:0;border-top:1px solid var(--ui-border-subtle);padding:.58rem 0;text-align:left}.platform-ops .key-value-list div{grid-template-columns:minmax(7rem,.35fr) minmax(0,1fr)}.platform-ops .key-value-list div:first-child,.platform-ops .platform-list-row:first-child{border-top:0}.platform-ops .key-value-list dd,.platform-ops .key-value-list dt,.platform-ops .platform-list-row>*{min-width:0;overflow-wrap:anywhere}.platform-ops .key-value-list dt,.platform-ops .platform-list-row small{color:var(--ui-text-muted);font-size:.78rem}.platform-ops .key-value-list dd{margin:0;text-align:left}.platform-ops .platform-form{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));align-items:end}.platform-ops .inline-form{grid-template-columns:repeat(auto-fit,minmax(min(11rem,100%),1fr));align-items:end}.platform-ops .textarea{min-height:6rem;resize:vertical}.platform-ops .platform-readonly-action{color:var(--ui-text-muted);font-size:.85rem}@media (max-width:900px){.platform-ops .inline-form,.platform-ops .key-value-list div,.platform-ops .platform-form,.platform-ops .platform-list-row,.platform-ops .platform-two-column,.platform-ops .platform-two-column.wide-left{grid-template-columns:1fr}}@media (max-width:600px){.platform-ops .platform-mini-grid,.platform-ops .quick-grid{grid-template-columns:1fr}}.platform-ops .compact-details,.platform-ops .json-details,.platform-ops .platform-technical-disclosure{border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-raised);padding:.55rem .65rem}.platform-ops .compact-details summary,.platform-ops .json-details summary,.platform-ops .platform-technical-disclosure>summary{cursor:pointer;color:var(--ui-primary-subtle-text);font-weight:700;min-height:2.75rem;padding-block:.65rem}.platform-ops .platform-technical-disclosure[open]{display:grid;grid-gap:.65rem;gap:.65rem}.platform-ops .chip-list,.platform-ops .choice-list,.platform-ops .copy-value{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}.platform-ops .copy-value{justify-content:space-between;border-top:1px solid var(--ui-border-subtle);padding:.45rem 0}.platform-ops .choice-fieldset{display:grid;grid-gap:.4rem;gap:.4rem;min-width:0;border:1px solid var(--ui-border);border-radius:8px;padding:.65rem}.platform-ops .choice-fieldset legend{padding:0 .25rem;font-weight:700}.platform-ops .choice-chip,.platform-ops .readonly-chip{display:inline-flex;gap:.35rem;align-items:center;min-height:2.75rem;border:1px solid var(--ui-border);border-radius:999px;background:var(--ui-surface);color:var(--ui-text);font-size:.85rem;padding:.5rem .65rem}.platform-ops .json-block{max-height:22rem;overflow:auto;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface-raised);color:var(--ui-text);font-size:.8rem;line-height:1.45;margin:0;padding:.7rem;white-space:pre-wrap;word-break:break-word}.auth-page{display:grid;min-height:100vh;min-height:100dvh;place-items:center;padding:clamp(1rem,4vw,2rem)}.login-page{background:var(--ui-page)}.login-panel{display:grid;width:min(420px,100%);grid-gap:1rem;gap:1rem;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-surface);box-shadow:0 8px 24px var(--ui-shadow-soft);padding:clamp(1.1rem,4vw,1.6rem)}.login-brand-heading{display:grid;justify-items:center;text-align:center}.login-logo{width:min(16rem,78vw);margin:0 auto .2rem;color:var(--ui-text)}.login-credentials,.login-security{display:grid;grid-gap:.85rem;gap:.85rem}.login-panel .field,.login-panel .input{color:var(--ui-text)}.login-panel .input{min-height:44px;border-color:var(--ui-border);background:var(--ui-surface-raised)}.login-panel .input:focus{border-color:var(--ui-primary)}.login-panel .button{min-height:44px}.login-primary-action{width:100%}.login-security:empty{display:none}.turnstile-box{min-height:65px;overflow:hidden}.login-security-help{margin:-.35rem 0 0;color:var(--ui-text-muted);font-size:.86rem}.login-retry{width:-moz-fit-content;width:fit-content}.login-demo{display:grid;grid-gap:.65rem;gap:.65rem;border-top:1px solid var(--ui-border-subtle);padding-top:1rem}.login-demo-heading{display:flex;align-items:center;gap:.5rem;color:var(--ui-text-secondary)}.login-demo p,.login-demo-heading h2{margin:0}.login-demo p{color:var(--ui-text-muted);font-size:.88rem}.login-demo .button{width:100%}.auth-loading{align-content:center;gap:.9rem;color:var(--ui-text);text-align:center}.auth-loading-logo{width:min(13rem,66vw);color:var(--ui-text)}.auth-loading p{margin:0}@media (max-width:420px){.auth-page{align-items:start;padding:.75rem}.login-panel{margin-top:max(.25rem,env(safe-area-inset-top));box-shadow:none;padding:1rem}.turnstile-box{margin-inline:-.15rem}}