/* Desktop presentation only. Existing mobile elements and actions remain shared. */
.desktop-plan-nav,
.desktop-plan {
  display: none !important;
}
@media (min-width: 1100px) {
  :root {
    --desktop-header-height: 76px;
    --desktop-sidebar-width: 228px;
    scroll-padding-top: calc(var(--desktop-header-height) + 16px);
    scrollbar-gutter: stable;
  }
  .desktop-planning-page .desktop-plan-toolbar {
    position: sticky;
    top: var(--desktop-header-height);
    z-index: 30;
    background: white;
    padding: 12px 0 1px;
    box-shadow: 0 6px 8px -8px #123e3066;
  }
  .field-explorer .explorer-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .desktop-plan button {
    border: 1px solid #d4e2d7;
    border-radius: 9px;
    padding: 10px 14px;
    background: #f3f7f3;
    cursor: pointer;
    font: inherit;
  }
  .desktop-plan button:hover {
    background: #e5efe7;
  }
  .desktop-plan td button {
    border: 0;
    background: transparent;
    padding: 4px 0;
    font-weight: 600;
  }
  .desktop-plan-detail button {
    background: #20583d;
    color: white;
  }
  .field-explorer[data-desktop-view='plan'] .explorer-map-help::after {
    content: 'Tarkista työn tiedot painamalla työn nimeä. Valitse lohkot ruuduista yhteissuunnitteluun.';
  }
  .desktop-plan-nav {
    display: flex !important;
  }
  .desktop-planning-page .explorer-sticky-nav {
    display: none;
  }
  .desktop-plan:not([hidden]) {
    display: block !important;
  }
  .desktop-plan {
    grid-column: 1 / -1;
    background: white;
    padding: 20px;
    border: 1px solid #dbe6dd;
    border-radius: 16px;
  }
  .desktop-plan nav,
  .desktop-plan-tools {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }
  .desktop-plan nav button[aria-pressed='true'] {
    background: #20583d;
    color: white;
  }
  .desktop-plan-tools input {
    max-width: 360px;
  }
  .desktop-plan-tools select {
    max-width: 200px;
  }
  .desktop-plan-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
  .desktop-plan-grid.has-work-detail {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .desktop-plan-scroll {
    overflow: auto;
  }
  .desktop-plan table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  .desktop-plan th {
    background: #eef5ee;
    color: #28523c;
    text-align: left;
    white-space: nowrap;
  }
  .desktop-plan td,
  .desktop-plan th {
    padding: 12px 10px;
    border-bottom: 1px solid #e1e9e2;
  }
  .desktop-plan tr:hover td {
    background: #f6faf6;
  }
  .desktop-plan td[rowspan] {
    vertical-align: top;
    background: #f7faf6;
  }
  .desktop-plan .desktop-plan-field {
    font-weight: 600;
  }
  .desktop-plan-group-start td {
    border-top: 2px solid #d4e2d7;
  }
  .desktop-plan input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: #20583d;
  }
  .desktop-plan td button {
    font-size: inherit;
    text-align: left;
    color: #20583d;
  }
  .desktop-plan-detail {
    position: sticky;
    top: calc(var(--desktop-header-height) + 160px);
    padding: 18px;
    border-radius: 12px;
    background: #f2f6f2;
    overflow-wrap: anywhere;
  }
}
.desktop-field-detail,
.desktop-select {
  display: none;
}
@media (min-width: 1100px) {
  body {
    padding-top: var(--desktop-header-height);
    padding-left: var(--desktop-sidebar-width) !important;
    padding-bottom: 20px !important;
    background: #f3f6f3;
  }
  body > .top {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    height: var(--desktop-header-height);
    min-height: 0;
    padding: 12px 28px !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 24px;
    background: #173e2f;
    color: #f4f8f5;
    border-bottom: 1px solid #254e3b;
    box-shadow: 0 2px 10px #173e2f14;
  }
  body > .top .brand {
    position: static;
    transform: none;
    color: #fff;
    font-size: 28px;
    gap: 10px;
    flex-shrink: 0;
  }
  body > .top .brand-mark {
    width: 32px;
    height: 39px;
  }
  body > .top #account {
    order: 2;
    margin: 0;
    padding-left: 24px;
    border-left: 1px solid #3b604c;
    gap: 8px;
  }
  body > .top #account button,
  body > .top #account button.secondary {
    background: #244d3d;
    color: #f4f8f5;
    border: 1px solid #527362;
    border-radius: 9px;
    min-height: 40px;
    min-width: 40px;
    padding: 8px 12px;
    box-shadow: none;
  }
  body > .top #account button:hover,
  body > .top #account button.secondary:hover,
  body > .top #season-toolbar button:hover {
    background: #315c47;
  }
  body > .top #season-toolbar {
    order: 1;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d7e7db;
    gap: 12px;
  }
  body > .top #season-toolbar label {
    gap: 12px;
    font-size: 13px;
  }
  body > .top #season-toolbar select,
  body > .top #season-toolbar button {
    background: #244d3d;
    color: #f4f8f5;
    border: 1px solid #527362;
    border-radius: 9px;
    min-height: 40px;
    box-shadow: none;
  }
  body > .top #season-toolbar select {
    min-width: 96px;
    padding: 7px 10px;
  }
  body > .top #season-toolbar button {
    padding: 8px 12px;
    font-size: 13px;
  }
  body > .wrap,
  body.central-year-mode > .wrap {
    width: auto;
    max-width: 1800px !important;
    padding: 26px 30px !important;
    margin: auto;
  }
  .bottom-nav.nav {
    position: fixed !important;
    top: var(--desktop-header-height) !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: var(--desktop-sidebar-width) !important;
    max-width: none !important;
    height: calc(100dvh - var(--desktop-header-height)) !important;
    transform: none !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: stretch;
    gap: 6px;
    padding: 20px 12px !important;
    background: #f0f5f1 !important;
    border: 0;
    border-right: 1px solid #dfe7e1;
    box-shadow: none !important;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .bottom-nav.nav button {
    flex: none !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px !important;
    color: #53665b !important;
    background: transparent;
    border: 0;
    border-radius: 10px !important;
    font-weight: 600;
    box-shadow: none;
    outline: none;
    transform: none !important;
    margin: 0 !important;
  }
  .bottom-nav.nav button:hover {
    background: #e6eee8;
    color: #285d40 !important;
  }
  .bottom-nav.nav button.on {
    background: #dcebe0 !important;
    color: #205b3c !important;
  }
  .bottom-nav.nav button:focus-visible {
    outline: 2px solid #3c8255;
    outline-offset: -2px;
  }
  .bottom-nav.nav button > span:first-child {
    width: 24px;
    flex: 0 0 24px;
    text-align: center;
    font-size: 24px;
  }
  .bottom-nav.nav button svg {
    width: 24px !important;
    height: 24px !important;
  }
  .bottom-nav.nav .nav-label,
  .bottom-nav.nav #nav-more-toggle > span:last-child {
    font-size: 14px !important;
  }
  .bottom-nav.nav button > div {
    min-width: 0;
    text-align: left;
  }
  .bottom-nav.nav button strong {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
  }
  .bottom-nav.nav button small:not(.complete-badge) {
    display: none;
  }
  .bottom-nav.nav .complete-badge {
    position: static;
    margin-left: auto;
    padding: 3px 7px;
    min-width: 26px;
    height: auto;
    border: 0;
    background: #d7e7db;
    color: #27563c;
    font-size: 12px;
  }
  .fields-overview-header {
    margin-bottom: 20px;
  }
  .fields-summary {
    gap: 16px;
    margin-bottom: 18px;
  }
  .fields-summary-card {
    padding: 18px 22px;
    gap: 5px;
    border: 1px solid #e5ece6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 14px #213d2c04;
  }
  .fields-summary-label small {
    font-size: 13px;
    color: #607267;
  }
  .fields-summary-card > strong {
    font-size: 29px;
  }
  .fields-summary-crop > strong {
    font-size: 23px;
  }
  .field-explorer .explorer-sticky-nav {
    top: var(--desktop-header-height);
    background: #f3f6f3;
    border: 0;
    box-shadow: none;
  }
  .field-explorer .explorer-sticky-nav .explorer-tabs {
    gap: 6px;
  }
  .field-explorer .explorer-sticky-nav .explorer-tabs button {
    font-size: 15px;
    min-height: 52px;
    border-radius: 10px;
    background: #e9efea;
    color: #496052;
  }
  .field-explorer .explorer-sticky-nav .explorer-tabs button[aria-pressed='true'] {
    background: #225c3f;
    color: #fff;
  }
  .field-explorer .explorer-sticky-nav .explorer-map-help {
    font-size: 0;
    margin-top: 10px;
  }
  .wrap .season-plan-overview,
  .wrap .fertilizer .fert-product-heading,
  .wrap .complete-bulk {
    top: var(--desktop-header-height);
  }
  .field-explorer {
    max-width: none;
  }
  .field-explorer[data-desktop-view='map'] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
  }
  .field-explorer > .explorer-sticky-nav {
    grid-column: 1 / -1;
  }
  .field-explorer[data-desktop-view='map'] > .desktop-field-detail {
    display: block;
    grid-column: 2;
    grid-row: 2 / span 2;
    padding: 22px;
    border: 1px solid #e5ece6;
    border-radius: 14px;
    background: #fff;
    align-self: start;
    overflow-wrap: anywhere;
  }
  .desktop-field-detail h3 {
    font-size: 21px;
    margin-top: 0;
  }
  .desktop-field-detail p {
    color: #51675a;
  }
  .desktop-field-detail button {
    width: 100%;
    margin-top: 20px;
  }
  .explorer-map {
    height: min(70dvh, 800px);
    min-height: 420px;
  }
  .explorer-panel {
    max-width: none;
    padding: 24px;
    border: 1px solid #d8e4d9;
    border-radius: 16px;
    background: white;
  }
  .explorer-results {
    display: block !important;
  }
  .explorer-field-family {
    margin: 0;
    border-bottom: 1px solid #e0e8e1;
    border-radius: 0;
  }
  .explorer-base-line {
    display: flex;
    align-items: center;
  }
  .explorer-base-line > .explorer-row {
    flex: 1;
    min-width: 0;
  }
  .desktop-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
  }
  .desktop-select input {
    width: 19px;
    height: 19px;
    accent-color: #285c3c;
  }
  .explorer-child-list {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    padding-left: 32px;
  }
  .field-row-content {
    display: grid !important;
    grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: 100%;
  }
  .field-row-title {
    display: flex;
    justify-content: space-between;
    gap: 20px;
  }
  .explorer-list-help {
    display: none;
  }
  .explorer-selection {
    max-width: none;
  }
  .explorer-panel .explorer-selection {
    position: sticky;
    bottom: 12px;
    z-index: 3;
    background: #edf5ec;
    border: 1px solid #b4cfb9;
    box-shadow: 0 4px 24px #183e3015;
  }
  .explorer-row:focus-visible,
  .desktop-select input:focus-visible {
    outline: 3px solid #3c8255;
    outline-offset: 3px;
  }
}
@media (min-width: 1100px) {
  .journal {
    max-width: none;
  }
  .field-explorer .field-row-content {
    grid-template-columns: minmax(150px, 1fr) 110px minmax(150px, 1fr);
  }
  .field-explorer .field-row-title {
    display: contents;
  }
  .field-explorer .field-row-content > small {
    grid-column: 3;
  }
  .field-explorer .explorer-row {
    border-radius: 0;
    padding: 15px 12px;
  }
  .field-explorer .explorer-row:hover {
    background: #f0f6ef;
  }
  .desktop-table-heading {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 110px minmax(150px, 1fr);
    gap: 18px;
    padding: 12px 58px 12px 108px;
    background: #eef4ed;
    border-radius: 8px;
    color: #47634f;
    font-weight: 600;
  }
}
@media (max-width: 1099px) {
  .desktop-table-heading {
    display: none;
  }
}
@media (min-width: 1100px) {
  .field-explorer[data-desktop-view='map'] > .desktop-field-detail {
    position: sticky;
    top: calc(var(--desktop-header-height) + 140px);
  }
  .field-explorer .explorer-map-help {
    font-size: 0;
  }
  .field-explorer .explorer-map-help::after {
    content: 'Valitse lohko kartalta. Lohkolistan valintaruuduilla voit suunnitella usealle lohkolle.';
    font-size: 13px;
  }
}

