/* DAO refinement: retain the owner's cream/gold and dark tokens, improve density,
   safe-area geometry, hierarchy and focus. No external font/animation runtime. */
:root{--ui-space-1:4px;--ui-space-2:8px;--ui-space-3:12px;--ui-space-4:16px;--ui-space-6:24px;--ui-radius:16px;--ui-focus:var(--text);}
html body :is(button,a,input,textarea,summary,select):focus-visible{outline:2px solid var(--ui-focus);outline-offset:3px;}
html body :is(.social-icon-button,.social-search-back,#social-search-clear,.social-search-submit,.social-follow,.asset-detail-close,.social-scope,.asset-detail-retry){min-width:44px;min-height:44px;}
html body .social-user-row{gap:12px;min-width:0;padding-block:16px;}
html body .social-user-row>.social-user-meta{display:grid;grid-template-rows:auto auto;align-content:center;row-gap:6px;min-width:0;max-height:40px;overflow:hidden;flex:1;}
html body .social-user-meta :is(.social-username,.social-creator){display:block;text-align:left;justify-self:start;align-self:start;max-width:100%;min-height:0;height:auto;margin:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.1;}
html body .social-user-meta .social-username{font-size:16px;}
html body .social-user-meta .social-creator{font-size:13px;}
html body .social-user-row>.social-follow{flex-shrink:0;margin-left:auto;}
html body .social-post:not(.social-chat-message){padding-block:20px;}
html body .social-post-actions{gap:8px 16px;}
html body .social-post-actions .social-action{min-height:44px;padding:8px 4px;font-size:13px;}
html body .social-text{font-size:15px;line-height:1.7;}
html body .social-toolbar{padding-block:8px;}
html body .social-feed-scopes{padding:3px;border-radius:14px;}
html body .social-scope{min-width:72px;border-radius:10px;}
html body .social-heading>strong{font-size:clamp(24px,4vw,28px);letter-spacing:-.02em;}
html body .social-pull-status{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:auto;min-height:96px;padding:8px 0;color:var(--muted);font-size:13px;line-height:1.5;transition:none;}
html body .social-pull-status[hidden]{display:none!important;}
.social-pull-friend{display:block;width:72px;height:58px;overflow:visible;color:var(--text);}
.pull-face{fill:var(--surface-soft);stroke:var(--accent);stroke-width:2;}
.pull-eyes{fill:currentColor;}.pull-shadow{fill:var(--line);}
.pull-antenna,.pull-arm,.pull-smile{fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;}
.pull-spark{fill:var(--accent);}.pull-friend-body{transform-box:fill-box;transform-origin:center;transform:translateY(calc((1 - var(--pull-progress,1)) * 5px));}
[data-state=armed] .pull-friend-body{animation:dao-friend-ready .65s ease-in-out infinite alternate;}
[data-state=loading] .pull-friend-body{animation:dao-friend-hop .65s ease-in-out infinite;}
[data-state=loading] .pull-spark{transform-origin:40px 33px;animation:dao-friend-orbit 1.3s linear infinite;}
[data-state=done] .pull-friend-body{transform:translateY(-2px) rotate(-5deg);}
@keyframes dao-friend-ready{to{transform:translateY(-3px) rotate(5deg);}}
@keyframes dao-friend-hop{50%{transform:translateY(-7px) rotate(-4deg);}}
@keyframes dao-friend-orbit{to{transform:rotate(360deg);}}
html body .asset-detail-bubble{box-sizing:border-box;border-radius:24px;max-width:none;overflow:hidden;}
html body .asset-detail-bubble[data-mode=mobile]::before{display:none;}
html body .asset-detail-head{padding:16px 16px 12px;border-bottom:1px solid var(--line);gap:16px;}
html body .asset-detail-head strong{font-size:20px;line-height:1.3;}
html body .asset-detail-close{flex-basis:44px;width:44px;height:44px;font-size:26px;}
html body .asset-detail-body{padding:8px 16px 20px;scrollbar-gutter:stable;overflow-x:hidden;}
html body .asset-detail-description{font-size:15px;line-height:1.75;}
html body .asset-detail-facts{grid-template-columns:minmax(72px,.8fr) minmax(0,2.2fr);gap:12px 16px;font-size:14px;line-height:1.6;padding-block:16px;}
html body .asset-detail-facts dt{font-size:13px;}
html body .asset-detail-facts dd{min-width:0;}
html body .asset-detail-meta{overflow-wrap:anywhere;font-size:12px;line-height:1.65;}
html body .asset-detail-extra summary{min-height:44px;line-height:24px;padding-block:10px;box-sizing:border-box;}
html body .asset-detail-links{gap:4px 16px;}
html body .asset-detail-links a{min-height:44px;display:inline-flex;align-items:center;overflow-wrap:anywhere;}
html body .dao-trade-record.is-reversed,.social-trade.is-reversed{opacity:.85;border-style:dashed;}
.paper-reversal-note{display:block;color:var(--muted);font-size:13px;line-height:1.6;}
@media(min-width:1024px){
 html body .social-sheet{--social-readable-width:760px;}
 html body :is(#social-content,#social-status,#social-toolbar){max-width:var(--social-readable-width,760px);margin-inline:auto;width:100%;box-sizing:border-box;}
 html body .dao-performance-grid{gap:12px 20px;}
 html body .dao-account-section{padding:20px;}
 html body .social-profile{max-width:720px;margin-inline:auto;}
}
@media(max-width:380px){html body .social-user-row{gap:10px;}html body .social-follow{padding-inline:12px;}html body .asset-detail-facts{grid-template-columns:72px minmax(0,1fr);gap:10px;}}
@media(prefers-reduced-motion:reduce){html body .social-pull-friend *{animation:none!important;transform:none!important;}html body :is(.social-action,.social-follow,.asset-detail-bubble){transition:none!important;}}
