[data-nutrition-work] { min-width: 0; }
.feed-settings {
  min-inline-size: 0;
  max-height: none;
  overflow: visible;
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
}
.feed-settings legend, .feed-settings h3 { padding: 0; font-size: 1.08rem; font-weight: 650; }
.feed-guide, .feed-meta, .feed-result-range { color: var(--muted); line-height: 1.5; }
.feed-guide { margin: .35rem 0 1rem; max-width: 75ch; }
.feed-settings .bar { margin-top: 1rem; padding: .85rem 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; }
.feed-settings h3 { margin-top: 1.4rem; }
.feed-settings .plan-fields { align-items: start; max-width: 44rem; }
.feed-settings .plan-fields label, .feed-card label { display: grid; gap: .3rem; min-width: 0; }
.feed-settings details { margin: .85rem 0; }
.feed-settings summary { cursor: pointer; font-weight: 600; color: var(--green); }
.feed-phase-summary { font-variant-numeric: tabular-nums; }
.feed-phase-summary :is(th,td) { text-align: right; padding: .5rem .7rem; }
.feed-phase-summary th:first-child { text-align: left; }
.feed-phase-summary thead th { white-space: normal; min-width: 4.2rem; }
.feed-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,19rem),1fr)); gap: .85rem; margin: 0 0 .9rem; }
.feed-card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  min-width: 0;
  padding: .9rem 1rem;
  border: 1px solid #c9d7cb;
  border-radius: .7rem;
  background: #f8faf8;
}
.feed-card-head, .feed-phase-pick { display: flex; align-items: center; gap: .55rem; }
.feed-card-head { justify-content: space-between; }
.feed-phase-pick label { display: flex; align-items: center; }
.feed-phase-pick select { width: 5.35rem; font-weight: 650; }
.feed-phase-pick i, .feed-legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: .15rem; flex: none; }
.feed-card-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem .8rem; align-items: end; }
.feed-card select, .feed-settings .feed-card input[type=number] { width: 100%; min-width: 0; }
.feed-phase-pick select { width: 5.35rem; }
.feed-card [data-phase-result] { margin-top: auto; }
.feed-amounts { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: .45rem; margin: 0; padding-top: .75rem; border-top: 1px solid var(--line); }
.feed-amounts dt { color: var(--muted); font-size: .84rem; }
.feed-amounts dd { margin: .15rem 0 0; font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.feed-amounts div:first-child dd { color: var(--green); }
.feed-result-range, .feed-meta, .feed-warning { font-size: .875rem; }
.feed-result-range, .feed-warning { margin-top: .35rem; }
.feed-warning { color: #82501d; }
.feed-overview { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(15rem,1fr); gap: 1.1rem; align-items: start; }
.feed-chart, .feed-purchase { min-width: 0; }
.feed-chart { margin: 0; }
.feed-chart figcaption, .feed-daily-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem .8rem; }
.feed-chart figcaption span, .feed-daily-head span { font-size: .875rem; color: var(--muted); }
.feed-plot { display: grid; grid-template-columns: max-content minmax(0,1fr); margin: 1rem 0 .8rem; gap: .4rem .45rem; }
.feed-chart svg { display: block; width: 100%; height: 9rem; overflow: visible; }
.feed-axis-kg, .feed-axis-days { display: flex; justify-content: space-between; color: #43594b; font-size: .84rem; font-variant-numeric: tabular-nums; }
.feed-axis-kg { flex-direction: column; align-items: flex-end; margin-block: -.6em; }
.feed-axis-days { grid-column: 2; }
.feed-gridlines line { stroke: #d6e1d8; }
.feed-legend, .feed-purchase ul { margin: 0; padding: 0; list-style: none; }
.feed-legend { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.feed-legend li { display: flex; gap: .35rem; align-items: center; font-size: .875rem; }
.feed-color-S { fill: #317353; background: #317353; }
.feed-color-G1 { fill: #427c9b; background: #427c9b; }
.feed-color-G2 { fill: #b6782c; background: #b6782c; }
.feed-color-F { fill: #86699c; background: #86699c; }
.feed-color-FK { fill: #718337; background: #718337; }
.feed-color-empty { fill: #b5bcb8; background: #b5bcb8; }
.feed-purchase { border-left: 1px solid var(--line); padding-left: 1.05rem; }
.feed-purchase li { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; padding: .48rem 0; border-bottom: 1px solid var(--line); font-size: .91rem; }
.feed-purchase li span { overflow-wrap: anywhere; }
.feed-purchase strong, .feed-daily-head strong { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--green); }
.feed-daily-head { margin: 1.45rem 0 .35rem; }
.feed-meta { margin: .4rem 0; }
.feed-daily-scroll { max-width: 100%; max-height: 34rem; overflow: auto; margin: .7rem 0; border: 1px solid var(--line); border-radius: .45rem; scrollbar-gutter: stable; }
.feed-daily { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.feed-daily td, .feed-daily th { padding: .52rem .65rem; text-align: right; }
.feed-daily th { font-size: .85rem; letter-spacing: 0; }
.feed-daily thead th { position: sticky; z-index: 1; top: 0; min-width: 4.2rem; white-space: normal; vertical-align: bottom; background: #edf3ed; color: #314e3b; }
.feed-daily tbody th, .feed-daily thead th:first-child { position: sticky; left: 0; z-index: 1; min-width: 3rem; text-align: left; border-right: 1px solid var(--line); }
.feed-daily tbody th { background: #f5f8f4; }
.feed-daily thead th:first-child { z-index: 2; }
.feed-prep-row { background: #f8faf6; }
.feed-zero-row > * { border-top: 2px solid #91af9a; }
.feed-full { font-weight: 650; color: var(--green); }
.feed-daily td.feed-share-cell, .feed-daily td.feed-note-cell { text-align: left; white-space: normal; min-width: 6rem; }
.feed-daily td.feed-note-cell { min-width: 8rem; }
.feed-time tbody th { white-space: normal; }
.feed-axis-panel { margin: 1.1rem 0 1.4rem; border: 1px solid #c4d4c8; border-radius: .75rem; padding: 1rem; background: #fff; }
.axis-top, .axis-nav, .axis-presets, .shipment-head, .shipment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.axis-top, .shipment-head { justify-content: space-between; }
.axis-top h3, .feed-shipments h3 { margin: 0; color: #233e30; }
.axis-top p { margin: .25rem 0 0; color: #506355; font-size: .88rem; }
.axis-presets { gap: .2rem; border: 1px solid #cad7cb; background: #eff4ef; padding: .2rem; border-radius: .6rem; }
.axis-presets .secondary { min-height: 2.15rem; padding: .3rem .65rem; border: 0; background: transparent; color: #375642; }
.axis-presets .secondary[aria-pressed="true"], [data-farm-feeding] button[aria-pressed="true"] { background: #254f38; color: white; }
.axis-row { display: grid; grid-template-columns: minmax(6.5rem,20%) minmax(0,1fr); gap: .8rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid #e7ede7; }
.axis-ruler { margin-top: .8rem; }
.axis-label { display: grid; gap: .12rem; }
.axis-label strong { font-size: .87rem; overflow-wrap: anywhere; }
.axis-label small, .shipment-list small { display: block; color: #586c60; font-size: .76rem; }
.axis-ticks, .axis-cells { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); }
.axis-ticks { align-self: end; font-size: .73rem; font-variant-numeric: tabular-nums; color: #3a5546; }
.axis-ticks span { white-space: nowrap; }
.axis-ticks span:last-child { direction: rtl; }
.axis-fractions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) 0; }
.axis-fractions span:not(:first-child):not(:last-child) { justify-self: start; transform: translateX(-50%); }
.axis-track { position: relative; min-width: 0; height: 1.55rem; background: #f3f6f2; border-radius: .25rem; overflow: hidden; }
.axis-track svg { display: block; width: 100%; height: 100%; }
.axis-guides line { stroke: #cddbcf; stroke-width: 1; vector-effect: non-scaling-stroke; }
.axis-basis { opacity: .23; }
.axis-anchor { stroke: #234d35; stroke-width: 2; vector-effect: non-scaling-stroke; }
.axis-delivery-line, .axis-delivery-dot { stroke: #805222; fill: #bf843b; vector-effect: non-scaling-stroke; }
.axis-delivery-line { stroke-width: 2; }
.axis-cells { position: absolute; inset: 0; }
.axis-cells > span { position: relative; }
.axis-handle { position: absolute; top: 2px; height: calc(100% - 4px); width: min(42%,.6rem); padding: 0; min-height: 0; border: 0; border-radius: .12rem; background: #224a34; cursor: ew-resize; }
.axis-handle.handle-from { left: 0; } .axis-handle.handle-to { right: 0; }
.axis-nav { justify-content: flex-end; margin-top: .7rem; }
.axis-nav label { display: flex; align-items: center; gap: .35rem; font-size: .83rem; }
.axis-nav select, .axis-nav button { min-height: 2rem; padding: .25rem .6rem; }
.feed-copy, [data-calendar] { margin-top: .8rem; }
.feed-copy summary, [data-calendar] summary { cursor: pointer; font-weight: 650; color: var(--green); }
.feed-copy .shipment-actions { margin: .7rem 0; align-items: end; }
.feed-check, .feed-copy label.feed-check { display: flex; align-items: center; gap: .4rem; }
.feed-copy input[type="checkbox"] { width: 1.1rem; height: 1.1rem; }
.feed-shipments { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.2rem; }
.shipment-card { border: 1px solid #c5d4c9; border-radius: .65rem; padding: .9rem; margin: .65rem 0; background: #f8faf7; }
.shipment-card label, .feed-copy .shipment-actions > label:first-child { display: grid; gap: .25rem; min-width: 0; }
.shipment-date, .shipment-line { display: grid; align-items: end; gap: .65rem; }
.shipment-date { grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); max-width: 38rem; margin: .7rem 0; }
.shipment-line { grid-template-columns: minmax(10rem,2fr) minmax(6rem,1fr) minmax(7rem,1fr) auto; border-top: 1px solid var(--line); padding: .7rem 0; }
.shipment-line input,.shipment-line select,.shipment-date input,.shipment-date select { max-width: 100%; width: 100%; }
.shipment-actions { margin-top: .5rem; }
.shipment-list, .shipment-list ul, .farm-phases, .farm-lines { list-style: none; padding: 0; margin: 0; }
.shipment-list > li { display: grid; grid-template-columns: minmax(8rem,1fr) 2fr; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.shipment-list ul li + li { margin-top: .4rem; }
.farm-phases { display: flex; flex-wrap: wrap; gap: .3rem .65rem; }
.farm-phases li { font-size: .8rem; white-space: nowrap; }
.farm-phases i { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .25rem; }
[data-farm-feeding] .table-wrap { max-width: 100%; }
[data-farm-feeding] td, [data-farm-feeding] th { white-space: normal; }
.farm-lines li { padding: .15rem 0; }
.shipment-coverage { margin-top: .8rem; }
.shipment-coverage summary { font-weight: 600; color: var(--green); cursor: pointer; }
@media (max-width: 720px) {
  .shipment-line { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .axis-row { grid-template-columns: minmax(4.6rem,22%) minmax(0,1fr); gap: .35rem; }
  .axis-ticks { font-size: .65rem; }
  .axis-ticks:has(>span:nth-child(30)) span:nth-child(odd):not(:first-child):not(:last-child) { visibility: hidden; }
  .feed-axis-panel { padding: .65rem; }
  .axis-nav { justify-content: flex-start; }
}
@media (max-width: 1050px) {
  .feed-overview { grid-template-columns: minmax(0,1fr); }
  .feed-purchase { padding: .7rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .feed-purchase ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); column-gap: 1.3rem; }
}
@media (max-width: 580px) {
  .feed-card { padding: .8rem; }
  .feed-amounts { gap: .3rem; }
  .feed-amounts dd { font-size: .94rem; }
  .feed-daily td, .feed-daily th { padding: .45rem .5rem; }
  .feed-axis-days span:nth-child(even) { display: none; }
}
.feed-sections { display:flex; flex-wrap:wrap; gap:.55rem; margin:.65rem 0 1.3rem; }
.feed-sections a { display:inline-flex; align-items:center; color:#234b38; background:#fff; font-weight:650; text-decoration:none; border:1px solid #bfcdc2; border-radius:.55rem; padding:.66rem .9rem; }
.feed-sections a:hover,.feed-sections a:focus-visible { border-color:#327353; background:#ecf4ed; }
.feed-sections a[aria-current=page] { color:#fff;background:#23573e; border-color:#23573e; }
.feed-pin,.feed-agree { display:flex!important; flex-direction:row!important; align-items:center; gap:.45rem; }
.feed-pin input,.feed-agree input { width:1.1rem!important; height:1.1rem; margin:0; accent-color:#23573e; }
.feed-card-fields output { display:block; padding:.55rem; border:1px solid var(--line); border-radius:.35rem; background:#edf3ec; font-weight:650; min-height:2.15rem; }
.feed-order-card { border:1px solid var(--line); border-radius:.65rem; padding:1rem; background:#fff; margin-bottom:.75rem; }
.feed-order-card:last-child { margin-bottom:0; }
.feed-order-head,.feed-order-actions { display:flex; gap:.65rem 1.2rem; flex-wrap:wrap; align-items:center; }
.feed-order-head { justify-content:space-between; align-items:baseline; }
.feed-order-head h3,.feed-order-head p { margin:0; }
.feed-order-head strong { font-size:.89rem; color:#315c44; }
.feed-order-actions { margin-top:.8rem; }
.feed-order-card summary { cursor:pointer; color:#284e37; font-weight:650; }
