#window-waifuviewer .window-body {
    padding: 2px !important;
    display: flex;
    flex-direction: column;
    background-color: var(--win-gray);
    height: 100%;
    font-family: var(--system-font);
    gap: 2px;
    border: 0px solid
}

.wf-toolbar {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 2px;
    gap: 2px;
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 1px 0 var(--win-white);
    background-color: var(--win-gray);
    z-index: 2;
}

.wf-toolbar-group {
    display: flex;
    gap: 4px;
}

.wf-toolbar-separator {
    width: 2px;
    height: 22px;
    background: var(--border-dark);
    border-right: 1px solid var(--win-white);
    margin: 0 6px;
}

.wf-tool-btn {
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
    font-family: var(--system-font);
    color: var(--win-black);
    background: var(--win-gray);
    cursor: default;
    outline: none;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    border-top: 1px solid var(--win-white);
    border-left: 1px solid var(--win-white);
    border-right: 1px solid var(--win-black);
    border-bottom: 1px solid var(--win-black);
    box-shadow: inset -1px -1px 0 var(--border-dark), inset 1px 1px 0 var(--win-gray-light);
}

.wf-tool-btn:active {
    border-top: 1px solid var(--win-black);
    border-left: 1px solid var(--win-black);
    border-right: 1px solid var(--win-white);
    border-bottom: 1px solid var(--win-white);
    box-shadow: none;
}

.wf-view-area {
    flex: 1;
    background-color: var(--win-white);
    
    background-image: 
        linear-gradient(45deg, var(--win-gray-light) 25%, transparent 25%), 
        linear-gradient(-45deg, var(--win-gray-light) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, var(--win-gray-light) 75%), 
        linear-gradient(-45deg, transparent 75%, var(--win-gray-light) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    
    border: 2px inset var(--win-gray-light);
    overflow: hidden; 
    position: relative;
    margin: 0 2px;
    cursor: default; 
}

#wf-current-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none; 
    user-select: none;

    box-shadow: 4px 4px 0 rgba(0,0,0,0.2); 

    image-rendering: auto;   
}

#wf-transform-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform-origin: center center;
}

.wf-loading,
#wf-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--win-white); 
    color: var(--text-disabled);
    font-size: 11px;
    user-select: none;
    pointer-events: none;
    position: absolute;
    top: 0; left: 0;
    z-index: 5;
}

.wf-statusbar {
    height: 20px;
    display: flex;
    gap: 2px;
    border-top: 1px solid var(--win-white);
    padding: 2px 0 0 0;
    font-size: 11px;
    color: var(--win-black);
    background-color: var(--win-gray);
    z-index: 2;
}

.wf-status-panel {
    border: 1px inset var(--win-gray-light);
    background-color: var(--win-gray);
    padding: 2px 4px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}