/* Dialogs fit their contents; tall forms remain independently scrollable. */
@media(max-width:760px){
 #modalRoot .modal-backdrop{padding:12px;align-items:center;justify-items:center}
 #modalRoot .modal,#modalRoot .modal.modal-wide,#modalRoot .modal.launch-modal{height:auto;min-height:0;max-height:calc(var(--m105-vh,100dvh) - 24px);width:100%;max-width:560px;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 30px #0002;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
 #modalRoot .m105-modal-head{margin-bottom:16px;min-height:56px}
 #postForm .ui3-post-section{gap:10px}
 #postForm textarea{min-height:104px}
 #postForm .ui3-price-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px;align-items:end}
 #postForm .ui3-price-row .free-toggle{min-height:48px;padding:8px;align-items:center}
 #postForm .ui3-price-row .free-toggle small{display:none}
}
.post-compact-specs,.post-compact-location{margin:0!important}
.post-compact-specs>summary,.post-compact-location>summary,.ui8-optional-notes>summary{min-height:48px;cursor:pointer;overflow-wrap:anywhere}
.post-compact-specs[open]>#postAttributes,.post-compact-location[open]>:not(summary){margin-bottom:12px}
.ui8-optional-notes{border:1px solid var(--line);border-radius:8px;padding:0 12px}
.ui8-optional-notes>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--accent);font-weight:650;list-style:none}
.ui8-optional-notes>summary::-webkit-details-marker{display:none}
.ui8-optional-notes>summary:before{content:'›';font-size:20px;flex:none}
.ui8-optional-notes[open]>summary:before{transform:rotate(90deg)}
.ui8-optional-notes>summary span{font-size:14px;color:var(--muted);font-weight:400;white-space:nowrap}
.ui8-optional-body{display:grid;gap:12px;padding:0 0 12px}
.ui8-optional-notes>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

#postForm .compact-post-extra>summary span{white-space:nowrap;font-size:13px;flex:none}
@media(max-width:350px){#postForm .ui3-price-row{grid-template-columns:minmax(0,1fr)!important}}
