.exhibition-reconfigure-btn {
  display: none;
}

.exhibition-config-section {
  border: 1px solid var(--line, #ddd); border-radius: 5px;
  padding: 16px; margin-bottom: 16px; background: var(--bg, #fff);
}
.exhibition-reference-drop { width: 100%; min-height: 100px; padding: 16px; border: 1px dashed var(--ink-3); background: var(--bg-soft, #f5f5f7); color: var(--ink); font: inherit; cursor: pointer; }
.exhibition-reference-drop > span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.exhibition-reference-drop.is-dragover { outline: 2px solid var(--ink); }
.exhibition-reference-drop:disabled { opacity: .6; cursor: default; }
.exhibition-reference-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.exhibition-reference-item { display: grid; min-width: 0; gap: 6px; font-size: 12px; text-align: center; }
.exhibition-reference-preview { padding: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); cursor: zoom-in; }
.exhibition-reference-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.exhibition-reference-item > button:last-child { min-height: 44px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.exhibition-reference-status { font-size: 13px; color: #9b4343; line-height: 1.6; }
.exhibition-batch-row[hidden], .exhibition-reference-count[hidden] { display: none; }
.exhibition-reference-count { margin: 8px 0 0; color: var(--ink-3); font-size: 14px; line-height: 1.6; }

@media (min-width: 901px) {
  .exhibition-workspace { grid-template-columns: minmax(350px, 425px) minmax(0, 1fr); }
  .exhibition-scene-tag[role="button"] { cursor: zoom-in; }
  .exhibition-scene-tag:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
}
.exhibition-scene-dialog {
  position: fixed; inset: 0; margin: auto; box-sizing: border-box;
  width: min(1560px, 94vw); max-width: 94vw; height: min(920px, 92dvh); max-height: 92dvh;
  border: 1px solid var(--line); padding: 24px; border-radius: 8px;
  color: var(--ink, #1d1d1f); background: var(--bg, #fff); overflow: hidden;
}
.exhibition-scene-dialog[open] { display: flex; flex-direction: column; gap: 20px; }
.exhibition-scene-dialog::backdrop { background: rgba(16, 20, 18, .65); }
.exhibition-scene-dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.exhibition-scene-dialog h2 { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.exhibition-scene-dialog [data-close-scene] { min-height: 44px; flex-shrink: 0; }
.exhibition-scene-dialog-content { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; min-height: 0; flex: 1; }
.exhibition-scene-dialog-visual { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.exhibition-scene-dialog [data-scene-viewport] { box-sizing: border-box; width: 100%; max-width: 100%; height: 100%; max-height: 100%; min-width: 0; min-height: 0; flex: 1; position: relative; overflow: hidden; display: grid; place-items: center; box-shadow: none; background: var(--bg-soft, #f5f5f7); }
.exhibition-scene-dialog img { max-width: 100%; width: 100%; height: 100%; object-fit: contain; }
.exhibition-scene-dialog img[hidden] { display: none; }
.exhibition-scene-dialog [data-scene-image-status] { margin: 0; font-size: 14px; color: var(--ink-3); }
.exhibition-scene-dialog-details { overflow-y: auto; min-width: 0; min-height: 0; padding-right: 12px; overscroll-behavior: contain; }
.exhibition-scene-dialog-details section + section { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.exhibition-scene-dialog-details h3 { font-size: 20px; margin: 0 0 10px; }
.exhibition-scene-dialog-details p { font-size: 18px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }

.exhibition-first-card-wait {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-top: 16px;
  color: var(--ink, #1d1d1f);
  background: var(--bg-soft, #f5f5f7);
  border: 1px solid var(--line, #e5e5ea);
  font-size: 14px;
  line-height: 1.6;
}
.exhibition-first-card-wait[hidden] { display: none; }
.exhibition-first-card-track { height: 5px; overflow: hidden; background: var(--line, #e5e5ea); }
.exhibition-first-card-track > span {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--ink, #1d1d1f);
  animation: exhibition-first-card-loading 1.5s ease-in-out infinite;
}
@keyframes exhibition-first-card-loading {
  from { transform: translateX(-110%); }
  to { transform: translateX(300%); }
}
@media (prefers-reduced-motion: reduce) {
  .exhibition-first-card-track > span { animation: none; width: 100%; opacity: .45; }
}

.exhibition-result-grid .exhibition-result-card.gacha-card.my-gallery-card {
  padding: 10px;
  border: 1px solid var(--ink-3, #6e6e73);
  border-radius: var(--radius-sm, 4px);
  background: var(--bg, #fff);
  min-width: 0;
}

.exhibition-result-grid .exhibition-scene-panel {
  border-top: 1px solid var(--line, #e5e5ea);
  padding-top: 8px;
}

.exhibition-idea-hint {
  margin: 0 0 8px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.6;
  text-decoration-line: underline;
  text-underline-offset: 3px;
}

.exhibition-idea-editor { position: relative; }
.exhibition-idea-editor .exhibition-idea { box-sizing: border-box; display: block; width: 100%; min-height: 120px; max-height: none; padding-bottom: 48px; resize: none; overflow: hidden; }
.exhibition-idea-clear { position: absolute; right: 4px; bottom: 4px; min-width: 52px; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.exhibition-idea-clear:disabled { color: var(--ink-3); opacity: .55; cursor: default; }
.exhibition-idea-clear:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }

@media (max-width: 900px) {
  .exhibition-config.is-results-focused > :not(.exhibition-params),
  .exhibition-config.is-results-focused .exhibition-params > :not(.exhibition-actions):not(.exhibition-status):not(.exhibition-first-card-wait),
  .exhibition-config.is-results-focused #exhibitionRunBtn {
    display: none;
  }

  .exhibition-config.is-results-focused .exhibition-reconfigure-btn:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .exhibition-config.is-results-focused .exhibition-actions {
    margin-top: 0;
  }

  .exhibition-config.is-results-focused .exhibition-run-btn {
    min-height: 44px;
    width: 100%;
  }

  .exhibition-config.is-results-focused {
    scroll-margin-top: 90px;
  }
}
