/* ==========================================================================
   Kişilerim / Topluluk listesi: açılır-kapanır İSİM listesi (accordion)
   Kapalı satır = yalnızca ad (+ küçük rozetler). Ada dokununca satır altından açılır: profil resmi, bilgiler, kıyafetler, yeni kıyafet.
   Mantık: peoplelist.js. Eski kart kancaları (um-card, data-model-id, data-outfit-id, um-avatar-tile) korunur.
   ========================================================================== */
.um-row { margin: 0 0 8px; padding: 0; border: 1px solid #e6ece8; border-radius: 10px; background: #fff; overflow: hidden; transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.um-row:not(.is-open) { content-visibility: auto; contain-intrinsic-size: auto none auto 48px; }
.um-row:hover { border-color: #cfdcd6; }
.um-row.is-open { box-shadow: 0 2px 10px rgba(23, 32, 29, 0.06); }
#my-models-content .um-row { cursor: default; }

.um-row-head {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin: 0; padding: 8px 12px 8px 10px;
  background: none; border: none; font: inherit; text-align: left; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.um-row-head:focus-visible { outline: 2px solid #578a89; outline-offset: -2px; border-radius: 10px; }
.um-row-chev { flex: none; width: 18px; height: 18px; color: #8b9a92; transition: transform 0.2s ease, color 0.15s ease; }
.um-row.is-open .um-row-chev { transform: rotate(90deg); color: #578a89; }
.um-row-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 700; color: #578a89; }
.um-row.is-passive .um-row-name { opacity: 0.6; }
.um-row-chips { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.um-chip { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; background: #eef2ef; color: #6d7a72; font-size: 0.7rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.um-row-count { flex: none; font-size: 0.78rem; color: #8b9a92; white-space: nowrap; font-variant-numeric: tabular-nums; }
.um-row-up { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: #e7f1f0; color: #4a7776; font-size: 0.72rem; font-weight: 700; }
.um-row-up.done { background: #e3f4e8; color: #1e8a3e; }
.um-row-up.failed { background: #fdeceb; color: #b3322c; }
.um-row-up .pct { font-variant-numeric: tabular-nums; }

/* Açılan bölüm */
.um-row-body { padding: 2px 12px 14px; border-top: 1px solid #eef2ef; background: #fbfcfb; }
.um-row:not(.is-open) .um-row-body { display: none; }
.um-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0 4px; }
.um-act {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px 6px 8px; min-height: 40px;
  background: #fff; border: 1px solid #d9e2db; border-radius: 999px; font: inherit; font-size: 0.86rem; font-weight: 600; color: #17201d; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.um-act:hover { border-color: #578a89; background: #f3f8f6; }
.um-act:focus-visible { outline: 2px solid #578a89; outline-offset: 2px; }
.um-act svg { width: 18px; height: 18px; flex: none; color: #578a89; }
.um-act.um-avatar-tile { width: auto; height: auto; flex-direction: row; justify-content: flex-start; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid #d9e2db; }
.um-act.um-avatar-tile.selected { border-color: #578a89; background: #f3f8f6; }
.um-act .um-avatar-circle { width: 32px; height: 32px; border-width: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14); }
.um-act.um-avatar-tile span { font-size: 0.86rem; color: #17201d; font-weight: 600; }
.um-act.is-selected { border-color: #578a89; background: #f3f8f6; }
.um-act-stage { padding-left: 10px; }
.um-act-switch { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 0 2px; font-size: 0.82rem; color: #4a5550; cursor: pointer; user-select: none; }
.um-act-switch .ios-switch { transform: scale(0.78); transform-origin: center right; margin: 0 -4px 0 0; }
.um-act-switch .switch-state { font-size: 0.8rem; font-weight: 600; color: #6d7a72; }
.um-act-switch.on .switch-state { color: #578a89; }

.um-row-outfits-head { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #6d7a72; }
.um-row-outfits-head .count { font-weight: 600; letter-spacing: 0; color: #9aa69f; }
.um-row-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.um-row-strip .um-outfit-item { position: relative; flex: none; width: 64px; height: 96px; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; background: #f9f9f9; cursor: grab; transition: border-color 0.2s ease; }
.um-row-strip .um-outfit-item.no-drag { cursor: pointer; }
.um-row-strip .um-outfit-item img { width: 100%; height: 100%; object-fit: contain; background: #f9f9f9; cursor: pointer; }
.um-row-strip .um-outfit-item .passive-tag { position: absolute; left: 3px; bottom: 3px; padding: 1px 5px; border-radius: 3px; background: #6d7a72; color: #fff; font-size: 9.5px; line-height: 1.4; }
.um-row-strip .um-pending-tile { width: 64px; height: 96px; }
.um-row-strip .um-add-tile {
  flex: none; width: 64px; height: 96px; display: flex; align-items: center; justify-content: center; padding: 4px; text-align: center;
  border: 1px dashed #578a89; border-radius: 6px; background: #eef2ef; color: #578a89; font: inherit; font-size: 0.78rem; font-weight: 600; line-height: 1.3; cursor: pointer;
  transition: background 0.15s ease;
}
.um-row-strip .um-add-tile:hover { background: #e3ecea; }
.um-row-empty { margin: 0 0 8px; font-size: 0.85rem; color: #8b9a92; }
.um-row-note { margin: 10px 0 0; font-size: 0.8rem; color: #9a6a14; }
.um-row-note[hidden] { display: none; }

/* Mobil web paneli: dokunma hedefleri biraz daha büyük */
#ma-people-slot .um-row-head { min-height: 52px; padding: 10px 12px 10px 8px; }
#ma-people-slot .um-row-name { font-size: 1.02rem; }
#ma-people-slot .um-act { min-height: 44px; }
.ma-push #my-models-content .um-row:active { background: #fff; }

@media (prefers-reduced-motion: reduce) { .um-row, .um-row-chev { transition: none; } }
