/* HC_ZHJ_WORKBENCH_UI_V3 — three tool pages only */
html:root {
  color-scheme: dark !important;
  background: #0b1220 !important;
}
html:root body.hc-v2-app.hc-v2-workbench {
  --v2-bg: #0b1220;
  --v2-paper: #121d2d;
  --v2-ink: #e7edf6;
  --v2-muted: #91a1b7;
  --v2-line: #29394f;
  --v2-red: #e60018;
  background: #0b1220 !important;
  background-image: none !important;
  color: #e7edf6 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh !important;
}
html:root body.hc-v2-app.hc-v2-workbench,
html:root body.hc-v2-app.hc-v2-workbench * {
  scrollbar-color: #40516a #111b2a;
}
html:root body.hc-v2-app.hc-v2-workbench :focus-visible {
  outline: 2px solid #e60018 !important;
  outline-offset: 3px !important;
}

/* Top application bar */
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-topbar {
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 20px !important;
  background: #0e1726 !important;
  border-bottom: 1px solid #26364b !important;
  color: #dbe5f2 !important;
  box-shadow: 0 6px 24px rgba(0,0,0,.16) !important;
}
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-breadcrumb,
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-breadcrumb a,
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-top-actions {
  color: #9aabc1 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-breadcrumb strong {
  color: #eef3fa !important;
}
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-top-actions .hc-v2-create {
  min-height: 36px !important;
  padding: 7px 13px !important;
  border: 1px solid #e60018 !important;
  border-radius: 8px !important;
  background: #d90018 !important;
  color: #fff !important;
}

/* Darken the shared navigation only while one of these three tools is open. */
html:root body.hc-v2-app.hc-v2-workbench #pcSidebarContainer {
  background: #0d1624 !important;
  border-right: 1px solid #26364b !important;
  box-shadow: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench #pcSidebarContainer .zhj-pc-sidebar,
html:root body.hc-v2-app.hc-v2-workbench #pcSidebarContainer .zhj-pc-logo,
html:root body.hc-v2-app.hc-v2-workbench #pcSidebarContainer .zhj-pc-menu {
  background: #0d1624 !important;
  color: #dbe5f2 !important;
  border-color: #26364b !important;
}
html:root body.hc-v2-app.hc-v2-workbench #pcSidebarContainer .hc-ui-brand-type {
  color: #f0f4fa !important;
}
html:root body.hc-v2-app.hc-v2-workbench #pcSidebarContainer .hc-ui-brand-type small {
  color: #7f91aa !important;
}
html:root body.hc-v2-app.hc-v2-workbench #pcSidebarContainer :is(.zhj-pc-link,.zhj-pc-group-title,.zhj-pc-submenu a,.zhj-nav-link,.zhj-tool-link) {
  color: #a9b8cc !important;
  background: transparent !important;
  border-color: transparent !important;
}
html:root body.hc-v2-app.hc-v2-workbench #pcSidebarContainer :is(.zhj-pc-link:hover,.zhj-pc-submenu a:hover,.zhj-nav-link:hover,.zhj-tool-link:hover) {
  color: #fff !important;
  background: #19283b !important;
  border-color: #30445e !important;
}
html:root body.hc-v2-app.hc-v2-workbench #pcSidebarContainer :is(.zhj-pc-link.active,.zhj-pc-submenu a.active,.zhj-nav-link.active,.zhj-tool-link.active) {
  color: #fff !important;
  background: #1b2a3e !important;
  border-left: 2px solid #e60018 !important;
}
html:root body.hc-v2-app.hc-v2-workbench #pcSidebarContainer :is(.zhj-pc-copyright,.zhj-pc-footer,.zhj-pc-user,.zhj-pc-bottom) {
  color: #8fa0b6 !important;
  background: #0d1624 !important;
  border-color: #26364b !important;
}
html:root body.hc-v2-app.hc-v2-workbench #mobileNavContainer,
html:root body.hc-v2-app.hc-v2-workbench #mobileNavContainer :is(nav,header,footer,.mobile-menu-panel) {
  background: #0d1624 !important;
  color: #e1e9f4 !important;
  border-color: #26364b !important;
}