/* Desktop field planning: reuse the mobile controls and their existing handlers. */
@media (min-width: 1100px) {
  .field-detail-modern .field-work-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 24px;
  }
  .field-detail-modern .field-work-actions button {
    flex: none;
    width: auto;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 9px;
  }
  .field-detail-modern .field-work-actions small {
    display: none;
  }
  .field-detail-modern .field-work-actions svg {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .field-detail-modern .field-plan-content > h3 {
    font-size: 20px;
  }
  .field-detail-modern .season-plan-caption {
    margin-bottom: 12px;
  }
  .field-detail-modern .season-plan-group {
    display: grid;
    grid-template-columns: 195px minmax(0, 1fr);
    gap: 0 20px;
    padding: 18px;
    margin: 12px 0;
    border: 1px solid #dce5dd;
    border-radius: 12px;
    background: white;
    align-items: start;
  }
  .field-detail-modern .season-plan-group > header {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    margin: 0;
  }
  .field-detail-modern .season-plan-icon {
    width: 32px;
    height: 32px;
  }
  .field-detail-modern .season-plan-icon svg {
    width: 22px;
    height: 22px;
  }
  .field-detail-modern .season-plan-group h4 {
    font-size: 15px;
  }
  .field-detail-modern .season-plan-add {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 36px;
    min-height: 36px;
    border-radius: 7px;
    background: var(--stage-soft);
    margin: 4px 0 0;
  }
  .field-detail-modern .season-plan-add::after {
    content: 'Lisää työ';
    font-size: 13px;
    font-weight: 600;
  }
  .field-detail-modern .season-plan-add svg {
    width: 16px;
    height: 16px;
  }
  .field-detail-modern .season-plan-group > :not(header) {
    grid-column: 2;
    min-width: 0;
  }
  .field-detail-modern .season-plan-group > [data-plan-nutrition]:empty {
    display: none;
  }
  .field-detail-modern .season-plan-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #edf1ed;
  }
  .field-detail-modern .season-plan-entry:last-child {
    border-bottom: 0;
  }
  .field-detail-modern .season-plan-work {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .field-detail-modern .season-plan-work > summary {
    padding: 4px 0;
    min-height: 40px;
  }
  .field-detail-modern .season-plan-work > summary strong {
    font-size: 14px;
  }
  .field-detail-modern .season-work-complete {
    display: flex;
    align-items: end;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: 0;
    flex-wrap: wrap;
    max-width: 340px;
  }
  .field-detail-modern .season-work-complete input[type='date'] {
    width: 140px;
    min-height: 36px;
    padding: 6px;
  }
  .field-detail-modern .season-work-complete button {
    min-height: 36px;
    padding: 6px 10px;
  }
  .field-detail-modern .season-work-complete label {
    font-size: 11px;
    margin: 0;
  }
  .field-detail-modern .season-work-complete .journal-check {
    min-height: 36px;
    font-size: 13px;
  }
  .field-detail-modern .season-plan-entry:has(.season-plan-work[open]) {
    grid-template-columns: minmax(0, 1fr);
  }
  .field-detail-modern .season-plan-group > .season-plan-editor {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 1180px;
    box-sizing: border-box;
    margin: 16px 0 0;
    padding: 20px;
    border: 1px solid #d5e2d8;
    border-radius: 10px;
  }
  .season-plan-editor .work-section-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px 20px;
    align-items: start;
  }
  .season-plan-editor .work-section-form > * {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .season-plan-editor .work-section-form > .work-section-card {
    grid-column: auto;
    margin: 0;
  }
  .season-plan-editor .work-section-form .journal-products {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .season-plan-editor .work-section-form .journal-products > :not(.work-section-card) {
    grid-column: 1 / -1;
  }
  .season-plan-editor .work-section-form .journal-products > .work-section-card {
    margin: 0;
  }
  .season-plan-editor .work-section-form input,
  .season-plan-editor .work-section-form select {
    font-size: 14px;
    min-height: 38px;
  }
  .season-plan-editor .work-section-form .journal-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 0 0;
  }
  .season-plan-editor .work-section-form .journal-bottom button {
    width: auto;
    min-width: 160px;
  }
}
@media (min-width: 1100px) and (max-width: 1399px) {
  .field-detail-modern .season-plan-group {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 0 14px;
  }
  .field-detail-modern .season-plan-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (min-width: 1100px) {
  .field-detail-modern .journal-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin: 14px 0;
  }
  .field-detail-modern .journal-tabs > button {
    flex: none;
    flex-direction: row;
    gap: 8px;
    width: auto;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 8px;
  }
  .field-detail-modern .journal-tabs > button svg {
    width: 20px;
    height: 20px;
  }
  .field-detail-modern .journal-crop-summary {
    padding: 12px 0;
    margin: 0;
  }
  .field-detail-modern .season-plan-group.is-editing .season-plan-add::after {
    content: 'Pienennä';
  }
  .season-plan-editor .work-section-form > [data-inline-section='card-basic'] {
    grid-column: 1 / -1;
  }
  .season-plan-editor [data-inline-section='card-basic'] > .work-section-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
  .season-plan-editor .season-plan-overview button {
    min-height: 48px;
  }
  .season-plan-editor .work-section-form > .saved-settings {
    margin: 0;
    padding: 8px 0;
  }
}

