/* works dark redesign v310: scoped to dark mode only */
html.theme-dark #worksView {
  --works-bg: #0a0a0c;
  --works-panel: #131316;
  --works-panel-2: #1a1a1e;
  --works-hair: rgba(245, 243, 237, 0.09);
  --works-hair-strong: rgba(245, 243, 237, 0.16);
  --works-ink: #f5f3ed;
  --works-ink-dim: #9c9aa3;
  --works-ink-faint: #6c6a73;
  --works-acid: #e4ff3d;
  --works-acid-dim: rgba(228, 255, 61, 0.14);
  --works-violet: #8c78ff;
  --works-coral: #ff7a5c;
  --works-cyan: #5cd9ff;
  position: relative;
  isolation: isolate;
  min-height: 100%;
  padding: 0 0 calc(22px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(600px 300px at 15% -5%, rgba(228, 255, 61, 0.07), transparent 60%),
    radial-gradient(500px 260px at 100% 10%, rgba(140, 120, 255, 0.05), transparent 60%),
    var(--works-bg) !important;
  color: var(--works-ink) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  overflow-x: hidden !important;
}

html.theme-dark #worksView::before {
  display: none !important;
}

html.theme-dark #worksView .works-browse-tabs {
  position: sticky;
  top: calc(-12px - env(safe-area-inset-top, 0px));
  z-index: 30;
  display: flex;
  gap: 6px;
  width: auto;
  margin: 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 20px 16px;
  overflow-x: auto;
  border: 0 !important;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.96), rgba(10, 10, 12, 0.78)) !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

html.theme-dark #worksView .works-browse-tabs::-webkit-scrollbar {
  display: none;
}

html.theme-dark #worksView .works-browse-tabs button {
  flex: 0 0 auto;
  min-width: auto;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid transparent !important;
  border-radius: 11px;
  background: transparent !important;
  color: var(--works-ink-faint) !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none !important;
}

html.theme-dark #worksView .works-browse-tabs button.active {
  border-color: rgba(228, 255, 61, 0.82) !important;
  background: var(--works-acid) !important;
  color: #0a0a0c !important;
}

html.theme-dark #worksView .works-browse-tabs button.mode-active:not(.active) {
  border-color: var(--works-hair-strong) !important;
  background: var(--works-panel-2) !important;
  color: var(--works-ink-dim) !important;
}

html.theme-dark #worksView .works-topbar {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 20px 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.theme-dark #worksView .works-topbar::before {
  display: none !important;
}

html.theme-dark #worksView .works-auto-publish,
html.theme-dark #worksView .works-upload-plus,
html.theme-dark #worksView .works-public-toggle,
html.theme-dark #worksView #publicWorksLayoutToggle {
  border: 1px solid var(--works-hair-strong) !important;
  background: rgba(245, 243, 237, 0.06) !important;
  color: var(--works-ink-dim) !important;
  box-shadow: none !important;
}

html.theme-dark #worksView .works-section {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks.works-list,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks.works-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 5px 16px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  contain: layout paint !important;
  transform: translateZ(0) !important;
  columns: auto !important;
  column-gap: 0 !important;
}

html.theme-dark #worksView.public-grid-mode,
html.theme-dark #worksView.my-grid-mode {
  width: calc(100% + 20px) !important;
  max-width: calc(100% + 20px) !important;
  margin-left: -10px !important;
  margin-right: -10px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-card {
  position: relative;
  display: block !important;
  break-inside: auto;
  margin: 0 0 4px !important;
  padding: 0 !important;
  overflow: hidden;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  transform: none !important;
  border: 1px solid var(--works-hair) !important;
  border-radius: 16px !important;
  background: var(--works-panel) !important;
  box-shadow: none !important;
}

