/* Light publication surfaces inside the dark home shell only. */
body.uh-shell :is(.uh-feed-preview,#os-feed) :is(.uh-user-post,.ops-post){background:#fff!important;background-image:none!important;color:#18334e!important;color-scheme:light;opacity:1!important;min-width:0;overflow-wrap:anywhere}
body.uh-shell :is(.uh-feed-preview,#os-feed) :is(.uh-user-post,.ops-post)>header{background:transparent!important;background-image:none!important;color:#18334e!important;box-shadow:none!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) :is(.uh-user-post,.ops-post) :is(p,li,label,dt,dd,blockquote,.osf-body,.cn-post-text){color:#294962!important;opacity:1!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) :is(.uh-user-post,.ops-post) :is(h2,h3,h4,strong,b){color:#153b57!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) :is(.uh-user-post,.ops-post) :is(time,small,.muted,.osf-date,.osf-scope){color:#52697c!important;opacity:1!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) :is(.uh-user-post,.ops-post) a{color:#00678c!important;opacity:1!important;text-shadow:none!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) :is(.uh-user-post,.ops-post) :is(button,summary,.button,.btn,.onp-social),body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions>a,body.uh-shell :is(.uh-feed-preview,#os-feed) .uh-user-post>footer>a{background:#edf6fb!important;background-image:none!important;color:#006183!important;border:1px solid #99bccf!important;box-shadow:none!important;text-shadow:none!important;filter:none!important;font-weight:600;opacity:1!important;min-height:44px}
body.uh-shell :is(.uh-feed-preview,#os-feed) :is(.uh-user-post,.ops-post) :is(button,summary,.button,.btn,.onp-social):hover,body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions>a:hover{background:#dceef9!important;color:#064967!important;border-color:#007da4!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) :is(.uh-user-post,.ops-post) :is(button[disabled],button[disabled]:hover){background:#f1f4f7!important;color:#52697c!important;border-color:#a9bfce!important;cursor:not-allowed;opacity:.8!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) :is(.uh-user-post,.ops-post) :is(input,textarea,select,option){background:#fff!important;color:#18334e!important;border-color:#8eacbe!important;color-scheme:light!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post .ops-inline{background:#f7fbff!important;color:#18334e!important;border:1px solid #bad5e9!important;box-shadow:none!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) :is(.uh-user-post,.ops-post) :focus-visible{outline:3px solid #007da4!important;outline-offset:3px!important}
/* Retain the server fallback link; show only the enhanced action once ready. */
body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post:has(.ops-post-actions)>footer:has(>a[data-uh-post]){display:none!important}
@media(max-width:600px){body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions{gap:8px!important}body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions>a,body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions>details{flex:1 1 140px!important;min-width:0!important}body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions :is(a,summary){white-space:normal!important;overflow-wrap:anywhere;line-height:1.45!important}}

body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions{align-items:stretch!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions>a{display:flex!important;align-items:center}
body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions>details:not([open])>summary{display:flex!important;align-items:center;height:100%}

body.uh-shell :is(.uh-feed-preview,#os-feed) :is(.uh-user-post,.ops-post) :is(input,textarea)::placeholder{color:#52697c!important;opacity:1!important}

/* Compact icon actions; expanded forms always occupy the full card width. */
body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions>details[open]{flex:1 1 100%!important;width:100%!important;max-width:100%!important;min-width:0!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions>.hf-icon-action,body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions>details:not([open]):has(>.hf-icon-action){flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post-actions .hf-icon-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:0!important;width:44px!important;height:44px!important;min-height:44px!important;padding:10px!important;position:relative;box-sizing:border-box}
.hf-icon-action>svg{display:block;width:22px;height:22px;flex:none;pointer-events:none}.hf-action-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-post .ops-inline :is(h2,h3){white-space:normal!important;overflow-wrap:anywhere;max-width:100%!important;line-height:1.4!important;font-size:20px!important}

body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-inline :is(label,form){min-width:0!important;max-width:100%!important;box-sizing:border-box;white-space:normal!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-inline :is(textarea,select,input:not([type=checkbox]):not([type=radio])){width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
body.uh-shell :is(.uh-feed-preview,#os-feed) .ops-inline button{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere}
