.postDialog.sodPhotoPost .postFoot {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.55rem;
}
.postDialog.sodPhotoPost .postFoot p {flex-basis:100%; margin:0}
.postDialog.sodPhotoPost .postFoot button {margin:0; min-height:44px}
.postDialog.sodPhotoPost .postFoot .sodCameraButton {background:#b5f5e4; color:#102b26}
.postDialog.sodPhotoPost .postPreview figure .sodEditThumb {
  inset:auto auto .4rem .4rem; background:#19191de8; color:white; min-height:38px; max-width:95%;
  border:1px solid #ffffff8a; border-radius:1rem; font-family:inherit; font-weight:600; font-size:.88rem; line-height:1.1; padding:.3rem .65rem;
}
dialog.sodPhotoEditor {
  box-sizing:border-box; color-scheme:dark; background:#201f24; color:#faf9fa; border:1px solid #49474e;
  border-radius:18px; padding:0; width:min(96vw,560px); max-width:100vw; height:min(820px,94dvh);
  max-height:100dvh; margin:auto; font:inherit; overflow:hidden;
}
dialog.sodPhotoEditor[open] {display:flex; flex-direction:column}
.sodPhotoEditor *, .sodPhotoEditor *::before {box-sizing:border-box}
.sodPhotoEditor [hidden] {display:none!important}
.sodPhotoEditor::backdrop {background:#121116c9}
.sodPhotoEditor header,.sodPhotoEditor footer {
  flex:none; position:static; display:flex; align-items:center; justify-content:space-between;
  gap:.75rem; width:100%; margin:0; padding:.6rem .9rem; background:#26252b; color:#fff;
}
.sodPhotoEditor header {border-bottom:1px solid #48464e}
.sodPhotoEditor header h2 {font:inherit; font-size:1.1rem; font-weight:750; margin:0; color:#fff}
.sodPhotoEditor [data-counter] {width:4.5rem; text-align:right; font-variant-numeric:tabular-nums}
.sodPhotoEditor button {
  font:inherit; font-size:.94rem; font-weight:650; line-height:1.25; min-height:44px; padding:.45rem .85rem;
  color:#f7f7f9; background:#323139; border:1px solid #65616c; border-radius:12px; cursor:pointer;
}
.sodPhotoEditor [data-cancel] {background:transparent; border:0; padding-inline:0}
.sodPhotoEditor button:focus-visible,.sodPhotoEditor input:focus-visible {outline:3px solid #97e9d2;outline-offset:2px}
.sodEditorScroll {flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain}
.sodStage {display:grid; place-items:center; background:#131215; height:clamp(130px,33dvh,310px); padding:.5rem}
.sodStage canvas {display:block; max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain; min-height:0; min-width:0}
.sodControls {display:grid; gap:1rem; padding:1rem}
.sodControls fieldset {padding:0; margin:0; border:0; min-width:0}
.sodControls legend {color:#fff; font-size:1rem; font-weight:700; padding:0; margin:0 0 .4rem}
.sodChoices {display:flex; flex-wrap:wrap; gap:.4rem}
.sodChoices button[aria-pressed=true] {background:#b5f5e4; color:#142c26; border-color:#b5f5e4}
.sodSliders {display:grid; gap:.15rem}
.sodSliders:has([hidden]) {display:none}
.sodSliders label {display:grid; grid-template-columns:minmax(5.2rem,auto) 1fr 3rem; gap:.6rem; align-items:center; min-height:38px; font-size:.95rem; color:#f5f4f7}
.sodSliders input {min-width:0; width:100%; margin:0; height:38px; accent-color:#9ee7d3}
.sodSliders output {text-align:right; color:#c9e6dd; font-variant-numeric:tabular-nums}
.sodPhotoEditor footer {border-top:1px solid #48464e; padding-bottom:max(.65rem,env(safe-area-inset-bottom))}
.sodPhotoEditor footer span {font-size:.875rem; color:#e5dce7}
.sodPhotoEditor [data-apply] {background:#ff9eae; border-color:#ff9eae; color:#30151b; flex:none}
.sodPhotoEditor [data-apply]:disabled {opacity:.55}
@media(max-width:600px) {
  dialog.sodPhotoEditor {width:100%; height:100dvh; max-width:100%; margin:0; border:0; border-radius:0}
  .sodPhotoEditor header {padding-top:max(.6rem,env(safe-area-inset-top))}
}
