/* Compact Crops module chrome. This is page-scoped and loaded after the
   legacy stylesheet so the four navigation items keep one stable treatment. */
.crop-module-shell .crop-dashboard-header {
    align-items: flex-start;
    display: block;
    margin-bottom: .45rem;
    padding: .15rem 0 .35rem;
}
.crop-module-shell .crop-dashboard-header h2 { margin: 0 0 .12rem; }
.crop-module-shell .crop-dashboard-header p:last-child { margin: 0; }

.crop-module-shell .crop-view-nav {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: .25rem;
    margin: 0 0 .65rem;
    overflow: visible;
    padding: 0 0 .35rem;
}
.crop-module-shell .crop-view-nav-primary { display: flex; flex: 1 1 auto; gap: .25rem; min-width: 0; }
.crop-module-shell .crop-view-nav a,
.crop-module-shell .crop-view-nav-more summary {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line-soft);
    border-radius: 7px;
    color: var(--muted);
    display: flex;
    flex: 0 1 auto;
    font-size: .78rem;
    font-weight: 850;
    justify-content: center;
    min-height: 2.15rem;
    padding: .35rem .7rem;
    text-decoration: none;
    white-space: nowrap;
}
.crop-module-shell .crop-view-nav a:hover,
.crop-module-shell .crop-view-nav a:focus-visible,
.crop-module-shell .crop-view-nav-more summary:hover,
.crop-module-shell .crop-view-nav-more summary:focus-visible { background: var(--field); border-color: var(--line); color: var(--ink); outline: none; }
.crop-module-shell .crop-view-nav a[aria-current="page"],
.crop-module-shell .crop-view-nav a[aria-current="page"]:visited,
.crop-module-shell .crop-view-nav-more.is-current summary { background: var(--charcoal); border-color: var(--charcoal); box-shadow: none; color: #fffdf8 !important; }
.crop-module-shell .crop-view-nav-more { flex: 0 0 auto; min-width: max-content; position: relative; }
.crop-module-shell .crop-view-nav-more summary { cursor: pointer; list-style: none; }
.crop-module-shell .crop-view-nav-more summary::-webkit-details-marker { display: none; }
.crop-module-shell .crop-view-nav-more summary span { color: var(--orange); font-size: 1rem; line-height: 1; }
.crop-module-shell .crop-view-nav-more.is-current summary span { color: #fffdf8; }
.crop-module-shell .crop-view-nav-more > div { min-width: 9rem; }

/* Harvest selection uses the same high-contrast controls as the rest of the
   module, despite older global link and status rules. */
.crop-module-shell .harvest-measure-header .yfs-status-chip {
    flex: 0 0 auto;
    font-size: .72rem;
    line-height: 1.1;
}

.crop-module-shell .harvest-finish-actions .secondary-button,
.crop-module-shell .harvest-finish-actions .secondary-button:visited {
    background: var(--field);
    border: 1px solid var(--line);
    color: var(--ink) !important;
    text-decoration: none;
}

.crop-module-shell .harvest-finish-actions .secondary-button:hover,
.crop-module-shell .harvest-finish-actions .secondary-button:focus-visible {
    background: var(--paper-deep);
    border-color: var(--steel);
    color: var(--ink) !important;
}

.crop-module-shell .harvest-seed-recommendation-action,
.crop-module-shell .harvest-seed-recommendation-action:visited {
    align-self: start;
    color: #fffdf8 !important;
    text-decoration: none;
}

.crop-module-shell .crop-seed-review {
    background: #f4f8f0;
    border: 1px solid #c9d8bb;
    border-left: 4px solid var(--green);
    border-radius: 8px;
    display: grid;
    gap: .55rem;
    margin: 0 0 .85rem;
    padding: .72rem .78rem;
}

.crop-module-shell .crop-seed-review header h3 { margin: 0; }
.crop-module-shell .crop-seed-review-list { display: grid; gap: .42rem; }
.crop-module-shell .crop-seed-review-row {
    align-items: center;
    background: #fffdf8;
    border: 1px solid #c9d8bb;
    border-radius: 7px;
    color: var(--ink) !important;
    display: grid;
    gap: .35rem .7rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
    padding: .55rem .62rem;
    text-decoration: none;
}
.crop-module-shell .crop-seed-review-row:hover,
.crop-module-shell .crop-seed-review-row:focus-visible { background: var(--field); border-color: var(--green); color: var(--ink) !important; outline: none; }
.crop-module-shell .crop-seed-review-row > div { display: grid; gap: .08rem; min-width: 0; }
.crop-module-shell .crop-seed-review-row span,
.crop-module-shell .crop-seed-review-row small { color: var(--muted); font-size: .78rem; line-height: 1.28; }
.crop-module-shell .crop-seed-review-recommendation strong { color: var(--green); font-size: .84rem; }
.crop-module-shell .crop-seed-review-row.is-measuring .crop-seed-review-recommendation strong { color: #8a5a18; }
.crop-module-shell .crop-seed-review-row > b { color: var(--ink); font-size: .8rem; white-space: nowrap; }
.crop-module-shell .crop-seed-review-row em { color: var(--orange); font-size: 1.15rem; font-style: normal; }

/* Measured-harvest selection: evidence first, farmer decision last. */
.crop-module-shell .harvest-selection-workspace { display: grid; gap: .8rem; }
.crop-module-shell .harvest-selection-header { margin-bottom: 0; }
.crop-module-shell .harvest-selection-recommendation { align-items: center; background: #f3f8ef; border: 1px solid #c9d8bb; border-left: 4px solid var(--green); border-radius: 10px; display: grid; gap: .7rem 1rem; grid-template-columns: minmax(0, 1fr) auto; padding: .9rem 1rem; }
.crop-module-shell .harvest-selection-recommendation h3 { color: var(--ink); font-size: 1.15rem; margin: .05rem 0 .14rem; }
.crop-module-shell .harvest-selection-recommendation p { color: var(--muted); font-size: .84rem; line-height: 1.35; margin: 0; max-width: 58ch; }
.crop-module-shell .harvest-selection-recommendation__stats { display: flex; flex-wrap: wrap; gap: .45rem; grid-column: 1 / -1; }
.crop-module-shell .harvest-selection-recommendation__stats span { border-left: 1px solid #c9d8bb; display: grid; gap: .04rem; padding-left: .55rem; }
.crop-module-shell .harvest-selection-recommendation__stats span:first-child { border-left: 0; padding-left: 0; }
.crop-module-shell .harvest-selection-recommendation__stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.crop-module-shell .harvest-selection-recommendation__stats small { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.crop-module-shell .harvest-selection-recommendation .primary-button { justify-self: end; min-height: 2.45rem; white-space: nowrap; }
.crop-module-shell .harvest-selection-method { background: var(--paper-deep); border: 1px solid var(--line-soft); border-radius: 8px; }
.crop-module-shell .harvest-selection-method summary { align-items: center; cursor: pointer; display: flex; gap: .6rem; justify-content: space-between; list-style: none; padding: .65rem .78rem; }
.crop-module-shell .harvest-selection-method summary::-webkit-details-marker { display: none; }
.crop-module-shell .harvest-selection-method summary span { color: var(--ink); font-size: .85rem; font-weight: 850; }
.crop-module-shell .harvest-selection-method summary small { color: var(--muted); font-size: .75rem; text-align: right; }
.crop-module-shell .harvest-selection-method > div { border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .8rem; line-height: 1.38; padding: .68rem .78rem; }
.crop-module-shell .harvest-selection-method p, .crop-module-shell .harvest-selection-method ul { margin: 0; }.crop-module-shell .harvest-selection-method ul { margin-top: .42rem; padding-left: 1.15rem; }
.crop-module-shell .harvest-selection-form { display: grid; gap: .8rem; }
.crop-module-shell .harvest-selection-approach { background: var(--paper-deep); border: 1px solid var(--line-soft); border-radius: 8px; display: grid; gap: .1rem; padding: .72rem .8rem; }
.crop-module-shell .harvest-selection-approach > strong { color: var(--ink); font-size: .92rem; }.crop-module-shell .harvest-selection-approach > small { color: var(--muted); font-size: .77rem; line-height: 1.32; }
.crop-module-shell .harvest-selection-approach .form-field { margin: .55rem 0 0; }
.crop-module-shell .harvest-selection-candidates { border-top: 1px solid var(--line-soft); padding-top: .8rem; }
.crop-module-shell .harvest-selection-candidates > header { align-items: end; display: flex; gap: .75rem; justify-content: space-between; margin-bottom: .55rem; }
.crop-module-shell .harvest-selection-candidates h3 { color: var(--ink); margin: 0; }.crop-module-shell .harvest-selection-candidates > header > span { color: var(--muted); font-size: .76rem; font-weight: 800; }
.crop-module-shell .harvest-selection-groups { display: grid; gap: .65rem; }
.crop-module-shell .harvest-selection-group { background: var(--card); border: 1px solid var(--line-soft); border-left: 3px solid var(--steel); border-radius: 9px; overflow: hidden; }
.crop-module-shell .harvest-selection-group.state-candidate { border-left-color: var(--green); }.crop-module-shell .harvest-selection-group.state-watch { border-left-color: var(--orange); }.crop-module-shell .harvest-selection-group.state-avoid { border-left-color: #b4533c; }
.crop-module-shell .harvest-selection-group > header { align-items: start; background: var(--paper-deep); display: flex; gap: .6rem; justify-content: space-between; padding: .65rem .72rem; }
.crop-module-shell .harvest-selection-group h4 { color: var(--ink); font-size: .94rem; margin: .04rem 0; }.crop-module-shell .harvest-selection-group header small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.crop-module-shell .harvest-selection-group__metrics { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: end; }.crop-module-shell .harvest-selection-group__metrics span { color: var(--muted); font-size: .72rem; font-weight: 750; white-space: nowrap; }
.crop-module-shell .harvest-selection-items { display: grid; }
.crop-module-shell .harvest-selection-item { align-items: center; border-top: 1px solid var(--line-soft); cursor: pointer; display: grid; gap: .22rem .55rem; grid-template-columns: 1.25rem minmax(0, 1fr) auto; padding: .62rem .72rem; position: relative; }
.crop-module-shell .harvest-selection-item input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.crop-module-shell .harvest-selection-item__check { background: var(--card); border: 1.5px solid var(--line); border-radius: 5px; height: 1.05rem; width: 1.05rem; }
.crop-module-shell .harvest-selection-item input:checked + .harvest-selection-item__check { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px var(--card); }
.crop-module-shell .harvest-selection-item input:focus-visible + .harvest-selection-item__check { outline: 3px solid rgba(238, 111, 46, .3); outline-offset: 2px; }
.crop-module-shell .harvest-selection-item__identity { display: grid; gap: .04rem; min-width: 0; }.crop-module-shell .harvest-selection-item__identity strong { color: var(--ink); }.crop-module-shell .harvest-selection-item__identity small { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.crop-module-shell .harvest-selection-state { align-self: start; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .68rem; font-weight: 850; padding: .22rem .42rem; white-space: nowrap; }
.crop-module-shell .harvest-selection-item.state-recommended .harvest-selection-state { background: #edf4ea; border-color: #a6c29b; color: #39683d; }.crop-module-shell .harvest-selection-item.state-watch .harvest-selection-state { background: #fbf0dc; border-color: #d8ad64; color: #8a5e1d; }.crop-module-shell .harvest-selection-item.state-exclude .harvest-selection-state { background: #f9e5e1; border-color: #d49a8b; color: #8a4234; }
.crop-module-shell .harvest-selection-item__evidence { color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem .45rem; grid-column: 2 / -1; line-height: 1.25; }.crop-module-shell .harvest-selection-item__evidence small + small::before { content: '· '; }
.crop-module-shell .harvest-selection-lineage { background: var(--paper-deep); border: 1px solid var(--line-soft); border-radius: 9px; display: grid; gap: .6rem; padding: .75rem .82rem; }.crop-module-shell .harvest-selection-lineage h3 { color: var(--ink); font-size: 1rem; margin: .04rem 0; }.crop-module-shell .harvest-selection-lineage p { color: var(--muted); font-size: .8rem; line-height: 1.35; margin: 0; }.crop-module-shell .harvest-selection-lineage details { border-top: 1px solid var(--line-soft); padding-top: .55rem; }.crop-module-shell .harvest-selection-lineage summary { color: var(--ink); cursor: pointer; font-size: .82rem; font-weight: 850; }.crop-module-shell .harvest-selection-lineage .form-field { margin-top: .65rem; }
.crop-module-shell .harvest-selection-open-note { background: #fff8e9; border-left: 3px solid var(--orange); color: var(--muted); font-size: .8rem; margin: 0; padding: .6rem .72rem; }.crop-module-shell .harvest-selection-open-note strong { color: var(--ink); }
.crop-module-shell .harvest-selection-actions { align-items: stretch; display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 0; }.crop-module-shell .harvest-selection-actions .primary-button, .crop-module-shell .harvest-selection-actions .secondary-button { min-height: 2.65rem; }.crop-module-shell .harvest-selection-actions .secondary-button, .crop-module-shell .harvest-selection-actions .secondary-button:visited { background: var(--field); color: var(--ink) !important; text-decoration: none; }

@media (max-width: 560px) {
    .crop-module-shell .harvest-selection-recommendation { align-items: stretch; grid-template-columns: 1fr; }.crop-module-shell .harvest-selection-recommendation .primary-button { justify-self: stretch; width: 100%; }
    .crop-module-shell .harvest-selection-group > header { display: grid; }.crop-module-shell .harvest-selection-group__metrics { justify-content: start; }
    .crop-module-shell .harvest-selection-item { align-items: start; grid-template-columns: 1.25rem minmax(0, 1fr); }.crop-module-shell .harvest-selection-state { grid-column: 2; justify-self: start; }.crop-module-shell .harvest-selection-item__evidence { grid-column: 2; }
    .crop-module-shell .harvest-selection-actions { display: grid; grid-template-columns: 1fr; }.crop-module-shell .harvest-selection-actions > * { width: 100%; }
}

.planner-timeline { background: var(--card); border: 1px solid var(--line-soft); border-top: 4px solid var(--steel); border-radius: 9px; display: grid; gap: .7rem; padding: .85rem; }
.planner-timeline > header { align-items: center; display: flex; justify-content: space-between; gap: .75rem; }
.planner-timeline h3, .planner-timeline h4 { margin: 0; }.planner-timeline > header > span { color: var(--muted); font-size: .8rem; }
.planner-timeline-months { display: grid; gap: .55rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.planner-timeline-month { background: var(--paper-deep); border: 1px solid var(--line-soft); border-radius: 7px; display: grid; gap: .38rem; min-width: 0; padding: .58rem; }
.planner-timeline-month h4 { color: var(--ink); font-size: .9rem; }.planner-timeline-month > p { color: var(--muted); font-size: .75rem; margin: 0; }
.planner-timeline-event { align-items: start; border-left: 3px solid var(--steel); color: var(--ink) !important; display: grid; gap: .35rem; grid-template-columns: 2.5rem minmax(0, 1fr); padding: .25rem 0 .25rem .42rem; text-decoration: none; }
.planner-timeline-event time { color: var(--muted); font-size: .72rem; font-weight: 800; }.planner-timeline-event span { display: grid; gap: .06rem; }.planner-timeline-event strong { font-size: .8rem; }.planner-timeline-event small { color: var(--muted); font-size: .72rem; line-height: 1.25; }
.planner-timeline-event.kind-anchor { border-left-color: var(--orange); }.planner-timeline-event.kind-milestone { border-left-color: var(--green); }.planner-timeline-event.kind-crop { border-left-color: var(--blue); }.planner-timeline-event[href]:hover strong { text-decoration: underline; }

/* Farm planner: curated farm work first, supporting detail on demand. */
.planner-page-shell { display: grid; gap: 1rem; }
.planner-page-heading { align-items: end; margin-bottom: 0; }
.planner-page-heading > div:first-child { max-width: 42rem; }
.planner-page-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .45rem; }
.planner-page-actions a { min-height: 2.5rem; }
.planner-agenda, .planner-suggestions-panel, .planner-longrange-panel { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px; padding: .9rem 1rem; }
.planner-coming-agenda { margin-top: -.35rem; }
.planner-section-heading { align-items: center; cursor: default; display: flex; gap: .75rem; justify-content: space-between; list-style: none; margin: 0; }
.planner-section-heading::-webkit-details-marker { display: none; }
.planner-section-heading h3 { color: var(--ink); margin: 0; }
.planner-section-heading .eyebrow { margin: 0 0 .08rem; }
.planner-section-count { color: var(--muted); font-size: .76rem; font-weight: 800; text-align: right; }
.planner-agenda-row { align-items: start; border-top: 1px solid var(--line-soft); display: grid; gap: .65rem; grid-template-columns: 4.2rem minmax(0, 1fr) auto; padding: .62rem 0; }
.planner-agenda-row:first-of-type { margin-top: .55rem; }
.planner-agenda-row time { color: var(--green); font-size: .76rem; font-weight: 850; line-height: 1.3; }
.planner-agenda-row.is-overdue time { color: #a84d36; }
.planner-agenda-row strong { color: var(--ink); display: block; line-height: 1.25; }
.planner-agenda-row small { color: var(--muted); display: block; font-size: .78rem; line-height: 1.32; margin-top: .1rem; }
.planner-domain { color: var(--steel-deep, var(--steel)); display: block; font-size: .68rem; font-weight: 850; letter-spacing: .04em; margin-bottom: .08rem; text-transform: uppercase; }
.compact-action { align-items: center; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 7px; color: var(--ink) !important; display: inline-flex; font-size: .76rem; font-weight: 850; min-height: 2rem; padding: .25rem .5rem; text-decoration: none; }
.compact-action:hover, .compact-action:focus-visible { background: var(--field); border-color: var(--green); color: var(--ink) !important; outline: none; }
.planner-suggestions-panel, .planner-longrange-panel { margin: 0; }
.planner-suggestions-panel > summary, .planner-longrange-panel > summary { cursor: pointer; }
.planner-suggestions-panel > summary::after, .planner-longrange-panel > summary::after { color: var(--muted); content: 'Show'; font-size: .73rem; font-weight: 800; margin-left: .4rem; }
.planner-suggestions-panel[open] > summary::after, .planner-longrange-panel[open] > summary::after { content: 'Hide'; }
.planner-suggestion-list { margin-top: .45rem; }
.planner-suggestion { align-items: start; border-top: 1px solid var(--line-soft); display: grid; gap: .7rem; grid-template-columns: 4.1rem minmax(0, 1fr) auto; padding: .7rem 0; }
.planner-suggestion-date { display: grid; gap: .08rem; }
.planner-suggestion-date strong { color: var(--ink); font-size: .92rem; }
.planner-suggestion-date span { color: var(--muted); font-size: .68rem; font-weight: 750; white-space: nowrap; }
.planner-suggestion-copy > strong { color: var(--ink); display: block; line-height: 1.25; }
.planner-suggestion-copy p { color: var(--muted); font-size: .82rem; line-height: 1.3; margin: .12rem 0 0; }
.planner-suggestion-actions { align-items: center; display: flex; gap: .25rem; }
.planner-suggestion-actions form, .planner-suggestion-details form { margin: 0; }
.planner-suggestion-actions button { font-size: .75rem; min-height: 2rem; padding: .25rem .52rem; }
.planner-suggestion-actions .primary-button { background: var(--ink); color: var(--paper); }
.planner-suggestion-details { color: var(--muted); font-size: .78rem; grid-column: 2 / -1; line-height: 1.35; }
.planner-suggestion-details summary { color: var(--steel-deep, var(--ink)); cursor: pointer; font-weight: 800; }
.planner-suggestion-details p { margin: .35rem 0; }
.planner-suggestion-details ul { margin: .25rem 0 .45rem; padding-left: 1.1rem; }
.planner-suggestion-details .text-button { color: var(--muted); font-size: .74rem; min-height: 1.75rem; padding: 0; }
.planner-quiet-empty { color: var(--muted); font-size: .84rem; line-height: 1.4; margin: .6rem 0 .05rem; }
.planner-season-empty { background: var(--paper-deep); border-radius: 8px; color: var(--muted); display: grid; gap: .3rem; line-height: 1.35; margin-top: .7rem; padding: .7rem; }
.planner-season-empty strong { color: var(--ink); }.planner-season-empty .primary-button { justify-self: start; margin-top: .12rem; }
.planner-longrange-panel .planner-timeline-months { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: .7rem; }
.planner-timeline-month { background: transparent; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; padding: .5rem 0; }
.planner-timeline-month h4 { color: var(--muted); font-size: .74rem; letter-spacing: .04em; margin: 0 0 .25rem; text-transform: uppercase; }
.planner-timeline-event { border-left: 2px solid var(--steel); color: var(--ink) !important; grid-template-columns: 1.6rem minmax(0, 1fr); padding: .2rem 0 .2rem .4rem; }
.planner-timeline-event.kind-anchor { border-left-color: var(--orange); }.planner-timeline-event.kind-milestone { border-left-color: var(--green); }.planner-timeline-event.kind-crop { border-left-color: var(--green); }
.planner-milestone-form .planner-timing-choice { border: 1px solid var(--line-soft); border-radius: 9px; display: grid; gap: .35rem; margin: .8rem 0; padding: .7rem; }
.planner-milestone-form .planner-timing-choice label { align-items: center; display: flex; gap: .45rem; margin: 0; }
.planner-milestone-form [data-timing-panel] { display: grid; gap: .65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.planner-milestone-form [data-timing-panel="one_off"] { grid-template-columns: minmax(0, 1fr); }
.planner-preference-list { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px; display: grid; gap: 0; margin-top: 1rem; padding: .8rem; }
.planner-preference-list h3 { margin: 0 0 .4rem; }
.planner-preference-list > div { align-items: center; border-top: 1px solid var(--line-soft); display: flex; gap: .6rem; justify-content: space-between; padding: .55rem 0; }
.planner-preference-list span { color: var(--muted); font-size: .82rem; text-align: right; }

.variety-seed-lot-list { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.variety-seed-lot-list > a { background: var(--paper); border: 1px solid var(--line-soft); border-left: 3px solid var(--green); border-radius: 8px; color: var(--ink); display: grid; gap: .15rem; padding: .65rem .72rem; text-decoration: none; }
.variety-seed-lot-list > a:hover strong, .variety-seed-lot-list > a:focus-visible strong { color: var(--green); text-decoration: underline; }
.variety-seed-lot-list span, .variety-planting-seed-lots { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.variety-planting-seed-lots { display: block; }

@media (max-width: 720px) {
    .crop-module-shell .crop-dashboard-header { margin-bottom: .35rem; padding-bottom: .2rem; }
    .crop-module-shell .crop-view-nav { display: grid; gap: .22rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .crop-module-shell .crop-view-nav-primary { display: contents; }
    .crop-module-shell .crop-view-nav a,
    .crop-module-shell .crop-view-nav-more summary { font-size: .7rem; min-width: 0; padding-inline: .25rem; width: 100%; }
    .crop-module-shell .crop-view-nav-more { display: block; min-width: 0; }
    .crop-module-shell .crop-view-nav-more > div { right: 0; }
    .crop-module-shell .crop-seed-review-row { align-items: start; grid-template-columns: minmax(0, 1fr) auto; }
    .crop-module-shell .crop-seed-review-recommendation { grid-column: 1 / -1; }
    .planner-overview-grid { grid-template-columns: minmax(0, 1fr); }
    .planner-work-panel, .planner-suggestions-panel, .planner-longrange-panel { padding: .78rem; }
    .planner-work-row { grid-template-columns: 3.35rem minmax(0, 1fr) auto; }
    .planner-section-heading { align-items: start; }
    .planner-anchor-note { max-width: 10rem; }
    .planner-suggestion { gap: .55rem; grid-template-columns: 3.65rem minmax(0, 1fr); }
    .planner-suggestion-actions { flex-direction: row; grid-column: 1 / -1; justify-content: flex-end; }
    .planner-milestone-form [data-timing-panel] { grid-template-columns: minmax(0, 1fr); }
    .planner-timeline-months { grid-template-columns: 1fr; }
}

/* Planner agenda/year composition. Kept at the end to supersede older rows. */
.planner-page-shell { gap: .8rem; }
.planner-page-actions a { align-items: center; color: var(--ink) !important; display: inline-flex; justify-content: center; text-decoration: none; }
.planner-page-actions .primary-button { color: var(--paper) !important; }
.planner-view-switcher { background: var(--paper-deep); border: 1px solid var(--line-soft); border-radius: 9px; display: inline-grid; gap: .25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 18rem; padding: .25rem; }
.planner-view-switcher a { border-radius: 6px; color: var(--ink) !important; font-size: .82rem; font-weight: 850; min-height: 2.15rem; padding: .42rem .7rem; text-align: center; text-decoration: none; }
.planner-view-switcher a[aria-current="page"] { background: var(--ink); color: var(--paper) !important; }
.planner-agenda, .planner-suggestions-panel, .planner-year { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 11px; padding: .82rem; }
.planner-coming-agenda { margin-top: 0; }
.planner-agenda-list, .planner-suggestion-list { margin-top: .55rem; }
.planner-agenda-item { border-top: 1px solid var(--line-soft); display: grid; gap: .18rem; padding: .7rem 0; }
.planner-agenda-item:first-child { border-top: 0; padding-top: 0; }
.planner-agenda-item > strong { color: var(--ink); font-size: .96rem; line-height: 1.28; }
.planner-agenda-meta { align-items: center; display: flex; flex-wrap: wrap; gap: .45rem; }
.planner-agenda-meta time { color: var(--green); font-size: .77rem; font-weight: 900; }
.planner-agenda-item.is-overdue time { color: #a84d36; }
.planner-agenda-item details { margin-top: .18rem; }
.planner-agenda-item summary, .planner-suggestion > summary, .planner-year-operation > summary { cursor: pointer; list-style: none; }
.planner-agenda-item summary::-webkit-details-marker, .planner-suggestion > summary::-webkit-details-marker, .planner-year-operation > summary::-webkit-details-marker { display: none; }
.planner-agenda-item summary { color: var(--green); font-size: .78rem; font-weight: 850; }
.planner-agenda-item details p, .planner-operation-details p { color: var(--muted); font-size: .82rem; line-height: 1.38; margin: .45rem 0; }
.planner-domain { color: var(--green); font-size: .66rem; line-height: 1.2; }
.planner-suggestion { border-top: 1px solid var(--line-soft); display: block; padding: .68rem 0; }
.planner-suggestion:first-child { border-top: 0; padding-top: 0; }
.planner-suggestion > summary { align-items: start; display: grid; gap: .65rem; grid-template-columns: 4.2rem minmax(0, 1fr); }
.planner-suggestion-date strong { font-size: .9rem; }.planner-suggestion-date small { color: var(--muted); display: block; font-size: .67rem; font-weight: 750; line-height: 1.25; }
.planner-suggestion-copy small { color: var(--muted); display: block; font-size: .78rem; line-height: 1.32; margin-top: .08rem; }
.planner-operation-details { border-left: 2px solid var(--line-soft); margin: .58rem 0 .1rem 4.2rem; padding-left: .68rem; }
.planner-operation-details ul { color: var(--muted); font-size: .8rem; line-height: 1.4; margin: .25rem 0 .5rem; padding-left: 1rem; }
.planner-operation-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .4rem; }
.planner-operation-actions form { margin: 0; }.planner-operation-actions button { min-height: 2.2rem; }
.planner-year { overflow: hidden; }
.planner-year-months { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: .85rem 0 .45rem; padding-bottom: .35rem; }
.planner-year-months span { color: var(--muted); font-size: .67rem; font-weight: 850; text-align: center; text-transform: uppercase; }
.planner-year-operations { display: grid; gap: .38rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.planner-year-operation { grid-column: var(--start) / var(--end); min-width: 0; }
.planner-year-operation > summary { align-items: stretch; background: var(--paper-deep); border: 1px solid var(--line-soft); border-left: 4px solid var(--steel); border-radius: 7px; display: grid; gap: .3rem .55rem; grid-template-columns: 0 minmax(0, 1fr) auto; min-height: 3.7rem; padding: .45rem .55rem; }
.planner-year-operation.state-planned > summary { background: #eef4e9; border-left-color: var(--green); }.planner-year-operation.state-suggested > summary { border-left-color: var(--orange); }.planner-year-operation.state-completed > summary { opacity: .68; }.planner-year-operation.state-anchor > summary { background: #f8f0df; border-left-color: var(--orange); border-style: dashed; }
.planner-year-operation-copy { display: grid; min-width: 0; }.planner-year-operation-copy strong { color: var(--ink); font-size: .77rem; line-height: 1.2; overflow-wrap: anywhere; }.planner-year-operation-copy small { color: var(--muted); font-size: .66rem; line-height: 1.22; margin-top: .08rem; }
.planner-year-state { align-self: start; color: var(--muted); font-size: .61rem; font-weight: 850; text-transform: uppercase; }
.planner-year-operation .planner-operation-details { margin-left: .35rem; }
.planner-year-key { display: flex; flex-wrap: wrap; gap: .35rem .7rem; margin: .75rem 0 0; }.planner-year-key span { color: var(--muted); font-size: .72rem; font-weight: 800; }.planner-year-key span::before { background: var(--steel); border-radius: 50%; content: ''; display: inline-block; height: .48rem; margin-right: .22rem; width: .48rem; }.planner-year-key .state-planned::before { background: var(--green); }.planner-year-key .state-suggested::before, .planner-year-key .state-anchor::before { background: var(--orange); }.planner-year-key .state-completed::before { background: var(--line); }
@media (max-width: 720px) {
  .planner-page-heading { align-items: start; display: grid; gap: .65rem; }.planner-page-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }.planner-page-actions a { font-size: .72rem; min-width: 0; padding-inline: .3rem; }
  .planner-view-switcher { max-width: none; width: 100%; }.planner-agenda, .planner-suggestions-panel, .planner-year { padding: .72rem; }.planner-section-heading { gap: .4rem; }.planner-section-count { font-size: .69rem; }
  .planner-operation-details { margin-left: .25rem; }.planner-operation-actions > form { flex: 1 1 auto; }.planner-operation-actions .primary-button, .planner-operation-actions .secondary-button { width: 100%; }
  .planner-year-months { display: none; }.planner-year-operations { display: grid; grid-template-columns: 1fr; }.planner-year-operation { grid-column: auto; }.planner-year-operation > summary { grid-template-columns: minmax(0, 1fr) auto; min-height: 0; }.planner-year-operation-copy .planner-domain::before { content: attr(data-month); }
  .planner-year-operation-copy strong { font-size: .88rem; }.planner-year-operation-copy small { font-size: .74rem; }.planner-year-state { font-size: .63rem; }
}
