
/* Account and community responsive layout: keep text, media and controls in their own flow. */
#wf-account-root,.wf-account-shell,#wf-social,.sc-wrap{min-width:0;max-width:100%;box-sizing:border-box}
.wf-account-shell{width:100%;max-width:1320px;margin-inline:auto}
#wf-account-root *,#wf-social *,#oc-dialog *{box-sizing:border-box}
#wf-account-root .dh-welcome-top{grid-template-columns:88px minmax(0,1fr) max-content;grid-template-areas:"avatar greeting edit";align-items:center}
#wf-account-root .dh-welcome-top>div{min-width:0;max-width:100%;position:relative}
#wf-account-root .dh-avatar,#wf-account-root .dh-post-avatar,#wf-social .sc-avatar img,#wf-social .oc-form-top img,#wf-social .oc-compose-head img{display:block;position:static!important;inset:auto!important;margin:0!important;float:none!important;transform:none!important;flex-shrink:0;object-fit:cover;aspect-ratio:1;border-radius:50%}
#wf-account-root .dh-avatar{width:88px;height:88px}
#wf-account-root .dh-post-avatar,#wf-social .oc-compose-head img,#wf-social .oc-form-top img{width:42px;height:42px;max-width:42px}
#wf-account-root .dh-author,#wf-social .sc-author,#wf-social .oc-form-top,#wf-social .oc-compose-head{display:flex;align-items:center;gap:12px;min-width:0}
#wf-account-root .dh-author>div:last-child,#wf-social .sc-author>div:last-child,#wf-social .oc-form-top>div,#wf-social .oc-compose-head>div{flex:1;min-width:0;overflow-wrap:anywhere;position:static}
#wf-social .sc-avatar{flex:0 0 42px;width:42px;height:42px;overflow:hidden}
#wf-social .sc-avatar.sc-large{flex:0 0 70px;width:70px;height:70px}
#wf-social .sc-avatar img{width:100%;height:100%;max-width:100%}
#wf-account-root .dh-layout{grid-template-columns:minmax(0,1.9fr) minmax(250px,1fr);grid-template-areas:"main discovery" "main sidebar";align-items:start;gap:18px}
#wf-account-root .dh-main,#wf-account-root .dh-sidebar,#wf-account-root .dh-discovery,#wf-account-root .dh-panel,#wf-account-root .dh-post,#wf-social .sc-layout>*,#wf-social .sc-card,#wf-social .sc-panel{min-width:0;max-width:100%;width:100%}
#wf-account-root .dh-panel,#wf-account-root .dh-post,#wf-social .sc-card,#wf-social .sc-panel{height:auto;overflow-wrap:anywhere;position:relative}
#wf-account-root .dh-media,#wf-account-root .dh-media img,#wf-account-root .dh-video,#wf-social .sc-photo,#wf-social .sc-card video{position:static!important;display:block;float:none!important;transform:none!important;margin-inline:0!important;max-width:100%;width:100%;height:auto;clear:both}
#wf-account-root .dh-media img,#wf-social .sc-photo{object-fit:contain;max-height:520px;background:#f1f7fc}
#wf-account-root .dh-media figcaption{display:block;position:static;margin-top:8px;white-space:normal;overflow-wrap:anywhere}
#wf-account-root .dh-post h3,#wf-account-root .dh-post p,#wf-social .sc-card h2,#wf-social .sc-copy{position:static;white-space:normal;overflow-wrap:anywhere;max-width:100%}
#wf-account-root .dh-copy,#wf-social .sc-copy{white-space:pre-wrap}
#wf-account-root .dh-actions,#wf-social .sc-actions,#wf-account-root .mw-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
#wf-account-root .dh-action,#wf-social .sc-actions button,#wf-social .sc-actions a,#wf-account-root .mw-actions button,#wf-account-root .mw-panel button{max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
#wf-account-root .dh-place{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px}
#wf-account-root .dh-place-copy{min-width:0;overflow-wrap:anywhere}
#wf-account-root .dh-place .dh-action{justify-self:end}
#wf-account-root .dh-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
#wf-account-root .dh-stats button{min-width:0;white-space:normal;overflow-wrap:normal;line-height:1.35}
#wf-account-root .dh-stats button span{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
#wf-account-root .mw-nav{display:flex;max-width:100%;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;gap:8px;padding:8px 0 13px}
#wf-account-root .mw-nav button{flex:0 0 auto;min-height:44px}
#wf-account-root .mw-item>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
#wf-account-root .mw-form,#wf-social .sc-form,#wf-social .oc-form-extra>div{grid-template-columns:repeat(2,minmax(0,1fr))}
#wf-account-root .mw-form label,#wf-social .sc-form label,#wf-social .sc-form details{min-width:0;max-width:100%;overflow-wrap:anywhere}
#wf-account-root .mw-form input,#wf-account-root .mw-form select,#wf-account-root .mw-form textarea,#wf-social .sc-form input,#wf-social .sc-form select,#wf-social .sc-form textarea{min-width:0;max-width:100%}
#wf-social .sc-form .sc-check{display:flex;flex-direction:row;align-items:flex-start;gap:9px}
#wf-social .sc-check input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin-top:2px}
#wf-social .sc-layout{grid-template-columns:minmax(0,2fr) minmax(220px,1fr)}
#wf-social .sc-feed-filter{min-width:0;max-width:100%}
.dh-guide{padding:21px;border:1px solid #d8e6f1;border-radius:16px;background:#fff;margin:0 0 18px;box-shadow:0 4px 18px #0f467309}
.dh-guide .dh-section-head{margin:0 0 16px}
.dh-guide .dh-section-head p{font-size:13px;line-height:1.5;color:#526e86;margin:6px 0 0}
.dh-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dh-guide-card{display:grid;grid-template-columns:40px minmax(0,1fr);gap:13px;align-items:start;min-width:0;padding:16px;background:linear-gradient(145deg,#f8fbff,#eff7fd);border:1px solid #e0ecf5;border-radius:12px}
.dh-guide-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid #d7e7f2;background:#e6f2fb;border-radius:11px;color:#176aa5}
.dh-guide-icon svg{position:static!important;display:block;width:23px;height:23px;max-width:100%;flex:none}
.dh-guide-copy{min-width:0}
.dh-guide-copy h3{font:600 16px/1.35 system-ui;color:#123b60;margin:0 0 7px;overflow-wrap:anywhere}
.dh-guide-copy p{font:13px/1.55 system-ui;color:#526e86;margin:0 0 12px;overflow-wrap:anywhere}
.dh-guide-link,.dh-guide-copy .dh-action{display:inline-flex;align-items:center;justify-content:center;text-align:left;min-height:44px;max-width:100%;white-space:normal;line-height:1.3;font:650 13px/1.3 system-ui;color:#155988!important;text-decoration:none;padding:9px 12px;border:1px solid #c8deed;border-radius:8px;background:#fff!important}
.dh-feed-preferences{margin:0 0 14px;padding:12px 14px;background:#f5faff;border:1px solid #dae8f3;border-radius:10px;color:#123b60}
.dh-feed-preferences summary{font:600 13px/1.4 system-ui;cursor:pointer;min-height:26px}
.dh-feed-preferences[open] summary{margin-bottom:13px}
.dh-pref-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:12px 0}
.dh-pref-row>div{min-width:0;flex:1}
.dh-pref-row strong{font:650 14px/1.4 system-ui;color:#123b60}
.dh-pref-row p{font:13px/1.5 system-ui;color:#526e86;margin:4px 0 0;overflow-wrap:anywhere}
.dh-pref-row button{flex:0 1 auto;max-width:100%;white-space:normal;min-height:44px}
.dh-feed-preferences .dh-muted{margin:8px 0 0}
@media(max-width:900px){
 #wf-account-root .dh-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "discovery" "sidebar";grid-template-rows:auto;gap:12px}
 #wf-account-root .dh-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #wf-social .sc-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
 .wf-account-shell{padding:14px 12px 44px}
 #wf-account-root .dh-welcome-top{grid-template-columns:58px minmax(0,1fr);grid-template-areas:"avatar greeting" "edit edit";gap:12px;padding:18px 14px}
 #wf-account-root .dh-avatar{width:58px;height:58px}
 #wf-account-root .dh-welcome-top h1{font-size:clamp(23px,6.1vw,32px)!important;line-height:1.18!important;margin-bottom:5px!important}
 #wf-account-root .dh-edit{margin:0!important;justify-self:end;min-height:44px}
 #wf-account-root .dh-sidebar,.dh-guide-grid{grid-template-columns:minmax(0,1fr)}
 .dh-guide{padding:14px}.dh-guide-card{padding:12px;grid-template-columns:36px minmax(0,1fr);gap:11px}
 .dh-guide-icon{width:36px;height:36px}.dh-guide-icon svg{width:21px;height:21px}
 .dh-pref-row{flex-wrap:wrap}.dh-pref-row>div{flex-basis:100%}.dh-pref-row button{min-height:44px}
 #wf-account-root .mw-form,#wf-social .sc-form,#wf-social .oc-form-extra>div{grid-template-columns:minmax(0,1fr)}
 #wf-account-root .dh-place{grid-template-columns:36px minmax(0,1fr)}#wf-account-root .dh-place .dh-action{grid-column:2;justify-self:start}
 #wf-social .sc-person{flex-wrap:wrap}#wf-social .sc-person>div{min-width:0;flex:1 1 160px}
 #wf-social .sc-groups{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:380px){#wf-account-root .dh-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#wf-account-root .dh-stats button{border-bottom:1px solid #d8e6f1}#wf-account-root .dh-stats button:nth-child(2n){border-right:0}#wf-account-root .dh-stats button:nth-child(n+3){border-bottom:0}.oc-create-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.oc-create-actions a,.oc-create-actions button{min-height:78px}}