#taiyu-avatar-frames { --ty-frame-blue: var(--ls-primary, #1677ff); --ty-frame-surface: var(--ls-bg-white, #fff); --ty-frame-text: var(--ls-text, #20242a); --ty-frame-border: var(--ls-border, #e7e9ee); color: var(--ty-frame-text); }
.ty-frame-launcher { position: fixed; right: 20px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 100; padding: 11px 17px; border: 1px solid var(--ty-frame-border); border-radius: 24px; background: var(--ty-frame-surface); color: var(--ty-frame-blue); cursor: pointer; box-shadow: 0 3px 16px #00000012; }
.ty-frame-dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); box-sizing: border-box; padding: 20px; border: 1px solid var(--ty-frame-border); border-radius: 20px; background: var(--ty-frame-surface); color: var(--ty-frame-text); overscroll-behavior: contain; }
.ty-frame-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.ty-frame-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ty-frame-dialog::backdrop { background: #0006; }
.ty-frame-header { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 12px; background: var(--ty-frame-surface); }
.ty-frame-header h2 { margin: 0; font-size: 20px; }
.ty-frame-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 12px 20px; border-bottom: 1px solid var(--ty-frame-border); }
.ty-frame-preview > span, .ty-frame-card-state { font-size: 12px; opacity: .7; }
.ty-frame-preview-avatar { position: relative; display: inline-block; flex-shrink: 0; width: 88px; height: 88px; margin: 8px; }
.ty-frame-preview-avatar > img.avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ty-frame-initial { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #eff4fa; color: #60728b; font-size: 32px; }
.ty-frame-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0; }
.ty-frame-chip, .ty-frame-button, .ty-frame-link { border: 0; border-radius: 9px; font: inherit; font-size: 14px; cursor: pointer; padding: 10px 14px; }
.ty-frame-chip { background: transparent; color: inherit; border: 1px solid var(--ty-frame-border); }
.ty-frame-chip[aria-pressed=true] { background: #1677ff14; color: var(--ty-frame-blue); border-color: var(--ty-frame-blue); }
.ty-frame-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ty-frame-card { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 12px 6px; border: 1px solid var(--ty-frame-border); border-radius: 12px; color: inherit; background: transparent; cursor: pointer; }
.ty-frame-card[aria-pressed=true] { border-color: var(--ty-frame-blue); background: #1677ff0b; }
.ty-frame-card strong { font-size: 14px; font-weight: 500; }
.ty-frame-card-art { width: min(108px, 100%); aspect-ratio: 1; object-fit: contain; }
.ty-frame-actions { flex-shrink: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; padding-top: 12px; }
.ty-frame-button { background: var(--ty-frame-blue); color: white; }
.ty-frame-link { background: transparent; color: var(--ty-frame-blue); }
.ty-frame-dialog button:disabled { opacity: .5; cursor: wait; }
.ty-frame-dialog button:focus-visible, .ty-frame-launcher:focus-visible { outline: 3px solid #1677ff66; outline-offset: 3px; }
.ty-frame-empty { text-align: center; padding: 28px 8px; }
.ty-frame-status { flex-shrink: 0; font-size: 13px; line-height: 1.6; min-height: 20px; margin: 8px 0 0; }
.ty-frame-acquisition { margin-top: 14px; padding: 14px; border: 1px solid var(--ty-frame-border); border-radius: 12px; line-height: 1.7; }
.ty-frame-acquisition h3 { margin-top: 0; }
.ls-avatar > .ty-avatar-frame { position: absolute; left: 50%; top: 50%; width: calc(100% + 16px); height: calc(100% + 16px); transform: translate(-50%, -50%); pointer-events: none; z-index: 1; display: block; }
.ls-avatar > .ty-avatar-frame img { width: 100%; height: 100%; border-radius: 0; object-fit: contain; border: 0; display: block; }
@media (max-width: 480px) { .ty-frame-dialog { padding: 16px; } .ty-frame-grid { gap: 8px; } .ty-frame-launcher { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .ty-frame-dialog *, .ty-frame-launcher { scroll-behavior: auto; } }
