.photos-app-container {
    color: #0b0b0f;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(242, 248, 252, 0.72) 42%, rgba(255, 255, 255, 0.96) 100%),
        #fff;
    z-index: 10000 !important;
}
.photos-app-container .photos-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.photos-app-container .photos-topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 54px 16px 8px;
    z-index: 3;
}
.photos-app-container .photos-top-title-wrap {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.photos-app-container .photos-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 2px;
}
.photos-app-container .photos-glass-btn {
    width: 54px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 22px;
    color: #1c1c1e;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
}
.photos-app-container .photos-glass-btn svg { width: 24px; height: 24px; }
.photos-app-container .photos-text-btn {
    width: auto;
    min-width: 64px;
    padding: 0 16px;
    font-size: 18px;
    font-weight: 700;
}
.photos-app-container .photos-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 0 118px;
    -webkit-overflow-scrolling: touch;
}
.photos-app-container .photos-view { display: none; }
.photos-app-container .photos-view.active { display: block; }
.photos-app-container .photos-large-title {
    margin: 0;
    font-size: 38px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #000;
}
.photos-app-container .photos-countline {
    margin-top: 3px;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.65);
}
.photos-app-container .photos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 0 4px 24px;
}
.photos-app-container .photos-tile {
    position: relative;
    border: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 3px;
    aspect-ratio: 1 / 1;
    background: rgba(232, 232, 237, 0.72);
    cursor: pointer;
}
.photos-app-container .photos-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photos-app-container .photos-tile-meta { display: none; }
.photos-app-container .photos-empty {
    display: none;
    min-height: 64vh;
    margin: 0;
}
.photos-app-container .photos-collection-empty {
    display: none;
    min-height: 64vh;
}
.photos-app-container .photos-bottom-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}
.photos-app-container .photos-tabs-capsule {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    pointer-events: auto;
}
.photos-app-container .photos-capsule-btn {
    border: 0;
    outline: none;
    background: transparent;
    border-radius: 26px;
    width: 76px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #1c1c1e;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.photos-app-container .photos-capsule-btn.active {
    background: rgba(0, 0, 0, 0.07);
    color: #007aff;
}
.photos-app-container .photos-capsule-btn svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}
.photos-app-container .photos-capsule-btn span {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.photos-app-container .photos-search-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: pointer;
    pointer-events: auto;
}
.photos-app-container .photos-search-circle svg {
    width: 25px;
    height: 25px;
}
.photos-app-container .photos-preview-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background: rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.photos-app-container .photos-preview-overlay.show { display: flex; }
.photos-app-container .photos-preview-sheet {
    width: min(100%, 420px);
    max-height: 88vh;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
}
.photos-app-container .photos-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
}
.photos-app-container .photos-preview-title { font-size: 16px; font-weight: 700; color: #111; line-height: 1.25; }
.photos-app-container .photos-preview-meta { font-size: 12px; color: #8e8e93; margin-top: 4px; }
.photos-app-container .photos-preview-image { width: 100%; max-height: 62vh; object-fit: contain; background: #000; }
.photos-app-container .photos-preview-body { padding: 12px 16px 18px; }
.photos-app-container .photos-preview-source { font-size: 13px; line-height: 1.5; color: #3a3a3c; word-break: break-word; }
.photos-app-container .photos-preview-source:empty { display: none; }