html.theme-dark.mahua-apk-android9 #worksView.public-grid-mode #publicWorksPanel #publicWorks.works-list,
html.theme-dark.mahua-apk-android9 #worksView.my-grid-mode #myWorksPanel #myWorks.works-list,
html.theme-dark.mahua-apk-projector-720 #worksView.public-grid-mode #publicWorksPanel #publicWorks.works-list,
html.theme-dark.mahua-apk-projector-720 #worksView.my-grid-mode #myWorksPanel #myWorks.works-list,
body.theme-dark.mahua-apk-android9 #worksView.public-grid-mode #publicWorksPanel #publicWorks.works-list,
body.theme-dark.mahua-apk-android9 #worksView.my-grid-mode #myWorksPanel #myWorks.works-list,
body.theme-dark.mahua-apk-projector-720 #worksView.public-grid-mode #publicWorksPanel #publicWorks.works-list,
body.theme-dark.mahua-apk-projector-720 #worksView.my-grid-mode #myWorksPanel #myWorks.works-list {
  gap: 2px !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card::before,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-card::before {
  display: none !important;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-title,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-title {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  z-index: 4;
  display: block !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: none;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-author,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-author,
html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-side-meta,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-side-meta {
  display: none !important;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-prompt,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-prompt {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: block !important;
  margin: 0 !important;
  padding: 48px 9px 9px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)) !important;
  pointer-events: none;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-prompt summary,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-prompt summary {
  display: block !important;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  list-style: none;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-prompt summary::-webkit-details-marker,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-prompt summary::-webkit-details-marker {
  display: none;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-prompt summary span,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-prompt summary span {
  display: -webkit-box;
  overflow: hidden;
  color: #fff !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1.35;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.62);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-prompt small,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-prompt small,
html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-prompt p,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-prompt p,
html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .social-bar,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .social-bar,
html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .comment-list,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .comment-list,
html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .comment-form,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .comment-form {
  display: none !important;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .video-frame,
html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card > img,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-card > img,
html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card > video,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-card > video {
  display: block !important;
  width: 100% !important;
  min-height: 220px;
  aspect-ratio: 3 / 4 !important;
  margin: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(150deg, rgba(228, 255, 61, 0.10), rgba(140, 120, 255, 0.08)),
    #141417 !important;
  box-shadow: none !important;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card:nth-child(2n) .video-frame,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-card:nth-child(2n) .video-frame {
  aspect-ratio: 3 / 3.45 !important;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card:nth-child(3n) .video-frame,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-card:nth-child(3n) .video-frame {
  aspect-ratio: 3 / 3.8 !important;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame img,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .video-frame img,
html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame video,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .video-frame video,
html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card > img,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-card > img,
html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card > video,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .work-card > video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: #141417 !important;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .video-frame::after,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.48));
  pointer-events: none;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .video-fullscreen,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .video-fullscreen {
  top: 9px !important;
  left: 9px !important;
  right: auto !important;
  z-index: 5;
  width: 26px !important;
  height: 26px !important;
  border: 1px solid rgba(245, 243, 237, 0.15) !important;
  border-radius: 50% !important;
  background: rgba(10, 10, 12, 0.55) !important;
  color: var(--works-ink) !important;
  backdrop-filter: blur(4px);
  box-shadow: none !important;
}

html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks .video-play,
html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks .video-play {
  z-index: 5;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(245, 243, 237, 0.18) !important;
  background: rgba(10, 10, 12, 0.58) !important;
  color: #fff !important;
  backdrop-filter: blur(6px);
}

html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks.works-list,
html.theme-dark #worksView:not(.public-grid-mode) #publicWorksPanel #publicWorks.works-list {
  display: grid !important;
  gap: 14px;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 16px 16px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks .work-card,
html.theme-dark #worksView:not(.public-grid-mode) #publicWorksPanel #publicWorks .work-card {
  border: 1px solid var(--works-hair-strong) !important;
  border-radius: 18px !important;
  background: linear-gradient(165deg, #101012 0%, #0b0b0d 100%) !important;
  box-shadow: none !important;
}

html.theme-dark #worksView .work-title,
html.theme-dark #worksView .work-author strong,
html.theme-dark #worksView .work-prompt summary span,
html.theme-dark #worksView .work-prompt p,
html.theme-dark #worksView .work-full-prompt,
html.theme-dark #worksView .work-summary-line {
  color: var(--works-ink) !important;
}

html.theme-dark #worksView .work-side-meta small,
html.theme-dark #worksView .work-card small,
html.theme-dark #worksView .empty-state,
html.theme-dark #worksView .works-load-more {
  color: var(--works-ink-faint) !important;
}

html.theme-dark #worksView .model-badge,
html.theme-dark #worksView .work-category-badge,
html.theme-dark #worksView .work-location-badge,
html.theme-dark #worksView .ai-content-badge {
  border: 1px solid var(--works-hair-strong) !important;
  background: rgba(245, 243, 237, 0.06) !important;
  color: var(--works-ink-dim) !important;
}

html.theme-dark #worksView .ai-content-badge,
html.theme-dark #worksView .work-location-badge {
  color: var(--works-acid) !important;
}

html.theme-dark #worksView .work-prompt,
html.theme-dark #worksView .comment-form,
html.theme-dark #worksView .social-button,
html.theme-dark #worksView .social-stat {
  border-color: var(--works-hair) !important;
  background: rgba(245, 243, 237, 0.06) !important;
  color: var(--works-ink-dim) !important;
  box-shadow: none !important;
}

html.theme-dark #worksView .social-button.active,
html.theme-dark #worksView .download-social,
html.theme-dark #worksView .wechat-social,
html.theme-dark #worksView .timeline-social {
  border-color: rgba(228, 255, 61, 0.28) !important;
  background: var(--works-acid-dim) !important;
  color: var(--works-acid) !important;
}

html.theme-dark #worksView .comment-form input {
  border-color: var(--works-hair-strong) !important;
  background: #0f0f12 !important;
  color: var(--works-ink) !important;
}

html.theme-dark #worksView .comment-form button {
  border: 0 !important;
  background: var(--works-acid) !important;
  color: #0a0a0c !important;
  font-weight: 800 !important;
}

html.theme-dark #worksView .works-load-more,
html.theme-dark #worksView .empty-state {
  border: 1px solid var(--works-hair-strong) !important;
  border-radius: 16px !important;
  background: var(--works-panel) !important;
}

