/* The source canvas is 200 units across; the unobscured portrait edge is at radius 76.
   The frame may extend past the portrait, but does not change its box or hit target. */
[data-frame-art] {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

[data-frame-art] > img.lc-frame-overlay {
  position: absolute;
  inset: -16%;
  z-index: 1;
  display: block;
  width: 132%;
  height: 132%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
[data-frame-art] > img.lc-frame-overlay[hidden] { display: none; }

.lc-profile-portrait:has(> [data-frame-art]) { margin-block-end: 12px; }

.lc-frame-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 6px var(--lc-gutter) 12px;
  color: var(--lc-muted);
  font: 600 var(--ds-fs-label)/1.4 var(--lc-font);
}
.lc-frame-filter[hidden] { display: none; }
.lc-frame-filter label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.lc-frame-filter select { width: auto; max-width: 100%; min-height: var(--ds-touch); }
.lc-frame-filter output { font-variant-numeric: tabular-nums; }

.lc-frame-shelf .lc-shop-list { gap: 8px; }
.lc-frame-shelf .lc-shop-item {
  display: grid;
  grid-template: 'portrait caption preview' auto 'portrait cart price' auto / 56px minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 6px 8px;
  overflow: visible;
  border-radius: var(--ds-radius-inset);
  background-color: color-mix(in srgb, var(--lc-control) 34%, transparent);
}
.lc-shop-item > .lc-frame-sample {
  --lc-avatar-size: 48px;
  grid-area: portrait;
  justify-self: center;
  box-sizing: border-box;
}
.lc-frame-shelf .lc-shop-item .set-two { grid-area: caption; }
.lc-frame-shelf .lc-shop-item strong { white-space: normal; overflow-wrap: anywhere; }
.lc-frame-shelf .lc-shop-item small { color: var(--lc-muted); }
.lc-frame-shelf .lc-preview-open { grid-area: preview; justify-self: end; width: var(--ds-touch); height: var(--ds-touch); }
.lc-frame-shelf .lc-cart-add {
  grid-area: cart;
  justify-self: start;
  min-height: var(--ds-touch);
  min-width: var(--ds-touch);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.lc-frame-shelf .lc-shop-price { grid-area: price; justify-self: end; }
.lc-frame-shelf .lc-shop-buy { min-height: var(--ds-touch); min-width: var(--ds-touch); }
.lc-frame-shelf .lc-shop-price:not(button) { grid-area: cart; justify-self: start; padding-bottom: 6px; }
.lc-frame-shelf .lc-shop-item:not(:has(.lc-cart-add)) .lc-preview-open { grid-row: 1 / 3; }

.lc-preview-card--frame {
  place-items: center;
  min-height: 164px;
  padding: 18px;
  clip-path: none;
}
.lc-preview-card--frame .lc-frame-sample { --lc-avatar-size: 108px; box-sizing: border-box; }

/* No second colored border behind the artwork. Keep the call seat's speaking state and badges above it. */
.chat-call-avatar:has(> .call-face[data-frame-art]) { border-color: transparent; background: transparent; }
.call-mic-badge { z-index: 2; }
