.scene-editor {
  display: grid;
  gap: 16px;
  min-width: 0;
  color: inherit;
}
.scene-editor-header, .scene-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.scene-editor h2, .scene-editor h3, .scene-editor p { margin: 0; }
.scene-editor-header p, .scene-list-heading span, .scene-editor small { color: #b0bdbe; }
.scene-editor-header p { margin-top: 6px; }
.scene-default-control { display: grid; gap: 5px; min-width: min(190px, 100%); }
.scene-default-control label { font-size: 12px; color: #c3cece; }
.scene-editor input, .scene-editor select {
  min-width: 0;
  border: 1px solid #ffffff38;
  border-radius: 8px;
  padding: 8px 10px;
  color: #eff6f4;
  background: #182226;
  font: inherit;
}
.scene-editor button {
  border: 1px solid #ffffff38;
  border-radius: 8px;
  min-height: 38px;
  padding: 7px 11px;
  color: #eff6f4;
  background: #19282c;
  font: inherit;
  cursor: pointer;
}
.scene-editor button:hover { border-color: #a6d2c4; }
.scene-editor button:disabled { opacity: .48; cursor: default; }
.scene-editor :is(button, input, select):focus-visible { outline: 2px solid #b8ead9; outline-offset: 2px; }
.scene-composer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #ffffff25;
  border-radius: 13px;
  background: #121d20;
}
.scene-editor-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.scene-editor-tabs button[aria-pressed=true], .scene-editor button.scene-editor-primary {
  border-color: #9ccdbf;
  color: #102222;
  background: #b8e2d6;
  font-weight: 650;
}
.scene-editor button.scene-editor-primary { justify-self: start; }
.scene-editor button.scene-file-drop {
  display: grid;
  justify-items: center;
  gap: 5px;
  border-style: dashed;
  padding: 20px 12px;
  background: #203638;
}
.scene-editor button.scene-file-drop.is-over { border-color: #b8ead9; background: #294c46; }
.scene-upload-queue, .scene-admin-list { display: grid; gap: 7px; list-style: none; padding: 0; margin: 0; }
.scene-upload-queue li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.scene-upload-queue .scene-file-visual { width: 58px; height: 38px; border-radius: 6px; object-fit: cover; }
.scene-queue-name { display: grid; gap: 4px; }
.scene-link-fields { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 10px; }
.scene-link-fields label { display: grid; gap: 5px; min-width: 0; }
.scene-editor p.scene-editor-notice { color: #b8e2d6; }
.scene-editor .scene-editor-error { color: #ffd0c7; overflow-wrap: anywhere; }
.scene-admin-list li {
  display: grid;
  grid-template-columns: auto 108px minmax(100px, 1fr) auto;
  gap: 10px;
  padding: 9px;
  align-items: center;
  min-width: 0;
  border: 1px solid #ffffff28;
  border-radius: 11px;
  background: #131e24;
}
.scene-admin-list li.is-drop-target { outline: 2px solid #b8e2d6; }
.scene-reorder-grip { font-size: 21px; padding: 3px; color: #a8bebb; cursor: grab; }
.scene-admin-thumb { border-radius: 7px; overflow: hidden; aspect-ratio: 16 / 10; background: #1f3036; }
.scene-admin-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-admin-title { display: grid; gap: 3px; min-width: 0; }
.scene-admin-title strong { overflow-wrap: anywhere; }
.scene-row-actions, .scene-delete-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.scene-row-actions button[aria-label$="上移"], .scene-row-actions button[aria-label$="下移"] { font-size: 17px; }
.scene-default-badge { padding: 0 6px; color: #b8e2d6; font-size: 12px; }
.scene-editor button.scene-delete { border-color: #af7470; color: #ffd4cd; background: #442a2b; }
.scene-delete-confirm { grid-column: 1 / -1; justify-content: flex-end; padding: 6px 0 0; }
.scene-delete-confirm span { flex: 1 1 175px; }
.scene-editor .scene-empty { padding: 15px 0; color: #bac7c7; }
@media (max-width: 670px) {
  .scene-link-fields { grid-template-columns: 1fr; }
  .scene-admin-list li { grid-template-columns: auto 78px minmax(0, 1fr); }
  .scene-row-actions { grid-column: 2 / -1; }
  .scene-editor button { min-height: 42px; }
}
