.text-button {
  border: 0;
  background: none;
  padding: 8px 0 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.image-prompt-label {
  display: grid !important;
  align-items: stretch !important;
  gap: 7px !important;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.image-prompt-label textarea {
  font-size: 10px;
  line-height: 1.5;
}

.hotspot-input {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
}

.hotspot-input summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.hotspot-input label {
  margin-top: 10px;
}

.hotspot-input p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.selected-file-list {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf8;
  color: var(--muted);
  font-size: 11px;
}

.selected-file-list strong {
  color: var(--green);
}

.selected-file-list ul {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.selected-file-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.selected-file-list li span {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-list small {
  flex: 0 0 auto;
}

.upload-status {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.6;
}

.upload-status.is-processing {
  color: #315a7a;
  background: #edf5fa;
}

.upload-status.is-success {
  color: #216b49;
  background: #edf8f1;
}

.upload-status.is-error {
  color: var(--danger);
  background: #fff0f0;
}

.connection-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.connection-actions span {
  color: var(--muted);
  font-size: 10px;
}

.connection-result {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.55;
}

.connection-result p,
.connection-result small {
  display: block;
  margin: 0;
}

.connection-result small {
  margin-top: 3px;
}

.connection-result.is-processing {
  color: #315a7a;
  background: #edf5fa;
}

.connection-result.is-success {
  color: #216b49;
  background: #edf8f1;
}

.connection-result.is-error {
  color: var(--danger);
  background: #fff0f0;
}

.connection-result img {
  width: 78px;
  height: 104px;
  margin-left: auto;
  border-radius: 8px;
  object-fit: cover;
}

.model-log-panel {
  grid-column: 1 / -1;
}

.model-log-panel .panel-header > div h2 {
  margin: 0;
}

.model-log-list {
  display: grid;
}

.model-log-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.model-log-row:first-child {
  border-top: 0;
}

.model-log-state {
  padding: 4px 7px;
  border-radius: 999px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}

.model-log-row.is-success .model-log-state {
  color: var(--green);
  background: #edf8f1;
}

.model-log-row.is-error .model-log-state {
  color: var(--danger);
  background: #fff0f0;
}

.model-log-row strong,
.model-log-row p,
.model-log-row small {
  display: block;
}

.model-log-row p,
.model-log-row small {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.model-log-row small {
  color: var(--danger);
}

.model-log-row code {
  overflow: hidden;
  color: var(--muted);
  text-align: right;
  text-overflow: ellipsis;
}

.model-log-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.model-log-empty.is-error {
  color: var(--danger);
  background: #fff0f0;
}

@media (max-width: 1350px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .preview-column {
    display: grid;
    grid-template-columns: minmax(340px, 370px) 1fr;
    gap: 16px;
    align-items: start;
  }
}
