/* Homepage-only layout; legacy page styles and request behavior remain unchanged. */
body#homeWorkspace.home-workspace {
  --w8-font:
    "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px !important;
  font-family: var(--w8-font) !important;
  line-height: 1.5 !important;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body#homeWorkspace.home-workspace .home-account {
  width: 460px;
}
body#homeWorkspace.home-workspace .home-account #authBalanceRow {
  padding: 10px 12px !important;
  margin-top: 4px !important;
  border: 0 !important;
  border-left: 3px solid #16705b !important;
  background: #edf6f1 !important;
  gap: 16px !important;
}
body#homeWorkspace.home-workspace .home-account #authBalanceValue {
  font-size: 26px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
  font-variant-numeric: tabular-nums;
  color: #12624f !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
body#homeWorkspace.home-workspace
  .home-account
  #authBalanceRow.is-low
  #authBalanceValue {
  color: #b42318 !important;
}
body#homeWorkspace.home-workspace .home-account #authBalanceRechargeButton {
  width: 88px !important;
  min-width: 88px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 8px 16px !important;
  background: #16705b !important;
  color: #fff !important;
  border: 1px solid #16705b !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  flex-shrink: 0;
}
body#homeWorkspace.home-workspace
  .home-account
  #authBalanceRechargeButton:hover {
  background: #115b49 !important;
}
body#homeWorkspace.home-workspace
  .home-account
  #authBalanceRechargeButton[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  body#homeWorkspace.home-workspace .home-account {
    width: 100%;
  }
}
@media (max-width: 480px) {
  body#homeWorkspace.home-workspace .home-account #authBalanceRow {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px 12px !important;
  }
  body#homeWorkspace.home-workspace
    .home-account
    #authBalanceRow
    .auth-balance-meta {
    display: grid !important;
    grid-column: 1;
    grid-row: 1;
    gap: 4px !important;
  }
  body#homeWorkspace.home-workspace
    .home-account
    #authBalanceRow
    .auth-balance-actions {
    display: contents !important;
  }
  body#homeWorkspace.home-workspace .home-account #authBalanceRechargeButton {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  body#homeWorkspace.home-workspace .home-account #authBalancePrice {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