html.theme-dark .works-category-view,
html.theme-dark .same-city-picker {
  --works-bg: #0a0a0c;
  --works-panel: #131316;
  --works-panel-2: #1a1a1e;
  --works-hair: rgba(245, 243, 237, 0.09);
  --works-hair-strong: rgba(245, 243, 237, 0.16);
  --works-ink: #f5f3ed;
  --works-ink-dim: #9c9aa3;
  --works-ink-faint: #6c6a73;
  --works-acid: #e4ff3d;
  --works-acid-dim: rgba(228, 255, 61, 0.14);
}

html.theme-dark .works-category-view {
  background:
    radial-gradient(600px 300px at 15% -5%, rgba(228, 255, 61, 0.07), transparent 60%),
    radial-gradient(500px 260px at 100% 10%, rgba(140, 120, 255, 0.05), transparent 60%),
    var(--works-bg) !important;
  color: var(--works-ink) !important;
}

html.theme-dark .works-category-head {
  border-bottom-color: var(--works-hair) !important;
  background: rgba(10, 10, 12, 0.94) !important;
}

html.theme-dark .works-category-head > button,
html.theme-dark .works-category-card,
html.theme-dark .same-city-card,
html.theme-dark .same-city-common button,
html.theme-dark .same-city-manual input {
  border-color: var(--works-hair-strong) !important;
  background: var(--works-panel) !important;
  color: var(--works-ink) !important;
  box-shadow: none !important;
}

html.theme-dark .works-category-card.active,
html.theme-dark .same-city-common button.active,
html.theme-dark .same-city-locate {
  border-color: rgba(228, 255, 61, 0.35) !important;
  background: var(--works-acid-dim) !important;
  color: var(--works-acid) !important;
}

html.theme-dark .works-category-head small,
html.theme-dark .works-category-head p,
html.theme-dark .works-category-card span,
html.theme-dark .works-category-note,
html.theme-dark .same-city-card > header p,
html.theme-dark .same-city-privacy,
html.theme-dark .same-city-locate small {
  color: var(--works-ink-faint) !important;
}

html.theme-dark .same-city-card {
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(228, 255, 61, 0.06), transparent 62%),
    var(--works-bg) !important;
}

html.theme-dark .same-city-manual button {
  border: 0 !important;
  background: #e4ff3d !important;
  color: #0a0a0c !important;
  font-weight: 800 !important;
}

html.theme-dark #worksView,
html.theme-dark .phone-app.phone-app.phone-app #worksView,
html.theme-dark body.mahua-apk-webview #worksView,
html.theme-dark #worksView .works-section,
html.theme-dark #worksView #publicWorksPanel,
html.theme-dark #worksView #myWorksPanel,
html.theme-dark #worksView #publicWorks,
html.theme-dark #worksView #myWorks {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
}

html.theme-dark #worksView,
html.theme-dark #worksView .works-section,
html.theme-dark #worksView #publicWorksPanel,
html.theme-dark #worksView #myWorksPanel {
  overflow-x: hidden !important;
}

