/* Looks (src/ui/look-menu.tsx): the Look menu on the new-video box, the small moving pictures, and the look Toon
   proposes with the brief. */

/* A look's small moving picture: frames stacked, the one on show fading in and drifting slowly. */
.lkp { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #2a2a2c; }
.lkp-none { display: grid; place-items: center; color: var(--tx3); }
.lkp-f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease; transform: scale(1.06); }
.lkp-f.lkp-prev { opacity: 1; transition: none; }
.lkp-f.lkp-on { opacity: 1; z-index: 1; }
.lkp.lkp-play .lkp-f.lkp-on.lkp-a { animation: lkp-drift-a 4.2s ease-in-out infinite alternate both; }
.lkp.lkp-play .lkp-f.lkp-on.lkp-b { animation: lkp-drift-b 4.2s ease-in-out infinite alternate both; }
@keyframes lkp-drift-a { from { transform: scale(1.04) translate(-1.5%, 1%); } to { transform: scale(1.13) translate(1.5%, -1%); } }
@keyframes lkp-drift-b { from { transform: scale(1.13) translate(1.5%, 1%); } to { transform: scale(1.04) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .lkp-f { transition: none; } .lkp.lkp-play .lkp-f.lkp-on.lkp-a, .lkp.lkp-play .lkp-f.lkp-on.lkp-b { animation: none; } }

/* The button on the new-video box. */
.look-trig .look-dot { width: 18px; height: 18px; flex: none; border-radius: 5px; overflow: hidden; background: #2a2a2c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.look-trig .look-dot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.look-trig .sel-v { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* The menu. */
.pop.float.look-pop { width: 380px; max-width: calc(100vw - 16px); }
.look-i { min-height: 56px; gap: 12px; text-align: left; white-space: normal; }
.look-i .mi-t2 { min-width: 0; padding: 7px 0; }
.look-t { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.look-a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.look-tag { font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--tx2); padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); }
.look-pic { width: 72px; height: 42px; flex: none !important; border-radius: 7px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.look-pic.look-toon { display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); }
.look-i.sel { background: rgba(255, 255, 255, 0.06); }
.look-none { max-width: none; }

/* The look Toon proposes (About, and the brief's card in the chat). */
.look-prop { margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: var(--s1); border: 1px solid var(--ln); display: flex; flex-direction: column; gap: 12px; }
.look-prop-h { display: flex; gap: 16px; align-items: flex-start; }
.look-prop-pic { width: 128px; height: 72px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--ln); }
.look-prop-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.look-prop-b b { font-size: 15px; font-weight: 600; }
.look-prop-b p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--tx2); }
.look-prop-fr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.look-prop-fr img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--ln); display: block; }
.look-prop-a { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.look-prop-n { flex: 1; font-size: 12px; color: var(--tx3); }
.look-prop.compact { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.look-prop.compact .look-prop-pic { width: 96px; height: 54px; }

/* A look matched to the person's references, on Toon's side (look-match.tsx): the sheet, then its score. */
.lm-cd { margin-top: 4px; }
.lm-h { display: flex; align-items: center; gap: 12px; }
.lm-h b { display: block; font-size: 15px; }
.lm-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); color: var(--act); flex: none; }
.lm-fig { width: fit-content; max-width: 100%; margin: 6px auto 0; }
.lm-sheet { display: block; max-width: 100%; width: auto; height: auto; max-height: 46vh; border-radius: 12px; border: 1px solid var(--ln); background: #17181b; cursor: zoom-in; }
.lm-fig.big .lm-sheet { max-height: none; cursor: zoom-out; }
.lm-cap { display: flex; justify-content: space-around; font-size: 11px; color: var(--tx3, var(--tx2)); margin-top: 4px; }
.lm-score { display: flex; gap: 12px; align-items: center; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ln); }
.lm-n { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.lm-n b { font-size: 26px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.lm-n span { font-size: 11px; color: var(--tx2); }
.lm-w { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lm-w b { font-size: 14px; font-weight: 600; }
.lm-w span { font-size: 12px; line-height: 1.4; color: var(--tx2); }
.lm-l { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.4; color: var(--tx2); }
.lm-l .kit-l { margin-bottom: 1px; }
.lm-note { display: flex; gap: 6px; align-items: center; margin: 2px 0 0; font-size: 12px !important; color: var(--tx2); }
.lm-note.ok { color: var(--ok, #6fcf97); }

/* A look's picture on the Library's Looks shelf and in its side panel: a frame of the look, filling a wide box (the
   other shelves' square boxes are for drawings, shown whole with a margin) */
.lcard-pic.look, .side-pic.look { aspect-ratio: 16 / 9; }
.lcard-pic.look img, .side-pic.look img { object-fit: cover; padding: 0; }
