.social-home{max-width:960px;margin:auto;padding:8px 0 90px}.social-top{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;position:sticky;top:0;background:var(--bg,#fff);z-index:4;padding:10px 0}.social-top>button{width:44px;height:44px;font-size:28px;background:none;border:0;color:var(--blue,#2d408c)}.social-top nav{display:flex;justify-content:center;gap:20px}.social-top nav button{padding:10px 0;border:0;background:none;white-space:nowrap;color:#73777b;font-size:16px}.social-top nav button[aria-pressed=true]{color:var(--blue,#2d408c);box-shadow:inset 0 -2px currentColor;font-weight:650}.social-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px;align-items:start}.social-card{text-align:left;padding:0 0 10px;border:1px solid #eceef1;border-radius:14px;overflow:hidden;background:#fff;color:#252b35;min-width:0}.social-card>img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}.social-text-cover{aspect-ratio:4/5;padding:18px 14px;display:flex;flex-direction:column;justify-content:center;background:#edf0f7;color:#293d7f;overflow:hidden}.social-text-cover small{font-size:10px;letter-spacing:1px}.social-text-cover p{font-size:clamp(17px,4.5vw,25px);line-height:1.65;font-weight:600;overflow:hidden;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical}.social-card h2{font-size:14px;line-height:1.6;margin:10px 10px 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.social-card-meta{display:flex;justify-content:space-between;gap:8px;margin:0 10px;color:#747983;font-size:11px}.social-card-meta span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.social-card>small{margin:8px 10px;font-size:11px;color:#777}.social-feed-status{font-size:13px;color:#777}.social-more{display:block;margin:24px auto}.social-search,.social-city{padding:8px 0;display:flex;gap:8px}.social-search[hidden],.social-city[hidden]{display:none}.social-search input,.social-city input{min-width:0;max-width:100%;padding:10px;border:1px solid #ddd;border-radius:10px}.social-dialog{border:0;border-radius:20px;width:min(650px,100%);max-height:92dvh;padding:0;color:#252b35;background:#fff;overflow:auto}.social-dialog::backdrop{background:#16233f66}.social-dialog>header{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;text-align:center;position:sticky;top:0;padding:12px;background:#fff;z-index:1;border-bottom:1px solid #eee}.social-dialog>header button{border:0;background:none;font-size:30px;min-height:44px}.social-dialog [data-content]{padding:20px}.social-prose{white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere}.social-article h1{font-size:23px;line-height:1.5}.social-author{font-size:13px;color:#777}.social-images img{display:block;width:100%;height:auto;margin-bottom:12px;border-radius:12px}.social-interactions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.social-dialog button,.social-more,.social-search button,.social-city button{cursor:pointer}.social-interactions button,.social-comment button,.social-reference,.social-notices button,.social-more{border:1px solid #dfe3ed;border-radius:20px;background:#f6f7fa;color:#304383;padding:9px 14px}.social-interactions [aria-pressed=true]{background:#2d408c;color:white}.social-comments{border-top:1px solid #eee;padding-top:15px}.social-comments h2{font-size:18px}.social-comments textarea,.social-editor textarea,.social-editor input:not([type=file]),.social-editor select{width:100%;box-sizing:border-box;border:1px solid #ddd;border-radius:12px;padding:12px;font:inherit;line-height:1.7}.social-comments form>button,.social-editor [type=submit]{background:#2d408c;color:#fff;border:0;border-radius:12px;padding:12px 20px;margin-top:10px}.social-comment{padding:15px 0;border-bottom:1px solid #eee}.social-comment p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.social-comment button{font-size:12px;padding:5px 10px;margin-right:8px}.social-editor{display:grid;gap:14px}.social-editor textarea{resize:vertical}.social-image-pick{padding:12px;background:#f3f5fa;border-radius:12px}.social-image-pick input{display:block;max-width:100%;margin-top:8px}.social-pending-images{display:flex;gap:8px;flex-wrap:wrap}.social-pending-images>div{position:relative}.social-pending-images img{width:90px;height:110px;object-fit:cover;border-radius:8px}.social-pending-images button{position:absolute;right:0;top:0}.social-editor details>input,.social-editor details>select{margin-top:10px}.social-notices{margin:20px 0;border-top:1px solid #eee;padding-top:10px}.social-notice{display:block;margin:10px 0;width:100%;text-align:left}.library-workspace{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 12px}.library-workspace button{border:1px solid #e0e4eb;background:#f5f6f9;color:#2d408c;border-radius:12px;padding:10px 12px}.library-workspace button:first-child{background:#003153;color:white}.social-dialog button:disabled{opacity:.5}body:has(.social-dialog[open]){overflow:hidden}
#libraryWorkspace{box-sizing:border-box;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));max-width:720px;margin:0 auto;padding:calc(var(--bar-h) + 22px + var(--safe-top)) 16px 8px;gap:8px}#libraryWorkspace button{grid-column:span 2;min-height:44px;padding:8px 4px;font-size:13px}#libraryWorkspace button:nth-child(-n+2){grid-column:span 3}#libraryWorkspace+#filterLine{padding-top:8px}.social-top svg{width:23px;height:23px;margin:auto}.social-dialog [data-in-map]{min-height:44px}.social-notices h2{font-size:16px}.social-notices [data-read],.social-notices [data-refresh]{font-size:12px}

#mePosts{grid-column:1/-1;justify-content:center;font-size:14px}.social-editor details select{max-width:100%}
.social-editor input,.social-editor textarea,.social-editor select,.social-comments textarea,.social-search input,.social-city input{font-size:16px}

.social-grid.social-masonry{display:flex;gap:8px;align-items:flex-start}.social-feed-column{display:flex;flex:1 1 0;min-width:0;flex-direction:column;gap:8px}.social-feed-column>.social-card{display:block;box-sizing:border-box;width:100%;margin:0;flex:none}.social-recipe-card{padding:12px 12px 10px;border:1px solid #e1e4ea;border-radius:12px;background:#fff;color:#333}.social-recipe-card .card-title{font-size:15px;line-height:1.4;margin:0 0 6px}.social-recipe-card .card-title-en{font-size:11.5px;line-height:1.4;margin:0 0 8px}.social-recipe-card .card-flavor{font-size:12px;line-height:1.6;margin:0 0 8px;color:#666}.social-recipe-card .keep-ings{font-size:13px;line-height:1.55}.social-recipe-card .keep-ings li{margin-bottom:5px}.social-recipe-card .keep-ings .more{color:var(--accent,#283e8c);font-size:12px}.social-recipe-card .keep-tags{gap:5px;margin-top:9px}.social-recipe-card .tag-pill{padding:4px 8px;font-size:11px;white-space:normal;overflow-wrap:anywhere}.social-recipe-card .ugc-badge{margin-left:5px;font-size:10px;vertical-align:middle}.social-recipe-card .social-card-meta{margin:12px 0 0;padding-top:9px;border-top:1px solid #f0f1f4}.social-recipe-card .keep-text{font-size:13px;line-height:1.6;white-space:normal}.social-recipe-card .social-card-meta span:last-child{white-space:nowrap}.social-editorial-card .social-text-cover{background:#edf0f7}

/* UX09: retained content, compact text stories, honest local loading. */
.social-feed-status{min-height:24px;margin:4px 0 8px;font-size:12px;color:#737d91}.social-grid[hidden],.feed-placeholder[hidden]{display:none!important}.feed-placeholder{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ux-skeleton-card{border:1px solid #e6e9ef;border-radius:12px;padding:16px;min-height:140px;background:#fafbfc}.ux-skeleton-card i{display:block;height:12px;border-radius:5px;background:#e9edf3;margin:14px 0;animation:ux-breathe 1.8s ease-in-out infinite}.ux-skeleton-card i:first-child{width:70%;height:22px}.ux-skeleton-card i:last-child{width:55%}.social-editorial-card .social-text-cover{aspect-ratio:auto;min-height:130px;height:auto;padding:22px 16px;justify-content:flex-start}.social-text-cover small{margin-bottom:16px}.social-text-cover p{font-size:18px;line-height:1.6;margin:0;overflow-wrap:anywhere}.social-editorial-card .social-text-cover+.social-card-meta{margin-top:12px}.social-article img{max-width:100%;height:auto}.ux-detail-loading{padding:20px}.ux-detail-loading .ux-skeleton-card{margin-top:16px;min-height:240px}@keyframes ux-breathe{50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.ux-skeleton-card i{animation:none}}

/* Keep author and interaction counts on one baseline in narrow editorial cards. */
.social-card-meta span:first-child{min-width:0;flex:1}.social-card-meta span:last-child{flex:0 0 auto;white-space:nowrap}

/* Community workspace: adaptive library columns, original single reader retained. */
@media(min-width:900px){#app.mode-library #listView{max-width:1400px;padding-left:24px;padding-right:24px}}

.social-card-open{display:block;width:100%;padding:0;background:transparent;border:0;color:inherit;font:inherit;text-align:left;border-radius:0}.social-card-open>img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}.social-author-link{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;min-height:32px}.social-author-link>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.social-author-link:disabled{opacity:1;cursor:default}.social-avatar{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#edf0f7;color:#2d408c;overflow:hidden}.social-avatar img{width:100%;height:100%;object-fit:cover}.social-card-meta{align-items:center}.social-card-reason{margin:8px 10px;color:#73777d;font-size:12px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.social-recipe-card .social-card-reason{margin:8px 0}.social-recipe-card .more{font-size:12px;color:#2d408c}.social-author{display:flex;align-items:center;gap:12px}.social-author-link:focus-visible,.social-card-open:focus-visible{outline:2px solid #2d408c;outline-offset:-2px}

.collection-tabs{display:flex;gap:8px;overflow:auto;margin:8px 0 16px}.collection-tabs button,.private-entries button,.public-profile button{padding:10px 14px;border:1px solid #e5e8ee;border-radius:14px;background:white;color:#2d408c}.collection-tabs button[aria-pressed=true]{background:#2d408c;color:white}.public-profile-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover}.public-profile h1{font-size:22px}.public-profile [data-profile-actions]{display:flex;gap:8px;margin:16px 0}.private-entries{display:grid;gap:10px;grid-template-columns:1fr 1fr}.private-entries button{text-align:left;line-height:1.5}.private-workspace>.cards{padding:0}.private-workspace h3{font-size:16px;margin-top:24px}.me-comment-row{text-align:left;background:white;width:100%}

.comment-target{outline:2px solid #2d408c;outline-offset:4px;border-radius:8px;background:#f5f6fb}.social-comment small{color:#7d8494}

.message-pull-status{text-align:center;font-size:.875rem;color:var(--accent,#283e8c);padding:6px 0}
#messagesPage .message-tools:not(:has(button:not([hidden]))){display:none}
.social-dialog .story-more{position:relative;justify-self:end}
.social-story-detail>header{grid-template-columns:1fr auto}
.social-story-detail>header>[data-close]{justify-self:start;min-width:44px}
.story-toolbar{justify-self:end;display:flex;align-items:center;color:var(--blue,#2d408c)}
.social-story-detail>header .story-tool{display:grid;place-items:center;width:clamp(30px,9vw,44px);height:44px;min-width:0;padding:0;color:inherit;background:transparent;border:0}
.story-tool svg{width:20px;height:20px}
.story-tool[aria-pressed=true] svg{fill:currentColor}
.social-story-detail .story-city,.social-story-detail .social-author [data-follow]{border:0;background:transparent;color:var(--blue,#2d408c);font:inherit;padding:0;min-height:44px}
.social-story-detail .story-city{display:block;margin-inline-start:auto;font-size:18.2px;text-align:right}
.social-story-detail .social-author [data-follow]{flex:none;padding-inline:4px}
.social-story-detail .social-author [data-follow][aria-pressed=true]{color:#606777}
.social-dialog .story-more-actions:not([hidden]){position:absolute;right:0;top:100%;z-index:5;display:grid;min-width:130px;background:var(--bg,#fff);border:1px solid #ddd;border-radius:12px;padding:4px;box-shadow:0 4px 16px #1420441c}
.social-dialog .story-more-actions button{width:100%;min-height:44px;text-align:left;padding:8px 14px;white-space:nowrap;font-size:15px}
#app.mode-messages #messagesPage{box-sizing:border-box;min-height:calc(100dvh - 76px - var(--safe-bottom,0px))}

.social-story-detail>header{padding-block:4px;z-index:3}
.social-story-detail [data-content]{padding:8px 16px 12px}
.social-story-detail .social-article h1{margin:4px 0 8px}
.social-story-detail .social-prose p{margin:0 0 6px}
.social-story-detail .social-prose p:empty,.social-story-detail .social-images:empty,.social-story-detail [data-result]:empty{display:none}
.social-story-detail .social-comments{margin:0;padding-top:10px}
.social-story-detail .social-comments form{position:relative;margin:0 0 6px}
.social-story-detail .social-comments textarea{display:block;min-height:40px;height:40px;margin:0;padding:8px 12px;line-height:22px;resize:none;border-radius:14px}
.social-story-detail .social-comments form:has(button:not([hidden])) textarea{padding-inline-end:64px}
.social-story-detail .social-comments form>button{position:absolute;right:4px;top:4px;height:32px;min-height:32px;margin:0;padding:0 12px;border-radius:10px}
.social-story-detail .social-comments form>button::before{content:"";position:absolute;inset:-6px 0}
.social-story-detail .social-comments form>button[hidden]{display:none}
.social-story-detail .story-comment{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr) 44px;column-gap:10px;padding:10px 0;border:0;align-items:start}
.story-comment .social-author-link{grid-column:1/3;display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:start;min-height:0;justify-self:start;color:#686d75}
.social-story-detail .story-comment button,.story-comment .comment-more summary{box-sizing:border-box;border:0;background:transparent;padding:0;margin:0;font:inherit;border-radius:4px}
.story-comment .social-author-link .social-avatar{position:absolute;left:0;top:10px;width:36px;height:36px}
.story-comment .social-author-link>span:last-child{grid-column:2;color:#686d75;font-size:14px;line-height:22px}
.story-comment .comment-body,.story-comment .comment-meta,.story-comment .comment-actions{grid-column:2/-1}
.social-story-detail .story-comment .comment-body{margin:1px 0 4px;line-height:1.55;font-size:15px;overflow-wrap:anywhere}
.social-story-detail .story-comment .comment-body{padding-inline-end:44px}
.story-comment .comment-meta{font-size:12px;color:#696e75}
.story-comment .comment-actions{display:flex;gap:10px;align-items:center}
.social-story-detail .comment-actions button{display:inline-flex;align-items:center;gap:4px;min-width:44px;min-height:44px;color:#555d66;font-size:13px}
.comment-actions svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.social-story-detail .comment-actions button[aria-pressed=true]{color:var(--blue,#2d408c)}
.comment-actions button[aria-pressed=true] svg{fill:currentColor}
.story-comment .comment-more{position:relative;grid-column:3;grid-row:1;height:22px;color:#626871;z-index:1}
.comment-more summary{display:grid;place-items:center;min-width:44px;min-height:44px;cursor:pointer;list-style:none}
.comment-more summary::-webkit-details-marker{display:none}
.comment-more summary svg{width:19px;height:19px}
.comment-more>div{position:absolute;z-index:2;right:0;top:44px;display:grid;min-width:88px;padding:4px;background:#fff;border:1px solid #dfe3ed;border-radius:10px;box-shadow:0 3px 10px #16233f16}
.social-story-detail .comment-more button{padding:6px 14px;min-height:44px;text-align:left;font-size:14px}

.social-home .social-feed-status:empty{display:none}

.ethanol-post-detail>header .story-tool{display:inline-flex;align-items:center;justify-content:center;gap:3px;width:auto;min-width:44px;padding-inline:3px}
.ethanol-post-count{font-size:.75rem;font-variant-numeric:tabular-nums}
