.harvest-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px, .38fr);gap:20px;align-items:start;margin:20px 0}
.harvest-panel{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.harvest-panel h2,.harvest-panel h3{margin:0;font-size:1rem;font-weight:700}
.harvest-panel-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:20px 24px;border-bottom:1px solid var(--line)}
.harvest-panel-header p{margin:0;color:var(--muted);font-size:.8rem}
.harvest-layout .harvest-form{margin:0;padding:0}
.harvest-form fieldset.harvest-form-body{padding:20px 24px 0}
.harvest-form .ui-field{margin:0;min-width:0}
.harvest-type-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.harvest-type-option{display:flex;align-items:flex-start;gap:12px;text-align:left;border:2px solid var(--line);border-radius:12px;padding:16px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer;min-width:0}
.harvest-type-option svg{width:20px;height:20px;flex:none;color:var(--input-line);margin-top:2px}
.harvest-type-option b{display:block;font-size:.95rem}.harvest-type-option small{display:block;color:var(--muted);font-size:.8rem;margin-top:4px}
.harvest-type-option[aria-pressed=true]{border-color:var(--accent);background:var(--ok-bg)}.harvest-type-option[aria-pressed=true] svg{color:var(--accent)}
.harvest-type-option:disabled{cursor:default;opacity:.55}.harvest-type-option:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.harvest-form-hint{font-size:.8rem;color:var(--muted);margin:12px 0 0}
.harvest-form-section{border-top:1px solid var(--line);margin-top:20px;padding:20px 0}
.harvest-form-section+.harvest-form-section{margin-top:0}
.harvest-form-section h3{margin-bottom:16px}.harvest-section-title{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:16px}.harvest-section-title h3{margin:0}.harvest-section-title p{margin:0;font-size:.75rem;color:var(--muted)}
.harvest-weight-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;align-items:start}
.harvest-weight-grid .ui-field>label{font-size:.85rem}
.harvest-after-preview{background:var(--field);color:var(--muted);border-radius:10px;padding:10px 14px;margin:14px 0 0;font-size:.8rem;overflow-wrap:anywhere}
.harvest-form .harvest-quality{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0}
.harvest-quality>.harvest-choice{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:center}.harvest-quality>.harvest-choice>b{margin:0}
.harvest-choice>b{display:block;margin-bottom:10px;font-size:.85rem;font-weight:500;color:var(--muted)}
.harvest-choice .ui-segment{display:flex;flex-wrap:wrap;border:0;padding:0;gap:8px;background:none}
.harvest-choice .ui-segment button{border:1px solid var(--input-line);border-radius:999px;padding:8px 14px;background:var(--paper);color:var(--ink);box-shadow:none;font-size:.85rem}
.harvest-choice .ui-segment button[aria-pressed=true]{border-color:var(--accent);background:var(--ok-bg);color:var(--ok);box-shadow:inset 0 0 0 1px var(--accent);font-weight:700}
.harvest-choice.has-danger .ui-segment button[aria-pressed=true]{background:var(--bad-bg);color:var(--bad);border-color:var(--bad);box-shadow:inset 0 0 0 1px var(--bad)}
.harvest-choice.has-warning .ui-segment button[aria-pressed=true]{background:var(--warn-bg);color:var(--warn);border-color:var(--warn);box-shadow:inset 0 0 0 1px var(--warn)}
.harvest-diseases{display:grid;gap:12px;margin-left:134px;padding-left:16px;border-left:3px solid var(--bad);min-width:0}.harvest-disease-heading{font-size:.85rem;color:var(--bad)}.harvest-disease-heading span{color:var(--muted)}.harvest-diseases .ui-chips{flex-wrap:wrap}.harvest-diseases .ui-chips button{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;border-color:var(--input-line);color:var(--ink)}.harvest-diseases .ui-chips button[aria-pressed=true]{background:var(--bad-bg);color:var(--bad);border-color:var(--bad);box-shadow:inset 0 0 0 1px var(--bad);font-weight:700}.harvest-diseases .ui-chips svg{width:16px;height:16px;flex:none}
.harvest-sale-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:'buyer price amount' 'payment credit .' 'note note note';gap:20px;align-items:start}
.harvest-sale-buyer{grid-area:buyer}.harvest-sale-price{grid-area:price}
.harvest-sale-amount{grid-area:amount;display:grid;gap:6px;min-width:0}.harvest-sale-amount-label{font-size:var(--type-label);font-weight:500}
.harvest-amount-box{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;background:var(--deck2);color:var(--deck-ink);border-radius:10px;padding:10px 12px;min-height:42px}
.harvest-amount-box small{color:color-mix(in srgb,var(--deck-muted) 65%,var(--deck-ink));font-size:.75rem;line-height:1.3;font-weight:500;overflow-wrap:anywhere}.harvest-amount-box strong{color:color-mix(in srgb,var(--g) 40%,var(--deck-ink));font-family:var(--font-numeric);font-variant-numeric:tabular-nums;font-size:1.6rem;line-height:1;overflow-wrap:anywhere;margin-left:auto;max-width:100%}
.harvest-sale-grid>.harvest-choice-pay{grid-area:payment}.harvest-credit{grid-area:credit}.harvest-credit-presets{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.harvest-credit-presets .btn{border-radius:999px;font-size:.85rem;font-weight:500;min-height:34px;padding:5px 10px}.harvest-credit-presets [aria-pressed=true]{background:var(--ok-bg);border-color:var(--accent);color:var(--ok)}
.harvest-credit .ui-field-label-row{justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 8px}.harvest-credit-due{color:var(--ok);font-size:.8rem;font-weight:700}
.harvest-sale-note{grid-area:note}.harvest-sale-note textarea{min-height:80px}
.harvest-form-footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:16px 24px;border-top:1px solid var(--line);background:var(--field)}
.harvest-form-error{padding:0 24px 16px}
.harvest-sidebar{display:grid;gap:18px;min-width:0;position:sticky;top:16px;align-self:start;max-height:calc(100dvh - 108px);overflow-y:auto}.harvest-sidebar .harvest-panel{padding:20px}.harvest-sidebar h3{margin-bottom:16px}
.harvest-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.harvest-metrics .ui-metric{background:var(--field);border-radius:12px;padding:12px;min-width:0}.harvest-metrics .ui-metric>span{font-size:.75rem}.harvest-metrics .ui-metric strong{font-size:1.3rem;overflow-wrap:anywhere}.harvest-metrics .ui-metric strong small{font-size:.7rem}.harvest-metrics .ui-metric>small{font-size:.7rem;color:var(--ok)}
.harvest-population dl{margin:0}.harvest-population dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-top:1px solid var(--line);padding:14px 0}.harvest-population dt{font-size:.8rem;color:var(--muted)}.harvest-population dd{margin:0;font-weight:700;text-align:right}.harvest-population dd small{font-size:.7rem;color:var(--muted);font-weight:400}.harvest-population p{font-size:.75rem;color:var(--muted);margin:4px 0 0}
.harvest-history{margin-top:20px}.harvest-history-scroll{overflow:auto}.harvest-history .ui-table{border:0;border-radius:0;width:100%}.harvest-history-table th{font-size:.75rem}.harvest-history-table td{font-size:.85rem}.harvest-history-date span{display:block;color:var(--muted);font-size:.75rem}.harvest-history-actions .btn{margin:2px}.harvest-history-details p{white-space:normal;min-width:160px;max-width:320px;overflow-wrap:anywhere}.harvest-catch-badge{border-radius:999px;padding:3px 10px;font-size:.75rem;color:var(--ok);background:var(--ok-bg);white-space:nowrap}.harvest-catch-badge.is-final{color:var(--deck-ink);background:var(--deck)}.harvest-mobile-unit{display:none}
@media(min-width:701px) and (max-width:1150px){.harvest-layout{grid-template-columns:minmax(0,1fr) 260px;gap:14px}.harvest-weight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.harvest-field-date{grid-column:1/-1}.harvest-type-option{padding:12px}.harvest-sale-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'buyer price' 'payment credit' 'amount amount' 'note note'}.harvest-sidebar .harvest-panel{padding:14px}}
@media(max-width:700px){
 .harvest-layout{display:flex;flex-direction:column;gap:12px;margin:12px 0}.harvest-layout>*{width:100%}.harvest-sidebar{order:-1;position:static;max-height:none;overflow:visible}.harvest-sidebar .harvest-cycle-totals{padding:0;border:0;background:transparent}.harvest-cycle-totals h3{margin-bottom:10px}.harvest-metrics{gap:8px}.harvest-metrics .ui-metric{padding:10px 12px;background:var(--paper);border:1px solid var(--line)}.harvest-metrics .ui-metric strong{font-size:1rem}.harvest-population{display:none}
 .harvest-panel-header{padding:14px 16px}.harvest-panel h2,.harvest-panel h3{font-size:.9rem}.harvest-form fieldset.harvest-form-body{padding:16px 16px 0}.harvest-type-options{grid-template-columns:minmax(0,1fr);gap:10px}.harvest-type-option{padding:14px}.harvest-type-option b{font-size:.9rem}.harvest-type-option small{font-size:.75rem}
 .harvest-section-title{gap:6px}.harvest-section-title p{font-size:.72rem}.harvest-weight-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px;grid-template-areas:'date date' 'kg count' 'size grams'}.harvest-field-date{grid-area:date}.harvest-field-kg{grid-area:kg}.harvest-field-count{grid-area:count}.harvest-field-size{grid-area:size}.harvest-field-grams{grid-area:grams}.harvest-weight-grid .ui-field>label{font-size:.8rem}
 .harvest-form .harvest-quality{grid-template-columns:minmax(0,1fr);gap:18px}.harvest-quality>.harvest-choice{grid-template-columns:minmax(0,1fr);gap:8px}.harvest-diseases{margin-left:0;padding-left:12px}.harvest-diseases .ui-chips button{font-size:.8rem;padding:8px 12px}.harvest-form-section{padding:18px 0;margin-top:18px}.harvest-choice .ui-segment button{font-size:.8rem;padding:8px 12px}.harvest-after-preview{font-size:.75rem;padding:10px 12px}
 .harvest-sale-grid{display:flex;flex-direction:column;gap:16px}.harvest-sale-grid>*{width:100%}.harvest-sale-amount{order:4}.harvest-choice-pay{order:2}.harvest-credit{order:3}.harvest-sale-note{order:5}.harvest-form-footer{padding:16px;background:var(--paper);gap:8px}.harvest-form-footer .btn{flex:1}.harvest-form-footer .btn[type=submit]{flex-basis:100%;order:-1}.harvest-form-error{padding:0 16px 12px}
 .harvest-history{margin-top:12px}.harvest-history-scroll{overflow:visible;padding:12px}.harvest-history-table{display:block;white-space:normal!important}.harvest-history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.harvest-history-table tbody{display:grid;gap:10px}.harvest-history-table tr{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.harvest-history-table td{display:block;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;font-size:.75rem}.harvest-history-table .harvest-history-date{order:0;flex:1;font-size:.8rem}.harvest-history-date span{display:inline;font-size:inherit}.harvest-history-type{order:1}.harvest-history-pond{order:2;width:100%}.harvest-history-kg,.harvest-history-count,.harvest-history-value{order:3}.harvest-history-count::before,.harvest-history-value::before{content:'· ';color:var(--muted)}.harvest-history-table .harvest-history-size{order:4;flex-basis:100%;color:var(--muted)}.harvest-history-price{order:5;color:var(--muted)}.harvest-history-buyer{order:6;color:var(--muted)}.harvest-history-details{order:7;width:100%}.harvest-history-actions{order:8;width:100%;margin-top:6px}.harvest-mobile-unit{display:inline}.harvest-history .ui-table tr:last-child td{border:0}
}
@media(max-width:700px){
 .harvest-history-table tr{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
 .harvest-history-table .harvest-history-date{grid-column:1/5;min-width:0}.harvest-history-type{grid-column:5/7;text-align:right}.harvest-history-pond{grid-column:1/-1}
 .harvest-history-kg{grid-column:1/3}.harvest-history-count{grid-column:3/5}.harvest-history-value{grid-column:5/7}.harvest-history-count::before,.harvest-history-value::before{content:none}
 .harvest-history-size,.harvest-history-details,.harvest-history-actions{grid-column:1/-1}.harvest-history-price{grid-column:1/3}.harvest-history-buyer{grid-column:3/7}
}
