:root{--font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;--font-mono: "IBM Plex Mono", ui-monospace, monospace;--bg: #f3f5f8;--bg-accent: #e6ecf5;--surface: #ffffff;--surface-muted: #f8fafc;--text: #1f2937;--text-muted: #667085;--brand: #0f6dff;--brand-contrast: #ffffff;--danger: #b42318;--success: #087443;--border: #d4dce6;--shadow: 0 12px 24px rgba(15, 23, 42, .08)}:root[data-theme=dark]{--bg: #0f172a;--bg-accent: #111b33;--surface: #16213a;--surface-muted: #1d2a48;--text: #f8fafc;--text-muted: #c4ccda;--brand: #7eb1ff;--brand-contrast: #001b44;--danger: #fda29b;--success: #6ce9b4;--border: #2f436d;--shadow: 0 12px 24px rgba(2, 6, 23, .55)}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{font-family:var(--font-sans);color:var(--text);background:radial-gradient(circle at 0% 0%,var(--bg-accent),transparent 42%),radial-gradient(circle at 100% 100%,color-mix(in srgb,var(--bg-accent) 85%,transparent),transparent 45%),var(--bg);line-height:1.5}a{color:var(--brand)}h1,h2,h3,p{margin:0}.app-shell{min-height:100vh;padding:.75rem}.topbar{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:space-between;align-items:center;margin:0 auto .75rem;max-width:1240px}.topbar-status{margin:0;width:100%}.topbar h1{font-size:1.4rem}.topbar p{color:var(--text-muted)}.topbar-actions{display:flex;align-items:center;gap:.65rem}.main-content{margin:0 auto;max-width:1240px}.workspace{display:grid;gap:.75rem}.workspace-nav-wrap{position:relative}.workspace-nav{background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:.4rem;position:sticky;top:.6rem;z-index:20}.mobile-nav-toggle{display:none;border:1px solid var(--border);border-radius:10px;background:transparent;color:var(--text);width:42px;height:38px;align-items:center;justify-content:center;flex-direction:column;gap:4px;cursor:pointer}.mobile-nav-toggle span{width:16px;height:2px;background:currentColor;border-radius:99px}.workspace-tabs{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.workspace-tab{border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text);padding:.45rem .65rem;cursor:pointer;font-weight:600;white-space:nowrap}.workspace-tab:hover{background:var(--surface-muted)}.workspace-tab.active{border-color:var(--border);background:var(--surface-muted)}.tab-divider{width:1px;height:20px;background:var(--border)}.workspace-content{display:grid;gap:.75rem}.panel{background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:.9rem;display:grid;gap:.65rem}.auth-panel{margin:0 auto;max-width:460px}.dashboard-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.dashboard-kpi-grid{display:grid;gap:.55rem;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.dashboard-kpi{border:1px solid var(--border);border-radius:12px;background:var(--surface-muted);padding:.65rem;display:grid;gap:.2rem}.dashboard-kpi strong{font-size:1.35rem}.dashboard-breakdown-grid{display:grid;gap:.8rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.dashboard-list{list-style:none;margin:0;padding:0;display:grid;gap:.35rem}.dashboard-list li{display:flex;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--border);padding-bottom:.2rem}.admin-grid{display:grid;gap:.75rem}.form-grid{display:grid;gap:.55rem}label{display:grid;gap:.35rem;font-weight:600}input,select{border:1px solid var(--border);border-radius:10px;padding:.58rem .7rem;font:inherit;background:var(--surface-muted);color:var(--text)}.password-input-row{position:relative}.password-input-row input{min-width:0;width:100%;padding-right:2.35rem}.password-toggle{position:absolute;right:.35rem;top:50%;transform:translateY(-50%);width:1.7rem;height:1.7rem;border:0;padding:0;border-radius:6px;background:transparent;color:var(--text-muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.password-toggle:hover{background:var(--surface);color:var(--text)}.password-toggle svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.button{border:1px solid transparent;border-radius:10px;padding:.52rem .78rem;background:var(--brand);color:var(--brand-contrast);cursor:pointer;font-weight:700}.button.secondary{background:transparent;color:var(--text);border-color:var(--border)}.button.danger{background:var(--danger);color:#fff}.button.tiny{font-size:.78rem;padding:.32rem .48rem}.icon-button{min-width:2rem;display:inline-flex;align-items:center;justify-content:center;font-size:.95rem}.button:disabled{opacity:.6;cursor:not-allowed}.inline-actions{display:flex;flex-wrap:wrap;gap:.35rem}.table-actions-bar{display:flex;justify-content:space-between;align-items:center;gap:.6rem;flex-wrap:wrap}.table-actions-group{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}.panel-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem}.menu-grid{display:flex;flex-wrap:wrap;gap:.45rem}.menu-tile{min-width:160px}.panel-flow{animation:panel-enter .16s ease-out}.flow-header{display:flex;align-items:center;gap:.65rem}.flow-path{margin:0;color:var(--text-muted);font-size:.82rem}.flow-body{display:grid;gap:.75rem}.pager{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}.page-size-control{display:inline-flex;align-items:center;gap:.4rem;margin-left:auto;font-weight:600}.page-size-control select{width:auto;min-width:72px;padding:.32rem .45rem}.date-picker-inline{display:flex;align-items:center;gap:.35rem}.date-picker-inline input{flex:1}.date-picker-inline .button{flex-shrink:0}@keyframes panel-enter{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:640px}.table-compact{min-width:1280px}th,td{text-align:left;padding:.45rem .4rem;border-bottom:1px solid var(--border);vertical-align:top}th{color:var(--text-muted);font-size:.84rem;text-transform:uppercase;letter-spacing:.03em}.table-sort-button{border:0;background:transparent;color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit;font-weight:700;padding:0;cursor:pointer}.table-filter-row th{background:var(--surface-muted)}.table-filter-input,.cell-input{width:100%;min-width:86px;padding:.28rem .36rem;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:.82rem}.cell-code-input{font-family:var(--font-mono)}.values-cell{display:inline-flex;align-items:center;gap:.4rem}.selectable-row{cursor:pointer}.selectable-row.selected{background:var(--surface-muted)}.error{color:var(--danger);font-weight:600}.success{color:var(--success);font-weight:600}.muted-text{color:var(--text-muted)}.chip{background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:.3rem .65rem;font-size:.82rem}.chip.muted{color:var(--text-muted)}.user-menu{position:relative;z-index:25}.user-menu-trigger{cursor:pointer;font:inherit;color:var(--text);display:inline-flex;align-items:center;justify-content:center;width:2.2rem;height:2.2rem;padding:0}.user-menu-icon{width:1.2rem;height:1.2rem}.user-menu-popover{position:absolute;right:0;top:calc(100% + .45rem);min-width:230px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);padding:.45rem;display:grid;gap:.45rem;z-index:60}.user-menu-meta{display:grid;gap:.2rem}.user-menu-profile-form{display:grid;gap:.45rem}.inline-links{display:flex;gap:.8rem}.code-block{font-family:var(--font-mono);background:var(--surface-muted);border:1px solid var(--border);border-radius:8px;padding:.5rem;overflow-wrap:anywhere}.code-list-item{font-family:var(--font-mono)}.animal-editor-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.animal-editor-wide{grid-column:1 / -1}.animal-editor-overlay{position:fixed;inset:0;z-index:55;display:grid;place-items:center;padding:1rem}.animal-editor-backdrop{position:absolute;inset:0;border:0;background:#0a0e1475}.animal-id-card{position:relative;z-index:56;width:min(980px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;border-radius:18px;background:linear-gradient(140deg,rgba(255,255,255,.1),transparent 34%),var(--surface)}.animal-id-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}.animal-id-card-grid{display:grid;gap:.55rem;grid-template-columns:repeat(2,minmax(180px,1fr)) minmax(180px,220px)}.animal-id-actions{position:sticky;bottom:0;padding-top:.45rem;margin-top:.45rem;border-top:1px solid var(--border);background:var(--surface)}.animal-id-photo{grid-column:3;grid-row:1 / span 5}.animal-id-photo-stack{display:grid;gap:.45rem}.animal-photo-empty{width:100%;min-height:96px;border:1px dashed var(--border);border-radius:10px;display:grid;place-items:center;color:var(--text-muted);background:var(--surface-muted);font-size:.9rem}.animal-thumb{width:40px;height:40px;border-radius:8px;object-fit:cover;border:1px solid var(--border);display:block}.animal-thumb.placeholder{background:var(--surface-muted);border-style:dashed}.animal-thumb.large{width:96px;height:96px}.animal-name-cell{display:inline-flex;align-items:center;gap:.5rem}.husbandry-table-wrap{overflow-x:auto}.husbandry-table{min-width:unset}.husbandry-identity-col{position:sticky;left:0;z-index:2;background:var(--surface);min-width:140px;max-width:160px;border-right:1px solid var(--border)}.selectable-row.selected .husbandry-identity-col{background:var(--surface-muted)}.selectable-row.keyboard-active td{background:color-mix(in srgb,var(--accent) 18%,var(--surface));box-shadow:inset 0 1px color-mix(in srgb,var(--accent) 42%,transparent),inset 0 -1px color-mix(in srgb,var(--accent) 42%,transparent)}.selectable-row.keyboard-active .husbandry-identity-col{background:color-mix(in srgb,var(--accent) 18%,var(--surface));box-shadow:inset 4px 0 0 var(--accent),inset 0 1px color-mix(in srgb,var(--accent) 42%,transparent),inset 0 -1px color-mix(in srgb,var(--accent) 42%,transparent)}.selectable-row.keyboard-active .husbandry-name{color:var(--accent);font-weight:700}.selectable-row.unfed-overdue{background:color-mix(in srgb,#f59e0b 12%,transparent)}.selectable-row.unfed-overdue .husbandry-identity-col{background:color-mix(in srgb,#f59e0b 12%,var(--surface))}.selectable-row.unfed-overdue.selected .husbandry-identity-col{background:color-mix(in srgb,#f59e0b 12%,var(--surface-muted))}.unfed-overdue-cell{color:#b45309;font-weight:600}.unfed-threshold-input{width:5ch!important;min-width:0!important;padding-left:.3rem!important;padding-right:.3rem!important;text-align:center}.husbandry-history{border-top:1px solid var(--border);padding-top:.75rem;margin-top:.5rem}.husbandry-history-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.4rem;margin-bottom:.5rem}.husbandry-history-header h4{margin:0;font-size:.9rem}.husbandry-history-header input{width:9rem;font-size:.82rem;padding:.3rem .5rem}.husbandry-history-table{min-width:unset;width:100%;font-size:.82rem}.husbandry-history-table th,.husbandry-history-table td{padding:.3rem .4rem}.husbandry-history-table th{white-space:normal;word-break:break-word;text-align:center}.husbandry-history-table td{white-space:normal;overflow-wrap:anywhere;word-break:break-word}.husbandry-history-row{cursor:pointer}.husbandry-history-row:hover td{background:var(--surface-muted)}.husbandry-history-row.selected td{background:color-mix(in srgb,var(--accent) 16%,var(--surface))}.sortable-col{cursor:pointer;-webkit-user-select:none;user-select:none}.sortable-col:hover{color:var(--accent)}.husbandry-identity-cell{display:flex;align-items:center;gap:.4rem}.animal-thumb.husbandry-thumb{width:32px;height:32px;flex-shrink:0}.husbandry-identity-text{display:flex;flex-direction:column;min-width:0;line-height:1.2}.husbandry-name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.9rem}.husbandry-sex-icon{font-size:.8rem;font-weight:700}.husbandry-sex-icon.male{color:#326fb2}.husbandry-sex-icon.female{color:#b23d6f}.husbandry-sex-icon.unknown{color:var(--text-muted)}.animal-photo-preview{display:flex;align-items:center;gap:.75rem}.sex-chip{display:inline-flex;align-items:center;gap:.3rem;border:1px solid var(--border);border-radius:999px;padding:.1rem .4rem;background:var(--surface-muted);white-space:nowrap}.sex-chip-icon{font-weight:700}.sex-chip.male .sex-chip-icon{color:#326fb2}.sex-chip.female .sex-chip-icon{color:#b23d6f}.sex-chip.unknown .sex-chip-icon{color:var(--text-muted)}.photo-zoom-trigger{border:0;padding:0;background:transparent;width:fit-content;cursor:zoom-in}.photo-zoom-overlay{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:1rem}.photo-zoom-backdrop{position:absolute;inset:0;border:0;background:#0a0e149e}.photo-zoom-panel{position:relative;z-index:71;margin:0;display:grid;gap:.65rem;justify-items:end;max-width:min(900px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem)}.photo-zoom-panel img{max-width:100%;max-height:calc(100dvh - 5.5rem);object-fit:contain;border-radius:12px;border:1px solid var(--border);background:#111}.checkbox-inline{display:inline-flex;align-items:center;gap:.45rem}.husbandry-search-row{margin-top:.6rem}.husbandry-search-row input{min-width:min(420px,100%)}.husbandry-search-results{margin-top:.85rem;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.6rem}.husbandry-snake-result{border:1px solid var(--border);border-radius:10px;background:var(--surface-muted);padding:.5rem;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.55rem;text-align:left;cursor:pointer}.husbandry-snake-result.active{border-color:var(--accent);box-shadow:var(--shadow)}.husbandry-snake-meta{display:grid;gap:.15rem}.animal-photo-empty.mini{min-height:40px;width:40px;border-radius:8px;font-size:.7rem}.husbandry-form-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.husbandry-form-wide{grid-column:1 / -1}.husbandry-dynamic-fields{display:grid;gap:.65rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.husbandry-form-actions{padding-bottom:.8rem}.husbandry-entry-card{width:min(980px,calc(100vw - 2rem));max-height:min(90dvh,920px);overflow:auto}.husbandry-entry-animal{margin-top:.4rem;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.75rem}.husbandry-entry-thumb{width:64px;height:64px;border-radius:10px}.husbandry-entry-animal-meta h4{margin:0}.husbandry-entry-animal-meta p{margin:.2rem 0 0}.husbandry-entry-meta-top{display:grid;gap:.45rem;min-width:0;align-items:start;justify-items:start;width:100%;max-width:20rem}.husbandry-entry-switcher{display:grid;gap:.45rem;min-width:0;width:100%;max-width:18rem}.husbandry-entry-switcher input{min-width:0;width:100%;font-size:1.05rem;font-weight:600;padding:.45rem .65rem;border-radius:10px}.husbandry-entry-switcher input::placeholder{color:var(--text-muted);opacity:1}.husbandry-entry-switcher-results{display:flex;flex-wrap:wrap;gap:.4rem}.husbandry-entry-switcher-results .button.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 18%,var(--surface));box-shadow:inset 3px 0 0 var(--accent)}.husbandry-entry-switcher-empty{margin:0!important}.husbandry-entry-summary-grid{margin:.65rem 0 .85rem;display:flex;flex-wrap:wrap;gap:.45rem}.gene-calc-panel{gap:.8rem}.gene-calc-parent-grid{display:grid;gap:.8rem;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.gene-calc-parent{border:1px solid var(--border);border-radius:12px;background:var(--surface-muted);padding:.75rem;display:grid;gap:.55rem}.gene-calc-parent h3,.gene-calc-bars h3,.gene-calc-summary h3{margin:0;font-size:1rem}.gene-calc-entry-row{display:grid;gap:.55rem;grid-template-columns:1fr}.gene-calc-suggestions{border:1px solid var(--border);border-radius:10px;max-height:220px;overflow-y:auto;background:var(--surface)}.gene-calc-suggestion{width:100%;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);padding:.5rem .65rem;text-align:left;cursor:pointer;display:flex;justify-content:space-between;gap:.75rem}.gene-calc-suggestion:last-child{border-bottom:0}.gene-calc-suggestion:hover{background:var(--surface-muted)}.gene-calc-suggestion.active{position:relative;background:color-mix(in srgb,var(--accent) 24%,var(--surface));box-shadow:inset 5px 0 0 var(--accent),inset 0 0 0 2px color-mix(in srgb,var(--accent) 55%,transparent);z-index:1}.gene-calc-suggestion.active .gene-calc-type-badge{border-color:color-mix(in srgb,var(--accent) 45%,var(--border));background:color-mix(in srgb,var(--accent) 14%,var(--surface))}.gene-calc-suggestion.active span:first-child{color:var(--accent);font-weight:700}.gene-calc-suggestion.empty{cursor:default}.gene-calc-type-badge{display:inline-flex;align-items:center;border-radius:999px;padding:.12rem .44rem;font-size:.74rem;line-height:1.2;white-space:nowrap}.gene-calc-type-badge.animal{border:1px solid #0f6a4f;background:#e3f8ef;color:#0f6a4f;font-weight:700}.gene-calc-chips{display:flex;flex-wrap:wrap;gap:.45rem}.chip-remove{border:1px solid var(--border);background:var(--surface-muted);color:var(--text);width:1.15rem;height:1.15rem;border-radius:999px;cursor:pointer;padding:0;line-height:1;display:inline-flex;align-items:center;justify-content:center;margin-left:.35rem;font-size:.85rem;font-weight:700}.chip-remove:hover{border-color:var(--danger);color:var(--danger)}.chip-remove:focus-visible{outline:2px solid var(--focus);outline-offset:1px}.gene-calc-mode-chip{border:1px solid var(--border);border-radius:999px;padding:.22rem .6rem;width:fit-content;font-size:.84rem;color:var(--text-muted);background:var(--surface-muted)}.gene-calc-bars{border-top:1px solid var(--border);padding-top:.75rem;display:grid;gap:.65rem}.gene-calc-bar-row{display:grid;gap:.35rem}.gene-calc-bar-head{display:flex;justify-content:space-between;align-items:center;gap:.6rem}.gene-calc-toggle{display:inline-flex;border:1px solid var(--border);border-radius:999px;overflow:hidden;background:var(--surface)}.gene-calc-toggle button{border:0;background:transparent;color:var(--text-muted);padding:.14rem .45rem;font-size:.72rem;cursor:pointer}.gene-calc-toggle button.active{background:var(--brand);color:var(--brand-contrast)}.gene-calc-bar-track{height:16px;border-radius:999px;border:1px solid var(--border);background:var(--surface-muted);overflow:hidden;display:flex}.gene-calc-bar-segment{height:100%;min-width:0}.gene-calc-summary{border-top:1px solid var(--border);padding-top:.75rem;display:grid;gap:.65rem}.gene-calc-sampler{border-top:1px solid var(--border);padding-top:.75rem;display:grid;gap:.75rem}.gene-calc-sampler-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.gene-calc-sampler-head h3{margin:0;font-size:1rem}.gene-calc-sampler-head p{margin:.2rem 0 0}.gene-calc-sampler-controls{display:grid;gap:.75rem;grid-template-columns:minmax(220px,1.4fr) auto auto minmax(130px,.8fr);align-items:end}.gene-calc-sampler-slider-wrap,.gene-calc-sampler-auto,.gene-calc-sampler-interval{display:grid;gap:.35rem;font-weight:600}.gene-calc-sampler-slider-wrap{min-width:0}.gene-calc-sampler-slider{width:100%;accent-color:var(--brand);padding:0}.gene-calc-sampler-count{border:1px solid var(--border);border-radius:999px;background:var(--surface-muted);padding:.5rem .7rem;white-space:nowrap;font-size:.88rem;color:var(--text-muted);align-self:center}.gene-calc-sampler-auto{display:inline-flex;align-items:center;gap:.5rem;align-self:center}.gene-calc-sampler-auto input{width:auto}.gene-calc-sampler-canvas-wrap{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:linear-gradient(180deg,#fff,#f5f4ef);min-height:320px}.gene-calc-sampler-canvas{display:block;width:100%;height:320px}.gene-calc-summary-track{height:48px;border-radius:12px;border:1px solid var(--border);overflow:hidden;display:flex;background:var(--surface-muted)}.gene-calc-summary-segment{border:0;padding:0;min-width:0;height:100%;display:flex;flex-direction:column;background:transparent;cursor:pointer}.gene-calc-summary-segment+.gene-calc-summary-segment{border-left:1px solid color-mix(in srgb,var(--border),#000 20%)}.gene-calc-summary-segment.selected{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--brand),#fff 15%)}.gene-calc-summary-color{flex:1}.gene-calc-summary-list{list-style:none;margin:0;padding:0;display:grid}.gene-calc-summary-item{border-top:1px solid var(--border)}.gene-calc-summary-item button{width:100%;border:0;background:transparent;color:inherit;cursor:pointer;text-align:left;display:grid;gap:.25rem;padding:.45rem .2rem}.gene-calc-summary-item.selected button{background:color-mix(in srgb,var(--brand),transparent 90%)}.gene-calc-summary-pct{font-size:.86rem;color:var(--text-muted)}.gene-calc-summary-tags{display:flex;flex-wrap:wrap;gap:.3rem}.gene-calc-summary-tag{border:1px solid var(--border);border-radius:999px;padding:.1rem .42rem;line-height:1.3;font-size:.84rem;background:var(--surface)}.screen-centered{min-height:100vh;display:grid;place-items:center}@media(max-width:900px){.mobile-nav-toggle{display:inline-flex}.workspace-tabs{display:none;position:absolute;left:0;right:0;top:calc(100% + .4rem);background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);padding:.45rem;z-index:30;max-height:min(60vh,420px);overflow-y:auto}.workspace-tabs.open{display:grid}.workspace-tab{width:100%;text-align:left}.tab-divider{display:none}.mobile-nav-backdrop{position:fixed;inset:0;border:0;background:#060c121a;z-index:10;cursor:default}.user-menu-popover{right:0;left:auto;max-width:min(92vw,320px)}.animal-id-card-grid{grid-template-columns:1fr}.animal-id-photo{grid-column:1;grid-row:auto}.animal-editor-overlay{padding:0;place-items:stretch}.animal-id-card{width:100vw;max-height:100dvh;min-height:100dvh;border-radius:0}.animal-id-card-header{position:sticky;top:0;z-index:1;padding-bottom:.35rem;border-bottom:1px solid var(--border);background:var(--surface)}.animal-id-actions{bottom:max(0px,env(safe-area-inset-bottom));padding-bottom:max(.35rem,env(safe-area-inset-bottom))}.husbandry-entry-card{width:calc(100vw - .75rem);max-width:calc(100vw - .75rem);max-height:calc(100dvh - .75rem);min-height:calc(100dvh - .75rem);margin:0 auto;border-radius:12px}.husbandry-form-grid{grid-template-columns:1fr;align-content:start}.husbandry-dynamic-fields{grid-template-columns:1fr}.husbandry-entry-animal{grid-template-columns:1fr;justify-items:start}.husbandry-entry-meta-top{width:100%;max-width:none}.husbandry-entry-switcher{max-width:none}.husbandry-entry-summary-grid{display:grid;grid-template-columns:1fr}.husbandry-entry-card label,.husbandry-dynamic-fields label{min-width:0;max-width:100%}.husbandry-entry-card input,.husbandry-entry-card select,.husbandry-entry-card textarea{min-width:0;max-width:100%;width:auto}.husbandry-entry-card .chip{width:fit-content;max-width:100%}.husbandry-form-actions{align-items:stretch}.husbandry-form-actions .button{width:100%;justify-content:center}.husbandry-form-actions{position:sticky;bottom:0;z-index:2;background:var(--surface);border-top:1px solid var(--border);padding-top:.5rem;padding-bottom:max(.5rem,env(safe-area-inset-bottom));margin-top:.5rem}.husbandry-search-row{display:grid;grid-template-columns:1fr}.gene-calc-entry-row,.gene-calc-sampler-controls{grid-template-columns:1fr}.gene-calc-sampler-count,.gene-calc-sampler-auto{justify-self:start}}