.desktop-work-summary {
  display: none;
}
@media (min-width: 1100px) {
  .field-detail-modern .season-plan-group {
    display: block;
    padding: 0 18px 14px;
    overflow: hidden;
  }
  .field-detail-modern .season-plan-group > header {
    display: flex;
    padding: 12px 0;
    margin: 0 0 8px;
    border-bottom: 1px solid #dce5dd;
  }
  .field-detail-modern .season-plan-group .season-plan-add {
    margin: 0 0 0 auto;
    width: auto;
    flex: none;
    padding: 8px 12px;
  }
  .field-detail-modern .season-plan-entry {
    display: block;
    padding: 0;
  }
  .field-detail-modern .season-plan-work > summary {
    gap: 12px;
    padding: 0;
  }
  .field-detail-modern .season-plan-work > summary:has(.desktop-work-summary) > span:first-child {
    display: none;
  }
  .field-detail-modern .desktop-work-summary {
    display: grid;
    grid-template-columns: minmax(120px, 1.1fr) minmax(180px, 2fr) minmax(95px, 1fr) 100px 100px;
    flex: 1;
    min-width: 0;
    align-items: start;
    padding: 0 0 12px;
    gap: 0;
    font-size: 14px;
  }
  .field-detail-modern .desktop-work-summary > span {
    min-width: 0;
  }
  .field-detail-modern .desktop-work-summary > span > small {
    display: block;
    background: #e8f0e4;
    padding: 8px 10px;
    color: #426044;
    font-size: 12px;
    margin-bottom: 8px;
    white-space: nowrap;
  }
  .field-detail-modern .desktop-work-summary > span > span {
    display: block;
    padding: 4px 10px;
    overflow-wrap: anywhere;
    min-height: 25px;
  }
  .field-detail-modern .desktop-work-summary > span:first-child > span {
    font-weight: 600;
  }
  .field-detail-modern .season-work-complete {
    max-width: none;
    justify-content: flex-end;
    background: #f7f9f5;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
  }
  .field-detail-modern .season-plan-group > .season-plan-editor {
    margin-top: 12px;
  }
}

