/* v0.85: custom doll spec cards and customiser accounts */
.chips-inner { display: contents; }
a.chip { text-decoration: none; }
.cz-ico { display: inline-block; vertical-align: -2px; flex: none; }
.pill .cz-ico { width: 11px; height: 11px; margin-right: 4px; }
.cz-pill { background: var(--soft); color: var(--ink); }
.custom-card .cz-meta { color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.custom-card .cz-meta .cz-ico { width: 12px; height: 12px; }

/* the photo panel: one photo per eye-chip position, and the string to pull */
.custom-doll .photo { position: relative; }
.custom-doll .photo.blink::after { content: ''; position: absolute; inset: 0; background: var(--ink); opacity: .9; transform-origin: top; transform: scaleY(0); animation: ps-lid .3s ease-in-out; pointer-events: none; }
@keyframes ps-lid { 0% { transform: scaleY(0); } 45%, 55% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .custom-doll .photo.blink::after { animation: none; } }
.pull-btn { align-self: center; justify-content: center; min-width: 200px; }
.chip-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip-strip button { position: relative; width: auto; height: auto; aspect-ratio: 1; display: block; }
.chip-strip button small { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: rgba(255, 255, 255, .88); color: var(--text); font-size: 10.5px; font-weight: 700; text-align: center; letter-spacing: .04em; }
.chip-strip button.none { border: 1.5px dashed rgba(0, 0, 0, .2); background: transparent; cursor: default; }
.chip-strip button.none small { background: transparent; color: var(--muted); top: 50%; bottom: auto; transform: translateY(-50%); }

/* eye chips double as buttons for the photos */
.custom-doll .eyes button.eye { font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.custom-doll .eyes button.eye[disabled] { cursor: default; opacity: .75; }
.custom-doll .eyes .eye.on { background: var(--flat-ink, var(--ink)); color: #fff; }
.custom-doll .eyes .eye.on small, .custom-doll .eyes .eye.on .eye-ph { color: rgba(255, 255, 255, .8); }
.chip-strip button.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip-strip button.on small { background: var(--flat-ink, var(--ink)); color: #fff; }
.eye-ph { font-size: 9.5px; letter-spacing: .06em; color: var(--muted); }

.cz-credit { display: flex; align-items: center; gap: 12px; }
.cz-credit .avatar .cz-ico { width: 18px; height: 18px; }
.cz-credit-txt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.work-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.coll-txt .work-chips { margin-top: 4px; }
.cz-confirm { border: 2px solid var(--ink); }
.slot-open { background: var(--soft); color: var(--ink); }

/* the form */
.custom-form .panel-body > .stack > label, .custom-form .cf-eye label { display: flex; flex-direction: column; gap: 4px; }
.work-grid { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.cf-eyes { display: grid; gap: 14px; }
@media (min-width: 700px) { .cf-eyes { grid-template-columns: 1fr 1fr; } }
.cf-eye { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: start; }
.cf-thumb { width: 84px; height: 84px; border-radius: 14px; border: 1.5px dashed rgba(0, 0, 0, .25); background: var(--card); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.cf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cf-thumb.busy { opacity: .5; }
.cf-eye .linkbtn { min-height: 32px; display: inline-flex; align-items: center; }
.cf-none svg { width: 28px; height: 28px; }
.cz-cta { flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--soft); }
.cz-cta p { flex: 1 1 260px; color: var(--ink); }
.cz-cta .btn { flex: none; }
/* v0.85.4: Community orders */
.coll-sorts { margin-top: 2px; }
.coll-sort-note { margin: 0 0 12px; min-height: 1.3em; }
.coll-why { display: block; color: var(--ink); font-weight: 600; font-size: 12.5px; margin-top: 2px; }
.coll-card .pb-meta .cz-ico { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
.photo-tip { color: var(--ink); }
/* v0.86: trades link to listings */
.match-row { flex-wrap: wrap; }
.match-who { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; min-width: 0; text-decoration: none; color: inherit; }
.match-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex: 0 1 auto; }
.listing-btn { white-space: nowrap; }
.pill.warn { background: #fff1c2; color: #6a4a00; }
.report-link { min-height: 32px; color: var(--muted); font-weight: 500; font-size: 13px; }
.list-link { color: var(--ink); font-weight: 600; }
.your-listing .btn { flex: none; }
.trade-safe { margin-top: 10px; }
.notes-from legend small { margin-top: 2px; }
/* v0.86.2: a stock photo whose site is down shows her cut-out instead */
img.cut-fb { object-fit: contain !important; object-position: 50% 100% !important; background: transparent !important; }
