/* Edit environment drawer (environment-edit.js): one section for each thing that can be changed, divided by a rule
   (no card inside the drawer), and the values fixed at creation at the end. The drawer frame comes from ui/ui.css. */
.env-edit .ui-drawer-body { display: flex; flex-direction: column; gap: 0; }
.env-edit-section { min-width: 0; padding: 24px 0; border: 0; border-radius: 0; background: transparent; }
.env-edit-section:first-child { padding-top: 0; }
.env-edit-section + .env-edit-section { border-top: 1px solid var(--border); }
.env-edit-section[hidden] { display: none; }
.env-edit-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.env-edit-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--subtle); color: var(--secondary); }
.env-edit .env-edit-title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text); }
.env-edit-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.env-edit .env-edit-text { margin: 0; font-size: 14px; line-height: 20px; color: var(--text); overflow-wrap: anywhere; }
.env-edit .env-edit-hint, .env-edit .env-edit-text.env-edit-hint { margin: 0; font-size: 13px; line-height: 20px; color: var(--secondary); }
.env-edit .env-edit-text.bad, .env-edit .env-edit-result.bad { color: #991B1B; }
.env-edit .env-edit-result { margin: 0; font-size: 13px; line-height: 20px; color: #166534; }
.env-edit .env-edit-result:empty { display: none; }
.env-edit-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.env-edit-form .env-field { align-self: stretch; margin-top: 4px; }
.env-edit-body > button, .env-edit-form > button { align-self: flex-start; }
/* Set when it was created: read only */
.env-edit-facts { display: flex; flex-direction: column; margin: 0; }
.env-edit-fact { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; padding: 8px 0; }
.env-edit-fact + .env-edit-fact { border-top: 1px solid var(--border); }
.env-edit-fact dt { font-size: 13px; line-height: 20px; color: var(--muted); }
.env-edit-fact dd { margin: 0; font-size: 14px; line-height: 20px; color: var(--text); overflow-wrap: anywhere; }
/* The schedule editor brings its own card; inside the drawer it has no second frame or heading */

.env-edit-links { display: flex; flex-direction: column; }
.env-edit-link { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.env-edit-link + .env-edit-link { border-top: 1px solid var(--border); }
.env-edit-link-words { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 20px; color: var(--secondary); }
.env-edit-link-words strong { font-size: 14px; font-weight: 600; color: var(--text); }
.env-edit-link button { flex: none; min-height: var(--control-h-compact); height: var(--control-h-compact); padding: 0 12px; font-size: 13px; }
@media (max-width: 600px) {
  .env-edit-fact { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .env-edit-link { flex-wrap: wrap; }
  .env-edit-link button { margin-left: 40px; }
}