/* Compact shared forms. Mobile keeps the inline editor below this breakpoint. */
@media (min-width: 1100px) {
  .season-plan-editor > .season-plan-overview {
    display: none;
  }
  .field-detail-modern .season-plan-group > .season-plan-editor {
    padding: 12px 16px;
    margin-top: 8px;
    background: #f7f9f5;
  }
  .season-plan-editor > .journal {
    margin: 0;
    padding: 0;
  }
  .season-plan-editor .journal h2 {
    font-size: 18px;
    margin: 6px 0 12px;
    padding: 0 0 8px;
  }
  .season-plan-editor .journal-back {
    margin: 0;
    padding: 4px 0;
    font-size: 12px;
  }
  .season-plan-editor .ey {
    display: none;
  }
  .season-plan-editor .work-section-form {
    gap: 8px 16px;
  }
  .season-plan-editor .work-section-card {
    border-radius: 8px;
  }
  .season-plan-editor .work-section-card > summary {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }
  .season-plan-editor .work-section-icon {
    width: 24px;
    height: 24px;
  }
  .season-plan-editor .work-section-icon svg {
    width: 17px;
    height: 17px;
  }
  .season-plan-editor .work-section-body {
    padding: 0 10px 8px;
  }
  .season-plan-editor .work-section-form .work-section-body label {
    margin: 0 0 6px;
  }
  .season-plan-editor .work-section-form .work-section-body input,
  .season-plan-editor .work-section-form .work-section-body select {
    min-height: 34px;
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 6px;
  }
  .season-plan-editor .work-section-form > .journal-more {
    grid-column: auto;
    margin: 0;
    padding: 0;
    align-self: start;
  }
  .season-plan-editor .work-section-form > .journal-more > summary {
    padding: 10px;
    min-height: 36px;
    font-size: 13px;
  }
  .season-plan-editor .work-section-form > .journal-work-notes {
    grid-column: 1 / -1;
  }
  .season-plan-editor .work-section-form .journal-work-notes textarea {
    min-height: 64px;
    font-size: 14px;
  }
  .season-plan-editor .work-section-form > .saved-settings {
    padding: 4px 0;
  }
  .season-plan-editor .work-section-form .journal-bottom {
    margin: 0;
    padding-top: 8px;
  }
  .season-plan-editor .work-section-form .journal-bottom button {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 14px;
    min-width: 130px;
  }
}

