:root{--bg: #F5F7F6;--surface: #FFFFFF;--surface-sunken: #EEF2F0;--border: #DFE5E2;--border-strong: #C9D3CF;--ink: #10231C;--ink-muted: #4F5F58;--ink-subtle: #63736C;--brand: #0B7A4B;--brand-hover: #075C38;--on-brand: #FFFFFF;--brand-soft: #EAF5EF;--brand-soft-ink: #0A5C39;--action: #2563EB;--on-action: #FFFFFF;--action-soft: #DBE7FE;--action-soft-ink: #1741A6;--ready: #1F9D63;--ready-soft: #DDF3E7;--ready-ink: #0A5C39;--recovering: #F0B93A;--recovering-soft: #FCEFCB;--recovering-ink: #7A5200;--overdue: #E8781A;--overdue-soft: #FDE4CC;--overdue-ink: #8A3F00;--neutral: #C9D3CF;--neutral-soft: #E7EBE9;--neutral-ink: #3F4D47;--danger: #C8372D;--on-danger: #FFFFFF;--danger-soft: #FBE4E1;--danger-ink: #8E1F17;--map-ground: #2F4A3A;--on-map: #FFFFFF;--shadow-card: 0 1px 2px rgba(16,35,28,.06);--shadow-pop: 0 12px 32px rgba(16,35,28,.12);--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--space-10: 40px;--control-h: 44px;--radius-sm: 6px;--radius-md: 10px;--radius-lg: 16px;--radius-pill: 999px;--font-display: Manrope, "Segoe UI", system-ui, sans-serif;--font-sans: Inter, "Segoe UI", system-ui, sans-serif}:root[data-theme=dark]{--bg: #0E1613;--surface: #16211D;--surface-sunken: #1D2A25;--border: #2A3A34;--border-strong: #3B4F47;--ink: #EAF1EE;--ink-muted: #A5B5AE;--ink-subtle: #8A9B94;--brand: #35C283;--brand-hover: #5AD59D;--on-brand: #062415;--brand-soft: #153326;--brand-soft-ink: #8FE3BC;--action: #6C9BFF;--on-action: #0A1A3D;--action-soft: #1B2C52;--action-soft-ink: #B3CBFF;--ready: #34B27B;--ready-soft: #123A28;--ready-ink: #8FE3BC;--recovering: #F0B93A;--recovering-soft: #40300B;--recovering-ink: #FFD27A;--overdue: #F5A04B;--overdue-soft: #4A2A0E;--overdue-ink: #FFC58A;--neutral: #8FA59C;--neutral-soft: #24322D;--neutral-ink: #C4D2CC;--danger: #F0695E;--on-danger: #3A0B07;--danger-soft: #4A1B17;--danger-ink: #FFB4AC;--map-ground: #0E241C;--on-map: #FFFFFF;--shadow-card: 0 1px 2px rgba(0,0,0,.4);--shadow-pop: 0 12px 32px rgba(0,0,0,.5)}.cc,.cc *{box-sizing:border-box}.cc{font-family:var(--font-sans);font-size:15px;line-height:22px;color:var(--ink);font-variant-numeric:tabular-nums}.cc-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);height:var(--control-h);padding:0 18px;border:1px solid transparent;border-radius:var(--radius-md);background:var(--brand);color:var(--on-brand);font-family:var(--font-sans);font-size:14px;font-weight:600;line-height:1;cursor:pointer;white-space:nowrap;text-decoration:none}.cc-btn:hover{background:var(--brand-hover)}.cc-btn:focus-visible,.cc-input:focus-visible,.cc-tab:focus-visible,.cc-nav-item:focus-visible{outline:2px solid var(--action);outline-offset:2px}.cc-btn--secondary{background:var(--surface);color:var(--ink);border-color:var(--border-strong)}.cc-btn--secondary:hover{background:var(--surface-sunken)}.cc-btn--ghost{background:transparent;color:var(--brand)}.cc-btn--ghost:hover{background:var(--brand-soft)}.cc-btn--danger{background:var(--danger);color:var(--on-danger)}.cc-btn--danger:hover{background:var(--danger);filter:brightness(.92)}.cc-btn--sm{height:32px;padding:0 12px;font-size:13px}.cc-btn--block{display:flex;width:100%}.cc-btn[disabled]{background:var(--surface-sunken);color:var(--ink-subtle);border-color:var(--border);cursor:not-allowed}.cc-field{display:flex;flex-direction:column;gap:6px;min-width:0}.cc-label{font-size:12px;line-height:16px;font-weight:600;color:var(--ink-muted)}.cc-input{height:var(--control-h);width:100%;padding:0 12px;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);color:var(--ink);font-family:var(--font-sans);font-size:15px}.cc-input::placeholder{color:var(--ink-subtle)}textarea.cc-input{height:auto;padding:10px 12px;line-height:22px}.cc-help{font-size:12px;line-height:16px;color:var(--ink-muted)}.cc-field--error .cc-input{border-color:var(--danger)}.cc-field--error .cc-help{color:var(--danger-ink)}.cc-input-row{display:flex;align-items:center;gap:var(--space-2)}.cc-suffix{font-size:13px;color:var(--ink-muted)}.cc-check{display:inline-flex;align-items:center;gap:var(--space-2);min-height:44px;font-size:14px;color:var(--ink)}.cc-check input{width:18px;height:18px;accent-color:var(--brand)}.cc-switch{position:relative;display:inline-block;width:40px;height:24px;border-radius:var(--radius-pill);background:var(--border-strong);flex:none}.cc-switch:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:var(--radius-pill);background:var(--surface)}.cc-switch--on{background:var(--brand)}.cc-switch--on:after{left:19px}.cc-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:var(--radius-pill);background:var(--neutral-soft);color:var(--neutral-ink);font-size:12px;line-height:16px;font-weight:600;white-space:nowrap}.cc-badge--ready{background:var(--ready-soft);color:var(--ready-ink)}.cc-badge--recovering{background:var(--recovering-soft);color:var(--recovering-ink)}.cc-badge--overdue{background:var(--overdue-soft);color:var(--overdue-ink)}.cc-badge--occupied{background:var(--action-soft);color:var(--action-soft-ink)}.cc-badge--danger{background:var(--danger-soft);color:var(--danger-ink)}.cc-badge--brand{background:var(--brand-soft);color:var(--brand-soft-ink)}.cc-dot{width:10px;height:10px;border-radius:3px;background:var(--neutral);flex:none}.cc-dot--ready{background:var(--ready)}.cc-dot--recovering{background:var(--recovering)}.cc-dot--overdue{background:var(--overdue)}.cc-dot--occupied{background:var(--action)}.cc-dot--danger{background:var(--danger)}.cc-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-5);display:flex;flex-direction:column;gap:var(--space-4);min-width:0}.cc-card--flush{padding:0;overflow:hidden}.cc-card-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3)}.cc-well{background:var(--surface-sunken);border-radius:var(--radius-md);padding:var(--space-3);display:flex;flex-direction:column;gap:2px}.cc-h1{margin:0;font-family:var(--font-display);font-size:28px;line-height:34px;font-weight:800;letter-spacing:-.01em}.cc-h2{margin:0;font-family:var(--font-display);font-size:20px;line-height:26px;font-weight:700}.cc-h3{margin:0;font-family:var(--font-display);font-size:16px;line-height:22px;font-weight:700}.cc-muted{color:var(--ink-muted)}.cc-sm{font-size:13px;line-height:18px}.cc-strong{font-weight:600}.cc-metric{display:flex;flex-direction:column;gap:2px;min-width:0}.cc-metric-label{font-size:12px;line-height:16px;font-weight:600;color:var(--ink-muted)}.cc-metric-value{font-family:var(--font-display);font-size:26px;line-height:30px;font-weight:700}.cc-metric--sm .cc-metric-value{font-size:18px;line-height:24px}.cc-metric-note{font-size:11px;line-height:14px;font-weight:500;color:var(--ink-muted)}.cc-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}.cc-up{color:var(--ready-ink)}.cc-down{color:var(--danger-ink)}.cc-range{display:flex;flex-direction:column;gap:6px}.cc-range-ends{display:flex;justify-content:space-between;font-size:11px;line-height:14px;font-weight:500;color:var(--ink-muted)}.cc-range-track{height:8px;border-radius:var(--radius-pill);background:var(--surface-sunken);overflow:hidden}.cc-range-fill{height:100%;border-radius:var(--radius-pill);background:var(--brand)}.cc-range-fill--recovering{background:var(--recovering)}.cc-range-fill--overdue{background:var(--overdue)}.cc-range-fill--danger{background:var(--danger)}.cc-table-wrap{overflow-x:auto}.cc-table{width:100%;border-collapse:collapse;font-size:14px;line-height:20px}.cc-table th{text-align:left;padding:10px var(--space-4);background:var(--surface-sunken);color:var(--ink-muted);font-size:12px;line-height:16px;font-weight:600;white-space:nowrap}.cc-table td{padding:var(--space-3) var(--space-4);border-top:1px solid var(--border);vertical-align:middle}.cc-table .cc-num{text-align:right}.cc-table tbody tr:hover td{background:var(--bg)}.cc-link{color:var(--brand);font-weight:600;text-decoration:none}.cc-link:hover{color:var(--brand-hover);text-decoration:underline}.cc-tabs{display:flex;gap:var(--space-1);border-bottom:1px solid var(--border)}.cc-tab{padding:10px 14px;border:0;background:none;border-bottom:2px solid transparent;margin-bottom:-1px;color:var(--ink-muted);font-family:var(--font-sans);font-size:14px;font-weight:600;cursor:pointer;text-decoration:none}.cc-tab--active{color:var(--brand);border-bottom-color:var(--brand)}.cc-seg{display:inline-flex;padding:3px;gap:2px;border-radius:var(--radius-md);background:var(--surface-sunken)}.cc-seg-item{padding:7px 12px;border:0;border-radius:7px;background:none;color:var(--ink-muted);font-family:var(--font-sans);font-size:13px;font-weight:600;cursor:pointer}.cc-seg-item--active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-card)}.cc-app{display:flex;flex-direction:column;background:var(--bg);min-height:100%}.cc-topbar{height:56px;padding:0 var(--space-5);display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);background:var(--surface);border-bottom:1px solid var(--border)}.cc-logo{font-family:var(--font-display);font-size:17px;font-weight:800;letter-spacing:-.01em;color:var(--ink)}.cc-logo span{color:var(--brand)}.cc-avatar{width:32px;height:32px;border-radius:var(--radius-pill);background:var(--brand-soft);color:var(--brand-soft-ink);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;flex:none}.cc-body{flex:1;display:flex;flex-wrap:wrap;min-height:0}.cc-nav{flex:0 0 196px;padding:var(--space-4) 10px;display:flex;flex-direction:column;gap:2px;background:var(--surface);border-right:1px solid var(--border)}.cc-nav-item{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);padding:10px 12px;border-radius:var(--radius-md);color:var(--neutral-ink);font-size:14px;font-weight:500;text-decoration:none}.cc-nav-item:hover{background:var(--surface-sunken)}.cc-nav-item--active{background:var(--brand-soft);color:var(--brand-soft-ink);font-weight:600}.cc-nav-section{padding:14px 12px 6px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-muted)}.cc-count{min-width:20px;padding:1px 6px;border-radius:var(--radius-pill);background:var(--danger-soft);color:var(--danger-ink);font-size:11px;font-weight:600;text-align:center}.cc-main{flex:999 1 560px;min-width:0;padding:var(--space-6);display:flex;flex-direction:column;gap:var(--space-6)}.cc-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-4);flex-wrap:wrap}.cc-toolbar{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap}.cc-grid{display:grid;gap:var(--space-4);grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.cc-row{display:flex;gap:var(--space-4);flex-wrap:wrap}.cc-col{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}.cc-alert{display:flex;align-items:flex-start;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-radius:var(--radius-md);background:var(--recovering-soft);color:var(--recovering-ink);font-size:14px;line-height:20px}.cc-alert--danger{background:var(--danger-soft);color:var(--danger-ink)}.cc-alert--info{background:var(--action-soft);color:var(--action-soft-ink)}.cc-alert--ok{background:var(--ready-soft);color:var(--ready-ink)}.cc-alert-body{flex:1;min-width:0}.cc-list{display:flex;flex-direction:column}.cc-list-row{display:flex;align-items:center;gap:var(--space-3);min-height:60px;padding:var(--space-3) var(--space-4);border-top:1px solid var(--border);color:var(--ink);text-decoration:none}.cc-list-row:first-child{border-top:0}.cc-list-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.cc-list-title{font-size:15px;line-height:20px;font-weight:600}.cc-list-sub{font-size:13px;line-height:18px;color:var(--ink-muted)}.cc-map{position:relative;background:var(--map-ground);overflow:hidden;min-height:320px}.cc-map svg{display:block;width:100%;height:100%}.cc-map-legend{position:absolute;left:12px;bottom:12px;display:flex;flex-wrap:wrap;gap:10px;padding:8px 12px;border-radius:var(--radius-md);background:var(--surface);color:var(--ink);font-size:11px;font-weight:500;box-shadow:var(--shadow-pop)}.cc-map-legend span{display:inline-flex;align-items:center;gap:5px}.cc-map-tools{position:absolute;left:12px;top:12px;display:flex;flex-direction:column;gap:6px}.cc-map-tool{width:40px;height:40px;border:0;border-radius:var(--radius-md);background:var(--surface);color:var(--ink);font-family:var(--font-sans);font-size:16px;font-weight:600;box-shadow:var(--shadow-pop);cursor:pointer;display:flex;align-items:center;justify-content:center}.cc-map-tool--active{background:var(--brand);color:var(--on-brand)}.cc-paddock{stroke:var(--on-map);stroke-width:1.5;fill:var(--neutral);fill-opacity:.55}.cc-paddock--ready{fill:var(--ready);fill-opacity:.8}.cc-paddock--recovering{fill:var(--recovering);fill-opacity:.82}.cc-paddock--overdue{fill:var(--overdue);fill-opacity:.8}.cc-paddock--crop{stroke-dasharray:5 4}.cc-paddock--danger{fill:var(--danger);fill-opacity:.8}.cc-paddock--occupied{stroke:var(--action);stroke-width:4}.cc-paddock-name{font-family:var(--font-sans);font-size:11px;font-weight:600;fill:var(--on-map);text-anchor:middle}.cc-lot-chip{fill:var(--action)}.cc-lot-chip-text{font-family:var(--font-sans);font-size:10.5px;font-weight:600;fill:var(--on-action);text-anchor:middle}.cc-panel{flex:0 0 300px;background:var(--surface);border-left:1px solid var(--border);padding:var(--space-5);display:flex;flex-direction:column;gap:var(--space-4);min-width:0}.cc-dialog{width:100%;max-width:480px;background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-pop);padding:var(--space-6);display:flex;flex-direction:column;gap:var(--space-4)}.cc-dialog-actions{display:flex;justify-content:flex-end;gap:var(--space-2);flex-wrap:wrap}.cc-empty{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-3);padding:var(--space-8);border:1px dashed var(--border-strong);border-radius:var(--radius-lg);background:var(--surface)}.cc-bar{fill:var(--brand)}.cc-bar--muted{fill:var(--neutral)}.cc-line{fill:none;stroke:var(--brand);stroke-width:2}.cc-area{fill:var(--brand-soft)}.cc-gridline{stroke:var(--border);stroke-width:1}.cc-axis{font-family:var(--font-sans);font-size:10px;fill:var(--ink-muted)}.cc-phone{width:390px;background:var(--bg);display:flex;flex-direction:column}.cc-phone-head{padding:var(--space-4);display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);background:var(--surface);border-bottom:1px solid var(--border)}.cc-phone-body{flex:1;padding:var(--space-4);display:flex;flex-direction:column;gap:var(--space-4);min-height:0}.cc-tabbar{display:flex;background:var(--surface);border-top:1px solid var(--border)}.cc-tabbar-item{flex:1;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--ink-muted);font-size:11px;font-weight:600;text-decoration:none}.cc-tabbar-item--active{color:var(--brand)}.cc-sync{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:var(--radius-pill);background:var(--recovering-soft);color:var(--recovering-ink);font-size:12px;font-weight:600}.cc-sync--ok{background:var(--ready-soft);color:var(--ready-ink)}.cc-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.cc-topbar-group{display:flex;align-items:center;gap:var(--space-3);min-width:0}.cc-card--flush>.cc-card-head{padding:var(--space-4) var(--space-5) 0}ul.cc-list{margin:0;padding:0;list-style:none}.cc-list-item+.cc-list-item>.cc-list-row{border-top:1px solid var(--border)}button.cc-list-row{width:100%;border-left:0;border-right:0;border-bottom:0;background:none;font:inherit;text-align:left;cursor:pointer}.cc-list-row:focus-visible{outline:2px solid var(--action);outline-offset:-2px}.cc-check .cc-switch-input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.cc-switch-input:focus-visible+.cc-switch{outline:2px solid var(--action);outline-offset:2px}.cc-switch-input:disabled+.cc-switch{opacity:.5}.cc-scrim{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:var(--space-4);background:#10231c73}.cc-scrim>.cc-dialog{max-height:100%;overflow-y:auto}.cc-dialog:focus{outline:none}@media(max-width:599px){.cc-scrim{align-items:flex-end;padding:0}.cc-scrim>.cc-dialog{max-width:none;border-radius:var(--radius-lg) var(--radius-lg) 0 0;padding:var(--space-5) var(--space-4)}.cc-scrim .cc-dialog-actions{flex-direction:column-reverse}.cc-scrim .cc-dialog-actions>*{width:100%}}html,body,#root{height:100%}body{margin:0;background:var(--bg)}.app-auth{min-height:100%;display:flex;justify-content:center;padding:var(--space-10) var(--space-4) var(--space-8)}.app-auth-column{width:100%;max-width:420px;display:flex;flex-direction:column;gap:var(--space-5)}.app-auth-card{gap:var(--space-5)}.app-auth-footer{display:flex;justify-content:center;align-items:center;gap:var(--space-2);flex-wrap:wrap}.app-auth-link{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:0 var(--space-2)}@media(max-width:599px){.app-auth{padding-top:var(--space-6)}}.app-form{max-width:560px}.app-form-intro{margin:0}.app-form-actions{justify-content:flex-end}.app-frame{min-height:100%}.app-plain-main{width:100%;max-width:720px;margin:0 auto}.app-org-group{gap:var(--space-3)}.cc-topbar .cc-logo{flex:none}.cc-topbar>.cc-topbar-group:first-child{min-width:0}.cc-topbar>.cc-topbar-group:last-child{flex:none}.app-farm-switch{display:inline-flex;align-items:center;min-width:0;min-height:44px;padding:0 var(--space-3);border-radius:var(--radius-md);color:var(--ink);font-weight:600;text-decoration:none}.app-farm-switch:hover{background:var(--surface-sunken)}.app-farm-switch:focus-visible{outline:2px solid var(--action);outline-offset:2px}.app-farm-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-user{position:relative;flex:none}.app-user-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:var(--radius-pill);background:none;cursor:pointer}.app-user-button:focus-visible{outline:2px solid var(--action);outline-offset:2px}.app-user-menu{position:absolute;top:calc(100% + var(--space-2));right:0;z-index:50;width:240px;max-width:calc(100vw - 2 * var(--space-4));display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-4);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-pop)}.app-user-email{overflow-wrap:anywhere}@media(max-width:599px){.cc-topbar{padding:0 var(--space-3);gap:var(--space-2)}.cc-topbar-group{gap:var(--space-1)}.cc-main{padding:var(--space-4)}}.herd-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--space-3);margin-bottom:var(--space-4)}.herd-toolbar>.cc-field,.herd-toolbar>.cc-btn{flex:none}.herd-search{display:flex;align-items:flex-end;gap:var(--space-2);flex:1 1 280px;min-width:0}.herd-search>.cc-field{flex:1;min-width:0}.herd-saved{display:flex;align-items:flex-end;gap:var(--space-2);flex-wrap:wrap}.herd-filters{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--space-3);margin-bottom:var(--space-4)}.herd-filters-end{display:flex;align-items:flex-end}.herd-range,.herd-fieldset{border:0;margin:0;padding:0;min-width:0}.herd-range{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-2)}.herd-range legend{grid-column:1 / -1;margin-bottom:var(--space-1)}.herd-fieldset{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4)}.herd-fieldset legend{width:100%;margin-bottom:var(--space-1)}.herd-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}.herd-summary>p{margin:0}.herd-bulk{flex-wrap:wrap}.herd-cell-sub{display:block;font-size:12px}.cc-table .cc-num{white-space:nowrap}.herd-pager{display:flex;align-items:center;justify-content:center;gap:var(--space-3);margin-top:var(--space-4)}.herd-row-link{border:0;padding:0;background:none;color:var(--brand);font:inherit;font-weight:600;cursor:pointer;text-align:left}.herd-head-link{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--space-2)}.herd-picker{display:flex;gap:var(--space-2);flex-wrap:wrap}.herd-picker>select{flex:1 1 200px;min-width:0}.herd-form{max-width:880px}.herd-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:var(--space-4)}.herd-form-wide{grid-column:1 / -1}.herd-form textarea.cc-input{min-height:88px;resize:vertical}.herd-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--space-4);margin:0}.herd-facts div{min-width:0}.herd-facts dt{color:var(--ink-muted);font-size:12px;font-weight:600}.herd-facts dd{margin:var(--space-1) 0 0;overflow-wrap:anywhere}.herd-section{margin-top:var(--space-6);display:flex;flex-direction:column;gap:var(--space-3)}.herd-section>h2{margin:0}.herd-weigh-head,.herd-section-card{margin-bottom:var(--space-4);display:flex;flex-direction:column;gap:var(--space-3)}.herd-check-cell{display:flex;align-items:flex-end}.herd-weigh-tag{margin-bottom:var(--space-4);max-width:480px}.herd-weigh-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:var(--space-2) var(--space-4)}.herd-weigh-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-2) 0;border-bottom:1px solid var(--border);min-width:0}.herd-weigh-tag-label{min-width:0;overflow-wrap:anywhere}.herd-weigh-input{flex:0 0 140px}.herd-weigh-input>.cc-input{min-width:0;text-align:right}.herd-unweighed{margin:0;overflow-wrap:anywhere}@media(max-width:599px){.herd-toolbar>.cc-field,.herd-saved,.herd-saved>.cc-field{flex:1 1 100%}.herd-saved>.cc-btn{flex:1 1 auto}}.herd-chart{width:100%;min-width:0}.herd-chart .herd-chart-weight .recharts-line-curve,.herd-chart .herd-chart-weight .recharts-dot{stroke:var(--brand)}.herd-chart .herd-chart-weight .recharts-dot{fill:var(--surface);stroke-width:2}.herd-chart .herd-chart-projection .recharts-line-curve{stroke:var(--ink-muted)}.herd-chart .herd-chart-label,.herd-chart .herd-chart-tick{fill:var(--ink-muted);font-size:12px}.herd-chart .herd-chart-grid line{stroke:var(--border)}.herd-tabs{max-width:100%;overflow-x:auto}.herd-tabs .cc-tab{min-height:44px}.herd-facts dd>a.cc-link{display:inline-flex;align-items:center;min-height:44px;min-width:44px}@media(max-width:599px){.herd-weigh-page{padding-bottom:50vh}}.herd-fieldset>.herd-form-grid{flex:1 1 100%}.herd-purchase-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-3)}.herd-purchase-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:var(--space-3);align-items:end;padding-bottom:var(--space-3);border-bottom:1px solid var(--border)}.herd-chosen{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-3)}.herd-chosen>p{margin:0}.herd-section-card>.herd-search{flex:none}.fin-page{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}.fin-sections{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--border)}.fin-section{min-height:44px;display:inline-flex;align-items:center}.fin-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:var(--space-3);align-items:end}.fin-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--space-4)}.fin-form-wide{grid-column:1 / -1}.fin-fieldset{border:0;margin:0;padding:0;min-width:0;display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4)}.fin-fieldset legend{width:100%;margin-bottom:var(--space-1)}.fin-money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.fin-in{color:var(--ready-ink)}.fin-out{color:var(--danger-ink)}.fin-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}.fin-row-link{border:0;padding:0;background:none;color:var(--brand);font:inherit;font-weight:600;cursor:pointer;text-align:left}.fin-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:var(--space-3)}.fin-tree{list-style:none;margin:0;padding:0}.fin-tree ul{list-style:none;margin:0;padding-left:var(--space-5)}.fin-tree-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);min-height:44px;border-bottom:1px solid var(--border)}.fin-tree-name{font-weight:600;overflow-wrap:anywhere}.fin-chart{width:100%;height:280px;min-width:0}.fin-preview td,.fin-preview th{white-space:nowrap}.fin-section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--space-2)}.handling-page{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}.handling-page>p{margin:0}.handling-filters,.handling-toolbar{display:flex;flex-wrap:wrap;gap:var(--space-3);align-items:flex-end}.handling-filters>.cc-field{flex:1 1 160px;min-width:0}.handling-note{overflow-wrap:anywhere;white-space:normal;max-width:40ch}.handling-cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-3)}.handling-cards .handling-note{max-width:none;margin:var(--space-2) 0 0}.handling-card-head{display:flex;align-items:center;gap:var(--space-2)}.handling-card-line{margin:var(--space-1) 0 0}.handling-card-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-3)}.handling-highlight{outline:2px solid var(--action);outline-offset:-2px}.handling-form{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}.handling-form .cc-card{display:flex;flex-direction:column;gap:var(--space-3);min-width:0}.handling-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));gap:var(--space-3)}.handling-picker,.handling-details{display:flex;flex-direction:column;gap:var(--space-3);min-width:0}.handling-procedure,.handling-animals{border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--space-3);margin:0;min-width:0}.handling-procedure legend,.handling-animals legend{padding:0 var(--space-1);font-weight:600}.handling-animals{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4)}.handling-procedure-foot,.handling-form-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:var(--space-3);margin-top:var(--space-3)}.handling-total{font-weight:600}.handling-hits{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--space-2)}.handling-recent{display:flex;flex-direction:column;gap:var(--space-2)}.handling-form .cc-seg{flex-wrap:wrap}.handling-animal-tabs{display:flex;flex-direction:column;gap:var(--space-4);margin-top:var(--space-6);min-width:0}.handling-inline{display:flex;gap:var(--space-2);align-items:center}.handling-inline>.cc-input{width:8ch;min-width:0}.handling-checks{flex-direction:column;flex-wrap:nowrap}.handling-check-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-3)}.handling-check-tag{min-width:8ch;font-weight:600}.handling-conflict{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:var(--space-3)}.handling-conflict-side{display:flex;flex-direction:column;gap:var(--space-1);padding:var(--space-3);border:1px solid var(--border);border-radius:var(--radius-md);min-width:0}.handling-conflict-side .cc-btn{margin-top:var(--space-2);align-self:flex-start}.handling-form .cc-seg-item{min-height:44px}.handling-select-box .cc-check{min-width:44px;min-height:44px;justify-content:center}.handling-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-3)}.handling-col{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-3);border:1px solid var(--border);border-radius:var(--radius-md);min-width:0}.handling-cow-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-2)}.handling-cow{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-radius:var(--radius-md);overflow-wrap:anywhere}.handling-bars{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-2)}.handling-bars li{display:grid;grid-template-columns:9ch minmax(0,1fr) 8ch;align-items:center;gap:var(--space-2)}.handling-bar-track{height:12px;border-radius:var(--radius-md);background:var(--surface-sunken);overflow:hidden}.handling-bar{display:block;height:100%;background:var(--action)}.handling-bar-value{text-align:right}.handling-page .cc-tab,.handling-animal-tabs .cc-tab{min-height:44px}.handling-back{display:inline-flex;align-items:center;min-height:44px}.app-credits{display:flex;flex-direction:column;gap:var(--space-1)}.app-credit-line{margin:0 0 var(--space-1)}.app-credit-link{display:flex;align-items:center;min-height:44px}.app-nav-items{position:relative;display:flex;flex-direction:column;gap:2px}@media(max-width:719px){.cc-app .cc-body{align-content:flex-start}.cc-app .cc-nav{flex:1 1 100%;min-width:0;padding:var(--space-2) 0;border-right:0;border-bottom:1px solid var(--border)}.app-nav-items{flex-direction:row;gap:var(--space-1);overflow-x:auto;padding:0 var(--space-3);scrollbar-width:none}.app-nav-items::-webkit-scrollbar{display:none}.app-nav-items .cc-nav-item{flex:none;min-height:44px;white-space:nowrap}.cc-app .cc-main{flex-basis:100%}}.app-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;height:44px;border:0;border-radius:var(--radius-md, 8px);background:transparent;color:var(--ink);cursor:pointer}.app-bell:hover{background:var(--surface-muted, rgb(0 0 0 / .05))}.app-bell-count{position:absolute;top:4px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--danger);color:#fff;font-size:11px;font-weight:600;line-height:18px;text-align:center}.app-alert-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}.app-alert-item{border-top:1px solid var(--border)}.app-alert-item:first-child{border-top:0}.app-alert-link{display:flex;flex-direction:column;gap:2px;min-height:44px;padding:var(--space-3) 0;color:inherit;text-decoration:none;overflow-wrap:anywhere}.app-alert-link:hover .app-alert-title{text-decoration:underline}
