.container::before {
    content: "INTERNET TOYBOX - AVATAR";
    position: absolute;
    top: -10px;
    left: 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    background: #e9e9e9;
    padding: 2px 6px;
    border: 1px solid #c7c7c7;
}

.avatar-editor-gate {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

.avatar-editor-layout {
    display: grid;
    grid-template-columns: 220px 1fr 260px;
    gap: 14px;
    padding: 20px;
}

.editor-panel {
    background: #f5f5f5;
    border: 1px solid #cfcfcf;
    padding: 12px;
}

.editor-panel h3 {
    margin-bottom: 10px;
    font-size: 14px;
}

.editor-filter {
    display: block;
    padding: 8px;
    margin-bottom: 6px;
    text-decoration: none;
    color: #2d5ca8;
    background: #e9e9e9;
    border: 1px solid #cfcfcf;
    font-weight: 700;
    cursor: pointer;
}

.editor-filter:hover {
    background: #dedede;
}

.editor-filter.active {
    background: #d8e3f4;
}

.editor-balance {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #cfcfcf;
    font-size: 12px;
    color: #444;
}

.avatar-preview-panel {
    background: white;
    border: 1px solid #cfcfcf;
    padding: 16px;
}

.avatar-stage {
    height: 500px;
    border: 1px solid #cfcfcf;
    background: linear-gradient(180deg, #e9f3ff 0%, #d9e8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-viewer-mount {
    width: 100%;
    height: 100%;
}

.avatar-actions {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-btn {
    padding: 8px 14px;
    border: 1px solid #d53c2c;
    background: linear-gradient(180deg, #ff7d61, #d13331);
    color: white;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.editor-btn:hover {
    background: linear-gradient(180deg, #ff8d75, #ff605d);
}

.avatar-actions .btn {
    padding: 8px 14px;
    border: 1px solid #cfcfcf;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.avatar-actions .btn:hover {
    background: #e4e4e4;
}

.avatar-status {
    font-size: 11px;
    color: #888;
    margin-left: auto;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.inventory-item {
    aspect-ratio: 1;
    background: #e9e9e9;
    border: 1px solid #cfcfcf;
    cursor: pointer;

    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.inventory-item:hover {
    border-color: #ff4a47;
}

.inventory-item.selected {
    border: 2px solid #ff4a47;
    box-shadow: 0 0 0 3px rgba(255,74,71,.15);
}

.inventory-item.locked {
    cursor: pointer;
    opacity: 0.85;
}

.inventory-item-label {
    width: 100%;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    background: rgba(255,255,255,0.85);
    padding: 2px 0;
}

.inventory-item-price {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 9px;
    font-weight: 800;
    background: #1f1f1f;
    color: #ffe27a;
    padding: 1px 4px;
}

.inventory-item-lock {
    position: absolute;
    top: 3px;
    left: 3px;
    font-size: 11px;
}

.inventory-item.none-option {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #888;
}

.color-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.color-swatch-circle {
    width: 60%;
    height: 60%;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cfcfcf;
}

.color-swatch-label {
    font-size: 9px;
    font-weight: 700;
    color: #555;
}

.color-swatch-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}