/* Regenerácia – stepper Pôda → Postup → Pasenie (docs/SPEC_V4.md §3 R18, round 10).
   views/editor/regen.js (shell, prefix .rgs-), regen/poda.js (.rgp-), regen/postup.js (.rgt-), regen/pasenie.js (.rgg-).
   Colours only through tokens; phone first (360 px): tap targets ≥ 44 px on touch, inputs 16 px (app.css), no horizontal
   page scroll (wide tables scroll inside .table-wrap). Linked by index.html; regen.js adds it at run time when missing. */

/* ---- step header ---------------------------------------------------------------------------------------------- */
.rgs-head { display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: calc(var(--header-h, 56px) + 8px); }
.rgs-steps { min-width: 0; }
.rgs-step-list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.rgs-step-item { flex: 1 1 0; min-width: 0; display: flex; }
.rgs-step-item + .rgs-step-item { position: relative; }
.rgs-step {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text-2); font: inherit; font-weight: 600; cursor: pointer;
}
.rgs-step:hover { background: var(--surface-2); color: var(--text); }
.rgs-step:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.rgs-step-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--surface-3); color: var(--text-2); font-size: 13px; font-weight: 700;
}
.rgs-step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rgs-step.is-done .rgs-step-num { background: var(--green-soft); color: var(--green-text); }
.rgs-step.is-current { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.rgs-step.is-current .rgs-step-num { background: var(--accent); color: var(--accent-contrast); }

.rgs-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.rgs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
.rgs-chips-label { color: var(--text-2); font-weight: 600; }
.rgs-chips-empty { color: var(--muted); }
.rgs-chip, .rgs-state {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px;
  background: var(--grey-soft); color: var(--grey-text); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.rgs-chip.is-zero { opacity: 0.55; }
.rgs-chip[data-state="conventional"], .rgs-state[data-state="conventional"] { background: var(--brown-soft); color: var(--brown-text); }
.rgs-chip[data-state="transition"], .rgs-state[data-state="transition"] { background: var(--warning-soft); color: var(--warning-text); }
.rgs-chip[data-state="prepSoil"], .rgs-state[data-state="prepSoil"] { background: var(--grey-soft); color: var(--text); border: 1px dashed var(--border-strong); }
.rgs-chip[data-state="regenerative"], .rgs-state[data-state="regenerative"] { background: var(--green-soft); color: var(--green-text); }
.rgs-state.is-awaiting { font-style: italic; }
.rgs-head-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.rgs-how.is-active { background: var(--accent-soft); color: var(--text); }
.rgs-next[hidden], .rgs-step-body[hidden], .rgs-library[hidden] { display: none; }

/* ---- parts of a step, foot, library ----------------------------------------------------------------------------- */
.rgs-step-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rgs-parts { align-items: center; }
.rgs-parts[hidden] { display: none; }
.rgs-more { flex: none; align-self: center; padding: 0 2px 0 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rgs-break { display: none; }
/* Pasenie: a whole pasture's paddocks are ticked lighter – implicit, „celý pozemok“ (PH10-08) */
.rgg-box.is-implicit .checkbox-input { opacity: .55; }
/* Postup year card: a work whose deadline passed this year (not counted) and an alternative („Alebo …“) – PH10-13, D20 */
.rgt-op.is-missed .rgt-op-title, .rgt-op.is-missed .rgt-op-meta { color: var(--muted); }
.rgt-op.is-alt .rgt-op-title { font-style: italic; }
.rgt-plan-link-inline { color: var(--link); font-weight: 600; text-decoration: none; }
.rgt-plan-link-inline:hover { text-decoration: underline; }
/* phone: the part bar wraps – „Viac: Simulácia · Porovnanie“ is a second row, never hidden off-screen behind a dangling „Viac:“ (PH10-06) */
@media (max-width: 767.98px) {
  .rgs-parts.tabs--pills { flex-wrap: wrap; overflow-x: visible; row-gap: 6px; }
  .rgs-parts .rgs-break { display: block; flex-basis: 100%; height: 0; }
  .rgs-parts .rgs-more { padding-left: 2px; }
}
.rgs-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 4px; border-top: 1px solid var(--border); }
.rgs-foot .btn { min-height: 40px; }
.rgs-library { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rgs-lib-head { display: flex; }

/* ---- Pôda (.rgp-) ------------------------------------------------------------------------------------------------ */
.rgp-env-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rgp-env { margin: 0; color: var(--text-2); font-size: 14px; flex: 1 1 220px; min-width: 0; }
.rgp-tree { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rgp-row { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 8px 0; border-top: 1px solid var(--border); min-width: 0; }
.rgp-row:first-child { border-top: 0; padding-top: 0; }
.rgp-depth-1 { padding-left: 14px; border-left: 2px solid var(--border); }
.rgp-depth-2 { padding-left: 28px; border-left: 2px solid var(--border); }
.rgp-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.rgp-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.rgp-area { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.rgp-row-ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.rgp-row-ctrl .rgp-prev { flex: 1 1 220px; min-width: 0; max-width: 420px; }
.rgp-meta { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.rgp-assess { display: flex; flex-direction: column; gap: 4px; }
.rgp-assess-head, .rgp-assess-reason { margin: 0; }
.rgp-check { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.rgp-check li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0 6px; align-items: baseline; }
.rgp-check li > .rgs-guide { grid-column: 2; justify-self: start; }
.rgp-check-box { color: var(--muted); }
.rgp-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rgp-fieldset { margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--border); min-width: 0; }
.rgp-fieldset > legend { padding: 0; font-weight: 650; font-size: 15px; }
.rgp-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.rgp-sub, .rgt-sub { margin: 4px 0; font-size: 14px; font-weight: 650; }
.rgp-tests { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rgp-test { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; }
.rgp-test-date { font-weight: 600; white-space: nowrap; }
.rgp-test-vals { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.rgp-test.is-empty { color: var(--muted); }
.rgp-ref > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.rgp-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rgp-humus { margin: 0; }
.rgp-ind { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.rgp-ind-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--border); }
.rgp-ind-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.rgp-ind-cls { white-space: nowrap; font-weight: 600; }
.rgp-ind-cls.tone-good { color: var(--good-text); }
.rgp-ind-cls.tone-warning { color: var(--warning-text); }
.rgp-ind-cls.tone-bad { color: var(--critical-text); }
.rgp-ind-target { grid-column: 1 / -1; color: var(--text-2); font-size: 12.5px; }
.rgp-criteria, .rgp-suggest p { margin: 0; }
/* D5: the conditions of the regenerative state read from the plan years; PH10-07: „Chýba: …“ of a card */
.rgp-criteria-list { margin: 0; font-size: 13.5px; }
.rgp-criteria-list li.is-ok { color: var(--green-text); }
.rgp-criteria-list li.is-no { color: var(--text-2); }
.rgp-missing-line { margin: 0; color: var(--text-2); }
.rgp-common:empty { display: none; }
.rgp-common .rgp-sub { margin: 0 0 4px; }
.rgp-list { margin: 0; padding-left: 18px; }
.rgp-suggest { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ---- Postup (.rgt-) ---------------------------------------------------------------------------------------------- */
.rgt-status { display: flex; flex-direction: column; gap: 6px; }
.rgt-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.rgt-plan-state { margin: 0; font-size: 14px; line-height: 1.5; }
.rgt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rgt-actions .btn[hidden] { display: none; }
.rgt-plan-title { margin: 0; font-weight: 650; }
.rgt-notes p { margin: 0; }
.rgt-honest { margin: 0; line-height: 1.5; }
.rgt-facts { margin: 0; font-size: 14px; color: var(--text-2); }
.rgt-note { margin: 0; }
.rgt-ops { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rgt-op { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: start; padding: 6px 0; border-top: 1px solid var(--border); min-width: 0; }
.rgt-op-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rgt-op:first-child { border-top: 0; }
.rgt-op-title { font-weight: 600; overflow-wrap: anywhere; }
.rgt-op-meta { color: var(--text-2); font-size: 13px; }
.rgt-kpis p { margin: 2px 0; font-size: 14px; }
.rgt-sub-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.rgt-sub-list li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.rgt-sub-name { font-weight: 600; }
.rgt-sub-cond { flex-basis: 100%; color: var(--text-2); font-size: 12.5px; }
.rgt-met { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--grey-soft); color: var(--grey-text); }
.rgt-met.is-met { background: var(--good-soft); color: var(--good-text); }
.rgt-met.is-partial { background: var(--warning-soft); color: var(--warning-text); }
.rgt-tip { margin: 0; color: var(--text-2); }
.rgt-task-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.rgt-task { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.rgt-task-date { white-space: nowrap; color: var(--text-2); min-width: 72px; }
.rgt-task-title { flex: 1 1 180px; min-width: 0; }
.rgt-task.is-done .rgt-task-title { text-decoration: line-through; color: var(--muted); }
.rgt-task-st { color: var(--good-text); font-size: 12px; }
.rgt-year[data-state="prepSoil"] { border-style: dashed; }
.rgt-sim-table tbody th, .rgt-sim-table tfoot th { text-align: left; }
.rgt-overview-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rgt-ov-row { border-top: 1px solid var(--border); }
.rgt-ov-row:first-child { border-top: 0; }
.rgt-ov-btn {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; padding: 6px 4px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.rgt-ov-btn:hover { background: var(--surface-2); }
.rgt-ov-row.is-current .rgt-ov-btn { background: var(--accent-soft); }
.rgt-depth-1 .rgt-ov-btn { padding-left: 18px; }
.rgt-depth-2 .rgt-ov-btn { padding-left: 32px; }
.rgt-ov-name { font-weight: 600; flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.rgt-ov-plan { color: var(--text-2); font-size: 12.5px; }
.rgt-ops-edit { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rgt-op-edit { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.rgt-op-edit .rgt-op-title { flex: 1 1 auto; font-weight: 500; }
.rgt-op-edit.is-empty { color: var(--muted); }
.rgt-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.rgt-diff { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.rgt-prep-seg { max-width: 100%; }

/* ---- Pasenie (.rgg-) --------------------------------------------------------------------------------------------- */
.rgg-tree { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rgg-plot-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rgg-plot-name { font-weight: 600; }
.rgg-plot-note { color: var(--text-2); font-size: 12.5px; }
.rgg-list { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.rgg-row { display: flex; align-items: center; min-height: 36px; }
.rgg-depth-2 { padding-left: 26px; }
.rgg-hint { color: var(--text-2); font-size: 12px; }
.rgg-hint:empty { display: none; }
.rgg-rot-block { display: flex; flex-direction: column; gap: 6px; }
.rgg-rot-title { margin: 0; font-size: 14px; font-weight: 650; }
.rgg-rot-sum { margin: 0; font-size: 14px; }
.rgg-rot-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.rgg-rot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 4px 0; border-top: 1px solid var(--border); }
.rgg-rot-name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.rgg-rot-area { white-space: nowrap; color: var(--text-2); }
.rgg-rot-state { grid-column: 1 / -1; color: var(--good-text); font-size: 12.5px; }
.rgg-rot-row.is-out .rgg-rot-state { color: var(--warning-text); }
.rgg-rot-row.is-out .rgg-rot-name { color: var(--text-2); }
.rgg-rot-note { margin: 0; }

/* ---- sheets: nearly full screen on a phone ------------------------------------------------------------------------ */
@media (max-width: 767px) {
  .modal.rgp-sheet, .modal.rgt-sheet { width: 100%; max-width: none; }
}
@supports (height: 100dvh) {
  @media (max-width: 767px) {
    .modal.rgp-sheet, .modal.rgt-sheet { max-height: calc(100dvh - 16px); }
  }
}

/* ---- phone: one column, ≥ 44 px targets on touch ----------------------------------------------------------------- */
@media (max-width: 480px) {
  .rgs-step { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 13px; }
  .rgs-step-num { width: 22px; height: 22px; font-size: 12px; }
  .rgs-head-actions { margin-left: 0; width: 100%; }
  .rgs-head-actions .btn { flex: 1 1 auto; }
  .rgp-row-ctrl .rgp-prev { flex-basis: 100%; max-width: none; }
  .rgp-ind-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rgp-ind-val { grid-column: 1 / -1; }
}
@media (pointer: coarse), (max-width: 720px) {
  .rgs-step, .rgs-how, .rgs-next, .rgs-lib-back, .rgs-foot .btn { min-height: 44px; }
  .rgs-parts.tabs--pills .tab { height: 44px; }
  .rgp-open, .rgp-propose, .rgp-sections, .rgt-promote, .rgp-env-btn, .rgp-test-del, .rgp-test-save, .rgp-sheet-propose, .rgs-guide, .rgp-howto { min-height: 44px; }
  .rgp-test-del, .rgt-op-del, .rgt-op-how { min-width: 44px; }
  .rgp-ref > summary { min-height: 44px; }
  .rgt-actions .btn, .rgt-edit, .rgt-op-how, .rgt-to-poda, .rgt-open-parent, .rgt-reset-year, .rgt-op-del, .rgt-plan-link { min-height: 44px; }
  .rgt-plan-link-inline { display: inline-flex; align-items: center; min-height: 44px; }
  .rgt-prep-seg .segmented-item { min-height: 44px; }
  .rgg-row { min-height: 44px; }
  .rgg-box { min-height: 44px; align-items: center; }
  .rgp-checks .checkbox, .rgt-checks .checkbox, .rgt-opts .checkbox { min-height: 44px; align-items: center; }
}

/* ---- round 11: steps 4 Seno (.rgh-, regen/seno.js) and 5 Zima (lazy part) – docs/SPEC_V4.md §3 R4, R19 -------------- */
/* five steps on a narrow phone: smaller labels, no ellipsis on „Pasenie“ */
@media (max-width: 380px) {
  .rgs-step-list { gap: 4px; }
  .rgs-step { padding: 6px 2px; font-size: 12px; }
  .rgs-step-num { width: 20px; height: 20px; font-size: 11px; }
}
.rg-lazy-wait { display: flex; justify-content: center; padding: 12px 0; }
.rgh-switch:empty { display: none; }
.rgh-sub { margin: 4px 0; font-size: 14px; font-weight: 650; }
.rgh-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.rgh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rgh-actions:empty { display: none; }
/* balance: the verdict line, the offer, the purchase prompts, why lines */
.rgh-verdict { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.rgh-verdict[data-verdict="ok"] { color: var(--good-text); }
.rgh-verdict[data-verdict="short"] { color: var(--warning-text); }
.rgh-offer, .rgh-purchase { display: flex; flex-direction: column; gap: 8px; }
.rgh-offer:empty, .rgh-purchase:empty, .rgh-summer:empty, .rgh-reasons:empty { display: none; }
.rgh-offer-line, .rgh-purchase-line, .rgh-legacy-line, .rgh-cost-note, .rgh-price { margin: 0; }
.rgh-reason-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rgh-reason { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 14px; }
.rgh-reason:first-child { border-top: 0; }
.rgh-reason-text { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.rgh-reason-head { color: var(--text-2); }
/* hay regimes: plot cards with the tree; each row is one big button */
.rgh-alt, .rgh-total { margin: 0; font-size: 14px; }
.rgh-alt { color: var(--text-2); }
.rgh-legacy-note:empty { display: none; }
.rgh-tree { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rgh-row { min-width: 0; }
.rgh-depth-1 { padding-left: 14px; border-left: 2px solid var(--border); }
.rgh-depth-2 { padding-left: 28px; border-left: 2px solid var(--border); }
.rgh-row-btn {
  width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: inherit; font: inherit;
  text-align: left; cursor: pointer;
}
.rgh-row-btn:hover { background: var(--surface-2); }
.rgh-row-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.rgh-row[data-status="own"] .rgh-row-btn { border-color: var(--green-text); }
.rgh-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.rgh-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.rgh-area { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.rgh-chip {
  display: inline-flex; align-items: center; min-height: 22px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--grey-soft); color: var(--grey-text); white-space: nowrap;
}
.rgh-chip[data-kind="own"] { background: var(--green-soft); color: var(--green-text); }
.rgh-chip[data-kind="inherited"] { background: var(--green-soft); color: var(--green-text); opacity: .8; border: 1px dashed var(--border-strong); }
.rgh-chip[data-kind="legacy"] { background: var(--warning-soft); color: var(--warning-text); }
.rgh-meta { color: var(--text-2); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.rgh-row-foot { display: flex; align-items: center; justify-content: flex-end; gap: 2px; color: var(--link); font-size: 13px; font-weight: 600; }
.rgh-plot-actions { justify-content: flex-end; }
/* the regime sheet */
.rgh-sheet-where { margin: 0; }
.rgh-sheet-status:empty, .rgh-legal:empty { display: none; }
.rgh-sheet-status, .rgh-legal { display: flex; flex-direction: column; gap: 8px; }
.rgh-offer-intro { margin: 0; }
.rgh-seg { max-width: 100%; }
.rgh-months { display: flex; flex-wrap: wrap; }
.rgh-months .segmented-item { flex: 1 1 0; min-width: 0; }
.rgh-graze { display: flex; align-items: center; }
.rgh-preview { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); }
.rgh-window, .rgh-hay, .rgh-basis, .rgh-plan-line { margin: 0; overflow-wrap: anywhere; }
.rgh-plan-tasks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rgh-plan-tasks > p { margin: 0; }
/* „Seno na zimu“ */
.rgh-formula-head { margin: 0; }
.rgh-formula { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rgh-animal-list, .rgh-stock-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rgh-animal { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 14px; }
.rgh-animal:first-child { border-top: 0; }
.rgh-animal-formula { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rgh-animal-meta { color: var(--text-2); font-size: 12.5px; overflow-wrap: anywhere; }
.rgh-others { margin: 0; }
.rgh-stock:empty { display: none; }
.rgh-stock > p { margin: 0 0 4px; }
.rgh-stock-row { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; border-top: 1px solid var(--border); }
.rgh-stock-row:first-child { border-top: 0; }
.rgh-stock-name { font-weight: 600; }
.rgh-stock-ctrl { display: flex; flex-wrap: wrap; gap: 8px; }
.rgh-stock-ctrl select { flex: 1 1 140px; min-width: 0; }
.rgh-stock-res { color: var(--text-2); }
.rgh-sources > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; min-height: 32px; display: flex; align-items: center; gap: 6px; list-style: none; }
.rgh-sources > summary::-webkit-details-marker { display: none; }
/* disclosure marker (summary is a flex box, the native triangle is gone – P11-16) */
.rgh-sources > summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: none; margin-right: 2px; }
.rgh-sources[open] > summary::before { transform: rotate(45deg); }
/* the groups without hay link to their own row in Zima (P11-02) */
.rgh-others-link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.rgh-plan-after { color: var(--text-2); }
.rgh-ro-note { margin: 0; }
.rgh-sources a { color: var(--link); overflow-wrap: anywhere; }
.rgh-feeders:empty { display: none; }
.rgh-feeder-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rgh-feeder-row > .field { flex: 1 1 260px; min-width: 0; }
.rgh-feeder-name { font-weight: 600; }
.rgh-diff { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 767px) {
  .modal.rgh-sheet { width: 100%; max-width: none; }
}
@supports (height: 100dvh) {
  @media (max-width: 767px) {
    .modal.rgh-sheet { max-height: calc(100dvh - 16px); }
  }
}
@media (pointer: coarse), (max-width: 720px) {
  .rgh-row-btn, .rgh-offer-btn, .rgh-purchase-update, .rgh-purchase-remove, .rgh-purchase-replace, .rgh-costs-link, .rgh-reason-btn, .rgh-summer-btn,
  .rgh-numbers-btn, .rgh-zima-btn, .rgh-sections, .rgh-plan-link, .rgh-to-zima, .rgh-switch-btn { min-height: 44px; }
  .rgh-seg .segmented-item { min-height: 44px; }
  .rgh-graze .toggle, .rgh-stock-row .toggle { min-height: 44px; align-items: center; }
  .rgh-sources > summary { min-height: 44px; }
  .rgh-others-link { display: inline-flex; align-items: center; min-height: 44px; }
}
/* a month before the 1st cut cannot be the 2nd cut – shown muted, not hidden (the row keeps its five columns) */
.rgh-months .segmented-item:disabled { opacity: .4; cursor: not-allowed; }