/* Reclaim the vertical space above the actual work area. */
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workbench-main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: calc(100dvh - 54px) !important;
  margin: 0 !important;
  padding: 8px 18px 22px !important;
  background: #0b1220 !important;
  overflow: visible !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-workbench {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-hero {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-kicker {
  display: inline-flex !important;
  margin: 0 0 5px !important;
  padding: 4px 9px !important;
  border: 1px solid #2d4059 !important;
  border-radius: 6px !important;
  background: #142236 !important;
  color: #9eb5d2 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .02em !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-hero h1 {
  margin: 0 !important;
  color: #f0f4fa !important;
  font-size: clamp(25px, 2vw, 32px) !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  letter-spacing: -.035em !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-hero h1 span {
  display: inline !important;
  margin: 0 !important;
  background: none !important;
  color: #ff6675 !important;
  -webkit-text-fill-color: #ff6675 !important;
  font-size: inherit !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-hero p {
  margin: 5px 0 0 !important;
  max-width: 900px !important;
  color: #98a9bf !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-credit {
  padding: 8px 12px !important;
  border: 1px solid #33445b !important;
  border-radius: 9px !important;
  background: #151f2e !important;
  box-shadow: none !important;
  color: #cbd7e6 !important;
  font-size: 12px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-credit b {
  color: #ff6877 !important;
  font-size: 15px !important;
}

/* Compact, legible workflow stepper. */
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workflow {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 40px !important;
  margin: 0 0 12px !important;
  padding: 7px 12px !important;
  border: 1px solid #293a50 !important;
  border-radius: 9px !important;
  background: #111c2b !important;
  color: #9aabc1 !important;
  font-size: 11px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workflow .step {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #a9b8cc !important;
  white-space: nowrap !important;
}
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workflow .step i {
  width: 21px !important;
  height: 21px !important;
  border-radius: 50% !important;
  background: #29394e !important;
  color: #d4dfed !important;
  font-size: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workflow .step:first-child {
  color: #ff7582 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workflow .step:first-child i {
  background: #e60018 !important;
  color: #fff !important;
}
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workflow .line {
  height: 1px !important;
  background: #33445b !important;
}
html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workflow small {
  color: #8193aa !important;
  font-size: 10px !important;
}

/* Main workspace: 42% operation panel + 58% preview panel. */
html:root body.hc-v2-app.hc-v2-workbench .space-layout {
  display: grid !important;
  grid-template-columns: minmax(400px,.42fr) minmax(0,.58fr) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: none !important;
  align-items: start !important;
  justify-content: stretch !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-layout > .space-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  top: auto !important;
  overflow: hidden !important;
  border: 1px solid #2a3b52 !important;
  border-radius: 13px !important;
  background: #121d2d !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.24) !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-card-head {
  flex: 0 0 auto !important;
  min-height: 54px !important;
  gap: 10px !important;
  padding: 12px 15px !important;
  border-bottom: 1px solid #29394e !important;
  background: #152235 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-card-title {
  gap: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-step {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 8px !important;
  background: #263a54 !important;
  color: #f2f6fb !important;
  box-shadow: none !important;
  font-size: 12px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-card-head h2 {
  margin: 0 !important;
  color: #edf3fa !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-card-sub {
  margin-top: 3px !important;
  color: #8799b1 !important;
  font-size: 11px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-body {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  padding: 14px 15px !important;
  overflow: visible !important;
  background: transparent !important;
}
/* Higher-specificity reset for V2 desktop rule that created an inner scrollbar. */
html:root body.hc-v2-app.hc-v2-workbench .space-layout > .space-card > .space-body {
  flex: 0 0 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

/* Upload areas become proper large click targets; no overlay blocks pointer input. */
html:root body.hc-v2-app.hc-v2-workbench .material-upload-grid {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 11px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-upload {
  display: flex !important;
  min-width: 0 !important;
  min-height: 205px !important;
  padding: 16px 12px !important;
  border: 1.5px dashed #405773 !important;
  border-radius: 11px !important;
  background: #0d1828 !important;
  color: #e7edf6 !important;
  cursor: pointer !important;
  transform: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-upload:hover {
  border-color: #e60018 !important;
  background: #142033 !important;
  color: #fff !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-upload-icon {
  width: 54px !important;
  height: 54px !important;
  margin: 0 auto 11px !important;
  border-radius: 13px !important;
  background: #1d3048 !important;
  color: #ff7180 !important;
  box-shadow: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-upload-icon i {
  color: #ff7180 !important;
  font-size: 23px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-upload h3 {
  margin: 0 !important;
  color: #e8eff8 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-upload p {
  color: #8fa1b8 !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-upload [id$="FileName"] {
  color: #ff7b88 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .material-two-tip {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 8px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-mini {
  min-height: 38px !important;
  padding: 9px 10px !important;
  border: 1px solid #2d4058 !important;
  border-radius: 8px !important;
  background: #172438 !important;
  color: #b7c5d7 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-mini i {
  color: #e65a69 !important;
}

/* Parameter controls: keep labels and buttons full-sized and readable. */
html:root body.hc-v2-app.hc-v2-workbench .space-form {
  display: grid !important;
  gap: 13px !important;
  margin-top: 14px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-label {
  margin-bottom: 7px !important;
  color: #dce5f0 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-label small {
  color: #8193aa !important;
  font-size: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-form .option-group {
  display: grid !important;
  grid-template-columns: repeat(auto-fit,minmax(88px,1fr)) !important;
  gap: 7px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-form .option-group button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 9px 9px !important;
  border: 1px solid #344861 !important;
  border-radius: 8px !important;
  background: #172438 !important;
  color: #d5dfec !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 550 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-form .option-group button:hover {
  border-color: #e60018 !important;
  background: #202b3d !important;
  color: #fff !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-form .option-group button.option-active,
html:root body.hc-v2-app.hc-v2-workbench .space-form .option-group button.active {
  border-color: #e60018 !important;
  background: rgba(230,0,24,.17) !important;
  color: #ff8792 !important;
  box-shadow: inset 0 0 0 1px rgba(230,0,24,.12) !important;
}
html:root body.hc-v2-app.hc-v2-workbench .plan-row {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 8px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .plan-btn {
  min-width: 0 !important;
  padding: 11px !important;
  border: 1px solid #344861 !important;
  border-radius: 9px !important;
  background: #172438 !important;
  color: #dce5f0 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .plan-btn b {
  color: #edf3fa !important;
  font-size: 12px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .plan-btn span {
  color: #95a6bc !important;
  font-size: 11px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .plan-btn small {
  background: #2b2530 !important;
  border-color: #61404a !important;
  color: #ff9ba5 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .plan-btn.option-active {
  border-color: #e60018 !important;
  background: rgba(230,0,24,.14) !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-textarea,
html:root body.hc-v2-app.hc-v2-workbench .space-form :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea) {
  border: 1px solid #344861 !important;
  border-radius: 8px !important;
  background: #0d1828 !important;
  color: #e7edf6 !important;
  box-shadow: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-textarea::placeholder,
html:root body.hc-v2-app.hc-v2-workbench .space-form :is(input,textarea)::placeholder {
  color: #788ba3 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-design_text-actions button {
  min-height: 40px !important;
  padding: 8px 10px !important;
  border: 1px solid #344861 !important;
  border-radius: 8px !important;
  background: #172438 !important;
  color: #c5d1df !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-generate {
  width: 100% !important;
  min-height: 54px !important;
  height: auto !important;
  padding: 12px 16px !important;
  border: 1px solid #f02a3e !important;
  border-radius: 9px !important;
  background: #d90018 !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(217,0,24,.22) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-generate:hover {
  background: #ed001d !important;
  border-color: #ff5362 !important;
  color: #fff !important;
  transform: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-generate-row :is(button,a) {
  min-height: 46px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-cost {
  padding: 11px 12px !important;
  border: 1px solid #39485e !important;
  border-radius: 9px !important;
  background: #172234 !important;
  color: #aebdd0 !important;
}

/* Advanced Designer Studio controls on the space-remodel page. */
html:root body.hc-v2-app.hc-v2-workbench .space-mini-grid {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 8px !important;
  margin-top: 9px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-separation {
  padding: 13px !important;
  border: 1px solid #31445c !important;
  border-radius: 11px !important;
  background: #101c2c !important;
  box-shadow: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-separation-head b {
  color: #edf3fa !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-separation-head span:not(.zhj-mode-separation-badge) {
  color: #91a2b8 !important;
  font-size: 11px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-separation-badge {
  min-height: 26px !important;
  border: 1px solid #4a3a4a !important;
  border-radius: 6px !important;
  background: #29202d !important;
  color: #ff9aa4 !important;
  font-size: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-card-grid {
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 9px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-workflow-card {
  min-width: 0 !important;
  min-height: 94px !important;
  grid-template-columns: 40px minmax(0,1fr) 18px !important;
  gap: 9px !important;
  padding: 11px !important;
  border: 1px solid #354a63 !important;
  border-radius: 9px !important;
  background: #172438 !important;
  color: #e5edf7 !important;
  box-shadow: none !important;
  transform: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-workflow-card.pro {
  border-color: #59444a !important;
  background: #211f2d !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-workflow-card.is-active,
html:root body.hc-v2-app.hc-v2-workbench .zhj-workflow-card.pro.is-active {
  border-color: #e60018 !important;
  background: #2a1d2a !important;
  box-shadow: inset 0 0 0 1px rgba(230,0,24,.18) !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-workflow-icon,
html:root body.hc-v2-app.hc-v2-workbench .zhj-workflow-icon.pro {
  width: 40px !important;
  height: 40px !important;
  border-radius: 9px !important;
  background: #293d56 !important;
  color: #ff7482 !important;
  box-shadow: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-workflow-copy b {
  color: #edf3fa !important;
  font-size: 12px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-workflow-copy small {
  color: #91a2b8 !important;
  font-size: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-workflow-copy em {
  border-radius: 5px !important;
  background: #2a2530 !important;
  color: #ff9aa4 !important;
  font-size: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-current-summary {
  margin-top: 9px !important;
  padding: 9px 10px !important;
  border: 1px solid #30435a !important;
  border-radius: 8px !important;
  background: #172438 !important;
  color: #aebdd0 !important;
  font-size: 11px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-fold,
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-pro {
  border: 1px solid #2d4058 !important;
  border-radius: 10px !important;
  background: #131f30 !important;
  box-shadow: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-fold[open],
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-pro[open] {
  border-color: #3b4d65 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-body {
  padding: 12px !important;
  gap: 12px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-body-inner {
  gap: 12px !important;
  border-top: 1px solid #2b3d53 !important;
  padding-top: 12px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-title {
  gap: 9px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: #20334a !important;
  color: #ff7582 !important;
  box-shadow: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-name {
  color: #edf3fa !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-desc {
  color: #91a2b8 !important;
  font-size: 10px !important;
  font-weight: 450 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-mode-chip {
  height: 29px !important;
  padding: 0 9px !important;
  border: 1px solid #3b4d65 !important;
  border-radius: 6px !important;
  background: #1a293d !important;
  color: #ff9aa4 !important;
  font-size: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-pro-panel,
html:root body.hc-v2-app.hc-v2-workbench .zhj-project-log-card {
  padding: 12px !important;
  border: 1px solid #2f425a !important;
  border-radius: 9px !important;
  background: #172438 !important;
  box-shadow: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-pro-label {
  color: #dce5f0 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-pro-label small {
  color: #8fa1b8 !important;
  font-size: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-pro-note,
html:root body.hc-v2-app.hc-v2-workbench .zhj-field-separation-tip {
  border: 1px solid #3a4d66 !important;
  border-left: 3px solid #e60018 !important;
  border-radius: 7px !important;
  background: #1b293d !important;
  color: #aebdd0 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-functional-space-grid,
html:root body.hc-v2-app.hc-v2-workbench .zhj-height-type-grid {
  grid-template-columns: repeat(auto-fit,minmax(95px,1fr)) !important;
  gap: 7px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-functional-space-grid button,
html:root body.hc-v2-app.hc-v2-workbench .zhj-height-type-grid button,
html:root body.hc-v2-app.hc-v2-workbench .zhj-pro-tier-grid button {
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 9px 10px !important;
  border: 1px solid #354a63 !important;
  border-radius: 8px !important;
  background: #1a293d !important;
  color: #dce5f0 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-functional-space-grid button.option-active,
html:root body.hc-v2-app.hc-v2-workbench .zhj-height-type-grid button.option-active,
html:root body.hc-v2-app.hc-v2-workbench .zhj-pro-tier-grid button.option-active {
  border-color: #e60018 !important;
  background: rgba(230,0,24,.16) !important;
  color: #ff8994 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-pro-tier-grid {
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 7px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-pro-tier-grid button b {
  color: #edf3fa !important;
  font-size: 11px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-pro-tier-grid button small {
  color: #91a2b8 !important;
  font-size: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-profile-stage-head {
  padding: 10px 11px !important;
  border: 1px solid #3d4654 !important;
  border-radius: 8px !important;
  background: #1d2838 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-profile-stage-head b {
  color: #ff9aa4 !important;
  font-size: 12px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-profile-stage-head span {
  color: #96a7bd !important;
  font-size: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-project-log-head,
html:root body.hc-v2-app.hc-v2-workbench .zhj-project-log-title {
  color: #dce5f0 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-project-log-head a {
  color: #ff7885 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-project-select {
  height: 42px !important;
  border: 1px solid #3a4d66 !important;
  border-radius: 8px !important;
  background: #0d1828 !important;
  color: #e7edf6 !important;
  font-size: 12px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-project-select option {
  background: #111c2b !important;
  color: #e7edf6 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-project-log-tip {
  color: #91a2b8 !important;
  font-size: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-section-title {
  padding: 8px 8px 3px !important;
  border-top: 1px solid #34475f !important;
  color: #ff8994 !important;
  font-size: 10px !important;
  letter-spacing: .06em !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-auto-btn {
  border-color: #e60018 !important;
  background: rgba(230,0,24,.12) !important;
  color: #ff8994 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-generate-row {
  gap: 8px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-generate-row .space-generate {
  min-width: 0 !important;
  min-height: 52px !important;
  padding: 10px 9px !important;
  font-size: 12px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-generate-row .zhj-pro-rebuild {
  border: 1px solid #40536b !important;
  background: #1b2a3e !important;
  color: #dce5f0 !important;
  box-shadow: none !important;
}

/* Large result canvas; no nested scrollbars in either column. */
html:root body.hc-v2-app.hc-v2-workbench .space-result-card {
  position: sticky !important;
  top: 64px !important;
  align-self: start !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-result-card > .space-body {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  overflow-y: visible !important;
  padding: 13px 14px 14px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-result-head-actions {
  display: flex !important;
  gap: 7px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 78px !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 8px 11px !important;
  border: 1px solid #3a4d66 !important;
  border-radius: 8px !important;
  background: #1a2a40 !important;
  color: #dce6f2 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
html:root body.hc-v2-app.hc-v2-workbench #resultBox {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  height: clamp(480px,calc(100dvh - 360px),820px) !important;
  min-height: 480px !important;
  max-height: 820px !important;
  border: 1px solid #2b4059 !important;
  border-radius: 11px !important;
  background: #0b1524 !important;
  color: #dce6f2 !important;
  overflow: hidden !important;
}
html:root body.hc-v2-app.hc-v2-workbench #resultBox::before {
  opacity: .18 !important;
  background-image: linear-gradient(rgba(150,175,205,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(150,175,205,.12) 1px,transparent 1px) !important;
  background-size: 30px 30px !important;
  pointer-events: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-empty {
  max-width: 560px !important;
  padding: 24px !important;
  color: #dce6f2 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-empty-icon {
  width: 70px !important;
  height: 70px !important;
  margin: 0 auto 14px !important;
  border: 1px solid #344b67 !important;
  border-radius: 15px !important;
  background: #17263a !important;
  box-shadow: none !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-empty-icon i {
  color: #9eb2cc !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-empty h3 {
  color: #e7eef8 !important;
  font-size: 19px !important;
  font-weight: 650 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-empty p {
  color: #8fa1b8 !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-status-row {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 8px !important;
  margin-top: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-status {
  min-width: 0 !important;
  padding: 9px 7px !important;
  border: 1px solid #2d4058 !important;
  border-radius: 8px !important;
  background: #172438 !important;
  color: #aebdd0 !important;
  font-size: 10px !important;
}
html:root body.hc-v2-app.hc-v2-workbench .space-status i {
  color: #ff7180 !important;
}
html:root body.hc-v2-app.hc-v2-workbench .zhj-final-result-img {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  background: #0b1524 !important;
}
html:root body.hc-v2-app.hc-v2-workbench :is(.space-card p,.space-card small,.space-card label) {
  color: #aab9cc;
}
html:root body.hc-v2-app.hc-v2-workbench .space-card [class*="text-white/"] {
  color: #9aabc0 !important;
}

/* Desktop: keep the right preview visible while the left form uses normal page scroll. */
@media (min-width:1080px) {
  html:root body.hc-v2-app.hc-v2-workbench .space-layout {
    grid-template-columns: minmax(400px,.42fr) minmax(0,.58fr) !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-result-card {
    position: sticky !important;
    top: 64px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-layout > .space-card:first-child > .space-body {
    overflow: visible !important;
  }
}
@media (min-width:1600px) {
  html:root body.hc-v2-app.hc-v2-workbench .space-layout {
    grid-template-columns: minmax(520px,.42fr) minmax(0,.58fr) !important;
    gap: 18px !important;
  }
}

/* Tablet and mobile: one natural vertical flow, large tap targets, no clipped controls. */
@media (max-width:1079px) {
  html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workbench-main {
    padding: 12px 14px 24px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-layout {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 14px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-result-card {
    position: relative !important;
    top: auto !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-layout > .space-card {
    height: auto !important;
    min-height: 0 !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-upload {
    min-height: 190px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench #resultBox {
    height: 480px !important;
    min-height: 420px !important;
  }
}
@media (max-width:700px) {
  html:root body.hc-v2-app.hc-v2-workbench .hc-v2-topbar {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 12px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workbench-main {
    padding: 10px 10px 20px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-hero {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 8px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-hero h1 {
    font-size: 24px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-credit {
    justify-self: start !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workflow {
    flex-wrap: wrap !important;
    gap: 7px !important;
    padding: 8px 9px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workflow .line {
    flex: 1 1 12px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .hc-v2-workflow small {
    display: none !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .material-upload-grid,
  html:root body.hc-v2-app.hc-v2-workbench .material-two-tip {
    grid-template-columns: minmax(0,1fr) !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-upload {
    min-height: 170px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-card-head {
    padding: 11px 12px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-body {
    padding: 12px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-form .option-group button {
    min-height: 44px !important;
    font-size: 12px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .plan-row {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-status-row {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench #resultBox {
    height: 420px !important;
    min-height: 360px !important;
  }
  html:root body.hc-v2-app.hc-v2-workbench .space-result-head-actions .space-action-btn {
    min-width: 40px !important;
    min-height: 38px !important;
    padding: 7px 9px !important;
  }
}
