/* Lenci Studio — the Products section, the person kind chips and the "Drawn at eye level" angle hint (v3/docs/STUDIO-KIT-CONTRACT.md §4.7,
   ui.js productsBody / syncPressed). Additive only: builds on studio.css (.sub, .tiles, .tile, .chip, .note, .ghost, .subject-notice) and
   studio-models.css (.my-tiles, .my-tile, .my-row, .my-manage); nothing here restyles an existing control. Logical properties, so Arabic
   mirrors by itself; everything fits a 390 px phone (the chips wrap, the cards are one column). */

/* who is on set */
/* one segmented track (Catalogue person · My model · My photos · No person), the same as the stage toolbar's groups */
.subj-kinds { margin-bottom: 2px; gap: 2px; padding: 2px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.subj-kinds .chip { flex: 1 1 auto; border-color: transparent; background: transparent; }
.subj-kinds .chip:hover { background: rgba(255,255,255,.06); }
.subj-kinds .chip[aria-pressed="true"] { background: var(--active); }
/* four kinds (signed in: + My model) never wrap three-and-one: a 2 × 2 track */
.subj-kinds:has(> .chip:nth-child(4)) { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; }
.subj-kinds:has(> .chip:nth-child(4)) .chip { text-align: center; }
.subj-photos-hint { margin: 0; }

/* the products on set: one card per product, the open one carries its controls */
.prod-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.prod-card { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); box-shadow: var(--edge); min-width: 0; overflow: hidden; }
.prod-card.hero { border-color: rgba(201,184,255,.45); }
.prod-card.open { box-shadow: 0 0 0 1px rgba(139,92,246,.35), var(--edge); }
.prod-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 8px 10px; }
.prod-thumb { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: #1a1a26; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.prod-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.prod-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prod-name { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-hero-badge { grid-column: 3; justify-self: end; font: 600 9px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #0a0a0f; background: var(--energy, #d946ef); padding: 3px 7px; border-radius: 999px; }
[dir="rtl"] .prod-hero-badge { letter-spacing: 0; text-transform: none; font-size: 10px; }
.prod-card.hero .prod-head { grid-template-columns: 48px minmax(0, 1fr) auto auto; }
.ghost.prod-select { grid-column: -1; padding: 4px 9px; font-size: 10.5px; }
.prod-card.open .ghost.prod-select { opacity: .55; }
.prod-controls { display: flex; flex-direction: column; gap: 8px; padding: 2px 10px 10px; border-top: 1px solid var(--line); }
.prod-row { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; min-width: 0; padding-top: 6px; }
.prod-lbl { flex: none; min-width: 64px; font: 600 9.5px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
[dir="rtl"] .prod-lbl { letter-spacing: 0; text-transform: none; font-size: 11px; }
.prod-row .chips { flex: 1 1 auto; min-width: 0; align-items: center; }
.prod-val { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-inline-start: 4px; }
.prod-kind { flex: 1 1 140px; min-width: 0; max-width: 100%; padding: 5px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-3, rgba(255,255,255,.04)); color: var(--ink); font: 500 12px/1.3 var(--font, Inter, sans-serif); }
.chip.prod-drift { border-style: dashed; }
.chip.dim { opacity: .6; }
.note.prod-views, .note.prod-ghost { margin: 0; font-size: 11px; }
.prod-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-top: 4px; }
.ghost.prod-remove { color: #f0a0a4; }
.ghost.prod-remove:hover { color: #fff; background: rgba(229,72,77,.35); border-color: rgba(229,72,77,.6); }
.note.prod-empty { font-style: italic; }
.products-notice { margin-top: 2px; }

/* the catalogue by family */
.prod-families { margin-top: 2px; }
.prod-family-head { margin: 4px 0 -4px; font: 600 10px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .prod-family-head { letter-spacing: 0; text-transform: none; font-size: 11px; }

/* the user's kit: "My products", "My sets", "My props", the dashed "Add your own" tile, the views badge; the session's uploads */
.my-products-block, .my-kit-block, .prod-uploads, .my-kit-presets { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.my-products-block:empty, .my-kit-block:empty { display: none; }
.tile.kit-add { display: grid; place-items: center; align-content: center; gap: 4px; min-height: 72px; aspect-ratio: 3 / 4; color: var(--muted); background: rgba(255,255,255,.02); border-style: dashed; cursor: pointer; }
.tile.kit-add:hover { color: var(--ink); }
.tile.kit-add .kit-add-mark { font-size: 26px; line-height: 1; font-weight: 300; }
.tile.kit-add span:not(.kit-add-mark) { position: static; padding: 0 6px; background: none; text-shadow: none; text-transform: none; letter-spacing: .02em; font-size: 10px; text-align: center; color: inherit; }
.tile.prod-kit img { object-fit: contain; object-position: 50% 50%; background: #1a1a26; }
.prod-kit-badge { position: absolute; top: 5px; inset-inline-start: 5px; z-index: 2; font: 500 9px/1.2 var(--mono); padding: 2px 6px; border-radius: 999px; background: rgba(10,10,15,.78); color: #e4e4e7; pointer-events: none; max-width: calc(100% - 10px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ghost.prod-upload, .ghost.kit-preset-save { padding: 5px 10px; font-size: 10.5px; }

/* "Drawn at eye level" (ui.angleKeystone) on an angle tile or chip whose hero has no plate for that angle */
.tile[data-key="angle"].keystone, .chip[data-key="angle"].keystone { border-style: dashed; }
.tile[data-key="angle"] .angle-ks { position: absolute; top: 5px; inset-inline-start: 5px; z-index: 3; font: 600 8px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; padding: 2px 5px; border-radius: 999px; background: rgba(10,10,15,.82); color: #f5b041; pointer-events: none; max-width: calc(100% - 10px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip[data-key="angle"] .angle-ks { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #f5b041; margin-inline-start: 5px; vertical-align: middle; font-size: 0; }
[dir="rtl"] .tile[data-key="angle"] .angle-ks { letter-spacing: 0; text-transform: none; font-size: 9px; }

/* the rail: a product's thumb is a cutout, shown whole */
.pick.g-pickProduct img { object-fit: contain; object-position: 50% 50%; background: #1a1a26; }

@media (max-width: 480px) {
  .prod-head { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .prod-card.hero .prod-head { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .prod-hero-badge { grid-column: 2; justify-self: start; }
  .prod-lbl { min-width: 100%; }
}

/* an animal on set (ANIMALS-CONTRACT): species and pose tiles show the plate whole, on the studio grey it was shot on */
.subj-animals, .subj-animal-poses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile.subj-animal .media img, .tile.subj-animal img { object-fit: contain; background: radial-gradient(120% 90% at 50% 30%, #e4e4e7, #c4c4ca); padding: 6px; box-sizing: border-box; }
