/* 1. Hide SSR studio composer skeleton on non-studio routes to prevent entry flash */
body:not([data-hh-route="studio"]) .hhsw-ssr-shell .hhsw-composer[data-hh-ssr="1"] {
  display: none !important;
}

/* Hide floating language switcher when left rail already provides language switch */
html[data-hh-ws50f] body #hhv-language-switcher,
body.hhlc-body #hhv-language-switcher,
#hhv-language-switcher.hhv-language-floating {
  display: none !important;
}

/* 2. Critical /assets/ card & icon layout */
#hhswApp .hhsw-asset-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease !important;
}
#hhswApp .hhsw-asset-card:hover {
  transform: translateY(-2px) !important;
}
#hhswApp .hhsw-asset-card .hhsw-asset-media {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 12px 12px 0 0 !important;
}
#hhswApp .hhsw-asset-card .hhsw-asset-favorite {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 3 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-asset-card .hhsw-asset-favorite {
  background: rgba(18,15,11,0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #faf5eb !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-asset-card .hhsw-asset-favorite {
  background: rgba(255, 255, 255, 0.90) !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #5c4318 !important;
}
#hhswApp .hhsw-asset-card .hhsw-asset-favorite svg {
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
}
#hhswApp .hhsw-asset-size-segments svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

/* Transparent inner stage layout containers in BOTH Night & Day (prevents central white/gray vertical slab!) */
html body #hhswApp :is(
  .hhsw-task-region,
  .hhsw-task-list,
  .hhsw-tasks,
  .hhsw-topbar,
  .hhsw-stage-head,
  .hhsw-stream,
  .hhsw-feed,
  .hhsw-chat,
  .hhsw-messages,
  .hhsw-body,
  .hhsw-content
) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Transparent composer textarea & input wrappers in BOTH Night & Day (prevents internal gray rectangle box!) */
html body #hhswApp .hhsw-composer :is(
  textarea,
  #hhswPrompt,
  [contenteditable],
  .hhsw-composer-input,
  .hhsw-composer-body,
  .hhsw-composer-main,
  .hhsw-prompt-textarea,
  .hhsw-input-wrap
) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-composer :is(textarea, #hhswPrompt, [contenteditable]) {
  color: #f2eee7 !important;
  -webkit-text-fill-color: #f2eee7 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-composer :is(textarea, #hhswPrompt, [contenteditable]) {
  color: #2b2115 !important;
  -webkit-text-fill-color: #2b2115 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-composer :is(textarea, #hhswPrompt)::placeholder {
  color: rgba(92, 67, 30, 0.52) !important;
  -webkit-text-fill-color: rgba(92, 67, 30, 0.52) !important;
}

/* Frame slot auto width so Russian "ÐÐ¾ÑÐ»ÐµÐ´Ð½Ð¸Ð¹ ÐºÐ°Ð´Ñ" never clips */
#hhswApp .hhsw-composer label.hhsw-frame-slot {
  min-width: 56px !important;
  width: auto !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}

/* 3. NIGHT APPEARANCE: Sleek Soft Charcoal-Slate & Subtle Warm Champagne Accent */
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]),
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body,
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp,
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-shell, .hhsw-studio, .hhsw-page, .hhsw-main, .hhsw-stage, .hhsw-workspace) {
  background-color: #120f0b !important;
  background-image:
    radial-gradient(1100px 540px at 50% -10%, rgba(226, 192, 138, 0.065), transparent 68%),
    radial-gradient(850px 440px at 85% 15%, rgba(166,150,128,0.035), transparent 70%) !important;
  color: #f2eee7 !important;
}

