.boss-image-field { display: grid; min-width: 0; gap: 8px; }
.boss-image-preview-title { margin: 0 0 10px; font-size: 14px; overflow-wrap: anywhere; }
.boss-image-toolbar, .boss-image-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.boss-image-actions { margin-inline-start: auto; justify-content: flex-end; }
.location-upload-preview .boss-image-toolbar { margin-top: 10px; }
.boss-image-field .boss-image-toolbar .button { min-height: 34px; padding: 4px 10px; font-size: 12px; }
.boss-image-field .boss-image-toolbar .boss-image-remove {
  min-width: 34px;
  padding: 0 6px;
  color: var(--danger, var(--red));
  font-size: 20px;
  line-height: 1;
}
.boss-image-remove:hover { background: color-mix(in srgb, var(--danger, var(--red)) 12%, var(--panel)); }
.image-upload-zone {
  min-width: 0; padding: 14px; border: 1px dashed #536181; border-radius: 12px;
  background: linear-gradient(130deg, #202a40, #171f31); transition: border-color 120ms, background 120ms;
}
.upload-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.upload-symbol { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 9px; background: #35304d; color: #ccb7f7; }
.upload-heading h3 { margin: 0; font-size: 15px; font-weight: 500; color: #e9eefb; }
.upload-heading p { margin: 2px 0 0; font-size: 12px; color: #a6b2cc; }
.upload-shortcut { margin-left: auto; padding: 3px 7px; border: 1px solid #4b5772; border-radius: 5px; white-space: nowrap; color: #a6b2cc; font-size: 10px; }
.upload-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.upload-buttons button { min-height: 36px; padding: 7px 13px; border: 1px solid #4e5b7a; border-radius: 7px; font: 500 12px Kanit, sans-serif; cursor: pointer; }
.upload-choose { background: #e9b552; color: #241b0d; border-color: #e9b552 !important; }
.upload-choose:hover { background: #f6c56a; }
.upload-paste { background: #29334c; color: #d8dff1; }
.upload-paste:hover { background: #3c4560; }
.upload-paste:disabled { cursor: wait; opacity: 0.6; }
.upload-file-name { flex: 1 1 120px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b9c6de; font-size: 11px; }
.upload-help { margin: 10px 0 0; color: #8997b5; font-size: 10px; line-height: 1.6; }
.upload-status { margin: 6px 0 0; font-size: 11px; color: #a4dfc5; overflow-wrap: anywhere; }
.upload-status:empty { display: none; }
.upload-status.is-error { color: #ffacb8; }
.image-upload-zone.is-target { border-color: #c3a2ff; }
.image-upload-zone.is-target .upload-shortcut { color: #e4d4ff; border-color: #9875cc; background: #382d50; }
.image-upload-zone.is-dragging { border-style: solid; border-color: #f4c267; background: #373245; box-shadow: inset 0 0 0 1px #f4c267; }
.image-upload-zone:focus-visible, .upload-buttons button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 440px) { .image-upload-zone { padding: 12px; } .upload-heading { gap: 8px; } .upload-shortcut { font-size: 9px; padding: 3px 5px; } }

[data-multi-image-upload]:not([data-upload-ready]) :is(.upload-buttons, .upload-shortcut, .upload-help, .upload-heading p) {
  display: none;
}
.upload-previews {
  display: grid;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.upload-previews li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 4px 6px;
}
.upload-previews img { width: 38px; height: 32px; object-fit: cover; border-radius: 4px; background: var(--bg); }
.upload-previews span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.upload-previews button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--danger, var(--red));
  font-size: 18px;
  cursor: pointer;
}