body#homeWorkspace.home-workspace .workspace-chat-agent.is-floating {
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
}
body#homeWorkspace.home-workspace .task-order,
body#homeWorkspace.home-workspace .gallery-credit {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}
body#homeWorkspace.home-workspace .gallery-select {
  box-shadow: none !important;
}
body#homeWorkspace.home-workspace.workspace-chat-agent-maximized {
  overflow: hidden !important;
}
@media (max-width: 760px) {
  body#homeWorkspace.home-workspace .workspace-chat-agent.is-floating {
    inset: 16px !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 7px !important;
  }
}
html body#homeWorkspace.home-workspace {
  --w8-primary: #16705b;
  --w8-primary-text: #fff;
  --w8-control-h: 40px;
  --w8-side: 390px;
  --w8-line: #e1e5e7;
  --w8-ink: #29332f;
  --w8-muted: #75807b;
  display: flex;
  flex-direction: column;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden;
  background: #f6f7f8 !important;
  color: #29332f !important;
  letter-spacing: 0 !important;
}
body#homeWorkspace.home-workspace .home-icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
body#homeWorkspace.home-workspace .home-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body#homeWorkspace.home-workspace .home-header {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  padding: 18px 28px 0;
  border-bottom: 1px solid #e1e5e7;
  background: #fff;
}
body#homeWorkspace.home-workspace .home-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 57px;
  margin-bottom: 13px;
}
body#homeWorkspace.home-workspace .home-header h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 700;
  white-space: nowrap;
}
body#homeWorkspace.home-workspace .home-account {
  width: 370px;
  max-width: 100%;
  flex-shrink: 0;
}
body#homeWorkspace.home-workspace .home-account .auth-card {
  border: 0;
  border-radius: 0;
  padding: 1px 0 0;
  gap: 6px;
  background: none;
  position: relative;
}
body#homeWorkspace.home-workspace .home-account .auth-card-row:first-child {
  position: absolute;
  right: 0;
  top: 0;
}
body#homeWorkspace.home-workspace
  .home-account
  .auth-card-row:first-child
  small {
  display: none;
}
body#homeWorkspace.home-workspace .home-account .auth-card-row:nth-child(2) {
  padding-right: 55px;
  gap: 12px;
}
body#homeWorkspace.home-workspace .home-account .auth-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
body#homeWorkspace.home-workspace .home-account .auth-card small {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
}
body#homeWorkspace.home-workspace .home-account .auth-button {
  min-height: 26px;
  border-radius: 5px;
  background: #e9efeb;
  color: #3c6754;
  font-weight: 600;
}
body#homeWorkspace.home-workspace .home-account .auth-button.secondary {
  background: none;
  color: #87908b;
}
body#homeWorkspace.home-workspace .home-account .auth-balance-row {
  padding-top: 7px;
  margin-top: 2px;
  gap: 16px;
  border-top-color: #e1e5e7;
}
body#homeWorkspace.home-workspace .home-account .auth-balance-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
body#homeWorkspace.home-workspace .home-account .auth-balance-value {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
  color: #244536;
}
body#homeWorkspace.home-workspace .home-account #authBalanceHint {
  display: none;
}
body#homeWorkspace.home-workspace .home-account .auth-balance-actions {
  flex-wrap: nowrap;
  gap: 10px;
}
html body#homeWorkspace.home-workspace .home-navigation {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  gap: 5px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  overflow: visible !important;
}
body#homeWorkspace.home-workspace .home-navigation > a,
body#homeWorkspace.home-workspace .home-more-nav > summary {
  display: block;
  padding: 11px 13px;
  font-size: 15px;
  color: #78817d;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  line-height: 20px;
}
body#homeWorkspace.home-workspace .home-navigation > a:hover,
body#homeWorkspace.home-workspace .home-more-nav > summary:hover {
  color: #16705b;
  background: #f6f8f7;
}
body#homeWorkspace.home-workspace .home-navigation > a[aria-current="page"] {
  color: #16705b;
  border-bottom-color: #16705b;
}
body#homeWorkspace.home-workspace .home-more-nav {
  position: relative;
  margin-left: auto;
}
body#homeWorkspace.home-workspace .home-more-nav > summary {
  list-style: none;
}
body#homeWorkspace.home-workspace .home-more-nav > summary::after {
  content: " +";
  font-size: 16px;
  color: #929c96;
}
body#homeWorkspace.home-workspace .home-more-nav[open] > summary {
  color: #16705b;
}
body#homeWorkspace.home-workspace .home-nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 30;
  display: grid;
  gap: 3px;
  min-width: 210px;
  max-height: min(500px, 60dvh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #dde4df;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px #1a37211a;
}
body#homeWorkspace.home-workspace .home-nav-menu .workspace-nav-link {
  display: block;
  padding: 9px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: #596b60;
  font-size: 15px;
}
body#homeWorkspace.home-workspace .home-nav-menu .workspace-nav-link:hover {
  background: #eff5f1;
}
html body#homeWorkspace.home-workspace .app-shell {
  flex: 1 1 0;
  grid-template-columns: 390px minmax(0, 1fr) !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  background: #f6f7f8 !important;
  overflow: hidden !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  padding: 23px 24px !important;
  gap: 22px !important;
  background: #fff !important;
  border-right: 1px solid #e1e5e7 !important;
  overscroll-behavior: contain;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar > .section {
  flex: 0 0 auto !important;
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 0 22px !important;
  border: 0 !important;
  border-bottom: 1px solid #e1e5e7 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .sidebar
  > .quick-panel:empty {
  display: none !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .sidebar
  > .home-task-section {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar .section-heading {
  gap: 14px !important;
  min-height: 32px !important;
  margin: 0 0 18px !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar .section-heading h2 {
  font-size: 17px !important;
  font-weight: 650 !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar .field-grid-single {
  grid-template-columns: minmax(0, 1fr) !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar .field > span {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #6c7972 !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar select,
html body#homeWorkspace.home-workspace .app-shell .sidebar input[type="text"],
html
  body#homeWorkspace.home-workspace
  .app-shell
  .sidebar
  input[type="number"] {
  font-size: 15px !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 10px !important;
  border: 1px solid #d9dfdc !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #354b3d !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar select:focus,
html body#homeWorkspace.home-workspace .app-shell .sidebar textarea:focus {
  border-color: #65a88b !important;
  box-shadow: 0 0 0 3px #16705b12 !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar select:disabled {
  background: #f1f3f2 !important;
  color: #929b96 !important;
}
html body#homeWorkspace.home-workspace .app-shell .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  min-height: 35px !important;
  height: auto !important;
  border: 1px solid #dce3df !important;
  border-radius: 5px !important;
  padding: 7px 11px !important;
  background: #fff !important;
  color: #557161 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
  white-space: normal !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .button.button-primary {
  border-color: #16705b !important;
  background: #16705b !important;
  color: #fff !important;
}
html body#homeWorkspace.home-workspace .app-shell .button.button-danger {
  border-color: #ecd9d4 !important;
  color: #a86658 !important;
  background: #fff !important;
}
html body#homeWorkspace.home-workspace .app-shell .button:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}
html body#homeWorkspace.home-workspace .app-shell .button:hover:not(:disabled) {
  filter: brightness(0.96) !important;
  transform: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .button.home-tool-button,
html body#homeWorkspace.home-workspace .app-shell .icon-button {
  width: 33px !important;
  min-width: 33px !important;
  height: 33px !important;
  min-height: 33px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #dce3df !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #758c7f !important;
  font-size: 14px !important;
  box-shadow: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .section-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}
html body#homeWorkspace.home-workspace .app-shell .inline-field {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .inline-field select {
  width: 55px !important;
  height: 32px !important;
  min-height: 32px !important;
}
.home-workspace .home-task-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
html body#homeWorkspace.home-workspace .app-shell .task-list {
  display: grid !important;
  gap: 14px !important;
  flex: none !important;
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-item {
  display: grid !important;
  gap: 12px !important;
  padding: 13px !important;
  margin: 0 !important;
  border: 1px solid #dfe5e1 !important;
  border-radius: 7px !important;
  background: #fafcfb !important;
  box-shadow: none !important;
  overflow: visible !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-order {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #647b6b !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar .task-prompt {
  font-size: 15px !important;
  line-height: 1.7 !important;
  min-height: 120px !important;
  background: #fff !important;
  border-color: #d9e2dc !important;
  border-radius: 5px !important;
  color: #334d3c !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-prompt-tools:empty {
  display: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-reference-block {
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-reference-head {
  gap: 8px !important;
  align-items: center !important;
  margin: 0 0 10px !important;
  flex-wrap: wrap !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-reference-tools {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-reference-title {
  font-size: 13px !important;
  font-weight: 500 !important;
  flex: 1 1 100% !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-reference-head .button {
  min-height: 28px !important;
  padding: 4px 7px !important;
  font-size: 13px !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-reference-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .reference-item {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .reference-preview {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 !important;
  border: 1px dashed #cddcd3 !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}
html body#homeWorkspace.home-workspace .app-shell .reference-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .reference-placeholder {
  font-size: 13px !important;
  color: #9aa79d !important;
}
html body#homeWorkspace.home-workspace .app-shell .reference-meta {
  font-size: 12px !important;
  min-width: 0 !important;
  padding: 5px 0 !important;
  gap: 3px !important;
  overflow-wrap: anywhere !important;
}
html body#homeWorkspace.home-workspace .app-shell .reference-actions {
  display: flex !important;
  justify-content: space-between !important;
  gap: 3px !important;
  padding: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .reference-actions .button,
html
  body#homeWorkspace.home-workspace
  .app-shell
  .reference-actions
  .icon-button {
  min-height: 28px !important;
  height: 28px !important;
  padding: 3px 6px !important;
  font-size: 12px !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .reference-actions
  .icon-button {
  width: 28px !important;
  min-width: 28px !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .reference-actions
  .home-icon {
  width: 13px;
  height: 13px;
}
html body#homeWorkspace.home-workspace .app-shell .task-reference-watermark {
  gap: 6px 10px;
  font-size: 13px;
  color: #819186;
}
.home-workspace .home-run-controls {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  margin: 18px 0 12px;
}
html body#homeWorkspace.home-workspace .app-shell .home-run-controls .button {
  min-height: 44px !important;
  font-size: 15px !important;
}
html body#homeWorkspace.home-workspace .app-shell .status {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 7px 0 !important;
  margin: 0 !important;
  background: none !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #839389 !important;
  overflow-wrap: anywhere;
}
html body#homeWorkspace.home-workspace .app-shell .status-error {
  color: #b46655 !important;
}
html body#homeWorkspace.home-workspace .app-shell .generation-progress-note {
  display: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .content {
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: auto !important;
  background: #f6f7f8 !important;
  padding: 24px 28px !important;
  gap: 0 !important;
  overscroll-behavior: contain;
}
html body#homeWorkspace.home-workspace .app-shell .content-top {
  flex: 0 0 auto !important;
  display: grid !important;
  gap: 15px !important;
  position: static !important;
  padding: 0 0 21px !important;
  margin: 0 0 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #dde4df !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .home-toolbar-v8-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .content-top h2 {
  font-size: 18px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  font-weight: 650 !important;
  color: #314b3c !important;
  letter-spacing: 0 !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .home-toolbar-v8-head-actions {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 0 !important;
}
.home-workspace #homeRouteMonitor {
  display: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .home-toolbar-chip,
html body#homeWorkspace.home-workspace .app-shell .gallery-toolbar-group {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  width: auto !important;
  flex: 0 1 auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  gap: 7px !important;
}
html body#homeWorkspace.home-workspace .app-shell .home-toolbar-chip-label {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  color: #829188 !important;
  background: none !important;
  padding: 0 !important;
  white-space: nowrap !important;
}
html body#homeWorkspace.home-workspace .app-shell .home-toolbar-v8-stack,
html body#homeWorkspace.home-workspace .app-shell .home-toolbar-v8-row-group {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-field {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin: 0 !important;
  width: auto !important;
  flex: 0 1 auto !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-field select {
  width: 185px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 35px !important;
  min-height: 35px !important;
  border: 1px solid #d5dfd9 !important;
  border-radius: 5px !important;
  padding: 0 9px !important;
  background: #fff !important;
  color: #536e5d !important;
  font-size: 14px !important;
  box-shadow: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .content-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-batch-move-tools {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  width: auto !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
.home-workspace .home-batch-menu {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}
.home-workspace .home-batch-menu > summary {
  list-style: none;
  cursor: pointer;
  color: #667d6e;
  border: 1px solid #d5dfd9;
  border-radius: 5px;
  background: #fff;
  padding: 7px 10px;
  font-size: 14px;
  line-height: 20px;
}
.home-workspace .home-batch-menu > summary::after {
  content: " +";
  color: #8b9c90;
}
.home-workspace .home-batch-menu-body {
  position: absolute !important;
  right: 0;
  top: calc(100% + 6px);
  z-index: 12;
  display: grid !important;
  width: 260px !important;
  max-width: calc(100vw - 32px);
  padding: 13px !important;
  border: 1px solid #dce3df !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px #25433218 !important;
  gap: 15px !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .home-batch-menu-body
  .gallery-toolbar-group {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  width: 100% !important;
}
.home-workspace .home-batch-menu-body .home-toolbar-chip-label {
  display: block !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery {
  flex: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: none !important;
  align-content: start !important;
  align-items: start !important;
  gap: 26px !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-section {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 0 24px !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e7e3 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  min-height: 34px !important;
  padding: 0 0 14px !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-summary {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #54735e !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-count {
  font-size: 13px !important;
  font-weight: 400 !important;
  background: none !important;
  color: #939f96 !important;
  padding: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-path-inline {
  display: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .gallery-group-actions
  .button {
  min-height: 30px !important;
  padding: 5px 9px !important;
  font-size: 13px !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-body {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  grid-template-rows: none !important;
  align-items: start !important;
  gap: 18px !important;
  padding: 0 !important;
  min-height: 0 !important;
  background: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-card {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dfe6e1 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transform: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-preview {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4/3 !important;
  border: 0 !important;
  border-bottom: 1px solid #ebefec !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: #f1f4f2 !important;
  overflow: hidden !important;
  transform: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: none !important;
  border-radius: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-select {
  min-height: 28px !important;
  top: 9px !important;
  left: 9px !important;
  padding: 4px 8px !important;
  gap: 6px !important;
  border-radius: 4px !important;
  background: #ffffffeb !important;
  border: 1px solid #d5e0d9 !important;
  color: #547b60 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: none !important;
  height: auto !important;
  gap: 10px !important;
  padding: 13px !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-head {
  display: flex !important;
  gap: 8px !important;
  margin: 0 !important;
  grid-column: 1 !important;
  min-height: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-title {
  font-size: 14px !important;
  line-height: 1.6 !important;
  font-weight: 600 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  max-height: 39px !important;
  color: #4a6854 !important;
  margin: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-time,
html body#homeWorkspace.home-workspace .app-shell .gallery-credit {
  font-size: 12px !important;
  line-height: 1.7 !important;
  color: #9ba59e !important;
  font-weight: 400 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-name {
  display: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .detail-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px 12px !important;
  margin: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .detail-box {
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .detail-box strong {
  font-size: 13px !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
  color: #7e9285 !important;
  overflow-wrap: anywhere !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-prompt-summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 7px !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid #edf0ee !important;
  border-radius: 0 !important;
  background: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-prompt-text {
  grid-column: 1/-1 !important;
  max-height: 39px !important;
  white-space: normal !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: #8a9b90 !important;
  overflow: hidden !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-prompt-copy {
  font-size: 13px !important;
  min-height: 28px !important;
  height: auto !important;
  padding: 4px 8px !important;
  border: 1px solid #dfe6e1 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #6a8b74 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-card-group-field {
  display: grid !important;
  grid-column: 1 !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 9px !important;
  margin: 0 !important;
  font-size: 13px !important;
  color: #8a9b90 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-card-group {
  height: 32px !important;
  min-height: 32px !important;
  border: 1px solid #dfe6e1 !important;
  border-radius: 4px !important;
  padding: 0 7px !important;
  font-size: 14px !important;
  background: #fff !important;
  color: #678270 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-card .action-row {
  display: grid !important;
  grid-column: 1 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin: 0 !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .gallery-card
  .action-row
  .button {
  min-height: 35px !important;
  height: auto !important;
  padding: 7px !important;
  font-size: 13px !important;
  white-space: normal !important;
  line-height: 1.5 !important;
  overflow: visible !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-empty {
  grid-column: 1/-1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 260px !important;
  height: auto !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: #a2ada5 !important;
  font-size: 15px !important;
  box-shadow: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .workspace-chat-agent {
  grid-column: 1/-1 !important;
}
body#homeWorkspace.home-workspace .announcement-fab {
  bottom: 80px !important;
  right: 20px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  box-shadow: 0 2px 8px #18322116 !important;
  background: #fff !important;
  color: #678270 !important;
  border: 1px solid #dde6df !important;
}
body#homeWorkspace.home-workspace .announcement-panel {
  bottom: 128px !important;
}
body#homeWorkspace.home-workspace .workspace-chat-agent-launcher {
  width: 44px !important;
  height: 44px !important;
  border-radius: 7px !important;
  background: #16705b !important;
  color: #fff !important;
  box-shadow: 0 3px 12px #16705b24 !important;
}
body#homeWorkspace.home-workspace .workspace-chat-agent-eyebrow,
body#homeWorkspace.home-workspace .workspace-chat-agent-hero-copy > p {
  display: none !important;
}
html body#homeWorkspace.home-workspace [hidden] {
  display: none !important;
}
body#homeWorkspace.home-workspace button:focus-visible,
body#homeWorkspace.home-workspace a:focus-visible,
body#homeWorkspace.home-workspace summary:focus-visible {
  outline: 2px solid #61a184 !important;
  outline-offset: 3px !important;
}
body#homeWorkspace.home-workspace button,
body#homeWorkspace.home-workspace a,
body#homeWorkspace.home-workspace summary {
  touch-action: manipulation;
}
@media (min-width: 1700px) {
  html body#homeWorkspace.home-workspace .app-shell {
    grid-template-columns: 420px minmax(0, 1fr) !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .sidebar {
    padding: 25px 28px !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .content {
    padding: 25px 32px !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .gallery-group-body {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  }
}
@media (max-width: 1150px) {
  html body#homeWorkspace.home-workspace .app-shell {
    grid-template-columns: 340px minmax(0, 1fr) !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .sidebar {
    padding: 20px !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .content {
    padding: 20px !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .gallery-group-body {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  }
  .home-workspace .home-navigation > a,
  .home-workspace .home-more-nav > summary {
    padding: 10px 9px;
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  html body#homeWorkspace.home-workspace {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }
  body#homeWorkspace.home-workspace .home-header {
    padding: 17px 16px 0;
  }
  .home-workspace .home-header-main {
    flex-wrap: wrap;
    gap: 15px;
  }
  .home-workspace .home-header h1 {
    font-size: 25px;
  }
  .home-workspace .home-account {
    width: 100%;
  }
  .home-workspace .home-navigation {
    gap: 0 !important;
  }
  .home-workspace .home-navigation > a,
  .home-workspace .home-more-nav > summary {
    padding: 9px 8px;
    font-size: 14px;
  }
  .home-workspace .home-more-nav {
    margin-left: 0;
  }
  html body#homeWorkspace.home-workspace .app-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: visible !important;
    min-height: 0 !important;
    height: auto !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .sidebar {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 22px 16px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e1e5e7 !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .content {
    height: auto !important;
    overflow: visible !important;
    padding: 24px 16px !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .sidebar .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html
    body#homeWorkspace.home-workspace
    .app-shell
    .sidebar
    .field-grid-single {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .sidebar select,
  html body#homeWorkspace.home-workspace .app-shell .sidebar .task-prompt {
    font-size: 18px !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .gallery-group-body {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html
    body#homeWorkspace.home-workspace
    .app-shell
    .gallery-group-field
    select {
    width: 170px !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .gallery-batch-move-tools {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .gallery-group-empty {
    min-height: 220px !important;
  }
  html
    body#homeWorkspace.home-workspace
    .app-shell
    .gallery-card
    .action-row
    .button {
    min-height: 40px !important;
    font-size: 14px !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .gallery-prompt-text,
  html body#homeWorkspace.home-workspace .app-shell .detail-box strong {
    font-size: 14px !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .gallery-prompt-text {
    max-height: 43px !important;
  }
  body#homeWorkspace.home-workspace .announcement-fab {
    right: 16px !important;
  }
  body#homeWorkspace.home-workspace .home-nav-menu {
    left: 0;
    right: auto;
    min-width: 205px;
  }
}
/* Override legacy nth-child, empty-gallery and assistant layout rules. */
html body#homeWorkspace.home-workspace .app-shell .sidebar > .quick-panel {
  display: none !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .sidebar
  > .section.home-task-section
  .task-list {
  display: grid !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  flex: none !important;
  gap: 14px !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .sidebar
  > .section.home-task-section
  .task-item {
  display: grid !important;
  flex: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 13px !important;
  gap: 12px !important;
  overflow: visible !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .sidebar
  > .section.home-task-section
  .task-prompt {
  height: 130px !important;
  min-height: 120px !important;
  max-height: none !important;
  resize: vertical !important;
  padding: 10px !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .sidebar
  > .section.home-task-section
  .task-prompt-tools:not(:has(> :not([hidden]))) {
  display: none !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .sidebar
  > .section.config-section
  .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .sidebar
  > .section.config-section
  .field-grid-single {
  grid-template-columns: minmax(0, 1fr) !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .sidebar
  > .section.config-section
  select {
  height: 40px !important;
  min-height: 40px !important;
  font-size: 15px !important;
}
html body#homeWorkspace.home-workspace .app-shell #generateButton {
  height: 44px !important;
  min-height: 44px !important;
  border-color: #16705b !important;
  background: #16705b !important;
  color: #fff !important;
  font-size: 15px !important;
}
html body#homeWorkspace.home-workspace .app-shell #stopButton {
  height: 44px !important;
  min-height: 44px !important;
  font-size: 15px !important;
}
body#homeWorkspace.home-workspace .home-navigation .workspace-nav-link {
  font-weight: 500 !important;
  border-radius: 0 !important;
  color: #626b74 !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
}
html body#homeWorkspace.home-workspace #gallery > .gallery-group-section {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  align-self: start !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-group-body {
  display: grid !important;
  min-height: 0 !important;
  height: auto !important;
  align-content: start !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
}
html
  body#homeWorkspace.home-workspace
  #gallery
  .gallery-group-body.has-workspace-chat-agent
  > .gallery-group-empty {
  display: none !important;
}
html
  body#homeWorkspace.home-workspace
  #gallery
  .workspace-chat-agent:not(.is-floating):not(.is-maximized) {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-column: 1/-1 !important;
  border-radius: 7px;
  box-shadow: none;
  container-type: inline-size;
  container-name: home-assistant;
}
html
  body#homeWorkspace.home-workspace
  #gallery
  .workspace-chat-agent:not(.is-floating):not(
    .is-maximized
  ).has-archive-sidebar {
  grid-template-columns: minmax(160px, 30%) minmax(0, 1fr);
}
body#homeWorkspace.home-workspace .home-nav-menu {
  color: #41474e;
}
body#homeWorkspace.home-workspace .home-nav-menu .workspace-nav-link {
  color: #50565e;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar .field > span,
html body#homeWorkspace.home-workspace .app-shell .home-toolbar-chip-label {
  color: #626b74 !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar select,
html body#homeWorkspace.home-workspace .app-shell .sidebar input[type="text"],
html body#homeWorkspace.home-workspace .app-shell .sidebar input[type="number"],
html body#homeWorkspace.home-workspace .app-shell .sidebar .task-prompt {
  color: #30373e !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-title,
html body#homeWorkspace.home-workspace .app-shell .gallery-group-title,
html body#homeWorkspace.home-workspace .app-shell .content-top h2 {
  color: #30373e !important;
}
html body#homeWorkspace.home-workspace .app-shell .detail-box strong,
html body#homeWorkspace.home-workspace .app-shell .gallery-prompt-text,
html body#homeWorkspace.home-workspace .app-shell .gallery-time,
html body#homeWorkspace.home-workspace .app-shell .gallery-credit,
html body#homeWorkspace.home-workspace .app-shell .gallery-group-count {
  color: #657078 !important;
}
/* Hidden state must win against old and new display:important selectors. */
html
  body#homeWorkspace.home-workspace
  .app-shell
  [hidden][hidden][hidden][hidden] {
  display: none !important;
}
html body#homeWorkspace.home-workspace #gallery [hidden][hidden] {
  display: none !important;
}
@media (max-width: 1150px) {
  html
    body#homeWorkspace.home-workspace
    #gallery
    .workspace-chat-agent:not(.is-floating):not(
      .is-maximized
    ).has-archive-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
  html
    body#homeWorkspace.home-workspace
    #gallery
    .workspace-chat-agent:not(.is-floating):not(.is-maximized)
    .workspace-chat-agent-archive {
    position: absolute;
    z-index: 5;
    top: 76px;
    bottom: 0;
    left: 0;
    width: min(250px, calc(100% - 42px));
    border-right: 1px solid #e1e5e7;
    box-shadow: 8px 0 24px #1a372118;
  }
  html
    body#homeWorkspace.home-workspace
    #gallery
    .workspace-chat-agent:not(.is-floating):not(
      .is-maximized
    ).has-archive-sidebar
    .workspace-chat-agent-messages,
  html
    body#homeWorkspace.home-workspace
    #gallery
    .workspace-chat-agent:not(.is-floating):not(
      .is-maximized
    ).has-archive-sidebar
    .workspace-chat-agent-attachments,
  html
    body#homeWorkspace.home-workspace
    #gallery
    .workspace-chat-agent:not(.is-floating):not(
      .is-maximized
    ).has-archive-sidebar
    .workspace-chat-agent-compose {
    grid-column: 1;
  }
}
@media (max-width: 760px) {
  body#homeWorkspace.home-workspace .home-more-nav {
    position: static;
  }
  body#homeWorkspace.home-workspace .home-nav-menu {
    left: 16px;
    right: 16px;
    top: 100%;
    min-width: 0;
    width: auto;
  }
  html
    body#homeWorkspace.home-workspace
    .app-shell
    .sidebar
    > .section.home-task-section
    .task-prompt,
  html
    body#homeWorkspace.home-workspace
    .app-shell
    .sidebar
    > .section.config-section
    select {
    font-size: 18px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body#homeWorkspace.home-workspace * {
    scroll-behavior: auto !important;
  }
}
body#homeWorkspace.home-workspace .home-account #authWidget {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  gap: 4px !important;
  background: none !important;
  box-shadow: none !important;
}
body#homeWorkspace.home-workspace .home-account .auth-card-row {
  min-height: 24px !important;
  gap: 12px !important;
}
body#homeWorkspace.home-workspace .home-account .auth-card-row:nth-child(2) {
  padding-right: 50px !important;
}
body#homeWorkspace.home-workspace .home-account .auth-button {
  min-height: 26px !important;
  height: 26px !important;
  width: auto !important;
  padding: 3px 9px !important;
  border: 0 !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  background: #e9efeb !important;
  color: #3c6754 !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
body#homeWorkspace.home-workspace .home-account .auth-button.secondary {
  background: none !important;
  color: #626b74 !important;
}
body#homeWorkspace.home-workspace .home-account .auth-balance-row {
  padding-top: 6px !important;
  margin-top: 1px !important;
  border-top: 1px solid #e1e5e7 !important;
  gap: 12px !important;
  min-width: 0 !important;
}
body#homeWorkspace.home-workspace .home-account .auth-balance-meta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}
body#homeWorkspace.home-workspace .home-account .auth-balance-value {
  font-size: 18px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  color: #244536 !important;
}
body#homeWorkspace.home-workspace .home-account #authBalanceHint {
  display: none !important;
}
body#homeWorkspace.home-workspace .home-account .auth-balance-meta small,
body#homeWorkspace.home-workspace .home-account .auth-balance-price,
body#homeWorkspace.home-workspace .home-account .auth-card small {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #657078 !important;
  letter-spacing: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .field {
  grid-column: auto !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-item {
  border-top: 1px solid #dfe5e1 !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .content-actions
  > .gallery-batch-move-tools {
  order: 0 !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .content-actions
  > .home-batch-menu {
  order: 1 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-field > span {
  display: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .button::before {
  content: none !important;
}
body#homeWorkspace.home-workspace .home-navigation .workspace-nav-link::after {
  content: none !important;
}
html body#homeWorkspace.home-workspace .app-shell {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: stretch !important;
}
html body#homeWorkspace.home-workspace .app-shell .section-heading {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: static !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-field {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-group-field > span {
  display: block !important;
}
html
  body#homeWorkspace.home-workspace
  .app-shell
  .gallery-group-field:has(#galleryGroupSelect)
  > span {
  display: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-item::before,
html body#homeWorkspace.home-workspace .app-shell .task-item::after,
html body#homeWorkspace.home-workspace .app-shell .reference-preview::before {
  content: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-title {
  font-size: 15px !important;
  line-height: 1.5 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-time,
html body#homeWorkspace.home-workspace .app-shell .gallery-credit {
  font-size: 13px !important;
}
html body#homeWorkspace.home-workspace .app-shell .detail-box strong,
html body#homeWorkspace.home-workspace .app-shell .gallery-prompt-text {
  font-size: 14px !important;
}
@media (max-width: 760px) {
  html body#homeWorkspace.home-workspace .app-shell {
    flex: none !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .sidebar,
  html body#homeWorkspace.home-workspace .app-shell .content {
    grid-area: auto !important;
    min-height: 0 !important;
    position: static !important;
    align-self: start !important;
  }
  .home-workspace .home-navigation {
    justify-content: flex-start !important;
  }
  .home-workspace .home-navigation > a {
    flex: 0 0 auto !important;
  }
  .home-workspace .home-more-nav {
    margin-left: auto;
  }
  .home-workspace .home-run-controls {
    position: static;
  }
}
html body#homeWorkspace.home-workspace .app-shell .section-heading {
  flex-wrap: nowrap !important;
}
html body#homeWorkspace.home-workspace .app-shell .section-actions {
  width: auto !important;
}
html body#homeWorkspace.home-workspace .home-run-controls {
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: 12px 0;
  background: #fff;
  border-top: 1px solid #e1e5e7;
}
@media (max-width: 760px) {
  body#homeWorkspace.home-workspace .home-navigation {
    gap: 0 !important;
    justify-content: flex-start !important;
  }
  body#homeWorkspace.home-workspace .home-navigation > a,
  body#homeWorkspace.home-workspace .home-more-nav > summary {
    padding: 8px 7px;
    font-size: 14px !important;
  }
  body#homeWorkspace.home-workspace .home-header-main {
    gap: 12px;
  }
  body#homeWorkspace.home-workspace .home-more-nav {
    margin-left: auto;
  }
  html body#homeWorkspace.home-workspace .home-run-controls {
    position: static;
  }
}
body#homeWorkspace.home-workspace * {
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  font-family: var(--w8-font) !important;
  font-stretch: normal !important;
}
body#homeWorkspace.home-workspace .workspace-chat-agent-head {
  padding: 14px !important;
  min-height: 0 !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
body#homeWorkspace.home-workspace .workspace-chat-agent-title strong {
  font-size: 20px !important;
  line-height: 1.4 !important;
}
body#homeWorkspace.home-workspace .workspace-chat-agent-title > div > span {
  font-size: 13px !important;
}
body#homeWorkspace.home-workspace .workspace-chat-agent-empty {
  min-height: 180px !important;
  padding: 16px !important;
}
body#homeWorkspace.home-workspace .workspace-chat-agent-empty h2 {
  font-size: 22px !important;
  line-height: 1.5 !important;
}
body#homeWorkspace.home-workspace .workspace-chat-agent-empty p {
  font-size: 15px !important;
  line-height: 1.7 !important;
}
@media (max-width: 1150px) {
  body#homeWorkspace.home-workspace .workspace-chat-agent.has-archive-sidebar {
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
  }
  body#homeWorkspace.home-workspace
    .workspace-chat-agent
    .workspace-chat-agent-archive {
    position: absolute !important;
    z-index: 5;
    top: 96px !important;
    bottom: 0;
    left: 0;
    width: min(250px, calc(100% - 42px));
    border-right: 1px solid #e1e5e7;
    box-shadow: 8px 0 24px #1a372118;
  }
  body#homeWorkspace.home-workspace
    .workspace-chat-agent.has-archive-sidebar
    .workspace-chat-agent-messages,
  body#homeWorkspace.home-workspace
    .workspace-chat-agent.has-archive-sidebar
    .workspace-chat-agent-attachments,
  body#homeWorkspace.home-workspace
    .workspace-chat-agent.has-archive-sidebar
    .workspace-chat-agent-compose {
    grid-column: 1 !important;
  }
}

/* Fixed thumbnails; the original image is only loaded when opened. */
html body#homeWorkspace.home-workspace .home-account[data-auth-host] {
  width: 460px !important;
}
html body#homeWorkspace.home-workspace .app-shell .content-top {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px 16px !important;
  padding-bottom: 16px !important;
}
html body#homeWorkspace.home-workspace .app-shell .home-toolbar-v8-head {
  grid-column: 1/-1 !important;
}
html body#homeWorkspace.home-workspace .app-shell .home-toolbar-v8-stack {
  grid-column: 1;
}
html body#homeWorkspace.home-workspace .app-shell .content-actions {
  grid-column: 2;
  justify-content: flex-end !important;
}
html
  body#homeWorkspace.home-workspace
  .content:not(:has(.gallery-select-input:checked))
  .gallery-batch-move-tools {
  display: none !important;
}
html
  body#homeWorkspace.home-workspace
  .content:has(.gallery-select-input:checked)
  .content-actions {
  grid-column: 1/-1;
}
html body#homeWorkspace.home-workspace #gallery .gallery-group-body,
html
  body#homeWorkspace.home-workspace
  #gallery
  .gallery-group-body.has-workspace-chat-agent {
  display: grid !important;
  grid-template-columns: repeat(
    auto-fill,
    minmax(0, min(282px, 100%))
  ) !important;
  gap: 18px !important;
  justify-content: start !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-card {
  display: block !important;
  margin: 0 !important;
  border-radius: 6px !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-preview {
  aspect-ratio: auto !important;
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  line-height: 0 !important;
  background: transparent !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-body {
  min-height: 0 !important;
  gap: 10px !important;
  padding: 12px !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-head > div {
  min-width: 0;
  flex: 1;
}
html body#homeWorkspace.home-workspace #gallery .gallery-title {
  max-height: none !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-details {
  min-width: 0;
}
html body#homeWorkspace.home-workspace #gallery .gallery-details > summary {
  cursor: pointer;
  color: #52606b;
  font-size: 14px;
  line-height: 24px;
  padding: 3px 0;
}
html body#homeWorkspace.home-workspace #gallery .gallery-prompt-label,
html
  body#homeWorkspace.home-workspace
  #gallery
  .gallery-card-group-field
  > span {
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-details-body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #e7eaec;
  margin-top: 8px;
  min-width: 0;
}
html body#homeWorkspace.home-workspace #gallery .gallery-card .action-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
html
  body#homeWorkspace.home-workspace
  #gallery
  .gallery-card
  .action-row
  .button {
  padding: 6px !important;
  font-size: 13px !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-select {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-select span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html body#homeWorkspace.home-workspace #gallery .gallery-select-input {
  width: 16px;
  height: 16px;
  margin: 0;
}
html body#homeWorkspace.home-workspace #gallery .image-tool-result-use-button {
  box-shadow: none !important;
  border-radius: 4px !important;
  font-size: 12px !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-group-empty,
html body#homeWorkspace.home-workspace #gallery .workspace-chat-agent {
  column-span: all;
}
html body#homeWorkspace.home-workspace #gallery .gallery-group-body[hidden] {
  display: none !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar .field {
  gap: 6px !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar .field > span {
  line-height: 1.5 !important;
}
/* Let enlarged labels and controls determine their own grid row heights. */
html body#homeWorkspace.home-workspace .app-shell .sidebar
  > .config-section .field-grid > .field {
  grid-template-rows: auto minmax(40px, auto) !important;
  height: auto !important;
  min-height: 0 !important;
  align-content: start !important;
}
html body#homeWorkspace.home-workspace .app-shell .sidebar
  > .config-section .field-grid > .field > span {
  display: block !important;
  height: auto !important;
  min-height: 21px !important;
  margin: 0 !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-head {
  align-items: flex-start !important;
  flex-wrap: wrap !important;
}
html body#homeWorkspace.home-workspace .app-shell .gallery-credit {
  flex-shrink: 0;
  line-height: 1.8 !important;
}
html body#homeWorkspace.home-workspace .home-header h1 {
  font-weight: 700 !important;
}
html body#homeWorkspace.home-workspace .app-shell .task-prompt {
  font-weight: 400 !important;
  line-height: 1.6 !important;
}
html body#homeWorkspace.home-workspace #gallery .gallery-time,
html body#homeWorkspace.home-workspace #gallery .gallery-credit {
  line-height: 1.5 !important;
}
@media (min-width: 761px) and (max-height: 800px) {
  body#homeWorkspace.home-workspace .home-header {
    padding-top: 10px;
  }
  body#homeWorkspace.home-workspace .home-header-main {
    margin-bottom: 6px;
  }
  body#homeWorkspace.home-workspace .home-navigation > a,
  body#homeWorkspace.home-workspace .home-more-nav > summary {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  html body#homeWorkspace.home-workspace .app-shell .sidebar {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    scroll-padding-bottom: 80px;
  }
  html body#homeWorkspace.home-workspace .app-shell .sidebar .section-heading {
    margin-bottom: 12px !important;
  }
}
@media (max-width: 760px) {
  html body#homeWorkspace.home-workspace .home-account[data-auth-host] {
    width: 100% !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .content-top {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body#homeWorkspace.home-workspace .app-shell .home-toolbar-v8-stack,
  html body#homeWorkspace.home-workspace .app-shell .content-actions {
    grid-column: 1 !important;
  }
}
/* History pages keep cards bounded while selection survives page changes. */
.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 8px;
  font-size: 14px;
}
.gallery-availability-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.gallery-availability-note[hidden] { display: none; }
