/* Updating a script stays inside the existing continuous shooting surface. */
html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-card {
  min-width: 0;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-card > h1 {
  margin-bottom: 8px;
  font-size: 21px !important;
  line-height: 1.4;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-card > .shoot-hint {
  margin: 0;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-upload {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--minimal-soft);
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-upload .shoot-file {
  box-sizing: border-box;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--minimal-line);
  background: var(--minimal-paper, #fff);
  text-align: center;
  overflow-wrap: anywhere;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-upload .shoot-file input[type="file"] {
  height: 100%;
  margin: 0;
  font-size: 16px;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-upload .shoot-file:focus-within {
  outline: 2px solid var(--minimal-dark);
  outline-offset: 2px;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-upload .shoot-file input[type="file"]:focus-visible {
  outline: none;
  box-shadow: none;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-upload .shoot-file:has(input:disabled) {
  opacity: .5;
  cursor: default;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-upload .shoot-file input:disabled {
  cursor: default;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-upload .shoot-hint {
  margin: 0;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 16px 0;
  color: var(--minimal-muted);
  font-size: 11px;
  line-height: 1.5;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-divider::before,
html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-divider::after {
  content: "";
  flex: 1;
  min-width: 0;
  height: 1px;
  background: var(--minimal-line);
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-divider > span {
  flex: none;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-card > label {
  min-width: 0;
  margin-top: 0;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page textarea[data-shoot-update-text] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 180px;
  font-size: 16px !important;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  box-shadow: none;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-card > button[data-shoot="preview-text"] {
  width: 100%;
  margin-top: 12px;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-resume {
  min-width: 0;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--minimal-line);
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-resume > button {
  max-width: 100%;
  overflow-wrap: anywhere;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-resume > p {
  margin: 8px 0 0;
  color: var(--minimal-muted);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-preview-label {
  margin: 0 0 12px;
  color: var(--minimal-muted);
  font-size: 14px;
  line-height: 1.6;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-preview-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  margin-top: 12px;
}

html[data-visual-mode="minimal"] body.theme-liquid #appView .shoot-page .shoot-update-preview-actions > button {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
