/* Scoped to Post a Listing. Editing, Marketplace, and Owner Review retain their styles. */
#app:has(#post-form){max-width:900px;padding-top:18px}
#app:has(#post-form) .post-page-title{padding:0 0 16px}
#app:has(#post-form) .post-page-title .eyebrow{margin:0 0 5px;font-size:11px}
#app:has(#post-form) .post-page-title h1{margin:0 0 6px;font-size:34px;line-height:1.1}
#app:has(#post-form) .post-page-title p:last-child{margin:0;color:var(--muted);font-size:13px;line-height:1.4}
#post-form.form-card{max-width:none;padding:22px;border:0;border-radius:14px;background:var(--panel,#fff);box-shadow:none}
#post-form h2{margin:0;font-size:17px;line-height:1.3}
#post-form label{display:block;min-width:0;margin:0;padding:0;border:0;background:none;font-size:13px;font-weight:700;line-height:1.4}
#post-form label small{font-size:11px;font-weight:400;color:var(--muted)}
#post-form #post-title-help,#post-form #post-contact-field>small{display:block;margin-top:5px}
#post-form label input:not([type="checkbox"]):not([type="hidden"]):not(.visually-hidden-file),#post-form label select,#post-form label textarea{width:100%;min-width:0;min-height:46px;margin-top:5px;padding:10px 11px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);color:var(--text);line-height:1.35;font-family:inherit;font-size:16px;font-weight:400;box-shadow:none}
#post-form label input:focus-visible,#post-form label select:focus-visible,#post-form label textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#post-form textarea{min-height:84px;resize:vertical}
#post-form .post-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
#post-form .photo-status{margin:0;min-height:0;font-size:12px;max-width:75%;text-align:right;color:var(--muted)}
#post-form .photo-picker-control{display:block!important;margin:0!important;cursor:pointer}
#post-form .photo-picker-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:84px;padding:14px;border:1px dashed #a88117;border-radius:10px;background:#fff9e6;color:#765706}
#post-form .photo-picker-button strong{font-size:16px}
#post-form .photo-picker-button small{color:inherit;font-size:12px;font-weight:400}
#post-form .photo-picker-control:focus-within .photo-picker-button{outline:2px solid var(--accent);outline-offset:3px}
#post-form .photo-picker-disabled{opacity:.6}
#post-form .photo-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-height:0;margin:10px 0 0;padding:0;border:0;background:none;overflow:visible}
#post-form .photo-gallery:empty{display:none}
#post-form .photo-thumb{min-width:0;border:2px solid var(--line);border-radius:8px;background:var(--panel2);overflow:hidden}
#post-form .photo-thumb.is-cover{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
#post-form .photo-thumb img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
#post-form .cover-badge{top:5px;left:5px;font-size:10px;padding:3px 6px}
#post-form .photo-thumb .remove-photo{top:5px;right:5px;width:34px;height:34px}
#post-form .post-listing-details{margin-top:20px}
#post-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin-top:12px}
#post-form .post-wide{grid-column:1/-1}
#post-form #post-contact-required:empty{display:none}
#post-form .post-more-details{margin-top:16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
#post-form .post-more-details>summary{min-height:48px;padding:14px 0;cursor:pointer;font-size:14px;font-weight:750}
#post-form .post-optional-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px;padding:2px 0 16px}
#post-form [hidden]{display:none!important}
#post-form .check{display:flex!important;align-items:center;gap:10px;min-height:44px;font-size:12px;font-weight:400;line-height:1.45}
#post-form .check input{flex:0 0 auto;width:20px;height:20px;margin:0;accent-color:var(--accent)}
#post-form .shipping-check{grid-column:1/-1}
#post-form>.shipping-check{margin-top:16px}
#post-form .post-agreement{margin-top:10px;padding:0;border:0;background:none}
#post-form .post-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px;padding:0;border:0}
#post-form .post-actions>button{min-height:48px;min-width:145px;padding:11px 15px;border-radius:8px;font-size:14px;font-weight:800}
#post-form #save-draft{border:1px solid var(--line);background:var(--panel2);color:var(--text)}
#post-form #publish-listing{background:#e3ad22!important;color:#18130a!important}
#post-form #post-status{min-height:0;margin:8px 0 0;font-size:13px}
#post-form #post-status:empty{display:none}
[data-theme="dark"] #post-form .photo-picker-button{background:#201d13;border-color:#9c7b1d;color:#f2ca54}
@media(max-width:560px){
  #app:has(#post-form){width:calc(100% - 24px);padding-top:12px}
  #app:has(#post-form) .post-page-title{padding-bottom:12px}
  #app:has(#post-form) .post-page-title h1{font-size:28px}
  #post-form.form-card{padding:14px 12px 18px;border-radius:10px}
  #post-form .form-grid{gap:10px 12px}
  #post-form .post-listing-details{margin-top:16px}
  #post-form .photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #post-form .post-optional-grid{grid-template-columns:1fr}
  #post-form .form-grid{grid-template-columns:1fr}
  #post-form .post-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  #post-form .post-actions>button{width:100%;min-width:0;padding-inline:8px}
}
@media(max-width:350px){#post-form .form-grid{grid-template-columns:1fr}#post-form .post-actions{grid-template-columns:1fr}}

#post-form .photo-empty-slot{min-height:105px;display:grid;place-content:center;border:1px dashed var(--line);background:var(--panel);color:inherit}#post-form .photo-empty-slot small{display:block;font-size:12px}#post-form .photo-edit-actions{display:flex;position:absolute;bottom:0;left:0;right:0;background:#111c;gap:4px;padding:3px}#post-form .photo-edit-actions button{min-height:36px;padding:4px 8px;font-size:12px;color:#fff;background:#252a30}#post-form .post-optional{grid-column:1/-1}#post-form .post-optional summary{cursor:pointer;padding:10px 0;font-weight:700}

#post-form .post-optional summary{min-height:44px;box-sizing:border-box}
