.media-image{background:var(--app-bg-highlight);isolation:isolate;width:100%;height:100%;display:block;position:relative;overflow:hidden}.media-image img{object-fit:cover;opacity:0;width:100%;height:100%;transition:opacity var(--animation-duration-fast)ease;display:block}.btn-kit:has(>.media-image) .media-image{transform:scale(1)}.btn-kit:has(>.media-image) .media-image img{transform:scale(1)}.btn-kit:has(>img)>img{transform:scale(1)}.btn-kit:has(>video)>video{transform:scale(1)}.media-image--contain img{object-fit:contain}.media-image--ready img{opacity:1}.media-image--fluid{height:auto;min-height:120px}.media-image--fluid img{object-fit:contain;height:auto;max-height:calc(100dvh - 110px)}.media-image__spinner{z-index:var(--app-raised-z);pointer-events:none;color:var(--app-text-dim);place-items:center;display:grid;position:absolute;inset:0}@media (prefers-reduced-motion:reduce){.media-image img{transition:none}.media-image__spinner .app-spinner{animation:none}}.photo-pick{justify-content:center;align-items:center;gap:var(--app-space-103);text-align:center;border:2px dashed var(--app-border);border-radius:var(--app-radius);background:var(--app-bg);color:var(--app-text);cursor:pointer;transition:border-color var(--animation-duration-fast)ease,background-color var(--animation-duration-fast)ease;flex-direction:column;display:flex}.photo-pick input{display:none}.photo-pick:hover,.photo-pick--dragging{border-color:var(--app-accent);background:var(--app-bg-highlight)}.photo-pick:focus-within{outline:2px solid var(--app-focus-ring);outline-offset:2px}.photo-pick--disabled{cursor:not-allowed;opacity:.6}.photo-pick--processing{cursor:wait;border-color:var(--app-accent)}.photo-pick__icon{background:var(--app-accent);width:46px;height:46px;color:var(--app-on-accent);border-radius:50%;place-items:center;display:grid}.photo-pick--processing .photo-pick__icon{animation:1s ease-in-out infinite photo-pick-pulse}.photo-pick__title{font-size:var(--font-size-base);font-weight:750}.photo-pick__hint{max-width:36ch;color:var(--app-text-dim);font-size:var(--font-size-caption);line-height:1.4}.photo-pick--zone{min-height:200px;padding:var(--app-space-10)}.photo-pick--tile{aspect-ratio:1;gap:var(--app-space-2);padding:var(--app-space-4);border-radius:calc(var(--app-radius)*.8)}.photo-pick--tile .photo-pick__icon{background:var(--app-bg-highlight);width:34px;height:34px;color:var(--app-accent)}.photo-pick--tile .photo-pick__title{font-size:var(--font-size-caption);color:var(--app-text-dim);font-weight:700}.photo-pick--icon{width:1.75rem;min-width:1.75rem;height:1.75rem;min-height:1.75rem;text-align:inherit;border-radius:var(--radius-md);background:var(--app-clear);border:none;flex-direction:row;justify-content:center;align-items:center;gap:0;padding:0;display:inline-flex}.photo-pick--icon:hover,.photo-pick--icon.photo-pick--dragging,.photo-pick--icon.photo-pick--processing{background:var(--app-clear);border:none}.photo-pick--icon:focus-within{outline:2px solid var(--app-focus-ring);outline-offset:2px}.photo-pick--icon .photo-pick__icon{background:var(--app-clear);width:auto;height:auto;color:inherit;border-radius:0}.photo-pick--icon .photo-pick__title,.photo-pick--icon .photo-pick__hint{width:1px;height:1px;margin:var(--app-space-107);clip:rect(0,0,0,0);white-space:nowrap;border:0;padding:0;position:absolute;overflow:hidden}@keyframes photo-pick-pulse{50%{opacity:.65;transform:scale(.92)}}.custom-dialog.custom-dialog--image-viewer{--profile-dialog-close-top:10px;--profile-dialog-close-size:1.25rem;--profile-dialog-close-right:22px;--profile-dialog-close-mid:calc(var(--profile-dialog-close-top) + var(--profile-dialog-close-size)/2);--profile-dialog-close-gutter:calc(var(--profile-dialog-close-right) + var(--profile-dialog-close-size));width:min(800px,100vw - 32px);max-width:min(800px,100vw - 32px);max-height:calc(100dvh - 32px)}@media (pointer:coarse){.custom-dialog.custom-dialog--image-viewer{--profile-dialog-close-top:4px;--profile-dialog-close-size:32px;--profile-dialog-close-right:16px}}.custom-dialog--image-viewer .custom-dialog-panel{padding-top:var(--app-space-18);overflow:auto}.image-viewer{justify-items:center;display:grid}.image-viewer__title{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.image-viewer__frame{--image-viewer-inset:42px;border-radius:8px;width:fit-content;max-width:100%;position:relative;overflow:hidden}.image-viewer__photo{border-radius:8px;width:auto}.image-viewer__frame .image-viewer__photo.media-image{width:auto;height:auto;min-height:0}.image-viewer__frame .image-viewer__photo.media-image img{background-color:var(--app-media-alpha-2);background-image:var(--app-media-alpha-canvas);background-size:var(--app-media-alpha-tile)var(--app-media-alpha-tile)}.image-viewer__frame .image-viewer__photo img{width:auto;height:auto;max-width:calc(min(800px,100vw - 32px) - var(--image-viewer-inset));max-height:calc(100dvh - 110px)}.image-viewer__open,.image-viewer__open:hover,.image-viewer__open:focus-visible,.image-viewer__open:active{z-index:var(--app-raised-z);background:var(--app-clear);width:100%;height:100%;box-shadow:none;cursor:pointer;appearance:none;border:0;border-radius:8px;margin:0;padding:0;display:block;position:absolute;inset:0}.image-viewer__tools{z-index:var(--app-over-z);background:color-mix(in srgb,var(--app-bg)55%,transparent);opacity:0;pointer-events:none;transition:opacity var(--animation-duration-fast)ease;border-radius:8px;place-items:center;display:grid;position:absolute;inset:0}.image-viewer__frame:not(.image-viewer__frame--viewing):hover .image-viewer__tools{opacity:1}.image-viewer__frame:not(.image-viewer__frame--viewing):has(.image-viewer__open:focus-visible) .image-viewer__tools{opacity:1}.image-viewer__frame--viewing .image-viewer__tools,.image-viewer__frame--viewing:hover .image-viewer__tools,.image-viewer__frame--overlay-suppressed .image-viewer__tools,.image-viewer__frame--overlay-suppressed:hover .image-viewer__tools{opacity:0;pointer-events:none}.image-viewer__tool{border-radius:calc(var(--app-radius)*.6);background:var(--app-surface);pointer-events:none;place-items:center;width:40px;height:40px;display:grid}@media (hover:none){.image-viewer__frame .image-viewer__tools,.image-viewer__frame:hover .image-viewer__tools{opacity:0}}.custom-dialog.custom-dialog--image-viewer-parked{visibility:hidden;pointer-events:none}.custom-dialog.custom-dialog--lightbox{background:var(--app-clear);width:100%;min-width:0;max-width:none;height:100%;height:100dvh;max-height:none;color:var(--app-on-lightbox);box-shadow:none;scrollbar-gutter:auto;border:0;border-radius:0;margin:0;position:fixed;inset:0;overflow:hidden;transform:scale(.98)}.custom-dialog.custom-dialog--lightbox.custom-dialog--shown{transform:scale(1)}.custom-dialog.custom-dialog--lightbox::backdrop{background:var(--app-lightbox-bg)}.custom-dialog--lightbox .custom-dialog-panel{scrollbar-gutter:auto;height:100%;padding:0;overflow:hidden}.custom-dialog--lightbox .custom-dialog-close{z-index:var(--app-float-z);color:var(--app-error);top:12px;right:16px;transform:none}.custom-dialog--lightbox .custom-dialog-close:hover,.custom-dialog--lightbox .custom-dialog-close:focus-visible{color:var(--app-error)}.image-viewer--full{background:var(--app-lightbox-bg);place-items:center;width:100%;height:100%;display:grid;position:relative}.image-viewer__scrim,.image-viewer__scrim:hover,.image-viewer__scrim:focus-visible,.image-viewer__scrim:active{z-index:var(--app-over-z);box-sizing:border-box;width:100%;height:100%;font:inherit;color:inherit;appearance:none;background:var(--app-clear);box-shadow:none;cursor:default;border:0;border-radius:0;margin:0;padding:0;display:block;position:absolute;inset:0}.image-viewer__full-canvas{z-index:var(--app-raised-z);background-color:var(--app-media-alpha-2);background-image:var(--app-media-alpha-canvas);background-size:var(--app-media-alpha-tile)var(--app-media-alpha-tile);pointer-events:none;flex:none;max-width:100%;max-height:100%;position:relative;overflow:hidden}.image-viewer__full-canvas .image-viewer__photo--full.media-image{background:var(--app-clear);width:100%;height:100%;min-height:0}.image-viewer__full-canvas .image-viewer__photo--full.media-image img{object-fit:contain;background:var(--app-clear);width:100%;max-width:none;height:100%;max-height:none}.profile-avatar{aspect-ratio:1;border-radius:50%;flex-shrink:0;place-items:center;display:grid;position:relative}.profile-avatar--story-active:before{content:"";border:3px solid var(--app-accent);pointer-events:none;border-radius:50%;position:absolute;inset:-5px}.profile-avatar--story-viewable{z-index:var(--app-over-z)}.profile-avatar__story-add{z-index:var(--app-float-z);width:28px;min-width:28px;height:28px;min-height:28px;font-size:var(--app-space-106);border-radius:50%;font-weight:800;line-height:1;position:absolute;bottom:-4px;right:-4px}.profile-avatar.trainer-card__avatar{overflow:visible}.profile-avatar .profile-avatar__link,.profile-avatar .profile-avatar__link:hover,.profile-avatar .profile-avatar__link:focus-visible,.profile-avatar .profile-avatar__link:active{background:var(--app-clear);width:auto;min-width:0;height:auto;min-height:0;box-shadow:none;border:0;border-radius:50%;flex-shrink:0;padding:0;line-height:1;display:block;position:absolute;inset:0}.profile-avatar__image{background:var(--app-active);color:var(--app-text);font-size:var(--font-size-title);border-radius:50%;place-items:center;font-weight:750;display:grid;position:absolute;inset:0;overflow:hidden}.profile-avatar__image .media-image,.profile-avatar__image img{object-fit:cover;border-radius:50%;width:100%;height:100%;position:absolute;inset:0}.profile-avatar__tools{z-index:var(--app-over-z);place-content:center;gap:var(--app-space-3);background:color-mix(in srgb,var(--app-bg)55%,transparent);opacity:0;pointer-events:none;transition:opacity var(--animation-duration-fast)ease;border-radius:50%;grid-template-rows:repeat(2,28px);grid-template-columns:repeat(2,28px);display:grid;position:absolute;inset:0}.profile-avatar:hover .profile-avatar__tools{opacity:1}.profile-avatar__tools:has(:focus-visible){opacity:1}.profile-avatar--viewing .profile-avatar__tools,.profile-avatar--viewing:hover .profile-avatar__tools,.profile-avatar--overlay-suppressed .profile-avatar__tools,.profile-avatar--overlay-suppressed:hover .profile-avatar__tools{opacity:0;pointer-events:none}.profile-avatar--viewing .profile-avatar__tools>*,.profile-avatar--overlay-suppressed .profile-avatar__tools>*{pointer-events:none}.profile-avatar__tools>*{pointer-events:auto}.profile-avatar__tools:has(>:only-child){grid-template-rows:28px;grid-template-columns:28px}.profile-avatar__tool,.profile-avatar__tools .photo-pick--tile{border-radius:calc(var(--app-radius)*.6);width:28px;min-width:0;height:28px;min-height:0}.profile-avatar__tool,.profile-avatar__tool:hover,.profile-avatar__tool:focus-visible,.profile-avatar__tool:active{background:var(--app-surface);border:0;padding:0}.profile-avatar__view{grid-column:1/-1;justify-self:center}.profile-avatar__tools .photo-pick--tile{aspect-ratio:1;background:var(--app-surface);border:0;gap:0;padding:0}.profile-avatar__tools .photo-pick__title{display:none}.profile-avatar__tools .photo-pick__icon{background:var(--app-clear);width:28px;height:28px;color:var(--app-text)}@media (hover:none){.profile-avatar{z-index:var(--app-over-z)}.profile-avatar .profile-avatar__tools,.profile-avatar:hover .profile-avatar__tools{opacity:0}.profile-avatar--tools-open .profile-avatar__tools,.profile-avatar--tools-open:hover .profile-avatar__tools{opacity:1}.profile-avatar:not(.profile-avatar--tools-open) .profile-avatar__tools>*{pointer-events:none}.profile-avatar--viewing .profile-avatar__tools,.profile-avatar--overlay-suppressed .profile-avatar__tools{opacity:0}.profile-avatar--link.profile-avatar--editable .profile-avatar__tools,.profile-avatar--link.profile-avatar--editable:hover .profile-avatar__tools,.profile-avatar--link.profile-avatar--editable.profile-avatar--overlay-suppressed .profile-avatar__tools{opacity:1;background:var(--app-clear)}.profile-avatar--link.profile-avatar--editable .profile-avatar__tools>*{pointer-events:auto}.profile-avatar--story-viewable.profile-avatar--editable .profile-avatar__tools,.profile-avatar--story-viewable.profile-avatar--editable:hover .profile-avatar__tools{opacity:1;background:var(--app-clear);pointer-events:none}.profile-avatar--story-viewable.profile-avatar--editable .profile-avatar__tools>*{pointer-events:auto}}