html.theme-dark #worksView #publicWorks.works-list,
html.theme-dark #worksView #myWorks.works-list,
html.theme-dark .phone-app.phone-app.phone-app #worksView #publicWorks.works-list,
html.theme-dark .phone-app.phone-app.phone-app #worksView #myWorks.works-list,
html.theme-dark body.mahua-apk-webview #worksView #publicWorks.works-list,
html.theme-dark body.mahua-apk-webview #worksView #myWorks.works-list {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  overflow-x: hidden !important;
  transform: none !important;
}

html.theme-dark #worksView .work-card,
html.theme-dark .phone-app.phone-app.phone-app #worksView .work-card,
html.theme-dark body.mahua-apk-webview #worksView .work-card,
html.theme-dark #worksView .video-frame,
html.theme-dark #worksView .work-card > img,
html.theme-dark #worksView .work-card > video {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
}

@media (max-width: 420px) {
  html.theme-dark #worksView .works-browse-tabs {
    padding-inline: 16px;
  }

  html.theme-dark #worksView.public-grid-mode #publicWorksPanel #publicWorks.works-list,
  html.theme-dark #worksView.my-grid-mode #myWorksPanel #myWorks.works-list,
  html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks.works-list,
  html.theme-dark #worksView:not(.public-grid-mode) #publicWorksPanel #publicWorks.works-list {
    padding-inline: 16px !important;
  }
}

/* Final APK grid tightening override. Keep this at the end of this file. */
html.theme-dark.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks.works-list,
html.theme-dark.mahua-apk-webview #worksView.my-grid-mode #myWorksPanel #myWorks.works-list,
html.theme-dark body.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks.works-list,
html.theme-dark body.mahua-apk-webview #worksView.my-grid-mode #myWorksPanel #myWorks.works-list {
  gap: 2px !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}

html.theme-dark.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card,
html.theme-dark.mahua-apk-webview #worksView.my-grid-mode #myWorksPanel #myWorks .work-card,
html.theme-dark body.mahua-apk-webview #worksView.public-grid-mode #publicWorksPanel #publicWorks .work-card,
html.theme-dark body.mahua-apk-webview #worksView.my-grid-mode #myWorksPanel #myWorks .work-card {
  margin-bottom: 2px !important;
  padding: 0 !important;
}

/* APK outer edge override: keep this last so APK/WebView also gets the wider grid body. */
html.theme-dark.mahua-apk-webview #worksView.public-grid-mode,
html.theme-dark.mahua-apk-webview #worksView.my-grid-mode,
body.theme-dark.mahua-apk-webview #worksView.public-grid-mode,
body.theme-dark.mahua-apk-webview #worksView.my-grid-mode,
html.theme-dark.mahua-apk-android9 #worksView.public-grid-mode,
html.theme-dark.mahua-apk-android9 #worksView.my-grid-mode,
body.theme-dark.mahua-apk-android9 #worksView.public-grid-mode,
body.theme-dark.mahua-apk-android9 #worksView.my-grid-mode,
html.theme-dark.mahua-apk-projector-720 #worksView.public-grid-mode,
html.theme-dark.mahua-apk-projector-720 #worksView.my-grid-mode,
body.theme-dark.mahua-apk-projector-720 #worksView.public-grid-mode,
body.theme-dark.mahua-apk-projector-720 #worksView.my-grid-mode {
  width: calc(100% + 20px) !important;
  max-width: calc(100% + 20px) !important;
  margin-left: -10px !important;
  margin-right: -10px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  transform: none !important;
}

/* Dark feed body edge expansion. This follows the grid override so H5,
   mini-program and APK WebViews receive the same wider canvas. */
html.theme-dark #worksView.public-feed-mode,
html.theme-dark #worksView.my-feed-mode,
body.theme-dark #worksView.public-feed-mode,
body.theme-dark #worksView.my-feed-mode {
  width: calc(100% + 20px) !important;
  max-width: calc(100% + 20px) !important;
  margin-left: -10px !important;
  margin-right: -10px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  transform: none !important;
}

html.theme-dark #worksView.public-feed-mode #publicWorksPanel #publicWorks.works-list,
html.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks.works-list,
body.theme-dark #worksView.public-feed-mode #publicWorksPanel #publicWorks.works-list,
body.theme-dark #worksView.my-feed-mode #myWorksPanel #myWorks.works-list {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 3px !important;
  padding-right: 3px !important;
  overflow-x: hidden !important;
  transform: none !important;
}
