/* Product UI only. Existing inputs, data attributes and event delegation remain in use. */
#app#app#app .post-composer-v12{position:relative;background:var(--spec-card,#fff);padding-bottom:24px;min-height:100dvh}
#app#app#app .post-composer-v12>.status,#app#app#app .post-composer-v12>.ref-bottom78{display:none}
#app#app#app .post-composer-v12>.ref-top78{padding-right:92px;position:sticky;top:0;z-index:5;background:var(--spec-card,#fff);height:56px;border-bottom:1px solid var(--spec-border,#eee);display:grid;grid-template-columns:60px 1fr 0}
#app#app#app .post-composer-v12>.ref-top78 h1{text-align:center;font-size:17px}
#app#app#app .post-composer-v12 .platform-back78{font-size:14px;font-weight:400;min-height:44px}
#app#app#app .post-composer-form{position:static;display:flex;flex-direction:column;gap:16px;margin:0;padding:20px 16px 24px}
#app#app#app .post-composer-title-label{position:relative;margin:0}
#app#app#app .post-composer-title-label>input{width:100%;min-height:48px;padding:12px;border:1px solid var(--spec-border,#eee);border-radius:var(--spec-r8,8px);background:var(--spec-card,#fff);font-size:16px;color:var(--spec-title,#222)}
#app#app#app .post-composer-title-label .field-count79{display:none}
#app#app#app .post-composer-form .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#app#app#app .post-composer-form .compose56-shell{margin:0;border:1px solid var(--spec-border,#eee);border-radius:var(--spec-r8,8px);background:var(--spec-card,#fff);box-shadow:none;overflow:hidden}
#app#app#app .post-composer-form .compose56-toolbar{display:flex;justify-content:flex-start;gap:8px;padding:4px 8px;min-height:48px;background:var(--spec-bg,#f5f5f5);border-bottom:1px solid var(--spec-border,#eee)}
#app#app#app .post-composer-form .compose56-toolbar button{width:44px;height:44px;min-height:44px;flex:0 0 44px;font-size:17px}
#app#app#app .post-composer-form .compose56-editor{min-height:220px;padding:14px 12px;font-size:15px;line-height:1.65;color:var(--spec-title,#222);outline:0}
#app#app#app .post-composer-form .compose56-status{font-size:11px;padding:8px 12px;min-height:32px;border:0;gap:12px}
#app#app#app .post-composer-form .compose56-status>span:first-child{color:var(--spec-secondary,#666)}
#app#app#app .post-composer-form .compose56-editor:focus-visible{box-shadow:inset 0 0 0 1px var(--spec-green,#16b85a)}
#app#app#app .post-attachments{margin:0;min-width:0}
#app#app#app .post-attachments[hidden]{display:none}
#app#app#app .post-attachments h2{font-size:13px;margin:0 0 8px;font-weight:500;color:var(--spec-body,#666)}
#app#app#app .post-attachments-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:8px}
#app#app#app .post-attachment{position:relative;min-width:0;overflow:hidden;border-radius:8px;background:var(--spec-bg,#f5f5f5)}
#app#app#app .post-attachment .compose56-media{margin:0;padding:0;border:0;border-radius:0;background:transparent}
#app#app#app .post-attachment img,#app#app#app .post-attachment video{display:block;width:100%;aspect-ratio:1;max-height:180px;object-fit:cover;border-radius:8px}
#app#app#app .post-attachment video{object-fit:contain;background:#111}
#app#app#app .post-attachment small{display:block;padding:4px 6px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--spec-secondary,#666)}
#app#app#app .post-attachment [data-post-attachment-remove]{position:absolute;right:2px;top:2px;min-height:32px;width:32px;border:0;border-radius:50%;background:#0009;color:white;font-size:21px}
#app#app#app .post-attachment [data-post-upload-status]{padding:4px 6px;display:grid;gap:4px;font-size:11px;color:var(--spec-body,#666)}
#app#app#app .post-attachment [data-post-upload-status][hidden],#app#app#app .post-attachment progress[hidden],#app#app#app .post-attachment [data-post-upload-retry][hidden]{display:none}
#app#app#app .post-attachment progress{width:100%;height:4px;accent-color:var(--ref-green-dark,#078a40)}
#app#app#app .post-attachment[data-upload-status=failed] [role=status]{color:#ba2e25}
#app#app#app .post-attachment [data-post-upload-retry]{min-height:44px;width:100%;border:1px solid var(--ref-green-dark,#078a40);border-radius:6px;color:var(--ref-green-dark,#078a40);background:white;font-size:12px}
#app#app#app .post-reference{grid-column:1/-1}
#app#app#app .post-reference .compose56-ref{margin:0;min-height:72px;padding-right:40px}
#app#app#app .post-media-tools{display:flex;justify-content:space-between;align-items:center;gap:4px;padding:0}
#app#app#app .post-media-tools button{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;min-width:44px;min-height:52px;gap:4px;padding:4px 0;border:0;background:transparent;color:var(--spec-title,#222);font-size:21px}
#app#app#app .post-media-tools .post-tool-label{font-size:11px;font-weight:400;white-space:nowrap}
#app#app#app .post-composer-context{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border:0;border-top:1px solid var(--spec-border,#eee);padding-top:12px;color:var(--spec-secondary,#666);font-size:12px}
#app#app#app .post-composer-context small{font-size:12px}
#app#app#app .post-composer-form>.mail55-submit-row:not([data-site-draft-controls]){display:contents}
#app#app#app .post-composer-form button.mail55-submit{position:absolute;top:8px;right:16px;z-index:6;width:64px;height:40px;min-height:40px;padding:0;border:0;border-radius:8px;background:var(--ref-green-dark,#078a40);color:white;font-size:14px}
#app#app#app .post-composer-form button.mail55-submit:disabled{opacity:.45}
#app#app#app .post-composer-form [data-site-draft-controls]{display:flex;justify-content:space-between;gap:8px;margin:0;padding-top:8px;border-top:1px solid var(--spec-border,#eee)}
#app#app#app .post-composer-form [data-site-draft-controls] button{height:44px;min-height:44px;flex:0 1 auto;border:0;background:transparent;padding:0 4px;color:var(--spec-secondary,#666);font-size:13px;font-weight:400}
#app#app#app .post-composer-form [data-site-draft-controls] [data-mail-preview56]{color:var(--ref-green-dark,#078a40)}
#app#app#app .post-composer-form [data-post-composer-note],#app#app#app .post-composer-form [data-site-save-status]{font-size:12px;color:var(--spec-secondary,#666);line-height:1.6;margin:0}
#app#app#app .post-composer-form [data-site-save-status][role=alert]{color:#ba2e25}
#app#app#app .post-composer-form .classification-advice{display:none}
/* A rail must overflow instead of squeezing every room into a four-column grid. */
#app#app#app .coexist-page78 .stand-grid78{display:flex!important;flex-wrap:nowrap;gap:12px;overflow-x:auto;overflow-y:hidden;margin:0 -16px;padding:0 16px 8px;scroll-snap-type:x proximity;scroll-padding-inline:16px;touch-action:pan-x pan-y;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
#app#app#app .coexist-page78 .stand-grid78 .stand-card78{flex:0 0 120px;width:120px;min-width:120px;scroll-snap-align:start;touch-action:pan-x pan-y}
#app#app#app .coexist-page78 .stand-grid78 .stand-card78 img{height:96px;pointer-events:none}
#app#app#app .coexist-page78 .stand-grid78 .stand-card78 b{font-size:13px}
#app#app#app .coexist-page78 .stand-grid78 .stand-card78 small{font-size:11px}

