.enhance-sheet {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  box-sizing: border-box;
  padding: 24px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--hair);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  font-family: var(--font-ui);
  overflow: auto;
}
.enhance-sheet::backdrop {
  background: rgba(0, 0, 0, 0.32);
}
.enhance-head,
.enhance-footer,
.enhance-row,
.enhance-selection {
  display: flex;
  align-items: center;
  gap: 12px;
}
.enhance-head {
  justify-content: space-between;
  position: sticky;
  top: -24px;
  background: var(--surface);
  z-index: 2;
  padding: 12px 0;
}
.enhance-head h3 {
  font-size: 20px;
  margin: 0;
}
.enhance-note {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}
.enhance-account { padding: 14px; margin: 12px 0; border-radius: 12px; background: var(--accent-soft); }
.enhance-account > .btn { margin-left: 8px; }
.enhance-account small { display: block; }
.enhance-summary {
  font-size: 14px;
  font-weight: 600;
}
.enhance-row {
  padding: 14px 0;
  border-top: 1px solid var(--hair);
  flex-wrap: wrap;
}
.enhance-row > div {
  flex: 1;
  min-width: 180px;
  display: grid;
  gap: 5px;
}
.enhance-state {
  font-size: 13px;
  color: var(--text-2);
}
.enhance-error {
  color: var(--red);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.enhance-preview {
  padding-top: 8px;
}
.enhance-preview video {
  width: 100%;
  max-height: 48vh;
  display: block;
  background: #111;
  border-radius: 12px;
  margin: 12px 0;
}
.enhance-tabs {
  display: flex;
  gap: 6px;
}
.enhance-tabs [aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.enhance-footer {
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  margin-top: 16px;
}
/* Batch entry sits in the 成品库 filter row; the selection dock reuses the
   image wall's .sel-bar shell (fixed, centred at the bottom of the viewport). */
.enhance-selection {
  display: inline-flex;
}
.enhance-dock[hidden] {
  display: none !important;
}
.pipeline-list:has(.enhance-dock:not([hidden])) {
  padding-bottom: 88px;
}
.enhance-check {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  background: var(--surface);
  border-radius: 8px;
  padding: 5px;
  display: flex;
  box-shadow: var(--sh-1);
}
.enhance-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}
.seed-card {
  position: relative;
}
.enhance-action {
  min-height: 32px;
}
.vtile .enhance-action {
  margin: 0 6px 6px;
  width: calc(100% - 12px);
  font-size: 11px;
}
.enhance-sheet button:focus-visible,
.enhance-check input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .enhance-sheet {
    padding: 16px;
  }
  .enhance-head {
    top: -16px;
  }
  .enhance-head h3 {
    font-size: 18px;
  }
  .enhance-row .btn {
    min-height: 36px;
  }
}
.enhance-sheet [hidden] {
  display: none !important;
}
