/* SadON – vzhľad. Navrhnuté pre telefón na slnku a prácu v rukaviciach:
   veľké písmo, vysoký kontrast, tlačidlá vysoké aspoň 60 px. */
:root {
  --green: #1d5b34;
  --green-dark: #123f23;
  --green-soft: #dcebd9;
  --bg: #f2f4ee;
  --card: #ffffff;
  --ink: #16201a;
  --muted: #56615a;
  --line: #cfd6cc;
  --red: #b3261e;
  --red-soft: #fbe3e0;
  --orange: #b85c00;
  --orange-soft: #ffe7c7;
  --ok: #24703a;
  --radius: 14px;
  --tap: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.15rem; margin: 26px 0 10px; }
h3 { font-size: 1rem; color: var(--muted); margin: 16px 0 8px; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
[hidden] { display: none !important; }
small { font-size: .84rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.grow { flex: 1; min-width: 0; }

/* horná lišta */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px;
  background: var(--green); color: #fff; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top));
  min-height: 60px;
}
.bar h1 { flex: 1; font-size: 1.1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; }
.bar-btn {
  width: 48px; height: 48px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 2rem; line-height: 1; display: grid; place-items: center; flex: none;
}
.sync {
  display: flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 0 12px; height: 40px;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: .82rem; font-weight: 600; max-width: 46vw; flex: none;
}
.sync span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync i { width: 12px; height: 12px; border-radius: 50%; background: #7fe39a; flex: none; }
.sync.busy i { background: #ffd35c; }
.sync.off, .sync.err { background: #fff; color: var(--ink); }
.sync.off i { background: #8a8f8b; }
.sync.err i { background: var(--red); }
body.login .sync, body.login #home { display: none; }

main { max-width: 760px; margin: 0 auto; padding: 14px 14px 110px; }

/* tlačidlá */
.btn {
  min-height: var(--tap); padding: 12px 20px; border-radius: var(--radius); border: 2px solid var(--green);
  background: var(--green); color: #fff; font-weight: 700; font-size: 1.05rem; flex: 1;
}
.btn:active { background: var(--green-dark); }
.btn:disabled { opacity: .55; }
.btn.big { width: 100%; min-height: 68px; font-size: 1.2rem; }
.btn.ghost { background: var(--card); color: var(--green); }
.btn.sm { min-height: 48px; padding: 8px 14px; font-size: .95rem; }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.danger-text { color: var(--red); border-color: var(--line); }
.link { background: none; border: 0; padding: 12px 6px; color: var(--green); font-weight: 700; text-decoration: underline; min-height: 44px; }
.icon { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-size: 1.3rem; flex: none; }
.row { display: flex; gap: 10px; margin-top: 12px; }
.stack { display: grid; gap: 10px; margin-top: 18px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.two > * { min-width: 0; }

/* domov */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative; min-height: 104px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--card);
  padding: 14px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
}
.tile-label { font-weight: 800; font-size: 1.12rem; line-height: 1.2; }
.tile-sub { color: var(--muted); font-size: .86rem; }
.tile.primary { grid-column: span 2; min-height: 96px; background: var(--green); border-color: var(--green); color: #fff; justify-content: center; }
.tile.primary .tile-label { font-size: 1.4rem; }
.tile.primary .tile-sub { color: #d3e6d6; font-size: .95rem; }
.tile.primary.alt { background: #23506b; border-color: #23506b; }
.tile.primary.alt .tile-sub { color: #d5e4ee; }
.tile.primary.harvest { background: var(--orange); border-color: var(--orange); }
.tile.primary.harvest .tile-sub { color: #ffe9cf; }
.tile.small { min-height: 68px; }
.tile.wide { grid-column: span 2; min-height: 80px; }
.tile.primary.menu { min-height: 104px; }
.tile.primary.menu .tile-label { font-size: 1.6rem; letter-spacing: .04em; }
.tile.primary.reports { background: #4a3f6b; border-color: #4a3f6b; }
.tile.primary.reports .tile-sub { color: #e1dcf0; }
.tiles.foot { margin-top: 28px; }
.count { position: absolute; top: 10px; right: 10px; min-width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; color: #fff; font-weight: 800; padding: 0 8px; }
.count.red { background: var(--red); } .count.orange { background: var(--orange); }
.alert-bar {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px;
  min-height: var(--tap); border: 0; border-radius: var(--radius); padding: 12px 16px; color: #fff; font-size: 1.05rem; text-align: left;
}
.alert-bar.red { background: var(--red); } .alert-bar.orange { background: var(--orange); }
.alert-bar span { text-decoration: underline; }

/* zoznamy */
.list { display: grid; gap: 8px; }
.pick, .entry {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 68px; padding: 12px 16px; text-align: left;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
}
.pick strong, .entry strong { display: block; font-size: 1.1rem; }
.pick small, .entry small, .summary small { display: block; color: var(--muted); }
.pick:active, .pick.on { border-color: var(--green); background: var(--green-soft); }
.pick .vals { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.pick .vals small { display: block; font-weight: 400; }
.forecast { display: block; color: var(--green-dark) !important; font-weight: 700; }
.forecast.late { color: var(--red) !important; }
.fc-note { background: var(--green-soft); border-radius: var(--radius); padding: 10px 14px; margin-top: 10px; }
.fc-note b { display: block; }
.place { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.place-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.place-head .muted { font-size: .84rem; text-align: right; }
.place-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 0; background: none; border: 0;
  border-top: 1px solid var(--line); margin-top: 8px; text-align: left;
}
.place-row .vals { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.place-row .vals small { font-weight: 400; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 26px 12px; background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); }

.pick.tall { min-height: 96px; }
.pick.tall strong { font-size: 1.25rem; }

.perm-table { display: grid; gap: 4px; }
.perm-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.perm-row .seg { margin: 4px 0; }
@media (min-width: 520px) { .perm-row { grid-template-columns: 1fr 240px; } }

.stock-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.stock-total b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stock-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stock-table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 4px 6px 6px 0; border-bottom: 1px solid var(--line); }
.stock-table td { padding: 8px 6px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.stock-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stock-fill { margin-top: 8px; font-variant-numeric: tabular-nums; }
.stock-fill b { font-size: 1.2rem; }
.stock-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.stock-row small, .place-row small { display: block; color: var(--muted); }
.stock-row .vals { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.stock-row .vals small { font-weight: 400; }

.occ { display: grid; gap: 6px; }
.occ-block { margin-bottom: 22px; }
.occ-block > p { margin-top: 8px; }
.occ-row { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: 'name track' 'name vals'; gap: 4px 10px; align-items: center;
  width: 100%; padding: 10px 12px; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 12px; min-height: 64px; }
.occ-row.sel { border-color: var(--green); background: var(--green-soft); }
.occ-name { grid-area: name; font-weight: 800; font-size: 1.05rem; }
.occ-row .occ-track { grid-area: track; }
.occ-row .occ-vals { grid-area: vals; }
.occ-track { display: block; height: 16px; background: #e3e7e0; border-radius: 4px; overflow: hidden; }
.occ-track.thin { height: 8px; width: 100%; grid-column: 1 / -1; }
.occ-fill { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.occ-fill.full { background: var(--orange); }
.occ-fill.over { background: var(--red); }
.occ-vals { font-variant-numeric: tabular-nums; }
.occ-vals small { color: var(--muted); margin-left: 6px; }
.occ-variety { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.occ-variety small { color: var(--muted); }

.export-list { margin: 0; padding-left: 22px; display: grid; gap: 4px; }

/* odznaky */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 800; white-space: nowrap; flex: none; }
.badge.red { background: var(--red); color: #fff; }
.badge.orange { background: var(--orange); color: #fff; }
.badge.ok { background: var(--green-soft); color: var(--green-dark); }
.badge.grey { background: #e6e9e4; color: var(--muted); }

/* karty a formuláre */
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 10px; }
.card h2 { margin-top: 0; }
.form { display: grid; gap: 14px; }
.summary { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--radius); border: 2px solid var(--line); padding: 12px 14px; margin-bottom: 12px; }
.summary strong { font-size: 1.15rem; }
.note { display: flex; align-items: center; gap: 8px; background: var(--orange-soft); border-radius: var(--radius); padding: 4px 6px 4px 14px; margin-bottom: 10px; font-size: .95rem; }
.field { display: grid; gap: 6px; }
.label { font-weight: 700; font-size: .95rem; }
.hint { color: var(--muted); font-size: .86rem; }
input[type="text"], input[type="password"], input[type="email"], input[type="date"], input[type="datetime-local"], input[type="time"], select, textarea {
  width: 100%; min-height: 56px; padding: 10px 14px; border: 2px solid #8b958d; border-radius: 12px; background: #fff; font-size: 1.1rem;
}
textarea { min-height: 76px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid rgba(29, 91, 52, .25); outline-offset: 0; }
input.num { font-variant-numeric: tabular-nums; font-weight: 700; text-align: center; }
input.num.wide { text-align: left; font-size: 1.4rem; max-width: 220px; }
input.num.warn { border-color: var(--red); background: var(--red-soft); }
.check { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.check input { width: 28px; height: 28px; accent-color: var(--green); flex: none; }
.check-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; align-items: center; }
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.form-error { color: var(--red); font-weight: 700; }

/* prepínač */
.seg { display: flex; border: 2px solid var(--green); border-radius: 12px; overflow: hidden; margin: 8px 0; background: #fff; }
.seg button { flex: 1; min-height: 52px; border: 0; background: none; font-weight: 700; padding: 6px 8px; color: var(--green); }
.seg button + button { border-left: 2px solid var(--green); }
.seg button.on { background: var(--green); color: #fff; }

/* voľba z možností */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 52px; padding: 8px 18px; border: 2px solid var(--green); border-radius: 12px; background: #fff; color: var(--green); font-weight: 700; flex: 1 1 auto; }
.chips button.on { background: var(--green); color: #fff; }
.cats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .92rem; margin-top: 6px; }
.cats b { font-variant-numeric: tabular-nums; }

/* diktovanie */
.dictate { display: grid; gap: 6px; margin-bottom: 10px; }
.dictate:empty { display: none; }
.btn.mic { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; }
.btn.mic i { width: 16px; height: 16px; border-radius: 50%; background: #fff; flex: none; }
.btn.mic.on { background: var(--red); border-color: var(--red); }
.btn.mic.on i { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
textarea.kbd { min-height: 64px; border-color: var(--green); font-size: 1.15rem; }
.kbd-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
input.num.target { border-color: var(--red); box-shadow: 0 0 0 4px rgba(179, 38, 30, .25); }
@media (prefers-reduced-motion: reduce) { .btn.mic.on i { animation: none; } }

/* meranie */
.block { margin-top: 22px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.block-head h2 { margin: 0; }
.grid-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.count-of { font-weight: 800; }
.count-of.full { color: var(--ok); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cell { position: relative; }
.cell .idx { position: absolute; top: 3px; left: 7px; font-size: .68rem; color: var(--muted); pointer-events: none; }
.cell input { padding: 14px 4px 6px; min-height: 60px; font-size: 1.3rem; }
.cell input.extra { border-style: dashed; }
.stats { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 6px; margin-top: 10px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 8px; }
.stats:has(.stat:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.stat { text-align: center; }
.stat small { display: block; color: var(--muted); font-size: .74rem; }
.stat b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.stat.main b { font-size: 1.5rem; color: var(--green-dark); }
.starch { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 10px; }
.starch button {
  min-height: 56px; border-radius: 12px; border: 3px solid transparent; font-weight: 800; font-size: 1.15rem;
  background: hsl(250 22% var(--l)); color: #fff;
}
.starch button:nth-child(n+6) { color: var(--ink); }
.starch button.on { border-color: var(--ink); box-shadow: 0 0 0 3px #fff inset; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: #e6e9e4; display: grid; place-items: center; text-align: center; padding: 4px; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 1.3rem; line-height: 1; }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); z-index: 10; }
.sticky .btn { max-width: 732px; margin: 0 auto; display: block; box-shadow: 0 4px 14px rgba(18, 63, 35, .35); }

/* detail merania */
.banner { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; color: #fff; display: grid; gap: 2px; }
.banner strong { font-size: 1.3rem; }
.banner.ok { background: var(--ok); } .banner.orange { background: var(--orange); } .banner.red { background: var(--red); }
.param { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.param + .param { border-top: 1px solid var(--line); }
.param .label, .param small { display: block; }
.param .value { font-size: 1.5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.param .value small { display: inline; font-size: .8rem; font-weight: 400; color: var(--muted); }
.values { font-variant-numeric: tabular-nums; word-spacing: .3em; }

/* upozornenia */
.alert { background: var(--card); border-radius: var(--radius); border: 2px solid var(--line); border-left: 10px solid var(--orange); padding: 12px 14px; }
.alert.red { border-left-color: var(--red); background: var(--red-soft); }
.alert.orange { background: var(--orange-soft); }
.alert-text { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
details.done { margin-top: 22px; }
details.done summary { min-height: 48px; font-weight: 700; color: var(--muted); cursor: pointer; }
details.done .alert { opacity: .8; }

/* zber */
.yield + .yield { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.yield-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.meter { height: 16px; background: #e3e7e0; border-radius: 8px; overflow: hidden; margin: 8px 0 6px; }
.meter span { display: block; height: 100%; background: var(--green); border-radius: 8px; }
.meter span.over { background: var(--orange); }
.yield-nums { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.yield-nums b { color: var(--ink); font-size: 1.05rem; }

/* grafy */
.chart { width: 100%; height: auto; display: block; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); }
.chart .band { fill: #cfe8cf; }
.chart .band-label { font-size: 10px; fill: #2c6a3c; font-weight: 700; }
.chart .gridline { stroke: #dfe4dc; stroke-width: 1; }
.chart .tick { font-size: 11px; fill: var(--muted); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.chart .dot.out { fill: var(--red); }
.chart .dot.sel { stroke: var(--ink); fill: #fff; stroke-width: 3; }
.chart .dot.out.sel { stroke: var(--red); }
.chart .hit { fill: transparent; cursor: pointer; }
.readout { min-height: 48px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: .95rem; }
.readout b { font-size: 1.15rem; }

/* prihlásenie */
.login-form { display: grid; gap: 16px; max-width: 420px; margin: 8vh auto 0; }
.login-form h1 { font-size: 2.4rem; color: var(--green-dark); }
.login-form .lead { color: var(--muted); margin-top: -12px; }
.login-form .link { justify-self: center; }

.demo-box { display: grid; gap: 10px; background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); padding: 14px; }
.demo-box p { color: var(--muted); font-size: .95rem; }

/* dialóg a hlásenia */
.overlay { position: fixed; inset: 0; background: rgba(10, 20, 14, .55); display: grid; place-items: center; padding: 18px; z-index: 50; }
.dialog { background: #fff; border-radius: 18px; padding: 20px; max-width: 420px; width: 100%; font-size: 1.1rem; font-weight: 600; }
.dialog .row { flex-direction: column-reverse; }
#toast {
  position: fixed; left: 14px; right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 60; margin: 0 auto; max-width: 520px;
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; font-weight: 700; text-align: center;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .18s, transform .18s;
}
#toast.show { opacity: 1; transform: none; }
#toast.err { background: var(--red); }

@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
  .starch { grid-template-columns: repeat(10, 1fr); }
  .starch button:nth-child(n+6) { color: var(--ink); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile.primary { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }
.entry .cal { font-size: 1.3rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry .cal small { display: inline; font-weight: 400; }

/* Zber – sezóna: široká tabuľka sa na telefóne posúva do strany, parcela zostáva vľavo */
.season-group { padding: 12px 0 4px; margin-bottom: 12px; }
.season-years { margin-bottom: 12px; }
.season-years .chips button { flex: 0 1 auto; min-width: 84px; }
.season-group .place-head { padding: 0 14px 6px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.season-table { border-collapse: separate; border-spacing: 0; font-size: .92rem; min-width: 100%; }
.season-table th, .season-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.season-table thead th { font-size: .78rem; color: var(--muted); font-weight: 600; text-align: right; vertical-align: bottom; white-space: normal; min-width: 54px; }
.season-table th:first-child { position: sticky; left: 0; background: var(--card); text-align: left; padding-left: 14px; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.season-table tbody th { font-weight: 400; }
.season-table tbody th small { display: block; color: var(--muted); }
.season-table small.warn { color: var(--orange); }
.season-table .r { text-align: right; }
.season-table .strong { font-weight: 700; }
.season-table .zero { color: #a3aca5; }
.season-table .over { color: var(--orange); font-weight: 700; }
.season-table tfoot th, .season-table tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.season-table tr.tap { cursor: pointer; }
.season-table tr.tap:active td, .season-table tr.tap:active th { background: var(--green-soft); }
.season-sum { margin-bottom: 12px; }
.season-legend { margin: 6px 2px 4px; }
.estimate-out { font-weight: 700; margin: 4px 0 10px; }
.estimate-out small { display: block; font-weight: 400; color: var(--muted); }
.season-table tr.focus td, .season-table tr.focus th { background: var(--orange-soft); }
.season-table tr.focus th:first-child { box-shadow: inset 4px 0 0 var(--orange), 1px 0 0 var(--line); }
.yield-head .head-right { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.btn-mini { min-height: 36px; padding: 4px 12px; border: 2px solid var(--green); border-radius: 18px; background: #fff; color: var(--green); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.btn-mini:active { background: var(--green-soft); }
.season-link { width: 100%; margin-top: 10px; }
.ae-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 10px; font-size: .92rem; }
.ae-facts dt { color: var(--muted); }
.ae-facts dd { margin: 0; overflow-wrap: anywhere; }
.ae-facts code { font-size: .82rem; }
.err-text { color: var(--red); }
a.ae-file { text-decoration: none; color: inherit; }
