/* Every rule is scoped to the opt-in root; native components retain their behavior. */
html.ueng-skin.ueng-video-v2 .vd-right :is(.vd-author-name > a,.ls-ci-nickname) { color:var(--ls-text,#1f2937)!important; }
html.ueng-skin.ueng-video-v2 .vd-right :is(.vd-author-stats,.vd-author-stats > span,.ls-ci-time,.ls-ci-city,.ls-ci-from,.ls-ci-reply-btn,.ls-ci-more,.ls-ci-up:not(.is-up)) { color:var(--ls-text-secondary,#4b5563)!important; }
html.ueng-skin .ls-pa-page { width:min(calc(100% - 40px),var(--ueng-content-width)); max-width:var(--ueng-content-width); margin-left:auto; margin-right:auto; }
html.ueng-skin { --ls-primary: #171717; --ls-primary-hover: #333; --ls-primary-rgb: 23,23,23; --ls-primary-light: #f0f0f0; --ls-bg-hover: #f3f3f3; }
html.ueng-skin body:is(.type-index,.type-bbs,.route-article,.route-words) { background: #fafafa; }
html.ueng-skin .ls-main-nav { gap: 4px; }
html.ueng-skin .ls-nav-item > a { border-radius: 999px; padding: 10px 14px; }
html.ueng-skin .ls-header-inner { max-width: 1400px; }
html.ueng-skin.ueng-capsule-enabled .ls-header { background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; isolation: isolate; pointer-events: none; height: max(76px, calc(var(--ls-header-height) + 8px)); }
html.ueng-skin.ueng-capsule-enabled .ls-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ueng-glass-bg, rgba(255,255,255,.85)); backdrop-filter: var(--ueng-glass-filter, saturate(180%) blur(20px)); -webkit-backdrop-filter: var(--ueng-glass-filter, saturate(180%) blur(20px)); border-bottom: 1px solid var(--ls-border); clip-path: inset(0 0 calc(100% - var(--ls-header-height)) 0 round 0); transition: clip-path var(--ueng-header-duration, var(--ueng-motion-duration, 900ms)) cubic-bezier(.32,.72,0,1); }
html.ueng-skin.ueng-capsule-enabled .ls-header-inner { pointer-events: auto; height: var(--ls-header-height); }
html.ueng-skin.ueng-scrolled .ls-header::before { clip-path: inset(12px max(12px, calc((100% - var(--ueng-capsule-width)) / 2)) calc(100% - 72px) round 30px); background: var(--ueng-glass-bg, rgba(255,255,255,.85)); }
html.ueng-skin.ueng-scrolled .ls-header-inner { width: min(calc(100% - 24px), var(--ueng-capsule-width)); height: 60px; margin-top: 12px; padding: 0 12px 0 12px; border-radius: 999px; }
html.ueng-skin .ls-sns-page { width: min(calc(100% - 40px), var(--ueng-content-width)); margin-left: auto; margin-right: auto; padding: 24px 0; }
html.ueng-skin .ls-sns-main { gap: 20px; }
html.ueng-skin .ls-sns-page .ls-card { box-shadow: none; border: 1px solid var(--ls-border); border-radius: 16px; }
html.ueng-skin .ls-post-list { gap: 0; background: var(--ls-card-bg); border: 1px solid var(--ls-border); border-radius: 20px; }
html.ueng-skin .ls-post-list > .ls-post-item { padding: 24px; border-radius: 0; box-shadow: none; background: transparent; border-bottom: 1px solid var(--ls-border); }
html.ueng-skin .ls-post-list > .ls-post-item:last-child { border-bottom: 0; }
html.ueng-skin .ls-post-item .ls-post-header { gap: 12px; margin-bottom: 14px; }
html.ueng-skin .ls-post-item .ls-avatar img { border-radius: 50%; }
html.ueng-skin .ls-post-item .ls-post-meta { font-size: 12px; }
html.ueng-skin .ls-post-item .ls-post-article { padding: 0; background: transparent; border-radius: 0; margin-bottom: 16px; }
html.ueng-skin .ls-post-item .ls-post-article:hover { background: transparent; }
html.ueng-skin .ls-post-article .ls-article-title { font-size: 17px; line-height: 1.55; font-weight: 650; margin-bottom: 8px; }
html.ueng-skin .ls-post-article .ls-article-desc { font-size: 14px; line-height: 1.8; color: var(--ls-text-secondary); -webkit-line-clamp: 3; }
html.ueng-skin .ls-post-item .ls-article-thumbs { gap: 6px; margin-top: 16px; border-radius: 12px; }
html.ueng-skin .ls-post-item .ls-article-thumb-item { aspect-ratio: 4 / 5; }
html.ueng-skin .ls-post-item .ls-post-footer { padding-top: 4px; }
html.ueng-skin .ls-post-footer .ls-actions { gap: 8px; }
html.ueng-skin .ls-post-footer .ls-action-btn { min-height: 36px; min-width: 36px; justify-content: center; }
html.ueng-skin .ls-post-footer .ls-board-link { background: transparent; color: var(--ls-text-secondary); }
html.ueng-skin .ls-article-detail-page:not(:has(.ls-sidebar-right)) { max-width: var(--ueng-content-width); margin-left: auto; margin-right: auto; }
html.ueng-skin .ls-article-detail-page .ls-article-card { border-color: var(--ls-border); box-shadow: none; }
html.ueng-skin .ls-article-detail-page .ls-article-body { font-size: 16px; line-height: 1.9; }
html.ueng-skin .ls-article-detail-page .ls-article-header { padding: 28px; }
@media (max-width: 1150px) {
  html.ueng-skin .ls-header-left { gap: 14px; }
  html.ueng-skin .ls-nav-item > a { padding: 9px 10px; }
  html.ueng-skin.ueng-scrolled .ls-header-inner { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html.ueng-skin.ueng-capsule-enabled .ls-header::before { transition: none; }
}
html.ueng-skin .ls-bbs-page { width: min(calc(100% - 40px), var(--ueng-content-width)); margin-left: auto; margin-right: auto; }
html.ueng-skin .ls-bbs-header { border-radius: 18px; box-shadow: none; border: 1px solid var(--ls-border); }
html.ueng-skin .ls-bbs-post-list { border-radius: 18px; background: var(--ls-card-bg); border: 1px solid var(--ls-border); }
html.ueng-skin .ls-bbs-post-item { padding: 24px; box-shadow: none; border-radius: 0; background: transparent; border-bottom: 1px solid var(--ls-border); }
html.ueng-skin .ls-bbs-post-item:last-child { border-bottom: 0; }
html.ueng-skin .ls-bbs-post-title { font-size: 17px; line-height: 1.55; }
html.ueng-skin .ls-bbs-post-excerpt { font-size: 14px; line-height: 1.8; color: var(--ls-text-secondary); }
html.ueng-skin .ls-bbs-post-avatar-wrap img { border-radius: 50%; }
html.ueng-skin .ls-bbs-post-cover { border-radius: 12px; }
html.ueng-skin .ls-bbs-header-content { flex-direction: column; align-items: stretch; gap: 20px; }
html.ueng-skin .ls-bbs-header-info { flex: none; }
html.ueng-skin .ls-bbs-header-right { justify-content: space-between; }
html.ueng-skin .ls-post-item .ls-post-article.ls-article-img-1 { flex-direction: column; }
html.ueng-skin .ls-post-article.ls-article-img-1 .ls-article-info { order: 0; }
html.ueng-skin .ls-post-article.ls-article-img-1 .ls-article-cover-box { order: 1; width: 100%; }
html.ueng-skin .ls-post-article.ls-article-img-1 .ls-article-cover { order: 1; width: 100%; height: auto; max-height: 480px; object-fit: contain; margin-top: 12px; }

/* Keep account summaries intact; the native menu below owns scrolling. */
html.ueng-skin .ls-hd-dropdown-user > :is(.ls-user-header, .ls-exp-row, .ls-stats-grid, .ls-vip-entry, .ls-assets-grid) { flex-shrink: 0; }

/* The shadow fades independently; the glass surface and text share one timing. */
html.ueng-skin.ueng-capsule-enabled .ls-header::after { content: ''; position: absolute; top: 12px; height: 60px; left: max(12px, calc((100% - var(--ueng-capsule-width)) / 2)); right: max(12px, calc((100% - var(--ueng-capsule-width)) / 2)); border-radius: 999px; box-shadow: 0 4px 24px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.05); pointer-events: none; z-index: -1; opacity: 0; transition: opacity var(--ueng-header-duration, var(--ueng-motion-duration, 900ms)) cubic-bezier(.32,.72,0,1); }
html.ueng-skin.ueng-scrolled .ls-header::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html.ueng-skin.ueng-capsule-enabled .ls-header::after { transition: none; }
}

/* Only the header logo and avatar participate; dropdown avatars stay native. */
html.ueng-skin.ueng-capsule-enabled .ls-header .ls-logo-icon,
html.ueng-skin.ueng-capsule-enabled .ls-header .ls-user-trigger .ls-avatar img { border-radius: 10px; transition: border-radius var(--ueng-header-duration, var(--ueng-motion-duration, 900ms)) linear; }
html.ueng-skin.ueng-scrolled .ls-header .ls-logo-icon,
html.ueng-skin.ueng-scrolled .ls-header .ls-user-trigger .ls-avatar img { border-radius: 18px; }
@media (prefers-reduced-motion: reduce) {
  html.ueng-skin.ueng-capsule-enabled .ls-header .ls-logo-icon,
  html.ueng-skin.ueng-capsule-enabled .ls-header .ls-user-trigger .ls-avatar img { transition: none; }
}

html.ueng-skin .ls-header .ls-user-trigger > i { display: none; }

/* Match the 12px vertical inset: account for the native trigger padding. */
html.ueng-skin.ueng-scrolled .ls-header .ls-user-trigger { margin-right: -4px; }

/* Compact feed segments stay in normal document flow. */
html.ueng-skin .ls-sns-page .ls-top-nav-wrap { position: static; top: auto; z-index: auto; align-self: center; width: fit-content; max-width: 100%; background: var(--ls-bg-hover); box-shadow: none; border: 1px solid var(--ls-border); border-radius: 14px; }
html.ueng-skin .ls-sns-page .ls-top-nav { padding: 4px; gap: 4px; }
html.ueng-skin .ls-sns-page .ls-top-nav-item { flex: 0 0 auto; justify-content: center; padding: 10px 22px; font-size: 14px; border-radius: 10px; transition: color var(--ueng-motion-duration, 900ms), background-color var(--ueng-motion-duration, 900ms); }
html.ueng-skin .ls-sns-page .ls-top-nav-item.ls-active { background: var(--ls-card-bg, #fff); color: var(--ls-text); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
html.ueng-skin .ls-sns-page .ls-top-nav-item.ls-active .ls-top-nav-name { font-weight: 600; }
html.ueng-skin .ls-sns-page .ls-top-nav-item.ls-active::after { display: none; }

/* Override only category hiding; keep the host quick-publish preference. */
html.ueng-skin.ueng-top-ready .ls-sns-page.ls-hide-modules .ls-sns-modules { display: flex; }
html.ueng-skin.ueng-top-ready .ls-sns-page.ls-hide-modules .ls-sns-modules > :not(.ls-publish) { display: var(--ueng-top-display, block); }

/* Shared lightweight menus; all native actions and positioning remain intact. */
html.ueng-skin :is(.ls-hd-dropdown, .ls-dropdown) { background: var(--ls-card-bg); border: 1px solid var(--ls-border); border-radius: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.08); }
html.ueng-skin .ls-nav-item > .ls-hd-dropdown { min-width: 184px; padding: 6px; max-height: calc(100dvh - 100px); overflow-y: auto; }
html.ueng-skin .ls-hd-dropdown-item { padding: 8px 12px; min-height: 36px; font-size: 14px; gap: 10px; }
html.ueng-skin .ls-hd-dropdown-item:is(:first-child,:last-child),
html.ueng-skin .ls-hd-dropdown-item { border-radius: 10px; }
html.ueng-skin .ls-hd-dropdown-item i { font-size: 17px; opacity: .8; }
html.ueng-skin .ls-dropdown { padding: 6px; min-width: 168px; }
html.ueng-skin .ls-dropdown-item { border-radius: 10px; padding: 9px 12px; min-height: 36px; font-size: 13px; gap: 10px; }
html.ueng-skin .ls-dropdown-item i { font-size: 17px; }
html.ueng-skin .ls-dropdown-divider { margin: 5px 8px; background: var(--ls-border); }
html.ueng-skin .ls-hd-dropdown-user { width: 304px; min-width: 304px; }
html.ueng-skin .ls-hd-dropdown-user .ls-user-header { padding: 18px 18px 12px; }
html.ueng-skin .ls-hd-dropdown-user .ls-exp-row { padding: 0 18px 10px; }
html.ueng-skin .ls-hd-dropdown-user .ls-exp-fill { background: var(--ls-text-primary); }
html.ueng-skin .ls-hd-dropdown-user .ls-stats-grid { margin: 0 16px 8px; background: transparent; border-radius: 0; border-bottom: 1px solid var(--ls-border); }
html.ueng-skin .ls-hd-dropdown-user .ls-stat-box { padding: 8px 0 12px; border-radius: 8px; }
html.ueng-skin .ls-hd-dropdown-user .ls-vip-entry { margin: 0 12px 4px; padding: 8px 10px; background: var(--ls-bg-hover); border-radius: 10px; }
html.ueng-skin .ls-hd-dropdown-user .ls-vip-icon { background: transparent; }
html.ueng-skin .ls-hd-dropdown-user .ls-vip-icon i { color: var(--ls-text-secondary); font-size: 20px; }
html.ueng-skin .ls-hd-dropdown-user .ls-assets-grid { margin: 0 16px 4px; gap: 0; padding: 4px 0 8px; border-bottom: 1px solid var(--ls-border); }
html.ueng-skin .ls-hd-dropdown-user .ls-asset-box { background: transparent; border-radius: 8px; padding: 8px 6px; gap: 6px; }
html.ueng-skin .ls-hd-dropdown-user .ls-asset-box i { color: var(--ls-text-secondary); font-size: 18px; }
html.ueng-skin .ls-hd-dropdown-user .ls-menu-item { min-height: 36px; padding: 8px 10px; font-size: 13px; border-radius: 10px; }
html.ueng-skin .ls-hd-dropdown-user .ls-menu-item > i { font-size: 18px; }
html.ueng-skin .ls-hd-dropdown-user .ls-user-menu { padding: 4px 8px 8px; }
html.ueng-skin .ls-post-tags .ls-tag-item { padding: 5px 10px; border: 0; border-radius: 999px; background: var(--ls-bg-hover); color: var(--ls-text-secondary); font-size: 12px; line-height: 1.5; transition: background-color var(--ueng-motion-duration, 900ms) ease, color var(--ueng-motion-duration, 900ms) ease; }
@media (hover: hover) and (pointer: fine) {
  html.ueng-skin .ls-post-tags .ls-tag-item:hover { background: var(--ls-border); color: var(--ls-text-primary); }
  html.ueng-skin .ls-hd-dropdown-user .ls-asset-box:hover { background: var(--ls-bg-hover); }
}

html.ueng-skin :is(.ls-hd-dropdown-item,.ls-dropdown-item),
html.ueng-skin .ls-hd-dropdown-user .ls-menu-item { line-height: 20px; }
html.ueng-skin :is(.ls-hd-dropdown-item,.ls-dropdown-item) > i,
html.ueng-skin .ls-hd-dropdown-user .ls-menu-item > i { line-height: 20px; }

/* Match the navigation glass across native floating surfaces. */
html.ueng-skin :is(.ls-hd-dropdown,.ls-dropdown,.ls-dialog,.ls-modal-content,.ls-search-container,.ls-login-panel,.ls-login-prefix-dropdown,.ls-emoji-panel,.ls-at-modal,.ls-grant,.ls-now-toast,.ls-screen-loading-box,.ls-redbag-user-picker-dropdown,.ls-transfer-user-dropdown),
html.ueng-skin :is(#ls-user-settings-modal,#ls-redbag-send-modal,#ls-redbag-open-modal,#ls-transfer-send-modal,#ls-transfer-info-modal) .ls-modal-content {
  background: var(--ueng-glass-bg, rgba(255,255,255,.85));
  backdrop-filter: var(--ueng-glass-filter, saturate(180%) blur(20px));
  -webkit-backdrop-filter: var(--ueng-glass-filter, saturate(180%) blur(20px));
  border: 1px solid rgba(128,128,128,.16);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0,0,0,.09), inset 0 1px 0 rgba(255,255,255,.65);
}
html.ueng-skin :is(.ls-dialog-overlay,.ls-modal-overlay,.ls-search-backdrop,.ls-login-overlay:not(.ls-login-inline),.ls-at-overlay,.ls-grant-mask) { background: rgba(20,20,20,.24); }
html.ueng-skin .ls-modal-content :is(.ls-gift-popup,.ls-userset) { background: transparent; box-shadow: none; }
html.ueng-skin .ls-modal-content :is(.lsw-side,.ls-userset-nav,.gift-footer,.gift-attr) { background: rgba(128,128,128,.045); }
html.ueng-skin .ls-hd-dropdown-user .ls-vip-entry { background: rgba(128,128,128,.06); }
html.ueng-skin :is(.ls-hd-dropdown-header,.ls-hd-dropdown-footer) { background: transparent; }
html.ueng-skin .ls-nav-item > .ls-hd-dropdown { padding: 8px; }
html.ueng-skin .ls-dropdown { padding: 8px; }
html.ueng-skin :is(.ls-hd-dropdown-item,.ls-dropdown-item) { border-radius: 12px; }
html.ueng-skin .ls-hd-dropdown-item:is(:first-child,:last-child) { border-radius: 12px; }
html.ueng-skin .ls-call-panel { background: var(--ueng-glass-dark, rgba(24,24,24,.85)); backdrop-filter: var(--ueng-glass-filter, saturate(180%) blur(20px)); -webkit-backdrop-filter: var(--ueng-glass-filter, saturate(180%) blur(20px)); }
html.ueng-skin :is(.ls-lightbox-toolbar,.ls-lightbox-caption,.ls-lightbox-thumbs) { backdrop-filter: var(--ueng-glass-filter, saturate(180%) blur(20px)); -webkit-backdrop-filter: var(--ueng-glass-filter, saturate(180%) blur(20px)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.ueng-skin :is(.ls-hd-dropdown,.ls-dropdown,.ls-dialog,.ls-modal-content,.ls-search-container,.ls-login-panel,.ls-emoji-panel,.ls-at-modal,.ls-grant) { background: var(--ls-card-bg); }
}

/* Compact navigation directory and account actions, with a single reading hierarchy. */
html.ueng-skin .ls-nav-item > .ls-hd-dropdown:has(> .ls-hd-dropdown-item:nth-child(8)) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 328px; gap: 4px; padding: 10px; }
html.ueng-skin .ls-nav-item > .ls-hd-dropdown:has(> .ls-hd-dropdown-item:nth-child(8)) .ls-hd-dropdown-item { min-height: 42px; padding: 10px; }
html.ueng-skin .ls-hd-dropdown-user { width: 340px; min-width: 340px; }
html.ueng-skin .ls-hd-dropdown-user .ls-user-header { padding: 20px 20px 14px; gap: 14px; }
html.ueng-skin .ls-hd-dropdown-user .ls-user-name { font-size: 17px; }
html.ueng-skin .ls-hd-dropdown-user .ls-user-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; align-content: start; padding: 8px 12px 12px; }
html.ueng-skin .ls-hd-dropdown-user .ls-menu-item { min-width: 0; min-height: 40px; font-size: 14px; padding: 10px; }
html.ueng-skin .ls-hd-dropdown-user :is(.ls-menu-item:has(.ls-menu-uid),.ls-menu-divider,.ls-menu-item.logout) { grid-column: 1 / -1; }
html.ueng-skin .ls-hd-dropdown-user .ls-vip-entry { margin: 2px 18px 8px; padding: 10px 12px; }
html.ueng-skin .ls-hd-dropdown-user .ls-assets-grid { margin: 0 18px 4px; }
html.ueng-skin .ls-dropdown:has([data-key="lock"]) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 300px; gap: 2px; padding: 10px; }
html.ueng-skin .ls-dropdown:has([data-key="lock"]) .ls-dropdown-divider,
html.ueng-skin .ls-dropdown:has([data-key="lock"]) .ls-dropdown-item.danger { grid-column: 1 / -1; }
html.ueng-skin .ls-dropdown-item { min-height: 40px; font-size: 14px; }
html.ueng-skin .ls-post-tags { gap: 12px; }
html.ueng-skin .ls-post-tags .ls-tag-item { padding: 3px 0; background: transparent; border-radius: 0; font-size: 13px; color: var(--ls-text-secondary); }
html.ueng-skin .ls-post-tags .ls-tag-item::before { color: var(--ls-text-muted); }
@media (hover: hover) and (pointer: fine) {
  html.ueng-skin .ls-post-tags .ls-tag-item:hover { background: transparent; color: var(--ls-text-primary); text-decoration: underline; text-underline-offset: 4px; }
}
html.ueng-skin.ueng-glass-off :is(.ls-search-backdrop,.ls-login-overlay,.ls-at-overlay,.ls-call-overlay) { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.ueng-skin .ls-dropdown:has([data-key="share-chat"]) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 280px; gap: 4px; padding: 10px; }
html.ueng-skin .ls-dropdown:has([data-key="share-chat"]) .ls-dropdown-item { flex-direction: column; justify-content: center; gap: 8px; padding: 16px 8px; min-height: 78px; }
html.ueng-skin .ls-dropdown:has([data-key="share-chat"]) .ls-dropdown-item i { font-size: 22px; line-height: 24px; }
html.ueng-skin .ls-dropdown:has([data-key="lock"]) .ls-dropdown-divider { display: none; }
html.ueng-skin .ls-dropdown:has([data-key="lock"]) .ls-dropdown-item.danger { grid-column: auto; }

/* Profile: cover, identity, metadata and feed form one calm reading column. */
html.ueng-skin body.route-author { background: #fafafa; }
html.ueng-skin .ls-author-page { width: min(calc(100% - 40px),var(--ueng-content-width)); max-width: var(--ueng-content-width); padding: 24px 0; }
html.ueng-skin .ls-author-hero { border: 1px solid var(--ls-border); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: none; }
html.ueng-skin .ls-author-cover { height: auto; overflow: visible; }
html.ueng-skin .ls-author-cover-img { height: 200px; border-radius: 19px 19px 0 0; }
html.ueng-skin .ls-author-cover:hover .ls-author-cover-img { transform: none; }
html.ueng-skin .ls-author-cover-mask { display: none; }
html.ueng-skin .ls-author-cover-info { position: static; padding: 24px 24px 12px 126px; min-height: 82px; align-items: center; gap: 12px; }
html.ueng-skin .ls-author-name { color: var(--ls-text-primary); text-shadow: none; font-size: 23px; line-height: 1.4; flex-wrap: wrap; gap: 6px; }
html.ueng-skin .ls-author-tagline { color: var(--ls-text-secondary); text-shadow: none; white-space: normal; }
html.ueng-skin .ls-author-cover-actions { flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
html.ueng-skin .ls-author-cover-actions :is(.ls-author-follow-btn,.ls-author-action-btn) { min-height: 36px; padding: 8px 14px; border-radius: 999px; background: var(--ls-primary); color: white; border: 1px solid var(--ls-primary); box-shadow: none; }
html.ueng-skin .ls-author-cover-actions :is(.ls-author-edit-profile-btn,.ls-author-follow-btn.had,.ls-author-action-btn) { background: var(--ls-card-bg); color: var(--ls-text-primary); border-color: var(--ls-border); }
html.ueng-skin .ls-author-bar { padding: 0 24px 8px; gap: 16px; flex-wrap: wrap; }
html.ueng-skin .ls-author-bar > .ls-avatar-2xl { position: absolute; top: 164px; left: 24px; margin: 0; width: 84px; height: 84px; }
html.ueng-skin .ls-author-bar > .ls-avatar-2xl img.avatar { border-radius: 50%; border: 4px solid var(--ls-card-bg); box-shadow: none; }
html.ueng-skin .ls-author-stats { gap: 20px; flex: 1 1 auto; }
html.ueng-skin .ls-author-stat { padding: 10px 0; }
html.ueng-skin .ls-author-stat::after { bottom: 3px; }
html.ueng-skin .ls-author-stat-num { font-size: 15px; }
html.ueng-skin .ls-author-stat-label { font-size: 12px; }
html.ueng-skin .ls-author-visitors { margin-left: auto; }
html.ueng-skin .ls-author-bar-actions { margin-left: 0; }
html.ueng-skin .ls-author-body { margin-top: 0; }
html.ueng-skin .ls-author-main { gap: 16px; }
html.ueng-skin .ls-author-page .ls-author-about { padding: 0 24px 20px; border: 1px solid var(--ls-border); border-top: 0; border-radius: 0 0 20px 20px; box-shadow: none; }
html.ueng-skin .ls-author-verify-bar { padding: 8px 0 0; border: 0; border-radius: 0; background: transparent; gap: 7px; }
html.ueng-skin .ls-author-verify-icon { width: 20px; height: 20px; background: transparent; color: var(--ls-text-primary); font-size: 18px; }
html.ueng-skin .ls-author-about-meta { margin-top: 10px; gap: 8px 16px; }
html.ueng-skin .ls-author-about-item { font-size: 12px; }
html.ueng-skin .ls-author-tabs { background: transparent; box-shadow: none; border: 0; border-bottom: 1px solid var(--ls-border); border-radius: 0; padding: 0 12px; gap: 24px; }
html.ueng-skin .ls-author-tab { flex: 0 0 auto; position: relative; padding: 14px 8px; background: transparent; border-radius: 0; color: var(--ls-text-muted); font-size: 14px; }
html.ueng-skin .ls-author-tab.ls-active { background: transparent; color: var(--ls-text-primary); box-shadow: none; font-weight: 600; }
html.ueng-skin .ls-author-tab.ls-active::after { content: ''; position: absolute; bottom: 0; left: 8px; right: 8px; height: 2px; background: currentColor; border-radius: 2px; }
html.ueng-skin .ls-author-page .ls-post-video { max-height: 380px; overflow: hidden; }
html.ueng-skin .ls-author-page .ls-post-video .ls-video-cover { max-height: 380px; object-fit: contain; }
@media (max-width: 760px) {
 html.ueng-skin .ls-author-cover-info { flex-wrap: wrap; padding-left: 126px; }
 html.ueng-skin .ls-author-cover-actions { justify-content: flex-start; }
 html.ueng-skin .ls-author-visitors { margin-left: 0; }
}

/* Profile categories share the home feed segmented control. */
html.ueng-skin .ls-author-tabs { align-self: center; width: fit-content; max-width: 100%; gap: 4px; padding: 4px; border: 1px solid var(--ls-border); border-radius: 14px; background: var(--ls-bg-hover); box-shadow: none; }
html.ueng-skin .ls-author-tab { padding: 10px 22px; border-radius: 10px; color: var(--ls-text-secondary); font-size: 14px; }
html.ueng-skin .ls-author-tab.ls-active { background: var(--ls-card-bg); color: var(--ls-text-primary); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
html.ueng-skin .ls-author-tab.ls-active::after { display: none; }

/* Tighten the identity rhythm and separate statistics from feed navigation. */
html.ueng-skin .ls-author-bar > .ls-avatar-2xl { top: 184px; }
html.ueng-skin .ls-author-cover-info { min-height: 68px; padding-top: 16px; padding-bottom: 8px; }
html.ueng-skin .ls-author-bar { min-height: 44px; padding-bottom: 6px; gap: 8px; }
html.ueng-skin .ls-author-stat { padding: 8px 0; color: var(--ls-text-secondary); }
html.ueng-skin .ls-author-stat::after { display: none; }
html.ueng-skin .ls-author-stat.ls-active { color: var(--ls-text-primary); font-weight: 600; }
html.ueng-skin .ls-author-page .ls-author-about { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 4px; padding-bottom: 16px; }
html.ueng-skin .ls-author-about > :not(.ls-author-verify-bar):not(.ls-author-about-meta) { flex-basis: 100%; }
html.ueng-skin .ls-author-verify-bar { margin: 0; padding: 0; flex: 0 1 auto; }
html.ueng-skin .ls-author-about-meta { margin-top: 0; gap: 6px 12px; }
html.ueng-skin .ls-author-visitors { min-height: 36px; padding: 4px 10px; gap: 6px; border-radius: 999px; transition: background-color var(--ueng-motion-duration, 900ms) ease, color var(--ueng-motion-duration, 900ms) ease; }
html.ueng-skin .ls-author-visitors-text { color: var(--ls-text-secondary); }
html.ueng-skin .ls-author-visitors-avatars img { width: 24px; height: 24px; }
html.ueng-skin .ls-author-bar-btn { width: 36px; height: 36px; border-radius: 50%; color: var(--ls-text-secondary); transition: background-color var(--ueng-motion-duration, 900ms) ease, color var(--ueng-motion-duration, 900ms) ease; }
@media (hover: hover) and (pointer: fine) {
 html.ueng-skin .ls-author-visitors:hover,
 html.ueng-skin .ls-author-bar-btn:hover { background: var(--ls-bg-hover); color: var(--ls-text-primary); }
}

/* Match profile segments to the home control's single-line icon/text metrics. */
html.ueng-skin .ls-author-bar > .ls-avatar-2xl { top: 158px; }
html.ueng-skin .ls-author-tab { line-height: 1; }
html.ueng-skin .ls-author-tab i { line-height: 1; font-size: 15px; }
html.ueng-skin .ls-float-menu--float .ls-float-menu__list { padding: 5px; gap: 3px; border: 1px solid var(--ls-border); border-radius: 999px; background: var(--ueng-glass-bg,var(--ls-card-bg)); backdrop-filter: var(--ueng-glass-filter,none); -webkit-backdrop-filter: var(--ueng-glass-filter,none); box-shadow: 0 4px 18px rgba(0,0,0,.05); }
html.ueng-skin .ls-float-menu--float .ls-float-menu__item a { width: 36px; height: 36px; color: var(--ls-text-secondary); transition: background-color var(--ueng-motion-duration, 900ms) ease,color var(--ueng-motion-duration, 900ms) ease; }
html.ueng-skin .ls-float-menu--float .ls-float-menu__item a i { font-size: 18px; }

/* Keep the existing header layout; the floating search uses the host modal. */
html.ueng-skin .ls-header #searchTrigger { display: none; }

/* Threads-style actions: visual opt-in, original counters and handlers retained. */
html.ueng-skin.ueng-threads-actions .ls-post-footer {
  display: flex; flex-wrap: wrap; gap: 8px 16px; border-top: 0;
  padding-top: 6px; min-height: 40px;
}
html.ueng-skin.ueng-threads-actions .ls-post-footer > .ls-spacer { display: none; }
html.ueng-skin.ueng-threads-actions .ls-post-footer > .ls-actions { order: 0; gap: 10px; margin-left: -8px; }
html.ueng-skin.ueng-threads-actions .ls-post-footer > .ls-board-link {
  order: 1; margin-left: auto; padding: 4px 0; font-size: 12px;
  opacity: .7; max-width: 40%; background: transparent;
}
html.ueng-skin.ueng-threads-actions .ls-post-footer > .ls-board-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ueng-skin.ueng-threads-actions .ls-post-footer > .ls-board-link img { width: 14px; height: 14px; border-radius: 4px; }
html.ueng-skin.ueng-threads-actions .ls-post-footer .ls-action-btn {
  min-height: 40px; min-width: 40px; padding: 8px; gap: 6px;
  border: 0; background: transparent; border-radius: 999px; font: inherit;
  font-size: 14px; line-height: 1; color: var(--ls-text-secondary, #606060);
  font-variant-numeric: tabular-nums; transition: background-color var(--ueng-motion-duration, 900ms) ease, color var(--ueng-motion-duration, 900ms) ease;
}
html.ueng-skin.ueng-threads-actions .ls-post-footer .ls-action-btn i { font-size: 22px; line-height: 1; }
html.ueng-skin.ueng-threads-actions .ls-post-footer .ls-action-btn span:empty { display: none; }
html.ueng-skin.ueng-threads-actions .ls-post-footer .ls-action-btn.ls-liked { color: var(--ls-danger, #d93025); }
html.ueng-skin.ueng-threads-actions .ls-post-footer [data-action="share"] i::before {
  content: ''; display: block; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.4 3.6 21 11.2c.7.3.7 1.3 0 1.6L4.4 20.4c-.8.4-1.6-.4-1.3-1.2L5.4 12 3.1 4.8c-.3-.8.5-1.6 1.3-1.2ZM5.4 12H21' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.4 3.6 21 11.2c.7.3.7 1.3 0 1.6L4.4 20.4c-.8.4-1.6-.4-1.3-1.2L5.4 12 3.1 4.8c-.3-.8.5-1.6 1.3-1.2ZM5.4 12H21' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) {
  html.ueng-skin.ueng-threads-actions .ls-post-footer .ls-action-btn:hover { background: var(--ls-bg-hover, #f4f4f4); color: var(--ls-text, #222); }
  html.ueng-skin.ueng-threads-actions .ls-post-footer .ls-action-btn.ls-liked:hover { color: var(--ls-danger, #d93025); }
  html.ueng-skin.ueng-threads-actions .ls-post-footer > .ls-board-link:hover { opacity: 1; }
}
html.ueng-skin.ueng-threads-actions .ls-post-footer .ls-action-btn:focus-visible { outline: 2px solid #aab5c4; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html.ueng-skin.ueng-threads-actions .ls-post-footer .ls-action-btn { transition: none; }
}

/* Native sharing and composing surfaces. */
html.ueng-skin.ueng-feed-share .ls-dropdown [data-key="repost"] { display: none; }
html.ueng-skin .ls-post-quote { background: var(--ls-card-bg, #fff); border: 1px solid var(--ls-border); border-radius: 16px; overflow: hidden; margin-top: 12px; }
html.ueng-skin .ls-post-quote .ls-quote-link { display: block; padding: 16px; color: inherit; }
html.ueng-skin .ls-post-quote .ls-quote-user { margin-bottom: 8px; }
html.ueng-skin .ls-post-quote .ls-quote-name { font-size: 14px; font-weight: 600; color: var(--ls-text, #222); }
html.ueng-skin .ls-post-quote .ls-quote-content { font-size: 14px; line-height: 1.65; color: var(--ls-text-secondary); }
html.ueng-skin .ls-post-quote .ls-quote-media { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
html.ueng-skin .ls-post-quote .ls-quote-media img { width: 112px; height: 112px; max-width: 100%; object-fit: cover; border-radius: 10px; }
html.ueng-skin .ls-post-quote .ls-quote-media img:only-child { width: auto; height: auto; max-width: 100%; max-height: 260px; object-fit: contain; }
html.ueng-skin .ls-dialog:has(.ls-repost-editor-wrap) { width: min(520px, calc(100vw - 32px)); padding: 24px; border-radius: 24px; }
html.ueng-skin .ls-dialog:has(.ls-repost-editor-wrap) .ls-dialog-header { padding: 0 0 18px; gap: 0; }
html.ueng-skin .ls-dialog:has(.ls-repost-editor-wrap) .ls-dialog-icon { display: none; }
html.ueng-skin .ls-dialog:has(.ls-repost-editor-wrap) .ls-dialog-title { font-size: 18px; font-weight: 600; }
html.ueng-skin .ls-dialog:has(.ls-repost-editor-wrap) .ls-dialog-body { padding: 0; }
html.ueng-skin .ls-dialog:has(.ls-repost-editor-wrap) .ls-dialog-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(128,128,128,.07); }
html.ueng-skin .ls-repost-editor-wrap { border: 1px solid var(--ls-border); border-radius: 16px; background: rgba(128,128,128,.025); overflow: hidden; }
html.ueng-skin .ls-repost-editor-wrap:focus-within { border-color: var(--ls-border); }
html.ueng-skin .ls-repost-editor-wrap .ls-editor { min-height: 168px; max-height: 40vh; padding: 16px; font-size: 15px; line-height: 1.7; background: transparent; }
html.ueng-skin .ls-repost-toolbar { border-top: 1px solid var(--ls-border); padding: 8px 12px; background: transparent; }
html.ueng-skin .ls-repost-emoji-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; }
html.ueng-skin .ls-dialog:has(.ls-repost-editor-wrap) .ls-dialog-footer { padding: 18px 0 0; gap: 10px; }
html.ueng-skin .ls-dialog:has(.ls-repost-editor-wrap) .ls-dialog-btn { min-width: 80px; min-height: 38px; border-radius: 999px; font-size: 14px; }

/* Quick publisher: one quiet surface and a separate, wrapping toolbar. */
html.ueng-skin .ls-publish-expanded { padding: 18px 20px; }
html.ueng-skin .ls-publish-editor-wrap { border: 0; border-radius: 0; background: transparent; padding: 0; }
html.ueng-skin .ls-publish-editor-body { border: 0; background: transparent; border-radius: 0; }
html.ueng-skin .ls-publish-editor-body .ls-editor { background: transparent; border: 0; min-height: 76px; max-height: 320px; padding: 6px 0 14px; font-size: 15px; line-height: 1.7; }
html.ueng-skin .ls-publish-toolbar { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--ls-border); gap: 12px; align-items: center; flex-wrap: wrap; }
html.ueng-skin .ls-publish-actions { gap: 3px; flex-wrap: wrap; }
html.ueng-skin .ls-publish-actions .ls-action-btn { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ls-text-secondary); }
html.ueng-skin .ls-publish-actions .ls-action-btn i { font-size: 19px; }
html.ueng-skin .ls-publish-submit { margin-left: auto; }
html.ueng-skin .ls-publish-submit .ls-submit-btn { min-width: 76px; height: 36px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* Article closing area: keep all host actions, reduce repeated pills. */
html.ueng-skin .ls-article-bbs-card { background: transparent; border: 0; border-top: 1px solid var(--ls-border); border-radius: 0; margin-top: 28px; padding: 20px 0 0; gap: 16px; }
html.ueng-skin .ls-article-bbs-card-link { gap: 12px; min-width: 0; }
html.ueng-skin .ls-article-bbs-card-avatar { width: 40px; height: 40px; border-radius: 12px; }
html.ueng-skin .ls-article-bbs-card-name { font-size: 15px; }
html.ueng-skin .ls-article-bbs-card-meta { font-size: 12px; color: var(--ls-text-muted); margin-top: 3px; }
html.ueng-skin .ls-article-bbs-follow-btn { color: var(--ls-text); background: var(--ls-card-bg); border: 1px solid var(--ls-border); border-radius: 999px; min-height: 34px; padding: 6px 16px; font-size: 13px; flex-shrink: 0; }
html.ueng-skin .ls-article-interact-card { padding: 12px 20px; border: 1px solid var(--ls-border); border-radius: 20px; box-shadow: none; }
html.ueng-skin .ls-article-actions { justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
html.ueng-skin .ls-article-actions .ls-article-act-btn { border: 0; background: transparent; border-radius: 999px; min-height: 40px; padding: 8px 12px; gap: 7px; font-size: 14px; color: var(--ls-text-secondary); }
html.ueng-skin .ls-article-actions .ls-article-act-btn i { font-size: 21px; }
html.ueng-skin .ls-article-actions .ls-article-act-btn.ls-liked { color: var(--ls-danger); }

/* Footer remains editable in the host, including its original links and text. */
html.ueng-skin .ls-footer { background: transparent; border: 0; margin-top: 32px; }
html.ueng-skin .ls-footer-bottom { background: transparent; border-top: 0; padding: 0 20px 26px; }
html.ueng-skin .ls-footer-bottom-inner { width: min(100%, var(--ueng-content-width)); margin: 0 auto; padding: 18px 0 0; border-top: 1px solid var(--ls-border); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
html.ueng-skin .ls-footer-copyright { margin: 0; text-align: center; font-size: 12px; line-height: 2; color: var(--ls-text-muted); text-wrap: pretty; }
html.ueng-skin .ls-footer-copyright a { color: var(--ls-text-secondary); white-space: nowrap; margin: 0 3px; }
@media (hover: hover) {
  html.ueng-skin .ls-post-quote:hover { border-color: var(--ls-border); }
  html.ueng-skin :is(.ls-publish-actions .ls-action-btn,.ls-repost-emoji-btn,.ls-article-actions .ls-article-act-btn):hover { background: var(--ls-bg-hover, #f4f4f4); color: var(--ls-text); }
  html.ueng-skin .ls-footer-copyright a:hover { color: var(--ls-text); text-decoration: underline; text-underline-offset: 3px; }
}
/* The native rich editor ships important surface rules. Override only this publisher. */
html.ueng-skin .ls-publish-editor-body .ls-editor { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 6px 0 14px !important; }
html.ueng-skin .ls-article-actions { padding: 0; background: transparent; border: 0; border-radius: 0; }

/* Quiet borders in hover/focus states; retain a soft keyboard focus indicator. */
html.ueng-skin :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select, [contenteditable="true"]):focus,
html.ueng-skin :is(.ls-repost-editor-wrap,.ls-publish-editor-wrap):focus-within {
  border-color: var(--ls-border, #e5e7eb) !important; box-shadow: none !important;
}
html.ueng-skin :is(.ls-card,.ls-post-quote,.ls-tag-item,.ls-article-bbs-follow-btn):hover { border-color: var(--ls-border, #e5e7eb) !important; }
html.ueng-skin :is(button,a,[role="button"]):focus-visible { outline-color: #aab5c4; }
html.ueng-skin .ls-dropdown:has([data-key="share-chat"]) {
  display: flex; flex-direction: column; width: 176px; min-width: 0; gap: 2px; padding: 6px; border-radius: 16px;
}
html.ueng-skin .ls-dropdown:has([data-key="share-chat"]) .ls-dropdown-item {
  flex-direction: row; justify-content: flex-start; min-height: 36px; gap: 10px; padding: 8px 10px; font-size: 13px; line-height: 20px; border-radius: 10px;
}
html.ueng-skin .ls-dropdown:has([data-key="share-chat"]) .ls-dropdown-item i { font-size: 18px; line-height: 20px; }

/* A compact, avatar-led composer with a growing native editor. */
html.ueng-skin .ls-sns-page .ls-card.ls-publish { padding: 0; border-color: rgba(128,128,128,.13); border-radius: 20px; }
html.ueng-skin .ls-publish-expanded { position: relative; padding: 20px 22px 14px 74px; }
html.ueng-skin .ueng-compose-avatar { position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
html.ueng-skin .ls-publish-editor-body .ls-editor {
  min-height: 40px !important; padding: 6px 0 12px !important; font-size: 15px !important; line-height: 1.65 !important;
}
html.ueng-skin .ls-publish-expanded.ueng-writing .ls-editor { min-height: 88px !important; }
html.ueng-skin .ls-publish-toolbar { border: 0; padding-top: 6px; margin-top: 0; gap: 8px; }
html.ueng-skin .ls-publish-actions { gap: 1px; margin-left: -6px; }
html.ueng-skin .ls-publish-actions .ls-action-btn { width: 30px; height: 32px; color: #8b8b8b; }
html.ueng-skin .ls-publish-actions .ls-action-btn i { font-size: 18px; }
html.ueng-skin .ls-publish-submit .ls-submit-btn { min-width: 66px; height: 34px; padding: 0 16px; font-size: 13px; }
@media (max-width: 760px) {
  html.ueng-skin .ls-publish-expanded { padding: 16px 16px 12px 62px; }
  html.ueng-skin .ueng-compose-avatar { left: 16px; top: 16px; width: 32px; height: 32px; }
  html.ueng-skin .ls-publish-actions { gap: 0; }
}

/* Ease the one-time writing expansion without scaling text or moving the caret. */
html.ueng-skin .ls-publish-editor-body .ls-editor {
  transition: min-height var(--ueng-motion-duration, 900ms) cubic-bezier(.32,.72,0,1) !important;
}
@media (prefers-reduced-motion: reduce) {
  html.ueng-skin .ls-publish-editor-body .ls-editor { transition: none !important; }
}

/* Composer tools and local draft feedback; upload execution stays with the host. */
html.ueng-skin .ls-publish-editor-body .ls-editor { max-height: 320px !important; height: auto !important; overflow-y: auto !important; }
html.ueng-skin .ueng-compose-more { position: relative; }
html.ueng-skin .ueng-compose-more summary { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; cursor: pointer; color: #888; border-radius: 50%; list-style: none; }
html.ueng-skin .ueng-compose-more summary::-webkit-details-marker { display: none; }
html.ueng-skin .ueng-compose-more summary i { font-size: 20px; }
html.ueng-skin .ueng-compose-more[open] summary { background: var(--ls-bg-hover); }
html.ueng-skin .ueng-compose-more-panel { position: absolute; z-index: 100; left: 0; top: calc(100% + 6px); width: 160px; padding: 6px; border: 1px solid var(--ls-border); border-radius: 14px; background: var(--ueng-glass-bg); backdrop-filter: var(--ueng-glass-filter); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
html.ueng-skin .ls-publish-actions .ueng-compose-more-panel .ls-action-btn { display: flex; width: 100%; justify-content: flex-start; gap: 10px; padding: 8px 10px; height: 36px; border-radius: 8px; font-size: 13px; color: var(--ls-text-secondary); }
html.ueng-skin .ls-publish-submit .ls-submit-btn.ueng-submit-empty { opacity: .38; cursor: default; }
html.ueng-skin .ls-publish-submit .ls-submit-btn[aria-busy="true"] { opacity: .6; cursor: wait; }
html.ueng-skin .ueng-compose-draft { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 11px; color: var(--ls-text-muted); margin-top: 6px; }
html.ueng-skin .ueng-compose-draft:has(span:empty):not(:has(button:not([hidden]))) { display: none; }
html.ueng-skin .ueng-compose-draft button { font: inherit; border: 0; background: transparent; padding: 3px 0; color: var(--ls-text-secondary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
html.ueng-skin .ueng-compose-draft button[hidden] { display: none; }
html.ueng-skin .ls-publish-img-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
html.ueng-skin .ls-publish-img-list:empty { display: none; }
html.ueng-skin .ls-publish-img-list li { width: 84px; height: 84px; position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--ls-bg-hover); }
html.ueng-skin .ls-publish-img-list li img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
html.ueng-skin .ls-publish-img-list li .close { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; top: 4px; right: 4px; border-radius: 50%; color: #fff; background: rgba(0,0,0,.6); }

html.ueng-skin .ls-publish-actions .ueng-article-entry { width: auto; padding: 0 8px; gap: 5px; font-size: 12px; white-space: nowrap; border-radius: 999px; }

/* Compact tools expand only their own label toward the right. */
html.ueng-skin .ls-publish-actions > .ls-action-btn { width: auto; min-width: 32px; padding: 0 7px; gap: 0; flex: 0 0 auto; }
html.ueng-skin .ls-publish-actions > .ls-action-btn i { flex: 0 0 18px; }
html.ueng-skin .ls-publish-actions > .ls-action-btn .ueng-tool-label { display: inline-block; width: 0; max-width: none; margin-left: 0; overflow: hidden; white-space: nowrap; opacity: 0; font-size: 12px; transition: width var(--ueng-motion-duration, 900ms) cubic-bezier(.32,.72,0,1), margin-left var(--ueng-motion-duration, 900ms) cubic-bezier(.32,.72,0,1), opacity var(--ueng-motion-duration, 900ms) ease; }
@media (hover: hover) and (pointer: fine) {
  html.ueng-skin.ueng-tool-labels .ls-publish-actions > .ls-action-btn:hover .ueng-tool-label { width: var(--ueng-label-width, 36px); margin-left: 6px; opacity: 1; }
}
html.ueng-skin.ueng-tool-labels .ls-publish-actions > .ls-action-btn:focus-visible .ueng-tool-label { width: var(--ueng-label-width, 36px); margin-left: 6px; opacity: 1; }
html.ueng-skin .ls-publish-expanded { padding-left: 22px; }
html.ueng-skin .ueng-compose-avatar { opacity: 0; transform: translateX(-6px) scale(.92); pointer-events: none; visibility: hidden; }
html.ueng-skin.ueng-composer-avatar .ls-publish-expanded.ueng-writing { padding-left: 74px; }
html.ueng-skin.ueng-composer-avatar .ueng-writing .ueng-compose-avatar { opacity: 1; transform: translateX(0) scale(1); visibility: visible; }
html.ueng-skin.ueng-avatar-motion .ls-publish-expanded { transition: padding-left var(--ueng-motion-duration, 900ms) cubic-bezier(.32,.72,0,1); }
html.ueng-skin.ueng-avatar-motion .ueng-compose-avatar { transition: opacity var(--ueng-motion-duration, 900ms) ease, transform var(--ueng-motion-duration, 900ms) cubic-bezier(.32,.72,0,1), visibility var(--ueng-motion-duration, 900ms); }
@media (max-width: 760px) {
  html.ueng-skin .ls-publish-expanded { padding-left: 16px; }
  html.ueng-skin.ueng-composer-avatar .ls-publish-expanded.ueng-writing { padding-left: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  html.ueng-skin .ls-publish-actions > .ls-action-btn .ueng-tool-label,
  html.ueng-skin.ueng-avatar-motion .ls-publish-expanded,
  html.ueng-skin.ueng-avatar-motion .ueng-compose-avatar { transition: none; }
}

/* A single moving selection surface; all timing follows the module setting. */
html.ueng-skin .ls-sns-page .ls-top-nav.ueng-nav-motion { position: relative; isolation: isolate; }
html.ueng-skin .ls-sns-page .ls-top-nav.ueng-nav-motion::before {
  content: ''; position: absolute; left: 0; top: 0; pointer-events: none;
  width: var(--ueng-tab-width); height: var(--ueng-tab-height);
  transform: translate(var(--ueng-tab-x), var(--ueng-tab-y));
  border-radius: 10px; background: var(--ls-card-bg, #fff);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform var(--ueng-motion-duration, 900ms) cubic-bezier(.4,0,.2,1), width var(--ueng-motion-duration, 900ms) cubic-bezier(.4,0,.2,1), height var(--ueng-motion-duration, 900ms) cubic-bezier(.4,0,.2,1);
}
html.ueng-skin .ls-sns-page .ueng-nav-motion .ls-top-nav-item { position: relative; z-index: 1; }
html.ueng-skin .ls-sns-page .ueng-nav-motion .ls-top-nav-item.ls-active { background: transparent; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  html.ueng-skin .ls-sns-page .ls-top-nav.ueng-nav-motion::before { transition: none; }
}

/* Prevent scroll anchoring from counteracting the animated category region. */
html.ueng-skin.ueng-top-ready .ls-sns-page { overflow-anchor: none; }

/* Regional timing inherits the global setting unless explicitly configured. */
html.ueng-skin .ls-header { --ueng-region-duration: var(--ueng-headerMotionDuration); }
html.ueng-skin .ls-sns-modules { --ueng-region-duration: var(--ueng-topContentMotionDuration); }
html.ueng-skin .ls-publish { --ueng-region-duration: var(--ueng-composerMotionDuration); }
html.ueng-skin :is(.ls-dialog-overlay,.ls-dialog,.ls-modal,.ls-modal-overlay,.ls-modal-content,.ls-dropdown,.ls-toast,.ls-now-toast,.ls-search-container,.ls-login-panel,.ls-emoji-panel,.ls-at-modal,.ueng-compose-more-panel) { --ueng-region-duration: var(--ueng-popupMotionDuration); }
html.ueng-skin .ls-hd-dropdown { --ueng-region-duration: var(--ueng-navDropdownMotionDuration); pointer-events: none; }
html.ueng-skin .ls-hd-dropdown-user { --ueng-region-duration: var(--ueng-userDropdownMotionDuration); }
html.ueng-skin .ls-hd-dropdown-messages { --ueng-region-duration: var(--ueng-messageMotionDuration); }
html.ueng-skin .ls-hd-dropdown-notifications { --ueng-region-duration: var(--ueng-noticeMotionDuration); }
html.ueng-skin .ls-has-dropdown:hover > .ls-hd-dropdown { pointer-events: auto; }
/* A fading panel must not regain hover from its outgoing footprint. */
html.ueng-skin .ls-has-dropdown:not(:hover) > .ls-hd-dropdown,
html.ueng-skin .ls-has-dropdown:not(:hover) > .ls-hd-dropdown * { pointer-events: none !important; }
/* Equal padding and a fixed radius keep the expanded tool background centered. */
html.ueng-skin .ls-publish-actions > .ls-action-btn { border-radius: 999px; box-sizing: border-box; height: 32px; padding: 0 7px; line-height: 1; }
html.ueng-skin .ls-publish-actions > .ls-action-btn > i { width: 18px; height: 18px; line-height: 18px; text-align: center; }
html.ueng-skin .ls-publish-actions > .ls-action-btn .ueng-tool-label { line-height: 18px; }

/* One native segmented menu geometry and one global duration on all three pages. */
html.ueng-skin :is(.ls-top-nav,.ls-author-tabs,.ls-bbs-nav-list,.ls-bbs-sub-nav-list).ueng-tabs-motion {
  --ueng-region-duration: var(--ueng-motion-duration); position: relative; isolation: isolate;
  display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; width: fit-content; max-width: 100%;
  padding: 4px !important; margin: 0 auto; border: 1px solid var(--ls-border); border-radius: 14px;
  background: var(--ls-bg-hover); box-shadow: none; box-sizing: border-box;
}
html.ueng-skin .ls-sns-page .ls-top-nav-wrap { border: 0; background: transparent; }
html.ueng-skin .ls-bbs-nav { background: transparent; border: 0; box-shadow: none; padding: 0; }
html.ueng-skin .ueng-tabs-motion > :is(.ls-top-nav-item,.ls-author-tab,.ls-bbs-nav-item,.ls-bbs-sub-nav-item) {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; gap: 8px; height: 35px; min-height: 35px; padding: 0 22px !important;
  border: 0; border-radius: 10px; line-height: 1; font-size: 14px; font-weight: 600;
  color: var(--ls-text-secondary); background: transparent !important; box-shadow: none !important;
  transition: color var(--ueng-motion-duration) ease;
}
html.ueng-skin .ueng-tabs-motion > .ls-active { color: var(--ls-text) !important; }
html.ueng-skin .ueng-tabs-motion > *::after { display: none !important; }
html.ueng-skin .ueng-tabs-motion i { font-size: 15px; line-height: 1; }
html.ueng-skin .ueng-tabs-motion::before {
  content: ''; position: absolute; left: 0; top: 0; pointer-events: none;
  width: var(--ueng-tab-width); height: var(--ueng-tab-height); opacity: var(--ueng-tab-opacity,1);
  transform: translate(var(--ueng-tab-x),var(--ueng-tab-y)); border-radius: 10px;
  background: var(--ls-card-bg,#fff); box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform var(--ueng-motion-duration) cubic-bezier(.4,0,.2,1),width var(--ueng-motion-duration) cubic-bezier(.4,0,.2,1),opacity var(--ueng-motion-duration) ease;
}
/* Keep native search mounted so both entrance and exit can finish. */
html.ueng-skin .ls-search-modal { --ueng-region-duration: var(--ueng-motion-duration); display: block; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity var(--ueng-motion-duration) ease,visibility var(--ueng-motion-duration); }
html.ueng-skin .ls-search-modal.active { visibility: visible; opacity: 1; pointer-events: auto; }
html.ueng-skin .ls-search-modal .ls-search-container { --ueng-region-duration: var(--ueng-motion-duration); transform: translateY(-12px); transition: transform var(--ueng-motion-duration) cubic-bezier(.4,0,.2,1); }
html.ueng-skin .ls-search-modal.active .ls-search-container { transform: translateY(0); }
/* Video lives inside the same quiet page frame, with native playback intact. */
html.ueng-skin.ueng-video-v2 .ls-vf-main { top: 88px; left: max(24px,calc((100vw - 1200px)/2)); right: max(24px,calc((100vw - 1200px)/2)); bottom: 20px; width: auto; height: auto; border-radius: 24px; background: #171717; box-shadow: 0 8px 32px rgba(0,0,0,.08); }
html.ueng-skin.ueng-video-v2 .ls-vf-toolbar { top: 16px; left: 16px; padding: 6px; gap: 4px; border-radius: 24px; background: rgba(25,25,25,.35); backdrop-filter: var(--ueng-glass-filter); }
html.ueng-skin.ueng-video-v2 .ls-vf-tool-btn { width: 36px; height: 36px; background: transparent; }
html.ueng-skin.ueng-video-v2 .ls-vf-tool-btn:hover { background: rgba(255,255,255,.15); }
html.ueng-skin.ueng-video-v2 .ls-vf-actions { right: 22px; }
html.ueng-skin.ueng-video-v2 .ls-vf-act-icon { background: rgba(30,30,30,.4); backdrop-filter: var(--ueng-glass-filter); }
html.ueng-skin.ueng-video-v2 .ls-vf-bottom-info { left: 24px; bottom: 26px; max-width: calc(100% - 120px); }
html.ueng-skin.ueng-video-v2 .ls-vf-info-name { font-size: 16px; }
html.ueng-skin.ueng-video-v2 .ls-vf-info-content { font-size: 14px; line-height: 1.65; }
html.ueng-skin.ueng-video-v2 .ls-vf-bg { opacity: .5; }
html.ueng-skin.ueng-video-v2 body:has(.ls-vf-main) :is(#lsFloatMenu,footer) { display: none; }
/* Task hierarchy: white panels, restrained monochrome accents, clear states. */
html.ueng-skin.ueng-task-v2 .ls-task-page { --tc-radius: 14px; --tc-radius-lg: 22px; --tc-soft: rgba(128,128,128,.05); --tc-soft-2: rgba(128,128,128,.10); --tc-line: var(--ls-border); --tc-ink: var(--ls-text); width: min(1100px,calc(100% - 48px)); margin: 28px auto 56px; }
html.ueng-skin.ueng-task-v2 .ls-task-hero { padding: 30px; background: var(--ls-card-bg,#fff); border: 1px solid var(--ls-border); border-radius: 24px; margin-bottom: 24px; }
html.ueng-skin.ueng-task-v2 .ls-task-hero::after { display: none; }
html.ueng-skin.ueng-task-v2 .ls-task-hero-big { font-size: 48px; font-weight: 650; letter-spacing: -2px; }
html.ueng-skin.ueng-task-v2 :is(.ls-task-sec,.ls-task-card) { border: 1px solid var(--ls-border); border-radius: 22px; box-shadow: none; overflow: hidden; background: var(--ls-card-bg,#fff); }
html.ueng-skin.ueng-task-v2 .ls-task-sec-head { padding: 20px; }
html.ueng-skin.ueng-task-v2 .ls-task-row { padding: 18px 20px; gap: 14px; }
html.ueng-skin.ueng-task-v2 .ls-task-row-ico { border-radius: 12px; background: var(--ls-bg-hover); color: var(--ls-text-secondary); }
html.ueng-skin.ueng-task-v2 .ls-task-row-name { font-weight: 600; }
html.ueng-skin.ueng-task-v2 .ls-task-row-desc { line-height: 1.7; }
html.ueng-skin.ueng-task-v2 :is(.ls-task-btn,.ls-task-row-btn,.ls-task-sign-btn) { border-radius: 999px; box-shadow: none; }
html.ueng-skin.ueng-task-v2 .ls-task-row-btn:not(.is-disabled) { background: var(--ls-text); color: var(--ls-card-bg,#fff); border-color: transparent; }
html.ueng-skin.ueng-task-v2 .ls-task-day { border-radius: 12px; }
html.ueng-skin.ueng-task-v2 .ls-task-day.is-signed:not(.is-today) { background: var(--ls-bg-hover); color: var(--ls-text); }
html.ueng-skin.ueng-task-v2 .ls-task-day.is-today { background: var(--ls-text); color: var(--ls-card-bg,#fff); }
html.ueng-skin.ueng-task-v2 .ls-task-sign-streak { color: var(--ls-text-secondary); background: var(--ls-bg-hover); border-radius: 999px; }
html.ueng-skin.ueng-task-v2 .ls-task-step-box { border-radius: 14px; }
@media (max-width: 900px) {
 html.ueng-skin.ueng-task-v2 .ls-task-hero-in,html.ueng-skin.ueng-task-v2 .ls-task-body { grid-template-columns: 1fr; }
 html.ueng-skin.ueng-video-v2 .ls-vf-main { left: 12px; right: 12px; bottom: 12px; border-radius: 18px; }
 html.ueng-skin .ueng-tabs-motion > :is(.ls-top-nav-item,.ls-author-tab,.ls-bbs-nav-item,.ls-bbs-sub-nav-item) { padding: 0 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
 html.ueng-skin :is(.ueng-tabs-motion,.ls-search-modal,.ls-search-container)::before,
 html.ueng-skin :is(.ls-search-modal,.ls-search-container) { transition: none; }
}
html.ueng-skin.ueng-task-v2 .ls-task-row-desc { white-space: normal; overflow: visible; text-overflow: clip; }
html.ueng-skin.ueng-video-v2 .ls-vf-sound-tip { background: rgba(24,24,24,.72); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; backdrop-filter: var(--ueng-glass-filter); }
html.ueng-skin.ueng-video-v2 .ls-vf-sound-tip :is(i,.ls-vf-sound-tip-btn) { color: inherit; }
html.ueng-skin.ueng-video-v2 .ls-vf-sound-tip-btn { background: rgba(255,255,255,.15); border-radius: 999px; }
/* Width and information hierarchy are shared with the site's reading column. */
html.ueng-skin .ueng-page-heading { margin: 0 0 24px; }
html.ueng-skin .ueng-page-heading h1 { margin: 0; font-size: 26px; line-height: 1.3; letter-spacing: -.7px; color: var(--ls-text); }
html.ueng-skin .ueng-page-heading p { margin: 8px 0 0; font-size: 14px; color: var(--ls-text-secondary); }
html.ueng-skin.ueng-task-v2 .ls-task-page { width: min(var(--ueng-content-width),calc(100% - 32px)); margin: 28px auto 56px; }
html.ueng-skin.ueng-task-v2 .ls-task-hero { padding: 24px; }
html.ueng-skin.ueng-task-v2 .ls-task-hero-in,
html.ueng-skin.ueng-task-v2 .ls-task-body { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
html.ueng-skin.ueng-task-v2 .ls-task-hero-line { display: none; }
html.ueng-skin.ueng-task-v2 .ls-task-sign { padding-top: 24px; border-top: 1px solid var(--ls-border); }
html.ueng-skin.ueng-task-v2 .ls-task-sign-btn { margin-top: 18px; }
html.ueng-skin.ueng-task-v2 .ls-task-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 8px 14px; padding: 20px; }
html.ueng-skin.ueng-task-v2 .ls-task-row-ico { grid-column: 1; grid-row: 1 / 3; align-self: start; }
html.ueng-skin.ueng-task-v2 .ls-task-row-main { grid-column: 2; grid-row: 1; }
html.ueng-skin.ueng-task-v2 .ls-task-row-pg { grid-column: 2; grid-row: 2; width: auto; justify-content: flex-start; }
html.ueng-skin.ueng-task-v2 .ls-task-row-rw { grid-column: 3; grid-row: 2; justify-self: end; }
html.ueng-skin.ueng-task-v2 .ls-task-row-btn { grid-column: 3; grid-row: 1; min-height: 34px; }
html.ueng-skin.ueng-task-v2 .ls-task-sec-head { flex-wrap: wrap; gap: 8px; }
html.ueng-skin.ueng-task-v2 .ls-task-side { position: static; }
html.ueng-skin.ueng-task-v2 .ls-task-track { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
html.ueng-skin.ueng-task-v2 .ls-task-step { padding-left: 0; }
html.ueng-skin.ueng-task-v2 .ls-task-step::before,
html.ueng-skin.ueng-task-v2 .ls-task-step::after { display: none; }
html.ueng-skin.ueng-video-v2 .ueng-video-heading { position: fixed; top: 88px; left: max(16px,calc((100% - var(--ueng-content-width))/2)); width: min(var(--ueng-content-width),calc(100% - 32px)); margin: 0; }
html.ueng-skin.ueng-video-v2 .ueng-video-heading p { display: inline; margin-left: 14px; }
html.ueng-skin.ueng-video-v2 .ueng-video-heading h1 { display: inline; }
html.ueng-skin.ueng-video-v2 .ls-vf-main { top: 140px; left: max(16px,calc((100% - var(--ueng-content-width))/2)); right: auto; width: min(var(--ueng-content-width),calc(100% - 32px)); bottom: 20px; }
html.ueng-skin.ueng-video-v2 .ls-vf-toolbar { flex-direction: column; top: 14px; left: 14px; border-radius: 999px; }
html.ueng-skin.ueng-video-v2 .ls-vf-actions { right: 16px; bottom: 108px; gap: 16px; }
html.ueng-skin.ueng-video-v2 .ls-vf-act-avatar img { width: 40px; height: 40px; }
html.ueng-skin.ueng-video-v2 .ls-vf-bottom-info { left: 0; right: 0; bottom: 0; padding: 56px 24px 24px; max-width: none; }
html.ueng-skin.ueng-video-v2 .ls-vf-info-content { max-width: calc(100% - 60px); max-height: 3.3em; overflow: auto; }
html.ueng-skin.ueng-video-v2 .ls-vf-tool-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 650px) {
 html.ueng-skin.ueng-task-v2 .ls-task-track { grid-template-columns: 1fr; }
 html.ueng-skin.ueng-task-v2 .ls-task-row { padding: 16px; gap: 8px; }
 html.ueng-skin.ueng-task-v2 .ls-task-hero { padding: 18px; }
}

html.ueng-skin.ueng-video-v2 .ls-vf-bg { opacity: 1; }
html.ueng-skin.ueng-video-v2 .ls-vf-bg img { filter: blur(32px) brightness(.65); }
html.ueng-skin.ueng-video-v2 .ls-vf-bg canvas { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(32px) brightness(.65);display:none; }
html.ueng-skin.ueng-video-v2 .ls-vf-bg.ueng-video-mapped canvas { display:block; }
html.ueng-skin.ueng-video-v2 .ls-vf-bg.ueng-video-mapped img { visibility:hidden; }
html.ueng-skin.ueng-video-v2 .ls-vf-bottom-info { padding-bottom:36px; }
html.ueng-skin.ueng-video-v2 .ls-vf-info-name { font-size:16px;margin-bottom:6px; }
html.ueng-skin.ueng-video-v2 .ls-vf-info-content { max-height:3.3em;overflow:hidden;line-height:1.65; }
html.ueng-skin.ueng-video-v2 .ls-vf-info-content.ueng-expanded { max-height: min(200px,30vh);overflow:auto; }
html.ueng-skin.ueng-video-v2 .ueng-video-expand { border:0;background:transparent;color:#fff;padding:6px 0;font-size:12px;cursor:pointer; }
html.ueng-skin.ueng-video-v2 .ls-vf-progress { bottom:10px;left:16px;width:calc(100% - 32px);border-radius:999px;height:3px; }
html.ueng-skin.ueng-video-v2 .ls-vf-progress:is(:hover,:focus-visible,.ls-vf-progress-dragging) { height:7px; }
html.ueng-skin.ueng-video-v2 .ls-vf-progress-bar { border-radius:999px;transition:none !important; }
html.ueng-skin.ueng-video-v2 .ls-vf-progress:hover .ls-vf-progress-bar { background:#fff; }
html.ueng-skin.ueng-video-v2 .ueng-video-time { position:absolute;right:0;bottom:14px;color:#fff;font-size:12px;font-variant-numeric:tabular-nums;pointer-events:none;text-shadow:0 1px 3px #000; }
html.ueng-skin.ueng-video-v2 .ueng-video-comments { position:absolute;inset:12px 12px 12px auto;width:min(420px,calc(100% - 24px));z-index:120;overflow:auto;background:var(--ueng-glass-bg);backdrop-filter:var(--ueng-glass-filter);color:var(--ls-text);border-radius:20px;padding:16px;box-sizing:border-box;box-shadow:0 8px 32px #0002; }
html.ueng-skin.ueng-video-v2 .ueng-video-comments-close { display:block;margin-left:auto;border:0;border-radius:999px;padding:8px 12px;background:var(--ls-bg-hover);color:var(--ls-text);cursor:pointer; }
html.ueng-skin.ueng-video-v2 .ueng-video-comments .ls-comment-box { display:block; }

/* Video comments: lightweight glass sheet, scoped native component styling. */
html.ueng-skin.ueng-video-v2 .ueng-video-comments { --ueng-region-duration:var(--ueng-popupMotionDuration); padding:0; border:1px solid rgba(128,128,128,.12); border-radius:22px; overscroll-behavior:contain; scrollbar-width:thin; }
html.ueng-skin.ueng-video-v2 .ueng-video-comments-header { position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:18px 20px;background:var(--ueng-glass-bg);backdrop-filter:var(--ueng-glass-filter);border-bottom:1px solid var(--ls-border); }
html.ueng-skin.ueng-video-v2 .ueng-video-comments-header h2 { margin:0;font-size:17px;font-weight:600; }
html.ueng-skin.ueng-video-v2 .ueng-video-comments-close { margin:0;padding:7px 12px;font-size:12px; }
html.ueng-skin.ueng-video-v2 .ueng-video-comments-loading { padding:24px 20px;color:var(--ls-text-secondary);font-size:13px; }
html.ueng-skin.ueng-video-v2 .ueng-video-comments .ls-comment-box { padding:20px;border:0; }
html.ueng-skin.ueng-video-v2 .ueng-video-comments .ls-comment-menu { flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:20px; }
html.ueng-skin.ueng-video-v2 .ueng-video-comments .ls-comment-count { font-size:13px;color:var(--ls-text-secondary); }
html.ueng-skin.ueng-video-v2 .ueng-video-comments .ls-comment-tabs { padding:3px;border-radius:12px;background:var(--ls-bg-hover); }
html.ueng-skin.ueng-video-v2 .ueng-video-comments .ls-comment-tabs .tab-item { padding:7px 10px;border-radius:9px; }
html.ueng-skin.ueng-video-v2 .ueng-video-comments .ls-comment-form { border:0;background:var(--ls-bg-hover);border-radius:16px;box-shadow:inset 0 0 0 1px rgba(128,128,128,.07); }
html.ueng-skin.ueng-video-v2 .ueng-video-comments .ls-comment-textarea { min-height:72px;font-size:14px;line-height:1.65;padding:14px; }
html.ueng-skin.ueng-video-v2 .ueng-video-comments :is(.ls-comment-submit,.ls-comment-submit-btn) { border-radius:999px;background:var(--ls-text);color:var(--ls-card-bg); }
html.ueng-skin.ueng-video-v2 .ueng-video-comments :is(.ls-comment-item,.ls-comment-child-item) { padding-top:16px;padding-bottom:16px;border-color:var(--ls-border); }

/* Detail videos retain native actions, danmaku and recommendation/comment tabs. */
html.ueng-skin.ueng-video-v2 body.route-video { background:var(--ls-bg,#f8f8f8); }
html.ueng-skin.ueng-video-v2 .ueng-detail-video-heading { position:fixed;top:28px;left:max(16px,calc((100% - var(--ueng-content-width))/2));width:min(var(--ueng-content-width),calc(100% - 32px));margin:0; }
html.ueng-skin.ueng-video-v2 .ueng-detail-video-heading h1 { display:inline; }
html.ueng-skin.ueng-video-v2 .ueng-detail-video-heading p { display:inline;margin-left:14px; }
html.ueng-skin.ueng-video-v2 .vd-main { position:fixed;inset:80px auto 20px max(16px,calc((100% - var(--ueng-content-width))/2));width:min(var(--ueng-content-width),calc(100% - 32px));height:auto;border-radius:24px;box-shadow:0 8px 32px #0001;background:#171717; }
html.ueng-skin.ueng-video-v2 .vd-left { height:100%;width:100%;flex:1; }
html.ueng-skin.ueng-video-v2 .vd-toolbar-left { left:14px;top:14px;gap:4px;padding:6px;border-radius:999px;background:rgba(25,25,25,.35);backdrop-filter:var(--ueng-glass-filter); }
html.ueng-skin.ueng-video-v2 .vd-tool-btn { width:36px;height:36px;background:transparent;color:#fff; }
html.ueng-skin.ueng-video-v2 .vd-tool-btn:hover { background:rgba(255,255,255,.15); }
html.ueng-skin.ueng-video-v2 .vd-bg img { filter:blur(32px) brightness(.65); }
html.ueng-skin.ueng-video-v2 .vd-bg canvas { position:absolute;inset:-10%;width:120%;height:120%;object-fit:cover;filter:blur(32px) brightness(.65);display:none; }
html.ueng-skin.ueng-video-v2 .vd-bg.ueng-video-mapped canvas { display:block; }
html.ueng-skin.ueng-video-v2 .vd-bg.ueng-video-mapped img { visibility:hidden; }
html.ueng-skin.ueng-video-v2 .vd-action-bar { right:16px;gap:16px; }
html.ueng-skin.ueng-video-v2 .vd-action-icon { background:rgba(30,30,30,.35);backdrop-filter:var(--ueng-glass-filter); }
html.ueng-skin.ueng-video-v2 .vd-info-name { font-size:16px;margin-bottom:6px; }
html.ueng-skin.ueng-video-v2 .vd-info-content { font-size:14px;line-height:1.65; }
html.ueng-skin.ueng-video-v2 .vd-progress { left:16px;right:16px;width:auto;border-radius:999px; }
html.ueng-skin.ueng-video-v2 .vd-progress-bar { background:#fff;transition:none !important;border-radius:999px; }
html.ueng-skin.ueng-video-v2 .vd-progress .ueng-video-time { position:absolute;right:0;bottom:14px;font-size:12px;color:#fff;pointer-events:none;font-variant-numeric:tabular-nums; }
html.ueng-skin.ueng-video-v2 :is(.vd-sound-tip,.vd-dm-settings,.vd-dm-color-picker,.vd-dm-list-panel) { background:rgba(24,24,24,.75);backdrop-filter:var(--ueng-glass-filter);border-radius:16px;border-color:rgba(255,255,255,.12); }
html.ueng-skin.ueng-video-v2 .vd-sound-tip :is(i,.vd-sound-tip-btn) { color:inherit; }
html.ueng-skin.ueng-video-v2 .vd-sound-tip-btn { background:rgba(255,255,255,.15);border-radius:999px; }
html.ueng-skin.ueng-video-v2 .vd-right { --ueng-region-duration:var(--ueng-popupMotionDuration);position:absolute;inset:12px 12px 12px auto;width:min(420px,calc(100% - 24px));min-width:0;height:auto;margin:0;background:var(--ueng-glass-bg);color:var(--ls-text);backdrop-filter:var(--ueng-glass-filter);border:1px solid var(--ls-border);border-radius:22px;z-index:150;box-shadow:0 8px 32px #0002;transition:transform var(--ueng-motion-duration) cubic-bezier(.4,0,.2,1),opacity var(--ueng-motion-duration),visibility var(--ueng-motion-duration); }
html.ueng-skin.ueng-video-v2 .vd-right.vd-panel-hidden { margin:0;opacity:0;visibility:hidden;transform:translateX(22px);pointer-events:none; }
html.ueng-skin.ueng-video-v2 .ueng-detail-close { position:absolute;right:12px;top:12px;z-index:2;border:0;border-radius:999px;padding:7px 12px;background:var(--ls-bg-hover);color:var(--ls-text);cursor:pointer; }
html.ueng-skin.ueng-video-v2 .vd-tabs { height:56px;padding:0 76px 0 18px;gap:18px;border-color:var(--ls-border); }
html.ueng-skin.ueng-video-v2 .vd-tab-item { color:var(--ls-text-secondary);font-size:13px; }
html.ueng-skin.ueng-video-v2 .vd-tab-item.ls-on { color:var(--ls-text); }
html.ueng-skin.ueng-video-v2 .vd-tab-item.ls-on::after { background:var(--ls-text);height:2px; }
html.ueng-skin.ueng-video-v2 .vd-recommend-item { border-radius:14px;padding:10px;margin-bottom:4px; }
html.ueng-skin.ueng-video-v2 .vd-recommend-item:is(:hover,.ls-on) { background:var(--ls-bg-hover); }
html.ueng-skin.ueng-video-v2 .vd-recommend-cover { border-radius:10px; }
html.ueng-skin.ueng-video-v2 .vd-right :is(.vd-recommend-title,.vd-recommend-name,.ls-ci-content,.ls-ci-name,.ls-comment-count) { color:var(--ls-text); }
html.ueng-skin.ueng-video-v2 .vd-right :is(.vd-recommend-meta,.vd-recommend-author,.ls-comment-empty,.ls-ci-time,.ls-ci-action) { color:var(--ls-text-secondary); }
html.ueng-skin.ueng-video-v2 .vd-comment-wrap .ls-comment-form { background:var(--ls-bg-hover);border:0;border-radius:16px; }
html.ueng-skin.ueng-video-v2 .vd-comment-wrap .ls-comment-textarea { color:var(--ls-text);font-size:14px; }
html.ueng-skin.ueng-video-v2 body:has(.vd-main) #lsFloatMenu { display:none; }
html.ueng-skin.ueng-video-v2 .vd-toolbar-left { position:fixed;top:94px;left:max(30px,calc((100% - var(--ueng-content-width))/2 + 14px)); }
html.ueng-skin.ueng-video-v2 .vd-comment-wrap :is(.ls-editor,.ls-comment-count em) { color:var(--ls-text) !important; }
html.ueng-skin.ueng-video-v2 .vd-comment-wrap :is(.tool-btn,.tool-btn i,.ls-comment-tabs .tab-item) { color:var(--ls-text-secondary) !important; }
html.ueng-skin.ueng-video-v2 .vd-comment-wrap .ls-editor:empty::before { color:var(--ls-text-secondary) !important; }
html.ueng-skin.ueng-video-v2 .vd-comment-wrap .ls-comment-tabs { background:var(--ls-bg-hover);border-radius:12px;padding:3px; }
html.ueng-skin.ueng-video-v2 .vd-comment-wrap .ls-comment-tabs .tab-item { border-radius:9px; }
html.ueng-skin.ueng-video-v2 .vd-comment-wrap .ls-comment-tabs .tab-item.on { background:var(--ls-card-bg);color:var(--ls-text) !important; }
html.ueng-skin.ueng-video-v2 .vd-comment-wrap .ls-comment-submit { border-radius:999px;background:var(--ls-text) !important;color:var(--ls-card-bg) !important; }

/* Remove only the native white frame around the detail action avatar. */
html.ueng-skin.ueng-video-v2 .vd-action-avatar > a { border-color: transparent; }

html.ueng-skin.ueng-video-v2 .vd-action-avatar > a,
html.ueng-skin.ueng-video-v2 .vd-action-avatar > a > img { border-radius: 50% !important; }

html.ueng-skin.ueng-video-v2 .vd-action-avatar .ls-online-dot { display: none !important; }

/* Forum surfaces: shared across native classic, compact, XenForo and waterfall layouts. */
html.ueng-skin .ls-bbs-page {padding: 12px 0 32px; max-width: none;}
html.ueng-skin .ls-bbs-page .ls-bbs-header {height:auto; min-height:280px; margin-top:0; background:var(--ls-card-bg,#fff); border:0; border-radius:24px; box-shadow:none;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-bg {height:144px; bottom:auto; border-radius:24px 24px 0 0; filter:none;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-overlay {height:144px; bottom:auto; background:linear-gradient(180deg,transparent,rgba(0,0,0,.08)); backdrop-filter:none; border-radius:24px 24px 0 0;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-content {position:relative; inset:auto; height:auto; padding:168px 28px 24px; gap:20px; align-items:center; flex-wrap:wrap;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-info {color:var(--ls-text); min-width:0;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-text {color:var(--ls-text);}
html.ueng-skin .ls-bbs-page .ls-bbs-avatar {width:64px;height:64px;border:0;box-shadow:none;border-radius:18px;flex-shrink:0;}
html.ueng-skin .ls-bbs-page .ls-bbs-title {color:var(--ls-text);font-size:24px;line-height:1.35;letter-spacing:-.5px;text-shadow:none;white-space:normal;}
html.ueng-skin .ls-bbs-page .ls-bbs-desc {color:var(--ls-text-secondary);font-size:14px;line-height:1.7;text-shadow:none;opacity:1;margin:6px 0 0;white-space:normal;}
html.ueng-skin .ls-bbs-page :is(.ls-bbs-stat,.ls-bbs-stat strong,.ls-bbs-stat-num) {color:var(--ls-text);text-shadow:none;}
html.ueng-skin .ls-bbs-page .ls-bbs-stat-label {color:var(--ls-text-secondary);opacity:1;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-right {width:100%;align-items:center;flex-wrap:wrap;gap:16px;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-stats {gap:24px;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-actions {gap:8px;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-actions > :is(.ls-bbs-follow-btn,.ls-bbs-publish-btn,.ls-bbs-search-toggle) {height:36px;border:0;box-shadow:none;border-radius:999px;}
html.ueng-skin .ls-bbs-page .ls-bbs-follow-btn {background:#f3f3f3;color:#252525;}
html.ueng-skin .ls-bbs-page .ls-bbs-publish-btn {background:#171717;color:#fff;}
html.ueng-skin .ls-bbs-page .ls-bbs-search-toggle {background:#f3f3f3;color:#606060;}
html.ueng-skin .ls-bbs-page :is(.ls-bbs-mod-label,.ls-bbs-mods > i) {color:var(--ls-text-secondary);}
html.ueng-skin .ls-bbs-page .ls-bbs-body {gap:20px;margin-top:20px;}
html.ueng-skin .ls-bbs-page .ls-bbs-main {gap:16px;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice {border:0;border-radius:16px;background:var(--ls-card-bg,#fff);padding:14px 18px;box-shadow:none;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice-icon {background:#f3f3f3;color:#777;border-radius:10px;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice-tag {background:transparent;color:#777;font-weight:500;}
html.ueng-skin .ls-bbs-page :is(.ls-bbs-post-list,.ls-bbs-list-wrap) {border:0;border-radius:22px;background:var(--ls-card-bg,#fff);box-shadow:none;}
html.ueng-skin .ls-bbs-page .ls-bbs-post-item {padding:26px;gap:14px;border-color:#f0f0f0;}
html.ueng-skin .ls-bbs-page .ls-bbs-post-title a {font-size:16px;line-height:1.6;font-weight:650;-webkit-line-clamp:2;}
html.ueng-skin .ls-bbs-page .ls-bbs-post-excerpt {font-size:14px;line-height:1.8;margin:8px 0 12px;}
html.ueng-skin .ls-bbs-page .ls-bbs-post-meta {gap:10px;font-size:12px;color:#999;margin-top:12px;}
html.ueng-skin .ls-bbs-page .ls-bbs-reprint-inner {background:#f7f7f7;border:0;border-radius:14px;padding:16px;}
html.ueng-skin .ls-bbs-page .ls-bbs-reprint-text {line-height:1.75;color:var(--ls-text-secondary);}
html.ueng-skin .ls-bbs-page .ls-bbs-reprint-images img {border-radius:8px;}
html.ueng-skin .ls-bbs-page .ls-bbs-post-cover {border-radius:14px;}
html.ueng-skin .ls-bbs-page .ls-bbs-pinned-item {padding:14px 18px;border-color:#f0f0f0;}
html.ueng-skin .ls-bbs-page .ls-bbs-pinned-badge {background:#f3f3f3;color:#666;border-radius:6px;}
html.ueng-skin .ls-bbs-page .ls-bbs-search-inner {border:0;background:#f1f1f1;border-radius:14px;padding:12px 16px;}
html.ueng-skin .ls-bbs-page .ls-bbs-search-input {background:transparent;outline:none;}
html.ueng-skin .ls-bbs-page .ls-bbs-search-inner:focus-within {box-shadow:0 0 0 2px #ddd;}
html.ueng-skin .ls-bbs-page .ls-empty {padding:48px 24px;color:#999;}
html.ueng-skin .ls-bbs-page .ls-sidebar-right {min-width:0;}
html.ueng-skin .ls-bbs-page .ls-sidebar-right .ls-card {border:0;box-shadow:none;border-radius:18px;}
html.ueng-skin .ls-bbs-page:is(.ls-bbs-compact,.ls-bbs-xenforo,.ls-bbs-waterfall) .ls-bbs-header-content {flex-direction:row;}
html.ueng-skin .ls-bbs-page:is(.ls-bbs-compact,.ls-bbs-xenforo,.ls-bbs-waterfall) .ls-bbs-header-info {flex:1;}
@media (max-width:900px) {
 html.ueng-skin .ls-bbs-page .ls-bbs-body {flex-direction:column;}
 html.ueng-skin .ls-bbs-page .ls-sidebar-right {width:100%;}
}
@media (max-width:600px) {
 html.ueng-skin .ls-bbs-page .ls-bbs-header-content {padding:160px 20px 20px;}
 html.ueng-skin .ls-bbs-page .ls-bbs-post-item {padding:20px;}
 html.ueng-skin .ls-bbs-page .ls-bbs-header-top {flex-wrap:wrap;}
}

/* Preserve the native masonry engine's measured card boxes. */
html.ueng-skin .ls-bbs-page.ls-bbs-waterfall .ls-bbs-post-list {background:transparent;border-radius:0;}
html.ueng-skin .ls-bbs-page.ls-bbs-waterfall .ls-bbs-post-item {padding:0;border:0;border-radius:18px;background:var(--ls-card-bg,#fff);}
html.ueng-skin .ls-bbs-page.ls-bbs-waterfall .ls-bbs-post-item:hover {box-shadow:0 6px 20px rgba(0,0,0,.05);}

/* A readable forum stream: author first, generous media, quiet native statistics. */
html.ueng-skin .ls-bbs-page .ls-bbs-post-list:has(.ueng-forum-post) {border-radius:24px;overflow:hidden;}
html.ueng-skin .ls-bbs-page .ueng-forum-post {padding:28px 30px;gap:14px;position:relative;border:0;}
html.ueng-skin .ls-bbs-page .ueng-forum-post + .ueng-forum-post::before {content:'';position:absolute;top:0;left:84px;right:30px;height:1px;background:#efefef;}
html.ueng-skin .ls-bbs-page .ueng-forum-post:hover {background:transparent;}
html.ueng-skin .ueng-forum-post .ls-bbs-post-left {padding-top:0;}
html.ueng-skin .ueng-forum-post .ls-bbs-post-avatar-wrap {display:block;width:40px;height:40px;}
html.ueng-skin .ueng-forum-post .ls-bbs-post-avatar-wrap img {width:40px;height:40px;object-fit:cover;border-radius:50%;}
html.ueng-skin .ueng-forum-post .ueng-forum-byline {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-height:22px;margin-bottom:9px;}
html.ueng-skin .ueng-forum-post .ueng-forum-byline .ls-bbs-post-author {font-size:14px;font-weight:650;color:var(--ls-text);}
html.ueng-skin .ueng-forum-post .ls-bbs-post-time {font-size:12px;color:#999;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-title {gap:6px;flex-wrap:wrap;margin:0 0 8px;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-title a {font-size:18px;line-height:1.65;font-weight:600;letter-spacing:-.2px;-webkit-line-clamp:3;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-tag {font-size:11px;font-weight:500;padding:3px 7px;border-radius:6px;background:#f3f3f3;color:#777;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-excerpt {font-size:15px;line-height:1.85;margin:0 0 16px;color:#666;-webkit-line-clamp:3;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ueng-forum-duplicate {display:none;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-body {flex-direction:column;align-items:stretch;gap:0;margin:0;}
html.ueng-skin .ueng-forum-post .ls-bbs-post-text:has(> .ueng-forum-duplicate) {display:none;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-cover-wrap {width:100%;border-radius:16px;overflow:hidden;background:#f6f6f6;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-cover {display:block;width:100%;height:260px;object-fit:cover;border-radius:16px;}
html.ueng-skin .ls-bbs-page .ueng-forum-post[data-post-type="video"] .ls-bbs-post-cover {height:300px;object-fit:contain;background:#f4f4f4;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-video-icon {width:48px;height:48px;font-size:23px;background:rgba(25,25,25,.65);backdrop-filter:var(--ueng-glass-filter);}
html.ueng-skin .ueng-forum-post .ls-bbs-post-duration {bottom:12px;right:12px;border-radius:7px;padding:4px 7px;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-images {gap:8px;overflow:hidden;border-radius:16px;margin:14px 0 0;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-images img {flex:1;min-width:0;width:0;height:220px;object-fit:cover;border-radius:0;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-reprint-inner {padding:18px 20px;border-radius:16px;background:#f7f7f7;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-reprint-author {font-size:13px;font-weight:600;color:#333;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-reprint-text {font-size:14px;line-height:1.8;margin:8px 0 12px;-webkit-line-clamp:3;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-reprint-images img {width:112px;height:112px;object-fit:cover;border-radius:10px;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-meta {gap:24px;margin-top:16px;min-height:24px;}
html.ueng-skin .ueng-forum-post .ls-bbs-post-stats {gap:6px;font-size:12px;color:#888;}
html.ueng-skin .ueng-forum-post .ls-bbs-post-stats i {font-size:19px;color:#737373;}
html.ueng-skin .ls-bbs-page .ls-bbs-load-btn {background:#f1f1f1;border:0;box-shadow:none;border-radius:999px;padding:11px 28px;}
@media(max-width:600px) {
 html.ueng-skin .ls-bbs-page .ueng-forum-post {padding:22px 18px;gap:10px;}
 html.ueng-skin .ls-bbs-page .ueng-forum-post + .ueng-forum-post::before {left:68px;right:18px;}
 html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-cover {height:210px;}
}

/* Keep artwork intact; tags form a quiet secondary line below the title. */
html.ueng-skin .ls-bbs-page .ueng-forum-post:not([data-post-type="video"]) .ls-bbs-post-cover {height:auto;max-height:420px;object-fit:contain;background:#f7f7f7;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-title a {order:-1;flex-basis:100%;}
html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-tag {background:#f3f3f3!important;color:#777!important;}

/* Forum video posters fill their spare space with the same image, softly blurred. */
html.ueng-skin .ueng-forum-post .ueng-forum-video-blur {position:absolute;inset:-24px;width:calc(100% + 48px);height:calc(100% + 48px);max-width:none;object-fit:cover;filter:blur(24px) saturate(1.2) brightness(.85);pointer-events:none;user-select:none;}
html.ueng-skin .ls-bbs-page .ueng-forum-post[data-post-type="video"] .ls-bbs-post-cover {position:relative;background:transparent;}

/* Forum overview and notices stay quiet; only the global navigation floats. */
html.ueng-skin .ls-bbs-page .ls-bbs-header {min-height:0;border-radius:20px;}
html.ueng-skin .ls-bbs-page :is(.ls-bbs-header-bg,.ls-bbs-header-overlay) {height:112px;border-radius:20px 20px 0 0;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-content {padding:132px 26px 22px;gap:18px;align-items:stretch;}
html.ueng-skin .ls-bbs-page:not(.ls-bbs-compact):not(.ls-bbs-xenforo):not(.ls-bbs-waterfall) .ls-bbs-header-info {width:100%;gap:14px;}
html.ueng-skin .ls-bbs-page .ls-bbs-avatar {width:52px;height:52px;border-radius:15px;}
html.ueng-skin .ls-bbs-page .ls-bbs-title {font-size:22px;letter-spacing:-.3px;}
html.ueng-skin .ls-bbs-page .ls-bbs-desc {font-size:13px;margin-top:4px;line-height:1.65;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-right {padding-top:14px;border-top:1px solid #f1f1f1;gap:12px;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-stats {gap:18px;align-items:center;}
html.ueng-skin .ls-bbs-page .ls-bbs-stat {display:inline-flex;flex-direction:row;align-items:baseline;gap:5px;}
html.ueng-skin .ls-bbs-page .ls-bbs-stat-num {font-size:14px;font-weight:650;}
html.ueng-skin .ls-bbs-page .ls-bbs-stat-label {font-size:12px;color:#999;}
html.ueng-skin .ls-bbs-page :is(.ls-bbs-nav,.ls-bbs-toolbar) {position:relative!important;top:auto!important;z-index:auto;margin:0;background:transparent;box-shadow:none;border:0;}
html.ueng-skin .ls-bbs-page .ls-bbs-body {margin-top:18px;}
html.ueng-skin .ls-bbs-page .ls-bbs-main {gap:14px;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice {padding:4px 10px 8px;min-height:36px;gap:8px;border:0;border-radius:0;background:transparent;box-shadow:none;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice-icon {width:24px;height:24px;font-size:15px;background:transparent;color:#999;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice-tag {padding:0 5px 0 0;font-size:12px;color:#888;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice-text {font-size:12px;line-height:1.8;color:#888;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice-arrow {margin-left:auto;color:#aaa;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice-item:hover .ls-bbs-notice-text {color:#444;}
@media(max-width:600px) {
 html.ueng-skin .ls-bbs-page .ls-bbs-header-content {padding:130px 20px 20px;}
 html.ueng-skin .ls-bbs-page .ls-bbs-header-right {gap:14px;}
}

/* Community overview: one quiet reading surface, without stacked banner cards. */
html.ueng-skin .ls-bbs-page {padding:0 0 12px;margin-top:16px;background:var(--ls-card-bg,#fff);border-radius:26px;}
html.ueng-skin .ls-bbs-page .ls-bbs-header {background:transparent;border-radius:0;min-height:0;}
html.ueng-skin .ls-bbs-page :is(.ls-bbs-header-bg,.ls-bbs-header-overlay) {display:none;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-content {padding:34px 30px 24px;gap:22px;}
html.ueng-skin .ls-bbs-page:not(.ls-bbs-compact):not(.ls-bbs-xenforo):not(.ls-bbs-waterfall) .ls-bbs-header-info {flex-direction:row-reverse;align-items:center;gap:24px;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-text {flex:1;}
html.ueng-skin .ls-bbs-page .ls-bbs-avatar {width:68px;height:68px;border-radius:22px;}
html.ueng-skin .ls-bbs-page .ls-bbs-title {font-size:28px;line-height:1.3;font-weight:700;letter-spacing:-.7px;margin-bottom:8px;}
html.ueng-skin .ls-bbs-page .ls-bbs-desc {font-size:14px;line-height:1.75;color:#737373;max-width:480px;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-right {border:0;padding:0;gap:16px;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-stats {gap:16px;}
html.ueng-skin .ls-bbs-page .ls-bbs-stat {gap:4px;}
html.ueng-skin .ls-bbs-page .ls-bbs-stat-num {font-size:13px;font-weight:500;color:#666;}
html.ueng-skin .ls-bbs-page .ls-bbs-stat-label {font-size:13px;color:#999;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-actions {gap:8px;}
html.ueng-skin .ls-bbs-page .ls-bbs-header-actions > :is(.ls-bbs-follow-btn,.ls-bbs-publish-btn) {min-width:88px;height:36px;font-size:13px;}
html.ueng-skin .ls-bbs-page .ls-bbs-body {margin-top:0;gap:0;}
html.ueng-skin .ls-bbs-page .ls-bbs-main {gap:0;}
html.ueng-skin .ls-bbs-page :is(.ls-bbs-nav,.ls-bbs-toolbar) {padding:0 30px 20px;}
html.ueng-skin .ls-bbs-page .ls-bbs-nav-list {margin-left:0;margin-right:0;}
html.ueng-skin .ls-bbs-page .ls-bbs-sub-nav:has(.ls-bbs-sub-nav-list:empty) {display:none;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice {margin:0 30px;padding:13px 0;min-height:44px;border-top:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0;gap:8px;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice-icon {width:20px;height:20px;font-size:14px;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice-text {color:#888;font-size:12px;}
html.ueng-skin .ls-bbs-page .ls-bbs-notice-tag {color:#666;font-weight:500;}
html.ueng-skin .ls-bbs-page .ls-bbs-post-list:has(.ueng-forum-post) {border-radius:0 0 24px 24px;background:transparent;}
html.ueng-skin .ls-bbs-page .ls-bbs-search {margin:0 30px 14px;}
html.ueng-skin .ls-bbs-page .ls-bbs-load-more {padding:20px 0;}
@media(max-width:600px) {
 html.ueng-skin .ls-bbs-page .ls-bbs-header-content {padding:26px 20px 22px;}
 html.ueng-skin .ls-bbs-page .ls-bbs-title {font-size:24px;}
 html.ueng-skin .ls-bbs-page .ls-bbs-avatar {width:58px;height:58px;border-radius:18px;}
 html.ueng-skin .ls-bbs-page :is(.ls-bbs-nav,.ls-bbs-toolbar) {padding:0 20px 18px;}
 html.ueng-skin .ls-bbs-page .ls-bbs-notice {margin:0 20px;}
}

/* Optional cover variant leaves the approved coverless layout untouched. */
html.ueng-skin.ueng-forum-cover .ls-bbs-page .ls-bbs-header-bg {display:block;height:160px;inset:0 0 auto;border-radius:26px 26px 0 0;background-position:center;background-size:cover;filter:none;}
html.ueng-skin.ueng-forum-cover .ls-bbs-page .ls-bbs-header-content {padding-top:186px;}
html.ueng-skin.ueng-forum-cover .ls-bbs-page .ls-bbs-header-overlay {display:none;}
@media(max-width:600px) {
 html.ueng-skin.ueng-forum-cover .ls-bbs-page .ls-bbs-header-bg {height:128px;}
 html.ueng-skin.ueng-forum-cover .ls-bbs-page .ls-bbs-header-content {padding-top:152px;}
}

/* Style two keeps the notice with the overview and separates the home-style menu. */
html.ueng-skin.ueng-forum-style-two .ls-bbs-page {background:transparent;}
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-header {background:var(--ls-card-bg,#fff);border-radius:26px;padding-bottom:4px;}
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-header > .ls-bbs-notice {position:relative;margin:0 30px;padding:14px 0 18px;border-bottom:0;}
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-body {margin-top:20px;}
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-main {gap:16px;}
html.ueng-skin.ueng-forum-style-two .ls-bbs-page :is(.ls-bbs-nav,.ls-bbs-toolbar) {padding:0;justify-content:center;}
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-nav-list {margin:0 auto;}
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-post-list:has(.ueng-forum-post) {border-radius:24px;background:var(--ls-card-bg,#fff);}
@media(max-width:600px) {
 html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-header > .ls-bbs-notice {margin:0 20px;}
}

/* Keep the notice in its native event-delegation container while visually joining it to the header. */
html.ueng-skin.ueng-forum-style-two .ls-bbs-page:has(.ls-bbs-notice) .ls-bbs-header {border-radius:26px 26px 0 0;padding-bottom:0;}
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-body {margin-top:0;}
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-main {gap:0;}
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-notice {margin:0;padding:14px 30px 18px;background:var(--ls-card-bg,#fff);border:0;border-radius:0 0 26px 26px;}
html.ueng-skin.ueng-forum-style-two .ls-bbs-page :is(.ls-bbs-nav,.ls-bbs-toolbar) {margin:20px 0 16px;}

/* Opt-in chat appearance. Native controls, message types and visibility states own behavior. */
html.ueng-skin.ueng-chat-v2:has(.ls-chat-app) {--lsc-primary:#191919;--lsc-primary-hover:#333;--lsc-primary-light:#eee;--lsc-primary-rgb:25,25,25;--lsc-bg:#fafafa;--lsc-bg-white:#fff;--lsc-text:#222;--lsc-text-sub:#666;--lsc-text-muted:#919191;--lsc-border:#eee;--lsc-border-light:#f4f4f4;--lsc-bubble-self:#222;--lsc-bubble-other:#f2f2f2;--lsc-bubble-other-text:#292929;--lsc-nav-w:64px;--lsc-sidebar-w:290px;--lsc-panel-w:300px;--lsc-shadow:none;--lsc-radius:16px;--lsc-radius-md:12px;--lsc-transition:var(--ueng-motion-duration) ease;}
html.ueng-skin.ueng-chat-v2 body.type-chat {background:#f5f5f5;}
html.ueng-skin.ueng-chat-v2 .ls-chat-app {top:24px;left:50%;transform:translateX(-50%);width:min(1280px,calc(100vw - 48px));height:calc(100dvh - 48px);border:1px solid #eaeaea;border-radius:24px;background:#fff;box-shadow:0 12px 44px rgba(0,0,0,.035);}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav {height:100%;padding:18px 0;background:#fafafa;border-color:#efefef;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list {gap:8px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list li {width:42px;height:42px;border-radius:14px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list li.ls-active {background:#222;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list li.ls-active a {color:#fff;}
html.ueng-skin.ueng-chat-v2 .ls-chat-sidebar {height:100%;background:#fff;border-color:#eee;}
html.ueng-skin.ueng-chat-v2 .ls-chat-sidebar-header {padding:24px 20px 16px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-sidebar-title h4 {font-size:21px;font-weight:650;letter-spacing:-.5px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-app a.ls-chat-action-btn {width:30px;height:30px;background:#f2f2f2;color:#666;border-radius:10px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-app a.ls-chat-action-btn:hover {background:#e9e9e9;color:#222;}
html.ueng-skin.ueng-chat-v2 .ls-chat-search {padding:0 16px 14px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-search-box {background:#f5f5f5;border:0;border-radius:12px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-search-box:focus-within {box-shadow:0 0 0 2px #ddd;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-list {padding:0 10px 14px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-item {margin-bottom:4px;padding:14px 12px;gap:12px;border:0;border-radius:14px;box-shadow:none;background:transparent;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-item:hover {background:#f7f7f7;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-item.ls-active {background:#eee;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-avatar > img {border-radius:50%;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-name {font-size:14px;font-weight:600;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-time {font-size:11px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-msg {font-size:12px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-main {background:#fff;min-width:0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-placeholder {background:#fff;}
html.ueng-skin.ueng-chat-v2 .ls-chat-placeholder-inner i {display:inline-flex;align-items:center;justify-content:center;width:88px;height:88px;border-radius:28px;background:#f5f5f5;color:#aaa;font-size:42px;opacity:1;margin-bottom:22px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-placeholder-inner h3 {font-size:22px;letter-spacing:-.4px;font-weight:600;}
html.ueng-skin.ueng-chat-v2 .ls-chat-placeholder-inner p {font-size:13px;color:#999;margin-top:10px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-header {padding:16px 26px;min-height:80px;border-color:#f1f1f1;background:var(--ueng-glass-bg,#fff);backdrop-filter:var(--ueng-glass-filter);}
html.ueng-skin.ueng-chat-v2 .ls-chat-header-name {font-size:16px;font-weight:650;}
html.ueng-skin.ueng-chat-v2 .ls-chat-header-btn {border-radius:12px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-messages {background:#fff;padding:24px 28px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-msg {margin-bottom:22px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-msg-bubble {padding:11px 16px;border-radius:18px 18px 18px 6px;font-size:14px;line-height:1.75;box-shadow:none;}
html.ueng-skin.ueng-chat-v2 .ls-chat-msg.ls-self .ls-chat-msg-bubble {border-radius:18px 18px 6px 18px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-msg-time {opacity:1;color:#aaa;font-size:10px;margin-top:3px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-input-area {border-top:1px solid #f3f3f3;padding:14px 24px 20px;background:#fff;}
html.ueng-skin.ueng-chat-v2 .ls-chat-editor {border-radius:16px;background:#f6f6f6;min-height:52px;padding:14px 16px;font-size:14px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-editor:focus {background:#f4f4f4;box-shadow:0 0 0 2px #e8e8e8;}
html.ueng-skin.ueng-chat-v2 .ls-chat-send-btn {min-height:36px;border-radius:999px;padding:8px 22px;font-weight:600;}
html.ueng-skin.ueng-chat-v2 .ls-chat-send-btn:hover:not(:disabled) {box-shadow:none;}
html.ueng-skin.ueng-chat-v2 .ls-chat-quote {border-left:2px solid #ccc;border-radius:10px;background:#f7f7f7;}
html.ueng-skin.ueng-chat-v2 .ls-chat-panel {position:absolute;right:0;top:0;bottom:0;z-index:25;background:var(--ueng-glass-bg,#fff);backdrop-filter:var(--ueng-glass-filter);box-shadow:-12px 0 32px rgba(0,0,0,.04);}
@media(max-width:1050px) {html.ueng-skin.ueng-chat-v2:has(.ls-chat-app) {--lsc-sidebar-w:250px;} html.ueng-skin.ueng-chat-v2 .ls-chat-app {top:12px;width:calc(100vw - 24px);height:calc(100dvh - 24px);border-radius:20px;} }
@media(max-width:760px) {html.ueng-skin.ueng-chat-v2:has(.ls-chat-app) {--lsc-sidebar-w:210px;--lsc-nav-w:52px;} html.ueng-skin.ueng-chat-v2 .ls-chat-messages {padding:18px 14px;} html.ueng-skin.ueng-chat-v2 .ls-chat-input-area {padding:12px;} }

/* Website-width chat workspace: a horizontal navigation row above two independent panes. */
html.ueng-skin.ueng-chat-v2 .ls-chat-app {width:min(var(--ueng-content-width),calc(100vw - 32px));top:20px;height:calc(100dvh - 40px);display:grid;grid-template-columns:minmax(190px,30%) minmax(0,1fr);grid-template-rows:64px minmax(0,1fr);border-radius:24px;box-shadow:0 10px 36px rgba(0,0,0,.035);}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav {grid-column:1 / -1;grid-row:1;width:100%;min-width:0;height:64px;flex-direction:row;gap:10px;padding:0 16px;background:#fff;border-right:0;border-bottom:1px solid #eee;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-menu {min-width:0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list {flex-direction:row;justify-content:flex-start;gap:4px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list li {height:36px;width:36px;border-radius:11px;flex-shrink:0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list li[data-tab] {width:auto;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list li[data-tab] a {display:flex;align-items:center;gap:7px;padding:0 12px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list li i {font-size:18px;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-nav-label {font-size:13px;font-weight:600;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-bottom {flex-direction:row;flex-shrink:0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-bottom img {width:30px;height:30px;border-radius:50%;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-list-toggle {display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex-shrink:0;border:0;border-radius:10px;background:#f5f5f5;color:#777;font-size:17px;cursor:pointer;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-list-toggle:hover {background:#eaeaea;color:#222;}
html.ueng-skin.ueng-chat-v2 .ls-chat-sidebar {grid-column:1;grid-row:2;width:auto;min-width:0;min-height:0;height:100%;background:#fcfcfc;}
html.ueng-skin.ueng-chat-v2 .ls-chat-sidebar-header {padding:22px 16px 12px;gap:8px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-sidebar-title h4 {font-size:17px;letter-spacing:0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-sidebar-actions {gap:4px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-app a.ls-chat-action-btn {width:26px;height:26px;font-size:14px;background:transparent;}
html.ueng-skin.ueng-chat-v2 .ls-chat-search {padding:0 12px 12px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-search-box {padding:8px 10px;border-radius:10px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-search-input {font-size:12px;min-width:0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-list {padding:0 8px 12px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-item {padding:12px 10px;gap:10px;border-radius:12px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-avatar {width:34px;height:34px;flex-shrink:0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-avatar > img {width:34px;height:34px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-name {font-size:13px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-time {font-size:10px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-item.ls-active {background:#ededed;}
html.ueng-skin.ueng-chat-v2 .ls-chat-main {grid-column:2;grid-row:2;min-height:0;min-width:0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-header {padding:14px 18px;min-height:68px;gap:10px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-header-user {min-width:0;gap:10px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-header-name {font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html.ueng-skin.ueng-chat-v2 .ls-chat-header-actions {gap:2px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-header-btn {width:29px;height:29px;font-size:16px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-messages {padding:20px 18px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-msg-body {max-width:82%;}
html.ueng-skin.ueng-chat-v2 .ls-chat-msg-bubble {padding:10px 14px;font-size:14px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-input-area {padding:12px 16px 16px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-editor {min-height:64px;max-height:140px;padding:12px 14px;border-radius:14px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-input-wrap {gap:8px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-input-bottom {gap:8px;flex-wrap:wrap;}
html.ueng-skin.ueng-chat-v2 .ls-chat-input-tools {gap:0;flex-wrap:wrap;}
html.ueng-skin.ueng-chat-v2 .ls-chat-tool-btn {width:29px;height:30px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-tool-btn i {font-size:17px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-send-btn {margin-left:auto;min-height:32px;padding:7px 16px;font-size:12px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-panel {top:64px;width:min(300px,calc(100% - 24px));min-width:0;border-left:1px solid #eee;}
html.ueng-skin.ueng-chat-v2 .ls-chat-placeholder-inner {padding:24px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-placeholder-inner i {width:72px;height:72px;border-radius:24px;font-size:34px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-placeholder-inner h3 {font-size:20px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-app.ueng-chat-list-collapsed {grid-template-columns:0 minmax(0,1fr);}
html.ueng-skin.ueng-chat-v2 .ueng-chat-list-collapsed .ls-chat-sidebar {visibility:hidden;pointer-events:none;border:0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-app :is(button,a,[contenteditable]):focus-visible {outline:2px solid #999;outline-offset:3px;}
@media(max-width:650px) {html.ueng-skin.ueng-chat-v2 .ls-chat-nav {padding:0 10px;gap:6px;} html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list li[data-tab] a {padding:0 8px;gap:5px;} }

html.ueng-skin.ueng-chat-v2 .ls-chat-app {transition:grid-template-columns var(--ueng-motion-duration) cubic-bezier(.32,.72,0,1);}
@media(prefers-reduced-motion:reduce) {html.ueng-skin.ueng-chat-v2 .ls-chat-app {transition:none;}}

html.ueng-skin.ueng-chat-v2 .ls-chat-app {grid-template-columns:30% minmax(0,1fr);}
html.ueng-skin.ueng-chat-v2 .ls-chat-app.ueng-chat-list-collapsed {grid-template-columns:0% minmax(0,1fr);}
html.ueng-skin.ueng-chat-v2 .ls-chat-editor:focus-visible {outline:none;box-shadow:0 0 0 2px #e8e8e8;}

/* Native website chrome surrounds the chat workspace; messages keep their own scrolling. */
html.ueng-skin.ueng-chat-v2 body.type-chat {overflow:auto;padding-top:var(--ls-header-height,68px);height:auto;min-height:100dvh;}
html.ueng-skin.ueng-chat-v2 body.type-chat .ls-chat-app {position:relative;left:auto;top:auto;transform:none;margin:20px auto 0;width:min(var(--ueng-content-width),calc(100vw - 32px));height:calc(100dvh - var(--ls-header-height,68px) - 110px);min-height:480px;z-index:1;grid-template-rows:76px minmax(0,1fr);}
html.ueng-skin.ueng-chat-v2 body.type-chat .ls-footer {display:block;position:relative;margin:18px auto 0;width:min(var(--ueng-content-width),calc(100% - 32px));background:transparent;}
html.ueng-skin.ueng-chat-v2 body.type-chat .ls-footer-bottom {padding:12px 0 20px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav {height:76px;padding:0 16px;gap:8px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-menu {display:flex;justify-content:center;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-bottom {display:none;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-utilities li:has(a[href="/"]) {display:none;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list.ueng-chat-tabs {--ueng-region-duration:var(--ueng-motion-duration);position:relative;isolation:isolate;display:flex;gap:4px;width:fit-content;max-width:100%;padding:4px!important;margin:0 auto;border:1px solid var(--ls-border);border-radius:14px;background:var(--ls-bg-hover);box-sizing:border-box;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-tabs li[data-tab] {position:relative;z-index:1;height:35px;min-height:35px;border:0;border-radius:10px;background:transparent;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list.ueng-chat-tabs li[data-tab] a {height:35px;gap:8px;padding:0 22px;font-size:14px;font-weight:600;color:var(--ls-text-secondary);}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list.ueng-chat-tabs li.ls-active a {color:var(--ls-text);}
html.ueng-skin.ueng-chat-v2 .ueng-chat-tabs .ueng-chat-nav-label {font-size:14px;font-weight:600;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-tabs li i {font-size:15px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-panel {top:76px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-sidebar-header {padding-top:18px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-header {min-height:64px;padding:12px 18px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-msg {margin-bottom:18px;}
@media(max-width:650px) {html.ueng-skin.ueng-chat-v2 .ls-chat-nav-list.ueng-chat-tabs li[data-tab] a {padding:0 12px;} }

html.ueng-skin.ueng-chat-v2 body.type-chat .ls-footer {padding:0;}
html.ueng-skin.ueng-chat-v2 body.type-chat .ls-footer-bottom-inner {padding-top:12px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav {position:relative;justify-content:flex-end;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-menu {position:absolute;left:50%;transform:translateX(-50%);}

html.ueng-skin.ueng-chat-v2 .ls-chat-app .ls-chat-editor:focus-visible {outline:none;box-shadow:0 0 0 2px #e8e8e8;}

/* Visually detach native tabs while retaining their navigation event delegation. */
html.ueng-skin.ueng-chat-v2 body.type-chat .ls-chat-app {margin-top:85px;overflow:visible;grid-template-rows:42px minmax(0,1fr);height:calc(100dvh - var(--ls-header-height,68px) - 175px);min-height:420px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav {height:42px;border-radius:24px 24px 0 0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav-menu {top:-65px;height:45px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-main {overflow:hidden;border-radius:0 0 24px 0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-sidebar {border-radius:0 0 0 24px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-panel {top:42px;border-radius:0 0 24px 0;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-list-collapsed .ls-chat-main {border-bottom-left-radius:24px;}

/* Balanced utility row: list control, native contextual search, settings. */
html.ueng-skin.ueng-chat-v2 body.type-chat .ls-chat-app {grid-template-rows:56px minmax(0,1fr);}
html.ueng-skin.ueng-chat-v2 .ls-chat-nav {height:56px;display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:16px;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-list-toggle {grid-column:1;grid-row:1;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-utilities {grid-column:3;grid-row:1;margin:0;padding:0;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-toolbar-search {grid-column:2;grid-row:1;width:min(100%,360px);justify-self:center;min-width:0;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-toolbar-search .ls-chat-search {padding:0;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-toolbar-search .ls-chat-search[hidden] {display:none!important;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-toolbar-search .ls-chat-search-box {height:34px;padding:0 12px;border-radius:10px;box-sizing:border-box;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-toolbar-search input {min-width:0;font-size:12px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-panel {top:56px;}

html.ueng-skin.ueng-chat-v2 .ueng-chat-native-search {display:none!important;}
html.ueng-skin.ueng-chat-v2 .ueng-chat-toolbar-search .ls-chat-search {margin:0;}

/* Equal side tracks center navigation at the page top; compact mode restores logo adjacency. */
@media (min-width:900px) {
  html.ueng-skin.ueng-capsule-enabled .ls-header-inner {display:grid;grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);column-gap:24px;align-items:center;}
  html.ueng-skin.ueng-capsule-enabled .ls-header-left {display:contents;}
  html.ueng-skin.ueng-capsule-enabled .ls-header-inner > .ls-header-right {justify-self:end;}
  html.ueng-skin.ueng-capsule-enabled .ls-header-left > .ls-logo {justify-self:start;}
  html.ueng-skin.ueng-capsule-enabled .ls-header-left > .ls-main-nav {justify-self:start;}
  html.ueng-skin.ueng-scrolled .ls-header-inner {grid-template-columns:max-content max-content minmax(0,1fr);column-gap:32px;}
}

/* Keep per-message timestamps, with compact messages and aligned session metadata. */
html.ueng-skin.ueng-chat-v2 .ls-chat-msg-time {display:block;}
html.ueng-skin.ueng-chat-v2 .ls-chat-msg {margin-bottom:8px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-msg-time-divider {display:none;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-item {align-items:center;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-avatar {width:40px;height:40px;flex:0 0 40px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-info {gap:2px;justify-content:center;min-height:40px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-top {min-height:20px;align-items:center;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-name {line-height:20px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-time {line-height:20px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-bottom {min-height:18px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-session-msg {line-height:18px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-settings-item {gap:16px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-settings-left {flex:1;min-width:0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-settings-select {width:144px;min-width:144px;max-width:144px;flex:0 0 144px;height:36px;box-sizing:border-box;}

/* No unsolicited profile panel, even before native async initialization finishes. */
html.ueng-skin.ueng-chat-v2 .ls-chat-app:not(.ueng-chat-panel-allowed) .ls-chat-panel {display:none!important;}
html.ueng-skin.ueng-chat-v2 .ls-chat-header-btn[data-action="info"] {display:none;}
html.ueng-skin.ueng-chat-v2 .ls-chat-header-user {cursor:default;}
html.ueng-skin.ueng-chat-v2 .ls-chat-header-user .ls-avatar {cursor:pointer;}

/* Fade independent surfaces; do not translate a live backdrop-filter layer. */
html.ueng-skin .ls-search-modal {opacity:1;transition-property:visibility;transition-delay:var(--ueng-motion-duration);}
html.ueng-skin .ls-search-modal.active {transition-delay:0s;}
html.ueng-skin .ls-search-modal .ls-search-container,
html.ueng-skin .ls-search-modal.active .ls-search-container {transform:none;transition:opacity var(--ueng-motion-duration) cubic-bezier(.32,.72,0,1);}
html.ueng-skin .ls-search-modal .ls-search-container,
html.ueng-skin .ls-search-modal .ls-search-backdrop {opacity:0;}
html.ueng-skin .ls-search-modal .ls-search-backdrop {transition:opacity var(--ueng-motion-duration) ease;}
html.ueng-skin .ls-search-modal.active .ls-search-container,
html.ueng-skin .ls-search-modal.active .ls-search-backdrop {opacity:1;}
/* A single rail unfolds around a reserved return slot, so other icons stay still. */
html.ueng-skin #lsFloatMenu .ls-float-menu__list {position:relative;isolation:isolate;background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}
html.ueng-skin #lsFloatMenu .ls-float-menu__list::before {content:'';position:absolute;inset:0;z-index:-1;border-radius:24px;background:var(--ueng-glass-bg,var(--ls-card-bg));backdrop-filter:var(--ueng-glass-filter,none);-webkit-backdrop-filter:var(--ueng-glass-filter,none);border:1px solid var(--ls-border);bottom:39px;transition:bottom var(--ueng-motion-duration) cubic-bezier(.32,.72,0,1);pointer-events:none;}
html.ueng-skin.ueng-backtop-visible #lsFloatMenu .ls-float-menu__list::before {bottom:0;}
html.ueng-skin #lsFloatMenu .ls-float-menu__item[data-action="top"] {position:relative;width:36px;height:36px;margin:0;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(14px) scale(.7);transform-origin:center;transition:opacity var(--ueng-motion-duration) ease,transform var(--ueng-motion-duration) cubic-bezier(.32,.72,0,1),visibility var(--ueng-motion-duration);}
html.ueng-skin #lsFloatMenu .ls-float-menu__item[data-action="top"] a {width:36px;height:36px;border-radius:50%;}
html.ueng-skin.ueng-backtop-visible #lsFloatMenu .ls-float-menu__item[data-action="top"] {opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1);transition-timing-function:ease,cubic-bezier(.34,1.56,.64,1),linear;transition-delay:calc(var(--ueng-motion-duration) * .12);}
/* Balances share the quiet typographic hierarchy of profile statistics. */
html.ueng-skin .ls-hd-dropdown-user .ls-assets-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 0 12px;}
html.ueng-skin .ls-hd-dropdown-user .ls-asset-box {display:flex;justify-content:center;align-items:center;min-width:0;padding:10px 2px;border-radius:12px;}
html.ueng-skin .ls-hd-dropdown-user .ls-asset-box > :is(i,img) {display:none;}
html.ueng-skin .ls-hd-dropdown-user .ls-asset-info {display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;}
html.ueng-skin .ls-hd-dropdown-user .ls-asset-num {line-height:24px;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;text-align:center;}
html.ueng-skin .ls-hd-dropdown-user .ls-asset-label {line-height:18px;font-size:12px;text-align:center;color:var(--ls-text-muted);}
@media(prefers-reduced-motion:reduce) {html.ueng-skin #lsFloatMenu .ls-float-menu__list::before {transition:none!important;} }
@media(prefers-reduced-motion:reduce) {
 html.ueng-skin #lsFloatMenu .ls-float-menu__item[data-action="top"],html.ueng-skin .ls-search-modal,html.ueng-skin .ls-search-modal .ls-search-backdrop,html.ueng-skin .ls-search-modal .ls-search-container {transition:none!important;transition-delay:0s!important;}
}

/* Personal tools share the site's reading width and restrained surfaces. */
html.ueng-skin :is(.ls-cc-page,.ls-favorites-page,.ls-view-history-page) {width:min(var(--ueng-content-width),calc(100% - 32px));max-width:none;margin:28px auto;padding:0;}
html.ueng-skin body:has(:is(.ls-cc-page,.ls-favorites-page,.ls-view-history-page)) {background:#fafafa;}
html.ueng-skin .ls-cc-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:20px;}
html.ueng-skin .ls-cc-stat-card {padding:14px 10px;gap:10px;border:1px solid transparent;border-radius:14px;box-shadow:none;background:#f2f2f2;min-width:0;}
html.ueng-skin .ls-cc-stat-card.active {border-color:#e4e4e4;background:#fff;box-shadow:0 2px 6px #00000006;}
html.ueng-skin .ls-cc-stat-icon {width:28px;height:28px;background:transparent!important;color:#777!important;font-size:19px;}
html.ueng-skin .ls-cc-stat-number {font-size:21px;line-height:26px;color:#222;}
html.ueng-skin .ls-cc-stat-label {font-size:11px;color:#888;}
html.ueng-skin .ls-cc-tabs-card {border:1px solid #ececec;border-radius:22px;box-shadow:none;overflow:hidden;}
html.ueng-skin .ls-cc-toolbar {padding:18px;gap:10px;flex-wrap:wrap;}
html.ueng-skin .ls-cc-search {min-width:140px;flex:1;background:#f5f5f5;border:0;border-radius:10px;}
html.ueng-skin .ls-cc-filter-select {background:#f5f5f5;border:0;border-radius:10px;max-width:120px;}
html.ueng-skin .ls-cc-btn {border-color:#eee;border-radius:10px;font-size:12px;}
html.ueng-skin .ls-cc-item {padding:20px;gap:14px;border-color:#f0f0f0;}
html.ueng-skin .ls-cc-item-cover {width:70px;height:70px;border-radius:12px;flex:0 0 70px;}
html.ueng-skin .ls-cc-item-title {font-size:15px;line-height:1.6;}
html.ueng-skin .ls-cc-item-desc {font-size:12px;color:#999;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
html.ueng-skin :is(.ls-cc-item-meta,.ls-cc-item-stats) {font-size:11px;color:#999;gap:8px;}
html.ueng-skin .ls-cc-item-actions {gap:5px;}
html.ueng-skin .ls-cc-action-btn {width:28px;height:28px;border:0;border-radius:8px;background:#f5f5f5;font-size:14px;}
html.ueng-skin :is(.ls-favorites-hero,.ls-view-history-hero) {padding:8px 0 24px;background:transparent;border:0;box-shadow:none;gap:16px;}
html.ueng-skin :is(.ls-favorites-icon,.ls-view-history-icon) {display:none;}
html.ueng-skin :is(.ls-favorites-hero,.ls-view-history-hero) h1 {font-size:26px;letter-spacing:-.5px;}
html.ueng-skin :is(.ls-favorites-hero,.ls-view-history-hero) p {font-size:12px;line-height:1.7;color:#999;max-width:410px;}
html.ueng-skin :is(.ls-favorites-create,.ls-view-history-clear) {border:1px solid #e9e9e9;border-radius:999px;background:#fff;font-size:12px;padding:9px 14px;white-space:nowrap;}
html.ueng-skin .ls-favorites-shell {display:flex;flex-direction:column;border:1px solid #ececec;border-radius:22px;overflow:hidden;background:#fff;min-height:400px;}
html.ueng-skin .ls-favorites-sidebar {width:auto;min-width:0;border:0;border-bottom:1px solid #f0f0f0;padding:16px;background:#fff;}
html.ueng-skin .ls-favorites-sidebar-head {display:none;}
html.ueng-skin .ls-favorites-folder-list {display:flex;gap:8px;overflow-x:auto;}
html.ueng-skin .ls-favorites-folder-row {flex:0 0 auto;}
html.ueng-skin .ls-favorites-folder-item {padding:8px 12px;gap:8px;border:1px solid transparent;border-radius:12px;background:transparent;font-size:13px;}
html.ueng-skin .ls-favorites-folder-item.is-active {background:#f1f1f1;border-color:transparent;color:#222;}
html.ueng-skin .ls-favorites-folder-icon {background:transparent;width:20px;height:24px;font-size:18px;}
html.ueng-skin .ls-favorites-toolbar {padding:20px 22px;border-color:#f0f0f0;}
html.ueng-skin .ls-favorites-current-name {font-size:16px;}
html.ueng-skin .ls-favorites-current-desc {font-size:12px;color:#999;}
html.ueng-skin .ls-favorites-current-count {background:#f3f3f3;}
html.ueng-skin .ls-favorites-post-list {border:0;border-radius:0;padding:0 20px;}
html.ueng-skin .ls-favorites-post-list .ls-empty {min-height:230px;padding:60px 20px;background:transparent;border:0;}
html.ueng-skin .ls-view-history-panel {border:1px solid #ececec;border-radius:22px;overflow:hidden;background:#fff;}
html.ueng-skin .ls-view-history-toolbar {padding:18px 22px;border-color:#f0f0f0;gap:12px;flex-wrap:wrap;}
html.ueng-skin .ls-view-history-count {font-size:15px;}
html.ueng-skin .ls-view-history-total {background:#f3f3f3;}
html.ueng-skin .ls-view-history-tip {font-size:11px;color:#aaa;}
html.ueng-skin .ls-view-history-list {display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0 20px;}
html.ueng-skin .ls-view-history-item {border:0;border-bottom:1px solid #f0f0f0;border-radius:0;padding:18px 0;gap:16px;background:transparent;box-shadow:none;}
html.ueng-skin .ls-view-history-item:hover {transform:none;background:#fafafa;box-shadow:none;}
html.ueng-skin .ls-view-history-cover {width:104px;height:76px;flex:0 0 104px;border-radius:12px;background:#f3f3f3;}
html.ueng-skin .ls-view-history-type {background:rgba(255,255,255,.9);color:#666;font-size:10px;padding:3px 5px;border-radius:5px;}
html.ueng-skin .ls-view-history-summary {font-size:14px;line-height:1.6;}
html.ueng-skin .ls-view-history-meta {font-size:11px;color:#999;}
html.ueng-skin.ueng-chat-v2 .ls-chat-editor-row {align-items:flex-end;gap:10px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-voice-btn {width:36px;height:36px;flex:0 0 36px;margin-bottom:7px;background:#f2f2f2;border:0;border-radius:12px;color:#777;display:flex;align-items:center;justify-content:center;}
html.ueng-skin.ueng-chat-v2 .ls-chat-voice-btn:hover {background:#e9e9e9;color:#222;}
html.ueng-skin.ueng-chat-v2 .ls-chat-app .ls-chat-editor {min-height:50px;padding:14px 16px;border-radius:16px;background:#f5f5f5;font-size:13px;line-height:22px;box-sizing:border-box;}
html.ueng-skin .ueng-compose-more summary {width:auto;min-width:32px;padding:0 8px;border-radius:999px;}
html.ueng-skin .ueng-compose-more summary .ueng-tool-label {width:0;opacity:0;margin-left:0;overflow:hidden;white-space:nowrap;font-size:12px;transition:width var(--ueng-motion-duration) cubic-bezier(.32,.72,0,1),margin-left var(--ueng-motion-duration) cubic-bezier(.32,.72,0,1),opacity var(--ueng-motion-duration) ease;}
html.ueng-skin.ueng-tool-labels .ueng-compose-more summary:is(:hover,:focus-visible) {background:var(--ls-bg-hover);}
html.ueng-skin.ueng-tool-labels .ueng-compose-more summary:is(:hover,:focus-visible) .ueng-tool-label {width:24px;opacity:1;margin-left:6px;}
@media(max-width:650px) {html.ueng-skin .ls-cc-stats {grid-template-columns:repeat(2,minmax(0,1fr));} html.ueng-skin :is(.ls-favorites-hero,.ls-view-history-hero) {flex-wrap:wrap;} }

html.ueng-skin .ls-favorites-sidebar {min-height:0;}
html.ueng-skin .ls-favorites-folder-list {flex-direction:row;}
html.ueng-skin .ls-favorites-folder-item {width:auto;min-width:130px;}
html.ueng-skin .ls-favorites-panel,html.ueng-skin .ls-favorites-post-list {min-height:0;}
html.ueng-skin .ls-favorites-post-list .ls-empty {height:230px;min-height:230px;box-sizing:border-box;}

/* Compact, aligned chat composer with quiet focus feedback. */
html.ueng-skin.ueng-chat-v2 .ls-chat-input-area {padding:12px 16px 14px;border-top-color:#f0f0f0;}
html.ueng-skin.ueng-chat-v2 .ls-chat-editor-row {align-items:flex-end;gap:8px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-voice-btn {width:44px;height:44px;flex-basis:44px;margin:0;border-radius:14px;background:#f5f5f5;transition:background-color var(--ueng-motion-duration),color var(--ueng-motion-duration);}
html.ueng-skin.ueng-chat-v2 .ls-chat-voice-btn i {font-size:20px;line-height:1;}
html.ueng-skin.ueng-chat-v2 .ls-chat-app .ls-chat-editor {min-height:44px;padding:11px 15px;line-height:22px;border-radius:14px;background:#f5f5f5;transition:background-color var(--ueng-motion-duration),box-shadow var(--ueng-motion-duration);}
html.ueng-skin.ueng-chat-v2 .ls-chat-app .ls-chat-editor:focus {background:#f8f8f8;box-shadow:inset 0 0 0 1px #e8e8e8;outline:none;}
html.ueng-skin.ueng-chat-v2 .ls-chat-input-bottom {display:flex;align-items:center;justify-content:space-between;margin-top:10px;gap:10px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-input-tools {display:flex;align-items:center;gap:3px;}
html.ueng-skin.ueng-chat-v2 .ls-chat-tool-btn {display:flex;align-items:center;justify-content:center;width:28px;height:30px;padding:0;border:0;border-radius:9px;background:transparent;color:#909090;transition:background-color var(--ueng-motion-duration),color var(--ueng-motion-duration);}
html.ueng-skin.ueng-chat-v2 .ls-chat-tool-btn i {font-size:17px;line-height:1;}
html.ueng-skin.ueng-chat-v2 .ls-chat-tool-btn:hover {background:#f2f2f2;color:#333;}
html.ueng-skin.ueng-chat-v2 .ls-chat-send-btn {height:32px;min-height:32px;min-width:64px;padding:0 17px;border-radius:999px;font-size:12px;line-height:32px;box-shadow:none;}

html.ueng-skin.ueng-chat-v2 .ls-chat-editor-row .ls-chat-voice-btn {width:44px;height:44px;flex:0 0 44px;margin:0;border-radius:14px;background:#f5f5f5;}
html.ueng-skin.ueng-chat-v2 .ls-chat-editor-row .ls-chat-voice-btn i {font-size:20px;}

/* Content filters share a single control height and an explicit select affordance. */
html.ueng-skin .ls-cc-toolbar {align-items:center;}
html.ueng-skin .ls-cc-toolbar :is(.ls-cc-filter-select,.ls-cc-search,.ls-cc-btn) {height:36px;min-height:36px;box-sizing:border-box;border-radius:10px;}
html.ueng-skin .ls-cc-toolbar .ls-cc-filter-select {appearance:none;-webkit-appearance:none;padding:0 30px 0 12px;min-width:112px;line-height:normal;background-color:#f5f5f5;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m4 5 3 3 3-3' fill='none' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;}
html.ueng-skin .ls-cc-toolbar .ls-cc-search {display:flex;align-items:center;padding:0 10px;}
html.ueng-skin .ls-cc-toolbar .ls-cc-search input {height:100%;min-height:0;padding-top:0;padding-bottom:0;box-sizing:border-box;}
html.ueng-skin .ls-cc-toolbar .ls-cc-search-btn {height:34px;width:30px;padding:0;display:flex;align-items:center;justify-content:center;}
html.ueng-skin .ls-cc-toolbar .ls-cc-btn {display:inline-flex;align-items:center;justify-content:center;padding:0 12px;line-height:1;}

html.ueng-skin .ls-cc-toolbar .ls-cc-search {background:#f5f5f5;border:0;padding:0 10px 0 12px;overflow:hidden;}
html.ueng-skin .ls-cc-toolbar .ls-cc-search input {background:transparent!important;border:0!important;box-shadow:none!important;outline:none;min-width:0;width:100%;flex:1;margin:0;padding:0!important;border-radius:0;height:36px;line-height:36px;}
html.ueng-skin .ls-cc-toolbar .ls-cc-search-btn {flex:0 0 30px;position:static;transform:none;margin:0;background:transparent;border:0;}

/* Header popovers: content-sized lists and a compact, shared density. */
html.ueng-skin :is(.ls-hd-dropdown-messages,.ls-hd-dropdown-notifications) {width:320px;min-width:0;max-width:calc(100vw - 24px);border-radius:20px;}
html.ueng-skin :is(.ls-hd-dropdown-messages,.ls-hd-dropdown-notifications) .ls-hd-dropdown-header {padding:12px 14px;}
html.ueng-skin :is(.ls-hd-dropdown-messages,.ls-hd-dropdown-notifications) .ls-hd-dropdown-header span {font-size:14px;}
html.ueng-skin :is(.ls-hd-dropdown-messages,.ls-hd-dropdown-notifications) .ls-hd-dropdown-footer {padding:10px 14px;font-size:12px;}
html.ueng-skin :is(.ls-message-list,.ls-notify-list) {min-height:0;max-height:280px;}
html.ueng-skin :is(.ls-msg-empty,.ls-notify-empty) {height:136px;min-height:0;padding:24px 16px;gap:12px;box-sizing:border-box;}
html.ueng-skin :is(.ls-msg-empty,.ls-notify-empty) i {font-size:32px;line-height:1;}
html.ueng-skin :is(.ls-msg-empty,.ls-notify-empty) span {font-size:12px;}
html.ueng-skin .ls-message-item {padding:11px 14px;gap:10px;align-items:center;}
html.ueng-skin .ls-msg-avatar {width:36px;height:36px;border-radius:12px;}
html.ueng-skin .ls-msg-name {font-size:13px;line-height:20px;}
html.ueng-skin .ls-msg-time {font-size:10px;}
html.ueng-skin .ls-msg-text {font-size:12px;line-height:18px;margin-top:2px;}
html.ueng-skin .ls-notify-tabs {padding:6px 10px;gap:2px;background:transparent;}
html.ueng-skin .ls-notify-tabs .ls-tab {padding:7px 4px;gap:4px;}
html.ueng-skin .ls-notify-tabs .ls-tab i {font-size:16px;}
html.ueng-skin .ls-notify-tabs .ls-tab span {font-size:11px;}
html.ueng-skin .ls-hd-dropdown-user {width:320px;min-width:320px;border-radius:20px;}
html.ueng-skin .ls-hd-dropdown-user .ls-user-header {padding:16px 16px 10px;gap:10px;}
html.ueng-skin .ls-hd-dropdown-user .ls-user-header .ls-avatar {width:40px;height:40px;}
html.ueng-skin .ls-hd-dropdown-user .ls-user-name {font-size:15px;}
html.ueng-skin .ls-hd-dropdown-user .ls-exp-row {margin:0 16px 8px;padding:0;}
html.ueng-skin .ls-hd-dropdown-user .ls-stat-box {padding:5px 0 9px;}
html.ueng-skin .ls-hd-dropdown-user .ls-vip-entry {margin:0 14px 6px;padding:8px 10px;}
html.ueng-skin .ls-hd-dropdown-user .ls-assets-grid {margin:0 16px;padding:2px 0 8px;}
html.ueng-skin .ls-hd-dropdown-user .ls-asset-box {padding:6px 2px;}
html.ueng-skin .ls-hd-dropdown-user .ls-asset-info {gap:3px;}
html.ueng-skin .ls-hd-dropdown-user .ls-asset-num {font-size:16px;line-height:22px;}
html.ueng-skin .ls-hd-dropdown-user .ls-user-menu {padding:6px 10px 10px;gap:2px;}
html.ueng-skin .ls-hd-dropdown-user .ls-menu-item {min-height:34px;padding:7px 8px;font-size:13px;gap:8px;}
html.ueng-skin .ls-hd-dropdown-user .ls-menu-item > i {font-size:17px;}

html.ueng-skin .ls-hd-dropdown-user .ls-user-header .ls-avatar {flex:0 0 40px;}
html.ueng-skin .ls-hd-dropdown-user .ls-user-header .ls-avatar > img {width:40px;height:40px;object-fit:cover;}

/* The native full notification viewer shares the site's glass and timing. */
html.ueng-skin .lsnp-overlay {--ueng-region-duration:var(--ueng-popupMotionDuration);background:rgba(20,20,20,.24);transition-duration:var(--ueng-popupMotionDuration,var(--ueng-motion-duration));}
html.ueng-skin .lsnp-popup {width:min(460px,var(--ueng-content-width));height:min(420px,75dvh);min-height:0;max-height:calc(100dvh - 40px);border:1px solid var(--ls-border);border-radius:22px;background:var(--ueng-glass-bg,#fff);backdrop-filter:var(--ueng-glass-filter,none);-webkit-backdrop-filter:var(--ueng-glass-filter,none);box-shadow:0 18px 60px #00000014;transition-duration:var(--ueng-popupMotionDuration,var(--ueng-motion-duration));}
html.ueng-skin .lsnp-header {padding:16px 18px 0;}
html.ueng-skin .lsnp-title {font-size:16px;color:var(--ls-text);}
html.ueng-skin .lsnp-tabs {margin:14px 16px 0;padding:4px;gap:3px;border-radius:12px;background:#f1f1f1;}
html.ueng-skin .lsnp-tab {flex:1;justify-content:center;font-size:12px;padding:7px 8px;border-radius:9px;color:#777;}
html.ueng-skin .lsnp-tab.active {background:#fff;color:#222;box-shadow:0 1px 3px #0000000a;}
html.ueng-skin .lsnp-read-all:hover {color:#222;background:#eee;}
html.ueng-skin .lsnp-divider {margin:14px 18px 0;}
html.ueng-skin .lsnp-body {padding:12px;}
@media(prefers-reduced-motion:reduce) {html.ueng-skin :is(.lsnp-overlay,.lsnp-popup) {transition:none!important;} }

html.ueng-skin .ls-hd-dropdown-user {width:300px;min-width:300px;}

/* Native site chrome around the detail player. */
html.ueng-skin.ueng-video-v2 body.route-video { height:auto;min-height:100vh;overflow-y:auto; }
html.ueng-skin.ueng-video-v2 .ueng-detail-video-heading { position:relative;inset:auto;width:min(var(--ueng-content-width),calc(100% - 40px));margin:28px auto 18px;padding:0; }
html.ueng-skin.ueng-video-v2 .ueng-detail-video-heading h1 { font-size:24px;line-height:1.4; }
html.ueng-skin.ueng-video-v2 .ueng-detail-video-heading p { font-size:13px; }
html.ueng-skin.ueng-video-v2 .vd-main { position:relative;inset:auto;width:min(var(--ueng-content-width),calc(100% - 40px));height:clamp(540px,calc(100dvh - 190px),820px);margin:0 auto 32px;border-radius:20px;overflow:hidden; }
html.ueng-skin.ueng-video-v2 .vd-main .vd-toolbar-left { position:absolute;left:14px;top:14px; }
html.ueng-skin.ueng-video-v2 .vd-action-bar { gap:12px; }
html.ueng-skin.ueng-video-v2 .vd-action-icon { width:42px;height:42px; }
html.ueng-skin.ueng-video-v2 .vd-action-icon i { font-size:25px; }
html.ueng-skin.ueng-video-v2 .vd-action-num { font-size:12px; }
html.ueng-skin.ueng-video-v2 .vd-info-meta { color:rgba(255,255,255,.8);font-size:12px; }

/* Keep the detail player chrome icon-only. */
html.ueng-skin.ueng-video-v2 .ueng-detail-video-heading,
html.ueng-skin.ueng-video-v2 .vd-action-num { display:none !important; }
html.ueng-skin.ueng-video-v2 .vd-main { margin-top:24px; }

/* Keep the document stable; only asynchronously mounted content fades slightly. */
@view-transition { navigation:none; }
html.ueng-skin .ueng-page-enter { animation:ueng-page-reveal var(--ueng-motion-duration,300ms) ease-out; }
@keyframes ueng-page-reveal { from { opacity:.92; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) {
  html.ueng-skin .ueng-page-enter { animation:none !important; }
}

/* One subtle boundary for content surfaces, not nested rows or controls. */
html.ueng-skin :is(
 .ls-card:not(.ls-card .ls-card),.ls-recommend,.ls-post-list,
 .ls-article-card,.ls-bbs-post-list,.ls-chat-app,
 .ls-cc-tabs-card,.ls-favorites-shell,.ls-view-history-panel,
 .ls-task-hero
) { border:1px solid var(--ls-border,#e5e7eb) !important; }
html.ueng-skin .ls-recommend { box-shadow:none; }

/* Match the recommendation shell to the composer and feed shell. */
html.ueng-skin .ls-recommend { border-radius:20px; }

/* Shared outer surface radius; joined forum sections keep square seams. */
html.ueng-skin { --ueng-surface-radius:20px; }
html.ueng-skin :is(.ls-card:not(.ls-card .ls-card),.ls-recommend,.ls-post-list,.ls-article-card,.ls-cc-tabs-card,.ls-favorites-shell,.ls-view-history-panel) { border-radius:var(--ueng-surface-radius) !important; }
html.ueng-skin.ueng-chat-v2 .ls-chat-app,
html.ueng-skin.ueng-task-v2 :is(.ls-task-hero,.ls-task-sec,.ls-task-card),
html.ueng-skin .ls-bbs-page { border-radius:var(--ueng-surface-radius) !important; }
html.ueng-skin .ls-bbs-page .ls-bbs-post-list:has(.ueng-forum-post) { border-radius:0 0 var(--ueng-surface-radius) var(--ueng-surface-radius) !important; }
html.ueng-skin.ueng-forum-style-two .ls-bbs-page :is(.ls-bbs-header,.ls-bbs-post-list:has(.ueng-forum-post)) { border-radius:var(--ueng-surface-radius) !important; }
html.ueng-skin.ueng-forum-style-two .ls-bbs-page:has(.ls-bbs-notice) .ls-bbs-header,
html.ueng-skin.ueng-forum-cover .ls-bbs-page .ls-bbs-header-bg { border-radius:var(--ueng-surface-radius) var(--ueng-surface-radius) 0 0 !important; }
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-notice { border-radius:0 0 var(--ueng-surface-radius) var(--ueng-surface-radius) !important; }

/* Complete surface audit: use the same edge on floating and secondary panels. */
html.ueng-skin :is(.ls-hd-dropdown,.ls-dropdown,.ls-dialog,.ls-modal-content,.ls-search-container,.ls-login-panel,.ls-login-prefix-dropdown,.ls-emoji-panel,.ls-at-modal,.ls-grant,.ls-now-toast,.ls-screen-loading-box,.ls-redbag-user-picker-dropdown,.ls-transfer-user-dropdown,.ls-cc-reject-modal,.ls-cc-confirm-modal,.ls-cc-stat-card,.lsnp-popup,.ueng-compose-more-panel,.ueng-video-comments,.vd-right) {
 border:1px solid var(--ls-border,#e5e7eb) !important;
}
html.ueng-skin:not(.ueng-forum-style-two) .ls-bbs-page { border:1px solid var(--ls-border,#e5e7eb); }
html.ueng-skin:not(.ueng-forum-style-two) .ls-bbs-page .ls-bbs-post-list { border:0 !important; }
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-header,
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-notice { border:1px solid var(--ls-border,#e5e7eb) !important; }
html.ueng-skin.ueng-forum-style-two .ls-bbs-page:has(.ls-bbs-notice) .ls-bbs-header { border-bottom:0 !important; }
html.ueng-skin.ueng-forum-style-two .ls-bbs-page .ls-bbs-notice { border-top:0 !important; }
html.ueng-skin .ls-favorites-shell .ls-favorites-post-list { border:0 !important; border-radius:0 !important; }

/* Profile metadata is the lower half of the identity card. */
html.ueng-skin .ls-author-page .ls-author-hero { border-bottom:0 !important; border-radius:var(--ueng-surface-radius,20px) var(--ueng-surface-radius,20px) 0 0 !important; }
html.ueng-skin .ls-author-page .ls-card.ls-author-about { border-top:0 !important; border-radius:0 0 var(--ueng-surface-radius,20px) var(--ueng-surface-radius,20px) !important; }

/* Avatar follow presentation delegates the operation to LS.follow. */
html.ueng-skin.ueng-follow-threads [class*="follow-user-"]:not(.ueng-avatar-follow),
html.ueng-skin.ueng-follow-threads :is(.vd-avatar-follow-btn,.ls-vf-avatar-follow) { display:none !important; }
html.ueng-skin .ueng-follow-anchor { position:relative;overflow:visible; }
html.ueng-skin .ueng-avatar-follow { position:absolute;right:-5px;bottom:-5px;z-index:3;width:22px!important;height:22px;padding:0;border:2px solid var(--ls-card-bg,#fff);border-radius:50%;background:#171717;color:#fff;font-size:0;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box; }
html.ueng-skin .ueng-avatar-follow::after { content:'+';font:400 20px/1 Arial,sans-serif; }
html.ueng-skin .ueng-avatar-follow[hidden] { display:none!important; }
html.ueng-skin .ueng-avatar-follow[data-loading="1"] { cursor:wait; }
html.ueng-skin .ueng-avatar-follow:focus-visible { outline:2px solid var(--ls-text,#222);outline-offset:2px; }

/* Keep the native unfollow action in the profile identity header. */
html.ueng-skin.ueng-follow-threads .ls-author-hero .ls-author-follow-btn:is(.had,.followed) { display:inline-flex !important; }

/* Scale the follow badge for the profile avatar and overlap its circular edge. */
html.ueng-skin .ls-author-hero .ls-avatar-2xl > .ueng-avatar-follow { width:28px!important;height:28px;right:0;bottom:0;border-width:2px; }
html.ueng-skin .ls-author-hero .ls-avatar-2xl > .ueng-avatar-follow::after { font-size:24px; }

/* Native follow injects a spinner; keep the avatar badge stable while pending. */
html.ueng-skin .ueng-avatar-follow > * { display:none!important; }
html.ueng-skin .ueng-avatar-follow { transition:opacity var(--ueng-motion-duration,300ms) ease; }
html.ueng-skin .ueng-avatar-follow[data-loading="1"] { opacity:.65!important; }

/* The footer is outside the feed: disable document anchoring so pagination does not follow it downward. */
html.ueng-skin:has(.ls-sns-page) { overflow-anchor:none; }

/* Align forum author metadata with the avatar before the title begins. */
html.ueng-skin .ueng-forum-post .ueng-forum-byline { min-height:40px;margin-bottom:8px;align-items:center; }


html.ueng-skin .ls-bbs-page .ueng-forum-post .ls-bbs-post-title a.ueng-forum-duplicate-title { display:none; }

/* Forum cards share the native home feed; tags occupy the footer trailing slot. */
html.ueng-skin .ls-bbs-page .ls-bbs-post-list:has(> .ls-post-item) { background:transparent;border:0!important;overflow:visible; }
html.ueng-skin .ls-bbs-post-list > .ls-post-item { border:1px solid var(--ls-border,#e5e7eb);border-radius:var(--ueng-surface-radius,20px);margin-bottom:16px; }
html.ueng-skin .ls-bbs-post-list > .ls-post-item .ls-post-footer > .ls-board-link { display:none; }
html.ueng-skin .ls-bbs-post-list > .ls-post-item .ls-post-footer > .ls-post-tags { order:3;margin:0 0 0 auto;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px; }

/* Native poster preview: compact chrome, full uncropped artwork, shared timing. */
html.ueng-skin .ls-poster-overlay { padding:24px 16px;background:rgba(20,20,20,.32);backdrop-filter:var(--ueng-glass-filter); }
html.ueng-skin .ls-poster-dialog { width:min(420px,100%);max-width:420px;max-height:calc(100dvh - 48px);border:1px solid var(--ls-border,#e5e7eb);border-radius:var(--ueng-surface-radius,20px);overflow:hidden;box-shadow:0 20px 65px rgba(0,0,0,.16);animation-duration:var(--ueng-motion-duration,300ms); }
html.ueng-skin .ls-poster-header { padding:14px 18px;color:var(--ls-text,#222);font-size:15px;min-height:52px;box-sizing:border-box; }
html.ueng-skin .ls-poster-close { width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:19px;background:var(--ls-bg,#f5f5f5);transition:color var(--ueng-motion-duration,300ms),background var(--ueng-motion-duration,300ms); }
html.ueng-skin .ls-poster-body { padding:14px 18px;background:var(--ls-bg,#f7f7f7); }
html.ueng-skin .ls-poster-body img { width:auto;max-width:100%;max-height:calc(100dvh - 206px);height:auto;object-fit:contain;border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.04); }
html.ueng-skin .ls-poster-footer { padding:12px 18px;border-top:1px solid var(--ls-border,#e5e7eb); }
html.ueng-skin .ls-poster-save { min-height:40px;padding:0 18px;box-sizing:border-box;border-radius:999px;font-size:14px;font-weight:600;transition:opacity var(--ueng-motion-duration,300ms); }
html.ueng-skin .ls-poster-generating { border:1px solid var(--ls-border,#e5e7eb);border-radius:var(--ueng-surface-radius,20px);animation-duration:var(--ueng-motion-duration,300ms); }
@media(prefers-reduced-motion:reduce) { html.ueng-skin .ls-poster-dialog,html.ueng-skin .ls-poster-generating {animation:none;} }

/* Join preview and controls into one continuous surface. */
html.ueng-skin .ls-poster-body { padding:0 12px;background:var(--ls-card-bg,#fff); }
html.ueng-skin .ls-poster-header { border-bottom:0; }
html.ueng-skin .ls-poster-footer { border-top:0;padding:12px; }
html.ueng-skin .ls-poster-body img { box-shadow:none;border-radius:0;max-height:calc(100dvh - 176px); }

/* A single native relation list surface instead of separate floating cards. */
html.ueng-skin .ls-author-relation-list:has(.ls-author-relation-item) { background:var(--ls-card-bg,#fff);border:1px solid var(--ls-border,#e5e7eb);border-radius:var(--ueng-surface-radius,20px);padding:4px 18px; }
html.ueng-skin .ls-author-relation-list > .ls-card.ls-author-relation-item { border:0!important;border-radius:0!important;box-shadow:none!important;margin:0;padding:18px 0;background:transparent; }
html.ueng-skin .ls-author-relation-list > .ls-card.ls-author-relation-item + .ls-author-relation-item { border-top:1px solid var(--ls-border,#e5e7eb)!important; }
html.ueng-skin .ls-author-relation-item .ls-author-relation-content { min-width:0; }

html.ueng-skin .ls-author-about .ls-author-bbs { display:none; }
html.ueng-skin .ls-author-relation-list { background:var(--ls-card-bg,#fff);border:1px solid var(--ls-border,#e5e7eb);border-radius:var(--ueng-surface-radius,20px);padding:4px 18px; }
html.ueng-skin .ls-author-relation-list > .ls-card.ls-author-reply-item { border:0!important;border-radius:0!important;box-shadow:none!important;margin:0;padding:18px 0;background:transparent; }
html.ueng-skin .ls-author-relation-list > .ls-card.ls-author-reply-item + .ls-author-reply-item { border-top:1px solid var(--ls-border,#e5e7eb)!important; }
html.ueng-skin .ls-author-reply-head { margin-bottom:10px; }
html.ueng-skin .ls-author-reply-content { color:var(--ls-text,#222);line-height:1.75;overflow-wrap:anywhere; }
html.ueng-skin .ls-author-reply-meta { margin-top:10px;color:var(--ls-text-muted,#888);font-size:12px; }

html.ueng-skin .ls-author-tabs.ueng-tabs-motion::before { transition:transform var(--ueng-motion-duration) cubic-bezier(.4,0,.2,1),width var(--ueng-motion-duration) cubic-bezier(.4,0,.2,1),height var(--ueng-motion-duration) cubic-bezier(.4,0,.2,1); }

html.ueng-skin .ls-author-relation-list.ueng-profile-content {border:1px solid var(--ls-border,#e5e7eb);padding:0 18px;background:var(--ls-card-bg,#fff);border-radius:var(--ueng-surface-radius,20px);}
html.ueng-skin .ls-author-relation-list.ueng-profile-content > .ls-post-item {background:transparent;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0;padding:20px 0;}
html.ueng-skin .ls-author-relation-list.ueng-profile-content > .ls-post-item + .ls-post-item {border-top:1px solid var(--ls-border,#e5e7eb)!important;}

/* 独立登录页：复用宿主表单，内嵌面板不套浮层外观。 */
html.ueng-skin main.ls-login-page { box-sizing:border-box; min-height:100svh; background:var(--ls-bg-light,#fafafa); background-image:none; padding:48px 28px; }
html.ueng-skin .ls-login-page-shell { max-width:960px; grid-template-columns:minmax(0,1fr) 400px; gap:0; padding:40px; background:var(--ueng-glass-bg,var(--ls-card-bg,#fff)); backdrop-filter:var(--ueng-glass-filter,none); -webkit-backdrop-filter:var(--ueng-glass-filter,none); border:1px solid var(--ls-border,#e5e7eb); border-radius:var(--ueng-surface-radius,20px); box-shadow:0 16px 48px rgba(0,0,0,.035); box-sizing:border-box; }
html.ueng-skin .ls-login-page-brand { padding:20px 44px 20px 8px; }
html.ueng-skin .ls-login-page-logo { margin-bottom:28px; }
html.ueng-skin .ls-login-page-slogan { font-size:44px; letter-spacing:-1.5px; margin-bottom:16px; }
html.ueng-skin .ls-login-page-lead { max-width:23em; font-size:14px; line-height:1.9; margin-bottom:32px; }
html.ueng-skin .ls-login-page-faces { display:flex; flex-wrap:wrap; gap:0; padding-left:0; }
html.ueng-skin .ls-login-page-face + .ls-login-page-face { margin-left:-8px; }
html.ueng-skin .ls-login-page-face { border:3px solid var(--ls-card-bg,#fff); box-sizing:content-box; box-shadow:none; }
html.ueng-skin .ls-login-page-card { min-width:0; padding:0 0 0 40px; background:transparent; border:0; border-left:1px solid var(--ls-border,#e5e7eb); border-radius:0; box-shadow:none; }
html.ueng-skin .ls-login-page .ls-login-inline .ls-login-panel { width:100%; max-width:none; padding:0; border:0!important; border-radius:0!important; box-shadow:none!important; background:transparent!important; backdrop-filter:none; -webkit-backdrop-filter:none; transform:none; }
html.ueng-skin .ls-login-page :is(.ls-login-back-btn,.ls-login-forgot-back) { position:static; margin-bottom:18px; padding:0; justify-content:flex-start; color:var(--ls-text-secondary,#525252); }
html.ueng-skin .ls-login-page :is(.ls-login-tabs,.ls-login-register-tabs) { margin-bottom:28px; background:var(--ls-bg-light,#f5f5f5); border:1px solid var(--ls-border,#e5e7eb); border-radius:14px; isolation:isolate; }
html.ueng-skin .ls-login-page .ls-login-tab-indicator { top:4px; bottom:4px; height:auto; background:var(--ls-card-bg,#fff); border-radius:10px; box-shadow:0 2px 6px rgba(0,0,0,.06); scale:.95 1; z-index:-1; }
html.ueng-skin .ls-login-page :is(.ls-login-tab,.ls-login-register-tab) { font-size:14px; padding:12px 0; color:var(--ls-text-secondary,#525252); }
html.ueng-skin .ls-login-page .ls-login-tab-active { color:var(--ls-text-primary,#171717); font-weight:600; }
html.ueng-skin .ls-login-page .ls-login-input { height:46px; border-width:1px; border-radius:12px; background:var(--ls-bg-light,#fafafa); }
html.ueng-skin .ls-login-page .ls-login-input::placeholder { color:#737373; }
html.ueng-skin .ls-login-page .ls-login-input:focus { background:var(--ls-card-bg,#fff); border-color:var(--ls-text-secondary,#525252); box-shadow:inset 0 0 0 1px var(--ls-text-secondary,#525252); }
html.ueng-skin .ls-login-page .ls-login-input-wrap:has(.ls-login-input-suffix) .ls-login-input { padding-right:44px; }
html.ueng-skin .ls-login-page .ls-login-terms { margin:2px 0 18px; color:var(--ls-text-secondary,#525252); }
html.ueng-skin .ls-login-page .ls-login-submit-btn { height:46px; border-radius:999px; }
html.ueng-skin .ls-login-page .ls-login-submit-btn:hover { transform:none; box-shadow:none; }
html.ueng-skin .ls-login-page .ls-login-divider { margin:24px 0 18px; }
html.ueng-skin .ls-login-page .ls-login-social { margin-bottom:22px; }
html.ueng-skin .ls-login-page .ls-login-social-item { width:42px; height:42px; border:1px solid var(--ls-border,#e5e7eb); border-radius:50%; }
html.ueng-skin .ls-login-page :is(.ls-login-footer a,.ls-login-footer span,.ls-login-page-back a,.ls-login-forgot-desc,.ls-login-divider span) { color:var(--ls-text-secondary,#525252); }
html.ueng-skin .ls-login-page .ls-login-footer { gap:16px; flex-wrap:wrap; margin-top:20px; }
html.ueng-skin .ls-login-page-back { margin-top:24px; padding-top:20px; border-color:var(--ls-border,#e5e7eb); }
html.ueng-skin .ls-login-page .ls-login-code-input { min-width:0; flex:1; max-width:44px; box-sizing:border-box; }
@media(max-width:1080px) { html.ueng-skin .ls-login-page-shell { gap:0; max-width:880px; grid-template-columns:minmax(0,1fr) 380px; padding:32px; } }
@media(max-width:860px) {
 html.ueng-skin main.ls-login-page { padding:32px 20px; }
 html.ueng-skin .ls-login-page-shell { max-width:440px; grid-template-columns:minmax(0,1fr); gap:28px; padding:28px; }
 html.ueng-skin .ls-login-page-slogan { font-size:26px; margin-bottom:0; }
 html.ueng-skin .ls-login-page-logo { margin-bottom:16px; }
 html.ueng-skin .ls-login-page-card { padding:0; border-left:0; }
 html.ueng-skin .ls-login-page-brand { padding:0; }
}

/* 登录浮层：与独立登录页共享表单调性，保留宿主结构和交互。 */
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) :is(.ls-login-tabs,.ls-login-register-tabs) { margin-bottom:28px; background:var(--ls-bg-light,#f5f5f5); border:1px solid var(--ls-border,#e5e7eb); border-radius:14px; isolation:isolate; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-tab-indicator { top:4px; bottom:4px; height:auto; background:var(--ls-card-bg,#fff); border-radius:10px; box-shadow:0 2px 6px rgba(0,0,0,.06); scale:.95 1; z-index:-1; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) :is(.ls-login-tab,.ls-login-register-tab) { font-size:14px; padding:12px 0; color:var(--ls-text-secondary,#525252); }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-tab-active { color:var(--ls-text-primary,#171717); font-weight:600; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-input { height:46px; border-width:1px; border-radius:12px; background:var(--ls-bg-light,#fafafa); }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-input::placeholder { color:#737373; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-input:focus { background:var(--ls-card-bg,#fff); border-color:var(--ls-text-secondary,#525252); box-shadow:inset 0 0 0 1px var(--ls-text-secondary,#525252); }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-input-wrap:has(.ls-login-input-suffix) .ls-login-input { padding-right:44px; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-terms { margin:2px 0 18px; color:var(--ls-text-secondary,#525252); }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-submit-btn { height:46px; border-radius:999px; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-submit-btn:hover { transform:none; box-shadow:none; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-divider { margin:24px 0 18px; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-social { margin-bottom:22px; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-social-item { width:42px; height:42px; border:1px solid var(--ls-border,#e5e7eb); border-radius:50%; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-footer { gap:16px; flex-wrap:wrap; margin-top:20px; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-code-input { min-width:0; flex:1; max-width:44px; box-sizing:border-box; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-panel { width:400px; max-width:calc(100vw - 32px); max-height:calc(100svh - 40px); overflow-y:auto; box-sizing:border-box; padding:32px; background:var(--ueng-glass-bg,var(--ls-card-bg,#fff))!important; backdrop-filter:var(--ueng-glass-filter,none); -webkit-backdrop-filter:var(--ueng-glass-filter,none); border:1px solid var(--ls-border,#e5e7eb)!important; border-radius:var(--ueng-surface-radius,20px); box-shadow:0 20px 64px rgba(0,0,0,.14); }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-header { margin-bottom:24px; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-logo { margin-bottom:14px; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-title { font-size:24px; letter-spacing:-.5px; margin-bottom:8px; }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-subtitle { font-size:13px; line-height:1.7; color:var(--ls-text-secondary,#525252); }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-close { top:12px; right:12px; border-radius:50%; background:var(--ls-bg-light,#f5f5f5); }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-code-btn { border-radius:8px; background:var(--ls-bg-hover,#f3f3f3); color:var(--ls-text-primary,#171717); }
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-footer :is(a,span),
html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-divider span { color:var(--ls-text-secondary,#525252); }
@media(max-width:480px) { html.ueng-skin .ls-login-overlay:not(.ls-login-inline) .ls-login-panel { padding:28px 24px; } }

html.ueng-skin .ls-login-overlay:not(.ls-login-inline) { backdrop-filter:var(--ueng-glass-filter,none); -webkit-backdrop-filter:var(--ueng-glass-filter,none); }

/* 收藏夹内部与外壳连续，空状态不另套卡片。 */
html.ueng-skin .ls-favorites-page .ls-favorites-shell :is(.ls-favorites-panel,.ls-favorites-post-list,.ls-favorites-post-list > .ls-empty,.ls-favorites-post-list > .ls-loading) { border:0!important; border-radius:0!important; box-shadow:none!important; background:transparent; }

/* Surface spacing: explicit containers only, never all cards or descendants.
   Joined panels use either parent horizontal padding or child padding, not both.
   The class is not installed on independent video routes. */
html.ueng-skin.ueng-spacing :is(.ls-recommend,.ls-post-list > .ls-post-item,.ls-article-content-card,.ls-article-interact-card,.ls-task-hero,.ls-task-sec-head,.ls-task-row,.ls-task-card,.ls-cc-toolbar,.ls-cc-item,.ls-favorites-sidebar,.ls-favorites-toolbar,.ls-view-history-toolbar) { padding:var(--ueng-surface-padding)!important; }
html.ueng-skin.ueng-spacing .ls-bbs-page:not(.ls-bbs-waterfall) :is(.ls-bbs-post-item,.ueng-forum-post,.ls-bbs-notice,.ls-bbs-pinned-item) { padding:var(--ueng-surface-padding)!important; }
html.ueng-skin.ueng-spacing .ls-bbs-page .ls-bbs-header-content { padding-left:var(--ueng-surface-padding)!important; padding-right:var(--ueng-surface-padding)!important; padding-bottom:var(--ueng-surface-padding)!important; }
html.ueng-skin.ueng-spacing :is(.ls-favorites-post-list,.ls-view-history-list,.ls-author-relation-list,.ls-author-relation-list.ueng-profile-content) { padding:0 var(--ueng-surface-padding)!important; }
html.ueng-skin.ueng-spacing :is(.ls-author-relation-list.ueng-profile-content > .ls-post-item,.ls-author-relation-list > .ls-card.ls-author-relation-item,.ls-author-relation-list > .ls-card.ls-author-reply-item,.ls-view-history-item) { padding:var(--ueng-surface-padding) 0!important; }
html.ueng-skin.ueng-spacing .ls-author-bar { padding-left:var(--ueng-surface-padding); padding-right:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing .ls-author-bar > .ls-avatar-2xl { left:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing .ls-author-cover-info { padding-left:calc(var(--ueng-surface-padding) + 102px); padding-right:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing .ls-author-page .ls-author-about { padding-left:var(--ueng-surface-padding); padding-right:var(--ueng-surface-padding); padding-bottom:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing .ls-login-page-shell { padding:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing .ls-login-overlay:not(.ls-login-inline) .ls-login-panel { padding:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing :is(.ls-dialog-header,.ls-dialog-body,.ls-dialog-footer,.ls-modal-header,.ls-modal-footer,.lsnp-popup-header,.lsnp-popup-footer) { padding-left:var(--ueng-surface-padding); padding-right:var(--ueng-surface-padding); }
/* A repost dialog already owns its padding. */
html.ueng-skin.ueng-spacing .ls-dialog:has(.ls-repost-editor-wrap) { padding:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing .ls-dialog:has(.ls-repost-editor-wrap) :is(.ls-dialog-header,.ls-dialog-body,.ls-dialog-footer) { padding-left:0; padding-right:0; }

html.ueng-skin.ueng-spacing :is(.ls-userset-content,.lsnp-body) { padding:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing :is(.lsw-main-hd,.lsw-main-bd,.lsnp-header,.ls-chat-header,.ls-chat-messages,.ls-chat-input-area,.ls-hd-dropdown-header,.ls-hd-dropdown-footer,.ls-message-item) { padding-left:var(--ueng-surface-padding)!important; padding-right:var(--ueng-surface-padding)!important; }
html.ueng-skin.ueng-spacing .lsnp-tabs { margin-left:var(--ueng-surface-padding); margin-right:var(--ueng-surface-padding); }

/* Forum native cards belong to one continuous feed surface. */
html.ueng-skin.ueng-spacing .ls-bbs-page .ls-bbs-post-list:has(> .ls-post-item) { background:var(--ls-card-bg,#fff); border:1px solid var(--ls-border,#e5e7eb)!important; border-radius:var(--ueng-surface-radius,20px)!important; overflow:hidden; padding:0; gap:0; }
html.ueng-skin.ueng-spacing .ls-bbs-page .ls-bbs-post-list > .ls-post-item { padding:var(--ueng-surface-padding)!important; margin:0!important; border:0!important; border-radius:0!important; box-shadow:none!important; background:transparent; }
html.ueng-skin.ueng-spacing .ls-bbs-page .ls-bbs-post-list > .ls-post-item + .ls-post-item { border-top:1px solid var(--ls-border,#e5e7eb)!important; }
/* Comment wrapper owns spacing; the native comment box must not add it twice. */
html.ueng-skin.ueng-spacing .ls-article-comments { padding:var(--ueng-surface-padding)!important; }
html.ueng-skin.ueng-spacing .ls-article-comments .ls-comment-box { padding:0!important; }
html.ueng-skin.ueng-spacing .ls-article-comments .ls-comment-menu { padding-top:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing .ls-post-item > .ls-comment-box { padding:var(--ueng-surface-padding) 0!important; }

/* Other host detail pages and outer popup edges found in the follow-up audit. */
html.ueng-skin.ueng-spacing :is(.wd-content-card,.wd-comments,.cm-info-card) { padding:var(--ueng-surface-padding)!important; }
html.ueng-skin.ueng-spacing .wd-comments .ls-comment-box { padding:0!important; }
html.ueng-skin.ueng-spacing .wd-comments .ls-comment-menu { padding-top:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing :is(.ls-poster-header,.ls-poster-body,.ls-poster-footer,.ls-hd-dropdown-user .ls-user-header) { padding-left:var(--ueng-surface-padding); padding-right:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing .ls-hd-dropdown-user :is(.ls-exp-row,.ls-assets-grid,.ls-vip-entry) { margin-left:var(--ueng-surface-padding); margin-right:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing .ls-hd-dropdown-user .ls-user-menu { padding-left:calc(var(--ueng-surface-padding) - 10px); padding-right:calc(var(--ueng-surface-padding) - 10px); }

/* Follow-up: host sidebar surfaces, search and text prompts. */
html.ueng-skin.ueng-spacing :is(.ls-widget-header,.ls-widget-body,.ls-card-header,.ls-card-body,.ls-search-content,.ls-prompt-body,.ls-cc-reject-header,.ls-cc-reject-body,.ls-at-header) { padding-left:var(--ueng-surface-padding); padding-right:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing :is(.ls-user-card,.ls-promo-card) { padding:var(--ueng-surface-padding); }
/* Voice details share vd names with the player; constrain to the host voice route. */
html.ueng-skin.ueng-spacing .vd-page :is(.vd-content-card,.vd-comments) { padding:var(--ueng-surface-padding)!important; }
html.ueng-skin.ueng-spacing .vd-page .vd-comments .ls-comment-box { padding:0!important; }
html.ueng-skin.ueng-spacing .vd-page .vd-comments .ls-comment-menu { padding-top:var(--ueng-surface-padding); }

/* Host pickers own their spacing inside intentionally padding-free modal bodies. */
html.ueng-skin.ueng-spacing :is(.ls-tag-top,.ls-tag-middle,.ls-tag-tabs,.ls-tag-search-wrap,.ls-tag-selected-wrap,.ls-tag-group-title,.ls-tag-item:not(.ls-post-tags .ls-tag-item),.ls-tag-create-item,.ls-tag-footer,.ls-location-search-wrap,.ls-location-list .ls-location-item,.ls-cf-grid) { padding-left:var(--ueng-surface-padding); padding-right:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing #ls-cloud-file .ls-modal-footer { padding-left:var(--ueng-surface-padding); padding-right:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing .ls-transfer-send :is(.ls-transfer-send-header,.ls-transfer-form,.ls-transfer-summary,.ls-transfer-submit-wrap),
html.ueng-skin.ueng-spacing .ls-redbag-send :is(.ls-redbag-send-header,.ls-redbag-form,.ls-redbag-summary,.ls-redbag-submit-wrap),
html.ueng-skin.ueng-spacing .ls-redbag-type-desc { padding-left:var(--ueng-surface-padding); padding-right:var(--ueng-surface-padding); }

/* Notification rows and mention picker: account for native nested row padding. */
html.ueng-skin.ueng-spacing .ls-hd-dropdown-notifications :is(.ls-notify-tabs,.ls-notify-item,.ls-notify-empty) { padding-left:var(--ueng-surface-padding); padding-right:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing :is(.ls-at-search,.ls-at-selected,.ls-at-footer) { padding-left:var(--ueng-surface-padding); padding-right:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing .ls-at-body { padding-left:calc(var(--ueng-surface-padding) - 10px); padding-right:calc(var(--ueng-surface-padding) - 10px); }

/* Align the visible action icons with the top inset while retaining 40px hit targets.
   The 22px icon has (40 - 22) / 2 = 9px of invisible space below it. */
html.ueng-skin.ueng-spacing.ueng-threads-actions .ls-post-item > .ls-post-footer:last-child {
  margin-bottom: -9px;
}

/* Match the 14px header/content gap, accounting for the 9px inset in action hit targets. */
html.ueng-skin.ueng-spacing.ueng-threads-actions .ls-post-item > :has(+ .ls-post-footer) { margin-bottom: 0; }
html.ueng-skin.ueng-spacing.ueng-threads-actions .ls-post-item > .ls-post-footer { padding-top: 0; margin-top: 5px; }

/* Keep the gaps above and below post tags equal. */
html.ueng-skin.ueng-spacing.ueng-threads-actions .ls-post-item > :has(+ .ls-post-tags) { margin-bottom: 14px; }

/* Chat shell insets: apply once, without duplicating the message viewport padding. */
html.ueng-skin.ueng-spacing.ueng-chat-v2 :is(.ls-chat-nav,.ls-chat-sidebar-header,.ls-chat-search,.ls-chat-panel-header) { padding-left:var(--ueng-surface-padding)!important; padding-right:var(--ueng-surface-padding)!important; }
html.ueng-skin.ueng-spacing.ueng-chat-v2 .ls-chat-session-list { padding-left:calc(var(--ueng-surface-padding) - 10px); padding-right:calc(var(--ueng-surface-padding) - 10px); }
html.ueng-skin.ueng-spacing.ueng-chat-v2 .ls-chat-messages { padding:var(--ueng-surface-padding)!important; }
html.ueng-skin.ueng-spacing.ueng-chat-v2 .ls-chat-messages-inner { padding:0!important; }

/* Remaining standalone content surfaces; keep nested controls at native density. */
html.ueng-skin.ueng-spacing .ls-gift-popup :is(.gift-head,.gift-attr,.gift-footer) { padding-left:var(--ueng-surface-padding); padding-right:var(--ueng-surface-padding); }
html.ueng-skin.ueng-spacing .ls-gift-popup .gift-panel.active,
html.ueng-skin.ueng-spacing .ls-modal-body:has(> .ls-reward-popup),
html.ueng-skin.ueng-spacing .ueng-legal .ls-article-card.ueng-copy { padding:var(--ueng-surface-padding); }
