/* Post editors share the same full-width layout in feeds and profile dialogs. */
html body form.sa-post-edit-layout.sa-post-edit-layout {
  box-sizing:border-box; display:grid!important; grid-template-columns:minmax(0,1fr)!important;
  grid-column:1/-1!important; justify-self:stretch!important; align-self:stretch!important;
  width:auto!important; inline-size:auto!important; min-width:0!important;
  max-width:none!important; max-inline-size:none!important; float:none!important;
  gap:12px!important; margin:12px!important; padding:16px!important;
  border:1px solid #d7e2da; border-radius:16px; background:#f4f8f5; color:#17251c;
  text-align:start;
}
html body dialog.sa-post-edit-dialog {
  box-sizing:border-box; width:min(960px,calc(100vw - 24px))!important;
  max-width:none!important; max-height:calc(100dvh - 24px); padding:0!important;
  border:0; border-radius:16px; background:#f4f8f5;
}
html body form.sa-post-edit-layout.sa-post-edit-layout > :is(fieldset,label,.sa-edit-controls) {
  box-sizing:border-box; grid-column:1/-1!important; justify-self:stretch!important;
  width:100%!important; max-width:none!important; min-width:0!important; margin-inline:0!important;
}
html body form.sa-post-edit-layout.sa-post-edit-layout > .sa-edit-pictures,
html body form.sa-post-edit-layout.sa-post-edit-layout > .sa-edit-add {
  display:block!important; padding:12px; border:1px solid #d7e2da;
  border-radius:12px; background:white;
}
.sa-edit-pictures legend {font-weight:650;padding:0 4px;}
.sa-edit-picture-grid {
  display:flex!important; flex-flow:row nowrap!important; align-items:flex-start;
  gap:10px; overflow-x:auto; padding:2px 2px 4px;
}
html body form.sa-post-edit-layout.sa-post-edit-layout .sa-edit-picture-grid > label {
  box-sizing:border-box; display:grid!important; position:relative!important; justify-items:center;
  flex:0 0 88px!important; width:88px!important; min-width:0!important; margin:0!important;
  gap:4px; padding:6px; border:1px solid #d7e2da; border-radius:9px;
  font-size:12px; font-weight:650; color:#617368; cursor:pointer;
}
.sa-post-edit-layout .sa-edit-picture-grid img {width:100%!important; height:auto!important; aspect-ratio:1; object-fit:cover; border-radius:6px;}
.sa-post-edit-layout .sa-edit-picture-grid input[type=checkbox] {
  appearance:none; position:absolute; top:6px; right:6px; width:18px; height:18px;
  display:grid!important; place-content:center; margin:0!important;
  border:1.5px solid #a8b6ad; border-radius:50%; background:#fff;
}
.sa-post-edit-layout .sa-edit-picture-grid input:checked {background:#087642;border-color:#087642;}
.sa-post-edit-layout .sa-edit-picture-grid input:checked::after {content:"✓";color:white;font-size:12px;}
html body form.sa-post-edit-layout.sa-post-edit-layout textarea {
  box-sizing:border-box; display:block!important; width:100%!important; min-height:108px;
  padding:12px; resize:vertical; border:1px solid #d4dfd7!important; border-radius:12px;
  background:#fff!important; font:inherit!important; font-weight:400!important; line-height:1.5!important;
}
.sa-post-edit-layout textarea:focus {outline:0;border-color:#78a58a!important;box-shadow:0 0 0 3px #bcd3c4;}
.sa-post-edit-layout .sa-edit-add {position:relative;cursor:pointer;}
.sa-post-edit-layout .sa-edit-add input[type=file] {
  display:block!important; position:absolute!important; inset:0!important; margin:0!important;
  width:100%!important; height:100%!important; opacity:0; cursor:pointer;
}
.sa-edit-file-button {display:inline-block;border:1px dashed #a7bfaf;border-radius:999px;padding:8px 14px;color:#087642;font-weight:650;}
.sa-edit-add:focus-within .sa-edit-file-button {outline:2px solid #087642;outline-offset:2px;}
html body form.sa-post-edit-layout.sa-post-edit-layout > .sa-edit-controls {
  display:flex!important; flex-direction:row!important; flex-wrap:nowrap!important;
  justify-content:flex-end!important; align-items:center!important; gap:8px!important; margin-top:8px;
}
html body form.sa-post-edit-layout.sa-post-edit-layout .sa-edit-controls > button {
  box-sizing:border-box; display:inline-flex!important; align-items:center; justify-content:center;
  width:auto!important; height:auto!important; min-height:40px; flex:0 0 auto!important;
  gap:8px; padding:8px 14px!important; margin:0!important; white-space:nowrap;
  color:#087642!important; background:#fff!important; border:1px solid #aeb9b1!important;
  border-radius:999px!important; font:inherit!important; font-weight:650!important;
}
html body form.sa-post-edit-layout.sa-post-edit-layout .sa-edit-controls > [data-cancel-post-edit] {
  color:#506358!important; border-color:#d7e2da!important; border-radius:9px!important;
}
.sa-post-edit-layout .sa-edit-controls svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;}
.sa-post-edit-layout > :is([data-community-form-status],[data-form-status]):empty {display:none;}
