.phone-container > .forum-app{--forum-bg:#f7f7f5;--forum-surface:#fff;--forum-text:#111;--forum-muted:#777;--forum-line:rgba(17,17,17,.11);position:absolute;z-index:330;top:var(--lnyy-statusbar-height,28px);right:0;bottom:0;left:0;overflow:hidden;background:var(--forum-bg);color:var(--forum-text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;letter-spacing:0}
.forum-app *{box-sizing:border-box;letter-spacing:0}.forum-app button,.forum-app input,.forum-app textarea,.forum-app select{font:inherit;color:inherit}.forum-app button{border:0;background:none}.forum-page,.forum-overlay-page,.forum-onboarding{position:absolute;inset:0;background:var(--forum-bg)}
.forum-page{padding-bottom:calc(82px + var(--safe-bottom-inset,0px));overflow:hidden}.forum-topbar,.forum-overlay-header{height:54px;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;padding:0 14px;position:relative;z-index:5}.forum-wordmark{text-align:center;font-family:Georgia,serif;font-size:12px}.forum-icon-button{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;cursor:pointer}.forum-icon{display:block;flex:none}.forum-icon-button:active,.forum-nav-button:active{transform:scale(.92)}.forum-topbar-spacer{width:44px}.forum-switch{justify-self:center;display:flex;gap:18px}.forum-switch button{height:44px;padding:0;font-size:13px;color:var(--forum-muted)}.forum-switch button.is-active{color:var(--forum-text);font-weight:650}
.forum-nav{position:absolute;z-index:12;left:50%;bottom:calc(12px + var(--safe-bottom-inset,0px));transform:translateX(-50%);display:flex;align-items:center;gap:18px;height:58px}.forum-nav-button{width:54px;height:54px;display:grid;place-items:center;border:1px solid var(--forum-line);border-radius:50%;background:color-mix(in srgb,var(--forum-surface) 82%,transparent);backdrop-filter:blur(18px) saturate(0);box-shadow:0 8px 24px rgba(0,0,0,.08);color:var(--forum-muted);transition:transform .16s ease,color .16s ease,background .16s ease}.forum-nav-button.is-active{background:var(--forum-text);color:var(--forum-surface)}
.forum-avatar{padding:0;overflow:hidden;display:grid;place-items:center;flex:none;border-radius:50%;background:#dededb;color:#343434;font-weight:650}.forum-avatar img{width:100%;height:100%;display:block;object-fit:cover}.forum-avatar-large{width:72px;height:72px;font-size:24px}.forum-avatar-medium{width:52px;height:52px}.forum-avatar-small{width:42px;height:42px;font-size:14px}.forum-avatar-tiny{width:32px;height:32px;font-size:11px}
.forum-feed-list{height:calc(100% - 54px);overflow:auto;padding:4px 18px 92px;scrollbar-width:none}.forum-feed-card{height:196px;padding:15px 0;border-bottom:1px solid var(--forum-line);display:grid;grid-template-rows:42px 1fr 24px;cursor:pointer;outline:none}.forum-feed-card header{display:flex;gap:10px;align-items:center}.forum-feed-author{min-width:0;height:39px;display:flex;flex-direction:column;justify-content:center}.forum-feed-author strong,.forum-feed-author span{font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forum-feed-author span{color:var(--forum-muted)}.forum-feed-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;min-height:0;padding:10px 0}.forum-feed-body p{margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.65}.forum-feed-body img{width:76px;height:76px;object-fit:cover;border-radius:4px}.forum-feed-card footer{display:flex;align-items:center;justify-content:space-between}.forum-feed-card time,.forum-feature-content time,.forum-profile-post time{font-size:10px;color:var(--forum-muted);font-variant-numeric:tabular-nums}.forum-metrics{display:flex;align-items:center;gap:18px}.forum-metrics button{height:32px;display:flex;align-items:center;gap:5px;padding:0 2px;font-size:11px}.forum-metrics button.is-active svg{fill:currentColor}.forum-empty{margin:32px auto;text-align:center;color:var(--forum-muted);font-size:13px}.forum-text-action{display:block;min-height:44px;margin:8px auto;color:var(--forum-muted);font-size:12px}
.forum-home-page{background:var(--forum-bg)}.forum-home-space{height:clamp(80px,23vh,188px);position:relative}.forum-refresh{position:absolute;right:22px;bottom:8px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;color:var(--forum-muted)}.forum-feature-list{display:flex;gap:12px;overflow-x:auto;padding:0 18px 104px;scroll-snap-type:x mandatory;scrollbar-width:none}.forum-feature-card{position:relative;flex:0 0 calc(100% - 26px);height:310px;max-height:43vh;overflow:hidden;border-radius:8px;background:#e8e8e4;scroll-snap-align:center;color:#111;cursor:pointer}.forum-feature-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.forum-feature-fade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 20%,rgba(245,245,243,.18) 46%,rgba(245,245,243,.96) 100%)}.forum-feature-type{position:absolute;inset:-8% -16%;display:flex;align-items:center;font-family:Georgia,"Songti SC",serif;font-size:40px;line-height:1.45;font-style:italic;transform:rotate(-11deg);opacity:.12;filter:blur(.2px);word-break:break-all}.forum-feature-content{position:absolute;right:18px;bottom:18px;left:18px;display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:end}.forum-feature-content p{grid-column:2;margin:0;font-family:Georgia,"Songti SC",serif;font-size:16px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.forum-feature-content time{grid-column:2}
.forum-profile-page{overflow:auto;padding-bottom:calc(84px + var(--safe-bottom-inset,0px));scrollbar-width:none}.forum-profile-hero{height:235px;position:relative;background-image:linear-gradient(180deg,rgba(0,0,0,.05) 0%,transparent 55%,var(--forum-bg) 100%),var(--forum-profile-bg,linear-gradient(135deg,#d7d7d3,#f1f1ef));background-size:cover;background-position:center}.forum-profile-hero::after{content:"";position:absolute;inset:auto 0 0;height:45%;background:linear-gradient(transparent,var(--forum-bg))}.forum-profile-corner{position:absolute;z-index:2;top:8px;left:12px;background:color-mix(in srgb,var(--forum-surface) 76%,transparent);backdrop-filter:blur(14px) saturate(0)}.forum-profile-main{position:relative;margin-top:-48px;padding:0 20px 90px;display:flex;flex-direction:column;align-items:center}.forum-profile-main>.forum-avatar{z-index:2;border:3px solid var(--forum-bg)}.forum-profile-identity{min-height:58px;margin-top:8px;display:flex;flex-direction:column;align-items:center;justify-content:center}.forum-profile-identity strong{font-size:17px}.forum-profile-identity span{margin-top:4px;max-width:280px;color:var(--forum-muted);font-size:12px;line-height:1.5}.forum-profile-facts{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0 24px}.forum-profile-facts div{min-height:58px;padding:9px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--forum-line);border-radius:6px}.forum-profile-facts strong{font-size:13px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.forum-profile-facts span{margin-top:3px;color:var(--forum-muted);font-size:9px}.forum-profile-posts{width:100%}.forum-profile-post{height:110px;padding:14px 2px;border-top:1px solid var(--forum-line);text-align:left}.forum-profile-post p{margin:9px 0 0;font-size:14px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.forum-detail-page{padding:0;overflow:hidden}.forum-detail-header{height:174px;position:relative;border-radius:0 0 28px 28px;background:var(--forum-surface);display:flex;flex-direction:column;align-items:center;padding-top:20px;box-shadow:0 12px 32px rgba(0,0,0,.06)}.forum-detail-header>.forum-avatar{margin-bottom:7px}.forum-detail-header>strong{font-size:16px}.forum-detail-header>span{margin-top:3px;max-width:70%;font-size:11px;color:var(--forum-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forum-detail-close,.forum-detail-more{position:absolute;top:8px}.forum-detail-close{left:8px}.forum-detail-more{right:8px}.forum-detail-scroll{height:calc(100% - 174px);overflow:auto;padding:24px 20px calc(34px + var(--safe-bottom-inset,0px));scrollbar-width:none}.forum-detail-image{width:100%;max-height:380px;display:block;object-fit:cover;border-radius:6px;margin-bottom:18px}.forum-detail-text{margin:0;font-family:Georgia,"Songti SC",serif;font-size:16px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.forum-detail-time{display:block;margin:13px 0 4px;text-align:right;color:var(--forum-muted);font-size:10px}.forum-detail-scroll>.forum-metrics{justify-content:flex-start;border-bottom:1px solid var(--forum-line);padding:0 0 12px}.forum-comment-list{padding-top:8px}.forum-comment{display:flex;gap:10px;padding:14px 0;border-bottom:1px solid var(--forum-line)}.forum-comment-copy{flex:1;min-width:0}.forum-comment-copy>div{display:flex;align-items:center;justify-content:space-between}.forum-comment-copy strong{font-size:12px}.forum-comment-copy>div button{min-height:30px;color:var(--forum-muted);font-size:10px}.forum-comment-copy>p{margin:5px 0 4px;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.forum-comment-copy>time{display:block;color:var(--forum-muted);font-size:9px}.forum-replies{margin-top:9px}.forum-replies summary{min-height:32px;color:var(--forum-muted);font-size:10px;cursor:pointer}.forum-replies .forum-comment{padding:9px 0 3px;border:0}
.forum-overlay-page{z-index:18;overflow:hidden}.forum-overlay-header{border-bottom:1px solid var(--forum-line);background:var(--forum-surface)}.forum-overlay-header>strong{text-align:center;font-size:15px}.forum-overlay-header form{grid-column:2/4;display:flex;align-items:center;border-bottom:1px solid var(--forum-text)}.forum-overlay-header form input{min-width:0;flex:1;height:40px;border:0;outline:0;background:transparent;font-size:14px}.forum-search-results{height:calc(100% - 54px);overflow:auto;padding:12px 18px}.forum-person-row{width:100%;min-height:62px;display:flex;align-items:center;gap:12px;text-align:left;border-bottom:1px solid var(--forum-line)!important}.forum-person-row>span{min-width:0;flex:1;display:flex;flex-direction:column}.forum-person-row strong{font-size:13px}.forum-person-row small{margin-top:3px;color:var(--forum-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forum-composer form{height:calc(100% - 54px);padding:22px 20px;position:relative}.forum-composer textarea{width:100%;height:45%;min-height:170px;padding:0;border:0;resize:none;outline:0;background:transparent;font-family:Georgia,"Songti SC",serif;font-size:17px;line-height:1.8}.forum-publish{justify-self:end;font-size:13px;font-weight:650}.forum-compose-image{position:relative;width:min(100%,280px)}.forum-compose-image img{width:100%;max-height:210px;object-fit:cover;border-radius:6px}.forum-compose-image button{position:absolute;top:6px;right:6px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.68);color:#fff}.forum-image-picker{position:absolute;right:20px;bottom:calc(24px + var(--safe-bottom-inset,0px));width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--forum-line);border-radius:50%}.forum-image-picker input{display:none}
.forum-drawer-backdrop{position:absolute;z-index:30;inset:0;background:rgba(0,0,0,.22)}.forum-reply-drawer{position:absolute;z-index:31;right:0;bottom:0;left:0;min-height:210px;padding:10px 18px calc(16px + var(--safe-bottom-inset,0px));border-radius:22px 22px 0 0;background:var(--forum-surface);box-shadow:0 -18px 54px rgba(0,0,0,.16)}.forum-drawer-handle{width:36px;height:4px;margin:0 auto 12px;border-radius:2px;background:var(--forum-line)}.forum-reply-drawer label{display:block;font-size:11px;color:var(--forum-muted)}.forum-reply-drawer textarea{width:100%;height:90px;margin:8px 0;padding:10px;border:1px solid var(--forum-line);border-radius:6px;resize:none;outline:0;background:var(--forum-bg);font-size:14px}.forum-reply-drawer button{float:right;min-width:64px;height:36px;border-radius:18px;background:var(--forum-text);color:var(--forum-surface);font-size:12px}
.forum-onboarding{z-index:40;overflow:auto;padding:28px 20px calc(30px + var(--safe-bottom-inset,0px))}.forum-onboarding header{height:90px;display:flex;flex-direction:column;justify-content:center}.forum-onboarding header span{font-family:Georgia,serif;font-size:11px}.forum-onboarding header strong{margin-top:8px;font-family:Georgia,"Songti SC",serif;font-size:24px}.forum-setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.forum-setup-upload{height:70px;padding:10px 12px;display:flex;flex-direction:column;justify-content:center;border:1px solid var(--forum-line);border-radius:6px;position:relative}.forum-setup-upload span{font-size:11px;color:var(--forum-muted)}.forum-setup-upload strong{margin-top:5px;font-size:14px}.forum-setup-upload input{position:absolute;inset:0;opacity:0}.forum-setup-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px;margin-top:18px}.forum-setup-fields label,.forum-settings form>label{display:flex;flex-direction:column;gap:6px;color:var(--forum-muted);font-size:10px}.forum-setup-fields input,.forum-setup-fields select,.forum-settings input{width:100%;height:40px;padding:0 8px;border:0;border-bottom:1px solid var(--forum-line);outline:0;background:transparent;color:var(--forum-text);font-size:13px}.forum-primary-action{width:100%;height:46px;margin-top:22px;border-radius:6px!important;background:var(--forum-text)!important;color:var(--forum-surface)!important;font-size:13px;font-weight:650}.forum-settings>main{height:calc(100% - 54px);overflow:auto;padding:20px}.forum-settings form{padding-bottom:20px;border-bottom:1px solid var(--forum-line)}.forum-toggle-row{height:44px!important;flex-direction:row!important;align-items:center;justify-content:space-between;font-size:13px!important;color:var(--forum-text)!important}.forum-toggle-row input{width:42px!important}.forum-settings-section{padding:18px 0}.forum-settings-section h2{margin:0 0 6px;font-size:13px}.forum-notification{width:100%;min-height:58px;display:flex;flex-direction:column;justify-content:center;text-align:left;border-bottom:1px solid var(--forum-line)!important}.forum-notification span{font-size:12px}.forum-notification time{margin-top:4px;color:var(--forum-muted);font-size:9px}
@media(max-width:340px){.forum-nav{gap:12px}.forum-nav-button{width:50px;height:50px}.forum-home-space{height:72px}.forum-feature-card{height:270px;max-height:45vh}.forum-profile-hero{height:185px}.forum-detail-header{height:148px;padding-top:8px}.forum-detail-scroll{height:calc(100% - 148px);padding-top:18px}.forum-setup-fields{grid-template-columns:1fr}.forum-onboarding header{height:64px}}
@media(min-width:700px){.forum-page,.forum-overlay-page,.forum-onboarding{left:50%;width:min(520px,100%);transform:translateX(-50%);border-right:1px solid var(--forum-line);border-left:1px solid var(--forum-line)}.forum-feature-card{height:330px}.forum-home-space{height:120px}}
@media(prefers-color-scheme:dark){.phone-container>.forum-app{--forum-bg:#080808;--forum-surface:#171717;--forum-text:#f7f7f7;--forum-muted:#a3a3a3;--forum-line:rgba(255,255,255,.14)}.forum-feature-card{background:#242424;color:#f7f7f7}.forum-feature-fade{background:linear-gradient(180deg,transparent 20%,rgba(8,8,8,.18) 46%,rgba(8,8,8,.96) 100%)}.forum-avatar{background:#343434;color:#eee}}
@media(prefers-reduced-motion:reduce){.forum-app *{scroll-behavior:auto!important;transition:none!important}}

.forum-profile-editor form{height:calc(100% - 54px);overflow:auto;padding:22px 20px}
.forum-profile-editor form>label,.forum-editor-grid label{display:flex;flex-direction:column;gap:7px;margin-bottom:18px;color:var(--forum-muted);font-size:11px}
.forum-profile-editor input{height:42px;padding:0 4px;border:0;border-bottom:1px solid var(--forum-line);outline:0;background:transparent;color:var(--forum-text);font-size:14px}
.forum-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.forum-profile-editor .forum-editor-file{min-height:48px;padding:12px;border:1px solid var(--forum-line);border-radius:6px}
.forum-profile-editor .forum-editor-file input{height:24px;border:0;font-size:11px}
.forum-api-entry{min-height:34px;margin:8px auto 0;text-decoration:underline;text-underline-offset:4px}
.forum-resource-section{padding-top:8px}
.forum-resource-row{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--forum-line)}
.forum-resource-row>span{min-width:0;display:flex;flex-direction:column;gap:4px}
.forum-resource-row strong{font-size:13px}
.forum-resource-row small{color:var(--forum-muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.forum-resource-row>button{flex:none;min-width:54px;height:32px;border:1px solid var(--forum-line);border-radius:16px;font-size:11px}
.forum-gallery-page main{height:calc(100% - 54px);overflow:auto;padding:18px 18px calc(28px + var(--safe-bottom-inset,0px))}
.forum-gallery-albums{display:flex;flex-direction:column;gap:8px}
.forum-gallery-album{width:100%;min-height:82px;padding:10px 12px;display:grid;grid-template-columns:58px minmax(0,1fr) auto 18px;align-items:center;gap:11px;border:1px solid var(--forum-line);border-radius:8px;background:var(--forum-surface);text-align:left}
.forum-gallery-album:active{transform:scale(.985)}
.forum-gallery-album-preview{width:58px;height:58px;display:grid;place-items:center;overflow:hidden;border-radius:5px;background:var(--forum-bg);color:var(--forum-muted)}
.forum-gallery-album-preview img{width:100%;height:100%;display:block;object-fit:cover}
.forum-gallery-album-copy{min-width:0;display:flex;flex-direction:column;gap:5px}
.forum-gallery-album-copy strong{font-size:13px}
.forum-gallery-album-copy small{color:var(--forum-muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.forum-gallery-album-count{color:var(--forum-muted);font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.forum-gallery-album>svg{color:var(--forum-muted);transform:rotate(180deg)}
.forum-gallery-album-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.forum-gallery-album-heading p{min-width:0;margin:0;color:var(--forum-muted);font-size:11px;line-height:1.5}
.forum-gallery-album-heading strong{flex:none;font-size:11px;font-variant-numeric:tabular-nums}
.forum-gallery-album-page .forum-gallery-upload{margin-bottom:18px}
.forum-gallery-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:20px}
.forum-gallery-upload{min-height:64px;padding:10px 11px;display:flex;flex-direction:column;justify-content:center;gap:4px;border:1px solid var(--forum-line);border-radius:6px;position:relative}
.forum-gallery-upload span{font-size:12px}
.forum-gallery-upload small{color:var(--forum-muted);font-size:10px}
.forum-gallery-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}
.forum-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.forum-gallery-item{min-width:0;margin:0;border:1px solid var(--forum-line);border-radius:6px;overflow:hidden;background:var(--forum-surface)}
.forum-gallery-item>div{width:100%;height:auto;aspect-ratio:1 / 1;display:grid;place-items:center;overflow:hidden;background:var(--forum-bg)}
.forum-gallery-item img,.forum-gallery-item .forum-gallery-missing{width:100%;height:100%;display:block;object-fit:cover}
.forum-gallery-item .forum-gallery-missing{display:grid;place-items:center;object-fit:initial}
.forum-gallery-missing{padding:8px;color:var(--forum-muted);font-size:10px;text-align:center}
.forum-gallery-item figcaption{min-height:32px;padding:6px 7px;display:flex;align-items:center;justify-content:space-between;gap:6px}
.forum-gallery-item figcaption span{min-width:0;color:var(--forum-muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.forum-gallery-item figcaption button{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;color:var(--forum-muted)}
@media(max-width:340px){.forum-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.forum-gallery-upload-grid{gap:6px}.forum-gallery-upload{padding:9px}.forum-resource-row small{max-width:150px}}

/* Forum layout corrections */
.forum-feed-body{display:flex;flex-direction:column;gap:9px;align-items:stretch;min-height:0;padding:10px 0}
.forum-feed-body p{order:2}
.forum-feed-body img{order:1;width:100%;height:86px;object-fit:cover;border-radius:4px}
.forum-home-page{padding-bottom:0}
.forum-home-space{height:clamp(42px,8vh,82px)}
.forum-feature-list{height:calc(100% - 54px - clamp(42px,8vh,82px));display:flex;flex-direction:column;gap:14px;overflow-y:auto;padding:0 18px calc(92px + var(--safe-bottom-inset,0px));scroll-snap-type:none}
.forum-feature-card{width:100%;height:270px;flex:0 0 270px;max-height:none}
.forum-feature-content{display:grid;grid-template-columns:1fr;gap:9px}
.forum-feature-meta{display:flex;align-items:center;gap:10px}
.forum-feature-meta>span{min-width:0;display:flex;flex-direction:column;gap:3px}
.forum-feature-meta strong{font-size:12px}
.forum-feature-meta small{max-width:230px;color:var(--forum-muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.forum-feature-content p{grid-column:auto;-webkit-line-clamp:4}
.forum-feature-content time{grid-column:auto}
.forum-profile-page{overflow:hidden;padding-bottom:0}
.forum-profile-scroll{height:100%;overflow:auto;padding-bottom:calc(84px + var(--safe-bottom-inset,0px));scrollbar-width:none}
.forum-detail-page{background:var(--forum-bg)}
.forum-detail-card{position:absolute;inset:0;overflow:auto;background:var(--forum-surface);border-radius:0 0 30px 30px;scrollbar-width:none}
.forum-detail-header{height:204px;border-radius:0 0 30px 30px;background-image:linear-gradient(180deg,rgba(255,255,255,.58),rgba(255,255,255,.9)),var(--forum-detail-bg,linear-gradient(135deg,#d8d8d4,#f5f5f3));background-size:cover;background-position:center;padding-top:28px}
.forum-detail-header>.forum-avatar{box-shadow:0 0 0 6px rgba(255,255,255,.36)}
.forum-detail-scroll{height:auto;overflow:visible;padding-top:24px}
.forum-post-actions main,.forum-post-editor form{height:calc(100% - 54px);overflow:auto;padding:24px 20px calc(30px + var(--safe-bottom-inset,0px))}
.forum-post-actions-preview{padding:16px 0 22px;border-bottom:1px solid var(--forum-line)}
.forum-post-actions-preview strong{font-size:14px}
.forum-post-actions-preview p{margin:12px 0 8px;font-family:Georgia,"Songti SC",serif;font-size:16px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.forum-post-actions-preview time{color:var(--forum-muted);font-size:10px}
.forum-post-actions-list{padding-top:8px}
.forum-post-actions-list button{width:100%;min-height:58px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--forum-line);text-align:left;font-size:13px}
.forum-post-actions-list button span{flex:1}
.forum-post-actions-list button svg:last-child{color:var(--forum-muted);transform:rotate(180deg)}
.forum-post-actions-list .forum-danger-action{color:#b42318}
.forum-post-editor textarea{width:100%;height:55%;min-height:220px;padding:0;border:0;outline:0;resize:none;background:transparent;font-family:Georgia,"Songti SC",serif;font-size:17px;line-height:1.8}
.forum-fill-today{width:100%;margin-top:10px;border:1px solid var(--forum-line)!important;border-radius:6px;color:var(--forum-text)!important}
@media(max-width:340px){.forum-feature-card{height:250px;flex-basis:250px}.forum-detail-header{height:184px;padding-top:20px}}
@media(prefers-color-scheme:dark){.forum-detail-header{background-image:linear-gradient(180deg,rgba(23,23,23,.58),rgba(23,23,23,.92)),var(--forum-detail-bg,linear-gradient(135deg,#343434,#171717))}.forum-detail-header>.forum-avatar{box-shadow:0 0 0 6px rgba(23,23,23,.48)}.forum-post-actions-list .forum-danger-action{color:#ff6b6b}}

/* Final forum sizing: keep media visible and frame detail as a floating panel. */
.forum-home-space{height:clamp(32px,6vh,58px)}
.forum-feature-list{height:calc(100% - 54px - clamp(32px,6vh,58px));gap:12px;padding-right:18px;padding-left:18px}
.forum-feature-card{height:220px;flex-basis:220px}
.forum-feed-card{height:auto;min-height:206px;grid-template-rows:42px auto 24px}
.forum-feed-body{gap:8px}
.forum-feed-body img{width:100%;height:140px;object-fit:contain;background:var(--forum-bg)}
.forum-detail-card{inset:0 12px 12px;border-radius:28px;box-shadow:0 12px 36px rgba(0,0,0,.12)}
.forum-detail-header{height:190px;border-radius:28px 28px 22px 22px}
.forum-detail-scroll{padding:18px 16px calc(28px + var(--safe-bottom-inset,0px))}
.forum-detail-image{width:100%;height:clamp(180px,32vh,300px);max-height:300px;object-fit:contain;background:var(--forum-bg)}
@media(max-width:340px){
  .forum-feature-card{height:200px;flex-basis:200px}
  .forum-feed-body img{height:112px}
  .forum-detail-card{inset:0 8px 8px;border-radius:22px}
  .forum-detail-header{height:176px;border-radius:22px 22px 18px 18px}
  .forum-detail-image{height:clamp(150px,30vh,240px);max-height:240px}
}

/* Autonomous community, member schedules and world editor. */
.forum-progress{position:relative;z-index:8;margin:0 18px 8px;padding:8px 10px;border:1px solid var(--forum-line);border-radius:6px;background:var(--forum-surface);font-size:10px;color:var(--forum-muted)}
.forum-progress[hidden]{display:none}.forum-progress span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.forum-progress b{display:block;height:2px;margin-top:7px;overflow:hidden;background:var(--forum-line)}.forum-progress i{display:block;height:100%;background:var(--forum-text);transition:width .2s ease}.forum-progress.is-paused{color:var(--lnyy-danger,#b42318)}.forum-progress.is-paused i{background:currentColor}
.forum-home-page>.forum-progress+.forum-home-space{height:clamp(24px,4vh,42px)}.forum-feed-page>.forum-progress+.forum-feed-list{height:calc(100% - 97px)}
.forum-like-summary{margin:10px 0 2px;padding:9px 0;border-bottom:1px solid var(--forum-line);color:var(--forum-muted);font-size:11px;line-height:1.6;overflow-wrap:anywhere}.forum-like-summary button{padding:0;color:var(--forum-text);font-size:inherit}
.forum-settings form>label{margin-bottom:14px}.forum-settings [data-custom-budget][hidden],.forum-onboarding [data-custom-budget][hidden]{display:none}.forum-toggle-row input{accent-color:var(--forum-text)}.forum-settings select,.forum-world-editor input,.forum-world-editor textarea{width:100%;border:0;border-bottom:1px solid var(--forum-line);outline:0;background:transparent;color:var(--forum-text)}.forum-settings select{height:40px;padding:0 4px;font-size:13px}.forum-fill-today{margin-bottom:0}
.forum-section-heading{min-height:34px;display:flex;align-items:center;gap:8px}.forum-section-heading h2{flex:1;margin:0}.forum-section-heading span{color:var(--forum-muted);font-size:10px}.forum-section-heading button{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--forum-line);border-radius:50%}
.forum-member-row{border-top:1px solid var(--forum-line)}.forum-member-row>.forum-person-row{border-bottom:0!important}.forum-member-row .forum-person-row>button:not(.forum-avatar){flex:none;min-width:48px;height:32px;border:1px solid var(--forum-line);border-radius:16px;font-size:10px}.forum-member-row .forum-row-icon{min-width:32px!important;width:32px;padding:0;color:var(--lnyy-danger,#b42318)}
.forum-member-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px;gap:8px;padding:0 0 12px!important;border:0!important}.forum-member-settings select{min-width:0;height:34px;padding:0 6px;border:1px solid var(--forum-line);border-radius:4px;background:var(--forum-surface);font-size:10px}.forum-member-settings button{height:34px;border:1px solid var(--forum-line);border-radius:4px;font-size:10px}
.forum-world-editor main{height:calc(100% - 54px);overflow:auto;padding:18px 20px calc(28px + var(--safe-bottom-inset,0px))}.forum-world-status{display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid var(--forum-line);border-radius:6px;background:var(--forum-surface)}.forum-world-status strong{font-size:14px}.forum-world-status span{font-size:11px;line-height:1.5}.forum-world-status small{color:var(--forum-muted);font-size:10px}
.forum-world-file{min-height:54px;margin:12px 0 20px;padding:0 14px;display:flex;align-items:center;gap:10px;border:1px solid var(--forum-line);border-radius:6px;position:relative;font-size:12px}.forum-world-file input{position:absolute;inset:0;opacity:0;cursor:pointer}.forum-world-editor form>label{display:flex;flex-direction:column;gap:7px;margin-bottom:18px;color:var(--forum-muted);font-size:10px}.forum-world-editor input{height:42px;padding:0 4px;font-size:14px}.forum-world-editor textarea{min-height:240px;padding:10px 4px;resize:vertical;font-size:13px;line-height:1.7}.forum-world-editor label small{text-align:right}.forum-world-summary{margin:16px 0;padding:12px 14px;border:1px solid var(--forum-line);border-radius:6px}.forum-world-summary summary{font-size:11px;cursor:pointer}.forum-world-summary p{margin:10px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--forum-muted);font-size:11px;line-height:1.7}.forum-danger-button{width:100%;min-height:44px;margin-top:12px;color:var(--lnyy-danger,#b42318);font-size:12px}
@media(max-width:340px){.forum-progress{margin-right:12px;margin-left:12px}.forum-member-settings{grid-template-columns:1fr 1fr}.forum-member-settings button{grid-column:1/-1}.forum-world-editor main{padding-right:16px;padding-left:16px}.forum-world-editor textarea{min-height:190px}}

/* Keep long contact and NPC lists independently scrollable on touch devices. */
.forum-settings{display:flex;flex-direction:column;overflow:hidden}
.forum-settings>.forum-overlay-header{flex:0 0 54px}
.forum-settings>main{flex:1 1 auto;min-height:0;height:auto;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;padding-bottom:calc(28px + var(--safe-bottom-inset,0px))}
