/* The look panel's paste field with its inline photos (paste-inline.js), the "Where do I get the link?" how-to, the
   result card with the recent looks (look-result.js) and the selfie while the silhouette is made (style-panel.js).
   Design: project/design/ui-rework-2026-12/png/Paste-After.png, Result-After.png, Tool-Spec.png. */

.lr-spin { display: inline-block; flex: none; width: 40px; height: 40px; border: 4px solid #D6D5D2; border-top-color: var(--ink); border-radius: 50%; animation: activity-spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .lr-spin { animation-duration: 3s; } }

/* ---------- paste pill and its photos ---------- */
.sp-paste-box { margin-bottom: var(--s4); }
.paste-pill { display: flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 6px 0 var(--s4); border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ground); }
.paste-pill:focus-within { box-shadow: 0 0 0 3px var(--brand); }
.paste-pill.drag-over { border-style: dashed; background: #E6FBFB; }
.paste-ico { display: flex; flex: none; color: var(--muted); }
.paste-input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.paste-input::placeholder { color: #6E6A64; }
.paste-clear { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--tone); font-size: 18px; line-height: 1; color: var(--ink); cursor: pointer; }
.sp-paste-box > .error { margin: var(--s2) 0 0; }
.paste-help { margin-top: var(--s2); color: var(--muted); }
.paste-help .link { font-size: inherit; }

.paste-result { margin-top: var(--s2); }
.paste-card { display: grid; gap: var(--s2); padding: var(--s3); border: var(--hair); border-radius: 14px; background: var(--ground); }
.paste-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.paste-name { flex: 1 1 auto; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.paste-cat { flex: none; height: 40px; padding: 0 var(--s3); border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ground); font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); }
.paste-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.paste-thumb { position: relative; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--tone); cursor: pointer; }
.paste-thumb img, .paste-thumb .img-missing { display: block; width: 100%; height: 100%; object-fit: cover; }
.paste-thumb:hover, .paste-thumb:focus-visible, .paste-thumb.is-current { border-color: var(--brand); }
.paste-thumb[disabled], .paste-thumb[aria-busy] { opacity: 0.6; cursor: progress; }
.paste-to { position: absolute; left: 4px; bottom: 4px; padding: 3px 5px; border-radius: 3px; background: var(--brand); color: var(--ink); font-size: 9px; white-space: nowrap; opacity: 0; }
.paste-to:empty { display: none; }
.paste-thumb:hover .paste-to, .paste-thumb:focus-visible .paste-to, .paste-thumb.is-current .paste-to { opacity: 1; }
.paste-thumb.is-skeleton { cursor: default; animation: pulse 1.4s ease-in-out infinite; border-color: transparent; }
.paste-card.is-loading { background: var(--tone); border-color: transparent; }
.paste-card.is-loading .paste-thumb { background: #E2E1DE; }
.paste-reading { display: flex; align-items: center; gap: var(--s3); margin: 0; font-size: 14px; }
.paste-reading .lr-spin { width: 24px; height: 24px; border-width: 3px; }

/* ---------- "Where do I get the link?" ---------- */
.link-help { position: relative; margin-top: var(--s3); padding: var(--s5) var(--s5) var(--s4); border-radius: 16px; background: var(--ink); color: #E8E6E2; font-size: 14px; line-height: 1.55; }
.link-help:focus { outline: none; }
.link-help:focus-visible { box-shadow: 0 0 0 3px var(--brand); }
.link-help-title { margin: 0 32px var(--s3) 0; font-stretch: 62%; font-weight: 850; font-size: 30px; line-height: 0.95; text-transform: uppercase; color: var(--ground); }
.link-help p { margin: 0 0 var(--s3); }
.link-help-x { position: absolute; top: var(--s3); right: var(--s3); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #2A2926; color: var(--ground); font-size: 20px; cursor: pointer; }
.link-help-bar { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s4); padding: 8px; border-radius: 8px; background: var(--ground); }
.link-help-bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #C9C7C3; }
.link-help-bar span { flex: 1 1 auto; min-width: 0; margin-left: 6px; padding: 6px 10px; overflow: hidden; border: 2px solid var(--brand); border-radius: 6px; background: #E6FBFB; color: var(--ink); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.link-help ol { margin: 0 0 var(--s3); padding-left: 1.3em; }
.link-help li + li { margin-top: 4px; }
.link-help b { color: var(--ground); }
.link-help-shops { margin: 0; color: #BDB7AD; font-size: 12px; }

/* ---------- result card and recent looks ---------- */
.look-result { margin-top: var(--s4); padding-top: var(--s4); border-top: var(--hair); }
.lr-title { margin: 0 0 var(--s2); color: var(--muted); }
.lr-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; max-width: 240px; aspect-ratio: 3 / 5; overflow: hidden; border-radius: 14px; background: var(--tone); color: var(--ink); text-align: center; text-decoration: none; }
.lr-wait { padding: var(--s4); }
.lr-wait.is-blocked { aspect-ratio: auto; min-height: 160px; }
.lr-head { font-size: 16px; }
.lr-bar { position: relative; display: block; width: 120px; height: 6px; margin: 4px 0; overflow: hidden; border-radius: 3px; background: #D6D5D2; }
.lr-bar i { position: absolute; inset: 0 auto 0 0; width: 4%; background: var(--brand); transition: width 1s linear; }
.lr-note { max-width: 22em; margin: 0; }
.lr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s2); }
.lr-done img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lr-done.is-fresh { box-shadow: 0 0 0 3px var(--brand); }
.lr-done:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.lr-tag { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 4px; background: var(--brand); color: var(--ink); }
.lr-expand { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ground); font-size: 14px; }
.lr-buy { margin-top: var(--s2); }
.lr-email { margin-top: var(--s3); }
.lr-history { margin-top: var(--s3); }
.lr-thumbs { display: flex; gap: var(--s2); margin: var(--s2) 0 0; padding: 0; list-style: none; }
.lr-thumb { display: block; width: 56px; height: 76px; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-thumb); background: var(--tone); cursor: pointer; }
.lr-thumb:hover, .lr-thumb:focus-visible { box-shadow: 0 0 0 2px var(--brand); }
.lr-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.look-result .sp-all { margin-top: var(--s3); }

/* ---------- the selfie while the silhouette is made ---------- */
.sp-selfie-pic.is-busy { position: relative; display: grid; place-items: center; }
.sp-selfie-pic.is-busy img { position: absolute; inset: 0; filter: grayscale(1) brightness(0.9); }
.sp-selfie-pic.is-busy .lr-spin { position: relative; width: 28px; height: 28px; border-width: 3px; border-color: rgba(255, 255, 255, 0.5); border-top-color: var(--ground); }

/* ---------- the ready model without a styled shot: a neutral mark, never the bare model ---------- */
.sp-selfie-none { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand); font-size: 22px; font-weight: 700; }
#sp-mini-selfie .lr-spin { width: 16px; height: 16px; }
