/* 比例选择补充样式：独立于超长的 Agent 样式模块。 */

#agent-aspect-modal .agent-aspect-modal-card {
  max-height: min(80dvh, 640px);
}

.agent-aspect-modal-hint {
  margin: 0 0 14px;
  line-height: 1.6;
}

#agent-aspect-size {
  margin: 14px 0 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.55;
}

.agent-aspect-best {
  margin: 4px 0 14px;
  padding: 12px;
  border: 1px solid rgba(35, 120, 210, 0.35);
  border-radius: 12px;
  background: rgba(232, 240, 254, 0.7);
}

.agent-aspect-best-title,
.agent-aspect-other-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.agent-aspect-other-title {
  margin-top: 4px;
  color: var(--muted);
}

.agent-aspect-best .aspect-ratio-chip.is-best {
  border-color: #2378d2;
  box-shadow: 0 0 0 2px rgba(35, 120, 210, 0.16);
}

@media (max-width: 520px) {
  #agent-aspect-modal.page-modal {
    padding: 12px;
  }

  #agent-aspect-modal .agent-aspect-modal-card {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 16px;
  }

  #agent-aspect-modal .agent-modal-actions-top .btn-primary,
  #agent-aspect-modal .agent-modal-actions-top .btn-secondary {
    flex: 1 1 100%;
    width: 100%;
  }

  #agent-aspect-modal .page-modal-title {
    font-size: 17px;
    line-height: 1.35;
  }
}