#app#app#app .post-composer-form .product-action-bar{position:static;display:contents;transform:none;left:auto;bottom:auto;width:auto;padding:0;border:0;background:transparent}
#app#app#app .post-composer-form button.mail55-submit.product-primary-button{position:absolute;top:8px;right:16px;left:auto;bottom:auto;width:64px;height:40px;min-height:40px;padding:0!important;margin:0!important;font-size:14px;line-height:40px;border:0!important}
#app#app#app .post-composer-title-label .field-count79{display:none!important}
#app#app#app .post-media-tools [data-rich-file-trigger56=image]{order:0}
#app#app#app .post-media-tools [data-rich-file-trigger56=video]{order:1}
#app#app#app .post-media-tools [data-rich-mention56]{order:2}
#app#app#app .post-media-tools [data-rich-emoji56]{order:3}
#app#app#app .post-media-tools [data-mail-universe56]{order:4}

#app#app#app .post-composer-v12>.ref-top78{padding:0 16px;grid-template-columns:60px 1fr 64px;gap:8px}
#app#app#app .post-composer-v12>.ref-top78>span{display:none}
#app#app#app .post-composer-v12>.ref-top78>button[data-post-publish]{position:static;display:block;z-index:6;width:64px;height:40px;min-height:40px;padding:0!important;border:0!important;background:var(--ref-green-dark,#078a40)!important;border-radius:8px;color:white;font-size:14px;line-height:40px}
#app#app#app .post-composer-v12>.ref-top78>button[data-post-publish]:disabled{opacity:.45}

