/* Done (and the same action block on the shelf's charm and on a shared charm): Save image (the primary
   one) on its own row, then two side by side (Share link + Make another, Share link + Remove, Keep it +
   Save image), the save's and the share's states, the link field. Loaded after css/app.css. */
.done-actions { gap: 10px; }
.done-buttons { display: grid; gap: 12px; width: min(100%, 320px); }
.done-buttons .btn { width: 100%; }
.done-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.done-row .btn { min-width: 0; padding: 0 10px; min-height: 50px; font-size: 16px; white-space: nowrap; }
.done-actions .save-btn.primary { min-width: 0; min-height: 56px; font-size: 19px; }
.done-actions .again-btn { min-height: 50px; }
.save-btn[data-state="saving"] { cursor: progress; opacity: .8; }
.save-btn[data-state="saved"], .share-btn[data-state="copied"] { background: var(--mint); border-color: var(--mint-deep); color: #2f6b55; box-shadow: 0 4px 0 var(--mint-deep); }
.save-note { margin: 0; text-align: center; font-size: 14px; line-height: 1.3; color: #b4566c; max-width: 300px; }
.save-note:empty { display: none; }

/* the link, when the clipboard said no: a small field to copy it from by hand */
.link-box { width: min(100%, 320px); }
.link-box:empty { display: none; }
.link-field { display: grid; gap: 3px; font-size: 13px; font-weight: 600; color: var(--ink-soft); text-align: left; }
.link-field input {
  width: 100%; min-height: 40px; padding: 0 12px; border-radius: 12px;
  border: 2px solid #e6dfff; background: #fff; color: var(--ink);
  font: 500 14px/1 var(--font); -webkit-user-select: text; user-select: text;
}
.link-field input:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 1px; }

/* "Kept on your shelf": a quiet line beside Back */
.kept-btn {
  appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; margin: 0;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--logo); white-space: nowrap;
  text-decoration: underline; text-decoration-color: #d8cff8; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.kept-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.kept-btn:active { transform: translateY(1px); }

html[data-layout="wide"] .done-buttons { width: min(100%, 340px); gap: 14px; }
html[data-layout="wide"] .done-actions .save-btn.primary { min-height: 60px; font-size: 20px; }
html[data-layout="wide"] .done-row .btn { min-height: 54px; font-size: 17px; }

@media (max-width: 359px) {
  .done-row { gap: 8px; }
  .done-row .btn { padding: 0 6px; font-size: 15px; }
  .kept-btn { font-size: 14px; padding: 0 4px; gap: 4px; }
  .kept-btn svg { width: 18px; height: 18px; }
}
@media (max-height: 640px) {
  .done-actions { gap: 6px; }
  .done-buttons { gap: 10px; }
  .done-actions .save-btn.primary { min-height: 50px; font-size: 18px; }
  .done-row .btn { min-height: 44px; }
  .recipe { font-size: 13px; margin-bottom: 0; }
}