/* Left Navigation Rail & Secondary Threads Sidebar (Night) */
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(aside.hh-ws50f-rail, aside.hhsw-rail, aside.h3d-rail, aside.ws42-rail),
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp aside.hhsw-rail {
  background: linear-gradient(180deg, rgba(18,15,11,0.98) 0%, rgba(18,15,11,0.99) 100%) !important;
  background-color: #120f0b !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp aside.hhsw-threads,
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body aside.hhsw-threads {
  background: linear-gradient(180deg, rgba(18,15,11,0.96) 0%, rgba(18,15,11,0.98) 100%) !important;
  background-color: #120f0b !important;
  border-right: 1px solid rgba(255, 255, 255, 0.075) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp aside.hhsw-threads :is(.hhsw-thread-item.active, .hhsw-thread-item.hhsw-session-current, .hhsw-session-item.active, .hhsw-thread.active, button.active) {
  background: linear-gradient(135deg, rgba(232, 196, 132, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
  background-color: rgba(44, 38, 28, 0.85) !important;
  border: 1px solid rgba(236, 198, 132, 0.34) !important;
  color: #f8e6be !important;
  -webkit-text-fill-color: #f8e6be !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(aside.hh-ws50f-rail a.hh-ws50f-on, .hhsw-nav a.active, .h3d-rail-item.is-active),
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-nav a.active {
  background: linear-gradient(135deg, rgba(232, 194, 126, 0.18) 0%, rgba(196, 150, 78, 0.08) 100%) !important;
  border: 1px solid rgba(236, 198, 132, 0.38) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 245, 220, 0.12) !important;
  color: #f7e2b4 !important;
}

/* Universal Left Rail Avatar & Credits Badge (No purple!) */
html body :is(aside.hh-ws50f-rail .hh-ws50f-bot > .hh-ws50f-av, button.hh-ws50f-av, button.hh-ws50f-av.hh-ws56a-img) {
  background: linear-gradient(135deg, #e8c27e 0%, #c49245 100%) !important;
  background-color: rgb(212, 166, 86) !important;
  border: 1px solid rgba(236, 198, 132, 0.44) !important;
  color: #1f1406 !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(a.hh-ws50f-pts, a.hhsw-credit, a.hh-points-mini, output.h3d-account-points),
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body aside.hh-ws50f-rail a.hh-ws50f-pts,
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp a.hhsw-credit {
  background: linear-gradient(135deg, rgba(232, 196, 132, 0.18) 0%, rgba(186, 140, 68, 0.10) 100%) !important;
  background-color: rgba(38, 33, 26, 0.92) !important;
  border: 1px solid rgba(236, 198, 132, 0.38) !important;
  color: #f7e3b5 !important;
  -webkit-text-fill-color: #f7e3b5 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(a.hh-ws50f-pts, a.hhsw-credit, a.hh-points-mini) :is(span, b, strong) {
  color: #f7e3b5 !important;
  -webkit-text-fill-color: #f7e3b5 !important;
}

/* Studio (/studio/) Bottom Composer & Floating Popover Menus */
@media (min-width: 1280px) {
  #hhswApp section.hhsw-composer,
  #hhswApp section.hhsw-composer[data-hh366] {
    --hh366-w: 1040px !important;
    --hh366-cw: 790px !important;
    width: min(1040px, calc(100vw - 360px)) !important;
    max-width: calc(100vw - 360px) !important;
    min-width: min(1040px, calc(100vw - 360px)) !important;
  }
}
#hhswApp .hhsw-composer .hhsw-generate {
  width: 104px !important;
  min-width: 104px !important;
}
#hhswApp .hhsw-composer .hhsw-control-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
#hhswApp .hhsw-composer .hhsw-control-params {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 210px) !important;
}
#hhswApp .hhsw-composer .hhsw-control-params .hhsw-pop > button.hhsw-pop-trigger {
  padding: 5px 9px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}
#hhswApp .hhsw-composer .hhsw-control-actions {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-composer {
  background: linear-gradient(180deg, rgba(28, 22, 16, 0.97) 0%, rgba(19, 15, 10, 0.99) 100%) !important;
  background-color: #17120d !important;
  border: 1px solid rgba(218, 178, 108, 0.22) !important;
  border-radius: 20px !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-composer :is(.hhsw-frame-slot) {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8e4dc !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-pop > button, .hhsw-pop-trigger, .hhsw-task-actions button, .hhsw-bubble, .hhsw-prompt-row) {
  background: rgba(36, 29, 20, 0.86) !important;
  background-color: rgba(33, 26, 18, 0.90) !important;
  border: 1px solid rgba(218, 178, 108, 0.20) !important;
  color: #efebe3 !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-pop > button:hover, .hhsw-pop.open > button, .hhsw-pop-trigger.active) {
  background: linear-gradient(135deg, rgba(232, 196, 132, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
  border-color: rgba(236, 198, 132, 0.42) !important;
  color: #fae5b8 !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-menu, .hhsw-popover),
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body > .hhsw-single-portal .hhsw-menu {
  background: linear-gradient(180deg, rgba(22,19,15,0.98) 0%, rgba(18,15,11,0.99) 100%) !important;
  background-color: #16130f !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 15px !important;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  color: #f3efe8 !important;
}

/* Tight, zero-dead-space popover sizing for Mode, Model, Frame, Resolution, Duration */
#hhswApp .hhsw-menu[data-hhsw-pop-id="mode"],
#hhswApp .hhsw-pop[data-pop-wrap="mode"] .hhsw-menu,
#hhswApp .hhsw-menu[data-hhsw-pop-id="model"],
#hhswApp .hhsw-menu[data-hhsw-pop-id="frame"],
#hhswApp .hhsw-menu[data-hhsw-pop-id="resolution"] {
  width: max-content !important;
  min-width: 0 !important;
  max-width: 268px !important;
  padding: 6px !important;
}
#hhswApp .hhsw-menu.hhsw-duration-menu {
  padding: 8px 10px !important;
  gap: 4px !important;
}
#hhswApp .hhsw-menu.hhsw-duration-menu .hhsw-menu-title {
  margin: 0 0 2px !important;
  font-size: 12px !important;
}
#hhswApp .hhsw-menu.hhsw-duration-menu .hhsw-duration-control {
  padding: 6px 8px !important;
  gap: 5px !important;
}
#hhswApp .hhsw-menu :is(button[data-action="mode"], button[data-action="model"], button[data-action="frame"], button[data-action="resolution"]) {
  display: grid !important;
  grid-template-columns: max-content auto !important;
  justify-content: space-between !important;
  align-items: center !important;
  column-gap: 8px !important;
  padding: 6px 9px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#hhswApp .hhsw-menu button[data-action] > em:empty {
  display: none !important;
}
#hhswApp .hhsw-pop[data-pop-wrap="mode"] .hhsw-menu button small,
#hhswApp .hhsw-menu[data-hhsw-pop-id="mode"] button small {
  font-size: 11px !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
  display: block !important;
  line-height: 1.32 !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-menu :is(button[data-action], .hhsw-ratio-choice) {
  background: rgba(255, 255, 255, 0.04) !important;
  background-color: rgba(22,19,15,0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: #ece8e0 !important;
  border-radius: 11px !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-menu :is(button[data-action]:hover, .hhsw-ratio-choice:hover) {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(236, 198, 132, 0.32) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-menu :is(button.selected, button.active, button[aria-selected="true"], .hhsw-ratio-choice.selected) {
  background: linear-gradient(135deg, rgba(232, 194, 126, 0.22) 0%, rgba(186, 136, 62, 0.10) 100%) !important;
  background-color: rgba(50, 42, 30, 0.90) !important;
  border: 1px solid rgba(236, 198, 132, 0.48) !important;
  color: #fae5b8 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 240, 200, 0.14) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-ratio-grid {
  background: transparent !important;
}

/* Assets (/assets/) Night Mode */
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-asset-toolbar, .hhsw-asset-summary, .hhsw-tools, .hhsw-asset-size-segments) {
  background: linear-gradient(180deg, rgba(22,19,15,0.95) 0%, rgba(18,15,11,0.97) 100%) !important;
  background-color: #120f0b !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-asset-media {
  background-color: #120f0b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp button.hhsw-gallery-caption {
  background: rgba(22,19,15,0.88) !important;
  background-color: #16130f !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ece7de !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-tools .hhsw-filter, .hhsw-asset-tab, .hhsw-asset-tool, .hhsw-asset-size-button) {
  background: rgba(255, 255, 255, 0.05) !important;
  background-color: rgba(22,19,15,0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #e6e2da !important;
  border-radius: 999px !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-tools .hhsw-filter:hover, .hhsw-asset-tab:hover, .hhsw-asset-tool:hover, .hhsw-asset-size-button:hover) {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(236, 198, 132, 0.35) !important;
  color: #f9e6bc !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(
  .hhsw-tools .hhsw-filter.active,
  .hhsw-tools a.hhsw-filter[href*="/assets"],
  .hhsw-asset-tab.active,
  .hhsw-asset-tab[aria-pressed="true"],
  .hhsw-asset-tool.active,
  .hhsw-asset-tool[aria-pressed="true"],
  .hhsw-asset-size-button[aria-pressed="true"]
) {
  background: linear-gradient(135deg, rgba(232, 194, 126, 0.22) 0%, rgba(186, 136, 62, 0.12) 100%) !important;
  background-color: rgba(48, 40, 28, 0.90) !important;
  border: 1px solid rgba(236, 198, 132, 0.48) !important;
  color: #fae5b8 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-asset-card {
  background: linear-gradient(180deg, rgba(22,19,15,0.94) 0%, rgba(18,15,11,0.98) 100%) !important;
  background-color: #120f0b !important;
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-asset-card:hover {
  border-color: rgba(236, 198, 132, 0.36) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.58) !important;
}

/* Home (/) çµå®é Search & Tabs Unification */
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.home .hh-discover-search-submit,
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hhv-home-visual #hh-discover-root .hh-discover-search-submit,
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-discover-feed .hh-discover-search-submit {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e5b55c !important;
  color: #1a1308 !important;
  -webkit-text-fill-color: #1a1308 !important;
  border: 1px solid rgba(255, 232, 185, 0.55) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 6px 18px !important;
  box-shadow: 0 4px 14px rgba(216, 155, 60, 0.28) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-discover-tab:not(.is-active):not([aria-selected="true"]) {
  background: rgba(22,19,15,0.85) !important;
  background-color: #16130f !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  color: #ece6dc !important;
  -webkit-text-fill-color: #ece6dc !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-discover-tab:is(.is-active, [aria-selected="true"]) {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e5b55c !important;
  color: #1a1308 !important;
  -webkit-text-fill-color: #1a1308 !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hhv-home-visual #hh-discover-root :is(.hh-discover-control, .hh-discover-library, a[href*="/lingbaoge"]:not(.hh-discover-ad)),
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-discover-feed :is(.hh-discover-control, .hh-discover-library, a[href*="/lingbaoge"]:not(.hh-discover-ad)) {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f2eae0 !important;
  border-radius: 999px !important;
}

/* 3D Studio (/3d/) Night & Day */
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone {
  background-color: #120f0b !important;
  background-image: radial-gradient(1100px 520px at 50% -8%, rgba(226, 192, 138, 0.065), transparent 68%) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-topbar, .h3d-creation-pane, .h3d-panel, .h3d-current-result-panel, .h3d-history-rail, .h3d-footer) {
  background: linear-gradient(180deg, rgba(18,15,11,0.95) 0%, rgba(18,15,11,0.97) 100%) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-workspace-tabs, .h3d-user-chip, .h3d-model-select, .h3d-creation-pane select, .h3d-creation-pane textarea, .h3d-creation-pane input) {
  background: rgba(18,15,11,0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  color: #f2eee7 !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-secondary-button, .h3d-current-result-panel button:not(.h3d-primary-button)) {
  background: rgba(255, 255, 255, 0.06) !important;
  background-color: #16130f !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  color: #efebe3 !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-primary-button {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e5b55c !important;
  border: 1px solid rgba(255, 232, 185, 0.50) !important;
  color: #1a1308 !important;
  -webkit-text-fill-color: #1a1308 !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 20px rgba(216, 155, 60, 0.25) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-artifact-thumbnail, .h3d-empty-state, .h3d-thumbnail-placeholder) {
  background: radial-gradient(circle at 50% 45%, rgba(56, 54, 58, 0.42) 0%, rgba(18,15,11,0.98) 76%) !important;
  background-color: #120f0b !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: #d6cfc3 !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-artifact-thumbnail img {
  background: transparent !important;
  background-color: transparent !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  border-radius: 10px !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-thumbnail-label, .h3d-safe-mode, .h3d-current-result-icon) {
  background: rgba(28, 27, 25, 0.84) !important;
  background-color: #1c1b19 !important;
  border: 1px solid rgba(236, 198, 132, 0.24) !important;
  color: #f0e4cc !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-task-status.is-succeeded, .h3d-task-status.is-failed) {
  background: rgba(36, 33, 28, 0.85) !important;
  background-color: #24211c !important;
  border: 1px solid rgba(232, 194, 126, 0.28) !important;
  color: #f5e2bd !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-topbar, .h3d-creation-pane, .h3d-panel, .h3d-current-result-panel, .h3d-history-rail, .h3d-footer) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-secondary-button, .h3d-current-result-panel button:not(.h3d-primary-button), .h3d-history-rail button) {
  background: #faf5eb !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3a2e1e !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-history-rail button.is-active {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border-color: rgba(196, 145, 62, 0.52) !important;
  color: #2b1d0c !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-task-status.is-succeeded, .h3d-task-status.is-failed, .h3d-safe-mode, .h3d-current-result-icon, .h3d-thumbnail-placeholder) {
  background: #faf5eb !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3a2e1e !important;
}

/* Canvas (/canvas/) Project Library & Editor (/canvas/?project=...) */
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .ws42-shell.canvas-project-library {
  color: #f2eee7 !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .canvas-project-grid :is(.canvas-project-card, .ws42-card, .c5-newtile) {
  background: linear-gradient(145deg, rgba(22,19,15,0.90) 0%, rgba(18,15,11,0.96) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .canvas-project-grid :is(.canvas-project-card:hover, .ws42-card:hover, .c5-newtile:hover) {
  border-color: rgba(236, 204, 148, 0.34) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.52), 0 0 20px rgba(226, 190, 130, 0.08) !important;
  transform: translateY(-2px) !important;
}
.ws42-card .ws42-prev {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) .ws42-card .ws42-prev {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 248, 236, 0.07), transparent 58%),
    linear-gradient(135deg, #1a1612 0%, #16130f 55%, #272529 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: rgba(242, 238, 231, 0.42) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) .ws42-card .ws42-prev {
  background:
    radial-gradient(circle at 22% 24%, rgba(232, 194, 126, 0.14), transparent 58%),
    #FFFFFF !important;
  border: 1px solid rgba(196, 160, 104, 0.20) !important;
  color: rgba(92, 67, 24, 0.52) !important;
}
.ws42-card .ws42-prev > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 2 !important;
  border-radius: 11px !important;
}
.ws42-card .ws42-prev .hh57-empty-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  color: rgba(242, 238, 231, 0.38) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) .ws42-card .ws42-prev .hh57-empty-label {
  color: rgba(92, 67, 24, 0.46) !important;
}
.ws42-card .ws42-prev .hh57-cnt-badge {
  position: absolute !important;
  left: 8px !important;
  bottom: 8px !important;
  z-index: 3 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #16130f !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
  pointer-events: none !important;
}
.ws42-card .ws42-prev .hh-canvas-minimap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone :is(.canvas-engine-shell, .hhce-root, .hhce-viewport, .hhce-grid) {
  background-color: #faf5eb !important;
  color: #16130f !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone :is(.c7-toolbar, .c7-topbar) {
  background: rgba(255, 252, 246, 0.94) !important;
  background-color: #FFFFFF !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
body.hanhai-canvas-standalone :is(.c7-topbar button, header button) {
  width: auto !important;
  min-width: 36px !important;
  padding-inline: 10px !important;
  white-space: nowrap !important;
}

/* 4. DAY APPEARANCE: Luminous Warm Ivory & Pearl Glass Across All 10 Routes */
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]),
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body,
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp,
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-shell, .hhsw-studio, .hhsw-page, .hhsw-main, .hhsw-stage, .hhsw-workspace) {
  background-color: #faf5eb !important;
  background-image:
    none !important;
  color: #241c12 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(aside.hh-ws50f-rail, aside.hhsw-rail, aside.h3d-rail, aside.ws42-rail),
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp aside.hhsw-rail {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-right: 1px solid rgba(196, 160, 104, 0.22) !important;
  box-shadow: 4px 0 20px rgba(18,15,11,0.06) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp aside.hhsw-threads,
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body aside.hhsw-threads {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-right: 1px solid rgba(196, 160, 104, 0.20) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(aside.hh-ws50f-rail a.hh-ws50f-on, .hhsw-nav a.active, .h3d-rail-item.is-active),
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-nav a.active {
  background: linear-gradient(135deg, rgba(243, 203, 122, 0.34) 0%, rgba(216, 155, 60, 0.16) 100%) !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(204, 152, 68, 0.46) !important;
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
  box-shadow: 0 6px 16px rgba(196, 145, 62, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body aside.hh-ws50f-rail a.hh-ws50f-on :is(svg, span, b) {
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(a.hh-ws50f-pts, a.hhsw-credit, a.hh-points-mini, output.h3d-account-points),
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body aside.hh-ws50f-rail a.hh-ws50f-pts {
  background: linear-gradient(135deg, rgba(243, 203, 122, 0.30) 0%, rgba(216, 155, 60, 0.14) 100%) !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(196, 145, 62, 0.44) !important;
  color: #5c3e12 !important;
  -webkit-text-fill-color: #5c3e12 !important;
  box-shadow: 0 4px 12px rgba(180, 130, 50, 0.12) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(a.hh-ws50f-pts, a.hhsw-credit, a.hh-points-mini) :is(span, b, strong) {
  color: #5c3e12 !important;
  -webkit-text-fill-color: #5c3e12 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp aside.hhsw-threads :is(.hhsw-thread-item.active, .hhsw-thread-item.hhsw-session-current, .hhsw-session-item.active, .hhsw-thread.active, button.active) {
  background: linear-gradient(135deg, rgba(243, 203, 122, 0.30) 0%, rgba(226, 185, 111, 0.14) 100%) !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(204, 156, 78, 0.40) !important;
  color: #3d280a !important;
  -webkit-text-fill-color: #3d280a !important;
  box-shadow: 0 4px 12px rgba(180, 135, 60, 0.10) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp aside.hhsw-threads :is(.hhsw-new-session, .hhsw-icon-btn) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(204, 156, 78, 0.34) !important;
  color: #3b3226 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-bubble, .hhsw-prompt-row, article.hhsw-task > .hhsw-prompt-row) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(204, 158, 84, 0.34) !important;
  color: #3b280c !important;
  box-shadow: 0 6px 18px rgba(175, 130, 58, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-task-actions button, .hh371-bar button, button.hhsw-filter, button.hh366-tobottom) {
  background: #faf5eb !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #4a3516 !important;
  box-shadow: 0 2px 8px rgba(18,15,11,0.06) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hh371-pill, .hh371-bar) {
  color: #3a2e1e !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-media-tile {
  background: #f6f0e4 !important;
  border-color: rgba(18,15,11,0.09) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-composer {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(204, 160, 92, 0.38) !important;
  border-radius: 20px !important;
  box-shadow:
    0 22px 52px rgba(120, 88, 36, 0.14),
    0 0 28px rgba(216, 165, 85, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-composer :is(.hhsw-frame-slot) {
  background: #FFFFFF !important;
  background-color: #faf5eb !important;
  border: 1px dashed rgba(18,15,11,0.09) !important;
  color: #5c431e !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-pop > button, .hhsw-pop-trigger) {
  background: #FFFFFF !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #4a3516 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-composer .hhsw-generate,
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.home .hh-discover-search-submit,
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-primary-button {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e5b55c !important;
  border: 1px solid rgba(196, 138, 45, 0.55) !important;
  color: #1f1406 !important;
  -webkit-text-fill-color: #1f1406 !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(216, 155, 60, 0.30), inset 0 1px 0 rgba(255, 248, 228, 0.65) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-menu, .hhsw-popover),
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body > .hhsw-single-portal .hhsw-menu {
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.98) 0%, rgba(249, 244, 235, 0.99) 100%) !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  border-radius: 15px !important;
  box-shadow: 0 18px 44px rgba(100, 72, 28, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  color: #241c12 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-menu :is(button[data-action], .hhsw-ratio-choice, .hhsw-ratio-option):not(.selected):not(.active):not([aria-selected="true"]) {
  background: #f6f0e4 !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-menu :is(button.selected, button.active, button[aria-selected="true"], .hhsw-ratio-choice.selected) {
  background: linear-gradient(135deg, rgba(243, 203, 122, 0.36) 0%, rgba(216, 155, 60, 0.18) 100%) !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(196, 145, 62, 0.50) !important;
  color: #3d280a !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-ratio-grid {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-asset-toolbar, .hhsw-asset-summary, .hhsw-tools, .hhsw-asset-size-segments, .hhsw-asset-tabs) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(120, 88, 36, 0.06) !important;
  color: #16130f !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-asset-media {
  background-color: #faf5eb !important;
  border-color: rgba(18,15,11,0.09) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp button.hhsw-gallery-caption {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-tools .hhsw-filter, .hhsw-asset-tab, .hhsw-asset-tool, .hhsw-asset-size-button):not(.active):not([aria-pressed="true"]) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3a2e1e !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(
  .hhsw-tools .hhsw-filter.active,
  .hhsw-tools a.hhsw-filter[href*="/assets"],
  .hhsw-asset-tab.active,
  .hhsw-asset-tab[aria-pressed="true"],
  .hhsw-asset-tool.active,
  .hhsw-asset-tool[aria-pressed="true"],
  .hhsw-asset-size-button[aria-pressed="true"]
) {
  background: linear-gradient(135deg, rgba(243, 203, 122, 0.34) 0%, rgba(216, 155, 60, 0.16) 100%) !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(196, 145, 62, 0.48) !important;
  color: #3b3226 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .canvas-project-grid :is(.canvas-project-card, .ws42-card, .c5-newtile),
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-asset-card {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(196, 160, 104, 0.24) !important;
  box-shadow: 0 10px 26px rgba(120, 88, 36, 0.07) !important;
}

/* 5. Membership, Lingbaoge, Templates, Announcements, Agreements Night & Day Unification */
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(
  .hhsw-plan-card,
  .hhsw-member-card,
  .hhsw-member-hero,
  .hhsw-member-banner,
  .hhsw-member-tabs,
  .hhsw-membership-content,
  .hhsw-member-title,
  .hhpf-member-perk,
  .hhsw-plan-points,
  .hhpf-value-metric,
  .hhsw-announcement-card,
  .hhsw-announcement-latest-mark,
  .hhsw-announcement-latest-body,
  .hhsw-announcement-history-section,
  .hhsw-activity-card,
  .hhsw-agreement-card,
  .hhsw-legal-card
),
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(
  .hhsw-plan-card,
  .hhsw-member-card,
  .hhsw-announcement-card,
  .hlbg-card,
  .hlbg-media,
  .hlbg-development-note,
  .hlbg-header,
  .hlbg-settings-panel,
  #hlbg-appearance,
  #hlbg-language,
  .hhtpl-card,
  .hhlc-action,
  .hhlc-section__num,
  .hhlc-scope,
  .hhlc-card,
  .hhlc-skip
) {
  background: linear-gradient(180deg, rgba(22,19,15,0.95) 0%, rgba(18,15,11,0.98) 100%) !important;
  background-color: #120f0b !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  color: #f2eee7 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-membership-close, .hhpf-membership-toolbar button:not(.active)) {
  background: rgba(22,19,15,0.88) !important;
  background-color: #16130f !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  color: #eae5dc !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(
  .hhsw-plan-card,
  .hhsw-member-card,
  .hhsw-member-hero,
  .hhsw-member-banner,
  .hhsw-member-tabs,
  .hhsw-membership-content,
  .hhsw-member-title,
  .hhpf-member-perk,
  .hhsw-member-user,
  .hhsw-member-profile,
  .hhsw-member-stats,
  .hhsw-member-stat,
  .hhpf-membership-toolbar,
  .hhsw-plan-points,
  .hhpf-value-metric,
  .hhsw-announcement-card,
  .hhsw-announcement-latest-mark,
  .hhsw-announcement-latest-body,
  .hhsw-announcement-history-section,
  .hhsw-activity-card,
  .hhsw-agreement-card,
  .hhsw-legal-card
),
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(
  .hhsw-plan-card,
  .hhsw-member-card,
  .hhsw-announcement-card,
  .hlbg-card,
  .hlbg-media,
  .hlbg-development-note,
  .hlbg-header,
  .hlbg-settings-panel,
  #hlbg-appearance,
  #hlbg-language,
  .hhtpl-card,
  .hhlc-action,
  .hhlc-section__num,
  .hhlc-scope,
  .hhlc-card,
  .hhlc-skip
) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 8px 22px rgba(120, 88, 36, 0.06) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-membership-close, .hhpf-membership-toolbar button:not(.active)) {
  background: #faf5eb !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3a2e1e !important;
}
button.hhpf-recharge-shortcut {
  width: max-content !important;
  min-width: 180px !important;
  padding: 8px 16px !important;
}

/* Templates (/templates/ body.hh-tpl1) Night & Day */
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hh-tpl1 header.tp-top {
  background: rgba(18,15,11,0.94) !important;
  background-color: #120f0b !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hh-tpl1 button:not(.on) {
  background: rgba(22,19,15,0.88) !important;
  background-color: #16130f !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #eae5dc !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hh-tpl1 button.on {
  background: linear-gradient(135deg, rgba(232, 194, 126, 0.24) 0%, rgba(186, 136, 62, 0.14) 100%) !important;
  background-color: #362d20 !important;
  border: 1px solid rgba(236, 198, 132, 0.48) !important;
  color: #fae5b8 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hh-tpl1 header.tp-top {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-bottom: 1px solid rgba(18,15,11,0.09) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hh-tpl1 button:not(.on) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3a2e1e !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hh-tpl1 button.on {
  background: linear-gradient(135deg, rgba(243, 203, 122, 0.34) 0%, rgba(216, 155, 60, 0.16) 100%) !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(196, 145, 62, 0.48) !important;
  color: #3d280a !important;
}

/* QA-037-R: Agreements (.hhlc-reference-list a, .hhlc-nav a) Night & Day Unification */
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hhlc-reference-list a, .hhlc-nav a, .hhlc-topbar, .hhlc-aside) {
  background: linear-gradient(180deg, rgba(22,19,15,0.95) 0%, rgba(18,15,11,0.98) 100%) !important;
  background-color: #120f0b !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: #f2eee7 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hhlc-reference-list a, .hhlc-nav a, .hhlc-topbar, .hhlc-aside) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}

/* QA-043: Home (/) button.hanhai-home-ref single-line & button.hanhai-home-submit high-contrast gold */
html body :is(button.hanhai-home-ref, .hanhai-home-ref) {
  width: auto !important;
  min-width: max-content !important;
  white-space: nowrap !important;
  padding: 0 14px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
html body :is(button.hanhai-home-submit, .hanhai-home-submit, button.hanhai-home-submit:disabled, .hanhai-home-submit[disabled]) {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e5b55c !important;
  color: #1a1308 !important;
  -webkit-text-fill-color: #1a1308 !important;
  border: 1px solid rgba(212, 166, 78, 0.50) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

/* QA-046: Guest Home (/) Night & Day and Canvas (/canvas/?project=29) Video Action Unification */
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hanhai-home-generator-wrap,
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hanhai-home-generator-wrap {
  background: linear-gradient(180deg, rgba(28, 24, 19, 0.94) 0%, rgba(20, 17, 13, 0.96) 100%) !important;
  background-color: #171410 !important;
  border-color: rgba(232, 194, 126, 0.22) !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body button.canvas-video-view-action,
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body button.canvas-video-view-action {
  background: rgba(28, 24, 19, 0.84) !important;
  background-color: #1c1813 !important;
  border-color: rgba(232, 194, 126, 0.28) !important;
  color: #faf5eb !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body aside.hh-ws50f-rail,
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body aside.hh-ws50f-rail {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-right: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body aside.hh-ws50f-rail :is(a, button, span, svg, path, nav):not(.hh-ws50f-on):not(.hh-ws50f-pts):not(.hh-ws50f-av),
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body aside.hh-ws50f-rail :is(a, button, span, svg, path, nav):not(.hh-ws50f-on):not(.hh-ws50f-pts):not(.hh-ws50f-av) {
  border-color: rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}

/* ============================================================================
   v114 Complete Visual, Membership Tiers, Popover, 3D & Assets Unification (QA-048 ~ QA-065)
   ============================================================================ */

/* QA-059: Never show unmounted SSR studio composer raw textarea at top-left (0,0) */
.hhsw-ssr-shell,
.hhsw-ssr-shell [data-hh-ssr="1"],
textarea#hhswPrompt[data-hh-ssr="1"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* QA-048: Lock /studio/ viewport to 100vh so #hhswApp and .hhsw-topbar NEVER scroll to y = -370px */
html.hh366-on,
body[data-hh-route="studio"] {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}
body[data-hh-route="studio"] #hhswApp,
body[data-hh-route="studio"] #hhswApp .hhsw-shell,
body #hhswApp main.hhsw-studio,
body #hhswApp section.hhsw-stage {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}
body #hhswApp section.hhsw-stage {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  position: relative !important;
}
body #hhswApp :is(.hhsw-topbar, .hhsw-stage-head) {
  flex: 0 0 auto !important;
  position: relative !important;
  top: 0 !important;
  z-index: 25 !important;
}
body #hhswApp .hhsw-task-region {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 308px !important;
}

/* QA-048 & QA-073: Seamless background on /studio/ (prevent vertical gradient seam at x=312px & eliminate #ffffff task/textarea blocks in html.hhd4-day!) */
html body #hhswApp :is(.hhsw-shell, main.hhsw-studio, section.hhsw-stage, .hhsw-main, .hhsw-workspace, .hhsw-task-region, .hhsw-task-list, .hhsw-tasks, .hhsw-topbar, .hhsw-stage-head, article.hhsw-task, .hhsw-task, .hhsw-task-body, .hhsw-task-card, .hhsw-task-content, section.hhsw-composer textarea, textarea#hhswPrompt, .hhsw-composer-input, .hhsw-prompt-box) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp section.hhsw-composer {
  background: #FFFFFF !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  box-shadow: 0 12px 32px rgba(18,15,11,0.06) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(section.hhsw-composer textarea, textarea#hhswPrompt) {
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(button.hh367-act, .hh371-bar, .hh371-bar button, .hh371-pill, .hh371-pill button) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(aside#hh-ws50f-rail, aside.hh-ws50f-rail, aside.hhsw-rail:not([style*="visibility: hidden"])) {
  background: #faf5eb !important;
  background-color: #faf5eb !important;
  border-right: 1px solid rgba(18,15,11,0.09) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(button#hh-ws50f-lang, button.hh-ws50f-lang, button.hh-ws50e-lang, aside.hh-ws50f-rail button.hh-ws50f-thm, aside.hh-ws50f-rail button.hh-ws50f-av-out) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(aside.hh-ws50f-rail button.hh-ws50f-thm, aside.hh-ws50f-rail button.hh-ws50f-av-out) {
  background: #211d17 !important;
  background-color: #211d17 !important;
  border: 1px solid rgba(232, 194, 126, 0.22) !important;
  color: #efe6d5 !important;
  -webkit-text-fill-color: #efe6d5 !important;
}

/* QA-079: Unauthenticated Guest Mode (/canvas/, /3d/, /studio/) Day & Night Warm Champagne / Obsidian-Gold */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) :is(body.hanhai-canvas-gate, main.hanhai-canvas-gate) {
  background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #faf5eb 70%) !important;
  background-color: #faf5eb !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hanhai-canvas-gate-card {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  box-shadow: 0 20px 48px rgba(18,15,11,0.06) !important;
  color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) :is(body.hanhai-canvas-gate, main.hanhai-canvas-gate) {
  background: radial-gradient(circle at 50% 35%, #17130e 0%, #0b0a09 75%) !important;
  background-color: #0b0a09 !important;
  color: #f2eadb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.hanhai-canvas-gate-card {
  background: linear-gradient(180deg, #1b1610 0%, #13100c 100%) !important;
  background-color: #17130d !important;
  border: 1px solid rgba(229, 184, 105, 0.24) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65) !important;
  color: #f2eadb !important;
}
/* Canvas Guest Gate layout: clear 76px fixed desktop rail / bottom mobile rail, stack footer below centered card */
html body.hanhai-canvas-gate main.hanhai-canvas-gate {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
}
html body.hanhai-canvas-gate .hanhai-canvas-gate-card {
  width: min(420px, 100%) !important;
  margin: auto !important;
  box-sizing: border-box !important;
}
html body.hanhai-canvas-gate main.hanhai-canvas-gate footer.hh-ann-brand-footer {
  width: 100% !important;
  max-width: 1120px;
  margin: 24px auto 0 !important;
  box-sizing: border-box !important;
}
@media (min-width: 769px) {
  html body.hanhai-canvas-gate main.hanhai-canvas-gate {
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)) calc(76px + 24px) !important;
  }
}
@media (max-width: 768px) {
  html body.hanhai-canvas-gate main.hanhai-canvas-gate {
    padding: max(16px, env(safe-area-inset-top)) 12px max(24px, env(safe-area-inset-bottom)) calc(76px + 12px) !important;
  }
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(div.h3d-empty-state, div.h3d-result-empty-dashboard, div.h3d-result-promises > *, aside.h3d-history-rail, aside.h3d-history-rail > *) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(div.h3d-empty-state, div.h3d-result-empty-dashboard) :is(.h3d-has-svg, [class*="icon"], [class*="mark"]) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #5c3b0e !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(div.h3d-empty-state, div.h3d-result-empty-dashboard, div.h3d-result-promises > *, aside.h3d-history-rail, aside.h3d-history-rail > *) {
  background: linear-gradient(180deg, #1d1812 0%, #14110d 100%) !important;
  background-color: #17130d !important;
  border: 1px solid rgba(229, 184, 105, 0.22) !important;
  color: #f2eadb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(div.h3d-empty-state, div.h3d-result-empty-dashboard) :is(.h3d-has-svg, [class*="icon"], [class*="mark"]) {
  background: linear-gradient(135deg, #2d2316 0%, #1f180f 100%) !important;
  background-color: #261e13 !important;
  border: 1px solid rgba(232, 194, 126, 0.34) !important;
  color: #f3cd7d !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp div.hhsw-workspace-empty {
  background: linear-gradient(180deg, #1d1812 0%, #14110d 100%) !important;
  background-color: #17130d !important;
  border: 1px solid rgba(229, 184, 105, 0.24) !important;
  color: #f2eadb !important;
}

/* QA-048: /studio/ Day Mode search input, asset link, floating media pills, empty card */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(label.hhsw-filter.hhsw-search, a.hhsw-filter.hhsw-asset-link, .hhsw-workspace-empty) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3a2e1e !important;
  box-shadow: 0 2px 8px rgba(18,15,11,0.06) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp label.hhsw-filter.hhsw-search input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #2b2115 !important;
}

/* QA-048: /studio/ Night Mode frame slots & task action buttons (no cold #120f0b / #1a1612) */
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-composer .hhsw-frame-slot, .hhsw-task-actions button, button.hh367-act, .hh371-bar, .hh371-pill, label.hhsw-filter.hhsw-search, a.hhsw-filter.hhsw-asset-link) {
  background: linear-gradient(180deg, rgba(33, 29, 23, 0.94) 0%, rgba(24, 21, 17, 0.96) 100%) !important;
  background-color: #1d1a15 !important;
  border: 1px solid rgba(232, 194, 126, 0.22) !important;
  color: #f0e6d6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp label.hhsw-filter.hhsw-search input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: #f0e6d6 !important;
}

/* QA-052 & QA-063-REG: Universal Left Rail (aside.hh-ws50f-rail) Day & Night + Keep Grid Placeholder on /membership/ */
html[data-hh-ws50f] body :is(aside.ws42-rail, aside.site-rail, aside.hh-rail) {
  display: none !important;
}
/* CRITICAL (QA-063-REG): On /membership/, .hhsw-shell is grid-template-columns: 76px 1fr! Keep aside.hhsw-rail in column 1 invisibly so main.hhsw-membership stays in column 2 (1fr = 1844px)! */
html[data-hh-ws50f] body #hhswApp[data-hhsw-route="membership"] aside.hhsw-rail,
html[data-hh-ws50f] body[data-hh-route="membership"] #hhswApp aside.hhsw-rail {
  display: flex !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 76px !important;
  min-width: 76px !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(aside.hh-ws50f-rail, aside.hhsw-rail, aside.h3d-rail) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-right: 1px solid rgba(196, 160, 104, 0.24) !important;
  color: #3b3226 !important;
  box-shadow: 4px 0 20px rgba(18,15,11,0.06) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(button.hh-ws50e-lang, button.hh-ws50f-lang) {
  background: #faf5eb !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #4a3516 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(aside.hh-ws50f-rail, aside.hhsw-rail, aside.h3d-rail) {
  background: linear-gradient(180deg, #171410 0%, #12100d 100%) !important;
  background-color: #14120f !important;
  border-right: 1px solid rgba(232, 194, 126, 0.14) !important;
  color: #f0e6d6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(button.hh-ws50e-lang, button.hh-ws50f-lang) {
  background: #211d17 !important;
  background-color: #211d17 !important;
  border: 1px solid rgba(232, 194, 126, 0.22) !important;
  color: #efe6d5 !important;
}

/* QA-061: Left-Rail Avatar Popover (#hhv-3d-account-menu-v1) Warm Obsidian-Gold (Night) & Warm Ivory (Day) */
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(#hhv-3d-account-menu-v1, section.hhv-3d-account-menu-v1, .hhv-account-menu) {
  background: linear-gradient(180deg, #1b1712 0%, #120f0c 100%) !important;
  background-color: #16130f !important;
  border: 1px solid rgba(232, 194, 126, 0.30) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(232, 194, 126, 0.10) !important;
  color: #f3eadb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhv-3d-account-menu-v1 :is(.hhv-account-overview, .hhv-appearance-options, .hhv-appearance-segmented) {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhv-3d-account-menu-v1 :is(.hhv-account-stat, .hhv-appearance-control, .hhv-account-appearance, a, button:not([aria-checked="true"]):not(.is-active)) {
  background: linear-gradient(180deg, #241f18 0%, #1b1712 100%) !important;
  background-color: #211c15 !important;
  border: 1px solid rgba(232, 194, 126, 0.20) !important;
  color: #efe6d5 !important;
  box-shadow: none !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhv-3d-account-menu-v1 :is(.hhv-account-stat span, .hhv-appearance-control > span, .hhv-account-appearance > span) {
  color: #b9ab93 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhv-3d-account-menu-v1 :is(.hhv-account-stat strong, b[data-hhv-3d-account-name]) {
  color: #f7eedf !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhv-3d-account-menu-v1 :is(.hhv-appearance-option[aria-checked="true"], .hhv-appearance-option.is-active) {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e4b45c !important;
  border: 1px solid rgba(252, 224, 162, 0.85) !important;
  color: #211506 !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(#hhv-3d-account-menu-v1, section.hhv-3d-account-menu-v1, .hhv-account-menu) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  box-shadow: 0 20px 48px rgba(120, 86, 36, 0.18) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhv-3d-account-menu-v1 :is(.hhv-account-overview, .hhv-appearance-options, .hhv-appearance-segmented) {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhv-3d-account-menu-v1 :is(.hhv-account-stat, .hhv-appearance-control, .hhv-account-appearance, a, button:not([aria-checked="true"]):not(.is-active)) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  box-shadow: none !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhv-3d-account-menu-v1 :is(.hhv-account-stat span, .hhv-appearance-control > span, .hhv-account-appearance > span) {
  color: #7c684c !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhv-3d-account-menu-v1 :is(.hhv-account-stat strong, b[data-hhv-3d-account-name]) {
  color: #281b0c !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhv-3d-account-menu-v1 :is(.hhv-appearance-option[aria-checked="true"], .hhv-appearance-option.is-active) {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e4b45c !important;
  border: 1px solid rgba(196, 142, 54, 0.72) !important;
  color: #211506 !important;
  font-weight: 700 !important;
}

/* QA-049 & QA-051: Canvas List (/canvas/) & Canvas Editor (/canvas/?project=37) Day & Night */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone,
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone.hanhai-canvas-list-ws42,
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone :is(.hanhai-canvas-standalone, .canvas-app, .canvas-stage, .canvas-engine-shell, .hhce-root, .hhce-viewport) {
  background: #faf5eb !important;
  background-color: #faf5eb !important;
  background-image: none !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone .hhce-grid {
  background-color: #faf5eb !important;
  background-image: radial-gradient(rgba(140, 105, 50, 0.11) 1px, transparent 1.3px) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone :is(.hhce-shape.hhce-shape-image, a.c5-credits, .ws42-shell a:not(.ws42-card):not(.c5-newtile), a.hh-tpl1-link, .c5-more-wrap button, a#hh-fx3b-avatar, button.c7-am-btn, button.c5-zoom) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone :is(.project-block, .project-title-row, .project-selector, .project-menu-trigger, .project-title-row input, button.c5-back, .c5-more-wrap, button.c5-zoom svg) {
  color: #241a0c !important;
  -webkit-text-fill-color: #241a0c !important;
  stroke: #241a0c !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone :is(span.c5-counts, .save-state, .c721-save, .c721-save-t) {
  color: #6e5838 !important;
  -webkit-text-fill-color: #6e5838 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone button.c7-tb:not(.is-on) {
  background: rgba(255, 252, 245, 0.85) !important;
  color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone button.c7-tb:not(.is-on) :is(svg, path) {
  color: #3b3226 !important;
  stroke: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone :is(button.c7-tb.is-on, button.c7-tb:first-child) {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e4b45c !important;
  border: 1px solid rgba(196, 142, 54, 0.55) !important;
  color: #231505 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone :is(button.c7-tb.is-on, button.c7-tb:first-child) :is(svg, path) {
  color: #231505 !important;
  stroke: #231505 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-canvas-standalone :is(span.canvas-bounded-media, .hhce-bounded-media, .hhce-bounded-media.is-loading, .canvas-bounded-media.is-loading img.hhce-media-content, img.hhce-media-content) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-canvas-standalone :is(span.canvas-bounded-media, .hhce-bounded-media, .hhce-bounded-media.is-loading, .canvas-bounded-media.is-loading img.hhce-media-content, img.hhce-media-content, .hhce-shape.hhce-shape-image) {
  background: #1c1711 !important;
  background-color: #1c1711 !important;
  border-color: rgba(232, 194, 126, 0.20) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-canvas-standalone :is(.c5-top-left, .project-block, .project-title-row, .project-selector, .project-menu-trigger, .project-title-row input) {
  color: #f5ebd6 !important;
  -webkit-text-fill-color: #f5ebd6 !important;
}
/* QA-072(2) & QA-083(4): /canvas/ 5-column Project Hub Night & Day cards and .hh57-cnt-badge */
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(a.ws42-card, .ws42-card, article.canvas-project-card) {
  background: linear-gradient(180deg, #1f1a14 0%, #16120e 100%) !important;
  background-color: #1a1510 !important;
  border: 1px solid rgba(218, 175, 102, 0.22) !important;
  color: #f2eadb !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(a.c5-newtile, article.canvas-project-card, a.ws42-card, .ws42-card) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .ws42-card .hh57-cnt-badge {
  background: rgba(24, 19, 13, 0.88) !important;
  background-color: #1b150e !important;
  border: 1px solid rgba(232, 194, 126, 0.38) !important;
  color: #f3cd7d !important;
  -webkit-text-fill-color: #f3cd7d !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .ws42-card .hh57-cnt-badge {
  background: rgba(253, 248, 236, 0.92) !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3a260a !important;
  -webkit-text-fill-color: #3a260a !important;
}
/* QA-068(1), QA-081(2), QA-083(2,3): /assets/ & /studio/ Day/Night Polish */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp button.hhsw-asset-favorite {
  background: rgba(255, 255, 255, 0.94) !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp button.hhsw-filter {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-prompt-row, div.hhsw-prompt-row) {
  background: rgba(34, 27, 18, 0.92) !important;
  background-color: rgba(34, 27, 18, 0.92) !important;
  border: 1px solid rgba(218, 178, 108, 0.22) !important;
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-media-tile.hhsw-share-selected {
  background: rgba(218, 178, 108, 0.08) !important;
  background-color: rgba(218, 178, 108, 0.08) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-asset-card[data-asset-type="model3d"] .hhsw-asset-media, span.hhsw-gallery-cover.hhsw-gallery-model) {
  background: #14110d !important;
  background-color: #14110d !important;
  background-image: none !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp button.hhsw-icon-btn {
  background: #1c1711 !important;
  background-color: #1c1711 !important;
  border: 1px solid rgba(232, 194, 126, 0.24) !important;
  color: #f0e6d6 !important;
}
body.hanhai-canvas-standalone .hhce-bounded-media img.hhce-media-content {
  opacity: 1 !important;
  visibility: visible !important;
}
body.hanhai-canvas-standalone :is(.canvas-bounded-media-state, .canvas-bounded-media-state.is-loading, .hhce-media-loading, .canvas-media-loading),
body.hanhai-canvas-standalone .hhce-bounded-media.hh-loaded::before,
body.hanhai-canvas-standalone .hhce-bounded-media.hh-loaded::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
html body :is(a#hh-fx3b-avatar, .c5-top-right a#hh-fx3b-avatar) {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  flex: 0 0 32px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}
html body :is(a#hh-fx3b-avatar img, .c5-top-right a#hh-fx3b-avatar img) {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) .ws42-card .ws42-prev {
  background: linear-gradient(135deg, #221c15 0%, #18140f 100%) !important;
  background-color: #1c1711 !important;
  border: 1px solid rgba(232, 194, 126, 0.16) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) .ws42-card .ws42-prev {
  background: #FFFFFF !important;
  border: 1px solid rgba(196, 160, 104, 0.18) !important;
}

/* QA-050 & QA-065(1): /3d/ Day & Night Complete Unification */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone section.h3d-create-hero {
  background: #FFFFFF !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(div.h3d-selected-cover, div.h3d-artifact-thumbnail, .h3d-history-rail .h3d-artifact-thumbnail) {
  background: #FFFFFF !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(div.h3d-artifact-thumbnail > div, .h3d-artifact-placeholder, .h3d-artifact-empty) {
  background: #1c1711 !important;
  background-color: #1c1711 !important;
  border: 1px solid rgba(232, 194, 126, 0.22) !important;
  color: #e8decb !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-result-recent-grid button, .h3d-history-rail button, .h3d-recent-card-top) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(span.h3d-recent-card-action, .h3d-artifact-thumbnail span, .h3d-selected-cover span) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  font-weight: 600 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-artifact-thumbnail img:not(.hh-3d-light-thumb) {
  filter: none !important;
  mix-blend-mode: normal !important;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 10px !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-artifact-thumbnail img.hh-3d-light-thumb {
  filter: brightness(1.05) contrast(1.05) !important;
  mix-blend-mode: multiply !important;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 10px !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(select, textarea, input, select.h3d-model-select, .h3d-mode-card, .h3d-panel textarea, .h3d-panel select, .h3d-submit-card, .h3d-workspace-tabs, .h3d-user-chip) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(select, textarea, input, select.h3d-model-select, .h3d-mode-card, .h3d-panel textarea, .h3d-panel select, .h3d-submit-card, .h3d-workspace-tabs, .h3d-user-chip) {
  background: #1c1711 !important;
  background-color: #1c1711 !important;
  border: 1px solid rgba(212, 175, 106, 0.26) !important;
  color: #f0e6d6 !important;
}
/* QA-070 & QA-070-Fix2: /3d/ Sub-views (æç 3D & çæè®°å½) Panels, Stat Cards, Record Cards, Pills & Action Buttons */
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(div.h3d-selected-cover, div.h3d-artifact-thumbnail, .h3d-history-rail .h3d-artifact-thumbnail) {
  background: #14110d !important;
  background-color: #14110d !important;
  background-image: none !important;
  border: 1px solid rgba(232, 194, 126, 0.22) !important;
  color: #f2eadb !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(section.h3d-panel, section.h3d-panel.h3d-task-list-panel, section.h3d-storage-card, section.h3d-task-summary-grid > *, article.h3d-task-card, .h3d-stored-assets article, .h3d-stored-assets > div, [class*="h3d-"][class*="card"], [class*="h3d-"][class*="stat"], [class*="h3d-"][class*="item"], [class*="h3d-history"] article, [class*="h3d-record"]) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-stored-assets button, .h3d-stored-assets a, section.h3d-storage-card button, span.h3d-task-result-actions button, [class*="h3d-history"] button) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #2b1a06 !important;
  -webkit-text-fill-color: #2b1a06 !important;
  font-weight: 600 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone article.h3d-task-card div.h3d-task-meta {
  color: #6e5838 !important;
  -webkit-text-fill-color: #6e5838 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone article.h3d-task-card :is(div.h3d-task-result, span.h3d-task-result-copy) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #4a3414 !important;
  -webkit-text-fill-color: #4a3414 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(span.h3d-pill.is-cyan, span.h3d-pill.is-green, span.h3d-pill) {
  background: rgba(216, 155, 60, 0.16) !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(188, 128, 36, 0.36) !important;
  color: #5c3b0e !important;
  -webkit-text-fill-color: #5c3b0e !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-stored-assets-head small {
  color: #8a5a14 !important;
  -webkit-text-fill-color: #8a5a14 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(section.h3d-panel, section.h3d-panel.h3d-task-list-panel, section.h3d-storage-card, section.h3d-task-summary-grid > *, article.h3d-task-card, .h3d-stored-assets article, .h3d-stored-assets > div, [class*="h3d-"][class*="card"], [class*="h3d-"][class*="stat"], [class*="h3d-"][class*="item"], [class*="h3d-history"] article, [class*="h3d-record"]) {
  background: linear-gradient(180deg, #1e1913 0%, #15120e 100%) !important;
  background-color: #181410 !important;
  border: 1px solid rgba(232, 194, 126, 0.22) !important;
  color: #f2eadb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-stored-assets button, .h3d-stored-assets a, section.h3d-storage-card button, span.h3d-task-result-actions button, [class*="h3d-history"] button) {
  background: linear-gradient(180deg, #2b2318 0%, #1f1912 100%) !important;
  background-color: #241d14 !important;
  border: 1px solid rgba(232, 194, 126, 0.36) !important;
  color: #f5dca8 !important;
  -webkit-text-fill-color: #f5dca8 !important;
  font-weight: 600 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone article.h3d-task-card div.h3d-task-meta {
  color: #cbb894 !important;
  -webkit-text-fill-color: #cbb894 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone article.h3d-task-card :is(div.h3d-task-result, span.h3d-task-result-copy) {
  background: rgba(216, 155, 60, 0.14) !important;
  background-color: #241d14 !important;
  border-color: rgba(232, 194, 126, 0.24) !important;
  color: #ebd5ab !important;
  -webkit-text-fill-color: #ebd5ab !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(span.h3d-pill.is-cyan, span.h3d-pill.is-green, span.h3d-pill) {
  background: rgba(216, 155, 60, 0.16) !important;
  background-color: #2a2013 !important;
  border: 1px solid rgba(243, 203, 122, 0.36) !important;
  color: #f5dca8 !important;
  -webkit-text-fill-color: #f5dca8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-stored-assets-head small {
  color: #e5b869 !important;
  -webkit-text-fill-color: #e5b869 !important;
}
html body.hanhai-3d-standalone :is(button.h3d-primary-button, button.h3d-primary-button.is-small) {
  background: linear-gradient(135deg, #f5cb76 0%, #d89632 100%) !important;
  background-color: #e4b254 !important;
  border: 1px solid rgba(216, 155, 60, 0.72) !important;
  color: #231505 !important;
  -webkit-text-fill-color: #231505 !important;
  font-weight: 700 !important;
}
body.hanhai-3d-standalone :is(svg, [class*="icon"]) {
  color: #d89b3c !important;
}

/* QA-062: /assets/ Day & Night 3D Badge (span.hhsw-gallery-type), Card Footer & 3D Preview Box */
html body #hhswApp :is(span.hhsw-gallery-type, .hhsw-asset-card .hhsw-gallery-type) {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e5b55d !important;
  color: #23180a !important;
  border: 1px solid rgba(255, 236, 190, 0.68) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(140, 96, 28, 0.22) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-asset-card, .hhsw-gallery-card, button.hhsw-gallery-caption) {
  background: #FFFFFF !important;
  background-color: #faf5eb !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-asset-card, .hhsw-gallery-card, button.hhsw-gallery-caption) {
  background: linear-gradient(180deg, #211c15 0%, #18140f 100%) !important;
  background-color: #1c1712 !important;
  border-color: rgba(232, 194, 126, 0.20) !important;
  color: #efe7d8 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-asset-card[data-asset-type="model3d"] .hhsw-asset-media, span.hhsw-gallery-cover.hhsw-gallery-model) {
  background: #FFFFFF !important;
  background-color: #faf5eb !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp span.hhsw-gallery-cover.hhsw-gallery-model img[src$=".webp"] {
  filter: none !important;
  mix-blend-mode: normal !important;
  background: transparent !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp span.hhsw-gallery-cover.hhsw-gallery-model img[src$=".svg"] {
  filter: brightness(1.04) contrast(1.04) !important;
  mix-blend-mode: multiply !important;
  background: transparent !important;
}

/* QA-053: Home (/) Night Mode Category Pills & Points Hint */
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(span.hanhai-home-points, .hanhai-home-credit-hint, button.hh-discover-tab:not(.is-active):not([aria-selected="true"]), .hh-discover-control) {
  background: linear-gradient(180deg, rgba(36, 30, 22, 0.92) 0%, rgba(26, 22, 16, 0.95) 100%) !important;
  background-color: #211c15 !important;
  border: 1px solid rgba(232, 194, 126, 0.22) !important;
  color: #efe7d8 !important;
  -webkit-text-fill-color: #efe7d8 !important;
}

/* QA-074(3): Prevent 76px Left Rail .hh-points-mini from truncating 'Points 201,553' to 'Points 201' */
html body :is(.hh-points-mini, .hh-ws50f-points, .hhsw-rail-points, aside.hh-ws50f-rail [class*="point"], aside.hhsw-rail [class*="point"]) {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
  font-size: 10px !important;
  line-height: 1.22 !important;
  text-align: center !important;
  padding: 4px 2px !important;
}

/* QA-076: /lingbaoge/ Day Mode Top Banner & Category Navigation Bar Warm Champagne-Gold */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hlbg-top-banner, .hlbg-development-note, .hlbg-header, .hlbg-toolbar, .hlbg-subnav, .hlbg-nav, .hlbg-tabs, .hlbg-cats, .hlbg-category-bar, .hlbg-filter-bar, header[class*="hlbg"], section[class*="hlbg"], div[class*="hlbg-top"], div[class*="hlbg-head"], div[class*="hlbg-bar"], div[class*="hlbg-nav"], div[class*="hlbg-cat"], div[class*="hlbg-tab"], .hh-lbg-header, .hh-lbg-banner, .hh-lbg-tabs) {
  background: #FFFFFF !important;
  background-color: #faf5eb !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: none !important;
}

/* QA-055 & QA-065(3): /templates/ Full-Viewport Non-Repeating Background & Top-Right Canvas Button */
html.hh-has-tpl1,
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hh-tpl1,
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hh-tpl1 {
  min-height: 100vh !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  background-size: 100% 100% !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hh-tpl1 header.tp-top {
  background: rgba(23, 20, 16, 0.95) !important;
  background-color: #171410 !important;
  border-bottom: 1px solid rgba(232, 194, 126, 0.16) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hh-tpl1 :is(button:not(.on), header.tp-top a, a.hh-tpl1-link) {
  background: #211c15 !important;
  background-color: #211c15 !important;
  border: 1px solid rgba(232, 194, 126, 0.24) !important;
  color: #efe7d8 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hh-tpl1 :is(header.tp-top a, a.hh-tpl1-link) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3a260a !important;
  font-weight: 600 !important;
}

/* ============================================================================
   QA-056 & QA-060: /membership/ Account Overview Lock, 5 Bespoke Luxury Tier
   Palettes (Day & Night), and Warm Champagne Comparison Table
   ============================================================================ */
body #hhswApp .hhsw-member-stats {
  min-height: 118px !important;
  transition: none !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(main.hhsw-membership, .hhsw-member-title, .hhsw-member-profile, .hhsw-member-stats, .hhpf-account-heading, .hhpf-card-period, ul.hhsw-benefits) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(div.hhsw-membership-content, .hhsw-membership-content, .hhsw-member-hero, .hhsw-member-user, .hhpf-membership-toolbar, .hh28) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-member-stat, .hhpf-member-perk, button.hhsw-membership-close, button.hhsw-member-recharge, .hhpf-membership-toolbar button:not(.active)) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-member-hero, .hhsw-member-user, .hhsw-membership-content, .hh28, .hhsw-rules) :is(h1, h2, h3, h4, strong, b) {
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-member-hero, .hhsw-member-user, .hhsw-membership-content, .hh28, .hhsw-rules) :is(p, small, ul, li, span:not(.hhsw-plan-tag)) {
  color: #403629 !important;
  -webkit-text-fill-color: #403629 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(main.hhsw-membership, .hhpf-account-heading, .hhpf-card-period, ul.hhsw-benefits) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-member-hero, .hhsw-member-title, .hhsw-member-user, .hhsw-member-profile, .hhsw-member-stats, .hhpf-membership-toolbar) {
  background: linear-gradient(180deg, #1d1914 0%, #15120e 100%) !important;
  background-color: #181510 !important;
  border: 1px solid rgba(232, 194, 126, 0.22) !important;
  color: #f2eadb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-member-stat, .hhpf-member-perk, button.hhsw-membership-close, .hhpf-membership-toolbar button:not(.active)) {
  background: #221d16 !important;
  background-color: #221d16 !important;
  border: 1px solid rgba(232, 194, 126, 0.20) !important;
  color: #efe7d8 !important;
}

/* Translucent inner sections inside all 5 membership tier cards so each card's bespoke gradient flows top-to-bottom */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp nav.hhsw-plan-tabs {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card :is(.hhsw-plan-points, .hhpf-value-metric, .hhpf-value-metric.is-peacock, .hhpf-quota-heading, .hhpf-quota-group, li.hhpf-quota-heading, li.hhpf-quota-group, li.hhpf-concurrency, li.hhpf-member-price) {
  background: #faf5eb !important;
  background-color: #faf5eb !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card :is(.hhsw-plan-points, .hhpf-value-metric, .hhpf-value-metric.is-peacock, li.hhpf-quota-heading, li.hhpf-quota-group, li.hhpf-concurrency, li.hhpf-member-price) {
  background: rgba(255, 242, 214, 0.05) !important;
  background-color: rgba(255, 242, 214, 0.05) !important;
  background-image: none !important;
  border: 1px solid rgba(232, 194, 126, 0.16) !important;
  color: #efe7d8 !important;
}

/* --- Tier 1: æ®éä¼å (Entry Pearl Champagne) --- */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(1) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  box-shadow: 0 8px 24px rgba(140, 108, 60, 0.07) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(1) .hhsw-plan-tag {
  background: #f6f0e4 !important;
  color: #6e5226 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(1) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #ead2a5 0%, #cfb078 100%) !important;
  color: #2b1d0b !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(1) {
  background: linear-gradient(180deg, #1e1c19 0%, #151412 100%) !important;
  border: 1px solid rgba(212, 182, 132, 0.24) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(1) .hhsw-plan-tag {
  background: rgba(212, 182, 132, 0.16) !important;
  color: #e5d1b0 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(1) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #d8be8e 0%, #b89860 100%) !important;
  color: #1b140b !important;
}

/* --- Tier 2: æ åä¼å (Warm Bronze Gold) --- */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(2) {
  background: #FFFFFF !important;
  border: 1px solid rgba(204, 158, 84, 0.46) !important;
  box-shadow: 0 10px 28px rgba(160, 116, 48, 0.10) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(2) .hhsw-plan-tag {
  background: #f6f0e4 !important;
  color: #744e14 !important;
  border: 1px solid rgba(204, 158, 84, 0.45) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(2) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #efd093 0%, #d4a352 100%) !important;
  color: #281a07 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(2) {
  background: linear-gradient(180deg, #251f16 0%, #18140e 100%) !important;
  border: 1px solid rgba(224, 182, 110, 0.36) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(2) .hhsw-plan-tag {
  background: rgba(224, 182, 110, 0.22) !important;
  color: #f2d59b !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(2) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #e6c37e 0%, #c89643 100%) !important;
  color: #1c1306 !important;
}

/* --- Tier 3: é«çº§ä¼å (Radiant Amber Gold - Centerpiece Highlight) --- */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(3) {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(216, 155, 60, 0.78) !important;
  box-shadow: 0 16px 36px rgba(216, 155, 60, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(3) .hhsw-plan-tag {
  background: linear-gradient(135deg, #f6cf7d 0%, #df9d38 100%) !important;
  color: #261704 !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(3) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #f5cb76 0%, #d89632 100%) !important;
  color: #231505 !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(216, 150, 50, 0.28) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(3) {
  background: linear-gradient(165deg, #322412 0%, #22180c 58%, #181109 100%) !important;
  border: 1.5px solid rgba(243, 203, 122, 0.68) !important;
  box-shadow: 0 16px 38px rgba(216, 155, 60, 0.24) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(3) .hhsw-plan-tag {
  background: linear-gradient(135deg, #f5cb76 0%, #d89632 100%) !important;
  color: #231505 !important;
  font-weight: 700 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(3) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #f5cb76 0%, #d89632 100%) !important;
  color: #231505 !important;
  font-weight: 700 !important;
}

/* --- Tier 4: ä¸ä¸ä¼å (Imperial Rose-Copper Gold) --- */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(4) {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(208, 132, 68, 0.68) !important;
  box-shadow: 0 14px 32px rgba(200, 120, 55, 0.16) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(4) .hhsw-plan-tag {
  background: linear-gradient(135deg, #f2be82 0%, #d1813c 100%) !important;
  color: #2b1404 !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(4) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #f2be7e 0%, #cc7e35 100%) !important;
  color: #261204 !important;
  font-weight: 700 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(4) {
  background: linear-gradient(165deg, #352014 0%, #24150d 58%, #180f0a 100%) !important;
  border: 1.5px solid rgba(238, 172, 110, 0.58) !important;
  box-shadow: 0 14px 34px rgba(208, 132, 68, 0.22) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(4) .hhsw-plan-tag {
  background: rgba(238, 172, 110, 0.28) !important;
  color: #fbd4ad !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(4) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #eea968 0%, #c6732c 100%) !important;
  color: #210f03 !important;
  font-weight: 700 !important;
}

/* --- Tier 5: åç¨ä¼å (Flagship Royal Black-Gilt) --- */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-plan-card:nth-child(5), .hhsw-plan-card.business) {
  background: #faf5eb !important;
  border: 2px solid rgba(188, 128, 36, 0.86) !important;
  box-shadow: 0 18px 42px rgba(188, 128, 36, 0.26), inset 0 1px 0 rgba(255, 250, 235, 0.85) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-plan-card:nth-child(5), .hhsw-plan-card.business) .hhsw-plan-tag {
  background: linear-gradient(135deg, #2c1e0c 0%, #1a1106 100%) !important;
  color: #fde6b0 !important;
  -webkit-text-fill-color: #fde6b0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(248, 212, 132, 0.65) !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-plan-card:nth-child(5), .hhsw-plan-card.business) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #2c1e0c 0%, #4a3314 100%) !important;
  color: #fde6b0 !important;
  -webkit-text-fill-color: #fde6b0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(248, 212, 132, 0.65) !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 22px rgba(44, 30, 12, 0.28) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-plan-card:nth-child(5), .hhsw-plan-card.business) {
  background: linear-gradient(160deg, #3f2d12 0%, #291d0b 52%, #1a1207 100%) !important;
  border: 2px solid rgba(248, 212, 132, 0.82) !important;
  box-shadow: 0 18px 44px rgba(216, 155, 60, 0.30) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-plan-card:nth-child(5), .hhsw-plan-card.business) .hhsw-plan-tag {
  background: linear-gradient(135deg, #fae09e 0%, #d89b3c 100%) !important;
  color: #1e1305 !important;
  -webkit-text-fill-color: #1e1305 !important;
  font-weight: 700 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-plan-card:nth-child(5), .hhsw-plan-card.business) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #fae09e 0%, #d89b3c 55%, #b8791e 100%) !important;
  color: #1e1305 !important;
  -webkit-text-fill-color: #1e1305 !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 24px rgba(216, 155, 60, 0.32) !important;
}
/* QA-060-Fix2 & QA-069(3): li.hhpf-plan-access (åç¨ææÂ·ä¼åéåÂ·å»åçæ°´å°) & .hhsw-trial-duration (7å¤©ä½éªæææ) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(li.hhpf-plan-access, .hhsw-trial-duration) {
  background: rgba(216, 155, 60, 0.14) !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(188, 128, 36, 0.35) !important;
  color: #5c3b0e !important;
  -webkit-text-fill-color: #5c3b0e !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(li.hhpf-plan-access *, .hhsw-trial-duration *) {
  background: transparent !important;
  color: #5c3b0e !important;
  -webkit-text-fill-color: #5c3b0e !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(li.hhpf-plan-access, .hhsw-trial-duration) {
  background: rgba(216, 155, 60, 0.16) !important;
  background-color: #2b2113 !important;
  border: 1px solid rgba(243, 203, 122, 0.38) !important;
  color: #f6dca8 !important;
  -webkit-text-fill-color: #f6dca8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(li.hhpf-plan-access *, .hhsw-trial-duration *) {
  background: transparent !important;
  color: #f6dca8 !important;
  -webkit-text-fill-color: #f6dca8 !important;
}

/* QA-069(1): /membership/ çå¾æå¡ (.hh28 section.card:nth-child(1..3) & button.buy) 3-Tier Luxury Skins */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hh28 section.card:nth-child(1) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(196, 158, 92, 0.42) !important;
  box-shadow: 0 10px 26px rgba(140, 108, 60, 0.08) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hh28 section.card:nth-child(2) {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(216, 155, 60, 0.75) !important;
  box-shadow: 0 14px 34px rgba(216, 155, 60, 0.18) !important;
  color: #281b09 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hh28 section.card:nth-child(3) {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(204, 126, 56, 0.78) !important;
  box-shadow: 0 16px 38px rgba(200, 120, 55, 0.20) !important;
  color: #261405 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hh28 section.card:nth-child(1) {
  background: linear-gradient(165deg, #241f18 0%, #171410 100%) !important;
  border: 1px solid rgba(216, 182, 124, 0.34) !important;
  color: #f2eadb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hh28 section.card:nth-child(2) {
  background: linear-gradient(165deg, #322412 0%, #22180c 58%, #181109 100%) !important;
  border: 1.5px solid rgba(243, 203, 122, 0.68) !important;
  box-shadow: 0 14px 34px rgba(216, 155, 60, 0.22) !important;
  color: #f7efe0 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hh28 section.card:nth-child(3) {
  background: linear-gradient(165deg, #382214 0%, #25160d 58%, #190f0a 100%) !important;
  border: 1.5px solid rgba(238, 172, 110, 0.72) !important;
  box-shadow: 0 16px 38px rgba(208, 132, 68, 0.24) !important;
  color: #faeee2 !important;
}
html body #hhswApp .hh28 section.card button.buy {
  background: linear-gradient(135deg, #f5cb76 0%, #d89632 100%) !important;
  background-color: #e4b254 !important;
  border: 1px solid rgba(216, 155, 60, 0.72) !important;
  color: #231505 !important;
  -webkit-text-fill-color: #231505 !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(216, 150, 50, 0.25) !important;
}

/* QA-069(2) & QA-069-Fix2: /membership/ + ç§¯ååå¼ Modal (.hh-modal-card.hh-recharge-card) Day & Night Warm Gold Unification */
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hh-modal-card.hh-recharge-card, .hh-recharge-card, div.hh-recharge-body) {
  background: linear-gradient(180deg, #1d1812 0%, #14110d 100%) !important;
  background-color: #18140f !important;
  border-color: rgba(232, 194, 126, 0.32) !important;
  color: #f2eadb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-recharge-card :is(button.hh-modal-close, header.hh-recharge-head, div.hh-recharge-wallet, section.hh-recharge-rights, .hh-recharge-payment, aside.hh-recharge-summary) {
  background: linear-gradient(180deg, #241e16 0%, #1a1510 100%) !important;
  background-color: #201a13 !important;
  border: 1px solid rgba(232, 194, 126, 0.22) !important;
  color: #f2eadb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-recharge-card :is(.hh-recharge-rights-grid > div, button.hh-recharge-plan:not(.is-selected), button.hh-recharge-method:not(.is-selected)) {
  background: #1a1510 !important;
  background-color: #1a1510 !important;
  border: 1px solid rgba(232, 194, 126, 0.18) !important;
  color: #efe7d8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-recharge-card :is(button.hh-recharge-plan.is-selected, button.hh-recharge-method.is-selected) {
  background: linear-gradient(160deg, #352613 0%, #24190c 100%) !important;
  background-color: #2c1f10 !important;
  border: 1.5px solid rgba(243, 203, 122, 0.82) !important;
  box-shadow: 0 8px 22px rgba(216, 155, 60, 0.24) !important;
  color: #fae6bc !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-recharge-card :is(strong[data-recharge-wallet], .hh-recharge-plan strong, .hh-recharge-plan b, dd.is-points, .hh-recharge-kicker) {
  color: #f3cd7d !important;
  -webkit-text-fill-color: #f3cd7d !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hh-recharge-card button.hh-recharge-plan.is-selected::after,
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hh-recharge-card button.hh-recharge-plan.is-selected::before,
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hh-recharge-card button.hh-recharge-method.is-selected::after,
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-recharge-card button.hh-recharge-plan.is-selected::after,
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-recharge-card button.hh-recharge-plan.is-selected::before,
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-recharge-card button.hh-recharge-method.is-selected::after {
  background: transparent !important;
  background-color: transparent !important;
  border-color: rgba(243, 203, 122, 0.55) !important;
  color: #f3cd7d !important;
  -webkit-text-fill-color: #f3cd7d !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hh-modal-card.hh-recharge-card, .hh-recharge-card, div.hh-recharge-body) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-recharge-card :is(button.hh-modal-close, header.hh-recharge-head, div.hh-recharge-wallet, section.hh-recharge-rights, .hh-recharge-payment, aside.hh-recharge-summary) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-recharge-card :is(.hh-recharge-rights-grid > div, button.hh-recharge-plan:not(.is-selected), button.hh-recharge-method:not(.is-selected)) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-recharge-card :is(button.hh-recharge-plan.is-selected, button.hh-recharge-method.is-selected) {
  background: #FFFFFF !important;
  background-color: #f6f0e4 !important;
  border: 1.5px solid rgba(208, 145, 48, 0.84) !important;
  box-shadow: 0 8px 20px rgba(196, 140, 48, 0.16) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-recharge-card :is(strong[data-recharge-wallet], .hh-recharge-plan strong, .hh-recharge-plan b, dd.is-points, .hh-recharge-kicker) {
  color: #7a4e10 !important;
  -webkit-text-fill-color: #7a4e10 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hh-recharge-card button.hh-recharge-plan.is-selected::after,
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hh-recharge-card button.hh-recharge-plan.is-selected::before,
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hh-recharge-card button.hh-recharge-method.is-selected::after,
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-recharge-card button.hh-recharge-plan.is-selected::after,
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-recharge-card button.hh-recharge-plan.is-selected::before,
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-recharge-card button.hh-recharge-method.is-selected::after {
  background: transparent !important;
  background-color: transparent !important;
  border-color: rgba(188, 128, 36, 0.55) !important;
  color: #9a6412 !important;
  -webkit-text-fill-color: #9a6412 !important;
}
html body .hh-recharge-card button.hh-primary {
  background: linear-gradient(135deg, #f5cb76 0%, #d89632 100%) !important;
  background-color: #e4b254 !important;
  border: 1px solid rgba(216, 155, 60, 0.72) !important;
  color: #231505 !important;
  -webkit-text-fill-color: #231505 !important;
  font-weight: 700 !important;
}

/* QA-060C & QA-107: /membership/ Bottom Comparison Table (.hhsw-compare) & Rules (.hhsw-rules) Day & Night Warm Champagne (No Cold Sky-Blue or Cold White!) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(section.hhsw-compare, .hhsw-compare, .hhsw-rules) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-compare .hhsw-compare-scroll {
  background: transparent !important;
  background-color: transparent !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-compare :is(table, thead, tbody, tr, th:not(.is-current):not(.is-featured), td:not(.is-current):not(.is-featured)) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-compare tr:nth-child(even):not(.section) td:not(.is-current):not(.is-featured) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-compare tr.section td {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  color: #3b3226 !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-compare :is(th.is-current, td.is-current, th.is-featured, td.is-featured) {
  background: linear-gradient(180deg, #ebd2a0 0%, #e2c285 100%) !important;
  background-color: #e6cba0 !important;
  border-color: rgba(196, 138, 42, 0.52) !important;
  color: #16130f !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-compare span.hhpf-compare-focus {
  background: #f6f0e4 !important;
  color: #3b3226 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(section.hhsw-compare, .hhsw-compare, .hhsw-rules) {
  background: linear-gradient(180deg, #1d1914 0%, #15120e 100%) !important;
  background-color: #181510 !important;
  border: 1px solid rgba(232, 194, 126, 0.22) !important;
  color: #f2eadb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-compare :is(table, thead, tbody, tr, th, td) {
  background-color: #1b1712 !important;
  border-color: rgba(232, 194, 126, 0.16) !important;
  color: #efe6d5 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-compare tr.section td {
  background: #241e16 !important;
  background-color: #241e16 !important;
  color: #f3cb7a !important;
  font-weight: 700 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-compare :is(th.is-current, td.is-current) {
  background: rgba(232, 194, 126, 0.16) !important;
  background-color: #2b2215 !important;
  border-color: rgba(243, 203, 122, 0.42) !important;
  color: #fae2a8 !important;
  font-weight: 700 !important;
}

/* QA-057 & QA-065(2): /agreements/ & /announcements/ Day & Night Unification (including circular index badges & hero pills) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(section.hhlc-hero, .hhlc-hero) {
  background: #FFFFFF !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body section.hhlc-hero :is(p, span, small, div, strong, em, h1, h2) {
  color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(section.hhlc-hero span, .hhlc-nav a span, .hhlc-aside a span, .hhlc-card h2 span, .hhlc-card h3 span, [class*="hhlc-"][class*="index"], [class*="hhlc-"][class*="badge"]) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hhlc-alert {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border-color: rgba(196, 145, 62, 0.42) !important;
  color: #3a2810 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(section.hhlc-hero, .hhlc-hero) {
  background: linear-gradient(135deg, #1d1914 0%, #15120e 100%) !important;
  background-color: #181510 !important;
  border: 1px solid rgba(232, 194, 126, 0.24) !important;
  color: #f2eadb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body section.hhlc-hero :is(p, span, small, div, strong, em, h1, h2) {
  color: #e8decb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(section.hhlc-hero span, .hhlc-nav a span, .hhlc-aside a span, .hhlc-card h2 span, .hhlc-card h3 span, [class*="hhlc-"][class*="index"], [class*="hhlc-"][class*="badge"]) {
  background: linear-gradient(135deg, #2d2418 0%, #211a11 100%) !important;
  background-color: #251e14 !important;
  border: 1px solid rgba(232, 194, 126, 0.32) !important;
  color: #f3cb7a !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.hhlc-alert, aside.hhlc-aside, .hhlc-aside a, .hhlc-reference-list a, .hhlc-card, .hhlc-scope, .hhlc-topbar, .hhlc-action) {
  background: linear-gradient(180deg, #1e1a14 0%, #17140f 100%) !important;
  background-color: #1a1612 !important;
  border: 1px solid rgba(232, 194, 126, 0.20) !important;
  color: #f0e6d6 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(article.hhsw-announcement-latest, .hhsw-announcement-latest-mark, .hhsw-announcement-latest-body, section.hhsw-announcement-history-section, details.hhsw-announcement-history-card) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(article.hhsw-announcement-latest, .hhsw-announcement-latest-mark, .hhsw-announcement-latest-body, section.hhsw-announcement-history-section) {
  background: linear-gradient(180deg, #1d1914 0%, #15120e 100%) !important;
  background-color: #181510 !important;
  border-color: rgba(232, 194, 126, 0.22) !important;
  color: #f2eadb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp details.hhsw-announcement-history-card {
  background: #211c15 !important;
  background-color: #211c15 !important;
  border: 1px solid rgba(232, 194, 126, 0.22) !important;
  color: #f2eadb !important;
}

/* ============================================================================
   QA-084 ~ QA-090: Secondary Modals, Popovers, Task Detail Drawers & 3D Sub-Modes
   ============================================================================ */
/* QA-084: /lingbaoge/ Artwork Detail Modal (dialog.hlbg-detail) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(dialog.hlbg-detail, dialog.hlbg-detail .hlbg-detail-info) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body dialog.hlbg-detail :is(.hlbg-detail-media, section.hlbg-prompt, .hlbg-prompt) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body dialog.hlbg-detail button.hlbg-remix {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d6a44e !important;
  border: 1px solid rgba(188, 128, 36, 0.55) !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body dialog.hlbg-detail :is(button:not(.hlbg-remix), a:not(.hlbg-remix)) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(dialog.hlbg-detail, dialog.hlbg-detail .hlbg-detail-info) {
  background: linear-gradient(180deg, #17130d 0%, #120e0a 100%) !important;
  background-color: #15110c !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body dialog.hlbg-detail :is(.hlbg-detail-media, section.hlbg-prompt, .hlbg-prompt) {
  background: #1e1811 !important;
  background-color: #1e1811 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.22) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body dialog.hlbg-detail button.hlbg-remix {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d6a44e !important;
  border: 1px solid rgba(243, 203, 122, 0.65) !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
  font-weight: 700 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body dialog.hlbg-detail :is(button:not(.hlbg-remix), a:not(.hlbg-remix)) {
  background: rgba(34, 27, 18, 0.92) !important;
  background-color: rgba(34, 27, 18, 0.92) !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
  -webkit-text-fill-color: #f3e5c8 !important;
}
html body dialog.hlbg-detail :is(button, a):focus,
html body dialog.hlbg-detail :is(button, a):focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(214, 158, 58, 0.35) !important;
}

/* QA-085 & QA-094: /assets/ Asset Detail Modal (div.hhsw-asset-modal & section.hhsw-asset-modal) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(div.hhsw-asset-modal, section.hhsw-asset-modal, .hhsw-asset-modal, div.hhsw-asset-modal-head, div.hhsw-asset-modal-body, div.hhsw-asset-detail-side) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(div.hhsw-asset-preview, .hhsw-gallery-cover, .hhsw-gallery-model, div.hhsw-asset-detail-media, div.hhsw-asset-detail-prompt, div.hhsw-asset-detail-prompt p, div.hhsw-asset-detail-prompt pre, div.hhsw-asset-detail-prompt > div:not(:first-child), div.hhsw-asset-detail-list > div) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html body #hhswApp .hhsw-asset-modal .hhsw-library-actions {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: rgba(18,15,11,0.09) !important;
}
html body #hhswApp .hhsw-asset-modal :is(button.primary, button.hhsw-primary, .hhsw-library-actions a:first-child) {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d6a44e !important;
  border: 1px solid rgba(188, 128, 36, 0.60) !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-asset-modal :is(button:not(.primary):not(.hhsw-primary), .hhsw-library-actions a:not(:first-child)) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(div.hhsw-asset-modal, section.hhsw-asset-modal, .hhsw-asset-modal, div.hhsw-asset-modal-head, div.hhsw-asset-modal-body, div.hhsw-asset-detail-side) {
  background: rgba(23, 19, 13, 0.96) !important;
  background-color: #17130d !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(div.hhsw-asset-preview, .hhsw-gallery-cover, .hhsw-gallery-model, div.hhsw-asset-detail-media, div.hhsw-asset-detail-prompt, div.hhsw-asset-detail-prompt p, div.hhsw-asset-detail-prompt pre, div.hhsw-asset-detail-prompt > div:not(:first-child), div.hhsw-asset-detail-list > div) {
  background: #1e1811 !important;
  background-color: #1e1811 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.22) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-asset-modal :is(button:not(.primary):not(.hhsw-primary), .hhsw-library-actions a:not(:first-child)) {
  background: #261e14 !important;
  background-color: #261e14 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
  -webkit-text-fill-color: #f3e5c8 !important;
}

/* QA-086: / Home Generation Preference Popover (div#hhc-home-menu-preference) */
html body :is(div#hhc-home-menu-preference, .hhc-home-agent-preference-panel, .hhc-home-agent-preference-shell) {
  max-height: min(740px, calc(100vh - 28px)) !important;
  height: auto !important;
  overflow-y: auto !important;
  padding: 10px 14px !important;
}
html body #hhc-home-menu-preference :is(.hhc-agent-preference-header, section.hhc-agent-preference-section, .hhc-agent-preference-options) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
html body #hhc-home-menu-preference .hhc-agent-preference-header {
  padding: 2px 0 6px !important;
  margin-bottom: 4px !important;
}
html body #hhc-home-menu-preference section.hhc-agent-preference-section {
  padding: 4px 0 !important;
  margin: 0 !important;
  gap: 4px !important;
}
html body #hhc-home-menu-preference div.hhc-agent-preference-status {
  padding: 7px 10px !important;
  margin-top: 4px !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div#hhc-home-menu-preference, .hhc-home-agent-preference-panel, .hhc-home-agent-preference-shell) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 18px 42px rgba(120, 86, 36, 0.16) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhc-home-menu-preference :is(.hhc-agent-preference-header, section.hhc-agent-preference-section) {
  border-color: rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhc-home-menu-preference :is(button.hhc-agent-preference-choice:not(.is-active), button.hhc-agent-preference-close, button.hhc-agent-auto-toggle:not(.is-on), button.hhc-agent-model-trigger, div.hhc-agent-preference-status) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
  box-shadow: none !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhc-home-menu-preference button.hhc-agent-preference-choice.is-active {
  background: rgba(214, 158, 58, 0.22) !important;
  background-color: #edd7b0 !important;
  border: 1px solid #d69e3a !important;
  outline: none !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
  box-shadow: inset 3px 0 0 #d69e3a !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhc-home-menu-preference button.hhc-agent-auto-toggle.is-on {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d69e3a !important;
  border: 1px solid #c89236 !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div#hhc-home-menu-preference, .hhc-home-agent-preference-panel, .hhc-home-agent-preference-shell) {
  background: linear-gradient(180deg, #1b1610 0%, #14100b 100%) !important;
  background-color: #18130d !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.72) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhc-home-menu-preference :is(.hhc-agent-preference-header, section.hhc-agent-preference-section) {
  border-color: rgba(218, 178, 108, 0.18) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhc-home-menu-preference :is(button.hhc-agent-preference-choice:not(.is-active), button.hhc-agent-preference-close, button.hhc-agent-auto-toggle:not(.is-on), button.hhc-agent-model-trigger, div.hhc-agent-preference-status) {
  background: #241c13 !important;
  background-color: #241c13 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.22) !important;
  color: #f3e5c8 !important;
  -webkit-text-fill-color: #f3e5c8 !important;
  box-shadow: none !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhc-home-menu-preference button.hhc-agent-preference-choice.is-active {
  background: rgba(214, 158, 58, 0.22) !important;
  background-color: #332514 !important;
  border: 1px solid #d69e3a !important;
  outline: none !important;
  color: #fae6bc !important;
  -webkit-text-fill-color: #fae6bc !important;
  box-shadow: inset 3px 0 0 #d69e3a !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhc-home-menu-preference button.hhc-agent-auto-toggle.is-on {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d69e3a !important;
  border: 1px solid #e5b869 !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html body #hhc-home-menu-preference button.hhc-agent-preference-choice.is-active::before,
html body #hhc-home-menu-preference button.hhc-agent-preference-choice.is-active::after {
  background: #d69e3a !important;
  background-color: #d69e3a !important;
  border-color: #d69e3a !important;
}

/* QA-087 & QA-090(2): /studio/ Popover (div.hhsw-menu.hhsw-popover & portaled .hhsw-menu), Task Details (div.hh367-info) & Floating Toolbar Buttons (.hh371-bar button) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(div.hhsw-menu.hhsw-popover, .hhsw-menu, .hhsw-popover),
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div.hhsw-menu.hhsw-popover, .hhsw-menu, .hhsw-popover, .hhsw-single-portal .hhsw-menu) {
  background: #faf5eb !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-menu, .hhsw-popover) button:not(.selected):not(.is-selected):not([aria-selected="true"]),
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hhsw-menu, .hhsw-popover) button:not(.selected):not(.is-selected):not([aria-selected="true"]) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-menu, .hhsw-popover) button:is(.selected, .is-selected, [aria-selected="true"]),
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hhsw-menu, .hhsw-popover) button:is(.selected, .is-selected, [aria-selected="true"]) {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e4b45c !important;
  border: 1px solid rgba(188, 128, 36, 0.65) !important;
  color: #231505 !important;
  -webkit-text-fill-color: #231505 !important;
  font-weight: 700 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(div.hhsw-menu.hhsw-popover, .hhsw-menu, .hhsw-popover),
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.hhsw-menu.hhsw-popover, .hhsw-menu, .hhsw-popover, .hhsw-single-portal .hhsw-menu) {
  background: linear-gradient(180deg, #1c1610 0%, #14100b 100%) !important;
  background-color: #18130d !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-menu, .hhsw-popover) button:not(.selected):not(.is-selected):not([aria-selected="true"]),
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hhsw-menu, .hhsw-popover) button:not(.selected):not(.is-selected):not([aria-selected="true"]) {
  background: #221b12 !important;
  background-color: #221b12 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.20) !important;
  color: #f3e5c8 !important;
  -webkit-text-fill-color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-menu, .hhsw-popover) button:is(.selected, .is-selected, [aria-selected="true"]),
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hhsw-menu, .hhsw-popover) button:is(.selected, .is-selected, [aria-selected="true"]) {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d6a44e !important;
  border: 1px solid rgba(243, 203, 122, 0.68) !important;
  color: #231505 !important;
  -webkit-text-fill-color: #231505 !important;
  font-weight: 700 !important;
}
html body :is(.hhsw-menu, .hhsw-popover) button:is(.selected, .is-selected, [aria-selected="true"]) * {
  color: #231505 !important;
  -webkit-text-fill-color: #231505 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp div.hh367-info {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp div.hh367-info * {
  color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp div.hh367-info {
  background: rgba(30, 24, 16, 0.94) !important;
  background-color: rgba(30, 24, 16, 0.94) !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.24) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp div.hh367-info * {
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hh371-bar button, .hh371-pill button) {
  background: rgba(42, 33, 22, 0.94) !important;
  background-color: #2a2116 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #f3e5c8 !important;
  -webkit-text-fill-color: #f3e5c8 !important;
}

/* QA-088 & QA-090(1): /3d/ Upload Slots (.h3d-reference-slot), Summary Card (section.h3d-submit-card) & Task Detail Drawer (div.h3d-task-detail) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(section.h3d-panel, section.h3d-compact-model-picker, section.h3d-mode-panel, section.h3d-settings-panel, section.h3d-current-result-panel) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(div.h3d-reference-slot, .h3d-reference-slot > label, details.h3d-advanced-options, section.h3d-submit-card, .h3d-submit-card, div.h3d-task-detail, div.h3d-inline-note, .h3d-block-reason, button.h3d-mode-card:not(.is-selected), .h3d-mode-button:not(.is-selected), section.h3d-panel select, button.h3d-secondary-button, section.h3d-current-result-panel button:not(.h3d-primary-button)) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(button.h3d-mode-card.is-selected, .h3d-mode-button.is-selected) {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e4b45c !important;
  border: 1px solid rgba(188, 128, 36, 0.65) !important;
  color: #231505 !important;
  -webkit-text-fill-color: #231505 !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(button.h3d-mode-card.is-selected, .h3d-mode-button.is-selected) * {
  color: #231505 !important;
  -webkit-text-fill-color: #231505 !important;
}
html body.hanhai-3d-standalone span.h3d-reference-icon {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d6a44e !important;
  border: 1px solid rgba(214, 158, 58, 0.45) !important;
  color: #16130f !important;
}
html body.hanhai-3d-standalone span.h3d-reference-icon svg {
  color: #16130f !important;
  stroke: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone div.h3d-reference-slot {
  border-style: dashed !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone div.h3d-task-detail * {
  color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(div.h3d-reference-slot, .h3d-reference-slot > label, details.h3d-advanced-options, section.h3d-submit-card, .h3d-submit-card, div.h3d-inline-note, .h3d-block-reason, label.h3d-face-count-input, button.h3d-secondary-button, section.h3d-current-result-panel button:not(.h3d-primary-button)) {
  background: #1c1610 !important;
  background-color: #1c1610 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone div.h3d-reference-slot {
  border-style: dashed !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone aside.h3d-creation-pane {
  background: linear-gradient(180deg, rgba(24, 19, 13, 0.96) 0%, rgba(18, 14, 10, 0.96) 100%) !important;
  background-color: #16110c !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone div.h3d-task-detail {
  background: rgba(28, 22, 15, 0.94) !important;
  background-color: #1c160f !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.25) !important;
  color: #f3d9a4 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone div.h3d-task-detail * {
  color: #f3d9a4 !important;
}

/* QA-091: /canvas/?project=37 Popovers (.c7-pop, .c5-pop), Toolbar Active Button, Version Badge & /canvas/ Top-Right Buttons */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div.c7-pop, div.c5-pop, .c7-add-pop, .c5-zoom-pop, .export-popover) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 18px 42px rgba(120, 86, 36, 0.18) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-pop, .c5-pop) :is(input, label.c729-zin, .c7-search, button:hover, button:focus-visible) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-pop, .c5-pop) button:not(:hover) {
  background: transparent !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-pop, .c5-pop) :is(span, b, strong, svg) {
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-pop, .c5-pop) small {
  color: #6e5536 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-pop, .c5-pop) :is(hr, .c729-div) {
  border-color: rgba(18,15,11,0.09) !important;
  background: rgba(18,15,11,0.09) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.c7-pop, div.c5-pop, .c7-add-pop, .c5-zoom-pop, .export-popover) {
  background: linear-gradient(180deg, #1b1610 0%, #14100b 100%) !important;
  background-color: #18130d !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #f3e5c8 !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.72) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-pop, .c5-pop) :is(input, label.c729-zin, .c7-search, button:hover, button:focus-visible) {
  background: #261e14 !important;
  background-color: #261e14 !important;
  border-color: rgba(218, 178, 108, 0.24) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-pop, .c5-pop) button:not(:hover) {
  background: transparent !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-pop, .c5-pop) :is(span, b, strong, svg) {
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-pop, .c5-pop) small {
  color: #bfa982 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-pop, .c5-pop) :is(hr, .c729-div) {
  border-color: rgba(218, 178, 108, 0.20) !important;
  background: rgba(218, 178, 108, 0.20) !important;
}
html body :is(.c7-toolbar, .c5-dock) button:is(:first-child, .is-active, .active, [aria-pressed="true"], [aria-expanded="true"]),
html body button.c7-tb:is(:first-child, .is-active, .active, [aria-pressed="true"], [aria-expanded="true"]) {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d6a44e !important;
  border: 1px solid rgba(243, 203, 122, 0.68) !important;
  color: #16130f !important;
}
html body :is(.c7-toolbar, .c5-dock) button:is(:first-child, .is-active, .active, [aria-pressed="true"], [aria-expanded="true"]) svg,
html body button.c7-tb:is(:first-child, .is-active, .active, [aria-pressed="true"], [aria-expanded="true"]) svg {
  color: #16130f !important;
  stroke: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c5-top-left small, .c5-top-left span, .c5-sync, .c7-ver) {
  color: #7a6850 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.ws42-head a, .ws42-head button, a.hh-tpl1-link) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.ws42-head a, .ws42-head button, a.hh-tpl1-link) {
  background: rgba(32, 25, 17, 0.92) !important;
  background-color: #201911 !important;
  border: 1px solid rgba(218, 178, 108, 0.24) !important;
  color: #e8d5b5 !important;
  -webkit-text-fill-color: #e8d5b5 !important;
}

/* QA-092: /studio/ Filter Dropdown (div.hhsw-filter-menu) & Empty State Heading (.hhsw-empty-center h1) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hhsw-filter-menu {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 16px 36px rgba(120, 86, 36, 0.16) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hhsw-filter-menu button:not(.selected):not(.is-selected):not([aria-selected="true"]) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hhsw-filter-menu button:is(.selected, .is-selected, [aria-selected="true"]) {
  background: #edd7b0 !important;
  background-color: #edd7b0 !important;
  border: 1px solid #d69e3a !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
  font-weight: 700 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.hhsw-filter-menu {
  background: linear-gradient(180deg, #1b1610 0%, #14100b 100%) !important;
  background-color: #18130d !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.72) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.hhsw-filter-menu button:not(.selected):not(.is-selected):not([aria-selected="true"]) {
  background: #221b12 !important;
  background-color: #221b12 !important;
  border: 1px solid rgba(218, 178, 108, 0.20) !important;
  color: #f3e5c8 !important;
  -webkit-text-fill-color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.hhsw-filter-menu button:is(.selected, .is-selected, [aria-selected="true"]) {
  background: #332514 !important;
  background-color: #332514 !important;
  border: 1px solid #d69e3a !important;
  color: #fae6bc !important;
  -webkit-text-fill-color: #fae6bc !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hhsw-empty-center h1, .hhsw-empty-center h2, .hhsw-workspace-empty h1) {
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hhsw-empty-center h1, .hhsw-empty-center h2, .hhsw-workspace-empty h1) {
  color: #f3e5c8 !important;
  -webkit-text-fill-color: #f3e5c8 !important;
}

/* QA-093: /assets/ Batch Manage Floating Bar (div.hhsw-asset-bulk-bar) & Card Checkbox (button.hhsw-asset-select) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hhsw-asset-bulk-bar {
  background: rgba(255, 255, 255, 0.96) !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 16px 38px rgba(120, 86, 36, 0.18) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hhsw-asset-bulk-bar strong {
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hhsw-asset-bulk-bar button:not(.danger) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hhsw-asset-bulk-bar button.danger {
  background: #b84a39 !important;
  background-color: #b84a39 !important;
  border: 1px solid rgba(184, 74, 57, 0.65) !important;
  color: #fff8ef !important;
  -webkit-text-fill-color: #fff8ef !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.hhsw-asset-bulk-bar {
  background: rgba(26, 20, 14, 0.96) !important;
  background-color: #1a140e !important;
  border: 1px solid rgba(218, 178, 108, 0.30) !important;
  color: #f3e5c8 !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.72) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.hhsw-asset-bulk-bar strong {
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.hhsw-asset-bulk-bar button:not(.danger) {
  background: #2a2116 !important;
  background-color: #2a2116 !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #f3e5c8 !important;
  -webkit-text-fill-color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.hhsw-asset-bulk-bar button.danger {
  background: #a83e2e !important;
  background-color: #a83e2e !important;
  border: 1px solid rgba(216, 102, 84, 0.55) !important;
  color: #fff8ef !important;
  -webkit-text-fill-color: #fff8ef !important;
}
html body button.hhsw-asset-select {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  border-radius: 8px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.14s ease !important;
}
html body:not(.hhsw-asset-bulk-mode) #hhswApp[data-hhsw-route="assets"] .hhsw-asset-card:not(:hover):not(.is-selected) button.hhsw-asset-select:not(.is-selected):not(.selected):not([aria-pressed="true"]):not([aria-checked="true"]) {
  opacity: 0 !important;
  pointer-events: none !important;
}
html body.hhsw-asset-bulk-mode button.hhsw-asset-select,
html body .hhsw-asset-card:hover button.hhsw-asset-select {
  opacity: 1 !important;
  pointer-events: auto !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body button.hhsw-asset-select:not(.is-selected):not(.selected):not([aria-pressed="true"]):not([aria-checked="true"]) {
  background: rgba(255, 255, 255, 0.94) !important;
  background-color: #faf5eb !important;
  border: 1.5px solid rgba(18,15,11,0.09) !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 0 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body button.hhsw-asset-select:not(.is-selected):not(.selected):not([aria-pressed="true"]):not([aria-checked="true"]) {
  background: rgba(28, 22, 15, 0.88) !important;
  background-color: #1c160f !important;
  border: 1.5px solid rgba(218, 178, 108, 0.42) !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 0 !important;
}
html body :is(button.hhsw-asset-select:is(.is-selected, .selected, [aria-pressed="true"], [aria-checked="true"]), .hhsw-asset-card.is-selected button.hhsw-asset-select) {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d69e3a !important;
  border: 1.5px solid #c89236 !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* QA-095: / Home Agent Mode Popover (div#hhc-home-menu-mode.hhc-home-compat-menu) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 18px 42px rgba(120, 86, 36, 0.16) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) button:not(.active):not(.is-active):not([aria-pressed="true"]) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) button:is(.active, .is-active, [aria-pressed="true"]) {
  background: #edd7b0 !important;
  background-color: #edd7b0 !important;
  border: 1px solid #d69e3a !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
  font-weight: 700 !important;
  box-shadow: inset 3px 0 0 #d69e3a !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) {
  background: linear-gradient(180deg, #1b1610 0%, #14100b 100%) !important;
  background-color: #18130d !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #f3e5c8 !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.72) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) button:not(.active):not(.is-active):not([aria-pressed="true"]) {
  background: #241c13 !important;
  background-color: #241c13 !important;
  border: 1px solid rgba(218, 178, 108, 0.22) !important;
  color: #f3e5c8 !important;
  -webkit-text-fill-color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) button:is(.active, .is-active, [aria-pressed="true"]) {
  background: #332514 !important;
  background-color: #332514 !important;
  border: 1px solid #d69e3a !important;
  color: #fae6bc !important;
  -webkit-text-fill-color: #fae6bc !important;
  font-weight: 700 !important;
  box-shadow: inset 3px 0 0 #d69e3a !important;
}

/* QA-096: Left-Rail Language Popover (div.hh-ws50e-pop) & Guest Login Modal (div.hh-modal-card.hh-login-modal) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hh-ws50e-pop {
  background: #faf5eb !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 16px 38px rgba(120, 86, 36, 0.16) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hh-ws50e-pop button:not([aria-checked="true"]):not(.is-active) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hh-ws50e-pop button:is([aria-checked="true"], .is-active) {
  background: #edd7b0 !important;
  background-color: #edd7b0 !important;
  border: 1px solid #d69e3a !important;
  color: #16130f !important;
  font-weight: 700 !important;
  outline: none !important;
  box-shadow: inset 3px 0 0 #d69e3a !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.hh-ws50e-pop {
  background: #18130d !important;
  background-color: #18130d !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #f3e5c8 !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.72) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.hh-ws50e-pop button:not([aria-checked="true"]):not(.is-active) {
  background: #221b12 !important;
  background-color: #221b12 !important;
  border: 1px solid rgba(218, 178, 108, 0.18) !important;
  color: #f3e5c8 !important;
  outline: none !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.hh-ws50e-pop button:is([aria-checked="true"], .is-active) {
  background: #332514 !important;
  background-color: #332514 !important;
  border: 1px solid #d69e3a !important;
  color: #fae6bc !important;
  font-weight: 700 !important;
  outline: none !important;
  box-shadow: inset 3px 0 0 #d69e3a !important;
}
html body div.hh-ws50e-pop button:is(:focus, :focus-visible) {
  outline: none !important;
  border-color: #d69e3a !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div.hh-modal-card.hh-login-modal, section.hh-auth-shell.hh-auth-modal-shell, .hh-login-modal div.hh-auth-card, .hh-login-modal div.hh-auth-pane) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-login-modal .hh-auth-brand b {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-login-modal div.hh-auth-tabs {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-login-modal div.hh-auth-tabs button:not(.is-active) {
  background: transparent !important;
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-login-modal div.hh-auth-tabs button.is-active {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e4b45c !important;
  border: 1px solid rgba(188, 128, 36, 0.55) !important;
  color: #16130f !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-login-modal :is(input:not([type="checkbox"]), .hh-auth-pass button) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  outline: none !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-login-modal button.hh-modal-close {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-login-modal aside.hh59-art {
  background-color: #2c2012 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-login-modal :is(aside.hh59-art::after, aside.hh59-art .hh59-cap) {
  background: linear-gradient(180deg, rgba(36, 25, 12, 0.0) 0%, rgba(36, 25, 12, 0.84) 100%) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.hh-modal-card.hh-login-modal, section.hh-auth-shell.hh-auth-modal-shell, .hh-login-modal div.hh-auth-card, .hh-login-modal div.hh-auth-pane) {
  background: linear-gradient(180deg, #17130d 0%, #120e0a 100%) !important;
  background-color: #15110c !important;
  border-color: rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-login-modal .hh-auth-brand b {
  background: #221b12 !important;
  background-color: #221b12 !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3d9a4 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-login-modal div.hh-auth-tabs {
  background: #221b12 !important;
  background-color: #221b12 !important;
  border: 1px solid rgba(218, 178, 108, 0.24) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-login-modal div.hh-auth-tabs button:not(.is-active) {
  background: transparent !important;
  color: #cbb894 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-login-modal div.hh-auth-tabs button.is-active {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d6a44e !important;
  border: 1px solid rgba(243, 203, 122, 0.65) !important;
  color: #16130f !important;
  font-weight: 700 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-login-modal :is(input:not([type="checkbox"]), .hh-auth-pass button) {
  background: #1e1811 !important;
  background-color: #1e1811 !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #f3e5c8 !important;
  outline: none !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-login-modal button.hh-modal-close {
  background: #261e14 !important;
  background-color: #261e14 !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-login-modal aside.hh59-art {
  background: radial-gradient(110% 70% at 100% 0%, rgba(218, 178, 108, 0.28) 0%, rgba(218, 178, 108, 0) 60%), radial-gradient(90% 60% at 0% 100%, rgba(168, 122, 48, 0.22) 0%, rgba(168, 122, 48, 0) 70%), linear-gradient(160deg, #241c13 0%, #1a140d 52%, #120e09 100%) !important;
  background-color: #17120c !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-login-modal :is(aside.hh59-art::after, aside.hh59-art .hh59-cap) {
  background: linear-gradient(180deg, rgba(18, 14, 10, 0.0) 0%, rgba(18, 14, 10, 0.88) 100%) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-asset-modal span.hhsw-gallery-cover.hhsw-gallery-model img[src$=".webp"] {
  mix-blend-mode: normal !important;
  filter: none !important;
  background: transparent !important;
}

/* QA-097: /membership/ Subscribe Checkout Modal (section.hhsw-pay-modal[data-payment-modal]) */
html body section.hhsw-pay-modal :is(.hhsw-pay-head, .hhsw-pay-actions, .hhsw-pay-summary, .hhsw-pay-methods, .hhaic-checkout-coupon > div, .hhaic-checkout-coupon p, .hhaic-checkout-coupon small) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp section.hhsw-pay-modal[data-payment-modal],
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body section.hhsw-pay-modal[data-payment-modal] {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 22px 54px rgba(120, 86, 36, 0.20) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body section.hhsw-pay-modal :is(.hhsw-pay-head h2, .hhsw-pay-summary b, .hhsw-pay-method b, .hhsw-pay-method strong) {
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body section.hhsw-pay-modal :is(.hhsw-pay-head p, .hhsw-pay-summary span, .hhsw-pay-method small, .hhsw-pay-method span:not(.hhsw-pay-method-check)) {
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body section.hhsw-pay-modal :is(.hhsw-pay-summary > div, section.hhaic-checkout-coupon, .hhsw-pay-method:not(.active):not(.is-selected)) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body section.hhsw-pay-modal .hhsw-pay-method:is(.active, .is-selected, [aria-checked="true"]) {
  background: #edd7b0 !important;
  background-color: #edd7b0 !important;
  border: 1.5px solid #d49b38 !important;
  color: #16130f !important;
  box-shadow: inset 3px 0 0 #d49b38 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body section.hhsw-pay-modal :is(input#hhaicCouponCode, .hhaic-checkout-coupon input) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  outline: none !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body section.hhsw-pay-modal :is(button.hhsw-pay-close, button.hhsw-pay-secondary, button[data-hhaic-apply]) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp section.hhsw-pay-modal[data-payment-modal],
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body section.hhsw-pay-modal[data-payment-modal] {
  background: linear-gradient(180deg, #1b1610 0%, #14100b 100%) !important;
  background-color: #17130d !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f5ebd6 !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.75) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body section.hhsw-pay-modal :is(.hhsw-pay-head h2, .hhsw-pay-summary b, .hhsw-pay-method b, .hhsw-pay-method strong) {
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body section.hhsw-pay-modal :is(.hhsw-pay-head p, .hhsw-pay-summary span, .hhsw-pay-method small, .hhsw-pay-method span:not(.hhsw-pay-method-check)) {
  color: #cbb693 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body section.hhsw-pay-modal :is(.hhsw-pay-summary > div, section.hhaic-checkout-coupon, .hhsw-pay-method:not(.active):not(.is-selected)) {
  background: #241c13 !important;
  background-color: #241c13 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.22) !important;
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body section.hhsw-pay-modal .hhsw-pay-method:is(.active, .is-selected, [aria-checked="true"]) {
  background: #332514 !important;
  background-color: #332514 !important;
  border: 1.5px solid #d49b38 !important;
  color: #fae6bc !important;
  box-shadow: inset 3px 0 0 #d49b38 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body section.hhsw-pay-modal :is(input#hhaicCouponCode, .hhaic-checkout-coupon input) {
  background: #1e1811 !important;
  background-color: #1e1811 !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #f5ebd6 !important;
  outline: none !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body section.hhsw-pay-modal :is(button.hhsw-pay-close, button.hhsw-pay-secondary, button[data-hhaic-apply]) {
  background: #2a2116 !important;
  background-color: #2a2116 !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #f3e5c8 !important;
}
html body section.hhsw-pay-modal button.hhsw-pay-primary {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d6a44e !important;
  border: 1px solid #d49b38 !important;
  color: #241705 !important;
  -webkit-text-fill-color: #241705 !important;
  font-weight: 700 !important;
}
html body section.hhsw-pay-modal .hhsw-pay-method:not(.active):not(.is-selected):not([aria-checked="true"]) .hhsw-pay-method-check {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}
html body section.hhsw-pay-modal .hhsw-pay-method:is(.active, .is-selected, [aria-checked="true"]) .hhsw-pay-method-check {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d49b38 !important;
  border-color: #c89236 !important;
  color: #241705 !important;
  -webkit-text-fill-color: #241705 !important;
}

/* QA-098: /membership/?tab=recharge Permanent Points Recharge Modal (div.hh-modal-card.hh-recharge-card) */
html body .hh-recharge-card button.hh-recharge-plan small.hh-ws96c-bill {
  display: block !important;
  margin-top: 2px !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hh-recharge-card :is(h2, h3, strong, b, dt, dd),
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-recharge-card :is(h2, h3, strong, b, dt, dd) {
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-recharge-card :is(button.hh-secondary, button[data-recharge-cancel]) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
  -webkit-text-fill-color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-recharge-card a {
  color: #9a6412 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hh-recharge-card :is(h2, h3, strong, b, dt, dd),
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-recharge-card :is(h2, h3, strong, b, dt, dd) {
  color: #f5ebd6 !important;
  -webkit-text-fill-color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-recharge-card :is(button.hh-secondary, button[data-recharge-cancel]) {
  background: #261e14 !important;
  background-color: #261e14 !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
  -webkit-text-fill-color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh-recharge-card a {
  color: #e5b869 !important;
}

/* QA-099: /3d/ 360Â° Preview Model Download Progress Banner (div.h3d-model-load-progress) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.h3d-model-load-progress {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.h3d-model-load-progress strong {
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.h3d-model-load-progress small {
  color: #403629 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.h3d-model-load-progress {
  background: #1e1811 !important;
  background-color: #1e1811 !important;
  background-image: none !important;
  border: 1px solid rgba(212, 166, 86, 0.32) !important;
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.h3d-model-load-progress strong {
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.h3d-model-load-progress small {
  color: #cbb693 !important;
}
html body div.h3d-model-load-progress progress {
  accent-color: #d49b38 !important;
}
html body div.h3d-model-load-progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d49b38 !important;
}

/* QA-100 & QA-100-Fix2: /canvas/?project=37 Top-Left Project Name & Full-Screen Startup Loader (.hanhai-canvas-loader, #c733-load) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-top, .c7-top input, input[aria-label="Project name"], .project-title-row input, .c5-top-left input) {
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-top, .c7-top input, input[aria-label="Project name"], .project-title-row input, .c5-top-left input) {
  color: #f5ebd6 !important;
  -webkit-text-fill-color: #f5ebd6 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hanhai-canvas-loader, #c733-load) {
  background: radial-gradient(circle at 50% 38%, rgba(218, 178, 108, 0.22), transparent 36%), #faf5eb !important;
  background-color: #faf5eb !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hanhai-canvas-loader b, #c733-load b, #c733-load span) {
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hanhai-canvas-loader > span, #c733-load i) {
  border-color: rgba(18,15,11,0.09) !important;
  border-top-color: #d49b38 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hanhai-canvas-loader, #c733-load) {
  background: radial-gradient(circle at 50% 38%, rgba(212, 166, 86, 0.16), transparent 36%), linear-gradient(180deg, #17130d 0%, #120e0a 100%) !important;
  background-color: #14100b !important;
  color: #f5ebd6 !important;
  -webkit-text-fill-color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hanhai-canvas-loader b, #c733-load b, #c733-load span) {
  color: #f5ebd6 !important;
  -webkit-text-fill-color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hanhai-canvas-loader > span, #c733-load i) {
  border-color: rgba(212, 166, 86, 0.26) !important;
  border-top-color: #e5b869 !important;
}

/* QA-101: /agreements/ Highlight Box (div.hhlc-note), Headings & Anchor scroll-margin-top */
html body :is(.hhlc-section, .hhlc-card[id], main section[id], main article[id], [id^="sec-"], [id^="term-"], [id^="clause-"]) {
  scroll-margin-top: 96px !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body div.hhlc-note {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hhlc-section h2, .hhlc-card h2, .hhlc-card h3, div.hhlc-note strong, div.hhlc-note b) {
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hhlc-card p, .hhlc-card li, .hhlc-section p, .hhlc-section li) {
  color: #403629 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body div.hhlc-note {
  background: #221b12 !important;
  background-color: #221b12 !important;
  background-image: none !important;
  border: 1px solid rgba(212, 166, 86, 0.32) !important;
  color: #f2e6d0 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hhlc-section h2, .hhlc-card h2, .hhlc-card h3, div.hhlc-note strong, div.hhlc-note b) {
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hhlc-card p, .hhlc-card li, .hhlc-section p, .hhlc-section li) {
  color: #d8c6a8 !important;
}

/* QA-102: /announcements/ & /templates/ Day & Night Unification */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hhsw-page-head h1, .hhsw-announcement-page h1, .hhsw-announcement-page h2, .hhsw-announcement-page h3, .hhsw-announcement-card h2, .hhsw-announcement-card h3, details.hhsw-announcement-history-card summary strong, header.tp-top h1, body.hh-tpl1 h1) {
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hhsw-announcement-content, .hhsw-announcement-content p, .hhsw-announcement-card p) {
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hhsw-announcement-history-list > div, details.hhsw-announcement-history-card, .hhsw-announcement-history-card) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hhsw-tools {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hhsw-tools :is(a.hhsw-filter, button.hhsw-filter) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hh-tpl1 :is(p, small, .tp-empty p, .tp-empty span) {
  color: #6e5a3e !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hhsw-page-head h1, .hhsw-announcement-page h1, .hhsw-announcement-page h2, .hhsw-announcement-page h3, .hhsw-announcement-card h2, .hhsw-announcement-card h3, details.hhsw-announcement-history-card summary strong, header.tp-top h1, body.hh-tpl1 h1) {
  color: #f5ebd6 !important;
  -webkit-text-fill-color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hhsw-announcement-content, .hhsw-announcement-content p, .hhsw-announcement-card p) {
  color: #d8c6a8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hhsw-announcement-history-list > div, details.hhsw-announcement-history-card, .hhsw-announcement-history-card) {
  background: #1e1811 !important;
  background-color: #1e1811 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.24) !important;
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hhsw-tools {
  background: #1a140e !important;
  background-color: #1a140e !important;
  border: 1px solid rgba(218, 178, 108, 0.24) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hhsw-tools :is(a.hhsw-filter, button.hhsw-filter) {
  background: #261e14 !important;
  background-color: #261e14 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #f2e4c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hh-tpl1 :is(p, small, .tp-empty p, .tp-empty span) {
  color: #bfa982 !important;
}

/* QA-103: /canvas/?project=37 Assets Drawer (aside.c7-am) & Project Switcher Dropdown (div.project-menu) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(aside.c7-am, div.project-menu, .c7-am, .project-menu) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 18px 42px rgba(72, 48, 16, 0.16) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-am-head, .c7-am-tabs, .c7-am-body, .c7-am-list, .project-menu-head, .project-menu-list, .project-menu-actions) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-am input, .c7-am-search, .c7-am-search input, .c7-am button:not(.is-active):not(.active):not([aria-selected="true"]):not([aria-pressed="true"]), .c7-am-item, .project-menu button:not(.is-active), .project-menu-item:not(.is-active)) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-am button:is(.is-active, .active, [aria-selected="true"], [aria-pressed="true"]), .project-menu button.is-active, .project-menu-item.is-active) {
  background: #edd7b0 !important;
  background-color: #edd7b0 !important;
  border: 1.5px solid #d49b38 !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-am h2, .c7-am h3, .c7-am strong, .c7-am b, .project-menu h2, .project-menu h3, .project-menu strong, .project-menu b) {
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-am span, .c7-am small, .c7-am p, .project-menu span, .project-menu small, .project-menu p) {
  color: #403629 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(aside.c7-am, div.project-menu, .c7-am, .project-menu) {
  background: linear-gradient(180deg, #1b1610 0%, #14100b 100%) !important;
  background-color: #17130d !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f5ebd6 !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.56) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-am-head, .c7-am-tabs, .c7-am-body, .c7-am-list, .project-menu-head, .project-menu-list, .project-menu-actions) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: rgba(218, 178, 108, 0.18) !important;
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-am input, .c7-am-search, .c7-am-search input, .c7-am button:not(.is-active):not(.active):not([aria-selected="true"]):not([aria-pressed="true"]), .c7-am-item, .project-menu button:not(.is-active), .project-menu-item:not(.is-active)) {
  background: #261e14 !important;
  background-color: #261e14 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.22) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-am button:is(.is-active, .active, [aria-selected="true"], [aria-pressed="true"]), .project-menu button.is-active, .project-menu-item.is-active) {
  background: #332514 !important;
  background-color: #332514 !important;
  border: 1.5px solid #d49b38 !important;
  color: #fae6bc !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-am h2, .c7-am h3, .c7-am strong, .c7-am b, .project-menu h2, .project-menu h3, .project-menu strong, .project-menu b) {
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-am span, .c7-am small, .c7-am p, .project-menu span, .project-menu small, .project-menu p) {
  color: #bfa982 !important;
}

/* QA-104: /canvas/?project=37 History Panel (div.right-panel.is-open.c7-history) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div.right-panel.c7-history, div.c7-history, .right-panel.is-open) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 18px 42px rgba(72, 48, 16, 0.16) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-history h2, .c7-history h3, .c7-history h4, .c7-history strong, .c7-history b) {
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c7-history span, .c7-history small, .c7-history p, .c7-history time) {
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c71-hist-card, .c7-history article, .c7-history .hist-item, .c7-history button:not(.is-active):not(.active):not([aria-pressed="true"]):not([aria-selected="true"])) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.c71-hist-thumbs > div, .c71-hist-thumbs span, .c7-history [class*="thumb"]) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .c7-history button:is(.is-active, .active, [aria-pressed="true"], [aria-selected="true"]) {
  background: #edd7b0 !important;
  background-color: #edd7b0 !important;
  border: 1.5px solid #d49b38 !important;
  color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.right-panel.c7-history, div.c7-history, .right-panel.is-open) {
  background: linear-gradient(180deg, #1b1610 0%, #14100b 100%) !important;
  background-color: #17130d !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f5ebd6 !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.56) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-history h1, .c7-history h2, .c7-history h3, .c7-history h4, .c7-history strong, .c7-history b, .c7-history label) {
  color: #f5ebd6 !important;
  -webkit-text-fill-color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c7-history span, .c7-history small, .c7-history p, .c7-history time, .c7-history div) {
  color: #d8c6a8 !important;
  -webkit-text-fill-color: #d8c6a8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c71-hist-card, .c7-history article, .c7-history .hist-item, .c7-history input, .c7-history select, .c7-history button:not(.is-active):not(.active):not([aria-pressed="true"]):not([aria-selected="true"])) {
  background: #241c13 !important;
  background-color: #241c13 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.22) !important;
  color: #f5ebd6 !important;
  -webkit-text-fill-color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.c71-hist-thumbs > div, .c71-hist-thumbs span, .c7-history [class*="thumb"]) {
  background: #1e170f !important;
  background-color: #1e170f !important;
  border: 1px solid rgba(218, 178, 108, 0.18) !important;
  color: #bfa982 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .c7-history button:is(.is-active, .active, [aria-pressed="true"], [aria-selected="true"]) {
  background: #332514 !important;
  background-color: #332514 !important;
  border: 1.5px solid #d49b38 !important;
  color: #fae6bc !important;
}

/* QA-105: /studio/ Image Hover Toolbar Upscale / Cut out Points Confirmation Popover (div.hhsw357-pop) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div.hhsw357-pop, .hhsw357-pop) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 16px 38px rgba(72, 48, 16, 0.16) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hhsw357-pop :is(strong, b, h3, h4, div, span, p, small) {
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hhsw357-pop .hhsw357-pf button:not(:last-child):not(.primary):not(.confirm) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hhsw357-pop .hhsw357-pf :is(button:last-child, button.primary, button.confirm) {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d6a44e !important;
  border: 1px solid #c89236 !important;
  color: #241705 !important;
  font-weight: 700 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.hhsw357-pop, .hhsw357-pop) {
  background: linear-gradient(180deg, #1b1610 0%, #14100b 100%) !important;
  background-color: #17130d !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f5ebd6 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.56) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hhsw357-pop :is(strong, b, h3, h4, div, span, p, small) {
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hhsw357-pop .hhsw357-pf button:not(:last-child):not(.primary):not(.confirm) {
  background: #261e14 !important;
  background-color: #261e14 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hhsw357-pop .hhsw357-pf :is(button:last-child, button.primary, button.confirm) {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d6a44e !important;
  border: 1px solid #d49b38 !important;
  color: #241705 !important;
  font-weight: 700 !important;
}

/* QA-106: /studio/ Full-Screen Image Viewer (div.hh371-dv) & Right Sidebar (aside.hh371-dv-side) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div.hh371-dv, .hh371-dv, .hh371-dv-main, .hh371-dv-stage, .hh371-dv-canvas) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(aside.hh371-dv-side, .hh371-dv-side) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border-left: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hh371-dv, .hh371-dv-side) :is(h1, h2, h3, h4, strong, b, dt, dd) {
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hh371-dv, .hh371-dv-side) :is(p, span, small, time) {
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hh371-dv button, .hh371-dv button:focus, .hh371-dv button:focus-visible, .hh371-dv a, .hh371-dv-side button, .hh371-dv-side a) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: none !important;
  outline: none !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh371-dv-side :is(.hh371-dv-box, .hh371-dv-prompt, .hh371-dv-meta, section, pre, code) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: none !important;
  box-shadow: none !important;
  color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.hh371-dv, .hh371-dv, .hh371-dv-main, .hh371-dv-stage, .hh371-dv-canvas) {
  background: #110d09 !important;
  background-color: #110d09 !important;
  background-image: none !important;
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(aside.hh371-dv-side, .hh371-dv-side) {
  background: linear-gradient(180deg, #19140e 0%, #130f0a 100%) !important;
  background-color: #16120c !important;
  border-left: 1px solid rgba(218, 178, 108, 0.24) !important;
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hh371-dv, .hh371-dv-side) :is(h1, h2, h3, h4, strong, b, dt, dd) {
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hh371-dv, .hh371-dv-side) :is(p, span, small, time) {
  color: #d8c6a8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.hh371-dv button, .hh371-dv button:focus, .hh371-dv button:focus-visible, .hh371-dv a, .hh371-dv-side button, .hh371-dv-side a) {
  background: #241c13 !important;
  background-color: #241c13 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #f5ebd6 !important;
  box-shadow: none !important;
  outline: none !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh371-dv-side :is(.hh371-dv-box, .hh371-dv-prompt, .hh371-dv-meta, section, pre, code) {
  background: #1e1811 !important;
  background-color: #1e1811 !important;
  border: none !important;
  box-shadow: none !important;
  color: #f3e5c8 !important;
}

/* QA-107: /membership/ Bottom Comparison Table (section.hhsw-compare) & Rules Box */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(section.hhsw-compare, .hhsw-compare, .hhsw-compare-wrap, .hhsw-rules, .hhsw-membership > section:not(.hhsw-plan-grid)) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hhsw-compare :is(th, td):not(.is-current):not(.highlight):not(.recommended):not(.active) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hhsw-compare tr:nth-child(even) td:not(.is-current):not(.highlight):not(.recommended):not(.active) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hhsw-compare :is(th, td):is(.is-current, .highlight, .recommended, .active) {
  background: #edd7b0 !important;
  background-color: #edd7b0 !important;
  border-color: rgba(212, 155, 56, 0.45) !important;
  color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(section.hhsw-compare, .hhsw-compare, .hhsw-compare-wrap, .hhsw-rules) {
  background: linear-gradient(180deg, #1b1610 0%, #14100b 100%) !important;
  background-color: #17130d !important;
  border: 1px solid rgba(218, 178, 108, 0.24) !important;
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hhsw-compare :is(th, td):not(.is-current):not(.highlight):not(.recommended):not(.active) {
  background: #1e1811 !important;
  background-color: #1e1811 !important;
  border-color: rgba(218, 178, 108, 0.18) !important;
  color: #f3e5c8 !important;
}

/* QA-108: /3d/ My 3D & Generation records Outer Containers, Headings, Stat Cards & Night 3D Thumbnails */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone {
  background: radial-gradient(1000px 500px at 52% -6%, rgba(218, 178, 108, 0.24), transparent 62%), #faf5eb !important;
  background-color: #f6f0e4 !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(select, textarea, input, select.h3d-model-select, .h3d-workspace-tabs, .h3d-user-chip) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(#h3d-workspace-tab-create, #h3d-workspace-tab-mine, #h3d-workspace-tab-tasks) {
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(#h3d-workspace-tab-create.is-active, #h3d-workspace-tab-mine.is-active, #h3d-workspace-tab-tasks.is-active) {
  background: #e5cfa6 !important;
  background-color: #e5cfa6 !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(section.h3d-workspace-heading h1, #h3d-workspace-panel-mine h1, #h3d-workspace-panel-tasks h1, .h3d-mine-page h1, .h3d-tasks-page h1, section.h3d-task-summary-grid strong) {
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(section.h3d-workspace-heading p, section.h3d-task-summary-grid small) {
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(section.h3d-panel.h3d-stored-assets, section.h3d-panel.h3d-task-list-panel, #h3d-workspace-panel-mine > section.h3d-panel, #h3d-workspace-panel-tasks > section.h3d-panel) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(section.h3d-task-summary-grid > div, article.h3d-task-card, .h3d-stored-asset-grid > *, .h3d-thumbnail-placeholder) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-thumbnail-placeholder {
  background: #241c13 !important;
  background-color: #241c13 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.24) !important;
  color: #d8c6a8 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone section.h3d-task-summary-grid > div > span:first-child {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #7a5318 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(div.h3d-selected-cover, div.h3d-artifact-thumbnail, .h3d-history-rail .h3d-artifact-thumbnail) {
  background: radial-gradient(circle at 50% 42%, rgba(218, 178, 108, 0.14), rgba(34, 27, 18, 0.98) 72%), linear-gradient(180deg, #241c13 0%, #1a140d 100%) !important;
  background-color: #221a11 !important;
  border: 1px solid rgba(232, 194, 126, 0.24) !important;
  color: #f2eadb !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-artifact-thumbnail img:not(.hh-3d-light-thumb) {
  mix-blend-mode: normal !important;
  filter: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 10px !important;
}

/* QA-109, QA-111 & QA-112: /studio/ Task More Menu (div.hh367-menu.open), Toast (div.hhsw-route-toast) & /canvas/ Project Info Dialog (div.c5-dialog) */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div.hh367-menu, div.hh367-menu.open, .hh367-menu, div.c5-dialog, .c5-dialog) {
  background: #faf5eb !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 18px 42px rgba(72, 48, 16, 0.16) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh367-menu :is(button:not(.danger):not([data-danger]), a:not(.danger)) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh367-menu :is(button.danger, button[data-danger]) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(184, 74, 57, 0.35) !important;
  color: #9e2a1c !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .c5-dialog :is(h1, h2, h3, h4, strong, b) {
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .c5-dialog :is(p, span, small, div) {
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div.hhsw-route-toast, .hhsw-route-toast, [class*="route-toast"]) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
  box-shadow: 0 12px 28px rgba(72, 48, 16, 0.16) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.hh367-menu, div.hh367-menu.open, .hh367-menu, div.c5-dialog, .c5-dialog) {
  background: linear-gradient(180deg, #1b1610 0%, #14100b 100%) !important;
  background-color: #17130d !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f5ebd6 !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.62) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .hh367-menu :is(button:not(.danger):not([data-danger]), a:not(.danger)) {
  background: #261e14 !important;
  background-color: #261e14 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.20) !important;
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .c5-dialog :is(h1, h2, h3, h4, strong, b) {
  color: #f5ebd6 !important;
  -webkit-text-fill-color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body .c5-dialog :is(p, span, small, div) {
  color: #d8c6a8 !important;
  -webkit-text-fill-color: #d8c6a8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.hhsw-route-toast, .hhsw-route-toast, [class*="route-toast"]) {
  background: #1e1811 !important;
  background-color: #1e1811 !important;
  border: 1px solid rgba(218, 178, 108, 0.32) !important;
  color: #f5ebd6 !important;
  -webkit-text-fill-color: #f5ebd6 !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.58) !important;
}
html body .c5-dialog button {
  background: linear-gradient(135deg, #e5b869 0%, #c89236 100%) !important;
  background-color: #d6a44e !important;
  border: 1px solid #c89236 !important;
  color: #241705 !important;
  -webkit-text-fill-color: #241705 !important;
  font-weight: 700 !important;
}

/* ============================================================================
   v126c True Clean Daylight Palette, 5-Tier Luxury Membership, Smooth 60fps & QA-114..121
   ============================================================================ */
/* 1. True Clean Daylight Root & Page Surfaces (Jimeng AI Daylight Reference) */
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body :is(.hhv-brand-atmosphere, .hhv-brand-vignette, .hh-shell::before, .hh-shell::after, .hh-home-v22::before, .hh-home-v22::after) {
  display: none !important;
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]),
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body,
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body :is(#hhswApp, .hhsw-shell, main.hhsw-studio, div.hhsw-stage, [data-task-region], main.hhsw-assets, main.hhsw-membership, main.hhsw-announcement-page, #ws42-list-app, .ws42-main, body.hanhai-3d-standalone, #h3d-main, .hlbg-page, .hlbg-shell, .hh-shell, main.hh-main, #hh-home-discover, .hh-discover),
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-shell, main.hhsw-studio, div.hhsw-stage, [data-task-region], main.hhsw-assets, main.hhsw-membership, main.hhsw-announcement-page) {
  background: #faf5eb !important;
  background-color: #faf5eb !important;
  background-image: none !important;
  color: #16130f !important;
}

/* 2. True Clean Daylight Left Navigation Rail, Thread Sidebar, Composer, Cards & Modals (#FFFFFF) */
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body :is(aside.hh-ws50f-rail, aside#hh-ws50f-rail, aside.hhsw-threads, aside.ws42-rail, aside.h3d-history-rail, header.hhsw-stage-head, section.hhsw-composer, .hh371-bar, .hanhai-home-generator-wrap, .hanhai-home-generator-card, .hhc-home-composer, .hh-composer-card, .hh-QuickModes-card, .hh-mode-card-v22, .hh-promo-card, .hlbg-promo-card, .hh-discover-ads > *, .hh-discover-ad, article.hhsw-task, article.hhsw-asset-card, article.hlbg-card, article.hh-discover-card, a.ws42-card, article.canvas-project-card, section.h3d-panel, div.hhsw-asset-modal, section.hhsw-asset-modal, dialog.hlbg-detail, section.hhsw-pay-modal, div.hh-modal-card.hh-login-modal, div.hh-auth-card, .hh-recharge-card, div.hhsw-menu, .hhsw-popover, div.hh367-menu, div.c5-dialog, div#hhc-home-menu-preference, div#hhc-home-menu-mode, div.hh-ws50e-pop, #hhv-3d-account-menu-v1),
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp :is(aside.hhsw-threads, header.hhsw-stage-head, section.hhsw-composer, article.hhsw-task, article.hhsw-asset-card, div.hhsw-asset-modal, section.hhsw-asset-modal, section.hhsw-pay-modal, div.hhsw-menu, .hhsw-popover) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  border-color: rgba(18,15,11,0.08) !important;
  color: #16130f !important;
  box-shadow: 0 6px 20px rgba(18,15,11,0.05) !important;
}

/* 3. True Clean Daylight Secondary Pills, Inputs, Filter Buttons & Slots (#f6f0e4) */
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body :is(button.hh-ws50f-lang, aside.hh-ws50f-rail button.hh-ws50f-thm, aside.hh-ws50f-rail button.hh-ws50f-av-out, .hhsw-pop-trigger, button.hhsw-filter, button.hhsw-asset-tool, .hhsw-prompt-row, .hhsw-frame-slot, div.h3d-reference-slot, details.h3d-advanced-options, section.h3d-submit-card, .ws42-head a, .ws42-head button, a.hh-tpl1-link, .hh-cat-pill:not(.is-active):not(.active), .hh-subcat-pill:not(.is-active):not(.active), .hhc-home-chip),
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-pop-trigger, button.hhsw-filter, button.hhsw-asset-tool, .hhsw-prompt-row, .hhsw-frame-slot) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.08) !important;
  color: #221c15 !important;
}

/* 3b. Hide manual 'å è½½æ´å¤' button on Home (/) & /lingbaoge/ so waterfall infinite scroll is 100% automatic */
html body :is([data-discover-more], .hh-discover-more, .hlbg-more) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* 3c. 5-Tier Luxury Membership Cards (.hhsw-plan-card:nth-child(1..5)) in Day & Night Mode */
/* Day Mode Tier 1: æ®éä¼å (Pearl Silver Alabaster) */
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(1) {
  background: linear-gradient(180deg, #FFFFFF 0%, #f4ede0 100%) !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(166,150,128,0.36) !important;
  box-shadow: 0 8px 24px rgba(18,15,11,0.05) !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(1) .hhsw-plan-tag {
  background: #e6decb !important;
  color: #3b3226 !important;
  border: 1px solid rgba(166,150,128,0.40) !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(1) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #e6decb 0%, #dcd3c2 100%) !important;
  color: #16130f !important;
}
/* Day Mode Tier 2: æ åä¼å (Glacier Sapphire Blue) */
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(2) {
  background: linear-gradient(180deg, #fdfaf3 0%, #f4ede0 100%) !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(224,182,94,0.34) !important;
  box-shadow: 0 10px 28px rgba(201,146,47,0.08) !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(2) .hhsw-plan-tag {
  background: #f4ede0 !important;
  color: #c9922f !important;
  border: 1px solid rgba(224,182,94,0.35) !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(2) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #e0b65e 0%, #d6a64e 100%) !important;
  color: #FFFFFF !important;
}
/* Day Mode Tier 3: é«çº§ä¼å (Radiant Champagne Amber Gold - Centerpiece) */
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(3) {
  background: linear-gradient(165deg, #FFFDF7 0%, #FDF2D6 55%, #F7E1B0 100%) !important;
  background-color: #FCF3DC !important;
  border: 1.5px solid rgba(216, 155, 60, 0.72) !important;
  box-shadow: 0 16px 36px rgba(216, 155, 60, 0.18) !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(3) .hhsw-plan-tag {
  background: linear-gradient(135deg, #F6CF7D 0%, #DF9D38 100%) !important;
  color: #261704 !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(3) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #F5CB76 0%, #D89632 100%) !important;
  color: #231505 !important;
  font-weight: 700 !important;
}
/* Day Mode Tier 4: ä¸ä¸ä¼å (Royal Amethyst Lavender) */
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(4) {
  background: linear-gradient(165deg, #faf5eb 0%, #f4ede0 55%, #e6decb 100%) !important;
  background-color: #f4ede0 !important;
  border: 1.5px solid rgba(224,182,94,0.42) !important;
  box-shadow: 0 14px 32px rgba(224,182,94,0.12) !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(4) .hhsw-plan-tag {
  background: #f4ede0 !important;
  color: #a87928 !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card:nth-child(4) button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled) {
  background: linear-gradient(135deg, #e0b65e 0%, #a87928 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
/* Day Mode Tier 5: åç¨ä¼å (Flagship Imperial Gold & Obsidian) */
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-plan-card:nth-child(5), .hhsw-plan-card.business) {
  background: linear-gradient(160deg, #FFF9EB 0%, #F4DFB0 48%, #E6C378 100%) !important;
  background-color: #F5E1B4 !important;
  border: 2px solid rgba(188, 128, 36, 0.85) !important;
  box-shadow: 0 18px 42px rgba(188, 128, 36, 0.24) !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-plan-card:nth-child(5), .hhsw-plan-card.business) :is(.hhsw-plan-tag, button.hhsw-plan-action:not(:disabled):not([disabled]):not(.is-disabled)) {
  background: linear-gradient(135deg, #221c15 0%, #16130f 100%) !important;
  color: #FDE6B0 !important;
  -webkit-text-fill-color: #FDE6B0 !important;
  border: 1px solid rgba(248, 212, 132, 0.65) !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card :is(.hhsw-plan-points, .hhpf-value-metric, .hhpf-quota-heading, .hhpf-quota-group, li.hhpf-quota-heading, li.hhpf-quota-group, li.hhpf-concurrency, li.hhpf-member-price) {
  background: rgba(255, 255, 255, 0.58) !important;
  background-color: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(18,15,11,0.08) !important;
  color: #16130f !important;
}

/* Night Mode /membership/ & /3d/ Strict Obsidian Protection (Zero White Leaks) */
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.hhsw-membership-content, section.hhsw-member-hero, aside.hhsw-member-user, .hhpf-membership-toolbar, .hh28, section.h3d-panel, section.h3d-panel.h3d-stored-assets, section.h3d-panel.h3d-task-list-panel) {
  background: linear-gradient(180deg, #1d1812 0%, #14100c 100%) !important;
  background-color: #17130d !important;
  border: 1px solid rgba(218, 178, 108, 0.24) !important;
  color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card :is(h1, h2, h3, h4, strong, b, .hhsw-plan-price) {
  color: #f7eedf !important;
  -webkit-text-fill-color: #f7eedf !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-plan-card :is(p, small, ul, li, span:not(.hhsw-plan-tag)) {
  color: #d8c6a8 !important;
  -webkit-text-fill-color: #d8c6a8 !important;
}

/* 4. QA-117: /assets/ -> è§è²ä¸»ä½ (div.hhsw-library-intro & div.hhsw-empty-state) in Day & Night */
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.hhsw-library-intro, div.hhsw-empty-state, main.hhsw-assets .hhsw-library-intro, main.hhsw-assets .hhsw-empty-state) {
  background: linear-gradient(180deg, #1b1610 0%, #14100b 100%) !important;
  background-color: #17130d !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.24) !important;
  border-radius: 16px !important;
  color: #f5ebd6 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.hhsw-library-intro, div.hhsw-empty-state) :is(h1, h2, h3, h4, strong, b) {
  color: #f5ebd6 !important;
  -webkit-text-fill-color: #f5ebd6 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div.hhsw-library-intro, div.hhsw-empty-state) :is(p, span, small, div:not(.hhsw-empty-actions)) {
  color: #cbb693 !important;
  -webkit-text-fill-color: #cbb693 !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body :is(div.hhsw-library-intro, div.hhsw-empty-state, main.hhsw-assets .hhsw-library-intro, main.hhsw-assets .hhsw-empty-state) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.08) !important;
  border-radius: 16px !important;
  color: #16130f !important;
  box-shadow: 0 8px 24px rgba(18,15,11,0.05) !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body :is(div.hhsw-library-intro, div.hhsw-empty-state) :is(h1, h2, h3, h4, strong, b) {
  color: #16130f !important;
  -webkit-text-fill-color: #16130f !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body :is(div.hhsw-library-intro, div.hhsw-empty-state) :is(p, span, small, div:not(.hhsw-empty-actions)) {
  color: #403629 !important;
  -webkit-text-fill-color: #403629 !important;
}

/* 5. QA-116 + QA-147: Ensure /assets/ Modal Preview Image & 3D Preview Fixed Box (Zero Size Jump) */
html body #hhswApp :is(.hhsw-asset-preview, .hhsw-asset-detail-media) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: min(64vh, 580px) !important;
  min-height: min(64vh, 580px) !important;
  max-height: min(64vh, 580px) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
html body #hhswApp :is(.hhsw-asset-preview img, .hhsw-asset-detail-media img, .hhsw-asset-preview video, .hhsw-asset-detail-media video) {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  background-color: transparent !important;
  z-index: 2 !important;
}

/* 6. QA-114 & Boss Screenshot #4: Compact Single-Row Ratio Popover, Flush Right Scrollbar & Return-to-Latest Pill */
html body #hhswApp .hhsw-menu[data-hhsw-pop-id="ratio"] {
  width: 368px !important;
  max-width: min(420px, calc(100vw - 24px)) !important;
  padding: 12px 14px !important;
}
html body #hhswApp .hhsw-ratio-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 6px !important;
  align-items: stretch !important;
}
html body #hhswApp .hhsw-ratio-choice {
  min-width: 0 !important;
  padding: 8px 4px !important;
  min-height: 54px !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-size: 12px !important;
}
html body #hhswApp [data-task-region],
html body #hhswApp div.hhsw-task-region {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: max(20px, calc((100% - 1040px) / 2)) !important;
  padding-right: max(20px, calc((100% - 1040px) / 2)) !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable !important;
}
html body #hhswApp .hhsw-stage > button.hhsw-return-latest,
html body #hhswApp button[data-hhsw-latest] {
  position: absolute !important;
  left: 50% !important;
  bottom: 242px !important;
  transform: translateX(-50%) translateY(8px) !important;
  z-index: 48 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 16px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease !important;
}
html body #hhswApp .hhsw-stage > button.hhsw-return-latest.is-visible,
html body #hhswApp button[data-hhsw-latest].is-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp button[data-hhsw-latest] {
  background: rgba(26, 21, 15, 0.94) !important;
  border: 1px solid rgba(218, 178, 108, 0.38) !important;
  color: #f5ebd6 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.52) !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp button[data-hhsw-latest] {
  background: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.12) !important;
  color: #16130f !important;
  box-shadow: 0 8px 22px rgba(18,15,11,0.10) !important;
}

/* 7. QA-119: Never flash legacy Daily Claim Box on /membership/ */
html body #hhpfDailyClaimBox,
html body .hhpf-daily-claim-box,
html body section.hhsw-v61-daily,
html body .hhsw-v61-daily {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* 8. Smooth 60fps Micro-Interactions Across All Interactive Controls */
html body :is(button, a.ws42-card, article.hhsw-asset-card, article.hlbg-card, article.hh-discover-card, .hhsw-pop-trigger, .hhsw-plan-card) {
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s ease, background-color 0.14s ease, border-color 0.14s ease !important;
}
html body :is(button:active:not(:disabled), .hhsw-pop-trigger:active) {
  transform: scale(0.98) !important;
}

/* 9. 3D Thumbnail Containers & Images: Zero invert(1), Clean #f6f0e4 Day & #1C1813 Night Surfaces (QA-118) */
html body :is(.h3d-artifact-thumbnail img, .h3d-selected-cover img, span.hhsw-gallery-cover.hhsw-gallery-model img, .hhsw-asset-card[data-asset-type="model3d"] img) {
  filter: none !important;
  mix-blend-mode: normal !important;
  background: transparent !important;
  background-color: transparent !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body :is(.h3d-artifact-thumbnail, .h3d-selected-cover, span.hhsw-gallery-cover.hhsw-gallery-model, .hhsw-asset-card[data-asset-type="model3d"] .hhsw-asset-media),
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body #hhswApp :is(span.hhsw-gallery-cover.hhsw-gallery-model, .hhsw-asset-card[data-asset-type="model3d"] .hhsw-asset-media) {
  background: linear-gradient(180deg, #faf5eb 0%, #f4ede0 100%) !important;
  background-color: #f6f0e4 !important;
  border-color: rgba(18,15,11,0.08) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(.h3d-artifact-thumbnail, .h3d-selected-cover, span.hhsw-gallery-cover.hhsw-gallery-model, .hhsw-asset-card[data-asset-type="model3d"] .hhsw-asset-media),
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(span.hhsw-gallery-cover.hhsw-gallery-model, .hhsw-asset-card[data-asset-type="model3d"] .hhsw-asset-media) {
  background: radial-gradient(circle at 50% 42%, #252019 0%, #17140F 100%) !important;
  background-color: #1C1813 !important;
  border-color: rgba(218, 178, 108, 0.18) !important;
}



html[data-hhv-appearance="day"] body::before,
html[data-hhv-appearance="day"] body::after,
html[data-hhv-appearance="day"] main.hh-main::before,
html[data-hhv-appearance="day"] main.hh-main::after,
html[data-hhv-appearance="day"] .hh-shell::before,
html[data-hhv-appearance="day"] .hh-shell::after,
html[data-hhv-appearance="day"] .hh-home-shell::before,
html[data-hhv-appearance="day"] .hh-home-shell::after,
html[data-hhv-appearance="day"] .hh-hero-v22::before,
html[data-hhv-appearance="day"] .hh-hero-v22::after {
  display: none !important;
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
}
html[data-hhv-appearance="day"] body,
html[data-hhv-appearance="day"] .hh-shell,
html[data-hhv-appearance="day"] .hh-home-shell,
html[data-hhv-appearance="day"] main.hh-main {
  background: #faf5eb !important;
  background-image: none !important;
}
html[data-hhv-appearance="day"] .hh-hero-v22,
html[data-hhv-appearance="day"] #hh-home-discover,
html[data-hhv-appearance="day"] .hh-discover {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* === v127 Root CSS Fixes (QA-122, QA-123, QA-124) === */
/* QA-122: Hide un-opened auth/login modal everywhere (especially /3d/ footer) & pad æç 3D stored assets header */
.hh-modal:not(.is-open),
.hh-login-modal:not(.is-open),
.hh-auth-page:not(.is-open),
.hh-auth-modal-shell:not(.is-open),
[data-hh-auth-modal]:not(.is-open) {
  display: none !important;
}
.h3d-stored-assets,
.h3d-mine-page section,
.h3d-workspace-heading {
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* QA-123: Studio Settings (è§æ ¼) popover above composer, 400px wide, 7-col clean ratio pills, & single-line + åèå¾ 0/16 */
.hhsw-composer .hhsw-menu,
.hhsw-composer [data-menu] {
  position: absolute !important;
  bottom: calc(100% + 12px) !important;
  top: auto !important;
  z-index: 140 !important;
}
.hhsw-composer .hhsw-menu.ratio,
.hhsw-menu.ratio[data-menu="ratio"] {
  width: 340px !important;
  max-width: calc(100vw - 32px) !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
}
html body :is(.hhsw-composer .hhsw-menu.settings, .hhsw-menu.settings[data-menu="settings"], .hhsw-menu.settings, .hhsw-menu[data-hhsw-pop-id="settings"]) {
  position: absolute !important;
  bottom: calc(100% + 12px) !important;
  top: auto !important;
  left: 0 !important;
  width: 448px !important;
  max-width: calc(100vw - 32px) !important;
  max-height: min(440px, calc(100vh - 200px)) !important;
  overflow-y: auto !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  z-index: 140 !important;
  box-sizing: border-box !important;
}
html body :is(.hhsw-menu.settings.is-fixed.is-open, .hhsw-single-portal .hhsw-menu.settings) {
  bottom: 236px !important;
  top: auto !important;
  width: 448px !important;
  max-width: calc(100vw - 32px) !important;
}
html body :is(.hhsw-menu.settings .hhsw-ratio-grid, .hhsw-menu[data-hhsw-pop-id="settings"] .hhsw-ratio-grid, .hhsw-single-portal .hhsw-menu.settings .hhsw-ratio-grid) {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
html body :is(.hhsw-menu.ratio .hhsw-ratio-grid, .hhsw-menu[data-hhsw-pop-id="ratio"] .hhsw-ratio-grid) {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
html body :is(.hhsw-menu.settings .hhsw-ratio-choice, .hhsw-menu.ratio .hhsw-ratio-choice, .hhsw-single-portal .hhsw-ratio-choice, .hhsw-ratio-choice) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 6px 4px !important;
  min-width: 0 !important;
  min-height: 58px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
.hhsw-composer .hhsw-ref-trigger,
.hhsw-composer [data-ref-trigger],
.hhsw-composer button[class*="ref"] {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  width: max-content !important;
  min-width: max-content !important;
}

/* QA-124: Fit Recharge Modal inside 1080p viewport cleanly */
.hh-modal.is-open .hh-recharge-card {
  max-height: calc(100vh - 48px) !important;
  overflow-y: auto !important;
}





/* === v128 Final 5 Fixes (Studio File Input & 3D Result Stage) === */
html body #hhswApp .hhsw-composer input[type="file"],
html body .hhsw-composer label.hhsw-frame-slot > input[type="file"],
html body .hhsw-composer input[type="file"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(
  section.h3d-panel.h3d-current-result-panel:not(aside),
  article.h3d-current-result,
  .h3d-inline-viewer,
  .h3d-inline-viewer-stage,
  .h3d-preview-stage,
  .h3d-viewer-stage,
  .h3d-stage-shell,
  .h3d-canvas-stage,
  .h3d-artifact-thumbnail,
  .h3d-selected-cover,
  article.h3d-task-card .h3d-task-thumb,
  .h3d-task-card figure
) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border-color: rgba(18,15,11,0.08) !important;
}

/* === v129 Root-Cause Fixes (QA-133 ~ QA-139) === */
/* 1. QA-135: Zero-flash /assets/ grid & cards (eliminate 22px 8px-row span collapse) */
html body #hhswApp .hhsw-grid,
html body .hhsw-page > .hhsw-grid,
html body .hhsw-grid {
  grid-auto-rows: auto !important;
  align-items: start !important;
}
html body #hhswApp .hhsw-grid > .hhsw-card,
html body #hhswApp .hhsw-grid > .hhsw-asset-card,
html body .hhsw-page > .hhsw-grid > .hhsw-asset-card,
html body .hhsw-asset-card,
html body .hhsw-gallery-card {
  grid-row-end: auto !important;
  height: auto !important;
}

/* 2. QA-129 / QA-138: /3d/ Day mode error alert high-contrast dark crimson & no single-char wrap */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-task-error, .h3d-current-result-error, .h3d-viewer-error, .h3d-inline-viewer [role="alert"], .h3d-toast[data-tone="error"]) {
  background: #FEF3F2 !important;
  background-color: #FEF3F2 !important;
  border: 1px solid #FECDCA !important;
  color: #B42318 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone :is(.h3d-task-error, .h3d-current-result-error, .h3d-viewer-error, .h3d-inline-viewer [role="alert"]) :is(strong, span, p, small, svg) {
  color: #B42318 !important;
}
html body.hanhai-3d-standalone .h3d-thumbnail-placeholder span,
html body.hanhai-3d-standalone .h3d-recent-card-top span {
  white-space: nowrap !important;
}

/* 3. QA-134: Homepage single-row toolbar & Day mode light free-quota card */
html body .hanhai-home-toolbar,
html body .hhc-home-control-bar {
  flex-wrap: nowrap !important;
}
html body .hanhai-home-toolbar button,
html body .hhc-home-control-bar button {
  white-space: nowrap !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hhc-home-free-quota, .hanhai-home-free-quota, .hhsw-free-quota) {
  background: linear-gradient(90deg, #FBF7F0 0%, #F5EFE6 100%) !important;
  background-color: #F5EFE6 !important;
  border: 1px solid rgba(180, 130, 60, 0.28) !important;
  color: #1c1710 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(.hhc-home-free-quota, .hanhai-home-free-quota, .hhsw-free-quota) * {
  color: #1c1710 !important;
}

/* 4. QA-139: /studio/ zero scrollHeight jump on upward wheel scroll */
html body #hhswApp article.hhsw-task,
html body #hhswApp .hhsw-task-preview {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}
html body #hhswApp article.hhsw-task.hh-cv-auto,
html body #hhswApp article.hhsw-task.hh-cv-auto .hhsw-task-preview {
  content-visibility: auto !important;
  contain-intrinsic-size: auto 320px !important;
}
html body #hhswApp .hhsw-task-region,
html body #hhswApp [data-task-region] {
  --hh366-reserve: 308px !important;
  padding-bottom: 308px !important;
}
html body #hh90b2-ajax400,
html body .hh90b2-ajax400 {
  display: none !important;
}
html body :is(.canvas-bounded-media, .hhce-bounded-media) img.hhce-media-content,
html body .canvas-bounded-media img[src*="tier_s_"] {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  z-index: 2 !important;
}
html body .hhce-shape-image :is(.canvas-bounded-media, .hhce-bounded-media) {
  border: 0 !important;
}
html body :is(.canvas-bounded-media-state, .canvas-bounded-media-state.is-loading, .hhce-media-loading, .canvas-media-loading),
html body :is(.canvas-bounded-media, .hhce-bounded-media).hh-loaded::before,
html body :is(.canvas-bounded-media, .hhce-bounded-media).hh-loaded::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}


/* === v129e Root-Cause Fixes (QA-135, QA-141, QA-142, QA-143) === */
html body[data-hhsw-route="assets"] .hhsw-page > .hhsw-grid,
html body #hhswApp .hhsw-grid {
  --hhsw-masonry-row: auto !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
}
html body #hhswApp .hhsw-page > .hhsw-grid > .hhsw-asset-card,
html body .hhsw-page > .hhsw-grid > .hhsw-asset-card {
  grid-row-end: auto !important;
  height: auto !important;
}
html body.hanhai-3d-standalone .h3d-controls-guide {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px 8px !important;
  padding: 7px 10px !important;
  margin-top: 10px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(224, 182, 94, 0.18) !important;
  color: rgba(244, 239, 230, 0.88) !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-controls-guide {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(201, 146, 47, 0.24) !important;
  color: #3b3226 !important;
  box-shadow: 0 2px 10px rgba(168, 121, 40, 0.06) !important;
}
html body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
  color: rgba(232, 223, 206, 0.76) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-item {
  color: #5c4d3a !important;
}
html body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-item kbd {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(224, 182, 94, 0.24) !important;
  font-size: 10px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  color: #f0ca7f !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-item kbd {
  background: rgba(201, 146, 47, 0.1) !important;
  border: 1px solid rgba(201, 146, 47, 0.28) !important;
  color: #8c5a09 !important;
}
html body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-key {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 24px !important;
  padding: 0 7px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F5EBD6 !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}
html body.hanhai-3d-standalone .h3d-controls-guide button.h3d-guide-key:first-of-type {
  margin-left: auto !important;
}
html body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-key kbd {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  font-size: 10px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  color: #f5efe6 !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}
html body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-key:hover,
html body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-key.is-active {
  background: rgba(224, 182, 94, 0.18) !important;
  border-color: rgba(224, 182, 94, 0.48) !important;
  color: #f3cd78 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-key {
  background: #F8F4EC !important;
  border: 1px solid rgba(168, 121, 40, 0.24) !important;
  color: #221c15 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-key kbd {
  background: #FFFFFF !important;
  border: 1px solid rgba(168, 121, 40, 0.28) !important;
  color: #6e4708 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-key:hover,
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-key.is-active {
  background: #FDF3DC !important;
  border-color: #C9922F !important;
  color: #8A5A00 !important;
}
@media (min-width: 1200px) {
  html body.hanhai-3d-standalone .h3d-controls-guide,
  html body .h3d-controls-guide {
    flex-wrap: nowrap !important;
    padding: 6px 9px !important;
    gap: 4px 6px !important;
  }
}

/* 3. QA-134 + QA-145 (v129j): Homepage single-row toolbar, compact multi-column menus & Day/Night unified warm colors */
@media (min-width: 901px) {
  html body.home .hanhai-home-toolbar,
  html.hhc-home-route body.home .hanhai-home-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  html body.home .hanhai-home-param-group,
  html.hhc-home-route body.home .hanhai-home-param-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 6px !important;
  }
  html body.home .hanhai-home-action-group,
  html.hhc-home-route body.home .hanhai-home-action-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    gap: 8px !important;
    margin-left: auto !important;
  }
  html body.home :is(.hanhai-home-param-btn, .hhc-home-agent-chip, .hhc-home-Reference-trigger),
  html.hhc-home-route body.home :is(.hanhai-home-param-btn, .hhc-home-agent-chip, .hhc-home-Reference-trigger) {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 11px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    width: auto !important;
  }
  html body.home .hanhai-home-points:not([hidden]),
  html.hhc-home-route body.home .hanhai-home-points:not([hidden]) {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  html body.home .hanhai-home-action-group.hh-has-free-quota > .hanhai-home-points,
  html body.home .hanhai-home-points[hidden] {
    display: none !important;
  }
  html body.home .hanhai-home-generate-btn,
  html.hhc-home-route body.home .hanhai-home-generate-btn {
    height: 36px !important;
    min-height: 36px !important;
    min-width: 96px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }
  html body.home .hhc-home-free-quota[hidden],
  html.hhc-home-route body.home .hhc-home-free-quota[hidden] {
    display: none !important;
  }
  html body.home .hhc-home-free-quota:not([hidden]),
  html.hhc-home-route body.home .hhc-home-free-quota:not([hidden]) {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
  html body.home .hhc-home-free-quota__summary,
  html.hhc-home-route body.home .hhc-home-free-quota__summary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }
  html body.home .hhc-home-free-quota__label,
  html.hhc-home-route body.home .hhc-home-free-quota__label {
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  html body.home .hhc-home-free-quota__meta,
  html.hhc-home-route body.home .hhc-home-free-quota__meta,
  html body.home .hhc-home-free-quota .hhc-home-quota-spec strong {
    display: none !important;
  }
  html body.home .hhc-home-billing-switch,
  html.hhc-home-route body.home .hhc-home-billing-switch {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }
  html body.home .hhc-home-billing-option,
  html.hhc-home-route body.home .hhc-home-billing-option {
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }
}

/* Compact multi-column dropdown menus & zero scrollbar gutter across all homepage popovers */
html body.home :is(div#hhc-home-menu-mode, .hhc-home-compat-menu),
html.hhc-home-route body.home :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) {
  scrollbar-gutter: auto !important;
  scrollbar-width: thin !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 6px !important;
  box-sizing: border-box !important;
}
html body.home :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) button,
html.hhc-home-route body.home :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) button {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* 1. #hhc-home-menu-preference: full-width responsive grids */
html body.home :is(#hhc-home-menu-preference, .hhc-home-agent-preference-shell, .hhc-home-agent-preference-panel) {
  scrollbar-gutter: auto !important;
  scrollbar-width: thin !important;
  padding: 10px 12px !important;
  width: 380px !important;
  max-width: min(380px, calc(100vw - 24px)) !important;
}
html body.home #hhc-home-menu-preference :is(.hhc-agent-type-section, .hhc-agent-resolution-section, .hhc-agent-quality-section, .hhc-agent-reference-section) > div {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
}
html body.home #hhc-home-menu-preference .hhc-agent-ratio-section > div {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
}
html body.home #hhc-home-menu-preference .hhc-agent-duration-section > div {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
}
html body.home #hhc-home-menu-preference .hhc-agent-preference-choice {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 6px !important;
  justify-content: center !important;
  text-align: center !important;
}
html body.home #hhc-home-menu-preference .hhc-agent-model-section > div:not(:first-child),
html body.home #hhc-home-menu-preference .hhc-agent-model-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
}

/* 2. #hhc-home-menu-mode, #hhc-home-menu-model, #hhc-home-menu-duration, #hhc-home-menu-ratio, #hhc-home-menu-resolution, #hhc-home-menu-reference, #hhc-home-menu-spec */
html body.home div#hhc-home-menu-mode {
  --hhc-menu-width: 136px !important;
  width: 136px !important;
  max-width: 136px !important;
  padding: 6px !important;
}
html body.home div#hhc-home-menu-mode button {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
}
html body.home div#hhc-home-menu-model:not(.hhc-home-agent-model-panel) {
  --hhc-menu-width: 380px !important;
  width: 380px !important;
  max-width: 380px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 8px !important;
}
html body.home div#hhc-home-menu-model > strong {
  grid-column: 1 / -1 !important;
}
html body.home div#hhc-home-menu-model .hhc-home-compat-options {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
html body.home div#hhc-home-menu-model button {
  min-height: 36px !important;
  height: 36px !important;
  padding: 4px 10px !important;
  font-size: 12.5px !important;
  justify-content: center !important;
  text-align: center !important;
}
html body.home div#hhc-home-menu-duration {
  --hhc-menu-width: 248px !important;
  width: 248px !important;
  max-width: 248px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 8px !important;
}
html body.home div#hhc-home-menu-duration > strong {
  grid-column: 1 / -1 !important;
}
html body.home div#hhc-home-menu-duration > .hhc-home-compat-options {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
html body.home div#hhc-home-menu-duration button {
  justify-content: center !important;
  text-align: center !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 4px !important;
}
html body.home div#hhc-home-menu-ratio {
  --hhc-menu-width: 228px !important;
  width: 228px !important;
  max-width: 228px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 8px !important;
}
html body.home div#hhc-home-menu-ratio > strong {
  grid-column: 1 / -1 !important;
}
html body.home div#hhc-home-menu-ratio > .hhc-home-compat-options {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
html body.home div#hhc-home-menu-ratio button {
  justify-content: center !important;
  text-align: center !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 6px !important;
}
html body.home :is(div#hhc-home-menu-resolution, div#hhc-home-menu-reference) {
  --hhc-menu-width: 196px !important;
  width: 196px !important;
  max-width: 196px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 8px !important;
}
html body.home :is(div#hhc-home-menu-resolution, div#hhc-home-menu-reference) > strong {
  grid-column: 1 / -1 !important;
}
html body.home :is(div#hhc-home-menu-resolution, div#hhc-home-menu-reference) > .hhc-home-compat-options {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
html body.home :is(div#hhc-home-menu-resolution, div#hhc-home-menu-reference) button {
  justify-content: center !important;
  text-align: center !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 8px !important;
}
html body.home div#hhc-home-menu-spec {
  --hhc-menu-width: 440px !important;
  width: 440px !important;
  max-width: min(440px, calc(100vw - 24px)) !important;
}
html body.home div#hhc-home-menu-spec [data-settings-group="ratio"] .hhc-home-compat-options {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
}
html body.home div#hhc-home-menu-spec :is([data-settings-group="quality"], [data-settings-group="resolution"], [data-settings-group="incremental-count"]) .hhc-home-compat-options {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
}
html body.home div#hhc-home-menu-spec .hhc-home-compat-option {
  justify-content: center !important;
  text-align: center !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 4px !important;
  font-size: 12px !important;
  gap: 4px !important;
  white-space: nowrap !important;
}
html body.home :is(.hhc-home-compat-menu, #hhc-home-menu-spec) :is(.hhc-home-settings-header, .hhc-home-settings-section) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Day mode: unify homepage toolbar chips, points badge, free-quota card & dropdown menus to warm beige-gold */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.home :is(.hanhai-home-points, .hhc-home-free-quota, .hanhai-home-free-quota, .hhsw-free-quota) {
  background: #f5eee2 !important;
  background-color: #f5eee2 !important;
  background-image: none !important;
  border: 1px solid rgba(176, 124, 40, 0.28) !important;
  color: #3a2a16 !important;
  box-shadow: none !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.home :is(.hhc-home-free-quota__label, .hhc-home-free-quota__meta, .hhc-home-free-quota .hhc-home-quota-spec small) {
  color: #5c4528 !important;
  -webkit-text-fill-color: #5c4528 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.home .hhc-home-free-quota .hhc-home-billing-option:not([data-selected="1"]):not([aria-pressed="true"]):not(.active):not(.is-active) {
  background: #fbf7f0 !important;
  background-color: #fbf7f0 !important;
  border: 1px solid rgba(176, 124, 40, 0.22) !important;
  color: #5c4528 !important;
  -webkit-text-fill-color: #5c4528 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.home .hhc-home-free-quota .hhc-home-billing-option:is([data-selected="1"], [aria-pressed="true"], .active, .is-active) {
  background: #edd7b0 !important;
  background-color: #edd7b0 !important;
  border: 1px solid #d69e3a !important;
  color: #1f1508 !important;
  -webkit-text-fill-color: #1f1508 !important;
  font-weight: 700 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div#hhc-home-menu-mode, .hhc-home-compat-menu, div#hhc-home-menu-preference, .hhc-home-agent-preference-panel, .hhc-home-agent-preference-shell) {
  background: #fcf8f0 !important;
  background-color: #fcf8f0 !important;
  border: 1px solid rgba(176, 124, 40, 0.30) !important;
  color: #23180b !important;
  box-shadow: 0 18px 42px rgba(120, 86, 36, 0.16) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.home :is(.hhc-home-compat-menu, #hhc-home-menu-spec) :is(.hhc-home-settings-header, .hhc-home-settings-section) {
  border-color: rgba(176, 124, 40, 0.18) !important;
  color: #23180b !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) button:not(.active):not(.is-active):not([aria-pressed="true"]):not([aria-selected="true"]) {
  background: #f5eee2 !important;
  background-color: #f5eee2 !important;
  border: 1px solid rgba(176, 124, 40, 0.20) !important;
  color: #3a2a16 !important;
  -webkit-text-fill-color: #3a2a16 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) button:is(.active, .is-active, [aria-pressed="true"], [aria-selected="true"]) {
  background: #edd7b0 !important;
  background-color: #edd7b0 !important;
  border: 1px solid #d69e3a !important;
  color: #1f1508 !important;
  -webkit-text-fill-color: #1f1508 !important;
  font-weight: 700 !important;
  box-shadow: inset 3px 0 0 #d69e3a !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhc-home-menu-preference :is(button.hhc-agent-preference-choice:not(.is-active), button.hhc-agent-preference-close, button.hhc-agent-auto-toggle:not(.is-on), button.hhc-agent-model-trigger, div.hhc-agent-preference-status) {
  background: #f5eee2 !important;
  background-color: #f5eee2 !important;
  border: 1px solid rgba(176, 124, 40, 0.20) !important;
  color: #3a2a16 !important;
  -webkit-text-fill-color: #3a2a16 !important;
}

/* Night mode: unify homepage toolbar chips, points badge, free-quota card & dropdown menus to warm dark bronze-gold */
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.home :is(.hanhai-home-points, .hhc-home-free-quota, .hanhai-home-free-quota, .hhsw-free-quota) {
  background: #211c15 !important;
  background-color: #211c15 !important;
  background-image: none !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
  box-shadow: none !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.home :is(.hhc-home-free-quota__label, .hhc-home-free-quota__meta, .hhc-home-free-quota .hhc-home-quota-spec small) {
  color: #f3e5c8 !important;
  -webkit-text-fill-color: #f3e5c8 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.home .hhc-home-free-quota .hhc-home-billing-option:not([data-selected="1"]):not([aria-pressed="true"]):not(.active):not(.is-active) {
  background: #2a2219 !important;
  background-color: #2a2219 !important;
  border: 1px solid rgba(218, 178, 108, 0.22) !important;
  color: #d8c6a4 !important;
  -webkit-text-fill-color: #d8c6a4 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.home .hhc-home-free-quota .hhc-home-billing-option:is([data-selected="1"], [aria-pressed="true"], .active, .is-active) {
  background: #3d2c17 !important;
  background-color: #3d2c17 !important;
  border: 1px solid #d69e3a !important;
  color: #fae6bc !important;
  -webkit-text-fill-color: #fae6bc !important;
  font-weight: 700 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div#hhc-home-menu-mode, .hhc-home-compat-menu, div#hhc-home-menu-preference, .hhc-home-agent-preference-panel, .hhc-home-agent-preference-shell) {
  background: #211c15 !important;
  background-color: #211c15 !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.72) !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body.home :is(.hhc-home-compat-menu, #hhc-home-menu-spec) :is(.hhc-home-settings-header, .hhc-home-settings-section) {
  border-color: rgba(218, 178, 108, 0.18) !important;
  color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) button:not(.active):not(.is-active):not([aria-pressed="true"]):not([aria-selected="true"]) {
  background: #2a2219 !important;
  background-color: #2a2219 !important;
  border: 1px solid rgba(218, 178, 108, 0.22) !important;
  color: #f3e5c8 !important;
  -webkit-text-fill-color: #f3e5c8 !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body :is(div#hhc-home-menu-mode, .hhc-home-compat-menu) button:is(.active, .is-active, [aria-pressed="true"], [aria-selected="true"]) {
  background: #3d2c17 !important;
  background-color: #3d2c17 !important;
  border: 1px solid #d69e3a !important;
  color: #fae6bc !important;
  -webkit-text-fill-color: #fae6bc !important;
  font-weight: 700 !important;
  box-shadow: inset 3px 0 0 #d69e3a !important;
}

/* 5. QA-146 & QA-147 (v129L): Zero-flash /studio/ initial load & /assets/ detail modal fixed preview box */
#hhswApp .hhsw-generation-gate-128,
#hhswApp #hhswGenerationGate128,
#hhswApp .hhsw-catalog-state,
#hhswApp [data-hhsw-catalog-state],
#hhswApp .hhsw-composer-catalog-pending .hhsw-catalog-state {
  display: none !important;
}
#hhswApp .hhsw-task-actions > :not([data-continue-edit]):not([data-regenerate]):not([data-copy]):not([data-copy-prompt]):not(.hh371-keep):not(.hh371-rowdl):not(.hh367-more):not(.hh367-menu) {
  display: none !important;
}
html body #hhswApp :is(.hhsw-asset-preview, .hhsw-asset-detail-media) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: min(64vh, 580px) !important;
  min-height: min(64vh, 580px) !important;
  max-height: min(64vh, 580px) !important;
  padding: 16px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
html body #hhswApp :is(.hhsw-asset-preview img, .hhsw-asset-detail-media img, .hhsw-asset-preview video, .hhsw-asset-detail-media video) {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

html body #hhswApp .hhsw-asset-card {
  transition: box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.14s ease !important;
}

html body #hhswApp .hhsw-gallery-card .hhsw-asset-media,
html body #hhswApp .hhsw-gallery-card .hhsw-gallery-cover,
html body #hhswApp .hhsw-gallery-card .hhsw-asset-media img {
  aspect-ratio: var(--hhsw-card-ar, 1 / 1) !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
}
html body #hhswApp .hhsw-gallery-card[data-asset-type="model3d"] .hhsw-asset-media img {
  object-fit: contain !important;
}


/* === QA-162..QA-167 ROOT-CAUSE STUDIO UI FIXES === */
/* QA-162: Reference upload bar â no gold/dark container box around .hhsw-thumb-list or .hhsw-ref-note, no 50/50 split */
html body #hhswApp .hhsw-composer :is(.hhsw-thumb-list, .hhsw-ref-note) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
html body #hhswApp .hhsw-composer .hhsw-thumb-list {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
}
html body #hhswApp .hhsw-composer .hhsw-thumb-list:empty {
  display: none !important;
}
html body #hhswApp .hhsw-composer :is(.hhsw-first-last-layout, .hhsw-ref-row) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

/* QA-163: #hhswPrompt default 3-4 lines (min-height 88px) and auto-grow up to 200px */
html:not(.hh366-c) body #hhswApp .hhsw-composer textarea#hhswPrompt {
  min-height: 88px !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  line-height: 1.55 !important;
  font-size: 14px !important;
  padding: 6px 8px !important;
}
@media (max-width: 760px) {
  html:not(.hh366-c) body #hhswApp .hhsw-composer textarea#hhswPrompt {
    min-height: 68px !important;
    max-height: 160px !important;
  }
}

/* QA-164: Task card prompt bubble â zero double-text overlap, selectable & click-to-copy, clean layout */
html body #hhswApp article.hhsw-task:not(.hh371-fold) > .hhsw-prompt-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 14px !important;
  border-radius: 16px 16px 4px 16px !important;
  width: fit-content !important;
  max-width: min(82%, 620px) !important;
  position: relative !important;
  text-shadow: none !important;
}
html body #hhswApp article.hhsw-task > .hhsw-prompt-row .prompt {
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: pointer !important;
  text-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  word-break: break-word !important;
}
html body #hhswApp article.hhsw-task:not(.hh371-fold) > .hhsw-prompt-row > .hhsw-prompt-tools {
  display: none !important;
}

/* QA-165: Task card '...' menu (.hh367-menu & .hh371-menu) compact width & high contrast in dark/day modes */
html body #hhswApp :is(div.hh367-menu, div.hh367-menu.hhsw-menu, .hh367-menu.hhsw-menu),
html body .hh371-menu {
  width: max-content !important;
  min-width: 148px !important;
  max-width: 200px !important;
  padding: 8px !important;
  border-radius: 12px !important;
  flex-direction: column !important;
  gap: 4px !important;
  box-sizing: border-box !important;
}
html body #hhswApp :is(div.hh367-menu, div.hh367-menu.hhsw-menu, .hh367-menu.hhsw-menu):not(.open) {
  display: none !important;
}
html body #hhswApp :is(div.hh367-menu.open, div.hh367-menu.hhsw-menu.open, .hh367-menu.hhsw-menu.open) {
  display: flex !important;
}
html body #hhswApp .hh367-menu > :is(button, a),
html body .hh371-menu > button {
  width: 100% !important;
  min-width: 0 !important;
  padding: 7px 14px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  text-align: left !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp :is(div.hh367-menu, div.hh367-menu.open, .hh367-menu),
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh371-menu {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.12) !important;
  color: #16130f !important;
  box-shadow: 0 12px 32px rgba(18,15,11,0.14) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hh367-menu :is(button:not(.danger):not([data-danger]):not([data-task-delete-scope]), a:not(.danger)),
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh371-menu button:not(.hh371-danger) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.08) !important;
  color: #16130f !important;
  font-weight: 500 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hh367-menu :is(button:not(.danger):not([data-danger]):not([data-task-delete-scope]), a:not(.danger)):hover,
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh371-menu button:not(.hh371-danger):hover {
  background: #f4ede0 !important;
  background-color: #f4ede0 !important;
  border-color: rgba(18,15,11,0.16) !important;
  color: #120f0b !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hh367-menu :is(button.danger, button[data-danger], button[data-task-delete-scope]),
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh371-menu button.hh371-danger {
  background: #FFF5F5 !important;
  background-color: #FFF5F5 !important;
  border: 1px solid rgba(212, 56, 44, 0.28) !important;
  color: #C8281E !important;
  font-weight: 600 !important;
}

/* QA-166: Bottom 'æ¨¡å¼' & parameter popover menus (.hhsw-menu) border clipping & day-mode contrast */
html body :is(#hhswApp, #hhswApp [data-pop-wrap], body > .hhsw-single-portal, .hhsw-single-portal) .hhsw-menu:not(.hh367-menu):not(.settings):not(.ratio):not(.hhsw-duration-menu) {
  padding: 10px !important;
  border-radius: 16px !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}
html body :is(#hhswApp, #hhswApp [data-pop-wrap], body > .hhsw-single-portal, .hhsw-single-portal) .hhsw-menu:not(.hh367-menu):not(.settings):not(.ratio):not(.hhsw-duration-menu) > button[data-action] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  grid-template-columns: minmax(0, 1fr) 18px !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(#hhswApp, #hhswApp [data-pop-wrap], body > .hhsw-single-portal, .hhsw-single-portal) .hhsw-menu:not(.hh367-menu) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.12) !important;
  box-shadow: 0 14px 36px rgba(18,15,11,0.14) !important;
  color: #1f1a14 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(#hhswApp, #hhswApp [data-pop-wrap], body > .hhsw-single-portal, .hhsw-single-portal) .hhsw-menu:not(.hh367-menu) > button[data-action]:not(.selected):not(.active):not([aria-selected="true"]) {
  background: #faf5eb !important;
  background-color: #faf5eb !important;
  border: 1px solid rgba(18,15,11,0.08) !important;
  color: #1f1a14 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(#hhswApp, #hhswApp [data-pop-wrap], body > .hhsw-single-portal, .hhsw-single-portal) .hhsw-menu:not(.hh367-menu) > button[data-action]:not(.selected):not(.active):not([aria-selected="true"]) :is(span, b, strong) {
  color: #1f1a14 !important;
  -webkit-text-fill-color: #1f1a14 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(#hhswApp, #hhswApp [data-pop-wrap], body > .hhsw-single-portal, .hhsw-single-portal) .hhsw-menu:not(.hh367-menu) > button[data-action]:not(.selected):not(.active):not([aria-selected="true"]) :is(small, em) {
  color: #5c5042 !important;
  -webkit-text-fill-color: #5c5042 !important;
  opacity: 0.92 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(#hhswApp, #hhswApp [data-pop-wrap], body > .hhsw-single-portal, .hhsw-single-portal) .hhsw-menu:not(.hh367-menu) > button[data-action]:is(.selected, .active, [aria-selected="true"]) {
  background: linear-gradient(135deg, #f6e7c8 0%, #edd3a1 100%) !important;
  background-color: #f1dcb0 !important;
  border: 1px solid rgba(196, 142, 48, 0.65) !important;
  color: #2b1d08 !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(180, 128, 36, 0.16) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(#hhswApp, #hhswApp [data-pop-wrap], body > .hhsw-single-portal, .hhsw-single-portal) .hhsw-menu:not(.hh367-menu) > button[data-action]:is(.selected, .active, [aria-selected="true"]) :is(span, b, strong, small, em) {
  color: #2b1d08 !important;
  -webkit-text-fill-color: #2b1d08 !important;
}

/* QA-167: Bottom 'æ¶é¿' popover (.hhsw-duration-menu) compact layout (<= 110px height), no duplicate 5s, visible bordered input & 6-column quick pills */
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu {
  width: 248px !important;
  min-width: 232px !important;
  max-width: 268px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
  gap: 4px !important;
  box-sizing: border-box !important;
}
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu > .hhsw-menu-title,
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu .hhsw-duration-head {
  display: none !important;
}
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu .hhsw-duration-control {
  padding: 2px !important;
  gap: 6px !important;
  display: flex !important;
  flex-direction: column !important;
}
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu .hhsw-duration-entry {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
}
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu .hhsw-duration-entry > [data-duration-bound] {
  margin-left: auto !important;
  font-size: 12px !important;
  opacity: 0.72 !important;
  white-space: nowrap !important;
}
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu input.hhsw-duration-number {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 84px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 2px 8px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(218, 178, 108, 0.55) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  background-color: rgba(255, 255, 255, 0.09) !important;
  color: #f7f1e3 !important;
  -webkit-text-fill-color: #f7f1e3 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  outline: none !important;
  box-sizing: border-box !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu input.hhsw-duration-number {
  border: 1px solid rgba(180, 130, 45, 0.58) !important;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #1f1a14 !important;
  -webkit-text-fill-color: #1f1a14 !important;
  box-shadow: inset 0 1px 2px rgba(18,15,11,0.08), 0 1px 3px rgba(180, 130, 45, 0.12) !important;
}
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu input.hhsw-duration-number:focus {
  border-color: #e3a83a !important;
  box-shadow: 0 0 0 2px rgba(227, 168, 58, 0.28) !important;
}
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu .hhsw-duration-quick {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 4px !important;
  margin: 2px 0 0 0 !important;
  width: 100% !important;
}
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu .hhsw-duration-quick > button {
  width: 100% !important;
  min-width: 0 !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: inherit !important;
  cursor: pointer !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu .hhsw-duration-quick > button {
  background: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.12) !important;
  color: #1f1a14 !important;
}
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu .hhsw-duration-quick > button.active {
  background: linear-gradient(135deg, #e5b254 0%, #d4952a 100%) !important;
  border-color: #d4952a !important;
  color: #1b1305 !important;
  -webkit-text-fill-color: #1b1305 !important;
}


/* === QA-168..QA-175 STUDIO & ANNOUNCEMENTS FIXES === */
/* QA-169: Symmetrical left/right padding (10px each side) & minmax(0,1fr) grid columns for all composer popovers */
html body :is(#hhswApp .hhsw-menu, #hhswApp [data-pop-wrap] > .hhsw-menu, body > .hhsw-single-portal.hhsw-menu, body > .hhsw-single-portal):not(.hh367-menu):not(.settings):not(.ratio):not(.hhsw-duration-menu) {
  grid-template-columns: repeat(var(--hhsw-menu-columns, 1), minmax(0, 1fr)) !important;
  padding: 10px !important;
  border-radius: 16px !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}
html body :is(#hhswApp .hhsw-pop.open > .hhsw-menu, #hhswApp [data-pop-wrap].open > .hhsw-menu, #hhswApp .hhsw-menu.is-open, #hhswApp .hhsw-menu.open, body > .hhsw-single-portal.hhsw-menu.is-open, body > .hhsw-single-portal.hhsw-menu.open, body > .hhsw-single-portal.is-open, body > .hhsw-single-portal.open):not(.hh367-menu):not(.settings):not(.ratio):not(.hhsw-duration-menu) {
  display: grid !important;
}
html body #hhswApp .hhsw-pop:not(.open) > .hhsw-menu:not(.is-open):not(.open),
html body #hhswApp [data-pop-wrap]:not(.open) > .hhsw-menu:not(.is-open):not(.open),
html body > .hhsw-single-portal:not(.is-open):not(.open) {
  display: none !important;
}
html body :is(#hhswApp .hhsw-menu, #hhswApp [data-pop-wrap] > .hhsw-menu, body > .hhsw-single-portal.hhsw-menu, body > .hhsw-single-portal):not(.hh367-menu):not(.settings):not(.ratio):not(.hhsw-duration-menu) > button[data-action] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  grid-template-columns: minmax(0, 1fr) 18px !important;
}
html body :is(#hhswApp .hhsw-menu, #hhswApp [data-pop-wrap] > .hhsw-menu, body > .hhsw-single-portal.hhsw-menu, body > .hhsw-single-portal):not(.hh367-menu):not(.settings):not(.ratio):not(.hhsw-duration-menu) > button[data-action] small {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* QA-168: 2-digit duration number never truncated, no spinner arrows, day/night quick pill active state */
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu input.hhsw-duration-number::-webkit-outer-spin-button,
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu input.hhsw-duration-number::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  display: none !important;
  margin: 0 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu .hhsw-duration-quick > button:not(.active):not(.selected) {
  background: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.12) !important;
  color: #1f1a14 !important;
  -webkit-text-fill-color: #1f1a14 !important;
}
html body :is(#hhswApp, .hhsw-single-portal) .hhsw-menu.hhsw-duration-menu .hhsw-duration-quick > button:is(.active, .selected) {
  background: linear-gradient(135deg, #e5b254 0%, #d4952a 100%) !important;
  border-color: #d4952a !important;
  color: #1b1305 !important;
  -webkit-text-fill-color: #1b1305 !important;
}

/* QA-175: /announcements/ Brand Footer (Dark & Day Mode) */
html body .hh-ann-brand-footer {
  margin-top: 48px !important;
  padding: 28px 0 18px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
html body .hh-ann-footer-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 24px !important;
}
html body .hh-ann-footer-brand {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
html body .hh-ann-footer-logo {
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: #f3e5c8 !important;
}
html body .hh-ann-footer-slogan {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: rgba(243, 229, 200, 0.68) !important;
}
html body .hh-ann-footer-divider {
  height: 1px !important;
  width: 100% !important;
  margin: 20px 0 16px !important;
  background: rgba(218, 178, 108, 0.16) !important;
}
html body .hh-ann-footer-bottom {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px 24px !important;
  font-size: 12px !important;
  color: rgba(243, 229, 200, 0.58) !important;
}
html body .hh-ann-footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 18px !important;
}
html body .hh-ann-footer-links a {
  color: rgba(243, 229, 200, 0.72) !important;
  text-decoration: none !important;
  font-size: 12px !important;
  transition: color 0.15s ease !important;
}
html body .hh-ann-footer-links a:hover {
  color: #e5b869 !important;
  text-decoration: underline !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-ann-footer-logo {
  color: #16130f !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-ann-footer-slogan {
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-ann-footer-divider {
  background: rgba(18,15,11,0.10) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-ann-footer-bottom {
  color: #a69680 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-ann-footer-links a {
  color: #403629 !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body .hh-ann-footer-links a:hover {
  color: #b47b22 !important;
}

/* QA-185 / QA-186 / QA-187 / QA-188 / QA-189 (v129z6) */
html body #hh-discover-root a.hh-discover-ad,
html body .hh-discover-feed a.hh-discover-ad {
  border-radius: 12px !important;
}
html[data-hh-ws50i="announcements"] body main.hhsw-page,
body[data-hh-route="events"] main.hhsw-page,
body[data-hh-route="announcements"] main.hhsw-page,
#hhswApp[data-hhsw-route="events"] main.hhsw-page,
html body main.hhsw-page[data-hhsw-activity-root] {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  height: auto !important;
  justify-content: flex-start !important;
  padding-bottom: 0 !important;
}
html body footer.hh-ann-brand-footer {
  margin-top: auto !important;
  padding: 32px 0 18px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
html body .hhv-language-option:not(.is-active) .hhv-language-option__state {
  display: none !important;
}
html body .hhsw-asset-card,
html body .hhsw-asset-card * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body :is(#hhc-home-menu-spec, #hhc-home-menu-preference) {
  padding: 10px 12px !important;
  border-radius: 14px !important;
  gap: 6px !important;
}

/* v129z7: Studio ratio pill unclip & single-option segment constraint */
html body :is(#hhswApp .hhsw-menu, .hhsw-single-portal):is([data-hhsw-pop-id="size"],[data-hhsw-pop-id="agentPref"],[data-hhsw-pop-id="ratio"]) :is(.hhsw-ratio-choice,.hhsw-ratio-option){height:auto!important;min-height:46px!important;max-height:none!important;padding:5px 3px!important;font-size:11.5px!important;font-weight:600!important;line-height:1.15!important;gap:3px!important;overflow:visible!important;}
html body :is(#hhswApp .hhsw-menu, .hhsw-single-portal):is([data-hhsw-pop-id="size"],[data-hhsw-pop-id="agentPref"],[data-hhsw-pop-id="ratio"]) :is(.hhsw-ratio-choice,.hhsw-ratio-option)>i{max-height:14px!important;max-width:18px!important;flex-shrink:0!important;}
html body :is(#hhswApp .hhsw-menu, .hhsw-single-portal):is([data-hhsw-pop-id="size"],[data-hhsw-pop-id="agentPref"]) .hhsw-segment-row.hh-seg-single{display:grid!important;grid-template-columns:minmax(84px,120px)!important;justify-content:start!important;}


/* === 129z16 QA-224: Warm Obsidian / Clean Porcelain Account Popover & Language Dialog === */
html:not([data-hhv-appearance="day"]):not(.hhd4-day) :is(#hhv-3d-account-menu-v1, .hh-user-menu-v251, .hh-user-popover-final, .hhv-language-dialog, #hhv-language-dialog) {
  background: linear-gradient(180deg, #1b1712 0%, #120f0c 100%) !important;
  background-color: #16130f !important;
  border: 1px solid rgba(232, 194, 126, 0.28) !important;
  color: #f3eadb !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.56) !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) :is(#hhv-3d-account-menu-v1, .hh-user-menu-v251, .hh-user-popover-final) :is(.hhv-account-stat, .hhv-appearance-control, .hhv-account-appearance, a, button:not([data-hhv-appearance-option])) {
  background: linear-gradient(180deg, #241f18 0%, #1b1712 100%) !important;
  background-color: #211c15 !important;
  border: 1px solid rgba(232, 194, 126, 0.20) !important;
  color: #efe6d5 !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) :is(#hhv-3d-account-menu-v1, .hh-user-menu-v251, .hh-user-popover-final) [data-hhv-appearance-option]:is(.is-active, [aria-checked="true"]) {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e4b45c !important;
  border: 1px solid rgba(252, 224, 162, 0.85) !important;
  color: #211506 !important;
  -webkit-text-fill-color: #211506 !important;
  font-weight: 700 !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) :is(#hhv-3d-account-menu-v1, .hh-user-menu-v251, .hh-user-popover-final, .hhv-language-dialog, #hhv-language-dialog) {
  background: #faf5eb !important;
  background-color: #faf5eb !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #16130f !important;
  box-shadow: 0 20px 48px rgba(18,15,11,0.14) !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) :is(#hhv-3d-account-menu-v1, .hh-user-menu-v251, .hh-user-popover-final) :is(.hhv-account-stat, .hhv-appearance-control, .hhv-account-appearance, a, button:not([data-hhv-appearance-option])) {
  background: #f6f0e4 !important;
  background-color: #f6f0e4 !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) :is(#hhv-3d-account-menu-v1, .hh-user-menu-v251, .hh-user-popover-final) [data-hhv-appearance-option]:is(.is-active, [aria-checked="true"]) {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e4b45c !important;
  border: 1px solid rgba(196, 142, 54, 0.72) !important;
  color: #211506 !important;
  -webkit-text-fill-color: #211506 !important;
  font-weight: 700 !important;
}


/* === 129z16 QA-224 & QA-226: Agent Warm Obsidian / Clean Porcelain Palette & No Duplicate Prompt Bubble === */
article.hhsw-task:is([data-hh-agent-linked-turn="1"], [data-hh-agent-linked-turn="true"]) > .hhsw-prompt-row {
  display: none !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) #hhswApp :is(.hh-agent-turn, .hh-agent-timeline),
html:not([data-hhv-appearance="day"]):not(.hhd4-day) :is(.hh-agent-turn, .hh-agent-timeline) {
  --agent-text: #f3eadb !important;
  --agent-muted: #c8b89d !important;
  --agent-panel: #191510 !important;
  --agent-soft: #231d15 !important;
  --agent-accent: #e0b65e !important;
  --agent-accent-ink: #1b1205 !important;
  --agent-error: #ffc5bd !important;
  color: #f3eadb !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) :is(.hh-agent-bubble, .hh-agent-plan, .hh-agent-generation, .hh-agent-thinking) {
  background: linear-gradient(180deg, #1c1711 0%, #15110c 100%) !important;
  background-color: #18140f !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3eadb !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28) !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) .hh-agent-message.is-user .hh-agent-bubble {
  background: #261f16 !important;
  border-color: rgba(218, 178, 108, 0.36) !important;
  color: #f7efe2 !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) .hh-agent-avatar {
  background: #211a12 !important;
  border: 1px solid rgba(226, 184, 93, 0.65) !important;
  color: #e9c26b !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) :is(.hh-agent-session-menu, .hh-agent-session-controls > button, .hh-agent-session-switcher > button) {
  background: #1b1610 !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #efe4cf !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) :is(.hh-agent-message-refs span, .hh-agent-plan-specs span, .hh-agent-generation-specs > span, .hh-agent-generation-specs > b, .hh-agent-generation-specs > em, .hh-agent-suggestions button) {
  background: #251e15 !important;
  border: 1px solid rgba(218, 178, 108, 0.26) !important;
  color: #e8d8bc !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) .hh-agent-generation-status {
  background: rgba(218, 178, 108, 0.16) !important;
  border: 1px solid rgba(226, 184, 93, 0.44) !important;
  color: #f4d48c !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) .hh-agent-generation-prompt {
  background: rgba(34, 27, 18, 0.72) !important;
  border-left: 3px solid #d8a242 !important;
  color: #e8dac2 !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) .hh-agent-generation-progress {
  background: #120e0a !important;
  border: 1px solid rgba(218, 178, 108, 0.24) !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) .hh-agent-generation-progress-bar {
  background: linear-gradient(90deg, #c98f32 0%, #e5b869 55%, #f5d896 100%) !important;
  box-shadow: 0 0 12px rgba(229, 184, 105, 0.35) !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) :is(.hh-agent-generation-media, .hh-agent-generation-asset) {
  background: #14100c !important;
  border-color: rgba(218, 178, 108, 0.24) !important;
  color: #dfd0b4 !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) .hh-agent-thinking i {
  border-color: rgba(226, 184, 93, 0.25) !important;
  border-top-color: #e5b869 !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) .hh-agent-composer-status {
  color: #d8c6a8 !important;
}

/* Day Mode Clean Porcelain for Agent */
html:is([data-hhv-appearance="day"], .hhd4-day) #hhswApp :is(.hh-agent-turn, .hh-agent-timeline),
html:is([data-hhv-appearance="day"], .hhd4-day) :is(.hh-agent-turn, .hh-agent-timeline) {
  --agent-text: #16130f !important;
  --agent-muted: #403629 !important;
  --agent-panel: #FFFFFF !important;
  --agent-soft: #f6f0e4 !important;
  --agent-accent: #d89b3c !important;
  --agent-accent-ink: #1f1405 !important;
  --agent-error: #b42318 !important;
  color: #16130f !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) :is(.hh-agent-bubble, .hh-agent-plan, .hh-agent-generation, .hh-agent-thinking) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid rgba(18,15,11,0.10) !important;
  color: #16130f !important;
  box-shadow: 0 8px 24px rgba(18,15,11,0.06) !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) .hh-agent-message.is-user .hh-agent-bubble {
  background: #F4EFE6 !important;
  border-color: rgba(196, 142, 54, 0.30) !important;
  color: #16130f !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) .hh-agent-avatar {
  background: #FFF9EE !important;
  border: 1px solid rgba(196, 142, 54, 0.55) !important;
  color: #9a6412 !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) :is(.hh-agent-message-refs span, .hh-agent-plan-specs span, .hh-agent-generation-specs > span, .hh-agent-generation-specs > b, .hh-agent-generation-specs > em, .hh-agent-suggestions button) {
  background: #f6f0e4 !important;
  border: 1px solid rgba(18,15,11,0.10) !important;
  color: #3b3226 !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) .hh-agent-generation-status {
  background: rgba(216, 155, 60, 0.14) !important;
  border: 1px solid rgba(196, 142, 54, 0.38) !important;
  color: #8a580e !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) .hh-agent-generation-prompt {
  background: #faf5eb !important;
  border-left: 3px solid #d89b3c !important;
  color: #3b3226 !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) .hh-agent-generation-progress {
  background: #e6decb !important;
  border: 1px solid rgba(18,15,11,0.08) !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) .hh-agent-generation-progress-bar {
  background: linear-gradient(90deg, #c98f32 0%, #e5b869 100%) !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) :is(.hh-agent-generation-media, .hh-agent-generation-asset) {
  background: #f6f0e4 !important;
  border-color: rgba(18,15,11,0.09) !important;
  color: #3b3226 !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) .hh-agent-thinking i {
  border-color: rgba(196, 142, 54, 0.25) !important;
  border-top-color: #c88a28 !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) .hh-agent-composer-status {
  color: #403629 !important;
}

/* === 129z16 QA-224: Single Clean Outer Border on Login Modal, Asset Detail Modal, Lingbaoge Detail === */
div.hh-modal-card.hh-login-modal section.hh-auth-shell.hh-auth-modal-shell,
div.hh-modal-card.hh-login-modal div.hh-auth-card,
div.hh-modal-card.hh-login-modal div.hh-auth-pane {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
}
.hhsw-asset-modal .hhsw-asset-modal-head,
.hhsw-asset-modal .hhsw-asset-detail-side,
.hhsw-asset-modal .hhsw-asset-detail-prompt p {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
}
.hhsw-asset-modal .hhsw-asset-modal-head {
  border-bottom: 1px solid rgba(166,150,128,0.14) !important;
}
dialog.hlbg-detail .hlbg-detail-info {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* === 129z16 QA-228: Lightbox (.hh371-dv) Single Outer Frame, Gold Primary CTA & Progressive Image === */
.hh371-dv-side :is(.hh371-dv-prompt, .hh371-dv-meta, button[data-hh371="dinfo"]) {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
}
.hh371-dv-side .hh371-dv-prompt {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.hh371-dv button.hh371-pri,
.hh371-dv-side button.hh371-pri {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e4b45c !important;
  border: 1px solid rgba(196, 142, 54, 0.72) !important;
  color: #1d1304 !important;
  -webkit-text-fill-color: #1d1304 !important;
  font-weight: 700 !important;
}
.hh371-dv-stage img.hh371-dv-img-Swap {
  transition: opacity 0.18s ease !important;
}

/* === 129z16 QA-229: Viewport-Fitted Recharge Modal (100% visible @ 1080p, smooth scroll @ 720p) === */
html body .hh-modal[data-modal="points"] {
  padding: 14px !important;
  align-items: center !important;
  justify-content: center !important;
  overflow-y: auto !important;
}
html body :is(.hh-modal[data-modal="points"] .hh-modal-card.hh-recharge-card, .hh-recharge-card) {
  position: relative !important;
  width: min(1040px, calc(100vw - 28px)) !important;
  max-width: min(1040px, calc(100vw - 28px)) !important;
  max-height: min(860px, calc(100vh - 28px), calc(100dvh - 28px)) !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
html body :is(.hh-modal[data-modal="points"], .hhsw-page, main, body) .hh-recharge-card > .hh-modal-close,
html body .hh-modal[data-modal="points"] .hh-recharge-card > button[data-close-modal] {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  z-index: 12 !important;
}
html body :is(.hh-modal[data-modal="points"], .hhsw-page, main, body) .hh-recharge-head {
  flex: 0 0 auto !important;
  padding: 14px 52px 8px 22px !important;
  margin: 0 !important;
}
html body :is(.hh-modal[data-modal="points"], .hhsw-page, main, body) .hh-recharge-wallet {
  flex: 0 0 auto !important;
  margin: 0 22px 8px !important;
  padding: 8px 14px !important;
}
html body :is(.hh-modal[data-modal="points"], .hhsw-page, main, body) .hh-recharge-body,
html body :is(.hh-modal[data-modal="points"], .hhsw-page, main, body) .hh-recharge-content,
html body :is(.hh-modal[data-modal="points"], .hhsw-page, main, body) .hh-recharge-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 8px 22px 16px !important;
  overscroll-behavior: contain !important;
}
/* Fallback if .hh-recharge-card has direct children without .hh-recharge-body wrapper */
html body :is(.hh-modal[data-modal="points"] .hh-modal-card.hh-recharge-card, .hh-recharge-card).hh-recharge-direct {
  overflow-y: auto !important;
  padding: 16px 22px 18px !important;
  overscroll-behavior: contain !important;
}
html body :is(.hh-modal[data-modal="points"], .hhsw-page, main, body) .hh-recharge-grid,
html body :is(.hh-modal[data-modal="points"], .hhsw-page, main, body) .hh-points-grid {
  gap: 10px !important;
  margin-bottom: 10px !important;
}
html body :is(.hh-modal[data-modal="points"], .hhsw-page, main, body) .hh-recharge-pack,
html body :is(.hh-modal[data-modal="points"], .hhsw-page, main, body) .hh-points-pack {
  padding: 10px 12px !important;
}

/* === 129z16 QA-230: @ Subject Popover Width & Empty State Rhythm === */
.hhsw-subject-menu {
  min-width: 288px !important;
  max-width: min(340px, calc(100vw - 24px)) !important;
  padding: 12px !important;
}
.hhsw-subject-menu .hhsw-empty-state {
  padding: 10px 8px !important;
  margin: 4px 0 8px !important;
  line-height: 1.5 !important;
  text-align: center !important;
}
.hhsw-subject-menu .hhsw-subject-manage-btn {
  width: 100% !important;
  justify-content: center !important;
  margin-top: 6px !important;
}

/* === 129z16 QA-231: Rail Points Pill Fit, /templates/ Empty Center, /legal/ Controls, /3d/ Day Select === */
a.hhsw-credit,
a.hh-ws50f-pts,
a.hh-points-mini {
  width: 62px !important;
  max-width: 62px !important;
  min-width: 58px !important;
  padding: 4px 2px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-align: center !important;
}
a.hhsw-credit :is(b, strong),
a.hh-ws50f-pts :is(b, strong),
a.hh-points-mini :is(b, strong) {
  display: block !important;
  max-width: 100% !important;
  font-size: 9.5px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.35px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}
#tp-grid.hh-tp-is-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 220px !important;
  text-align: center !important;
}
#tp-grid > .tp-empty,
p.tp-note {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hhlc-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.hhlc-actions .hhlc-thm-btn,
.hhlc-actions select.hhlc-lang-select {
  height: 36px !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  outline: none !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) .hhlc-actions :is(.hhlc-thm-btn, select.hhlc-lang-select) {
  background: #221b12 !important;
  border: 1px solid rgba(218, 178, 108, 0.28) !important;
  color: #f3e5c8 !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) .hhlc-actions :is(.hhlc-thm-btn, select.hhlc-lang-select) {
  background: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.12) !important;
  color: #16130f !important;
}
html:not([data-hhv-appearance="day"]):not(.hhd4-day) .hhlc-actions select.hhlc-lang-select option {
  background: #120f0b !important;
  color: #f3e5c8 !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) .hhlc-actions select.hhlc-lang-select option {
  background: #FFFFFF !important;
  color: #16130f !important;
}
section.h3d-compact-model-picker {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
}
html:is([data-hhv-appearance="day"], .hhd4-day) :is(select.h3d-model-select, body.hanhai-3d-standalone select, .h3d-face-count-input) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.56) !important;
  color: #16130f !important;
}


/* === 129z17 QA-223 + QA-235 + QA-236 + QA-237 === */
/* QA-223: Safe CSS containment on task containers without breaking fixed child menus */
#hhswApp .hhsw-task-region,
#hhswApp article.hhsw-task {
  contain: style !important;
}
#hhswApp .hhsw-task-preview,
#hhswApp .hhsw-prompt-row {
  contain: layout style !important;
}

/* QA-235: Disabled / lower-tier membership CTA buttons never flash gold/orange before hydration */
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp .hhsw-membership button.hhsw-plan-action:is(:disabled, [disabled], .is-disabled) {
  background: #e6decb !important;
  background-color: #e6decb !important;
  color: #524637 !important;
  -webkit-text-fill-color: #524637 !important;
  border: 1px solid #dcd3c2 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp .hhsw-membership button.hhsw-plan-action:is(:disabled, [disabled], .is-disabled) {
  background: #120f0b !important;
  background-color: #120f0b !important;
  color: #a69680 !important;
  -webkit-text-fill-color: #a69680 !important;
  border: 1px solid rgba(166,150,128,0.22) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* QA-237: Studio ratio popover fits all 7 aspect ratios unclipped, model popover shows full company-grouped names */
html body :is(.hhsw-single-portal, #hhswApp .hhsw-menu)[data-hhsw-pop-id="ratio"] {
  width: max-content !important;
  min-width: 0 !important;
  max-width: min(560px, calc(100vw - 24px)) !important;
  padding: 8px 10px !important;
}
html body :is(.hhsw-single-portal, #hhswApp .hhsw-menu)[data-hhsw-pop-id="ratio"] .hhsw-ratio-grid {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(48px, auto) !important;
  gap: 6px !important;
}
html body :is(.hhsw-single-portal, #hhswApp .hhsw-menu):is([data-hhsw-pop-id="model"], [data-hhsw-pop-id="agentModel"]) {
  width: min(468px, calc(100vw - 24px)) !important;
  min-width: min(440px, calc(100vw - 24px)) !important;
  max-width: min(488px, calc(100vw - 24px)) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  padding: 10px !important;
  gap: 6px !important;
}
html body :is(.hhsw-single-portal, #hhswApp .hhsw-menu):is([data-hhsw-pop-id="model"], [data-hhsw-pop-id="agentModel"]) .hhsw-model-group-head {
  grid-column: 1 / -1 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  opacity: 0.72 !important;
  padding: 6px 6px 2px !important;
  margin-top: 2px !important;
  border-top: 1px solid rgba(218, 178, 108, 0.16) !important;
  pointer-events: none !important;
  user-select: none !important;
}
html body :is(.hhsw-single-portal, #hhswApp .hhsw-menu):is([data-hhsw-pop-id="model"], [data-hhsw-pop-id="agentModel"]) .hhsw-model-group-head:first-child {
  border-top: none !important;
  margin-top: 0 !important;
  padding-top: 2px !important;
}
html body :is(.hhsw-single-portal, #hhswApp .hhsw-menu):is([data-hhsw-pop-id="model"], [data-hhsw-pop-id="agentModel"]) > button[data-action] {
  width: 100% !important;
  padding: 8px 10px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}
html body :is(.hhsw-single-portal, #hhswApp .hhsw-menu):is([data-hhsw-pop-id="model"], [data-hhsw-pop-id="agentModel"]) > button[data-action] > span {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 12.5px !important;
}

/* QA-236: Always show visible delete/rename actions on React Canvas Project Library cards (/canvas/?hh_full=1) */
html.c5-on body .canvas-project-card-actions:not(.canvas-project-delete-confirm) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  position: static !important;
  gap: 6px !important;
  padding: 6px 2px 2px !important;
  margin-top: 4px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 0 !important;
}
html.c5-on body .canvas-project-card-actions:not(.canvas-project-delete-confirm) button {
  height: 26px !important;
  padding: 0 9px !important;
  border-radius: 7px !important;
  font-size: 11.5px !important;
  line-height: 24px !important;
  border: 1px solid rgba(166,150,128,0.25) !important;
  cursor: pointer !important;
}
html.c5-on body .canvas-project-card-actions button.danger {
  color: #f87171 !important;
  border-color: rgba(248, 113, 113, 0.38) !important;
  background: rgba(248, 113, 113, 0.08) !important;
}
html.c5-on body .canvas-project-card-actions button.danger:hover {
  background: rgba(239, 68, 68, 0.20) !important;
}

/* === 129z22 M2 UI Polish: a.hhsw-credit Fit, /studio/ Day Thread, / & /3d/ Contrast Borders === */
aside:is(.hhsw-rail, .hh-rail, .ws42-rail) a.hhsw-credit {
  display: block !important;
  width: 62px !important;
  max-width: 62px !important;
  min-width: 58px !important;
  padding: 5px 3px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow: hidden !important;
  text-align: center !important;
  line-height: 1.22 !important;
  font-size: 10px !important;
}
aside:is(.hhsw-rail, .hh-rail, .ws42-rail) a.hhsw-credit > br {
  display: inline !important;
  content: normal !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"], .hhd4-day) body #hhswApp .hhsw-threads .hhsw-thread-open,
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"], .hhd4-day) body #hhswApp .hhsw-threads .hhsw-thread-open span {
  color: #1c1710 !important;
  -webkit-text-fill-color: #1c1710 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"], .hhd4-day) body #hhswApp .hhsw-threads .hhsw-thread-item:is(.active, .hhsw-session-current) :is(.hhsw-thread-open, .hhsw-thread-open span) {
  color: #3d280a !important;
  -webkit-text-fill-color: #3d280a !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]):not(.hhd4-day) body.home .hh-discover-search {
  border: 1px solid rgba(232, 186, 98, 0.62) !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"], .hhd4-day) body.home .hh-discover-search {
  border: 1px solid rgba(120, 82, 22, 0.76) !important;
}
html body.home .hh-discover-search :is(input, [type="search"], #hh-discover-query) {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"], .hhd4-day) body.hanhai-3d-standalone :is(select.h3d-model-select, label.h3d-face-count-input, .h3d-face-count-input) {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(18,15,11,0.56) !important;
  color: #16130f !important;
}
html:not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]):not(.hhd4-day) body.hanhai-3d-standalone :is(select.h3d-model-select, label.h3d-face-count-input, .h3d-face-count-input) {
  background: #1c1610 !important;
  background-color: #1c1610 !important;
  border: 1px solid rgba(218, 178, 108, 0.58) !important;
  color: #f3e5c8 !important;
}
html body.hanhai-3d-standalone .h3d-face-count-input input {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: inherit !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"], .hhd4-day) body #hhswApp .hhsw-composer .hhsw-generic-upload:not(.is-disabled) {
  background: #f4ede0 !important;
  background-color: #f4ede0 !important;
  border: 1px solid #524637 !important;
  border-color: #524637 !important;
  color: #1c1710 !important;
  -webkit-text-fill-color: #1c1710 !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"], .hhd4-day) body #hhswApp .hhsw-composer .hhsw-generic-upload:not(.is-disabled) :is(span, .hhsw-upload-label, .hhsw-upload-count, button, small, b, svg) {
  color: #1c1710 !important;
  -webkit-text-fill-color: #1c1710 !important;
  opacity: 1 !important;
}
html:is([data-hhv-appearance^="day"], [data-hh-appearance^="day"], .hhd4-day) body #hhswApp .hhsw-composer .hhsw-generic-upload:not(.is-disabled):hover {
  background: #e6decb !important;
  background-color: #e6decb !important;
  border-color: #221c15 !important;
  color: #1c1710 !important;
  -webkit-text-fill-color: #1c1710 !important;
}

/* M3: Isolate popover/filter menu layout+style subtree and enforce WCAG contrast on disabled .hhsw-generate */
html body #hhswApp :is(.hhsw-menu, .hhsw-filter-menu, .hhsw-agent-model-pop) {
  contain: layout style;
}
/* Step B.1: Day-mode Home Hero transparent blend over daylight motion canvas (no opaque cut box) */
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body.home,
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body.home :is(.hh-shell, main.hh-main, main.hh-home-v22, .hh-home-v22, .hh-hero-v22, #hh-home-discover, .hh-discover) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
html:is(.hhd4-day,[data-hhv-appearance^="day"],[data-hh-appearance^="day"]) body.home .hanhai-home-generator-wrap {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 22px !important;
}
/* Step B.1: Zero-invalidation popover busy toggle directly on target nodes instead of <html> */
html body .hh366-tobottom.hh-ui-busy-hide {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html body #hhswApp .hhsw-stage > .hhsw-composer.hh-ui-busy {
  z-index: 120 !important;
}
html:is([data-hhv-appearance], .hhd4-day, .hhd4-night, :root) body #hhswApp .hhsw-composer button.hhsw-generate:is(:disabled, [disabled], .is-disabled) {
  background: linear-gradient(135deg, #f3cb7a 0%, #d89b3c 100%) !important;
  background-color: #e5b55c !important;
  color: #1f1406 !important;
  -webkit-text-fill-color: #1f1406 !important;
  opacity: 0.92 !important;
}
@media(min-width:1200px){html body.hanhai-3d-standalone .h3d-controls-guide,html body .h3d-controls-guide{flex-wrap:nowrap!important;padding:6px 9px!important;gap:4px 6px!important}html body.hanhai-3d-standalone .h3d-controls-guide .h3d-guide-item,html body .h3d-guide-item{font-size:11px!important;gap:3px!important}html body.hanhai-3d-standalone .h3d-controls-guide button.h3d-guide-key,html body button.h3d-guide-key{font-size:11px!important;padding:0 7px!important;height:24px!important;gap:4px!important}}
/* 129z59: Hide orphan 3D error boundary when workspace is live + crisp 384x288 static cover preview */
body:has(.h3d-workspace-grid) .h3d-error-boundary,
body:has(.h3d-app) .h3d-error-boundary {
  display: none !important;
}
body.hanhai-3d-standalone .h3d-selected-cover .h3d-artifact-thumbnail > img {
  width: auto !important;
  height: auto !important;
  max-width: min(384px, calc(100% - 40px)) !important;
  max-height: min(288px, calc(100% - 36px)) !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22) !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body.hanhai-3d-standalone .h3d-selected-cover .h3d-artifact-thumbnail > img {
  box-shadow: 0 12px 28px rgba(24, 20, 14, 0.10) !important;
}
body.hanhai-3d-standalone .h3d-history-rail .h3d-artifact-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 129z65: Hardware-accelerated GPU fast-path scrolling for Studio Workspace (/studio/) */
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp :is(.hhsw-shell, .hhsw-studio, .hhsw-main, .hhsw-stage, .hhsw-workspace) {
  background-color: #120f0b !important;
  background-image: none !important;
}
html:not(.hhd4-day):not([data-hhv-appearance^="day"]):not([data-hh-appearance^="day"]) body #hhswApp [data-task-region]:not([data-hhsw-region-parked="1"]) {
  background-color: #120f0b !important;
  background-image: none !important;
}
html:is(.hhd4-day, [data-hhv-appearance^="day"], [data-hh-appearance^="day"]) body #hhswApp [data-task-region]:not([data-hhsw-region-parked="1"]) {
  background-color: #faf5eb !important;
  background-image: none !important;
}
html body #hhswApp [data-task-region]:not([data-hhsw-region-parked="1"]) {
  will-change: scroll-position !important;
  transform: translateZ(0) !important;
  overscroll-behavior-y: contain !important;
}
html body #hhswApp .hhsw-stage > .hhsw-task-region[data-hhsw-region-parked="1"] {
  content-visibility: hidden !important;
  pointer-events: none !important;
  contain: strict !important;
}
html body #hhswApp .hhsw-stage > .hhsw-composer {
  transform: translate3d(-50%, 0, 0) !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  contain: layout style !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: none !important;
}
html body .hh366-tobottom {
  will-change: transform, opacity !important;
  backface-visibility: hidden !important;
}
html body #hhswApp .hhsw-task-region:not([data-hhsw-region-parked="1"]) article.hhsw-task {
  contain: layout style !important;
}
html.hh-scrolling body #hhswApp .hhsw-task-list :is(.hhsw-layer-tile, .hhsw-share-pick, .hhsw-task-actions > button, .hhsw-task-actions > a) {
  transition: none !important;
}
html.hh-scrolling body #hhswApp .hhsw-task-list .hhsw-layer-tile:hover {
  transform: none !important;
  box-shadow: none !important;
}



/* Board #247 P0 /assets/ 60 FPS Scroll Containment & Zero-Blur Rules */
html body #hhswApp .hhsw-page > .hhsw-grid > .hhsw-asset-card {
  contain: layout style paint !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24) !important;
  transition: box-shadow 0.16s ease, border-color 0.16s ease !important;
}
html body #hhswApp .hhsw-page > .hhsw-grid > .hhsw-asset-card.hhsw-offscreen-card {
  content-visibility: auto !important;
  contain: layout style paint !important;
}
html body #hhswApp .hhsw-page > .hhsw-grid > .hhsw-asset-card * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body #hhswApp .hhsw-asset-card .hhsw-asset-favorite,
html body #hhswApp .hhsw-asset-card .hhsw-gallery-play,
html body #hhswApp .hhsw-asset-card .hhsw-gallery-type,
html body #hhswApp .hhsw-asset-card .hhsw-gallery-caption,
html body #hhswApp .hhsw-asset-card button {
  transition-property: opacity, background-color, border-color, color, box-shadow !important;
}

/* === Board #272 Track D: /studio/ & /assets/ Smoothness, Containment & Zero Excess will-change === */
html body #hhswApp .hhsw-task-region:not([data-hhsw-region-parked="1"]) article.hhsw-task {
  contain: layout style paint !important;
}
html body #hhswApp .hhsw-task-region:not([data-hhsw-region-parked="1"]) article.hhsw-task:not(:nth-last-child(-n+2)) {
  content-visibility: auto !important;
  contain-intrinsic-size: auto 220px !important;
}
html body #hhswApp aside.hhsw-threads .hhsw-thread-item {
  content-visibility: auto !important;
  contain-intrinsic-size: auto 42px !important;
  contain: layout style paint !important;
}
html body #hhswApp :is(.hhsw-media-tile img, .hhsw-media-tile video, .hhsw-asset-card img, .hhsw-asset-card .hhsw-gallery-play) {
  will-change: auto !important;
}
html body #hhswApp .hhsw-task-list .hhsw-layer-badge {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28) !important;
}

/* === TRACK 1: Guest Recharge Panel, Model Price Table, /models/ Price Cards, & /assets/ Scroll Skeletons === */
#hhswApp .hhsw-membership[data-hhsw-inline-tab="1"] .hhsw-plan-grid,#hhswApp .hhsw-membership[data-hhsw-inline-tab="1"] .hhpf-grid-footnote,#hhswApp .hhsw-membership[data-hhsw-inline-tab="1"] .hhsw-compare,#hhswApp .hhsw-membership[data-hhsw-inline-tab="1"] .hhsw-rules{display:none!important}
.hhsw-recharge-panel{margin:20px 0 28px;padding:24px;border-radius:18px;background:rgba(20,18,15,.92);border:1px solid rgba(224,182,94,.22);box-shadow:0 12px 32px rgba(0,0,0,.28)}
.hhsw-recharge-head,.hhsw-ptable-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px}
.hhsw-recharge-head h2,.hhsw-ptable-head h2{margin:0 0 6px;font-size:22px;font-weight:700;color:#faf5eb}
.hhsw-recharge-head p,.hhsw-ptable-head p{margin:0;font-size:13px;line-height:1.55;color:#bfb8ac;max-width:720px}
.hhsw-recharge-pay-badges{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:#bfb8ac}
.hhsw-pay-badge{font-style:normal;padding:4px 10px;border-radius:999px;background:rgba(224,182,94,.12);border:1px solid rgba(224,182,94,.28);color:#f3d48c;font-weight:600}
.hhsw-recharge-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
@media(max-width:1180px){.hhsw-recharge-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.hhsw-recharge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.hhsw-recharge-grid{grid-template-columns:1fr}}
.hhsw-recharge-card{display:flex;flex-direction:column;padding:18px 16px 16px;border-radius:14px;background:rgba(29,26,21,.96);border:1px solid rgba(224,182,94,.18);contain:layout style paint;transition:border-color .18s ease,transform .18s ease}
.hhsw-recharge-card:hover{border-color:rgba(224,182,94,.52);transform:translateY(-2px)}
.hhsw-recharge-card.is-featured{background:linear-gradient(160deg,rgba(45,37,22,.98),rgba(25,22,17,.98));border-color:rgba(224,182,94,.46)}
.hhsw-recharge-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;min-height:22px}
.hhsw-recharge-tag{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:600;background:rgba(255,255,255,.07);color:#e4d9c5}
.hhsw-recharge-bonus-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;background:rgba(224,182,94,.2);color:#f6d482;border:1px solid rgba(224,182,94,.36)}
.hhsw-recharge-name{margin:0 0 6px;font-size:15px;font-weight:600;color:#faf5eb}
.hhsw-recharge-price{display:flex;align-items:baseline;gap:3px;color:#f5d58b;margin-bottom:8px}
.hhsw-recharge-price span{font-size:14px;font-weight:600}
.hhsw-recharge-price b{font-size:28px;line-height:1.1;font-weight:800;letter-spacing:-.02em}
.hhsw-recharge-pts-total{display:flex;align-items:baseline;gap:6px;padding:8px 10px;border-radius:10px;background:rgba(224,182,94,.08);border:1px solid rgba(224,182,94,.16);margin-bottom:10px}
.hhsw-recharge-pts-total strong{font-size:18px;font-weight:700;color:#faf5eb}
.hhsw-recharge-pts-total span{font-size:12px;color:#d6c6a5}
.hhsw-recharge-breakdown{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#b8b0a3;margin-bottom:14px;flex:1}
.hhsw-recharge-cta{width:100%;height:38px;border-radius:10px;border:1px solid rgba(224,182,94,.42);background:linear-gradient(135deg,#e2be6c,#c6983b);color:#17130c;font-size:13px;font-weight:700;cursor:pointer;transition:opacity .16s ease,transform .16s ease}
.hhsw-recharge-cta:hover{opacity:.92;transform:translateY(-1px)}
.hhsw-recharge-rules{margin-top:18px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);font-size:12px;line-height:1.65;color:#bfb8ac;display:flex;flex-wrap:wrap;gap:6px 14px}
.hhsw-recharge-rules b{color:#f3d48c}
/* Price table on /membership/ */
.hhsw-ptable-bar,.hhsw-models-filterbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.hhsw-ptable-filters,.hhsw-models-cats{display:flex;flex-wrap:wrap;gap:8px}
.hhsw-ptable-filter,.hhsw-models-cat{height:34px;padding:0 13px;border-radius:999px;border:1px solid rgba(224,182,94,.22);background:rgba(255,255,255,.05);color:#dcd4c6;font-size:13px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.hhsw-ptable-filter em,.hhsw-models-cat em{font-style:normal;font-size:11px;opacity:.78}
.hhsw-ptable-filter.active,.hhsw-models-cat.active{background:linear-gradient(135deg,#e2be6c,#c6983b);color:#17130c;border-color:transparent}
.hhsw-ptable-search,.hhsw-models-search{min-width:240px;flex:0 1 340px;height:36px;padding:0 13px;border-radius:10px;border:1px solid rgba(224,182,94,.24);background:rgba(14,12,10,.78);color:#faf5eb;font-size:13px;outline:none}
.hhsw-ptable-search:focus,.hhsw-models-search:focus{border-color:rgba(224,182,94,.62)}
.hhsw-ptable-chips,.hhsw-model-spec-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.hhsw-ptable-chip,.hhsw-model-spec-chip{display:inline-flex;align-items:center;gap:3px;padding:3px 8px;border-radius:7px;font-size:11px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);color:#d7cfc2;line-height:1.35}
.hhsw-ptable-chip b,.hhsw-model-spec-chip b{color:#f5d58b;font-weight:700}
/* /models/ gold pricing badges & CTA */
.hhsw-tools-pricing-btn{background:linear-gradient(135deg,rgba(226,190,108,.22),rgba(198,152,59,.14))!important;border-color:rgba(224,182,94,.48)!important;color:#f7d88a!important;font-weight:700!important}
.hhsw-model-card-138{content-visibility:auto;contain-intrinsic-size:auto 210px;contain:layout style paint}
.hhsw-model-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.hhsw-model-price-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.hhsw-model-price-pill{display:inline-flex;align-items:baseline;gap:3px;padding:3px 10px;border-radius:999px;background:linear-gradient(135deg,rgba(226,190,108,.22),rgba(198,152,59,.14));border:1px solid rgba(224,182,94,.42);color:#f6d482;font-size:11.5px;font-weight:700}
.hhsw-model-price-pill strong{font-size:14px;font-weight:800;color:#ffe29c}
.hhsw-model-mem-pill{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:rgba(115,218,202,.14);border:1px solid rgba(115,218,202,.32);color:#8ce8d8;font-size:11px;font-weight:600}
/* /assets/ transient scroll-ahead skeleton cards */
.hhsw-asset-skel-card{border-radius:14px;overflow:hidden;background:rgba(255,255,255,.04);border:1px solid rgba(224,182,94,.12);contain:layout style paint}
.hhsw-asset-skel-media{aspect-ratio:1/1;background:linear-gradient(110deg,rgba(255,255,255,.04) 25%,rgba(224,182,94,.09) 50%,rgba(255,255,255,.04) 75%);background-size:200% 100%;animation:hhswSkelPulse138 1.5s ease-in-out infinite}
.hhsw-asset-skel-meta{padding:10px 12px;display:flex;justify-content:space-between;gap:8px}
.hhsw-asset-skel-meta span{height:12px;width:54%;border-radius:6px;background:rgba(255,255,255,.08)}
.hhsw-asset-skel-meta i{height:12px;width:28%;border-radius:6px;background:rgba(255,255,255,.06);font-style:normal}
@keyframes hhswSkelPulse138{0%{background-position:100% 0}100%{background-position:-100% 0}}
/* Day Theme crisp parity */
html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-panel,html[data-hhv-appearance="day"] #hhswApp .hhsw-ptable-panel{background:#fffdf8;border-color:rgba(166,124,46,.24);box-shadow:0 8px 26px rgba(80,62,24,.08)}
html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-head h2,html[data-hhv-appearance="day"] #hhswApp .hhsw-ptable-head h2,html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-name,html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-pts-total strong,html[data-hhv-appearance="day"] #hhswApp html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-head p,html[data-hhv-appearance="day"] #hhswApp .hhsw-ptable-head p,html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-breakdown,html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-rules,html[data-hhv-appearance="day"] #hhswApp html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-card{background:#faf6ee;border-color:rgba(166,124,46,.22)}
html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-card.is-featured{background:linear-gradient(160deg,#fff7e2,#f9efe0);border-color:rgba(181,134,42,.52)}
html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-tag{background:rgba(166,124,46,.1);color:#5c451c}
html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-bonus-pill,html[data-hhv-appearance="day"] #hhswApp .hhsw-pay-badge{background:rgba(181,134,42,.14);border-color:rgba(181,134,42,.34);color:#7a5310}
html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-price,html[data-hhv-appearance="day"] #hhswApp html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-pts-total{background:rgba(181,134,42,.08);border-color:rgba(181,134,42,.2)}
html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-pts-total span{color:#6e5730}
html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-rules{background:#f7f1e5;border-color:rgba(166,124,46,.16)}
html[data-hhv-appearance="day"] #hhswApp .hhsw-recharge-rules b{color:#7a5310}
html[data-hhv-appearance="day"] #hhswApp .hhsw-ptable-filter,html[data-hhv-appearance="day"] #hhswApp .hhsw-models-cat{background:#f6f0e4;border-color:rgba(166,124,46,.24);color:#3c3224}
html[data-hhv-appearance="day"] #hhswApp .hhsw-ptable-filter.active,html[data-hhv-appearance="day"] #hhswApp .hhsw-models-cat.active{background:linear-gradient(135deg,#c9952b,#a87618);color:#fffdf8;border-color:transparent}
html[data-hhv-appearance="day"] #hhswApp .hhsw-ptable-search,html[data-hhv-appearance="day"] #hhswApp .hhsw-models-search{background:#fff;border-color:rgba(166,124,46,.28);color:#1f1911}
html[data-hhv-appearance="day"] #hhswApp html[data-hhv-appearance="day"] #hhswApp html[data-hhv-appearance="day"] #hhswApp .hhsw-ptable-chip,html[data-hhv-appearance="day"] #hhswApp .hhsw-model-spec-chip{background:#f7f1e6;border-color:rgba(166,124,46,.2);color:#433829}
html[data-hhv-appearance="day"] #hhswApp .hhsw-ptable-chip b,html[data-hhv-appearance="day"] #hhswApp .hhsw-model-spec-chip b{color:#8c5d0c}
html[data-hhv-appearance="day"] #hhswApp html[data-hhv-appearance="day"] #hhswApp html[data-hhv-appearance="day"] #hhswApp html[data-hhv-appearance="day"] #hhswApp html[data-hhv-appearance="day"] #hhswApp html[data-hhv-appearance="day"] #hhswApp .hhsw-tools-pricing-btn{background:linear-gradient(135deg,#fff5dc,#f6e4b8)!important;border-color:rgba(181,134,42,.48)!important;color:#7a5310!important}
html[data-hhv-appearance="day"] #hhswApp .hhsw-model-price-pill{background:#fdf2d6;border-color:rgba(181,134,42,.42);color:#7a5310}
html[data-hhv-appearance="day"] #hhswApp .hhsw-model-price-pill strong{color:#6a4306}
html[data-hhv-appearance="day"] #hhswApp .hhsw-model-mem-pill{background:#dff5ef;border-color:rgba(18,97,83,.28);color:#126153}
html[data-hhv-appearance="day"] #hhswApp .hhsw-asset-skel-card{background:#f7f2e8;border-color:rgba(166,124,46,.16)}
html[data-hhv-appearance="day"] #hhswApp .hhsw-asset-skel-media{background:linear-gradient(110deg,#f1eadc 25%,#e8dec9 50%,#f1eadc 75%);background-size:200% 100%}