@media (min-width: 1100px) {
  html.desktop-work-open {
    overflow: hidden;
  }
  dialog.desktop-work-dialog {
    width: min(1180px, calc(100vw - 64px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    padding: 0;
    margin: auto;
    border: 1px solid #ccdcd1;
    border-radius: 14px;
    color: #19382d;
    background: #f7f9f6;
    box-shadow: 0 20px 80px #102e2a40;
    overflow: hidden;
  }
  dialog.desktop-work-dialog[open] {
    display: flex;
    flex-direction: column;
  }
  .desktop-work-dialog::backdrop {
    background: #102c2466;
  }
  .desktop-work-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    border-bottom: 3px solid #2b6c4c;
    background: #fff;
    flex-shrink: 0;
  }
  .desktop-work-heading h2 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
    outline: none;
  }
  .desktop-work-heading p {
    font-size: 13px;
    color: #61796e;
    margin: 4px 0 0;
  }
  .desktop-work-close {
    font-size: 28px;
    line-height: 1;
    min-width: 40px;
    min-height: 40px;
    padding: 4px;
    border: 1px solid #d5e2d8;
    border-radius: 8px;
    color: #254e3c;
    background: #f4f7f2;
  }
  .desktop-work-dialog > .season-plan-editor {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 24px 0;
    margin: 0;
    border: 0;
    width: 100%;
    box-sizing: border-box;
    scroll-padding: 12px 0 90px;
  }
  .desktop-work-dialog .journal > h2,
  .desktop-work-dialog .journal > .journal-back,
  .desktop-work-dialog .season-editor-collapse {
    display: none;
  }
  .desktop-work-dialog .journal > [data-new-work-context]:empty,
  .desktop-work-dialog #journal-work-error:empty,
  .desktop-work-dialog #journal-saved-settings:empty,
  .desktop-work-dialog #journal-save-settings:empty {
    display: none;
  }
  .desktop-work-dialog .work-section-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }
  .desktop-work-dialog .work-section-form > [data-inline-section='card-basic'],
  .desktop-work-dialog .work-section-form > .work-section-card,
  .desktop-work-dialog .work-section-form > .journal-products {
    grid-column: 1 / -1;
  }
  .desktop-work-dialog[data-phase='sowing'] .work-section-form > [data-inline-section='card-basic'],
  .desktop-work-dialog[data-phase='tillage']
    .work-section-form
    > [data-inline-section='card-basic'] {
    grid-column: 1;
    grid-row: 2;
  }
  .desktop-work-dialog[data-phase='sowing'] .work-section-form > .journal-products,
  .desktop-work-dialog[data-phase='tillage']
    .work-section-form
    > [data-inline-section='card-care'] {
    grid-column: 2;
    grid-row: 2;
  }
  .desktop-work-dialog .work-section-form > #journal-saved-settings {
    grid-row: 1;
  }
  .desktop-work-dialog [data-inline-section='card-basic'] > .work-section-body {
    display: block;
  }
  .desktop-work-dialog .work-section-card > summary {
    font-size: 15px;
    padding: 10px 12px;
  }
  .desktop-work-dialog .work-section-body {
    padding: 0 12px 12px;
  }
  .desktop-work-dialog .work-section-form .journal-bottom {
    position: sticky;
    bottom: 0 !important;
    z-index: 4;
    margin: 4px -24px 0;
    padding: 12px 24px;
    background: #fff;
    border-top: 1px solid #d5e2d8;
    box-shadow: 0 -4px 12px #19382d08;
    align-items: center;
    flex-wrap: wrap;
  }
  .desktop-work-dialog .journal-bottom [data-work-error]:not(:empty) {
    width: 100%;
    margin: 0;
  }
  .desktop-work-dialog .journal-bottom .desktop-work-back {
    order: -1;
    margin-right: auto;
  }
}

@media (min-width: 1100px) {
  .field-detail-modern .season-plan-group .season-editor-collapse {
    display: none;
  }
  .season-plan-editor .journal-back {
    min-height: 26px;
  }
  .season-plan-editor .journal-sowing-crop {
    padding-bottom: 0;
    border-bottom: 0;
  }
}
