.nutrient-workspace { --nutrient-line: #d7e2d7; }
.nutrient-modes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin: 1.4rem 0; }
.nutrient-modes button { display: flex; align-items: center; gap: .75rem; text-align: left; padding: 1rem; border: 2px solid var(--nutrient-line); background: #fff; color: #244735; }
.nutrient-modes button[aria-pressed="true"] { border-color: #276643; background: #edf5ee; box-shadow: inset 0 -3px #276643; }
.nutrient-modes button[disabled] { opacity: 1; cursor: default; }
.nutrient-symbol { display: inline-grid; place-items: center; flex: 0 0 2.7rem; height: 2.7rem; border: 1px solid currentColor; border-radius: 50%; font-size: 1.1rem; font-weight: 800; }
.nutrient-modes small { display: block; margin-top: .2rem; font-size: .78rem; font-weight: 400; }
.nutrient-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.nutrient-group { margin-top: 1rem; }
.nutrient-group h2 { font-size: 1.25rem; }
.nutrient-group .field small { display: block; font-size: .78rem; color: #536353; margin-top: .25rem; }
.nutrient-group .form-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.nutrient-workspace .field input, .nutrient-workspace .field select { min-width: 0; width: 100%; }
.nutrient-workspace .field input[readonly] { background: #f1f3ef; }
.nutrient-result { margin: 1.4rem 0; }
.nutrient-result .metric strong { font-size: clamp(1.4rem,3vw,2.1rem); }
.nutrient-result .metric small { font-size: .8rem; font-weight: 500; }
.nutrient-result .metric { min-width: 0; }
.nutrient-table th, .nutrient-table td { white-space: normal; vertical-align: top; }
.nutrient-table td { font-variant-numeric: tabular-nums; }
.nutrient-table tbody tr[data-selected="true"] { background: #edf5ee; font-weight: 700; }
.nutrient-status { display: inline-block; border-radius: 99px; background: #eef3ec; padding: .25rem .6rem; font-size: .8rem; font-weight: 700; }
.nutrient-status.incomplete { background: #fff0d6; color: #6e4b14; }
.nutrient-save-row { display: flex; flex-wrap: wrap; gap: .65rem; padding-top: 1rem; }
.nutrient-saved-list { margin: .75rem 0; padding: 0; list-style: none; }
.nutrient-saved-list li { border-top: 1px solid var(--nutrient-line); padding: 1rem 0; }
.nutrient-saved-list .actions { margin-top: .5rem; }
.nutrient-limit { border-left: 4px solid #a57b19; padding: .6rem 1rem; background: #fff8e8; }
.nutrient-result summary { cursor: pointer; }
.nutrient-workspace .table-wrap { overflow-x: auto; }
.nutrient-workspace .table-wrap table { min-width: 40rem; }
@media (max-width: 1000px) { .nutrient-group .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 650px) {
 .nutrient-modes { grid-template-columns: 1fr; gap: .45rem; }
 .nutrient-modes button { padding: .65rem .8rem; }
 .nutrient-group .form-grid { grid-template-columns: 1fr; }
 .nutrient-save-row > button { width: 100%; }
 .nutrient-result .grid { grid-template-columns: 1fr; }
}
@media print { .nutrient-modes button:not([aria-pressed="true"]), .nutrient-save-row, .nutrient-saved-list { display: none; } .nutrient-workspace .table-wrap { overflow: visible; } }

.nutrient-phase-seeding{border-top:5px solid #824b2f;background:#fbf6ef}.nutrient-phase-midseason{border-top:5px solid #28744f;background:#edf4eb}.nutrient-phase-midseason .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nutrient-phase-midseason h2,.nutrient-phase-seeding h2{margin-top:4px}.nutrient-phase-midseason .eyebrow{color:#245d41;margin-bottom:6px}.nutrient-phase-seeding .eyebrow{color:#824b2f;margin-bottom:6px}.nutrient-retained-inputs{margin-top:18px;background:#f7f8f2}.nutrient-retained-inputs>summary{font-weight:700;color:#385346;cursor:pointer}.nutrient-retained-inputs .nutrient-group{background:white}.nutrient-snapshot-status{padding:12px 16px;border-left:4px solid #c8981d;background:#fff5db}.nutrient-modes button:focus-visible{outline:3px solid #c8981d;outline-offset:3px}@media(max-width:650px){.nutrient-phase-midseason .form-grid{grid-template-columns:1fr}}

/* The two nutrient tools share a short introduction and one help disclosure. */
main .tool-introduction--compact { margin-bottom: 16px; }
main .tool-introduction--compact .tool-summary { margin: 10px 0 3px; font-size: 15px; max-width: none; }
main .tool-introduction--compact .tool-scope-note { margin: 0; font-size: 13px; line-height: 1.5; color: #596c5f; }
main .tool-introduction--compact .tool-shortcuts { margin-top: 9px; gap: 10px 18px; }
main .tool-introduction--compact .tool-help[open] { padding-bottom: 12px; }
main .tool-introduction--compact .tool-help .tool-limit { margin: 12px 0; }
main .tool-introduction--compact .tool-help .tool-help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 12px 0; }
.nutrient-workspace .nutrient-modes { margin: 14px 0 8px; }
.nutrient-workspace .nutrient-modes button { min-height: 56px; padding: 10px 14px; }
.nutrient-workspace .nutrient-symbol { flex-basis: 2rem; height: 2rem; font-size: .95rem; }
.nutrient-workspace .nutrient-utilities { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 5px 20px; margin: 0 0 14px; }
.nutrient-workspace .nutrient-start-options { flex: 1 1 230px; margin: 0; border: 0; background: transparent; }
.nutrient-workspace .nutrient-start-options > summary { padding: 8px 0; font-size: 13px; }
.nutrient-workspace .nutrient-start-options[open] { flex-basis: 100%; border: 1px solid #d5decf; border-radius: 8px; background: #fff; }
.nutrient-workspace .nutrient-start-options[open] > summary { padding: 10px 16px; }
.nutrient-workspace .nutrient-start-options > .reference-detail { margin: 0; padding: 0 16px 16px; }
.nutrient-workspace .nutrient-utilities > .nutrient-seasonal-link { display: inline-block; margin: 0; padding: 8px 0; font-size: 13px; font-weight: 650; }
.nutrient-workspace .nutrient-product-summary .metric { padding: 12px 14px; }
.nutrient-workspace .nutrient-product-summary .metric strong { font-size: 22px; }
.nutrient-workspace .nutrient-result-scope { font-size: 13px; color: #596c5f; margin: 10px 0 14px; }
.nutrient-workspace .nutrient-decile-heading { font-size: 17px; margin: 24px 0 12px; }
.nutrient-decile-charts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.nutrient-decile-chart { min-width: 0; margin: 0; padding: 13px 12px 7px; border: 1px solid #d7e2d7; border-radius: 10px; background: #fff; }
.nutrient-decile-chart figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.nutrient-decile-chart figcaption h4 { font-size: 15px; line-height: 1.4; margin: 0; color: #244735; }
.nutrient-decile-chart figcaption > span { font-size: 12px; white-space: nowrap; color: #596c5f; padding-top: 2px; }
.nutrient-chart-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 15px; padding: 0; margin: 9px 0 2px; min-height: 36px; align-content: flex-start; }
.nutrient-chart-legend li { display: flex; gap: 7px; align-items: center; font-size: 12px; line-height: 1.4; color: #42574a; }
.nutrient-chart-legend li > span { display: block; width: 20px; border-top: 3px solid var(--line-colour); }
.nutrient-chart-legend li > .is-dashed { border-top-style: dashed; }
.nutrient-chart-scroll { overflow-x: auto; }
.nutrient-chart-scroll svg { display: block; width: 100%; max-width: 520px; min-width: 280px; height: auto; margin: 0 auto; font-family: inherit; }
.nutrient-chart-scroll svg text { font-family: inherit; font-size: 14px; fill: #596c5f; }
.nutrient-chart-grid line { stroke: #e0e6dc; stroke-width: 1; }
.nutrient-chart-grid.is-zero line { stroke: #8b9d8c; stroke-width: 1.3; }
.nutrient-chart-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.nutrient-chart-point { stroke-width: 1.5; }
.nutrient-chart-point[data-selected="true"] { stroke-width: 2.5; }
.nutrient-chart-selection { fill: #fff1cb; }
.nutrient-chart-selected-line { stroke: #aa7b1d; stroke-width: 1; stroke-dasharray: 3 4; }
.nutrient-chart-scroll .nutrient-chart-decile.is-selected { fill: #244735; font-weight: 800; }
.nutrient-chart-scroll .nutrient-chart-axis-title { font-size: 12px; }
.nutrient-workspace .nutrient-chart-caption { font-size: 12px; line-height: 1.5; margin: 9px 0 0; color: #596c5f; }
.nutrient-workspace .nutrient-decile-values { margin-top: 14px; }
.nutrient-decile-values > summary { cursor: pointer; }
.nutrient-decile-values .table-wrap { margin-top: 12px; }
@media (max-width: 1000px) {
 .nutrient-decile-charts { grid-template-columns: 1fr; }
 .nutrient-chart-legend { min-height: 0; margin-bottom: 8px; }
}
@media (max-width: 680px) {
 .nutrient-workspace .nutrient-modes button { min-height: 48px; padding: 10px 7px; }
 .nutrient-workspace .nutrient-utilities { gap: 0 14px; }
 .nutrient-workspace .nutrient-start-options { flex-basis: 100%; }
 .nutrient-chart-scroll svg { min-width: 260px; }
 .nutrient-chart-scroll svg text { font-size: 18px; }
 .nutrient-chart-scroll .nutrient-chart-axis-title { font-size: 16px; }
 .nutrient-decile-chart { padding: 12px 8px 7px; }
}
@media print {
 .nutrient-utilities { display: none!important; }
 .nutrient-decile-charts { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .nutrient-decile-chart { break-inside: avoid; }
 .nutrient-chart-scroll { overflow: visible; }
 .nutrient-chart-scroll svg { min-width: 0; }
}
