.plant-editor-page { max-width: 1500px; margin-inline: auto; }
.plant-editor { display: block; max-width: none; padding: 0; }
.plant-editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 24px; align-items: start; }
.plant-editor-main { display: grid; gap: 24px; min-width: 0; }
.plant-editor-card { background: #fff; border: 1px solid #dce5df; border-radius: 18px; box-shadow: 0 8px 28px #123d2f05; padding: 28px; }
.plant-section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 25px; }
.plant-step { display: inline-grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 11px; background: #eaf3ee; color: #245d47; font-weight: 750; font-size: 13px; }
.plant-editor h2 { margin: 0 0 7px; font-size: 21px; color: #163e31; }
.plant-editor p { margin: 0; color: #67796f; font-size: 14px; line-height: 1.65; }
.plant-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.plant-editor label { display: grid; gap: 9px; color: #405c4d; font-size: 13px; font-weight: 650; }
.plant-editor input:not([type=checkbox]):not([type=hidden]) { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid #ceddd3; border-radius: 9px; background: #fcfdfc; font-size: 14px; color: #173e30; }
.plant-editor input:focus { border-color: #388b67; outline: 3px solid #3c91691f; }
.plant-editor input::placeholder { color: #8c9c93; font-weight: 400; }
.plant-connections { padding: 0; overflow: hidden; }
.plant-connections > summary { display: flex; align-items: center; gap: 14px; padding: 25px 28px; cursor: pointer; list-style: none; }
.plant-connections > summary::-webkit-details-marker, .plant-api-slot > summary::-webkit-details-marker { display: none; }
.plant-connections > summary strong { font-size: 19px; color: #163e31; }
.plant-connections > summary small { display: block; margin-top: 6px; color: #73867a; font-size: 12px; }
.plant-add-api { margin-left: auto; white-space: nowrap; color: #236045; background: #edf5f0; padding: 9px 13px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.plant-connections-body { border-top: 1px solid #e9eeea; padding: 23px 28px 28px; }
.plant-api-help { margin-bottom: 20px !important; }
.plant-api-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; }
.plant-api-slot { border: 1px solid #dce6df; border-radius: 11px; min-width: 0; }
.plant-api-slot > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 16px; cursor: pointer; }
.plant-api-slot > summary strong { display: block; color: #254b39; font-size: 13px; line-height: 1.5; }
.plant-api-kind { display: block; color: #7c8c81; font-size: 10px; letter-spacing: .1em; margin-bottom: 3px; }
.plant-api-badge { margin-left: auto; white-space: nowrap; color: #397358; font-size: 11px; font-weight: 700; }
.plant-api-slot[open] { border-color: #a5c5b2; background: #fafcfb; }
.plant-api-body { padding: 0 16px 17px; display: grid; gap: 12px; }
.plant-api-body small { color: #73867a; font-size: 11px; line-height: 1.6; }
.plant-api-save { justify-self: start; min-height: 40px; padding: 10px 15px; font-size: 12px; }
.plant-api-result { padding: 11px 13px; border-radius: 8px; overflow-wrap: anywhere; }
.plant-api-result.api-save-success { background: #e8f4ed; color: #225c3d; }
.plant-api-result.api-save-failed { background: #fff0ec; color: #b42318; border: 1px solid #f8c7c2; }
.plant-api-result.api-dataset-warning { background: #fff8e5; color: #805314; border: 1px solid #ecd594; }
.plant-api-slot { scroll-margin-top: 24px; }
.plant-general-apis { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e2eae4; }
.plant-general-apis summary { cursor: pointer; color: #365a45; font-size: 13px; font-weight: 650; }
.plant-general-apis p { margin: 12px 0 18px; }
.plant-status-card { background: #f0f6f2; padding: 26px; }
.plant-status-card .section-label { display: block; margin-bottom: 15px; font-size: 10px; }
.plant-status-card h2 { font-size: 20px; line-height: 1.4; }
.plant-status-card > label { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px; margin: 22px 0 10px; }
.plant-status-card input[type=checkbox] { width: 19px; height: 19px; accent-color: #2b7251; }
.plant-optional-note { border-top: 1px solid #d7e5db; padding-top: 20px; margin-top: 23px; }
.plant-optional-note strong { color: #305a42; font-size: 13px; }
.plant-optional-note p { margin-top: 7px; }
.plant-editor-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 22px 0; border-top: 1px solid #dbe5de; }
.plant-editor-footer .java-actions { margin: 0; }
@media(max-width: 1200px) { .plant-editor-layout { grid-template-columns: minmax(0,1fr); } }
@media(max-width: 760px) { .plant-detail-grid,.plant-api-grid { grid-template-columns: minmax(0,1fr); } .plant-editor-card { padding: 20px; } .plant-connections { padding: 0; } .plant-connections > summary,.plant-connections-body { padding: 20px; } .plant-editor-footer { align-items: stretch; flex-direction: column; } .plant-add-api { padding: 7px; font-size: 10px; } }
.plant-api-type-picker { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.plant-api-type-picker legend { font-size: 15px; font-weight: 700; color: #254b39; margin-bottom: 5px; }
.plant-api-type-options { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.plant-editor .plant-api-type-options label { display: flex; align-items: center; gap: 12px; flex: 1 1 200px; border: 1px solid #dce6df; border-radius: 11px; padding: 16px; cursor: pointer; }
.plant-api-type-options input { width: 20px; height: 20px; accent-color: #2b7251; flex-shrink: 0; }
.plant-api-type-options label:has(input:checked) { background: #edf5e5; border-color: #81aa71; }
.plant-api-type-options small { display: block; font-weight: 400; color: #67796f; margin-top: 4px; }
.plant-connections-body:not(:has(#plant-group-ddq:checked)) :is(.plant-api-slot[data-api-type="DDQ"], .plant-general-ddq),
.plant-connections-body:not(:has(#plant-group-mmf:checked)) :is(.plant-api-slot[data-api-type="MMF"], .plant-general-mmf),
.plant-connections-body:has(.plant-api-type-picker input:checked) .plant-api-type-empty,
.plant-connections-body:not(:has(.plant-api-type-picker input:checked)) :is(.plant-api-grid, .plant-general-apis) { display: none; }
.plant-api-type-empty { border-radius: 10px; background: #f3f6f1; padding: 18px; }
