
/*
 * LUNA_DESKTOP_ARTIFACT_VIEW_V1
 *
 * Artifact-only styles.
 * No shell/sidebar/topbar/composer/login rules.
 */

.luna-desktop-artifacts-v1 {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}


.luna-desktop-artifact-image-v1 {
  width: min(100%, 640px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}


.luna-desktop-artifact-image-v1 img {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}


.luna-desktop-artifact-save-v1 {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--bg-elevated);
  color: var(--text-secondary);

  font-size: 13px;
  text-decoration: none;
}


.luna-desktop-artifact-save-v1:hover {
  background: var(--bg-hover);
  color: var(--text);
}


.luna-desktop-artifact-file-v1 {
  box-sizing: border-box;

  width: min(100%, 390px);
  min-height: 58px;

  padding: 9px 11px;

  display: flex;
  align-items: center;
  gap: 10px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--bg-elevated);
  color: var(--text);

  text-decoration: none;
}


.luna-desktop-artifact-file-v1:hover {
  background: var(--bg-hover);
}


.luna-desktop-artifact-ext-v1 {
  flex: 0 0 auto;

  min-width: 38px;
  height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;

  background: var(--bg-active);

  color: var(--text-secondary);

  font-size: 10px;
  font-weight: 700;
}


.luna-desktop-artifact-info-v1 {
  min-width: 0;
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 2px;
}


.luna-desktop-artifact-info-v1 strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 13px;
  font-weight: 500;
}


.luna-desktop-artifact-info-v1 small {
  color: var(--text-tertiary);

  font-size: 11px;
}


.luna-desktop-artifact-download-v1 {
  flex: 0 0 auto;

  color: var(--text-tertiary);

  font-size: 16px;
}



/* LUNA_DESKTOP_ARTIFACT_DISPLAY_SIZE_V2
 *
 * DISPLAY SIZE ONLY.
 * Original generated file is untouched.
 */

.luna-desktop-artifact-image-v1 {
  width: min(100%, 480px);
}


.luna-desktop-artifact-image-v1 img {
  display: block;

  width: auto;
  height: auto;

  max-width: 480px;
  max-height: 52vh;

  object-fit: contain;
}



/* LUNA_DESKTOP_SENDER_PREVIEW_CSS_V1 */

.luna-sender-image-preview-v1 {
  display: block;

  width: auto;
  height: auto;

  max-width: 180px;
  max-height: 135px;

  margin-top: 8px;

  border-radius: 8px;

  object-fit: cover;
}


.luna-sender-file-preview-v1 {
  max-width: 220px;

  margin-top: 7px;
  padding: 6px 8px;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 7px;

  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

