.vwd-app {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
}
.vwd-title { margin-bottom: 20px; }
.vwd-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    cursor: pointer;
}
.vwd-upload input { display: none; }
.vwd-preview-wrap { margin-top: 20px; }
.vwd-preview {
    display: block;
    max-width: 100%;
    max-height: 600px;
    border-radius: 8px;
    object-fit: contain;
}
.vwd-panel { margin-top: 20px; }
.vwd-panel-title { font-weight: 600; margin-bottom: 12px; }
.vwd-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.vwd-categories button,
.vwd-analyze {
    border: 1px solid #ccc;
    background: #fff;
    padding: 9px 13px;
    border-radius: 6px;
    cursor: pointer;
}
.vwd-categories button.is-active {
    background: #111;
    color: #fff;
}
.vwd-textures {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.vwd-texture {
    border: 2px solid transparent;
    background: #fff;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
}
.vwd-texture img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.vwd-texture span {
    display: block;
    padding: 9px;
}
.vwd-texture.is-selected { border-color: #111; }
.vwd-analyze {
    margin-top: 18px;
    background: #111;
    color: #fff;
}
.vwd-analyze:disabled { opacity: .5; cursor: not-allowed; }
.vwd-status { margin-top: 12px; }
.vwd-result { margin-top: 25px; }
.vwd-result-placeholder {
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
}

.vwd-texture { transition: transform .2s ease, box-shadow .2s ease; }
.vwd-texture:hover { transform: translateY(-2px); }
.vwd-app.vwd-layout-list .vwd-textures { display:flex; flex-direction:column; }
.vwd-app.vwd-layout-list .vwd-texture { display:flex; align-items:center; }
.vwd-app.vwd-layout-list .vwd-texture img { width:100px; flex:0 0 100px; }
