/* Result card: the save button on the result screen and the save sheet. */

.save-result-button { margin-top: 16px; }
.save-result-button[hidden] { display: none; }
.save-result-button + .secondary-button { margin-top: 10px; }

.card-preview {
  position: relative;
  width: 150px;
  aspect-ratio: 9 / 16;
  margin: 4px auto 18px;
  border-radius: 16px;
  overflow: hidden;
  background: #151e30;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px #0007;
}
.card-preview img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s; }
.card-preview.ready img { opacity: 1; }
.card-spinner {
  position: absolute;
  inset: calc(50% - 14px) auto auto calc(50% - 14px);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff1c;
  border-top-color: var(--cyan);
  animation: spin .9s linear infinite;
}
.card-preview.ready .card-spinner { display: none; }

.save-actions { display: grid; gap: 8px; }
.save-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #151e30;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.save-action:disabled { opacity: .55; cursor: progress; }
.save-action.main { background: linear-gradient(135deg, var(--cyan), #67cfeb); border-color: transparent; color: #07131a; }
.save-action i {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #4ee8cf12;
  color: var(--cyan);
}
.save-action.main i { background: #ffffff38; color: #07131a; }
.save-action svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.save-action span, .save-action small { display: block; }
.save-action span { font-size: 13px; font-weight: 800; }
.save-action small { font-size: 10px; color: var(--muted); margin-top: 2px; }
.save-action.main small { color: #07131aa8; }