#app#app#app .post-composer-form [data-live-room-column][hidden]{display:none!important}

#app#app#app .post-composer-form .compose56-toolbar{gap:4px}
#app#app#app .post-composer-form .compose56-toolbar button{flex:1 1 40px;width:auto;min-width:0;max-width:48px;min-height:44px}

#app#app#app .post-attachments>h2,#app#app#app .post-attachments>.post-attachments-grid{display:none}
#app#app#app .post-attachments>[data-post-media-group]{margin-top:12px}
#app#app#app .post-attachments>[data-post-media-group][hidden],#app#app#app [data-post-attachment-source][hidden]{display:none!important}
#app#app#app .post-attachments h3{font-size:13px;margin:0 0 8px;font-weight:500;color:var(--spec-secondary,#666)}
/* Existing edit forms keep their submit control in the form, below the content. */
#app#app#app .post-composer-form[data-rich-edit-form67] button.mail55-submit.product-primary-button{position:static;display:block;left:auto;right:auto;top:auto;bottom:auto;width:100%;height:44px;min-height:44px;line-height:44px}

/* Coexist media stays inline; this area shows transport status only. */
#app#app#app .post-uploads[hidden]{display:none}
#app#app#app .post-upload-row{padding:8px 0;border-bottom:1px solid var(--spec-border,#eee);font-size:12px;overflow-wrap:anywhere}
#app#app#app .post-upload-row small{display:block;color:var(--spec-secondary,#666)}
#app#app#app .post-upload-row [data-post-upload-status]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#app#app#app .post-upload-row progress{max-width:100%;height:6px;accent-color:var(--ref-green-dark,#078a40)}
#app#app#app .post-upload-row [hidden]{display:none!important}
#app#app#app .post-upload-row button{min-height:44px;padding:8px 16px}
#app#app#app .post-composer-form .compose56-editor .compose56-media{display:block;max-width:100%;margin:12px 0}
#app#app#app .post-composer-form .compose56-editor img,#app#app#app .post-composer-form .compose56-editor video{display:block;max-width:100%;width:100%;height:auto;max-height:480px;object-fit:contain}
#app#app#app .compose56-preview-mask{box-sizing:border-box;position:fixed;inset:0;z-index:160;display:flex;align-items:center;padding:16px max(12px,env(safe-area-inset-right)) 16px max(12px,env(safe-area-inset-left));overflow:hidden}
#app#app#app .compose56-preview{box-sizing:border-box;min-width:0;width:100%;max-width:480px;max-height:calc(100dvh - 32px);margin:auto;padding:0 16px 20px;border-radius:12px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background:var(--spec-card,#fff)}
#app#app#app .compose56-preview>header{position:sticky;top:0;z-index:2;padding:12px 0;background:var(--spec-card,#fff);border-bottom:1px solid var(--spec-border,#eee)}
#app#app#app .compose56-preview>header button{width:44px;height:44px;min-height:44px;flex-shrink:0}
#app#app#app .compose56-preview article,#app#app#app .compose56-preview-body{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
#app#app#app .compose56-preview article h1{font-size:20px;line-height:1.4}
#app#app#app .compose56-preview .compose56-media,#app#app#app .compose56-preview .compose56-ref{display:block;max-width:100%;box-sizing:border-box}
#app#app#app .compose56-preview img,#app#app#app .compose56-preview video{display:block;max-width:100%;width:100%;height:auto;max-height:55dvh;object-fit:contain}
